/* ========================================
   YOWHATS - Premium Light Theme v2
   Google Material Icons + Smooth Animations
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons+Round');

/* ── CSS Variables ── */
:root {
    --primary: #00C853;
    --primary-dark: #009624;
    --primary-light: #e8faf0;
    --primary-gradient: linear-gradient(135deg, #00C853 0%, #00897B 100%);
    --primary-gradient-hover: linear-gradient(135deg, #00E676 0%, #00C853 100%);
    --secondary: #00897B;
    --accent: #2979FF;
    --accent-light: #e8f0fe;

    --bg-body: #f4f6fb;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-sidebar: linear-gradient(180deg, #ffffff 0%, #f8fffe 100%);
    --bg-hover: #f0faf5;
    --bg-input: #f4f6fb;

    --text-primary: #1b2437;
    --text-secondary: #5f6d7e;
    --text-muted: #98a5b3;
    --text-white: #ffffff;

    --border: #e5e9f0;
    --border-light: #f0f3f8;

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.03);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.1);
    --shadow-green: 0 4px 24px rgba(0,200,83,0.2);
    --shadow-green-lg: 0 8px 32px rgba(0,200,83,0.3);

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 50px;

    --sidebar-width: 270px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-spring: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* ── New Glassmorphism & Mesh ── */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --mesh-bg: radial-gradient(at 0% 0%, hsla(144,79%,92%,1) 0, transparent 50%), 
               radial-gradient(at 50% 0%, hsla(202,84%,93%,1) 0, transparent 50%), 
               radial-gradient(at 100% 0%, hsla(279,84%,94%,1) 0, transparent 50%);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.mesh-gradient { background: var(--mesh-bg); }

/* ── Animation Utilities ── */
.floating { animation: float 6s ease-in-out infinite; }
.pulse-soft { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.5s;
    animation: shine 3s infinite;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: var(--primary-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }

/* ── Material Icon Helper ── */
.mi {
    font-family: 'Material Icons Round';
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
}

.mi-sm { font-size: 18px; }
.mi-lg { font-size: 24px; }
.mi-xl { font-size: 32px; }

/* ────────────────────────────────────────
   LANDING PAGE
   ──────────────────────────────────────── */
.landing-page {
    min-height: 100vh;
    background: #ffffff;
    overflow-x: hidden;
}

/* ── Landing Navbar ── */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
}

.landing-nav.scrolled {
    padding: 12px 0;
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.landing-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
}

.landing-brand .brand-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.landing-nav-links { display: flex; align-items: center; gap: 32px; }
.landing-nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    position: relative;
}
.landing-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}
.landing-nav-links a:hover { color: var(--primary-dark); }
.landing-nav-links a:hover::after { width: 100%; }

.landing-nav-actions { display: flex; align-items: center; gap: 12px; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: 4px;
}

/* ── Hero Section ── */
.hero-section {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(0,200,83,0.08) 0%, transparent 70%),
                radial-gradient(ellipse at 80% 50%, rgba(41,121,255,0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--primary-light);
    border: 1px solid rgba(0,200,83,0.2);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 28px;
    animation: fadeInUp 0.6s ease-out;
}

.hero-title {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text-primary);
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-title .gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
}

.hero-stat .stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ── Features Section ── */
.features-section {
    padding: 100px 0;
    background: var(--bg-body);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--primary-light);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-card .feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 26px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon { transform: scale(1.1); }

.feature-icon.green { background: var(--primary-light); color: var(--primary-dark); }
.feature-icon.blue { background: var(--accent-light); color: var(--accent); }
.feature-icon.orange { background: #fff3e0; color: #e65100; }
.feature-icon.purple { background: #f3e5f5; color: #7b1fa2; }
.feature-icon.red { background: #fce4ec; color: #c62828; }
.feature-icon.teal { background: #e0f2f1; color: #00695c; }

.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ── Pricing Section (Landing) ── */
.pricing-section {
    padding: 100px 0;
    background: #ffffff;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}
.pricing-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0,200,83,0.3);
}
.pricing-card.popular {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-green-lg);
    transform: scale(1.05);
}
.pricing-card.popular::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: 16px; right: -32px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 32px;
    transform: rotate(45deg);
}
.pricing-card .plan-name { font-size: 20px; font-weight: 700; margin-bottom: 16px; color: var(--text-primary); }
.pricing-card .plan-price { font-size: 42px; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; line-height: 1; }
.pricing-card .plan-price span { font-size: 15px; font-weight: 500; color: var(--text-secondary); }
.pricing-card .plan-duration { font-size: 14px; color: var(--primary-dark); font-weight: 600; margin-bottom: 30px; background: var(--primary-light); display: inline-block; padding: 4px 12px; border-radius: 20px;}
.pricing-card .plan-features { list-style: none; text-align: left; margin-bottom: 32px; }
.pricing-card .plan-features li { padding: 10px 0; font-size: 15px; color: var(--text-secondary); display: flex; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--border-light); }
.pricing-card .plan-features li:last-child { border-bottom: none; }
.pricing-card .plan-features li .mi { color: var(--primary); font-size: 20px; flex-shrink: 0; }


/* ── CTA Section ── */
.cta-section {
    padding: 80px 0;
    background: var(--primary-gradient);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.cta-section h2 {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    position: relative;
}

.cta-section p {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
    position: relative;
}

/* ── Landing Footer ── */
.landing-footer {
    padding: 40px 0;
    background: var(--bg-body);
    border-top: 1px solid var(--border);
}

.landing-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.landing-footer .powered {
    font-size: 13px;
    color: var(--text-muted);
}

.landing-footer .powered a {
    color: var(--primary-dark);
    font-weight: 600;
}

/* ── Animations ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-in { animation: fadeInUp 0.5s ease-out both; }
.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.2s; }
.animate-in-delay-3 { animation-delay: 0.3s; }
.animate-in-delay-4 { animation-delay: 0.4s; }

/* ────────────────────────────────────────
   AUTH PAGES
   ──────────────────────────────────────── */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8faf0 0%, #f4f6fb 50%, #e8f0fe 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 450px; height: 450px;
    border-radius: 50%;
    background: var(--primary-gradient);
    opacity: 0.06;
    animation: float 8s ease-in-out infinite;
}

.auth-wrapper::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -100px;
    width: 350px; height: 350px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    opacity: 0.04;
    animation: float 10s ease-in-out infinite reverse;
}

.auth-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 440px;
    padding: 48px 40px;
    position: relative;
    z-index: 1;
    animation: scaleIn 0.5s ease-out;
    border: 1px solid var(--border-light);
}

.auth-logo {
    text-align: center;
    margin-bottom: 36px;
}

.auth-logo .logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.auth-logo .logo-icon-wrap {
    width: 46px;
    height: 46px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-green);
}

.auth-logo h1 {
    font-size: 26px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-logo p {
    color: var(--text-muted);
    margin-top: 8px;
    font-size: 13px;
}

.auth-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.auth-card .auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 14px;
}

/* ────────────────────────────────────────
   FORMS
   ──────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-input);
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(0,200,83,0.08);
}

.form-control::placeholder { color: var(--text-muted); }

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap .mi {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 20px;
    transition: var(--transition);
    pointer-events: none;
}

.input-icon-wrap .form-control {
    padding-left: 44px;
}

.input-icon-wrap .form-control:focus + .mi,
.input-icon-wrap:focus-within .mi {
    color: var(--primary);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235f6d7e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

textarea.form-control { resize: vertical; min-height: 100px; }

/* ────────────────────────────────────────
   BUTTONS
   ──────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: var(--transition);
}

.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-white);
    box-shadow: var(--shadow-green);
}

.btn-primary:hover {
    box-shadow: var(--shadow-green-lg);
    transform: translateY(-2px);
    color: var(--text-white);
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-secondary:hover { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-light); }

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 12px rgba(239,68,68,0.2);
}

.btn-danger:hover { box-shadow: 0 6px 20px rgba(239,68,68,0.3); transform: translateY(-1px); }

.btn-white {
    background: white;
    color: var(--text-primary);
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--text-primary); }

.btn-ghost {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-ghost:hover { background: rgba(255,255,255,0.25); color: white; }

.btn-outline {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary);
}

.btn-outline:hover { background: var(--primary-light); color: var(--primary-dark); }

.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-block { width: 100%; }
.btn .mi { font-size: 20px; }

/* ────────────────────────────────────────
   APP LAYOUT
   ──────────────────────────────────────── */
.app-layout { display: flex; min-height: 100vh; }

/* ── Sidebar ── */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-logo {
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-green);
    flex-shrink: 0;
}

.sidebar-logo h2 {
    font-size: 20px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 14px;
}

.sidebar-nav .nav-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    padding: 14px 14px 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    margin-bottom: 2px;
    position: relative;
}

.nav-item .mi { font-size: 22px; transition: var(--transition); }

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--primary-dark);
    transform: translateX(3px);
}

.nav-item:hover .mi { color: var(--primary); }

.nav-item.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-green);
    font-weight: 600;
}

.nav-item.active .mi { color: white; }

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-light);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: var(--bg-input);
    transition: var(--transition);
}

.sidebar-user:hover { background: var(--primary-light); }

.sidebar-user .user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: var(--shadow-green);
}

.sidebar-user .user-info { flex: 1; min-width: 0; }
.sidebar-user .user-info .name {
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-user .user-info .plan { font-size: 11px; color: var(--text-muted); }

.powered-by {
    text-align: center;
    padding: 10px 0 4px;
    font-size: 11px;
    color: var(--text-muted);
}

.powered-by a { font-weight: 700; color: var(--primary-dark); }
.powered-by a:hover { color: var(--primary); }

/* ── Main Content ── */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
}

.content-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.92);
}

.content-header h1 { font-size: 22px; font-weight: 700; }
.content-header .header-actions { display: flex; align-items: center; gap: 12px; }

.content-body { padding: 28px 32px; overflow-x: hidden; }

/* ── Mobile Toggle ── */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: 4px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
    backdrop-filter: blur(2px);
    animation: fadeIn 0.2s ease;
}

/* ────────────────────────────────────────
   STAT CARDS
   ──────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out both;
}

.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.2s; }
.stat-card:nth-child(4) { animation-delay: 0.3s; }

.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: var(--transition-spring);
}

.stat-card:hover .stat-icon { transform: scale(1.1) rotate(-5deg); }

.stat-card.green .stat-icon { background: var(--primary-light); color: var(--primary-dark); }
.stat-card.blue .stat-icon { background: var(--accent-light); color: var(--accent); }
.stat-card.orange .stat-icon { background: #fff3e0; color: #e65100; }
.stat-card.red .stat-icon { background: #fce4ec; color: #c62828; }
.stat-card.purple .stat-icon { background: #f3e5f5; color: #7b1fa2; }

.stat-card .stat-value {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ────────────────────────────────────────
   CARDS
   ──────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition);
    animation: fadeInUp 0.5s ease-out both;
}

.card:hover { box-shadow: var(--shadow-sm); }

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body { padding: 24px; }

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-input);
}

/* ── Quick Action Cards ── */
.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-white);
}

.quick-action:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    color: inherit;
}

.quick-action .action-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    transition: var(--transition-spring);
}

.quick-action:hover .action-icon { transform: scale(1.12) rotate(-5deg); }

.quick-action .action-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.quick-action .action-desc { font-size: 12px; color: var(--text-muted); }

/* ────────────────────────────────────────
   TABLES
   ──────────────────────────────────────── */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }

table { width: 100%; border-collapse: collapse; min-width: 600px; }

table thead th {
    padding: 13px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
    background: var(--bg-input);
}

table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
    vertical-align: middle;
}

table tbody tr { transition: var(--transition-fast); }
table tbody tr:hover { background: var(--bg-hover); }

/* ────────────────────────────────────────
   BADGES
   ──────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-success { background: var(--primary-light); color: var(--primary-dark); }
.badge-warning { background: #fff3e0; color: #e65100; }
.badge-danger { background: #fce4ec; color: #c62828; }
.badge-info { background: var(--accent-light); color: #1565c0; }
.badge-secondary { background: var(--bg-input); color: var(--text-secondary); }

/* ────────────────────────────────────────
   MODALS
   ──────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active { display: flex; animation: fadeIn 0.2s ease; }

.modal {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 0.3s ease-out;
    border: 1px solid var(--border-light);
}

.modal-header {
    padding: 24px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-input);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.modal-close:hover { background: #fce4ec; color: #c62828; transform: rotate(90deg); }

.modal-body { padding: 24px; }
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ────────────────────────────────────────
   TABS
   ──────────────────────────────────────── */
.tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-input);
    padding: 4px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 11px 16px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tab-btn:hover { color: var(--primary-dark); }

.tab-btn.active {
    background: var(--bg-white);
    color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

/* ── QR / Pairing ── */
.qr-container { text-align: center; padding: 24px; }
.qr-container img {
    width: 260px; height: 260px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
    padding: 12px;
    background: white;
    transition: var(--transition);
}
.qr-container img:hover { box-shadow: var(--shadow-md); }
.qr-container .qr-status { margin-top: 16px; font-size: 14px; color: var(--text-secondary); }

.pairing-container { text-align: center; padding: 24px; }
.pairing-code {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 8px;
    font-family: 'Courier New', monospace;
    background: var(--bg-input);
    padding: 20px 32px;
    border-radius: var(--radius-lg);
    display: inline-block;
    border: 2px dashed var(--primary);
    color: var(--primary-dark);
    transition: var(--transition);
}

.pairing-code:hover { box-shadow: var(--shadow-green); transform: scale(1.02); }

.pairing-steps {
    text-align: left;
    margin-top: 20px;
    padding: 16px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
}
.pairing-steps ol { padding-left: 20px; color: var(--text-secondary); font-size: 13px; }
.pairing-steps ol li { margin-bottom: 6px; }

/* ────────────────────────────────────────
   ALERTS
   ──────────────────────────────────────── */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.4s ease-out;
}

.alert-success { background: var(--primary-light); color: var(--primary-dark); border-left: 4px solid var(--primary); }
.alert-error { background: #fce4ec; color: #c62828; border-left: 4px solid #ef4444; }
.alert-warning { background: #fff3e0; color: #e65100; border-left: 4px solid #ff9800; }
.alert-info { background: var(--accent-light); color: #1565c0; border-left: 4px solid var(--accent); }

/* ────────────────────────────────────────
   PRICING CARDS
   ──────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.pricing-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    box-shadow: var(--shadow-xs);
    border: 2px solid var(--border-light);
    text-align: center;
    transition: var(--transition);
    position: relative;
    animation: fadeInUp 0.5s ease-out both;
}

.pricing-card:nth-child(2) { animation-delay: 0.1s; }
.pricing-card:nth-child(3) { animation-delay: 0.2s; }
.pricing-card:nth-child(4) { animation-delay: 0.3s; }

.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-green);
}

.pricing-card.popular::before {
    content: 'POPULER';
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: white;
    padding: 5px 22px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: var(--shadow-green);
}

.pricing-card .plan-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.pricing-card .plan-price {
    font-size: 38px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 4px;
}
.pricing-card .plan-price span { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.pricing-card .plan-duration { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }

.pricing-card .plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
}

.pricing-card .plan-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-card .plan-features li .mi { color: var(--primary); font-size: 18px; }

/* ────────────────────────────────────────
   API DOCS
   ──────────────────────────────────────── */
.api-endpoint {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.api-method {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.api-method.get { background: #e3f2fd; color: #1565c0; }
.api-method.post { background: var(--primary-light); color: var(--primary-dark); }
.api-method.delete { background: #fce4ec; color: #c62828; }

.code-block {
    background: #1a1e2e;
    color: #e2e8f0;
    padding: 18px 22px;
    border-radius: var(--radius-md);
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 13px;
    overflow-x: auto;
    line-height: 1.8;
    white-space: pre;
}

.code-block .key { color: #7dd3fc; }
.code-block .string { color: #86efac; }
.code-block .number { color: #fcd34d; }

/* ── Payment Info ── */
.payment-info {
    background: var(--primary-light);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
}
.payment-info .amount { font-size: 30px; font-weight: 800; color: var(--primary-dark); }
.payment-info .method { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* ────────────────────────────────────────
   LOADING / EMPTY
   ──────────────────────────────────────── */
.spinner {
    width: 40px; height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 20px auto;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 56px; margin-bottom: 16px; color: var(--border); }
.empty-state h3 { font-size: 18px; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p { max-width: 400px; margin: 0 auto 20px; font-size: 14px; }

/* ────────────────────────────────────────
   UTILITIES
   ──────────────────────────────────────── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-small { font-size: 12px; }
.text-success { color: var(--primary-dark); }
.text-danger { color: #c62828; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.flex-1 { flex: 1; }

/* ────────────────────────────────────────
   RESPONSIVE
   ──────────────────────────────────────── */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { gap: 32px; }
    .content-body { padding: 24px 20px; }
}

@media (max-width: 768px) {
    /* ── Base ── */
    body { font-size: 13px; }

    /* ── Sidebar ── */
    .sidebar { transform: translateX(-100%); z-index: 200; box-shadow: none; width: 260px; }
    .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-xl); }
    .sidebar-overlay.active { display: block; }
    .sidebar-toggle { display: flex; align-items: center; justify-content: center; }
    .main-content { margin-left: 0; max-width: 100vw; overflow-x: hidden; }
    .sidebar-logo { padding: 16px 18px; }
    .sidebar-logo h2 { font-size: 17px; }
    .sidebar-nav { padding: 10px 10px; }
    .sidebar-nav .nav-label { font-size: 10px; padding: 10px 12px 6px; }
    .nav-item { padding: 9px 12px; font-size: 13px; gap: 10px; }
    .nav-item .mi { font-size: 20px; }
    .sidebar-footer { padding: 12px; }
    .sidebar-user { padding: 10px 12px; }
    .sidebar-user .user-avatar { width: 32px; height: 32px; font-size: 13px; }
    .sidebar-user .user-info .name { font-size: 12px; }
    .sidebar-user .user-info .plan { font-size: 10px; }
    .powered-by { font-size: 10px; padding: 6px 0 2px; }

    /* ── Content ── */
    .content-header { padding: 12px 16px; }
    .content-header h1 { font-size: 16px; }
    .content-body { padding: 14px 12px; }

    /* ── Stats ── */
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
    .stat-card { padding: 14px; border-radius: var(--radius-sm); }
    .stat-card .stat-icon { width: 36px; height: 36px; margin-bottom: 10px; border-radius: 10px; }
    .stat-card .stat-icon .mi { font-size: 18px !important; }
    .stat-card .stat-value { font-size: 20px; }
    .stat-card .stat-label { font-size: 11px; }

    /* ── Cards ── */
    .card { border-radius: var(--radius-sm); }
    .card-header { padding: 14px 16px; }
    .card-header h3 { font-size: 14px; gap: 6px; }
    .card-header h3 .mi { font-size: 18px; }
    .card-body { padding: 14px 16px; }

    /* ── Tables ── */
    table thead th { padding: 10px 12px; font-size: 10px; }
    table tbody td { padding: 10px 12px; font-size: 12px; }

    /* ── Forms ── */
    .form-group { margin-bottom: 14px; }
    .form-group label { font-size: 12px; margin-bottom: 4px; }
    .form-control { padding: 10px 12px; font-size: 13px; border-radius: var(--radius-sm); }
    .input-icon-wrap .mi { font-size: 18px; left: 10px; }
    .input-icon-wrap .form-control { padding-left: 36px; }

    /* ── Buttons ── */
    .btn { padding: 10px 18px; font-size: 13px; border-radius: var(--radius-sm); gap: 6px; }
    .btn .mi { font-size: 18px; }
    .btn-sm { padding: 6px 12px; font-size: 11px; }
    .btn-lg { padding: 12px 24px; font-size: 14px; }

    /* ── Badges ── */
    .badge { padding: 3px 8px; font-size: 10px; }

    /* ── Modals ── */
    .modal { border-radius: var(--radius-lg); max-height: 85vh; }
    .modal-header { padding: 16px 16px 0; }
    .modal-header h3 { font-size: 15px; }
    .modal-body { padding: 14px 16px; }
    .modal-footer { padding: 12px 16px; }

    /* ── Pricing ── */
    .pricing-grid { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; gap: 14px; }
    .pricing-card { padding: 24px 20px; border-radius: var(--radius-lg); }
    .pricing-card .plan-name { font-size: 15px; }
    .pricing-card .plan-price { font-size: 28px; }
    .pricing-card .plan-price span { font-size: 12px; }
    .pricing-card .plan-duration { font-size: 11px; margin-bottom: 18px; }
    .pricing-card .plan-features li { font-size: 12px; padding: 6px 0; gap: 8px; }
    .pricing-card .plan-features li .mi { font-size: 16px; }

    /* ── Auth ── */
    .auth-card { padding: 28px 20px; max-width: 360px; border-radius: var(--radius-lg); }
    .auth-logo { margin-bottom: 20px; }
    .auth-logo .logo-wrap { gap: 8px; }
    .auth-logo .logo-wrap img { height: 32px !important; }
    .auth-logo h1 { font-size: 20px; }
    .auth-logo p { font-size: 11px; margin-top: 6px; }
    .auth-card h2 { font-size: 18px; }
    .auth-card .auth-subtitle { font-size: 12px; margin-bottom: 18px; }

    /* ── Quick Actions ── */
    .quick-action { padding: 16px 10px; }
    .quick-action .action-icon { width: 44px; height: 44px; margin-bottom: 10px; }
    .quick-action .action-title { font-size: 12px; }
    .quick-action .action-desc { font-size: 10px; }

    /* ── Alerts ── */
    .alert { padding: 10px 14px; font-size: 12px; gap: 8px; }
    .alert .mi { font-size: 18px; }

    /* ── QR / Pairing ── */
    .qr-container img { width: 200px; height: 200px; padding: 8px; }
    .pairing-code { font-size: 24px; letter-spacing: 5px; padding: 14px 20px; }

    /* ── Tabs ── */
    .tabs { padding: 3px; }
    .tab-btn { padding: 8px 10px; font-size: 12px; }

    /* ── Empty State ── */
    .empty-state { padding: 32px 16px; }
    .empty-state .empty-icon { font-size: 40px; }
    .empty-state h3 { font-size: 15px; }
    .empty-state p { font-size: 12px; }

    /* ── Payment Info ── */
    .payment-info { padding: 16px; }
    .payment-info .amount { font-size: 22px; }
    .payment-info .method { font-size: 11px; }

    /* ── Code Block & API ── */
    .code-block { padding: 12px 14px; font-size: 11px; line-height: 1.6; }

    /* ── Landing Page ── */
    .landing-container { padding: 0 16px; }
    .landing-nav { padding: 10px 0; }
    .landing-nav.scrolled { padding: 8px 0; }
    .landing-brand { font-size: 18px; gap: 8px; }
    .landing-brand img { width: 30px !important; height: 30px !important; }
    .landing-nav-links { display: none; }
    .landing-nav-links.show {
        display: flex; flex-direction: column; position: absolute;
        top: 100%; left: 0; right: 0; background: white; padding: 16px;
        border-bottom: 1px solid var(--border); gap: 12px; box-shadow: var(--shadow-md);
    }
    .mobile-menu-btn { display: flex; }
    .landing-nav-actions .btn { padding: 7px 14px; font-size: 12px; }

    .hero-section { padding: 100px 0 60px; }
    .hero-badge { font-size: 11px; padding: 6px 14px; margin-bottom: 18px; }
    .hero-title { font-size: 26px; margin-bottom: 12px; }
    .hero-subtitle { font-size: 13px; margin-bottom: 24px; line-height: 1.6; }
    .hero-actions { flex-direction: column; gap: 10px; margin-bottom: 36px; }
    .hero-actions .btn { width: 100%; max-width: 260px; }
    .hero-stats { flex-direction: row; gap: 24px; flex-wrap: wrap; justify-content: center; }
    .hero-stat .stat-num { font-size: 20px; }
    .hero-stat .stat-label { font-size: 11px; }

    .features-section { padding: 50px 0; }
    .section-header { margin-bottom: 32px; }
    .section-badge { font-size: 10px; padding: 4px 12px; }
    .section-title { font-size: 22px; margin-bottom: 8px; }
    .section-desc { font-size: 13px; }
    .features-grid { grid-template-columns: 1fr; max-width: 100%; gap: 12px; }
    .feature-card { padding: 20px 18px; border-radius: var(--radius-sm); }
    .feature-card .feature-icon { width: 44px; height: 44px; font-size: 20px; margin-bottom: 14px; }
    .feature-card h3 { font-size: 15px; margin-bottom: 4px; }
    .feature-card p { font-size: 12px; }

    .pricing-section { padding: 50px 0; }

    .cta-section { padding: 48px 0; }
    .cta-section h2 { font-size: 20px; margin-bottom: 8px; }
    .cta-section p { font-size: 13px; margin-bottom: 20px; }
    .cta-section .btn { font-size: 13px; padding: 12px 24px; }

    .landing-footer { padding: 28px 0; }
    /* Stack footer grid on mobile */
    .landing-footer [style*="grid-template-columns: 2fr"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 24px !important;
        margin-bottom: 24px !important;
    }

    /* ── Admin Settings Grid ── */
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    /* ── Misc ── */
    .d-flex.gap-1 { gap: 4px; }
    .mt-3 { margin-top: 16px; }
    .mb-3 { margin-bottom: 16px; }
}

@media (max-width: 480px) {
    body { font-size: 12px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
    .stat-card { padding: 10px; }
    .stat-card .stat-icon { width: 30px; height: 30px; margin-bottom: 8px; }
    .stat-card .stat-icon .mi { font-size: 16px !important; }
    .stat-card .stat-value { font-size: 18px; }
    .stat-card .stat-label { font-size: 10px; }
    .content-body { padding: 10px 8px; }
    .content-header { padding: 10px 12px; }
    .content-header h1 { font-size: 14px; }
    .hero-title { font-size: 22px; }
    .hero-subtitle { font-size: 12px; }
    .auth-card { padding: 22px 16px; }
    .auth-logo h1 { font-size: 18px; }
    .auth-card h2 { font-size: 16px; }
    table thead th { padding: 8px 8px; font-size: 9px; }
    table tbody td { padding: 8px 8px; font-size: 11px; }
    .card-header { padding: 10px 12px; }
    .card-header h3 { font-size: 13px; }
    .card-body { padding: 10px 12px; }
    .landing-footer [style*="grid-template-columns: 2fr"] {
        grid-template-columns: 1fr !important;
    }
    .pricing-grid { max-width: 100%; }
    .pricing-card { padding: 20px 16px; }
    .pricing-card .plan-price { font-size: 24px; }
    .modal { margin: 8px; }
    .modal-header h3 { font-size: 14px; }
    .form-control { padding: 8px 10px; font-size: 12px; }
    .input-icon-wrap .form-control { padding-left: 32px; }
    .input-icon-wrap .mi { font-size: 16px; left: 8px; }
    .btn { padding: 8px 14px; font-size: 12px; }
    .btn-lg { padding: 10px 20px; font-size: 13px; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Selection ── */
::selection { background: var(--primary-light); color: var(--primary-dark); }
