/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Brand Colors (Apple Minimalist) */
    --primary: #1d1d1f;
    /* Apple Dark Grey / Black */
    --primary-dark: #000000;

    /* Secondary Colors */
    --secondary: #86868b;
    /* Apple Muted Grey */

    /* Light Theme Palette */
    --bg-body: #ffffff;
    --bg-surface: #f5f5f7;
    /* Apple Light Grey Section Bg */
    --bg-glass: rgba(255, 255, 255, 0.72);

    --text-main: #1d1d1f;
    --text-muted: #86868b;

    --border: #d2d2d7;

    /* Shadows & Effects (Ultra Soft) */
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
    --glass-blur: blur(20px);

    /* Spacing & Layout */
    --container-width: 1200px;
    /* Slight squeeze for elegance */
    --header-height: 52px;
    /* Apple headers are thin */
    --radius-sm: 8px;
    --radius-md: 18px;
    --radius-lg: 32px;
    --radius-pill: 980px;
    /* Perfect pill buttons */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    /* Crisp font rendering */
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

button,
a,
input,
select {
    min-height: 44px;
    padding: 10px 16px;
}

body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Animation Utils */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* =========================================
   2. UTILITIES & TYPOGRAPHY
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
    /* Increased bottom margin for luxury space */
}

.section-header h2 {
    font-size: clamp(36px, 6vw, 56px);
    /* Larger headings */
    font-weight: 700;
    letter-spacing: -0.02em;
    /* Apple-style tight tracking */
    margin-bottom: 24px;
    line-height: 1.1;
}

.section-header p {
    font-size: 20px;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.badge.primary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: -0.01em;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    transform: scale(1.02);
    background: #000000;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text-main);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--text-muted);
    background: var(--bg-surface);
}

/* =========================================
   3. NAVIGATION
   ========================================= */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: #000;
    color: #fff;
    z-index: 1001;
    display: flex;
    align-items: center;
    overflow: hidden;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.ticker-track {
    display: flex;
    gap: 50px;
    white-space: nowrap;
    animation: scrollRight 60s linear infinite;
    width: max-content;
    will-change: transform;
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.navbar {
    position: fixed;
    top: 40px;
    /* Adjusted for top-bar */
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    background: rgba(255, 255, 255, 0.95);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-main);
    flex-shrink: 0;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-dark);
}

.mobile-auth-btn {
    display: none !important;
}

.nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-shrink: 0;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    position: relative;
    padding-top: 180px;
    /* More top space */
    padding-bottom: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--bg-body);
    /* Ensure clean background */
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1000px;
}

.hero h1 {
    font-size: clamp(56px, 9vw, 96px);
    /* Massive Apple-style hero text */
    line-height: 1.05;
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: -0.03em;
    /* Very tight tracking for huge text */
}

.hero-title-anim {
    animation: fadeInUpApple 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.hero-subtitle-anim {
    display: inline-block;
    animation: fadeInUpApple 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
    opacity: 0;
}

@keyframes fadeInUpApple {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p {
    font-size: 24px;
    /* Larger body text */
    color: var(--text-muted);
    margin-bottom: 56px;
    max-width: 680px;
    margin-inline: auto;
    font-weight: 500;
    animation: fadeInUpApple 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

.hero-stats {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 48px;
}

.stat-pill {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Floating Animation */
.floating-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.float-icon {
    position: absolute;
    font-size: 28px;
    opacity: 0.8;
    /* Increased visibility */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    animation: float 10s infinite ease-in-out;
    transition: transform 0.3s ease;
}

.float-icon:hover {
    transform: scale(1.1);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* =========================================
   5. SECTIONS & GRIDS
   ========================================= */
section {
    padding: 140px 0;
    /* Massive whitespace */
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Cards */
.card {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.card-icon {
    font-size: 40px;
    margin-bottom: 24px;
    display: block;
}

.card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 16px;
}

.card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Comparison Section */
.comparison-box {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 48px;
    height: 100%;
    border: 1px solid var(--border);
}

.comparison-box.problem {
    border-left: 4px solid #ff3d00;
}

.comparison-box.solution {
    border: 2px solid var(--primary);
    background: rgba(72, 255, 0, 0.05);
}

.check-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 12px;
}

.check-list li::before {
    content: '✓';
    color: #2e7d32;
    font-weight: 900;
}

.problem-list li::before {
    content: '✕';
    color: #ff3d00;
}

/* =========================================
   Analytics & Feedback Sections (Apple Style)
   ========================================= */
.analytics-card {
    background: #ffffff;
    /* Contrast against the section's light grey */
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.analytics-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.analytics-value {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 16px;
    display: block;
}

.analytics-label {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
}

.testimonial-card {
    background: var(--bg-surface);
    /* Contrast against the body's white */
    padding: 48px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.star-rating {
    color: #000000;
    /* Apple monochromatic stars */
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.testimonial-quote {
    font-size: 18px;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 32px;
    font-weight: 400;
}

.testimonial-author {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: auto;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 18px;
}

.author-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2px;
}

.author-info p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Pricing */
.price-card {
    background: var(--bg-surface);
    padding: 48px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    transition: 0.3s;
}

.price-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.price-amount {
    font-size: 48px;
    font-weight: 900;
    margin: 24px 0;
    display: block;
    color: var(--text-main);
}

.price-amount span {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Footer */
footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
    margin-top: 80px;
}

/* =========================================
   6. RESPONSIVE & MOBILE
   ========================================= */
@media (max-width: 1024px) {

    .grid-4,
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .mobile-toggle {
        display: block !important;
        background: none;
        border: none;
        font-size: 28px;
        cursor: pointer;
        color: var(--text-main);
        padding: 4px;
        margin-left: auto;
    }

    .nav-actions {
        display: flex;
        justify-content: flex-end;
    }

    .nav-actions .btn {
        display: none !important;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        padding: 0;
        gap: 0;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        text-align: center;

        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        max-height: 0;
        overflow: hidden;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        max-height: 600px;
        padding: 16px 24px 32px;
        gap: 20px;
    }

    .mobile-auth-btn {
        display: list-item !important;
        margin-top: 10px;
        width: 100%;
        padding: 0 24px;
    }

    .mobile-auth-btn .btn {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 12px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    #sidebar-toggle {
        display: flex !important;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: var(--bg-surface) !important;
        z-index: 1001;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 20px;
        box-shadow: var(--shadow-lg);
    }

    .sidebar.active {
        transform: translateX(280px);
    }

    .mobile-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        display: none;
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .mobile-backdrop.active {
        display: block;
        opacity: 1;
    }

    #sidebar-close {
        display: block !important;
    }

    .main-content {
        padding: 16px !important;
        margin-top: 60px;
    }

    .content-card {
        padding: 20px !important;
        border-radius: var(--radius-md);
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: clamp(32px, 10vw, 48px);
    }



    .price-card.featured {
        transform: scale(1);
    }

    /* Fluid Typography */
    h1 {
        font-size: clamp(1.8rem, 6vw, 2.8rem);
    }

    h2 {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
    }

    h3 {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
    }

    p {
        font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    }
}

/* Global Mobile Safety */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Table Wrappers */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

/* Product & Niche Research Mobile Layouts */
@media (max-width: 768px) {
    .pr-layout {
        grid-template-columns: 1fr !important;
    }

    .pr-sidebar {
        display: none !important;
    }

    .pr-modal-content {
        grid-template-columns: 1fr !important;
        height: 95vh !important;
    }

    .pr-modal-left {
        border-right: none !important;
        border-bottom: 1px solid var(--pr-border);
        padding: 16px !important;
    }

    .pr-modal-right {
        padding: 20px !important;
    }

    .pr-intel-grid {
        grid-template-columns: 1fr !important;
    }

    .niche-container {
        flex-direction: column !important;
    }

    .niche-aside {
        width: 100% !important;
        position: static !important;
        max-height: none !important;
        margin-bottom: 20px !important;
    }

    /* Tools Page Mobile Refinements */
    .tools-nav-tabs {
        flex-direction: column;
        margin-bottom: -2rem !important;
    }

    .tools-tab-btn {
        width: 100%;
        text-align: center;
    }

    .tools-header {
        padding: 2rem 1rem 3rem !important;
    }

    .stage-header {
        padding: 1rem !important;
    }

    .stage-grid {
        padding: 1rem !important;
        grid-template-columns: 1fr !important;
    }
}

/* =========================================
   7. AUTH PAGES
   ========================================= */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 24px 60px;
    background-color: var(--bg-body);
    position: relative;
    overflow-x: hidden;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .auth-page {
        padding: 140px 16px 40px;
    }

    .auth-card {
        padding: 32px 24px;
        border-radius: var(--radius-md);
        max-width: 100%;
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: clamp(28px, 5vw, 32px);
    font-weight: 900;
    margin-bottom: 8px;
    color: var(--text-main);
    letter-spacing: -1px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: clamp(14px, 3vw, 16px);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-left: 4px;
}

.form-input,
.form-select {
    width: 100%;
    background: var(--bg-body);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    min-height: 48px;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(72, 255, 0, 0.1);
    transform: translateY(-1px);
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    font-size: 14px;
    font-weight: 600;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    cursor: pointer;
}

.remember-me input {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

.forgot-password {
    color: var(--text-main);
    transition: color 0.2s;
}

.forgot-password:hover {
    color: var(--primary-dark);
}

.auth-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 15px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--text-main);
    font-weight: 800;
    transition: color 0.2s;
}

.auth-footer a:hover {
    color: var(--primary-dark);
}

/* Password Toggle */
.password-toggle-wrapper {
    position: relative;
    width: 100%;
}

.password-toggle-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-muted);
    transition: color 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.password-toggle-btn:hover {
    color: var(--primary-dark);
}

/* Register Specifics */
.error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    display: none;
    animation: slideDown 0.3s ease;
}

.error-message.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.gender-group {
    display: flex;
    gap: 12px;
}

@media (max-width: 768px) {
    .gender-group {
        gap: 10px;
    }
}

.gender-btn {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg-body);
    color: var(--text-muted);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
}

.gender-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.gender-btn.active {
    border-color: var(--primary);
    background: rgba(72, 255, 0, 0.1);
    color: #2e7d32;
    box-shadow: 0 0 0 4px rgba(72, 255, 0, 0.1);
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .payment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .payment-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.payment-btn {
    padding: 14px 10px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg-body);
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    position: relative;
    min-height: 80px;
}

.payment-btn img {
    height: 24px;
    width: auto;
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.3s ease;
}

.payment-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.payment-btn:hover img {
    filter: grayscale(0%) opacity(1);
}

.payment-btn.active {
    border-color: var(--primary);
    background: rgba(72, 255, 0, 0.1);
    color: #2e7d32;
    box-shadow: 0 0 0 4px rgba(72, 255, 0, 0.1);
}

.payment-btn.active img {
    filter: grayscale(0%) opacity(1);
}

.payment-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: var(--bg-body);
}

.payment-btn.disabled:hover {
    transform: none;
    border-color: var(--border);
    box-shadow: none;
}

.payment-soon {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #000;
    color: var(--primary);
    font-size: 9px;
    font-weight: 900;
    padding: 3px 6px;
    border-radius: 6px;
    border: 1px solid var(--primary);
    letter-spacing: 0.5px;
}

.badge-soon {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #000;
    color: var(--primary);
    font-size: 8px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--primary);
    z-index: 5;
}

/* =========================================
   8. VERIFICATION PAGE
   ========================================= */
.verify-card {
    text-align: center;
    max-width: 550px;
}

.verify-icon {
    font-size: 56px;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(72, 255, 0, 0.1);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    color: var(--primary-dark);
}

.verify-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.verify-header p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 32px;
    line-height: 1.5;
}

.code-inputs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.code-input {
    width: 60px;
    height: 70px;
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    border: 2px solid #cbd5e1;
    /* Darker border for visibility */
    border-radius: 16px;
    background: #ffffff;
    /* pure white background */
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.code-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(72, 255, 0, 0.1);
    transform: translateY(-2px);
}

.btn-verify {
    width: 100%;
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 16px;
    padding: 18px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}

.btn-verify:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.resend-timer {
    font-size: 14px;
    color: var(--text-muted);
}

.resend-link {
    color: var(--text-main);
    font-weight: 800;
    text-decoration: none;
    padding-bottom: 2px;
    transition: all 0.2s;
    cursor: pointer;
}

.resend-link:hover {
    color: var(--primary-dark);
}

.resend-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: var(--text-muted);
}

/* Custom Cursor Safety */
.cursor-dot,
.cursor-trailer {
    pointer-events: none !important;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
}

.cursor-dot {
    width: 8px;
    height: 8px;
}

.cursor-trailer {
    width: 40px;
    height: 40px;
    background: rgba(72, 255, 0, 0.2);
    border: 1px solid var(--primary);
}

/* =========================================
   9. ADDITIONAL AUTH STYLES
   ========================================= */

/* Success Message */
.success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    display: none;
    animation: slideDown 0.3s ease;
}

.success-message.show {
    display: block;
}

/* WhatsApp Button */
.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    text-decoration: none;
    font-family: inherit;
}

.whatsapp-btn i {
    font-size: 22px;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    background: #1ebe5a;
    color: #fff;
}

/* Button Loading State */
.btn-submit:disabled {
    cursor: not-allowed;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@keyframes ri-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.ri-spin {
    animation: ri-spin 1s linear infinite;
    display: inline-block;
}

/* Input focus glow on mobile */
@media (max-width: 768px) {
    .code-inputs {
        gap: 8px;
    }

    .code-input {
        width: 48px;
        height: 58px;
        font-size: 24px;
        border-radius: 12px;
    }
}

/* =========================================
   10. NEW VERIFICATION DESIGN (Mockup Match)
   ========================================= */

.verify-card-v2 {
    max-width: 480px;
    padding: 40px;
    text-align: center;
}

.verify-title {
    font-family: serif;
    /* Fallback for "Playfair Display" or similar if needed, using serif for now */
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.verify-subtitle {
    color: #555;
    font-size: 15px;
    margin-bottom: 32px;
}

.code-inputs-v2 {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.code-input-v2 {
    width: 60px;
    height: 72px;
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f3f4f6;
    /* Light gray bg */
    color: #111;
    transition: all 0.2s;
}

.code-input-v2:focus {
    background: #fff;
    border-color: #000;
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-signin {
    width: 100%;
    background: #48ff00;
    /* Edropo Green */
    color: #000;
    /* Black text */
    font-weight: 700;
    padding: 16px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(72, 255, 0, 0.3);
}

.btn-signin:hover {
    background: #3de300;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(72, 255, 0, 0.4);
}

.keep-signed-in {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    /* Or center? Mockup looks left aligned but centered form */
    margin-bottom: 32px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 500;
}

.keep-signed-in input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #000;
    border-radius: 4px;
    cursor: pointer;
}

.btn-resend-outline {
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #111;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-resend-outline:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.btn-resend-outline.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f3f4f6;
}

/* Avatar placeholder style */
.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    background: #e5e7eb;
}

/* =========================================
   Apple Global Scroll Animations
   ========================================= */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--anim-delay, 0s);
    will-change: opacity, transform;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}