:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    --dark: #0f172a;
    --dark-2: #1e293b;
    --accent: #38bdf8;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-600: #64748b;
    --gray-800: #1e293b;
    --sidebar-width-expanded: 260px;
    --sidebar-width-collapsed: 76px;
    --sidebar-width: var(--sidebar-width-expanded);
    --radius-card: 24px;
    --radius-pill: 999px;
    --shadow-soft: 0 10px 40px rgba(15, 23, 42, 0.08);
    --z-sidebar: 40;
    --z-sidebar-drawer: 1040;
    --z-sidebar-backdrop: 1030;
    --z-topbar: 1080;
    --z-user-dropdown: 5000;
    /* Fixed topbar height (padding + two-line header); should match the layout */
    --topbar-height: 4.75rem;
}

/* Desktop: collapsed sidebar */
@media (min-width: 769px) {
    body.sidebar-collapsed {
        --sidebar-width: var(--sidebar-width-collapsed);
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
    color: var(--gray-800);
}

/* Decorative auth / onboarding background */
.auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
}
.auth-bg__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(0px);
    opacity: 0.55;
    animation: floaty 18s ease-in-out infinite;
}
.auth-bg__blob--1 {
    width: 420px;
    height: 420px;
    right: -80px;
    top: 10%;
    background: radial-gradient(circle at 30% 30%, #60a5fa, #bfdbfe 60%, transparent 70%);
}
.auth-bg__blob--2 {
    width: 320px;
    height: 320px;
    left: -60px;
    bottom: 5%;
    background: radial-gradient(circle at 70% 70%, #38bdf8, #e0f2fe 55%, transparent 70%);
    animation-delay: -6s;
}
.auth-bg__arc {
    position: absolute;
    width: 140%;
    height: 60%;
    left: -20%;
    top: -10%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 50%;
    opacity: 0.5;
}

@keyframes floaty {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.02); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-animate {
    animation: fadeInUp 0.55s ease both;
}

/* Auth Pages */
.auth-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 2rem 1rem;
}

.auth-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-card);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.auth-card .brand-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-card .brand-sub {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--gray-200);
    background: #fff;
    font-weight: 600;
    color: var(--gray-800);
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
}

.btn-google:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    color: var(--gray-800);
    transform: translateY(-1px);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gray-600);
    font-size: 0.8rem;
    margin: 1.25rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

/* Onboarding */
.onboarding-body {
    min-height: 100vh;
    position: relative;
}

.onboarding-wrap {
    position: relative;
    z-index: 1;
}

.onboarding-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    border-radius: var(--radius-card);
    padding: 2.25rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.brand-mark {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.onboarding-stepper__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-600);
    background: #e2e8f0;
}

.onboarding-stepper__item.is-active {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.onboarding-stepper__item.is-done {
    background: var(--primary-light);
    color: var(--primary);
}

.onboarding-stepper__sep {
    color: #cbd5e1;
    margin: 0 0.35rem;
}

.form-control-pill {
    border-radius: var(--radius-pill);
    padding: 0.65rem 1.1rem;
    border: 1px solid var(--gray-200);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.btn-pill {
    border-radius: var(--radius-pill) !important;
}

.text-primary {
    color: var(--primary) !important;
}

/* Campaign wizard — ad type (radio + label) */
label.ad-type-card {
    cursor: pointer;
}

label.ad-type-card:focus-within .ad-type-card__inner {
    outline: 2px solid rgba(37, 99, 235, 0.45);
    outline-offset: 2px;
}

.ad-type-card__inner {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-card);
    padding: 1.5rem 1.25rem;
    background: #fff;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    min-height: 100%;
}

.ad-type-card__icon {
    font-size: 3rem;
    color: var(--primary);
    line-height: 1;
}

.ad-type-card input:checked + .ad-type-card__inner,
label.ad-type-card:has(input:checked) .ad-type-card__inner {
    border-color: var(--primary) !important;
    background: var(--primary-light);
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.15);
}

/* Campaign wizard — industry grid (radio + label) */
label.industry-card--wizard {
    cursor: pointer;
}

label.industry-card--wizard:focus-within .industry-card__inner {
    outline: 2px solid rgba(37, 99, 235, 0.45);
    outline-offset: 2px;
}

.industry-card__inner {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-card);
    padding: 1rem 0.65rem;
    background: #fff;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.industry-card__icon {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

label.industry-card--wizard:has(input:checked) .industry-card__inner {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.industry-card__inner .industry-name {
    margin-top: 0.5rem;
    text-align: center;
    max-width: 100%;
    line-height: 1.2;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
}

/* Sidebar — distinct cool gray-blue (separate from main area) */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: linear-gradient(175deg, #d9e4f2 0%, #c9d6e8 38%, #b9c9df 100%);
    color: #1e293b;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-sidebar);
    transition: transform 0.3s ease, width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid rgba(71, 85, 105, 0.28);
    box-shadow: 8px 0 36px rgba(15, 23, 42, 0.1);
    display: flex;
    flex-direction: column;
}

@media (min-width: 769px) {
    .sidebar {
        overflow-x: hidden;
    }
}

.sidebar-brand-row .brand {
    padding: 1.1rem 0 0.25rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    flex: 1;
    min-width: 0;
}

.brand-text {
    color: #0f172a;
}

.sidebar-brand-wrap {
    border-bottom: 1px solid rgba(71, 85, 105, 0.18);
    padding-bottom: 0.35rem;
    position: relative;
}

.sidebar-brand-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    padding-right: 0.35rem;
}

.sidebar-collapse-btn {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    margin-top: 1.05rem;
    margin-right: 0.35rem;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.55);
    color: #334155;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    transition: background 0.2s, color 0.2s, transform 0.15s;
    font-size: 1.35rem;
    line-height: 1;
}

.sidebar-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.75);
    color: #1d4ed8;
}

.sidebar-collapse-btn:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.5);
    outline-offset: 2px;
}

@media (min-width: 769px) {
    .sidebar-collapse-btn {
        display: inline-flex;
    }
}

.sidebar-nav {
    flex: 1;
    padding-top: 0.75rem;
    padding-bottom: 1rem;
}

.sidebar-tagline {
    font-size: 0.7rem;
    color: #475569;
    padding: 0.35rem 1.5rem 1rem;
    margin: 0;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
}

body.sidebar-collapsed .sidebar-tagline {
    display: none;
}

body.sidebar-collapsed .brand-text {
    display: none;
}

body.sidebar-collapsed .sidebar-brand-row .brand {
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

body.sidebar-collapsed .sidebar-brand-row {
    justify-content: center;
    padding-right: 0.25rem;
}

body.sidebar-collapsed .sidebar-collapse-btn {
    position: absolute;
    top: 0.65rem;
    right: 0.35rem;
    margin-top: 0;
    margin-right: 0;
}

.sidebar-divider {
    border-color: rgba(226, 232, 240, 0.95);
    margin: 0.65rem 1rem;
    opacity: 1;
}

.sidebar .nav-link {
    color: #475569;
    padding: 0.65rem 1rem;
    margin: 0.2rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    border-radius: 12px;
    border-left: none;
    font-weight: 500;
}

.sidebar .nav-link:hover {
    color: #1e40af;
    background: rgba(37, 99, 235, 0.06);
}

.sidebar .nav-link.active {
    color: #1e3a8a;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(239, 246, 255, 0.88) 100%);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.35), 0 4px 14px rgba(37, 99, 235, 0.12);
}

.sidebar .nav-link__label {
    flex: 1;
    min-width: 0;
}

body.sidebar-collapsed .sidebar .nav-link__label {
    display: none;
}

body.sidebar-collapsed .sidebar .nav-link {
    justify-content: center;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
}

body.sidebar-collapsed .sidebar .nav-link i {
    margin: 0;
}

.sidebar .nav-link i {
    font-size: 1.15rem;
    width: 24px;
    text-align: center;
    color: #64748b;
}

.sidebar .nav-link:hover i,
.sidebar .nav-link.active i {
    color: #2563eb;
}

/* User menu — dropdown always above the content layer */
.user-menu {
    position: relative;
    z-index: var(--z-user-dropdown);
}

.user-menu .dropdown-menu.user-menu__dropdown {
    z-index: var(--z-user-dropdown) !important;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18) !important;
}

.user-menu__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: min(220px, 46vw);
    padding: 0.3rem 0.65rem 0.3rem 0.35rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--gray-200);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-800);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.user-menu__trigger:hover,
.user-menu__trigger:focus,
.user-menu__trigger.show {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.12);
    color: var(--gray-800);
}

.user-menu__avatar {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: linear-gradient(145deg, #3b82f6, #6366f1);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.user-menu__name {
    max-width: 120px;
}

.user-menu__chev {
    font-size: 0.65rem;
    opacity: 0.55;
    margin-left: 0.15rem;
}

.user-menu__dropdown {
    min-width: 260px;
    border-radius: 16px;
    padding-bottom: 0.35rem;
    border: 1px solid rgba(226, 232, 240, 0.98);
    margin-top: 0.5rem !important;
}

.user-menu__head {
    max-width: 100%;
}

.user-menu__item {
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
    margin: 0.1rem 0.35rem;
    font-size: 0.9rem;
}

.user-menu__item:hover {
    background: rgba(239, 246, 255, 0.95);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    position: relative;
    background: linear-gradient(165deg, #f1f5f9 0%, #f8fafc 42%, #eef6ff 100%);
    overflow-x: hidden;
    transition: margin-left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-bg-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.app-bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.5;
    animation: floaty 22s ease-in-out infinite;
}

.app-bg-blob--1 {
    width: 400px;
    height: 400px;
    right: -90px;
    top: -100px;
    background: radial-gradient(circle at 30% 30%, rgba(96, 165, 250, 0.85), rgba(191, 219, 254, 0.45) 58%, transparent 72%);
}

.app-bg-blob--2 {
    width: 300px;
    height: 300px;
    left: 5%;
    bottom: 10%;
    background: radial-gradient(circle at 70% 70%, rgba(56, 189, 248, 0.65), rgba(224, 242, 254, 0.35) 55%, transparent 72%);
    animation-delay: -9s;
}

.app-bg-arc {
    position: absolute;
    width: 130%;
    height: 55%;
    left: -15%;
    top: -8%;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 50%;
    opacity: 0.55;
}

.main-content-inner {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: var(--topbar-height);
}

/* Fixed topbar: stays in viewport; an overflow-x:hidden parent can break sticky behavior */
.top-bar {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--sidebar-width);
    z-index: var(--z-topbar);
    min-height: var(--topbar-height);
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 1rem 1.75rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.top-bar--modern .top-bar__title {
    letter-spacing: -0.02em;
}

.topbar-hamburger {
    font-size: 1.6rem;
    line-height: 1;
    min-width: 2.5rem;
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.letter-spacing-tight {
    letter-spacing: 0.08em;
    font-size: 0.65rem !important;
}

.btn-logout-pill {
    border-radius: var(--radius-pill);
    padding: 0.45rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid var(--gray-200);
    background: #fff;
    color: var(--gray-800);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn-logout-pill:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    color: var(--gray-800);
}

.credit-badge--topbar {
    padding: 0.4rem 0.95rem;
    font-size: 0.8rem;
}

.content-area {
    position: relative;
    z-index: 0;
    padding: clamp(1rem, 2.5vw, 1.75rem) clamp(1rem, 3vw, 2rem) 2.5rem;
    flex: 1;
}

.dashboard-alert {
    border-radius: 14px;
    border: none;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

/* Campaign grid: whole card is clickable; bottom buttons stay above */
.campaign-card-tile .campaign-card-footer {
    z-index: 2;
}

.campaign-card-tile {
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 10px 34px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.campaign-card-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(191, 219, 254, 0.95);
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.10);
}

.campaign-card-tile .progress--dash {
    height: 8px;
}

.campaign-card-tile .card-footer {
    background: rgba(255, 255, 255, 0.95) !important;
}

/* Cards */
.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gray-800);
}

.stat-card .stat-label {
    color: var(--gray-600);
    font-size: 0.85rem;
}

/* Dashboard — modern */
.dashboard-hero {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-card);
    padding: 1.75rem 2rem;
    box-shadow: 0 12px 48px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dashboard-hero__title {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--gray-800);
}

.dashboard-hero__lead {
    max-width: 36rem;
    line-height: 1.55;
}

.stat-card--modern {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 1.35rem 1.5rem;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card--modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.1);
}

.stat-card__glow {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.45;
    top: -50px;
    right: -40px;
    pointer-events: none;
}

.stat-card--blue .stat-card__glow {
    background: #60a5fa;
}

.stat-card--green .stat-card__glow {
    background: #34d399;
}

.stat-card--amber .stat-card__glow {
    background: #fbbf24;
}

.stat-card__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-card__value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--gray-800);
    line-height: 1.15;
}

.stat-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.stat-card--blue .stat-card__icon {
    background: linear-gradient(145deg, #dbeafe, #eff6ff);
    color: #2563eb;
}

.stat-card--green .stat-card__icon {
    background: linear-gradient(145deg, #d1fae5, #ecfdf5);
    color: #059669;
}

.stat-card--amber .stat-card__icon {
    background: linear-gradient(145deg, #fef3c7, #fffbeb);
    color: #d97706;
}

.stat-card--violet .stat-card__glow {
    background: #a78bfa;
}

.stat-card--violet .stat-card__icon {
    background: linear-gradient(145deg, #ede9fe, #f5f3ff);
    color: #6d28d9;
}

.btn-scarlet--lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.dashboard-panel {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: var(--radius-card);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.dashboard-panel__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.dashboard-panel__body {
    background: rgba(255, 255, 255, 0.5);
}

.table-dashboard thead th {
    background: rgba(241, 245, 249, 0.95) !important;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-200);
    padding: 0.85rem 1.25rem;
    white-space: nowrap;
}

.table-dashboard tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-color: rgba(226, 232, 240, 0.75);
}

.table-dashboard tbody tr {
    transition: background 0.15s ease;
}

.table-dashboard tbody tr:hover {
    background: rgba(239, 246, 255, 0.45);
}

.progress--dash {
    height: 6px;
    border-radius: 999px;
    background: var(--gray-200);
    overflow: hidden;
}

.progress--dash .progress-bar {
    border-radius: 999px;
    background: var(--primary-gradient);
    transition: width 0.6s ease;
}

.badge-soft {
    font-weight: 600;
    font-size: 0.72rem;
    padding: 0.35em 0.75em;
}

.badge-soft--neutral {
    background: #f1f5f9;
    color: #475569;
}

.badge-soft--warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-soft--success {
    background: #d1fae5;
    color: #065f46;
}

.badge-soft--info {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-soft--dark {
    background: #e2e8f0;
    color: #334155;
}

.dashboard-empty__icon {
    width: 72px;
    height: 72px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 20px;
    background: linear-gradient(145deg, #dbeafe, #eff6ff);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}

/* Wizard — macro steps + detailed */
.wizard-macro {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-600);
}

.wizard-macro__item {
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.wizard-macro__item.is-active {
    color: var(--primary);
    background: var(--primary-light);
}

.wizard-macro__sep {
    color: #cbd5e1;
    font-weight: 400;
}

.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gray-200);
    z-index: 0;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.wizard-step .step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.3s;
}

.wizard-step.completed .step-circle {
    background: var(--primary);
    color: #fff;
}

.wizard-step.active .step-circle {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 4px var(--primary-light);
}

.wizard-step .step-label {
    font-size: 0.65rem;
    color: var(--gray-600);
    margin-top: 0.5rem;
    text-align: center;
    max-width: 72px;
    line-height: 1.2;
}

.wizard-step.active .step-label,
.wizard-step.completed .step-label {
    color: var(--primary);
    font-weight: 600;
}

.wizard-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--radius-card);
    padding: 2.5rem;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-soft);
}

.wizard-card .wizard-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.wizard-card .wizard-subtitle {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* Keyword Badge */
.keyword-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    margin: 0.25rem;
    font-size: 0.85rem;
}

.keyword-badge.ai-generated {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

/* Campaign overview — negative keyword suggestions (member read-only) */
.keyword-badge-negative {
    font-weight: 500;
    font-size: 0.8rem;
    border-color: #e2e8f0 !important;
    background: #f8fafc !important;
}

/* Wizard step 7 — AI keywords: compact grid (less vertical scroll) */
.ai-keywords-panel {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.04) 0%, rgba(255, 255, 255, 0.6) 100%);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-card);
    padding: 1rem 1.1rem 1.15rem;
    margin-top: 0.25rem;
}

.ai-keywords-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 0.5rem 0.65rem;
    align-items: stretch;
}

@media (min-width: 1200px) {
    .ai-keywords-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

.ai-keyword-cell {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.35rem;
    padding: 0.2rem 0.45rem 0.2rem 0.35rem;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ai-keyword-cell:focus-within {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ai-keyword-cell__idx {
    flex: 0 0 auto;
    width: 1.65rem;
    height: 1.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    background: var(--primary-gradient);
    border-radius: 8px;
    line-height: 1;
}

.ai-keyword-cell .ai-keyword-input {
    flex: 1 1 auto;
    min-width: 0;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.2rem 0.15rem;
    font-size: 0.8125rem;
    line-height: 1.35;
}

.ai-keyword-cell .ai-keyword-input:focus {
    outline: none;
}

.ai-keyword-cell .ai-keyword-input::placeholder {
    color: var(--gray-400);
}

/* Wizard step 8 — review keywords: grid + editable */
.review-step-toolbar {
    gap: 0.75rem;
}

.review-keywords-panel {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.035) 0%, rgba(255, 255, 255, 0.75) 100%);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-card);
    padding: 1rem 1.1rem 1.15rem;
}

.review-keywords-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 0.5rem 0.65rem;
    align-items: stretch;
}

@media (min-width: 1200px) {
    .review-keywords-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

.review-keyword-cell {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.4rem;
    padding: 0.3rem 0.5rem 0.3rem 0.4rem;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.review-keyword-cell:focus-within {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.review-keyword-cell .form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0;
    cursor: pointer;
}

.review-keyword-cell__badge {
    flex: 0 0 auto;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    line-height: 1;
}

.review-keyword-cell__badge--ai {
    background: #d1fae5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.review-keyword-cell__badge--user {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.review-keyword-cell .review-kw-input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.25rem 0.2rem;
    font-size: 0.8125rem;
    min-width: 0;
}

.review-keyword-cell .review-kw-input:focus {
    outline: none;
}

/* Wizard step 9 — RSA ad copy: responsive grid + round pickers */
.adcopy-section-panel {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.04) 0%, rgba(255, 255, 255, 0.65) 100%);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-card);
    padding: 1rem 1.1rem 1.15rem;
    margin-bottom: 0.25rem;
}

.adcopy-section-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.adcopy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
    gap: 0.65rem;
    align-items: start;
}

.adcopy-grid--descriptions {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

@media (min-width: 1200px) {
    .adcopy-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }

    .adcopy-grid--descriptions {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

.adcopy-card {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.65rem 0.8rem;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    min-width: 0;
}

.adcopy-card:focus-within {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.adcopy-card__body {
    flex: 1 1 auto;
    min-width: 0;
}

.adcopy-card .form-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.adcopy-card .adcopy-len-meta {
    margin-top: 0.2rem;
    font-variant-numeric: tabular-nums;
}

/* Circular “radio-style” checkboxes — wizard, brand setup, ad copy step */
.form-check-input.adcopy-check--round,
.wizard-app .form-check-input[type="checkbox"],
.brand-setup-app .form-check-input[type="checkbox"] {
    width: 1.28rem;
    height: 1.28rem;
    margin-top: 0.42rem;
    flex-shrink: 0;
    border-radius: 50% !important;
    border-width: 2px;
    cursor: pointer;
}

.adcopy-card--description .form-check-input.adcopy-check--round {
    margin-top: 0.55rem;
}

.wizard-app .review-keyword-cell .form-check-input[type="checkbox"] {
    margin-top: 0;
}

.form-check-input.adcopy-check--round:focus,
.wizard-app .form-check-input[type="checkbox"]:focus,
.brand-setup-app .form-check-input[type="checkbox"]:focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.22);
}

.form-check-input.adcopy-check--round:checked,
.wizard-app .form-check-input[type="checkbox"]:checked,
.brand-setup-app .form-check-input[type="checkbox"]:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

.form-check-input.adcopy-check--round:checked[type="checkbox"],
.wizard-app .form-check-input[type="checkbox"]:checked,
.brand-setup-app .form-check-input[type="checkbox"]:checked {
    --bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
    background-size: 0.7rem;
    background-position: center;
}

/* Credit Badge */
.credit-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #fef9c3, #fde68a);
    color: #422006;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Buttons */
.btn-scarlet {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    padding: 0.65rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.btn-scarlet:hover {
    filter: brightness(1.05);
    color: #fff;
    transform: translateY(-1px);
}

/* Table */
.table-scarlet th {
    background: var(--gray-100);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-600);
}

/* Mobile: subtle backdrop for the drawer */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: var(--z-sidebar-backdrop);
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.sidebar-backdrop:not([hidden]) {
    display: block;
}

@media (min-width: 769px) {
    .sidebar-backdrop {
        display: none !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .content-area {
        padding: 1rem 1.15rem 2rem;
    }
    .dashboard-hero {
        padding: 1.25rem 1.35rem;
    }
    :root {
        --topbar-height: 4.35rem;
    }
    .top-bar {
        left: 0;
        padding: 0.85rem 1.15rem;
    }
    .sidebar {
        transform: translateX(-100%);
        width: min(var(--sidebar-width-expanded), 88vw) !important;
        box-shadow: 12px 0 40px rgba(15, 23, 42, 0.2);
        z-index: var(--z-sidebar-drawer);
        pointer-events: none;
    }
    .sidebar.show {
        transform: translateX(0);
        pointer-events: auto;
    }
    .main-content {
        margin-left: 0 !important;
    }
    .wizard-step .step-label {
        display: none;
    }
    .wizard-step .step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.65rem;
    }
}

/* ---------------------------------------------------------------------------
   Step 10 — Google Search ad preview (RSA mock)
   --------------------------------------------------------------------------- */
.g-preview {
    border-radius: var(--radius-card);
    border: 1px solid var(--gray-200);
    background: #fff;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.g-preview__toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--gray-200);
}

.g-preview__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.g-preview__search-wrap {
    flex: 1;
    position: relative;
    max-width: 560px;
}

.g-preview__search-input {
    width: 100%;
    border: 1px solid #dfe1e5;
    border-radius: 999px;
    padding: 0.55rem 2.5rem 0.55rem 1rem;
    font-size: 0.95rem;
    background: #fff;
    box-shadow: 0 1px 4px rgba(32, 33, 36, 0.08);
}

.g-preview__search-input:focus {
    outline: none;
    border-color: #c6cfdc;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.12);
}

.g-preview__search-input[readonly] {
    background: #eef2ff;
    border-color: rgba(59, 130, 246, 0.25);
    color: #111827;
    cursor: default;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08), 0 1px 4px rgba(32, 33, 36, 0.06);
}

.g-preview__search-input[readonly]:focus {
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08), 0 1px 4px rgba(32, 33, 36, 0.06);
}

.g-preview__search-icon {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #4285f4;
    font-size: 1rem;
    pointer-events: none;
}

.btn-preview-shuffle {
    font-size: 0.95rem;
    font-weight: 800;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.25);
}

.btn-preview-shuffle:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.3);
}

.btn-preview-shuffle:active {
    transform: translateY(0);
}

.g-preview__serp {
    padding: 1.25rem 1.25rem 1.5rem;
    background: #fff;
}

.g-preview__hint {
    font-size: 0.8rem;
}

.g-preview__ad {
    max-width: 600px;
}

.g-preview__ad-label {
    margin-bottom: 0.35rem;
}

.g-preview__ad-pill {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #5f6368;
    text-transform: uppercase;
}

.g-preview__headline-combined {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.35;
    margin: 0 0 0.35rem;
}

.g-preview__hl-part {
    color: #1a0dab;
    cursor: default;
}

.g-preview__hl-part:hover {
    text-decoration: underline;
}

.g-preview__hl-sep {
    color: #1a0dab;
    font-weight: 300;
}

.g-preview__url-line {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.g-preview__url-icon {
    color: #202124;
    font-size: 0.75rem;
}

.g-preview__url-text {
    font-size: 0.875rem;
    color: #137333;
    line-height: 1.3;
    word-break: break-word;
}

.g-preview__descriptions {
    color: #4d5156;
    font-size: 0.875rem;
    line-height: 1.45;
}

.g-preview__desc {
    margin: 0 0 0.35rem;
}

.g-preview__desc:last-child {
    margin-bottom: 0;
}

@media (max-width: 576px) {
    .g-preview__headline-combined {
        font-size: 1rem;
    }
}

/* ========== Member campaign overview (show) ========== */
.campaign-overview {
    --cco-radius: 16px;
    --cco-shadow: 0 4px 28px rgba(15, 23, 42, 0.07);
    --cco-border: 1px solid rgba(226, 232, 240, 0.95);
}

.campaign-overview .cco-card {
    border-radius: var(--cco-radius);
    box-shadow: var(--cco-shadow);
    border: var(--cco-border) !important;
    overflow: hidden;
    background: #fff;
}

.campaign-overview .cco-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.35rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 55%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.campaign-overview .cco-card__head-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary, #2563eb);
    margin: 0;
}

.campaign-overview .cco-card__head-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(96, 165, 250, 0.1));
    color: #1d4ed8;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.campaign-overview .cco-card__body {
    padding: 1.4rem 1.35rem;
}

.campaign-overview .cco-stat-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--gray-500, #64748b);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.campaign-overview .cco-stat-value {
    font-weight: 600;
    font-size: 0.95rem;
    color: #0f172a;
    line-height: 1.4;
    word-break: break-word;
}

.campaign-overview .cco-kw-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1.1rem;
    background: linear-gradient(165deg, #ecfdf5 0%, #f8fafc 45%, #f1f5f9 100%);
    border-radius: 14px;
    border: 1px solid rgba(167, 243, 208, 0.45);
}

.campaign-overview .cco-kw-cloud .keyword-badge {
    margin: 0;
}

.campaign-overview .cco-negative-wrap {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.07) 0%, #fff 55%);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
}

.campaign-overview .cco-ad-block-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.65rem;
}

.campaign-overview .cco-ad-line {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.7rem 0.95rem;
    margin-bottom: 0.45rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e8eef4;
    font-size: 0.9rem;
    line-height: 1.45;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.campaign-overview .cco-ad-line:last-child {
    margin-bottom: 0;
}

.campaign-overview .cco-ad-line.is-approved {
    border-color: rgba(34, 197, 94, 0.4);
    background: linear-gradient(90deg, rgba(236, 253, 245, 0.65) 0%, #f8fafc 100%);
}

.campaign-overview .cco-ad-line .bi-check-circle-fill {
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.campaign-overview .cco-sidebar-card {
    border-radius: var(--cco-radius);
    box-shadow: var(--cco-shadow);
    border: var(--cco-border) !important;
}

@media (min-width: 992px) {
    .campaign-overview .cco-sidebar-sticky {
        position: sticky;
        top: 1rem;
    }
}

.campaign-overview .cco-status-badge {
    font-size: 0.82rem !important;
    padding: 0.45rem 1.1rem !important;
    border-radius: 999px !important;
    font-weight: 600;
}

.campaign-overview .cco-sidebar-card .progress {
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.campaign-overview .cco-sidebar-card .alert-info {
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(147, 197, 253, 0.12));
    color: #1e3a5f;
}

.campaign-overview .cco-btn-edit {
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.4rem 0.95rem;
}

.campaign-overview .cco-meta-card .card-body {
    padding: 1.25rem 1.35rem;
}

.campaign-overview .cco-progress-fill {
    background: var(--primary-gradient);
}

/* Post-signup — campaign start modal */
.modal-campaign-welcome .modal-dialog {
    max-width: 520px;
}

.modal-campaign-welcome .modal-content.modal-campaign-welcome__content {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.modal-campaign-welcome__gradient {
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, #2563eb, #38bdf8, #818cf8);
    opacity: 0.95;
}

.modal-campaign-welcome__icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.12), rgba(56, 189, 248, 0.15));
    color: var(--primary);
    font-size: 1.45rem;
    flex-shrink: 0;
}

.modal-campaign-welcome .modal-footer .btn-scarlet {
    min-width: 220px;
}

.modal-campaign-welcome .letter-spacing-tight {
    letter-spacing: 0.12em;
    font-size: 0.65rem;
}

.modal-campaign-welcome__bullets li {
    line-height: 1.45;
}
