@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
    --ec-bg: #070b14;
    --ec-bg-2: #0c1220;
    --ec-surface: rgba(15, 23, 42, 0.72);
    --ec-surface-solid: #111827;
    --ec-surface-2: #1a2332;
    --ec-border: rgba(148, 163, 184, 0.12);
    --ec-border-hover: rgba(16, 185, 129, 0.45);
    --ec-text: #f1f5f9;
    --ec-muted: #94a3b8;
    --ec-accent: #10b981;
    --ec-accent-2: #34d399;
    --ec-accent-glow: rgba(16, 185, 129, 0.35);
    --ec-gold: #fbbf24;
    --ec-gold-glow: rgba(251, 191, 36, 0.25);
    --ec-primary: #3b82f6;
    --ec-danger: #ef4444;
    --ec-radius: 16px;
    --ec-radius-sm: 12px;
    --ec-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    --ec-shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.45);
    --ec-nav-h: 76px;
    --ec-font: 'Plus Jakarta Sans', system-ui, sans-serif;
    --ec-gradient: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    --ec-gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --ec-gradient-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(16, 185, 129, 0.18) 0%, transparent 55%),
                        radial-gradient(ellipse 50% 40% at 90% 20%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
                        radial-gradient(ellipse 40% 30% at 10% 60%, rgba(251, 191, 36, 0.08) 0%, transparent 50%);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--ec-font);
    background-color: var(--ec-bg);
    color: var(--ec-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: var(--ec-gradient-hero);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
    mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
}

.page-main {
    flex: 1;
    padding-top: var(--ec-nav-h);
    position: relative;
    z-index: 1;
}

/* ── Navbar ── */
.navbar-ec {
    background: rgba(7, 11, 20, 0.82) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--ec-border);
    padding: 0.65rem 0;
    transition: box-shadow 0.3s;
}

.navbar-ec.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.navbar-ec .navbar-brand,
.brand-lockup-ec {
    color: var(--ec-text) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.navbar-ec .navbar-brand {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.brand-lockup-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    min-width: 0;
}

.brand-lockup-text .brand-name {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    color: var(--ec-text);
}

.brand-lockup-text .brand-tagline {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ec-accent);
    margin-top: 0.15rem;
    white-space: nowrap;
}

.brand-trust-pill {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.15rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #4ade80;
    font-weight: 600;
}

.brand-trust-pill .text-muted-ec {
    font-weight: 500;
    color: var(--ec-muted) !important;
}

@media (max-width: 380px) {
    .brand-lockup-text .brand-tagline {
        font-size: 0.55rem;
        letter-spacing: 0.04em;
    }
}

.navbar-ec .brand-icon {
    width: 36px;
    height: 36px;
    background: var(--ec-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    box-shadow: 0 4px 16px var(--ec-accent-glow);
}

.navbar-ec .nav-link {
    color: var(--ec-muted) !important;
    font-weight: 500;
    font-size: 0.925rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.navbar-ec .nav-link:hover,
.navbar-ec .nav-link.active {
    color: var(--ec-text) !important;
    background: rgba(255, 255, 255, 0.05);
}

.navbar-ec .btn-nav-cta {
    background: var(--ec-gradient);
    border: none;
    color: #fff !important;
    font-weight: 600;
    padding: 0.5rem 1.25rem !important;
    border-radius: 10px;
    box-shadow: 0 4px 16px var(--ec-accent-glow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.navbar-ec .btn-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px var(--ec-accent-glow);
    color: #fff !important;
}

/* ── Typography helpers ── */
.text-muted-ec { color: var(--ec-muted) !important; }

.gradient-text {
    background: linear-gradient(135deg, var(--ec-accent-2) 0%, var(--ec-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ec-accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

/* ── Buttons ── */
.btn-ec-primary {
    background: var(--ec-gradient);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--ec-accent-glow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-ec-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--ec-accent-glow);
    color: #fff;
}

.btn-ec-outline {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: var(--ec-text);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.btn-ec-outline:hover {
    border-color: var(--ec-accent);
    background: rgba(16, 185, 129, 0.08);
    color: var(--ec-text);
    transform: translateY(-2px);
}

.btn-ec-gold {
    background: var(--ec-gradient-gold);
    border: none;
    color: #0f172a;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--ec-gold-glow);
}

.btn-ec-gold:hover {
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--ec-gold-glow);
}

/* ── Cards ── */
.card-ec {
    background: var(--ec-surface);
    backdrop-filter: blur(12px);
    color: var(--ec-text);
    border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius);
    box-shadow: var(--ec-shadow);
    overflow: hidden;
}

.card-ec .card-header {
    background: rgba(255, 255, 255, 0.03);
    color: var(--ec-text);
    border-bottom: 1px solid var(--ec-border);
    font-weight: 700;
    padding: 1rem 1.25rem;
}

.card-ec .form-label { color: var(--ec-muted); font-weight: 500; font-size: 0.875rem; }

.card-ec .form-control,
.card-ec .form-select {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--ec-border);
    color: var(--ec-text);
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
}

.card-ec .input-group-text {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--ec-border);
    color: var(--ec-muted);
    border-radius: 10px 0 0 10px;
}

.card-ec .form-control:focus,
.card-ec .form-select:focus {
    background: rgba(0, 0, 0, 0.35);
    color: var(--ec-text);
    border-color: var(--ec-accent);
    box-shadow: 0 0 0 3px var(--ec-accent-glow);
}

.modal-ec {
    background: var(--ec-surface-solid);
    border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius);
    box-shadow: var(--ec-shadow-lg);
    color: var(--ec-text);
}

.modal-ec .modal-title {
    color: var(--ec-text);
    font-size: 1.05rem;
}

/* Logout confirmation modal */
.modal-backdrop.show {
    opacity: 0.82;
    background-color: #070b14;
}

.logout-modal-dialog {
    max-width: 420px;
}

.logout-confirm-modal {
    position: relative;
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 1) 55%, rgba(8, 12, 22, 1) 100%);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    overflow: hidden;
}

.logout-confirm-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #ef4444, #f59e0b);
    opacity: 0.85;
}

.logout-confirm-modal .modal-body {
    padding: 2rem 1.75rem 1.75rem;
    text-align: center;
}

.logout-modal-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.logout-modal-close:hover {
    color: #f1f5f9;
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.08);
}

.logout-confirm-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.15rem;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    color: #fde68a;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.18) 0%, rgba(245, 158, 11, 0.08) 100%);
    border: 1px solid rgba(251, 191, 36, 0.28);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.12);
}

.logout-confirm-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f8fafc;
    margin: 0 0 0.65rem;
}

.logout-confirm-text {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #94a3b8;
    margin: 0 auto 1.5rem;
    max-width: 320px;
}

.logout-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.logout-btn-cancel,
.logout-btn-confirm {
    min-height: 46px;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.logout-btn-cancel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: #e2e8f0;
}

.logout-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(148, 163, 184, 0.45);
    color: #f8fafc;
    transform: translateY(-1px);
}

.logout-btn-confirm {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fff;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.28);
}

.logout-btn-confirm:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(239, 68, 68, 0.38);
}

@media (max-width: 575.98px) {
    .logout-confirm-modal .modal-body {
        padding: 1.75rem 1.25rem 1.35rem;
    }

    .logout-confirm-actions {
        grid-template-columns: 1fr;
    }
}

/* ── Hero ── */
.hero-ec {
    position: relative;
    padding: 5rem 0 4rem;
    overflow: hidden;
}

.hero-ec::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--ec-accent-2);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.45rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--ec-accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.hero-lead {
    font-size: 1.125rem;
    color: var(--ec-muted);
    max-width: 640px;
    margin: 0 auto 1.25rem;
    line-height: 1.7;
}

.hero-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    max-width: 340px;
    margin: 0 auto 1.75rem;
}

.hero-cta-btn {
    flex: 1 1 calc(50% - 0.325rem);
    min-width: 132px;
    max-width: 164px;
    min-height: auto;
    padding: 0.5rem 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    border-radius: 10px;
    box-sizing: border-box;
}

.hero-cta-btn i {
    font-size: 0.95rem;
    line-height: 1;
}

.hero-cta-actions .btn-ec-outline {
    border-width: 1.5px;
}

.profit-promise-ec {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.65rem;
    max-width: 680px;
    margin: 0 auto 1.75rem;
    padding: 0.85rem 1.15rem;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--ec-muted);
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.28);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.profit-promise-ec > i {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: #4ade80;
    margin-top: 0.1rem;
}

.profit-promise-ec--page {
    display: flex;
    width: 100%;
    max-width: none;
}

.profit-promise-ec--inline {
    display: inline-flex;
    max-width: none;
    margin: 0;
    padding: 0.65rem 0.9rem;
    font-size: 0.875rem;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.hero-stat {
    background: var(--ec-surface);
    border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius-sm);
    padding: 1rem 1.5rem;
    text-align: center;
    min-width: 140px;
    backdrop-filter: blur(8px);
}

.hero-stat .stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ec-accent-2);
    line-height: 1.2;
}

.hero-stat .stat-label {
    font-size: 0.75rem;
    color: var(--ec-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.25rem;
}

/* ── Feature cards ── */
.feature-card {
    background: var(--ec-surface);
    border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius);
    padding: 2rem 1.5rem;
    height: 100%;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ec-gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--ec-border-hover);
    box-shadow: var(--ec-shadow-lg);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.25rem;
}

.feature-icon.icon-green { background: rgba(16, 185, 129, 0.15); color: var(--ec-accent); }
.feature-icon.icon-blue { background: rgba(59, 130, 246, 0.15); color: var(--ec-primary); }
.feature-icon.icon-gold { background: rgba(251, 191, 36, 0.15); color: var(--ec-gold); }
.feature-icon.icon-purple { background: rgba(168, 85, 247, 0.15); color: #a855f7; }

.feature-card h5 {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* ── Tier chips ── */
.tier-grid { margin-top: 1rem; }

.tier-chip {
    background: var(--ec-surface);
    border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius-sm);
    padding: 1rem 0.75rem;
    text-align: center;
    transition: all 0.25s;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.tier-chip::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--ec-gradient);
    opacity: 0;
    transition: opacity 0.25s;
}

.tier-chip:hover {
    border-color: var(--ec-border-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--ec-accent-glow);
}

.tier-chip:hover::after { opacity: 0.06; }

.tier-chip .tier-amount {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ec-accent-2);
    position: relative;
    z-index: 1;
}

.tier-chip .tier-name {
    font-size: 0.72rem;
    color: var(--ec-muted);
    position: relative;
    z-index: 1;
    margin-top: 0.15rem;
}

/* ── CTA section ── */
.cta-section {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(59, 130, 246, 0.08) 100%);
    border: 1px solid var(--ec-border);
    border-radius: 24px;
    padding: 3.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--ec-accent-glow) 0%, transparent 70%);
    top: -100px;
    right: -50px;
    pointer-events: none;
}

/* ── Dashboard ── */
.page-header-ec {
    background: var(--ec-surface);
    border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius);
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.page-header-ec h1 {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.stat-card-ec {
    background: var(--ec-surface);
    border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

.stat-card-ec:hover {
    transform: translateY(-3px);
    border-color: var(--ec-border-hover);
}

.stat-card-ec .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.stat-card-ec .stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ec-muted);
    margin-bottom: 0.35rem;
}

.stat-card-ec .stat-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.stat-card-ec.stat-balance .stat-icon { background: rgba(16, 185, 129, 0.15); color: var(--ec-accent); }
.stat-card-ec.stat-balance .stat-value { color: var(--ec-accent-2); }
.stat-card-ec.stat-active .stat-icon { background: rgba(59, 130, 246, 0.15); color: var(--ec-primary); }
.stat-card-ec.stat-active .stat-value { color: var(--ec-primary); }
.stat-card-ec.stat-pending .stat-icon { background: rgba(251, 191, 36, 0.15); color: var(--ec-gold); }
.stat-card-ec.stat-pending .stat-value { color: var(--ec-gold); }

/* ── Package cards ── */
.package-card {
    position: relative;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, rgba(15, 23, 42, 0.92) 100%);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.package-card .pkg-glow {
    position: absolute;
    top: -40%;
    right: -20%;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, transparent 70%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.package-card:hover {
    transform: translateY(-8px);
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(16, 185, 129, 0.12);
}

.package-card:hover .pkg-glow {
    opacity: 1.4;
}

.package-card.featured {
    border-color: rgba(251, 191, 36, 0.45);
    box-shadow: 0 12px 40px rgba(251, 191, 36, 0.08);
}

.package-card.featured .pkg-glow {
    background: radial-gradient(circle, rgba(251, 191, 36, 0.28) 0%, transparent 70%);
}

.package-card.featured .pkg-tier-icon {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(245, 158, 11, 0.15));
    border-color: rgba(251, 191, 36, 0.45);
    color: #fde68a;
}

.package-card .pkg-header {
    position: relative;
    padding: 1.35rem 1.25rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.package-card .pkg-tier-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 0.75rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ec-accent-2);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
}

.package-card .pkg-header h6 {
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ec-muted);
    margin-bottom: 0.4rem;
}

.package-card .pkg-price {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, var(--ec-accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.package-card .pkg-return-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.32rem 0.8rem;
    border-radius: 100px;
    margin-top: 0.65rem;
    border: 1px solid rgba(16, 185, 129, 0.28);
}

.package-card .pkg-return-example {
    font-size: 0.72rem;
    margin-top: 0.35rem;
    font-weight: 600;
    color: #94a3b8 !important;
}

.card-ec .pkg-return-badge {
    font-size: 0.68rem;
    margin-top: 0;
}

.package-card .pkg-chip-return strong {
    font-size: 0.95rem;
}

.active-inv-pro-return-badge {
    display: inline-block;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 999px;
    padding: 0.18rem 0.5rem;
    line-height: 1.2;
}

body.dashboard-hub-page .active-inv-pro-return-badge {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.3);
}

.package-card .pkg-body {
    padding: 1rem 1.15rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.package-card .pkg-chip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.08);
    font-size: 0.82rem;
}

.package-card .pkg-chip span {
    color: var(--ec-muted);
}

.package-card .pkg-chip strong {
    font-weight: 700;
}

.package-card .pkg-footer {
    padding: 0 1.15rem 1.15rem;
}

.package-card .btn-invest {
    background: var(--ec-gradient);
    border: none;
    color: #fff;
    font-weight: 700;
    width: 100%;
    padding: 0.75rem;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.package-card .btn-invest:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--ec-accent-glow);
    color: #fff;
}

/* ── Tables ── */
.table-ec {
    --bs-table-bg: transparent;
    --bs-table-color: var(--ec-text);
    --bs-table-border-color: var(--ec-border);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.03);
    margin-bottom: 0;
}

.table-ec thead {
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ec-muted);
}

.table-ec thead th {
    font-weight: 600;
    border-bottom: 1px solid var(--ec-border);
    padding: 0.85rem 1rem;
}

.table-ec tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--ec-border);
}

/* ── Auth pages ── */
.auth-page {
    min-height: calc(100vh - var(--ec-nav-h) - 120px);
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.auth-card {
    background: var(--ec-surface);
    border: 1px solid var(--ec-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--ec-shadow-lg);
}

.auth-card .auth-header {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-bottom: 1px solid var(--ec-border);
    padding: 2rem;
    text-align: center;
}

.auth-card .auth-header .auth-icon {
    width: 56px;
    height: 56px;
    background: var(--ec-gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 16px var(--ec-accent-glow);
}

.auth-card .auth-body { padding: 2rem; }

.auth-body .form-label { color: var(--ec-muted); font-weight: 500; font-size: 0.875rem; }

.register-terms-check .form-check-label {
    line-height: 1.45;
    color: var(--ec-muted);
}

.register-terms-check .form-check-input:checked ~ .form-check-label {
    color: var(--ec-text);
}

.register-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ec-accent-2);
    margin-bottom: 0.75rem;
}

.page-auth-register .auth-body {
    padding: 1.5rem 1.75rem 2rem;
}

.register-suggest-input::-webkit-calendar-picker-indicator {
    opacity: 0.5;
}

@media (min-width: 768px) {
    .page-auth-register .auth-header {
        padding: 1.75rem;
    }
}

.auth-body .form-control {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--ec-border);
    color: var(--ec-text);
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
}

.auth-body .form-control:focus {
    background: rgba(0, 0, 0, 0.35);
    color: var(--ec-text);
    border-color: var(--ec-accent);
    box-shadow: 0 0 0 3px var(--ec-accent-glow);
}

.link-accent {
    color: var(--ec-accent-2);
    text-decoration: none;
    font-weight: 600;
}

.link-accent:hover { color: var(--ec-accent); }

/* ── Active investment countdown cards ── */
.active-inv-card {
    position: relative;
    background: linear-gradient(160deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.95) 38%, rgba(15, 23, 42, 0.98) 100%);
    border: 1px solid rgba(52, 211, 153, 0.28);
    border-radius: 20px;
    padding: 1.15rem;
    height: 100%;
    overflow: hidden;
    animation: activeCardGlow 3s ease-in-out infinite;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.active-inv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #34d399, #fbbf24, #10b981);
    background-size: 200% 100%;
    animation: activeTopBar 4s linear infinite;
    pointer-events: none;
}

.active-inv-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.active-inv-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6ee7b7;
    margin-bottom: 0.55rem;
}

.live-pulse {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: liveDotPulse 1.6s ease-out infinite;
}

.active-inv-name {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    margin-bottom: 0.2rem;
}

.active-inv-invested {
    color: var(--ec-muted);
    font-size: 0.82rem;
}

.active-inv-days-ring {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(52, 211, 153, 0.45);
    box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.08);
    animation: activeRingPulse 3s ease-in-out infinite;
}

.active-inv-days-num {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    letter-spacing: -0.03em;
}

.active-inv-days-lbl {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ec-accent-2);
    margin-top: 0.15rem;
}

.active-inv-track {
    margin-bottom: 1rem;
    padding: 0.85rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(148, 163, 184, 0.08);
}

.active-inv-track-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--ec-muted);
    margin-bottom: 0.55rem;
}

.active-inv-track-top strong {
    color: var(--ec-accent-2);
    font-weight: 800;
}

.active-inv-progress-bar {
    height: 10px;
    margin-bottom: 0.65rem;
}

.active-inv-card .progress-bar {
    position: relative;
    overflow: hidden;
}

.active-inv-card .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    animation: activeProgressShine 2.6s ease-in-out infinite;
}

.active-inv-day-pill {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ec-accent-2);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
}

.active-inv-return-box {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(59, 130, 246, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.35);
    text-align: center;
}

.active-inv-return-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.active-inv-return-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ec-accent-2);
}

.active-inv-return-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: 99px;
    background: rgba(251, 191, 36, 0.2);
    color: var(--ec-gold);
}

.active-inv-return-amount {
    font-size: clamp(1.65rem, 5vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ec-gold);
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.active-inv-return-breakdown {
    font-size: 0.8rem;
    color: var(--ec-muted);
}

.active-inv-return-meta {
    font-size: 0.72rem;
    color: var(--ec-muted);
}

.active-inv-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.active-inv-stats.active-inv-stats-4 {
    grid-template-columns: repeat(2, 1fr);
}

.active-inv-stat.active-inv-stat-highlight {
    grid-column: 1 / -1;
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.25);
}

.active-inv-stat.active-inv-stat-highlight .meta-value {
    font-size: 1rem;
    color: var(--ec-gold);
}

.active-inv-stat {
    padding: 0.65rem 0.5rem;
    border-radius: 12px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.08);
}

.active-inv-stat .meta-label {
    display: block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--ec-muted);
    margin-bottom: 0.2rem;
}

.active-inv-stat .meta-value {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
}

@keyframes activeCardGlow {
    0%, 100% {
        box-shadow: 0 6px 24px rgba(16, 185, 129, 0.1);
        border-color: rgba(52, 211, 153, 0.28);
    }
    50% {
        box-shadow: 0 10px 36px rgba(16, 185, 129, 0.2);
        border-color: rgba(52, 211, 153, 0.5);
    }
}

@keyframes activeTopBar {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes activeRingPulse {
    0%, 100% { transform: scale(1); box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.08); }
    50% { transform: scale(1.04); box-shadow: inset 0 0 24px rgba(16, 185, 129, 0.16), 0 0 16px rgba(16, 185, 129, 0.15); }
}

@keyframes liveDotPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65); }
    70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes activeProgressShine {
    0% { left: -100%; }
    100% { left: 140%; }
}

@media (prefers-reduced-motion: reduce) {
    .active-inv-card,
    .active-inv-card::before,
    .live-pulse,
    .active-inv-days-ring,
    .active-inv-card .progress-bar::after {
        animation: none;
    }
}

.active-inv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 44px rgba(16, 185, 129, 0.18);
}

/* ── Professional active card ── */
.active-inv-card-pro {
    padding: 0;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.55) 0%, rgba(15, 23, 42, 0.98) 45%, rgba(8, 12, 22, 1) 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    animation: none;
    overflow: hidden;
}

.active-inv-card-pro::before {
    height: 2px;
    background: linear-gradient(90deg, #059669, #10b981, #34d399);
    animation: none;
    opacity: 0.9;
}

.active-inv-card-pro:hover {
    transform: translateY(-2px);
    border-color: rgba(52, 211, 153, 0.35);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.12);
}

.active-inv-pro-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 0.9rem 0.65rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.active-inv-pro-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.4rem;
}

.active-inv-pro-live {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6ee7b7;
}

.active-inv-pro-chip {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.active-inv-pro-chip-final,
.active-inv-pro-chip-complete {
    background: rgba(251, 191, 36, 0.1);
    color: var(--ec-gold);
    border-color: rgba(251, 191, 36, 0.25);
}

.active-inv-pro-name {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.2rem;
    color: #f1f5f9;
    line-height: 1.25;
}

.active-inv-pro-sub {
    margin: 0;
    font-size: 0.72rem;
    color: var(--ec-muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

.active-inv-pro-invest {
    color: #cbd5e1;
    font-weight: 600;
}

.active-inv-pro-dot {
    opacity: 0.45;
}

.active-inv-pro-ring {
    --ring-p: 0;
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    padding: 2px;
    background: conic-gradient(
        #10b981 0deg,
        #34d399 calc(var(--ring-p) * 3.6deg),
        rgba(51, 65, 85, 0.5) calc(var(--ring-p) * 3.6deg),
        rgba(51, 65, 85, 0.5) 360deg
    );
}

.active-inv-pro-ring-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    border: 1px solid rgba(71, 85, 105, 0.4);
}

.active-inv-pro-ring-val {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    letter-spacing: -0.03em;
}

.active-inv-pro-ring-lbl {
    font-size: 0.48rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-top: 0.1rem;
}

.active-inv-pro-highlight {
    margin: 0 0.9rem 0.65rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.18);
}

.active-inv-pro-highlight-main {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.active-inv-pro-highlight-label {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #94a3b8;
}

.active-inv-pro-highlight-value {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ec-gold);
    line-height: 1;
}

.active-inv-pro-highlight-split {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.68rem;
    color: var(--ec-muted);
}

.active-inv-pro-highlight-split em {
    font-style: normal;
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-right: 0.25rem;
}

.active-inv-pro-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    padding: 0 0.9rem 0.65rem;
}

.active-inv-pro-metric {
    text-align: center;
    padding: 0.45rem 0.25rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.06);
}

.active-inv-pro-metric i {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.active-inv-pro-metric-label {
    display: block;
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 0.15rem;
}

.active-inv-pro-metric-value {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1.2;
}

.active-inv-pro-bars {
    padding: 0 0.9rem 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.active-inv-pro-bar-top {
    display: flex;
    justify-content: space-between;
    font-size: 0.62rem;
    color: #94a3b8;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.active-inv-pro-bar-top span:last-child {
    font-weight: 700;
    color: #cbd5e1;
}

.active-inv-pro-bar {
    height: 4px;
    border-radius: 100px;
    background: rgba(51, 65, 85, 0.6);
    overflow: hidden;
}

.active-inv-pro-bar-fill {
    height: 100%;
    border-radius: 100px;
    transition: width 0.35s ease;
}

.active-inv-pro-bar-fill.profit {
    background: linear-gradient(90deg, #047857, #10b981);
}

.active-inv-pro-bar-fill.term {
    background: linear-gradient(90deg, #1d4ed8, #38bdf8);
}

.active-inv-pro-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0 0.9rem 0.65rem;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.06);
    border-left: 3px solid #10b981;
}

.active-inv-pro-notice i {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: #34d399;
    margin-top: 0.05rem;
}

.active-inv-pro-notice p {
    margin: 0;
    font-size: 0.68rem;
    line-height: 1.4;
    color: #94a3b8;
}

.active-inv-pro-notice-behind {
    background: rgba(249, 115, 22, 0.06);
    border-left-color: #f97316;
}

.active-inv-pro-notice-behind i {
    color: #fb923c;
}

.active-inv-pro-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    font-size: 0.65rem;
    color: #64748b;
}

.active-inv-pro-footer > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.active-inv-pro-pace {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.58rem;
    padding: 0.12rem 0.4rem;
    border-radius: 4px;
}

.active-inv-pro-pace-on_track {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.1);
}

.active-inv-pro-pace-behind {
    color: #fdba74;
    background: rgba(249, 115, 22, 0.1);
}

.active-inv-pro-pace-ahead {
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.1);
}

/* Compact secondary card */
.active-inv-card-compact.active-inv-card-pro {
    padding: 0.65rem 0.75rem;
}

.active-inv-pro-compact {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.active-inv-pro-compact .active-inv-pro-ring {
    width: 46px;
    height: 46px;
}

.active-inv-pro-compact .active-inv-pro-ring-val {
    font-size: 0.9rem;
}

.active-inv-pro-compact-main {
    flex: 1;
    min-width: 0;
}

.active-inv-pro-compact-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.active-inv-pro-compact-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    min-width: 0;
}

.active-inv-pro-compact-head .active-inv-pro-return-badge {
    display: inline-block;
    width: auto;
    margin: 0;
}

.active-inv-pro-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.active-inv-pro-amount {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ec-gold);
    flex-shrink: 0;
}

.active-inv-pro-compact-meta {
    margin: 0.3rem 0 0;
    font-size: 0.65rem;
    color: #64748b;
}

.active-inv-pro-compact-meta span {
    color: #34d399;
    font-weight: 600;
}

.progress-bar-profit {
    background: linear-gradient(90deg, #059669, #34d399) !important;
}

.progress-ec {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    overflow: hidden;
}

.progress-ec .progress-bar {
    background: var(--ec-gradient);
    border-radius: 100px;
    transition: width 0.4s ease;
}

/* ── Invest / payment ── */
.payment-card {
    border-color: rgba(251, 191, 36, 0.3) !important;
}

.payment-card .card-header {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(16, 185, 129, 0.08) 100%) !important;
}

.wallet-address-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px dashed rgba(16, 185, 129, 0.4);
    border-radius: 12px;
    padding: 0.25rem;
}

.wallet-address-input {
    user-select: all;
    -webkit-user-select: all;
    cursor: text;
}

.wallet-summary {
    background: rgba(0, 0, 0, 0.35);
    border: 1px dashed rgba(251, 191, 36, 0.35);
}

.back-link {
    color: var(--ec-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.back-link:hover { color: var(--ec-accent); }

/* ── How it works ── */
.steps-row { counter-reset: step; }

.step-item {
    text-align: center;
    position: relative;
}

.step-num {
    width: 48px;
    height: 48px;
    background: var(--ec-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 16px var(--ec-accent-glow);
}

/* ── Footer ── */
.footer-ec {
    background: rgba(7, 11, 20, 0.95);
    border-top: 1px solid var(--ec-border);
    color: var(--ec-muted);
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.footer-brand {
    margin-bottom: 0.75rem;
}

.footer-brand .brand-lockup-text .brand-name {
    font-size: 1.15rem;
}

.footer-links a {
    color: var(--ec-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--ec-accent); }

.footer-office-address {
    font-style: normal;
    line-height: 1.55;
    color: var(--ec-muted);
    margin-bottom: 0;
}

.footer-office-address i {
    vertical-align: -0.1em;
}

.footer-office-email {
    margin-bottom: 0;
    color: var(--ec-muted);
}

.footer-office-email a {
    text-decoration: none;
}

.footer-office-email a:hover {
    text-decoration: underline;
}

.footer-trust span.brand-trust-line {
    color: var(--ec-accent);
    font-weight: 600;
}

.footer-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    padding: 1.25rem 0;
    border-top: 1px solid var(--ec-border);
    margin-top: 2rem;
}

.footer-trust span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--ec-muted);
}

.footer-trust i { color: var(--ec-accent); }

/* ── Alerts ── */
.alert { border: none; border-radius: 12px; }

/* ── History page ── */
.history-stat-card {
    background: var(--ec-surface);
    border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius-sm);
    padding: 1.25rem;
    text-align: center;
    height: 100%;
}

.history-stat-card i { font-size: 1.5rem; margin-bottom: 0.5rem; display: block; }

.history-stat-num {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
}

.history-stat-num.history-stat-sm { font-size: 1.15rem; }

.history-stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ec-muted);
    margin-top: 0.25rem;
}

.history-filters .btn {
    border-color: var(--ec-border);
    color: var(--ec-muted);
    font-size: 0.8rem;
}

.history-filters .btn.active,
.history-filters .btn:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--ec-accent);
    color: var(--ec-accent-2);
}

.history-type-cell {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.history-type-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.history-type-icon.history-deposit { background: rgba(16, 185, 129, 0.15); color: var(--ec-accent); }
.history-type-icon.history-withdraw { background: rgba(251, 191, 36, 0.15); color: var(--ec-gold); }
.history-type-icon.history-investment { background: rgba(59, 130, 246, 0.15); color: var(--ec-primary); }

.history-table tbody tr { transition: background 0.15s; }

/* History page — compact layout */
body.page-history .history-page-wrap {
    max-width: 680px;
}

body.page-history .history-page-header {
    padding: 1.1rem 1.25rem;
    margin-bottom: 0.85rem;
}

body.page-history .history-page-header h1 {
    font-size: 1.1rem;
}

body.page-history .history-stat-card {
    padding: 0.85rem 0.65rem;
    border-radius: 12px;
}

body.page-history .history-stat-card i {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}

body.page-history .history-stat-num {
    font-size: 1.35rem;
}

body.page-history .history-stat-num.history-stat-sm {
    font-size: 0.95rem;
}

body.page-history .history-stat-label {
    font-size: 0.65rem;
    margin-top: 0.15rem;
}

body.page-history .history-card-header {
    font-size: 0.9rem;
}

body.page-history .history-filters .btn {
    font-size: 0.72rem;
    padding: 0.25rem 0.55rem;
}

body.page-history .history-table thead th {
    padding: 0.55rem 0.65rem;
    font-size: 0.68rem;
}

body.page-history .history-table tbody td {
    padding: 0.6rem 0.65rem;
    font-size: 0.82rem;
}

body.page-history .history-table tbody td.small {
    font-size: 0.72rem !important;
}

body.page-history .history-type-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 0.85rem;
}

body.page-history .history-type-cell {
    gap: 0.45rem;
}

body.page-history .history-table .badge {
    font-size: 0.68rem;
    padding: 0.3em 0.55em;
}

body.page-history .card-ec .card-body {
    font-size: 0.85rem;
}

@media (max-width: 575.98px) {
    body.page-history .history-page-wrap {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    body.page-history .history-table thead th:nth-child(2),
    body.page-history .history-table tbody td:nth-child(2) {
        min-width: 120px;
    }
}

/* ── Profile page ── */
.profile-card { padding: 2rem 1.5rem; }

.profile-avatar {
    width: 88px;
    height: 88px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--ec-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    box-shadow: 0 8px 24px var(--ec-accent-glow);
}

.profile-balance {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 1rem;
}

/* ── Admin ── */
body.admin-body {
    background: var(--ec-bg);
}

body.admin-body::before,
body.admin-body::after { display: none; }

.navbar-admin {
    background: rgba(7, 11, 20, 0.95) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--ec-border);
}

.admin-stat {
    background: var(--ec-surface);
    border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius-sm);
    padding: 1.25rem;
    text-align: center;
}

.admin-stat .stat-num {
    font-size: 1.75rem;
    font-weight: 800;
}

.nav-pills-ec .nav-link {
    color: var(--ec-muted);
    font-weight: 500;
    border-radius: 10px;
    padding: 0.6rem 1.1rem;
}

.nav-pills-ec .nav-link.active {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}

.admin-user-search-form {
    width: 100%;
    max-width: 480px;
}

.admin-user-search-form .form-control {
    background: rgba(0, 0, 0, 0.35);
    border-color: var(--ec-border);
    color: var(--ec-text);
    min-width: 0;
}

.admin-user-search-form .form-control:focus {
    background: rgba(0, 0, 0, 0.45);
    border-color: rgba(52, 211, 153, 0.45);
    color: var(--ec-text);
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.15);
}

.admin-user-search-form .input-group-text {
    border-color: var(--ec-border);
}

.admin-referral-cell {
    min-width: 160px;
    max-width: 220px;
}

.admin-referral-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 120px;
    overflow-y: auto;
}

.admin-referral-list li {
    padding: 0.15rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    line-height: 1.3;
}

.admin-referral-list li:last-child {
    border-bottom: none;
}

.admin-referral-list .text-secondary {
    font-size: 0.65rem;
    margin-left: 0.25rem;
}

.withdraw-attempt-blocked {
    background: rgba(251, 191, 36, 0.1);
    color: #fde68a;
}

.nav-pills-ec .nav-link .badge {
    font-size: 0.65rem;
}

/* ── Dashboard hub (login home) ── */
body.dashboard-hub-page .page-main {
    display: flex;
    flex-direction: column;
}

.dashboard-hub-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 720px;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

.dashboard-hub-alert {
    margin-bottom: 0;
}

.dashboard-hub {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 0;
    padding: 0.25rem 0 2rem;
    gap: 0;
}

.dashboard-hub-welcome {
    margin-bottom: 1.5rem;
    max-width: 420px;
    padding-top: 0.15rem;
}

.dashboard-hub-heading {
    font-size: clamp(1.75rem, 5vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 0.65rem;
    color: var(--ec-text);
}

.dashboard-hub-heading-line {
    display: block;
    width: 52px;
    height: 3px;
    margin: 0 auto 0.85rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ec-accent) 0%, rgba(16, 185, 129, 0.15) 100%);
}

.dashboard-hub-greeting {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ec-muted);
    margin: 0;
}

.dashboard-hub-greeting strong {
    color: var(--ec-text);
    font-weight: 600;
}

.dashboard-hub-block {
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
}

.dashboard-hub-block-head {
    margin-bottom: 0.85rem;
}

.dashboard-hub-stats {
    width: 100%;
}

.dashboard-hub-referral-wrap {
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
}

.dashboard-hub-referral-wrap .dashboard-hub-block-head {
    margin-bottom: 0.65rem;
}

.dashboard-hub-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    width: 100%;
}

.dashboard-hub-stat-card {
    margin-bottom: 0;
    padding: 1.15rem 1rem;
}

.dashboard-hub-stat-card .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.dashboard-hub-stat-card .stat-value {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
}

.dashboard-hub-stat-card.stat-balance .stat-value {
    font-size: clamp(1.1rem, 3.5vw, 1.65rem);
}

a.dashboard-hub-stat-card {
    color: var(--ec-text);
    display: block;
    text-decoration: none;
}

a.dashboard-hub-stat-card:hover {
    color: var(--ec-text);
}

.dashboard-hub-stat-meta {
    font-size: 0.72rem;
    color: var(--ec-muted);
    line-height: 1.3;
}

.dashboard-hub-stat-empty {
    opacity: 0.85;
}

.dashboard-package-complete-banner.dashboard-hub-block {
    max-width: 520px;
}

.dashboard-hub-active {
    margin-bottom: 0;
    width: 100%;
}

.dashboard-hub-active-head {
    margin-bottom: 0.65rem;
}

.dashboard-hub-active-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.dashboard-hub-active-grid .active-inv-card-pro {
    width: 100%;
    max-width: 360px;
}

.dashboard-active-card {
    margin-bottom: 0;
}

.active-inv-card-pro.dashboard-active-card,
.dashboard-hub-active-grid > .active-inv-card-pro:first-child {
    max-width: 360px;
}

.active-inv-card-compact.active-inv-card-pro {
    max-width: 360px;
}

@media (min-width: 576px) {
    .dashboard-hub-block,
    .dashboard-hub-referral-wrap {
        max-width: 520px;
    }

    .dashboard-hub-active-grid {
        max-width: 380px;
    }

    .dashboard-hub-active-grid .active-inv-card-pro,
    .active-inv-card-pro.dashboard-active-card {
        max-width: 380px;
    }
}

@media (min-width: 768px) {
    .dashboard-hub-block,
    .dashboard-hub-referral-wrap {
        max-width: 640px;
    }
}

.dashboard-hub-menu {
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-hub-menu-heading {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ec-muted);
    margin: 0 0 0.85rem;
    text-align: center;
}

.dashboard-hub-grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 0.9rem;
    width: 100%;
}

.dashboard-hub-btn {
    --hub-accent: var(--ec-accent);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.35rem 1.25rem;
    min-height: 140px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.55) 0%, rgba(15, 23, 42, 0.92) 55%, rgba(7, 11, 20, 0.98) 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    color: var(--ec-text) !important;
    text-decoration: none !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    -webkit-tap-highlight-color: transparent;
}

.dashboard-hub-btn::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--hub-accent);
    border-radius: 0 0 18px 18px;
    opacity: 0.95;
}

.dashboard-hub-btn::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 100%;
    background: radial-gradient(ellipse at 100% 50%, color-mix(in srgb, var(--hub-accent) 18%, transparent) 0%, transparent 70%);
    pointer-events: none;
}

.dashboard-hub-btn:hover {
    color: var(--ec-text) !important;
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--hub-accent) 45%, var(--ec-border));
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.dashboard-hub-btn-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    position: relative;
    z-index: 1;
}

.dashboard-hub-btn-arrow {
    display: none;
}

.dashboard-hub-btn-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 0.85rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.dashboard-hub-btn-label {
    font-weight: 700;
    font-size: 1.05rem;
    display: block;
    color: var(--ec-text);
}

.dashboard-hub-btn-desc {
    font-size: 0.82rem;
    color: var(--ec-muted) !important;
    display: block;
}

.hub-btn-invest { --hub-accent: #10b981; }
.hub-btn-invest .dashboard-hub-btn-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.35) 0%, rgba(5, 150, 105, 0.2) 100%);
    color: var(--ec-accent-2);
}

.hub-btn-portfolio { --hub-accent: #3b82f6; }
.hub-btn-portfolio .dashboard-hub-btn-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35) 0%, rgba(37, 99, 235, 0.2) 100%);
    color: #93c5fd;
}

.hub-btn-withdraw { --hub-accent: #fbbf24; }
.hub-btn-withdraw .dashboard-hub-btn-icon {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.35) 0%, rgba(245, 158, 11, 0.2) 100%);
    color: #fde68a;
}

.hub-btn-wallet { --hub-accent: #94a3b8; }
.hub-btn-wallet .dashboard-hub-btn-icon {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.3) 0%, rgba(100, 116, 139, 0.18) 100%);
    color: #e2e8f0;
}

.hub-btn-referral { --hub-accent: #a855f7; }
.hub-btn-referral .dashboard-hub-btn-icon {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.35) 0%, rgba(126, 34, 206, 0.2) 100%);
    color: #e9d5ff;
}

.hub-btn-history { --hub-accent: #64748b; }
.hub-btn-history .dashboard-hub-btn-icon {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.35) 0%, rgba(71, 85, 105, 0.2) 100%);
    color: #cbd5e1;
}

.hub-btn-profile { --hub-accent: #38bdf8; }
.hub-btn-profile .dashboard-hub-btn-icon {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.35) 0%, rgba(14, 165, 233, 0.2) 100%);
    color: #bae6fd;
}

@media (min-width: 576px) {
    .dashboard-hub-menu {
        max-width: 520px;
    }

    .dashboard-hub-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .dashboard-hub-btn {
        max-width: none;
        min-height: 165px;
    }
}

@media (min-width: 768px) {
    .dashboard-hub-menu {
        max-width: 640px;
    }

    .dashboard-hub-grid {
        gap: 1.1rem;
    }

    .dashboard-hub-btn {
        min-height: 172px;
    }
}

/* Dashboard referral card — compact */
.dashboard-referral-card {
    width: 100%;
    margin-bottom: 0;
    padding: 0.85rem 0.9rem;
    border-radius: 16px;
    border: 1px solid rgba(168, 85, 247, 0.22);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.98) 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.ref-dash-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.ref-dash-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.ref-dash-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #e9d5ff;
    background: rgba(168, 85, 247, 0.2);
    flex-shrink: 0;
}

.ref-dash-title {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ec-text);
    line-height: 1.2;
}

.ref-dash-sub {
    display: block;
    font-size: 0.65rem;
    color: var(--ec-muted);
}

.ref-dash-more {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--ec-accent-2);
    text-decoration: none;
    white-space: nowrap;
}

.ref-dash-more:hover {
    color: var(--ec-accent);
}

.ref-dash-link {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.ref-dash-input {
    flex: 1;
    min-width: 0;
    padding: 0.45rem 0.55rem;
    font-size: 0.68rem;
    color: var(--ec-text);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--ec-border);
    border-radius: 10px;
}

.ref-dash-input:focus {
    outline: none;
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.15);
}

.ref-dash-copy {
    flex-shrink: 0;
    border: none;
    border-radius: 10px;
    background: var(--ec-gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 0.15s, box-shadow 0.15s;
}

.ref-dash-copy .bi {
    font-size: 0.85rem;
}

.ref-dash-copy:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--ec-accent-glow);
}

.ref-dash-copied {
    font-size: 0.65rem;
    color: var(--ec-accent-2);
    margin: -0.25rem 0 0.45rem;
    text-align: right;
}

.ref-dash-stats {
    display: flex;
    align-items: center;
    margin-bottom: 0.65rem;
    padding: 0.5rem 0.35rem;
    border-radius: 11px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.ref-dash-stat {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.ref-dash-stat-divider {
    width: 1px;
    align-self: stretch;
    min-height: 28px;
    background: var(--ec-border);
    flex-shrink: 0;
}

.ref-dash-stat-num {
    display: block;
    font-size: clamp(0.95rem, 4vw, 1.1rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--ec-text);
    word-break: break-word;
}

.ref-dash-stat--earn .ref-dash-stat-num {
    font-size: clamp(0.85rem, 3.5vw, 1rem);
}

.ref-dash-stat-lbl {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ec-muted);
    margin-top: 0.1rem;
}

.ref-dash-team {
    padding-top: 0.6rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.ref-dash-team-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ec-muted);
    margin: 0 0 0.4rem;
}

.ref-dash-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
}

@media (max-width: 420px) {
    .ref-dash-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ref-dash-team-item {
    padding: 0.45rem 0.5rem;
    border-radius: 10px;
    text-align: center;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.ref-dash-team-item.is-done {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.28);
}

.ref-dash-team-reward {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    color: #fde68a;
    line-height: 1.2;
}

.ref-dash-team-item.is-done .ref-dash-team-reward {
    color: var(--ec-accent-2);
}

.ref-dash-team-meta {
    display: block;
    font-size: 0.6rem;
    color: var(--ec-muted);
}

.ref-dash-team-progress {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--ec-text);
    margin-top: 0.15rem;
}

@media (max-width: 575.98px) {
    .dashboard-hub-wrap {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .dashboard-hub-block,
    .dashboard-hub-referral-wrap,
    .dashboard-hub-menu {
        max-width: 340px;
    }

    .dashboard-hub-btn {
        max-width: 100%;
        min-height: 148px;
    }
}

/* Dashboard — light page shell (cards stay dark) */
body.dashboard-hub-page {
    background-color: #f1f5f9;
}

body.dashboard-hub-page::before {
    background: radial-gradient(ellipse 85% 55% at 50% -5%, rgba(14, 165, 233, 0.1) 0%, transparent 55%),
                radial-gradient(ellipse 45% 35% at 95% 15%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
}

body.dashboard-hub-page::after {
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, black 0%, transparent 90%);
}

body.dashboard-hub-page .navbar-ec {
    background: rgba(255, 255, 255, 0.94) !important;
    border-bottom-color: rgba(148, 163, 184, 0.25);
    box-shadow: 0 1px 10px rgba(148, 163, 184, 0.1);
}

body.dashboard-hub-page .navbar-ec.scrolled {
    box-shadow: 0 4px 18px rgba(148, 163, 184, 0.14);
}

body.dashboard-hub-page .navbar-ec .navbar-brand,
body.dashboard-hub-page .navbar-ec .brand-lockup-text .brand-name {
    color: #0f172a !important;
}

body.dashboard-hub-page .navbar-ec .nav-link {
    color: #64748b !important;
}

body.dashboard-hub-page .navbar-ec .nav-link:hover,
body.dashboard-hub-page .navbar-ec .nav-link.active {
    color: #0f172a !important;
    background: rgba(14, 165, 233, 0.08);
}

body.dashboard-hub-page .navbar-ec .navbar-toggler {
    border: 1px solid rgba(15, 23, 42, 0.15);
    background: rgba(15, 23, 42, 0.06);
    padding: 0.35rem 0.55rem;
}

body.dashboard-hub-page .navbar-ec .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.12);
}

body.dashboard-hub-page .navbar-ec .navbar-toggler-icon {
    filter: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(15, 23, 42, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

body.dashboard-hub-page .footer-ec {
    background: rgba(255, 255, 255, 0.97);
    border-top-color: rgba(148, 163, 184, 0.25);
    color: #64748b;
}

body.dashboard-hub-page .footer-ec .text-white {
    color: #1e293b !important;
}

body.dashboard-hub-page .footer-links a {
    color: #64748b;
}

body.dashboard-hub-page .footer-links a:hover {
    color: #059669;
}

body.dashboard-hub-page .footer-office-address,
body.dashboard-hub-page .footer-office-email {
    color: #64748b;
}

body.dashboard-hub-page .dashboard-hub-heading {
    color: #0f172a;
}

body.dashboard-hub-page .dashboard-hub-heading-line {
    background: linear-gradient(90deg, #0d9488 0%, rgba(13, 148, 136, 0.12) 100%);
}

body.dashboard-hub-page .dashboard-hub-greeting {
    color: #64748b;
}

body.dashboard-hub-page .dashboard-hub-greeting strong {
    color: #0f172a;
}

body.dashboard-hub-page .dashboard-hub-welcome .text-muted-ec {
    color: #64748b !important;
}

body.dashboard-hub-page .dashboard-hub-block-head .h6 {
    color: #1e293b;
}

body.dashboard-hub-page .dashboard-hub-menu-heading {
    color: #64748b;
}

body.dashboard-hub-page .dashboard-hub-active > p.text-center a.link-accent {
    color: #0d9488;
}

/* Dashboard cards — professional dark on light page */
body.dashboard-hub-page {
    --dash-card-surface: linear-gradient(165deg, #1a2332 0%, #111827 52%, #0c1220 100%);
    --dash-menu-surface: linear-gradient(165deg, #0f172a 0%, #0a101c 48%, #070b14 100%);
    --dash-card-border: rgba(148, 163, 184, 0.14);
    --dash-menu-border: rgba(71, 85, 105, 0.45);
    --dash-card-shadow: 0 2px 8px rgba(15, 23, 42, 0.08), 0 12px 32px rgba(15, 23, 42, 0.14);
    --dash-menu-shadow: 0 4px 10px rgba(15, 23, 42, 0.12), 0 16px 40px rgba(15, 23, 42, 0.22);
    --dash-card-shadow-hover: 0 4px 12px rgba(15, 23, 42, 0.1), 0 18px 42px rgba(15, 23, 42, 0.18);
    --dash-menu-shadow-hover: 0 6px 16px rgba(15, 23, 42, 0.14), 0 22px 48px rgba(15, 23, 42, 0.28);
    --dash-card-inset: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.dashboard-hub-page .stat-card-ec,
body.dashboard-hub-page .dashboard-hub-stat-card {
    background: var(--dash-card-surface);
    border: 1px solid var(--dash-card-border);
    border-radius: 18px;
    box-shadow: var(--dash-card-shadow), var(--dash-card-inset);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

body.dashboard-hub-page .stat-card-ec::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 18px 18px 0 0;
    opacity: 0.9;
}

body.dashboard-hub-page .stat-card-ec.stat-balance::before {
    background: linear-gradient(90deg, #059669, #34d399);
}

body.dashboard-hub-page .stat-card-ec.stat-active::before {
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

body.dashboard-hub-page .stat-card-ec .stat-icon {
    border: 1px solid rgba(255, 255, 255, 0.06);
}

body.dashboard-hub-page .stat-card-ec.stat-balance .stat-icon {
    background: rgba(16, 185, 129, 0.14);
    color: #6ee7b7;
}

body.dashboard-hub-page .stat-card-ec.stat-balance .stat-value {
    color: #5eead4;
}

body.dashboard-hub-page .stat-card-ec.stat-active .stat-icon {
    background: rgba(59, 130, 246, 0.14);
    color: #93c5fd;
}

body.dashboard-hub-page .stat-card-ec.stat-active .stat-value {
    color: #93c5fd;
}

body.dashboard-hub-page .stat-card-ec .stat-label {
    color: #94a3b8;
    letter-spacing: 0.1em;
}

body.dashboard-hub-page .stat-card-ec:hover,
body.dashboard-hub-page a.dashboard-hub-stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: var(--dash-card-shadow-hover), var(--dash-card-inset);
}

body.dashboard-hub-page .dashboard-hub-stat-meta {
    color: #64748b;
    border-top-color: rgba(148, 163, 184, 0.12);
}

body.dashboard-hub-page .dashboard-hub-btn {
    background: var(--dash-menu-surface);
    border: 1px solid var(--dash-menu-border);
    border-radius: 16px;
    box-shadow: var(--dash-menu-shadow), var(--dash-card-inset);
    width: 100%;
    max-width: 118px;
    margin: 0 auto;
    padding: 0.55rem 0.35rem;
    aspect-ratio: 1 / 1;
    min-height: 0;
    height: auto;
    justify-content: center;
}

body.dashboard-hub-page .dashboard-hub-btn-body {
    gap: 0.08rem;
    width: 100%;
    max-width: 100%;
}

body.dashboard-hub-page .dashboard-hub-btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.dashboard-hub-page .dashboard-hub-btn-label {
    color: #f8fafc;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.15;
}

body.dashboard-hub-page .dashboard-hub-btn-desc {
    color: #cbd5e1 !important;
    font-size: 0.58rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
}

body.dashboard-hub-page .dashboard-hub-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    justify-items: center;
}

@media (min-width: 576px) {
    body.dashboard-hub-page .dashboard-hub-btn {
        max-width: 124px;
        padding: 0.6rem 0.4rem;
    }

    body.dashboard-hub-page .dashboard-hub-btn-icon {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    body.dashboard-hub-page .dashboard-hub-btn-label {
        font-size: 0.74rem;
    }

    body.dashboard-hub-page .dashboard-hub-grid {
        gap: 0.6rem;
    }
}

body.dashboard-hub-page .dashboard-hub-btn::before {
    height: 3px;
    bottom: auto;
    top: 0;
    border-radius: 16px 16px 0 0;
    opacity: 0.95;
}

body.dashboard-hub-page .dashboard-hub-btn::after {
    background: radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--hub-accent) 16%, transparent) 0%, transparent 68%);
}

body.dashboard-hub-page .dashboard-hub-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(165deg, #131c2e 0%, #0c1220 52%, #070b14 100%);
    box-shadow: var(--dash-menu-shadow-hover), var(--dash-card-inset);
    border-color: color-mix(in srgb, var(--hub-accent) 42%, rgba(71, 85, 105, 0.45));
}

body.dashboard-hub-page .hub-btn-invest .dashboard-hub-btn-icon {
    background: rgba(16, 185, 129, 0.22);
    color: #6ee7b7;
}

body.dashboard-hub-page .hub-btn-portfolio .dashboard-hub-btn-icon {
    background: rgba(59, 130, 246, 0.22);
    color: #93c5fd;
}

body.dashboard-hub-page .hub-btn-withdraw .dashboard-hub-btn-icon {
    background: rgba(245, 158, 11, 0.22);
    color: #fcd34d;
}

body.dashboard-hub-page .hub-btn-wallet .dashboard-hub-btn-icon {
    background: rgba(100, 116, 139, 0.24);
    color: #e2e8f0;
}

body.dashboard-hub-page .hub-btn-referral .dashboard-hub-btn-icon {
    background: rgba(139, 92, 246, 0.22);
    color: #c4b5fd;
}

body.dashboard-hub-page .hub-btn-history .dashboard-hub-btn-icon {
    background: rgba(100, 116, 139, 0.22);
    color: #cbd5e1;
}

body.dashboard-hub-page .hub-btn-profile .dashboard-hub-btn-icon {
    background: rgba(14, 165, 233, 0.22);
    color: #7dd3fc;
}

body.dashboard-hub-page .dashboard-referral-card {
    background: var(--dash-card-surface);
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 18px;
    padding: 1rem 1.05rem;
    box-shadow: var(--dash-card-shadow), var(--dash-card-inset);
    position: relative;
    overflow: hidden;
}

body.dashboard-hub-page .dashboard-referral-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    border-radius: 18px 18px 0 0;
    opacity: 0.9;
}

body.dashboard-hub-page .ref-dash-head,
body.dashboard-hub-page .ref-dash-link,
body.dashboard-hub-page .ref-dash-stats,
body.dashboard-hub-page .ref-dash-team {
    position: relative;
    z-index: 1;
}

body.dashboard-hub-page .ref-dash-icon {
    background: rgba(139, 92, 246, 0.16);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.22);
}

body.dashboard-hub-page .ref-dash-title {
    color: #f1f5f9;
}

body.dashboard-hub-page .ref-dash-more {
    color: #6ee7b7;
}

body.dashboard-hub-page .ref-dash-input {
    background: rgba(0, 0, 0, 0.22);
    border-color: rgba(148, 163, 184, 0.16);
}

body.dashboard-hub-page .ref-dash-stats {
    background: rgba(0, 0, 0, 0.18);
    border-color: rgba(148, 163, 184, 0.1);
    border-radius: 12px;
}

body.dashboard-hub-page .ref-dash-team-item {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.18);
}

body.dashboard-hub-page .ref-dash-team-item.is-done {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.22);
}

body.dashboard-hub-page .ref-dash-team-reward {
    color: #fcd34d;
}

body.dashboard-hub-page .ref-dash-team-item.is-done .ref-dash-team-reward {
    color: #6ee7b7;
}

body.dashboard-hub-page .active-inv-card-pro {
    background: var(--dash-card-surface);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 18px;
    box-shadow: var(--dash-card-shadow), var(--dash-card-inset);
}

body.dashboard-hub-page .active-inv-card-pro::before {
    height: 3px;
    background: linear-gradient(90deg, #059669, #34d399);
}

body.dashboard-hub-page .active-inv-card-pro:hover {
    border-color: rgba(52, 211, 153, 0.32);
    box-shadow: var(--dash-card-shadow-hover), 0 0 0 1px rgba(16, 185, 129, 0.08);
}

body.dashboard-hub-page .dashboard-package-complete-banner {
    background: var(--dash-card-surface);
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 18px;
    box-shadow: var(--dash-card-shadow), var(--dash-card-inset);
}

body.dashboard-hub-page .dashboard-package-complete-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #059669, #34d399);
    border-radius: 18px 18px 0 0;
}

/* Package completed — large dashboard alert */
.dashboard-package-complete-banner {
    position: relative;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    width: 100%;
    margin: 0 0 0.25rem;
    padding: 1.25rem 1.35rem 1.25rem 1.15rem;
    border-radius: 18px;
    border: 1px solid rgba(52, 211, 153, 0.45);
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.22) 0%, rgba(15, 23, 42, 0.95) 55%, rgba(8, 12, 22, 1) 100%);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    text-align: left;
}

.dashboard-package-complete-dismiss {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    filter: invert(1);
    opacity: 0.7;
}

.dashboard-package-complete-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.2);
    border: 2px solid rgba(52, 211, 153, 0.5);
    color: #34d399;
    font-size: 1.65rem;
}

.dashboard-package-complete-title {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f8fafc;
    margin: 0 0 0.35rem;
}

.dashboard-package-complete-lead {
    font-size: 0.92rem;
    color: #e2e8f0;
    line-height: 1.45;
}

.dashboard-package-complete-detail {
    font-size: 0.8rem;
    color: #cbd5e1;
}

.dashboard-package-complete-wallet {
    font-size: 0.88rem;
    color: #94a3b8;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

@media (max-width: 575px) {
    .dashboard-package-complete-banner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 1.5rem;
    }

    .dashboard-package-complete-body {
        width: 100%;
    }
}

.active-inv-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--ec-border);
}

.active-inv-price-badge {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ec-accent-2);
    line-height: 1.1;
}

.active-inv-price-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ec-gold);
    text-align: right;
}

.active-inv-days-accum {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.25);
}

.active-inv-days-accum-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.active-inv-days-accum-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ec-gold);
}

.active-inv-days-accum-day {
    font-size: 1rem;
    font-weight: 800;
    color: var(--ec-text);
    white-space: nowrap;
}

.active-inv-days-accum-bar .progress-bar {
    background: var(--ec-gradient-gold);
}

.active-inv-days-accum-meta {
    font-size: 0.75rem;
    color: var(--ec-muted);
    margin-top: 0.5rem;
}

.dashboard-active-card,
.active-inv-card-pro.dashboard-active-card {
    max-width: none;
    margin-bottom: 0;
}

.active-inv-pro-code-badge,
.active-inv-pro-code {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #94a3b8;
    padding: 0.12rem 0.4rem;
    border-radius: 4px;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.active-inv-pro-compact-head .active-inv-pro-code {
    flex-shrink: 0;
}

.active-inv-pro-name {
    font-size: 0.88rem;
    line-height: 1.3;
}

.active-inv-pro-highlight {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
}

.active-inv-pro-metrics,
.active-inv-pro-bars {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.active-inv-pro-notice {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
}

.active-inv-pro-header {
    padding: 0.7rem 0.75rem 0.55rem;
}

.active-inv-pro-highlight-value {
    font-size: 1.05rem;
}

.active-inv-pro-metric {
    padding: 0.4rem 0.2rem;
}

.active-inv-pro-metric-value {
    font-size: 0.68rem;
}

.active-inv-pro-footer {
    padding: 0.5rem 0.75rem;
}

@media (max-width: 575.98px) {
    .active-inv-price-badge {
        font-size: 1.35rem;
    }
}

/* ── Team milestone (referral) ── */
.team-milestone-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius-sm);
    padding: 1rem;
    height: 100%;
}

.team-milestone-card.claimed {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.08);
}

.team-milestone-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.team-milestone-reward {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ec-gold);
}

.team-milestone-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ec-text);
}

.team-milestone-progress {
    height: 6px;
}

.team-milestone-progress .progress-bar {
    background: var(--ec-gradient);
}

/* ── Terms page ── */
.terms-alert-liability {
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.45) !important;
    color: var(--ec-muted);
}

.terms-alert-liability .h6 {
    color: #fca5a5;
}

.page-terms .terms-card .card-body {
    font-size: 0.9rem;
}

.terms-card .terms-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--ec-border);
}

.terms-card .terms-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.terms-card .terms-section h2 {
    margin-bottom: 0.65rem;
}

.terms-card ul {
    padding-left: 1.25rem;
    margin-bottom: 0;
}

.about-steps {
    padding-left: 1.25rem;
}

.about-steps li {
    margin-bottom: 0.5rem;
}

.about-steps li:last-child {
    margin-bottom: 0;
}

.terms-card ul li {
    margin-bottom: 0.35rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-ec { padding: 3rem 0 2.5rem; }
    .page-header-ec { padding: 1.25rem; }
    .cta-section { padding: 2.5rem 1.25rem; }
}

@media (max-width: 400px) {
    .hero-cta-actions {
        flex-direction: column;
        max-width: 220px;
    }

    .hero-cta-btn {
        flex: 1 1 auto;
        max-width: none;
        width: 100%;
    }
}
