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

:root {
    --color-primary: #0565f6;
    --color-primary-dark: #044dc4;
    --color-primary-light: #e8f0fe;
    --color-secondary: #1b6a13;
    --color-secondary-dark: #134d0e;
    --color-accent: #47f82e;
    --color-dark: #0f1724;
    --color-gray-50: #f8fafc;
    --color-gray-100: #f1f5f9;
    --color-gray-200: #e2e8f0;
    --color-gray-300: #cbd5e1;
    --color-gray-400: #94a3b8;
    --color-gray-500: #64748b;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1e293b;
    --color-gray-900: #0f172a;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-gray-800);
    background: var(--color-gray-50);
    line-height: 1.6;
}

/* ─── NAVBAR ─── */
.navbar-modern {
    background: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0.75rem 0;
    transition: all 0.3s;
}
.navbar-modern .navbar-brand {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
    color: var(--color-primary) !important;
}
.navbar-modern .navbar-brand i { margin-right: 6px; }
.navbar-modern .nav-link {
    color: var(--color-gray-600) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}
.navbar-modern .nav-link:hover { color: var(--color-primary) !important; }
.navbar-modern .btn-primary {
    padding: 0.4rem 1.2rem;
    font-size: 0.875rem;
    border-radius: var(--radius);
}
.navbar-modern .btn-logout {
    color: var(--color-gray-500) !important;
}
.navbar-modern .btn-logout:hover { color: #dc2626 !important; }

/* ─── BUTTONS ─── */
.btn {
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius);
    transition: all 0.2s;
    font-size: 0.9rem;
}
.btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-secondary {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
}
.btn-secondary:hover {
    background: var(--color-secondary-dark);
    border-color: var(--color-secondary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline-primary:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
.btn-light:hover { transform: translateY(-1px); }
.btn-block { border-radius: var(--radius); }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; border-radius: var(--radius); }

/* ─── HERO ─── */
.hero-section {
    background: linear-gradient(135deg, #0a1f44 0%, var(--color-primary) 40%, #1a5ee0 70%, #0a1f44 100%);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    color: #fff;
    padding: 100px 0 90px;
    position: relative;
    overflow: hidden;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.hero-section .container { position: relative; z-index: 1; }
.hero-section h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}
.hero-section p {
    font-size: 1.15rem;
    opacity: 0.85;
    max-width: 540px;
    line-height: 1.7;
}
.hero-section .btn-light {
    background: #fff;
    border: none;
    color: var(--color-primary);
    font-weight: 700;
    padding: 0.85rem 2.5rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.hero-section .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ─── IMAGE HERO ─── */
.hero-image-section {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
}
.hero-image-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5,101,246,0.92) 0%, rgba(10,31,68,0.88) 70%, rgba(10,31,68,0.92) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 2.5rem 0; }
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(4px);
}
.hero-image-section h1 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
}
.hero-desc {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-actions .btn-light {
    background: #fff;
    border: none;
    color: var(--color-primary);
    font-weight: 700;
    padding: 0.85rem 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.hero-actions .btn-light:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.hero-actions .btn-outline-light {
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: var(--radius);
}
.hero-actions .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    transform: translateY(-2px);
}
.hero-illustration {
    max-width: 80%;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

/* ─── STATS BAR ─── */
.stats-bar {
    background: #fff;
    border-bottom: 1px solid var(--color-gray-200);
    padding: 2.5rem 0;
}
.stat-item { padding: 0.5rem 0; }
.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.2;
}
.stat-label {
    font-size: 0.82rem;
    color: var(--color-gray-500);
    font-weight: 500;
}

/* ─── SECTION SPACER ─── */
.section-spacer { padding: 5rem 0; }
.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding: 0.25rem 0.85rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

/* ─── STEP CARDS ─── */
.step-card {
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    transition: all 0.3s;
}
.step-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}
.step-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.step-card:hover .step-image img { transform: scale(1.05); }
.step-number {
    position: absolute;
    bottom: -16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    border: 3px solid #fff;
    box-shadow: var(--shadow-md);
}
.step-body { padding: 1.5rem 1.5rem 2rem; }
.step-body h5 { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.4rem; }
.step-body p { font-size: 0.88rem; color: var(--color-gray-500); line-height: 1.6; margin: 0; }

/* ─── IMAGE FEATURE CARDS ─── */
.img-feature-card {
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    transition: all 0.3s;
}
.img-feature-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}
.img-feature-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s;
}
.img-feature-card:hover .img-feature-img { transform: scale(1.03); }
.img-feature-body { padding: 1.5rem; position: relative; }
.img-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}
.img-feature-body h5 { font-weight: 700; font-size: 1rem; margin-bottom: 0.35rem; }
.img-feature-body p { font-size: 0.85rem; color: var(--color-gray-500); line-height: 1.6; margin: 0; }

/* ─── TESTIMONIALS ─── */
.testimonial-card {
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    height: 100%;
    transition: all 0.3s;
}
.testimonial-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-xl);
    transform: translateY(-3px);
}
.testimonial-stars {
    color: #f59e0b;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}
.testimonial-card p {
    font-size: 0.9rem;
    color: var(--color-gray-600);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1.25rem;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.testimonial-author strong {
    font-size: 0.85rem;
    color: var(--color-gray-800);
    display: block;
}
.testimonial-author span {
    font-size: 0.75rem;
    color: var(--color-gray-500);
}

/* ─── FEATURES ─── */
.feature-card {
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    transition: all 0.3s;
    height: 100%;
}
.feature-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}
.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--color-primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}
.feature-card h5 { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; color: var(--color-gray-500); line-height: 1.6; }

/* ─── PLANS ─── */
.plan-card {
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
    overflow: hidden;
    height: 100%;
    position: relative;
}
.plan-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
}
.plan-card.featured {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(5,101,246,0.1), var(--shadow-lg);
}
.plan-card .badge-popular {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.plan-card .plan-header {
    padding: 2rem 1.5rem 0;
    text-align: center;
}
.plan-card .plan-header h5 {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-gray-900);
}
.plan-card .plan-header .plan-desc {
    font-size: 0.85rem;
    color: var(--color-gray-500);
    margin-bottom: 0;
}
.plan-card .plan-price {
    text-align: center;
    padding: 1.25rem 1.5rem;
}
.plan-card .plan-price .amount {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}
.plan-card .plan-price .amount small {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-gray-400);
}
.plan-card .plan-price .period {
    font-size: 0.85rem;
    color: var(--color-gray-400);
    margin-top: 0.15rem;
}
.plan-card .plan-body { padding: 0 1.5rem 2rem; }
.plan-card .plan-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.plan-card .plan-body ul li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--color-gray-600);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.plan-card .plan-body ul li i { color: var(--color-primary); font-size: 0.9rem; }
.plan-card .plan-footer { padding: 0 1.5rem 2rem; }
.plan-card .plan-footer .btn {
    border-radius: var(--radius);
    padding: 0.7rem;
    font-weight: 700;
}

/* ─── COMPARISON TABLE ─── */
.comparison-wrapper {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.comparison-table thead th {
    padding: 1.25rem 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-gray-500);
    background: var(--color-gray-50);
    border-bottom: 2px solid var(--color-gray-200);
}
.comparison-table thead th.feature-label {
    text-align: left;
    width: 200px;
    padding-left: 1.5rem;
}
.comparison-table thead th.plan-col {
    min-width: 140px;
}
.comparison-table thead th.plan-col.featured {
    background: var(--color-primary-light);
    border-bottom-color: var(--color-primary);
    color: var(--color-primary);
}
.comparison-table thead th .plan-name {
    display: block;
    font-size: 1rem;
    color: var(--color-gray-900);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 0.25rem;
}
.comparison-table thead th .plan-price-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--color-primary);
}
.comparison-table thead th.plan-col.featured .plan-price-label {
    color: var(--color-primary);
}
.comparison-table tbody tr {
    transition: background 0.15s;
}
.comparison-table tbody tr:hover {
    background: var(--color-gray-50);
}
.comparison-table tbody tr + tr td {
    border-top: 1px solid var(--color-gray-100);
}
.comparison-table tbody td {
    padding: 0.9rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-gray-700);
}
.comparison-table tbody td.feature-label {
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-gray-800);
    padding-left: 1.5rem;
    background: var(--color-gray-50);
    width: 200px;
}
.comparison-table tbody td.plan-col.featured {
    background: rgba(5,101,246,0.02);
}
.comparison-table tbody tr:hover td.plan-col.featured {
    background: rgba(5,101,246,0.04);
}
.comparison-table .check-icon {
    color: var(--color-secondary);
    font-size: 1.15rem;
}
.comparison-table .cross-icon {
    color: var(--color-gray-300);
    font-size: 1.15rem;
}
.comparison-table .feature-val {
    font-weight: 500;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .comparison-table thead th.feature-label,
    .comparison-table tbody td.feature-label {
        width: 100px;
        font-size: 0.78rem;
        padding-left: 0.75rem;
    }
    .comparison-table thead th.plan-col {
        min-width: 100px;
        padding: 1rem 0.5rem;
        font-size: 0.75rem;
    }
    .comparison-table thead th .plan-name {
        font-size: 0.85rem;
    }
    .comparison-table tbody td {
        padding: 0.7rem 0.5rem;
        font-size: 0.82rem;
    }
}

/* ─── SECTION TITLES ─── */
.section-title { font-weight: 800; font-size: 2rem; letter-spacing: -0.5px; }
.section-subtitle { color: var(--color-gray-500); font-size: 1.05rem; }
.section-bg { background: var(--color-gray-100); }
.section-bg-secondary { background: rgba(27,106,19,0.04); }

/* ─── CTA SECTION (secondary color) ─── */
.cta-section {
    background: var(--color-secondary);
    color: #fff;
    padding: 4rem 0;
}
.cta-section h2 { color: #fff; }
.cta-section p { color: rgba(255,255,255,0.8); }
.cta-section .btn {
    background: #fff;
    color: var(--color-secondary);
    border: none;
    font-weight: 700;
}
.cta-section .btn:hover {
    background: #a8e6a3;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ─── FOOTER ─── */
.footer-modern {
    background: var(--color-secondary) !important;
    color: #fff;
    padding: 3rem 0 2.5rem;
    border: none;
}
.footer-modern .brand-footer {
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff !important;
}
.footer-modern p, .footer-modern .small { color: rgba(255,255,255,0.7); }
.footer-modern a {
    color: rgba(255,255,255,0.7) !important;
    transition: color 0.2s;
    text-decoration: none;
}
.footer-modern a:hover { color: #fff !important; }
.footer-divider { border-color: rgba(255,255,255,0.12); }
.footer-modern h6 { color: #a8e6a3 !important; }

/* ─── AUTH CARDS ─── */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-gray-50) 0%, #e8f0fe 100%);
    padding: 3rem 0;
}
.auth-card {
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}
.auth-card .auth-header {
    padding: 2.5rem 2rem 1.5rem;
    text-align: center;
}
.auth-card .auth-header .auth-icon {
    width: 64px;
    height: 64px;
    background: var(--color-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--color-primary);
}
.auth-card .auth-header h3 { font-weight: 800; font-size: 1.4rem; }
.auth-card .auth-header p { color: var(--color-gray-500); font-size: 0.9rem; }
.auth-card .auth-body { padding: 0 2rem 2rem; }
.auth-card .auth-footer {
    padding: 1.25rem 2rem;
    background: var(--color-gray-50);
    border-top: 1px solid var(--color-gray-200);
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-gray-500);
}
.auth-card .auth-footer a { font-weight: 600; }

/* ─── FORMS ─── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-gray-600);
    margin-bottom: 0.35rem;
}
.form-control {
    border: 1.5px solid var(--color-gray-200);
    border-radius: var(--radius);
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}
.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(5,101,246,0.1);
}
.form-control::placeholder { color: var(--color-gray-400); font-size: 0.85rem; }
.text-danger small { font-size: 0.78rem; }

/* ─── CHECKOUT / PAYMENT ─── */
.payment-plan-summary {
    background: var(--color-primary-light);
    border: 1px solid rgba(5,101,246,0.15);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.payment-plan-summary .plan-name { font-weight: 700; font-size: 1.1rem; }
.payment-plan-summary .plan-detail { font-size: 0.85rem; color: var(--color-gray-500); }
.payment-plan-summary .plan-total { font-size: 1.5rem; font-weight: 800; color: var(--color-primary); }

.payment-method-tab {
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.payment-method-tab:hover { border-color: var(--color-gray-300); }
.payment-method-tab.active {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(5,101,246,0.08);
}
.payment-method-tab .pm-icon {
    width: 48px;
    height: 48px;
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--color-primary);
    flex-shrink: 0;
}
.payment-method-tab .pm-label { font-weight: 600; font-size: 0.95rem; }
.payment-method-tab .pm-desc { font-size: 0.8rem; color: var(--color-gray-500); }

.bank-info-card {
    background: var(--color-gray-100);
    border-radius: var(--radius);
    padding: 1.25rem;
    font-size: 0.85rem;
}
.bank-info-card p { margin-bottom: 0.35rem; color: var(--color-gray-600); }
.bank-info-card p strong { color: var(--color-gray-800); }

/* ─── DASHBOARD ─── */
.dashboard-header { margin-bottom: 2rem; }
.dashboard-header h2 { font-weight: 800; letter-spacing: -0.5px; }

.stat-card {
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s;
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.stat-card .stat-icon.primary { background: var(--color-primary-light); color: var(--color-primary); }
.stat-card .stat-icon.secondary { background: #e6f7e6; color: var(--color-secondary); }
.stat-card .stat-icon.accent { background: var(--color-primary-light); color: var(--color-primary); }
.stat-card .stat-icon.warning { background: #fff7e6; color: #d97706; }
.stat-card .stat-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; color: var(--color-gray-500); margin-bottom: 0.25rem; }
.stat-card .stat-value { font-weight: 800; font-size: 1.5rem; color: var(--color-gray-900); }
.stat-card .stat-sub { font-size: 0.8rem; color: var(--color-gray-400); }

.progress-modern {
    height: 8px;
    border-radius: 4px;
    background: var(--color-gray-200);
    overflow: hidden;
}
.progress-modern .progress-bar {
    background: linear-gradient(90deg, var(--color-primary), #1a5ee0);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.dashboard-card {
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
}
.dashboard-card .card-header-custom {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-gray-200);
    font-weight: 700;
    font-size: 0.95rem;
    background: #fff;
}
.dashboard-card .card-header-custom i { margin-right: 0.5rem; color: var(--color-primary); }
.dashboard-card .card-header-custom.secondary i { color: var(--color-secondary); }
.dashboard-card .card-header-custom.secondary {
    border-bottom-color: var(--color-secondary);
}

.table-modern {
    margin-bottom: 0;
    font-size: 0.85rem;
}
.table-modern thead th {
    background: var(--color-gray-50);
    border-bottom: 1px solid var(--color-gray-200);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    color: var(--color-gray-500);
    padding: 0.75rem 1rem;
}
.table-modern td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom-color: var(--color-gray-100);
    color: var(--color-gray-700);
}
.table-modern td strong { color: var(--color-gray-900); }

.upgrade-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}
.upgrade-item:hover { border-color: var(--color-primary); background: var(--color-primary-light); }
.upgrade-item .upgrade-name { font-weight: 600; font-size: 0.9rem; }
.upgrade-item .upgrade-detail { font-size: 0.78rem; color: var(--color-gray-500); }
.upgrade-item .btn-sm {
    padding: 0.3rem 0.8rem;
    font-size: 0.78rem;
    border-radius: var(--radius-sm);
}

/* ══════════════════════════════════════════════════
   DROPBOX-INSPIRED FILE MANAGER
   ══════════════════════════════════════════════════ */

/* ─── LAYOUT ─── */
.dbx-layout {
    display: flex;
    min-height: calc(100vh - 72px);
    margin: -1px calc(-50vw + 50%) 0;
    background: #fff;
}
.dbx-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #f7f8fa;
    border-right: 1px solid #e6e8eb;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 72px;
    height: calc(100vh - 72px);
    overflow-y: auto;
}
.dbx-sidebar-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e6e8eb;
}
.dbx-back-link {
    color: #637282;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.dbx-back-link:hover { color: var(--color-primary); text-decoration: none; }
.dbx-sidebar-section { padding: 1rem 1.25rem; }

/* ─── QUOTA ─── */
.dbx-quota-track {
    height: 6px;
    background: #e0e4e8;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}
.dbx-quota-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 3px;
    transition: width 0.5s;
}
.dbx-quota-label {
    font-size: 0.75rem;
    color: #637282;
    line-height: 1.3;
}
.dbx-quota-label strong { color: #333; }

/* ─── FOLDER TREE ─── */
.dbx-tree { flex: 1; padding: 0.25rem 0; }
.ftree-item { padding: 0.15rem 0; }
.ftree-item a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    color: #333;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.1s;
}
.ftree-item a:hover { background: #e0e4e8; text-decoration: none; }
.ftree-item.active > a { background: #dbeafe; color: var(--color-primary); font-weight: 600; }
.ftree-item a i { font-size: 0.9rem; color: #f59e0b; width: 16px; text-align: center; }
.ftree-item.active a i { color: var(--color-primary); }
.ftree-item a span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── MAIN CONTENT ─── */
.dbx-main {
    flex: 1;
    min-width: 0;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
}
.dbx-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.dbx-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    flex-wrap: wrap;
}
.dbx-breadcrumb a {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
}
.dbx-breadcrumb a:hover { text-decoration: underline; }
.dbx-breadcrumb .sep { color: #b0b8c1; }
.dbx-breadcrumb .current {
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
}
.dbx-toolbar { display: flex; gap: 0.5rem; align-items: center; }

/* ─── BUTTONS ─── */
.dbx-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: #fff;
    color: #344054;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    line-height: 1.4;
}
.dbx-btn:hover { background: #f2f4f7; border-color: #98a2b3; text-decoration: none; }
.dbx-btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
.dbx-btn-primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: #fff; }
.dbx-btn-outline {
    background: transparent;
    border-color: #d0d5dd;
    color: #344054;
}
.dbx-btn-outline:hover { background: #f2f4f7; }
.dbx-btn-danger {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}
.dbx-btn-danger:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }

/* ─── NEW FOLDER ROW ─── */
.dbx-new-folder-row {
    background: #f9fafb;
    border: 1px solid #e6e8eb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

/* ─── ALERTS ─── */
.dbx-alert {
    padding: 0.65rem 1rem;
    border-radius: 6px;
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
    border: 1px solid;
}
.dbx-alert-success {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}
.dbx-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

/* ─── SELECTION BAR ─── */
.dbx-selection-bar {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    background: #f0f4ff;
    border: 1px solid #c7d7fe;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #344054;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

/* ─── FILE LISTING ─── */
.dbx-drop-zone {
    position: relative;
    flex: 1;
}
.dbx-drop-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(5,101,246,0.06);
    border: 2px dashed var(--color-primary);
    border-radius: 12px;
    z-index: 10;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    pointer-events: none;
}
.dbx-drop-overlay.visible { display: flex; }
.dbx-drop-overlay i { font-size: 3rem; color: var(--color-primary); margin-bottom: 0.5rem; }
.dbx-drop-overlay p { font-size: 1rem; font-weight: 600; color: var(--color-primary); }

/* ─── LIST HEADER ─── */
.dbx-list-header {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e6e8eb;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #637282;
}

/* ─── ROWS ─── */
.dbx-row {
    display: flex;
    align-items: center;
    padding: 0.35rem 0;
    border-bottom: 1px solid #f0f2f4;
    transition: background 0.1s;
    cursor: default;
}
.dbx-row:hover { background: #f7f8fa; }
.dbx-row.selected { background: #f0f4ff; }
.dbx-row:last-child { border-bottom: none; }

/* ─── COLUMNS ─── */
.dbx-col { flex-shrink: 0; }
.dbx-col-check { width: 40px; }
.dbx-col-icon { width: 40px; }
.dbx-col-name { flex: 1; min-width: 0; padding: 0 0.5rem 0 0; }
.dbx-col-size { width: 90px; text-align: right; color: #637282; font-size: 0.8rem; }
.dbx-col-date { width: 120px; color: #637282; font-size: 0.8rem; }
.dbx-col-actions { width: 50px; text-align: right; }

/* ─── FILE ICONS ─── */
.dbx-file-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.dbx-icon-folder { font-size: 1.3rem; color: #f59e0b; }
.c-default { background: #f2f4f7; color: #475467; }
.c-image { background: #eff6ff; color: #2563eb; }
.c-video { background: #f5f3ff; color: #7c3aed; }
.c-audio { background: #fffbeb; color: #d97706; }
.c-pdf { background: #fef2f2; color: #dc2626; }
.c-archive { background: #fffbeb; color: #b45309; }
.c-doc { background: #eff6ff; color: #2563eb; }
.c-sheet { background: #f0fdf4; color: #16a34a; }
.c-code { background: #faf5ff; color: #9333ea; }

/* ─── NAME ─── */
.dbx-name-link {
    color: #333;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
}
.dbx-name-link:hover { color: var(--color-primary); text-decoration: none; }
.dbx-name-text {
    font-weight: 600;
    font-size: 0.85rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.dbx-row:hover .dbx-name-text { color: var(--color-primary); }

/* ─── THREE-DOT MENU ─── */
.dbx-menu { position: relative; display: inline-block; }
.dbx-menu-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #98a2b3;
    transition: all 0.15s;
    font-size: 0.85rem;
    opacity: 0;
}
.dbx-row:hover .dbx-menu-btn { opacity: 1; }
.dbx-menu.open .dbx-menu-btn { opacity: 1; background: #f2f4f7; color: #344054; }
.dbx-menu-btn:hover { background: #f2f4f7; color: #344054; }
.dbx-menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 160px;
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 20;
    padding: 0.35rem 0;
    margin-top: 2px;
}
.dbx-menu-dropdown.show { display: block; }
.dbx-menu-dropdown a, .dbx-menu-dropdown button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    color: #344054;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    transition: background 0.1s;
}
.dbx-menu-dropdown a:hover, .dbx-menu-dropdown button:hover {
    background: #f7f8fa;
    text-decoration: none;
}
.dbx-menu-dropdown a i, .dbx-menu-dropdown button i {
    width: 16px;
    text-align: center;
    color: #98a2b3;
    font-size: 0.8rem;
}

/* ─── EMPTY STATE ─── */
.dbx-empty {
    text-align: center;
    padding: 5rem 2rem;
    background: #fff;
    border-radius: 8px;
}
.dbx-empty i { font-size: 3.5rem; color: #d0d5dd; display: block; margin-bottom: 1rem; }
.dbx-empty h5 { font-weight: 700; color: #637282; }
.dbx-empty p { font-size: 0.85rem; color: #98a2b3; margin: 0; }

/* ─── MODAL ─── */
.dbx-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dbx-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    width: 420px;
    max-width: 90vw;
    max-height: 80vh;
    overflow: hidden;
}
.dbx-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e6e8eb;
}
.dbx-modal-header h5 { font-weight: 700; font-size: 1rem; margin: 0; }
.dbx-modal-close {
    border: none;
    background: none;
    font-size: 1.5rem;
    color: #98a2b3;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.dbx-modal-close:hover { color: #333; }
.dbx-modal-body { padding: 1.25rem 1.5rem; font-size: 0.85rem; color: #637282; }
.dbx-modal-body p { margin: 0; }
.dbx-modal-footer {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e6e8eb;
}

/* ─── CHECKBOX STYLING ─── */
.dbx-list-header input[type="checkbox"],
.dbx-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

/* ─── BADGES ─── */
.badge {
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
}
.badge-accent {
    background: rgba(71,248,46,0.15);
    color: #15803d;
    border: 1px solid rgba(71,248,46,0.3);
}
.badge-warning {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}
.badge-secondary {
    background: var(--color-gray-200);
    color: var(--color-gray-600);
}

/* ─── PAGE HERO ─── */
.page-hero {
    background: linear-gradient(135deg, #0a1f44 0%, var(--color-primary) 40%, #1a5ee0 70%, #0a1f44 100%);
    color: #fff;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}
.page-hero h1 { font-weight: 800; font-size: 2.5rem; letter-spacing: -0.5px; }
.page-hero .lead { font-size: 1.1rem; opacity: 0.85; max-width: 600px; margin: 0 auto; }

/* ─── ABOUT ─── */
.about-image-placeholder {
    width: 100%;
    height: 300px;
    background: var(--color-primary-light);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--color-primary);
}
.mission-card {
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s;
}
.mission-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); }
.mission-card .mission-icon {
    width: 64px;
    height: 64px;
    background: var(--color-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--color-primary);
}
.mission-card h4 { font-weight: 700; margin-bottom: 0.75rem; }
.mission-card p { font-size: 0.9rem; color: var(--color-gray-500); line-height: 1.7; }
.value-card {
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: all 0.3s;
    text-align: center;
}
.value-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); }
.value-card .value-icon {
    width: 56px;
    height: 56px;
    background: var(--color-primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--color-primary);
    margin: 0 auto 1rem;
}
.value-card h5 { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.5rem; }
.value-card p { font-size: 0.9rem; color: var(--color-gray-500); line-height: 1.7; }

/* ─── LEGAL CONTENT ─── */
.legal-content h4 {
    font-weight: 700;
    font-size: 1.15rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--color-gray-900);
}
.legal-content p, .legal-content li {
    font-size: 0.95rem;
    color: var(--color-gray-600);
    line-height: 1.8;
}
.legal-content ul { padding-left: 1.25rem; }
.legal-content ul li { margin-bottom: 0.35rem; }

/* ─── CONTACT ─── */
.contact-info-card {
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}
.contact-info-card h4 { font-weight: 700; }
.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.contact-item:last-child { margin-bottom: 0; }
.contact-item .contact-icon {
    width: 44px;
    height: 44px;
    background: var(--color-primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--color-primary);
    flex-shrink: 0;
}
.contact-item h6 {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
}
.contact-item p { font-size: 0.9rem; color: var(--color-gray-500); }

/* ─── FAQ ─── */
.faq-category-title {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
}
.faq-item {
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all 0.2s;
}
.faq-item:hover { border-color: var(--color-gray-300); }
.faq-question {
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    background: #fff;
    user-select: none;
}
.faq-question i { transition: transform 0.3s; color: var(--color-gray-400); }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    border-top: 0 solid var(--color-gray-200);
}
.faq-item.active .faq-answer {
    padding: 1rem 1.25rem;
    max-height: 300px;
    border-top-width: 1px;
}
.faq-answer p { font-size: 0.9rem; color: var(--color-gray-600); line-height: 1.7; margin: 0; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .hero-section { padding: 60px 0 50px; }
    .hero-section h1 { font-size: 2rem; }
    .hero-section p { font-size: 1rem; }
    .section-title { font-size: 1.5rem; }
    .plan-card .plan-price .amount { font-size: 2.2rem; }
    .auth-page { padding: 1.5rem 0; }
}
