/* =========================================
   FLOURISH DIRECT - Global Styles
   Forest Green Theme
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

:root {
    /* Brand Colors */
    --primary: #166534;
    --primary-dark: #14532d;
    --primary-light: #22c55e;
    --primary-bg: #f0fdf4;
    --gold: #C9A84C;
    --gold-light: #f0d78a;

    /* Neutral Colors */
    --white: #ffffff;
    --bg: #f5f6f8;
    --card-bg: #ffffff;
    --border: #e5e7eb;
    --text-primary: #0a0a0a;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;

    /* Spacing */
    --nav-height: 70px;
    --ticker-height: 38px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 18px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-primary: 0 4px 24px rgba(22, 101, 52, 0.22);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    /* Removed smooth scroll as it often causes jitter with sticky elements */
    scroll-behavior: auto !important;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: 'Inter', Arial, sans-serif;
    color: var(--text-primary);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ===== TICKER BAR ===== */
.ticker-bar {
    background: var(--primary);
    color: #fff;
    height: var(--ticker-height);
    display: flex;
    align-items: center;
    overflow: hidden;
    font-size: 12.5px;
    font-weight: 500;
    position: relative;
    z-index: 100;
}

.ticker-label {
    background: var(--primary-dark);
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .ticker-label {
        padding: 0 10px;
        font-size: 11px;
    }
}

.ticker-track-wrapper {
    flex: 1;
    overflow: hidden;
}

.ticker-track {
    display: flex;
    gap: 0;
    animation: ticker-scroll 40s linear infinite;
    white-space: nowrap;
    width: max-content;
    /* Ensure stable width calculations */
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.ticker-item .symbol {
    font-weight: 700;
}

.ticker-item .price {
    opacity: 0.9;
}

.ticker-track {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.ticker-item .change.up {
    color: #86efac;
}

.ticker-item .change.down {
    color: #fca5a5;
}

@keyframes ticker-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* ===== HEADER / NAVBAR ===== */
.header {
    background: #ffffff;
    /* Solid white for better performance */
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    will-change: transform;
    transform: translateZ(0);
    /* Force GPU layering */
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    line-height: 1.15;
}

.logo-img {
    height: 48px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.3px;
}

.logo-tagline {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Beta Badge */
.beta-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    transition: all 0.2s;
}

.beta-badge {
    background: linear-gradient(135deg, var(--gold), #a07832);
    color: var(--white);
    font-size: 9px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    box-shadow: 0 2px 10px rgba(201, 168, 76, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    line-height: 1;
}

.beta-link:hover .beta-badge {
    transform: scale(1.05) translateY(-1px);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.5);
}

/* Footer Logo */
.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-logo-img {
    height: 36px;
    width: auto;
    border-radius: 6px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-link {
    position: relative;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-bg);
}

.nav-link .nav-arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.nav-link:hover .nav-arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.nav-item {
    position: relative;
}

.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    padding: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: all 0.2s;
    z-index: 200;
}

.nav-item:hover .dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 9px 14px;
    font-size: 13.5px;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    transition: all 0.15s;
}

.dropdown a:hover {
    background: var(--primary-bg);
    color: var(--primary);
    padding-left: 20px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.25s;
    cursor: pointer;
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), #a07832);
    color: #fff;
    border: 2px solid transparent;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.4);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 23px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 999;
    /* Below header (1000) */
    overflow-y: auto;
    padding: calc(var(--nav-height) + 20px) 24px 40px;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid var(--border);
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    display: block;
    border-bottom: 1px solid var(--border);
}

.mobile-nav a:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

/* ===== PAGE LAYOUT ===== */
.page-wrapper {
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 72px 0;
}

.section-sm {
    padding: 48px 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 14px;
}

.section-title span {
    color: var(--primary);
}

.section-sub {
    font-size: 15.5px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header .section-sub {
    margin: 0 auto;
}

/* Section Divider */
.divider-line {
    display: inline-block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    border-radius: 2px;
    margin-bottom: 18px;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, #f0fdf4 0%, #fff 60%, #fffbf0 100%);
    position: relative;
    overflow: clip;
    /* More performant than hidden */
    padding: 0;
    min-height: 680px;
    /* Further increased to ensure no growth */
    display: flex;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    contain: strict;
    /* Fully isolate from layout */
    z-index: 0;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
}

.hero-circle-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -100px;
}

.hero-circle-2 {
    width: 300px;
    height: 300px;
    background: var(--gold);
    bottom: -100px;
    left: -50px;
}

.hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px 64px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.3fr 1fr 360px;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Hero Slider/Content */
.hero-slides {
    position: relative;
    overflow: hidden;
    height: 520px;
    /* Standardize height for stability - accommodates content better */
}

.hero-slide {
    display: none;
    animation: fadeIn 0.5s ease;
    border-radius: var(--radius-lg);
    padding: 44px 40px;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    flex-direction: column;
    justify-content: center;
}

.hero-slide.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 50px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 20px;
    width: fit-content;
    border: 1px solid rgba(22, 101, 52, 0.2);
}

.hero-slide h1 {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.hero-slide h1 span {
    color: var(--primary);
}

.hero-slide p {
    font-size: 15.5px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-dots {
    display: flex;
    gap: 8px;
    margin-top: 28px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.hero-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

/* Hero Signup Card */
.hero-signup-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 32px 28px;
    border: 1px solid rgba(22, 101, 52, 0.08);
    position: relative;
}

.hero-signup-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 20px;
    right: 20px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    border-radius: 2px;
}

.signup-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.signup-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--white);
    transition: border 0.2s;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 14px 0 20px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.form-check input {
    margin-top: 2px;
    accent-color: var(--primary);
}

.or-divider {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    position: relative;
    margin: 16px 0;
}

.or-divider::before,
.or-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: var(--border);
}

.or-divider::before {
    left: 0;
}

.or-divider::after {
    right: 0;
}

/* ===== TRUST BANNER ===== */
.trust-banner {
    background: var(--white);
    padding: 0;
    /* Remove vertical padding to stop sub-pixel fighting */
    border-bottom: 1px solid var(--border);
    height: 60px;
    /* Fixed height to stop the 60px/61px blinking */
    display: flex;
    align-items: center;
    contain: strict;
    /* Fully isolate dimensions */
    overflow: hidden;
}

.trust-banner-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    /* Prevent intra-item wrapping shake */
}

.partner-logo {
    height: 28px;
    width: auto;
    aspect-ratio: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.8;
    transition: opacity 0.3s;
    backface-visibility: hidden;
    will-change: opacity;
    image-rendering: -webkit-optimize-contrast;
}

.trust-item:hover .partner-logo {
    filter: grayscale(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .trust-banner-inner {
        gap: 20px;
        flex-direction: column;
        text-align: center;
    }

    .trust-banner {
        height: auto;
        min-height: 80px;
        padding: 24px 0;
    }
}

/* ===== BROKERAGE HIGHLIGHTS ===== */
.brokerage-highlights {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 30px 0;
    position: relative;
    z-index: 10;
}

.bh-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
}

.bh-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px;
    border-right: 1px solid var(--border);
}

.bh-item:last-child {
    border-right: none;
}

.bh-value-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 8px;
    position: relative;
}

.bh-currency {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-right: 2px;
}

.bh-value {
    font-family: inherit;
    font-size: 64px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    text-shadow: 0 4px 20px rgba(22, 101, 52, 0.15);
}

.bh-suffix {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-left: 2px;
}

.bh-strikethrough {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 4px;
}

.bh-label-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.bh-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--primary);
}

@media (max-width: 768px) {
    .bh-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .bh-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 0 0 30px 0;
    }

    .bh-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* ===== STATS STRIP ===== */
.stats-strip {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    contain: content;
    /* Isolate rendering */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.stat-item {
    text-align: center;
    padding: 16px 20px;
    border-right: 1px solid var(--border);
    position: relative;
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
    display: inline-block;
    min-width: 80px;
    /* Prevent text shift during counter animation */
}

.stat-label {
    font-size: 12.5px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== SERVICE CARDS ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.service-card:hover {
    border-color: transparent;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    transform: translateY(-8px) scale(1.02);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    transition: all 0.3s;
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: #fff;
}

.service-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.service-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 20px;
}

.service-link {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.service-card:hover .service-link {
    gap: 10px;
}

/* ===== BENEFITS GRID ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.benefit-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 24px;
    border: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.benefit-card:hover {
    border-color: transparent;
    box-shadow: 0 16px 32px rgba(22, 101, 52, 0.12);
    transform: translateY(-6px);
}

.benefit-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    color: var(--primary);
    transition: all 0.25s;
}

.benefit-card:hover .benefit-icon {
    background: var(--primary);
    color: #fff;
}

.benefit-content h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.benefit-content p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== INSURANCE TABS ===== */

.tab-nav {
    display: flex;
    gap: 4px;
    background: var(--bg);
    padding: 6px;
    border-radius: 50px;
    width: fit-content;
    margin-bottom: 36px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 600px) {
    .tab-nav {
        width: 100%;
        border-radius: var(--radius);
        justify-content: flex-start;
    }

    .tab-btn {
        flex: 1 1 auto;
        padding: 8px 16px;
        text-align: center;
    }
}

.tab-btn {
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: transparent;
}

.tab-btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.plan-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1.5px solid var(--border);
    transition: all 0.25s;
}

.plan-card:hover,
.plan-card.featured {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(22, 101, 52, 0.1);
}

.plan-card.featured {
    background: linear-gradient(135deg, var(--primary-bg), #fff);
}

.plan-icon {
    font-size: 32px;
    margin-bottom: 14px;
}

.plan-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.plan-card p {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.plan-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.plan-tag {
    font-size: 11.5px;
    padding: 4px 10px;
    background: var(--bg);
    border-radius: 50px;
    color: var(--text-secondary);
    font-weight: 500;
    border: 1px solid var(--border);
}

/* ===== PARTNERS SECTION ===== */
.partner-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.partner-logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.partner-logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
}

.partner-name {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
}

.partner-tagline {
    font-size: 13px;
    color: var(--text-secondary);
}

.partner-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 28px;
}

.partner-products-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.partner-products {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 600;
    border: 1px solid rgba(22, 101, 52, 0.15);
    transition: all 0.2s;
}

.product-chip:hover {
    background: var(--primary);
    color: #fff;
}

/* ===== FAQ / ACCORDION ===== */
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.2s;
}

.faq-item.open {
    border-color: var(--primary);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    color: var(--text-primary);
    transition: color 0.2s;
}

.faq-item.open .faq-question {
    color: var(--primary);
}

.faq-question .faq-icon {
    font-size: 20px;
    transition: transform 0.3s;
    color: var(--primary);
    flex-shrink: 0;
}

.faq-item.open .faq-question .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 22px;
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 22px 20px;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    text-align: center;
    padding: 72px 24px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 250px;
    height: 250px;
    background: rgba(201, 168, 76, 0.1);
    border-radius: 50%;
}

.cta-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.cta-section p {
    font-size: 16px;
    opacity: 0.85;
    margin-bottom: 32px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn-white {
    background: #fff;
    color: var(--primary);
    border: 2px solid #fff;
}

.btn-white:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-2px);
}

.btn-white-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-white-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
    border-color: rgba(22, 101, 52, 0.2);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: 'Playfair Display', serif;
    font-size: 80px;
    color: var(--primary);
    opacity: 0.1;
    line-height: 1;
}

.stars {
    color: var(--gold);
    font-size: 14px;
    margin-bottom: 14px;
}

.testimonial-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.author-name {
    font-weight: 700;
    font-size: 14px;
}

.author-location {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== ABOUT PAGE ===== */
.about-hero {
    background: linear-gradient(135deg, var(--primary-bg) 0%, #fff 100%);
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-visual {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-visual::before {
    content: '₹';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 200px;
    opacity: 0.05;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.about-visual-stat {
    margin: 16px 0;
}

.about-visual-num {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
}

.about-visual-label {
    font-size: 13px;
    opacity: 0.8;
}

.philosophy-list {
    margin-top: 24px;
}

.philosophy-item {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.philosophy-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.philosophy-num {
    width: 36px;
    height: 36px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}

.philosophy-item h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 5px;
}

.philosophy-item p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    border: 1px solid var(--border);
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.contact-detail:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-detail-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-detail-value {
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.5;
}

.contact-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    border: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: none;
    text-align: center;
    padding: 24px;
    background: #ecfdf5;
    border-radius: var(--radius);
    border: 1px solid #6ee7b7;
}

/* ===== PAGE HERO ===== */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 14px;
}

.page-hero p {
    font-size: 16px;
    opacity: 0.85;
    line-height: 1.7;
    max-width: 560px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    opacity: 0.75;
    margin-bottom: 20px;
}

.breadcrumb a {
    opacity: 0.85;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb span {
    opacity: 0.5;
}

/* ===== FOOTER ===== */
.footer {
    background: #0d0d0d;
    color: #e5e7eb;
}

.footer-top {
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand p {
    font-size: 13.5px;
    color: #9ca3af;
    line-height: 1.75;
    margin: 16px 0 24px;
    max-width: 280px;
}

.footer-logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.footer-logo-tagline {
    font-size: 10px;
    color: #9ca3af;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #9ca3af;
    transition: all 0.2s;
}

.social-link:hover {
    background: var(--primary);
    color: #fff;
}

.footer-col h4 {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e5e7eb;
    margin-bottom: 18px;
}

.footer-col a,
.footer-col li {
    display: block;
    font-size: 13.5px;
    color: #9ca3af;
    padding: 5px 0;
    transition: all 0.15s;
}

.footer-col a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-bottom {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: #6b7280;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #6b7280;
}

.footer-bottom-links a:hover {
    color: #e5e7eb;
}

/* Disclaimer strip */
.disclaimer-strip {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.9);
    padding: 14px 24px;
    font-size: 11.5px;
    text-align: center;
    line-height: 1.6;
}

/* ===== UTILITY CLASSES ===== */
.text-primary {
    color: var(--primary);
}

.text-center {
    text-align: center;
}

.text-secondary {
    color: var(--text-secondary);
}

.fw-bold {
    font-weight: 700;
}

.mt-auto {
    margin-top: auto;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ===== ANIMATIONS ===== */
.fade-up {
    opacity: 0;
    /* Removed translateY to prevent scrolling layout jitter */
    transition: opacity 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        padding-top: 24px;
        gap: 32px;
    }

    /* Hide center image on tablets to keep focus on carousel and signup */
    .hero-inner>div:nth-child(2) {
        display: none;
    }

    .hero-signup-card {
        max-width: 100%;
    }

    .services-grid,
    .benefits-grid,
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

    .about-visual,
    .contact-info-card,
    .contact-form-card,
    .plan-card,
    .auth-form-panel {
        padding: 32px 24px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .section {
        padding: 48px 0;
    }

    .container {
        padding: 0 20px;
    }

    .nav-links,
    .nav-actions .btn-outline,
    .nav-actions .btn-gold {
        display: none;
    }

    .nav-actions .btn-gold {
        padding: 8px 14px;
        font-size: 12px;
    }

    .hamburger {
        display: flex;
    }

    .hero-slide h1 {
        font-size: 26px;
    }

    .hero-slide p {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .hero-slides {
        height: 520px;
        /* Fixed height on mobile too for stability */
        overflow: hidden;
    }

    .hero-slide {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
    }

    .hero-slide.active {
        display: flex;
    }

    .services-grid,
    .benefits-grid,
    .testimonials-grid,
    .plans-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-sub {
        font-size: 14.5px;
    }

    .page-hero {
        padding: 56px 0;
    }

    .page-hero h1 {
        font-size: 28px;
    }

    .cta-section h2 {
        font-size: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-slide h1 {
        font-size: 24px;
    }

    .nav-actions .btn-primary {
        padding: 8px 12px;
        font-size: 12px;
    }

    .logo-name {
        font-size: 16px;
    }

    .logo-tagline {
        font-size: 8px;
    }
}

/* ===== AUTH / LOGIN PAGE ===== */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0fdf4 0%, #fff 40%, #fffbf0 100%);
    padding: 100px 24px 48px;
    position: relative;
    overflow: hidden;
}

.auth-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.auth-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
}

.auth-circle-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -150px;
    right: -100px;
}

.auth-circle-2 {
    width: 350px;
    height: 350px;
    background: var(--gold);
    bottom: -120px;
    left: -80px;
}

.auth-circle-3 {
    width: 200px;
    height: 200px;
    background: var(--primary);
    top: 40%;
    left: 10%;
    animation: authFloat 6s ease-in-out infinite;
}

@keyframes authFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 960px;
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(22, 101, 52, 0.06);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Brand Panel */
.auth-brand-panel {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 48px 40px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.auth-brand-panel::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.auth-brand-panel::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -40px;
    width: 180px;
    height: 180px;
    background: rgba(201, 168, 76, 0.12);
    border-radius: 50%;
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    color: #fff;
}

.auth-brand-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.auth-brand-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.auth-brand-content h2 span {
    color: var(--gold);
}

.auth-brand-content p {
    font-size: 14.5px;
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 32px;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.auth-feature-icon {
    font-size: 18px;
}

/* Form Panel */
.auth-form-panel {
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-wrapper {
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
}

/* Tab Toggle */
.auth-tabs {
    display: flex;
    position: relative;
    background: var(--bg);
    border-radius: 50px;
    padding: 4px;
    margin-bottom: 28px;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 50px;
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}

.auth-tab.active {
    color: var(--primary);
}

.auth-tab-indicator {
    position: absolute;
    top: 4px;
    left: 0;
    width: 50%;
    height: calc(100% - 8px);
    background: var(--white);
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    transition: left 0.3s ease;
}

/* Auth Message */
.auth-message {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-message.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.auth-message.success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Auth Forms */
.auth-form h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.auth-form-sub {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
}

.input-icon-wrapper .form-control {
    padding-left: 40px;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    cursor: pointer;
}

.auth-remember input {
    accent-color: var(--primary);
}

.auth-forgot {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.auth-forgot:hover {
    opacity: 0.8;
}

.auth-submit {
    width: 100%;
    padding: 13px;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    position: relative;
}

.auth-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-switch {
    text-align: center;
    font-size: 13.5px;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Auth-aware nav button */
.btn-auth-logout {
    background: transparent;
    color: #dc2626;
    border: 1.5px solid #dc2626;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-auth-logout:hover {
    background: #dc2626;
    color: #fff;
}

/* Auth user greeting in nav */
.nav-user-greeting {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-user-avatar {
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* Responsive Auth */
@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        display: none;
    }

    .auth-form-panel {
        padding: 32px 24px;
    }

    .auth-form-wrapper {
        max-width: 100%;
    }
}

/* Custom Stock Detail Card Overlay */
.custom-stock-card {
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    position: relative;
    color: var(--text-primary);
}

.stock-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.stock-card-title {
    display: flex;
    flex-direction: column;
}

.stock-card-name {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
}

.stock-card-ticker {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-top: 4px;
}

.stock-card-price-section {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 32px;
}

.stock-card-price {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
}

.stock-card-change {
    font-size: 20px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 8px;
}

.stock-card-change.up {
    color: #166534;
    background: #f0fdf4;
}

.stock-card-change.down {
    color: #991b1b;
    background: #fef2f2;
}

.stock-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    border-top: 1px solid var(--border);
    padding-top: 32px;
}

.stock-card-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stock-item-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stock-item-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.loading-stock {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 16px;
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.stock-error {
    text-align: center;
    padding: 40px;
    color: #dc2626;
}