/* SmartNet App Stylesheet */
:root {
    --sn-blue: #1d4ed8;
    --sn-blue-dark: #1e3a8a;
    --sn-teal: #0f766e;
    --sn-orange: #ea580c;
    --sn-bg: #f1f5f9;
    --sn-sidebar-w: 260px;
    --sn-topbar-h: 62px;
}

*, *::before, *::after { box-sizing: border-box; }
body { background: var(--sn-bg); font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: #1e293b; margin: 0; }
a { text-decoration: none; }

/* ---- SIDEBAR ---- */
.sn-sidebar {
    width: var(--sn-sidebar-w);
    height: 100vh;
    background: linear-gradient(175deg, #1e3a8a 0%, #0f766e 100%);
    position: fixed; top: 0; left: 0; z-index: 1000;
    display: flex; flex-direction: column;
    overflow: hidden;
    transition: transform .3s ease;
}
.sn-sidebar-logo { padding: 22px 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sn-logo-text { font-size: 1.45rem; font-weight: 800; color: #fff; }
.sn-logo-text span { color: #fbbf24; }
.sn-nav { list-style: none; padding: 12px 12px 20px; margin: 0; flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.4) transparent; }
.sn-nav::-webkit-scrollbar { width: 5px; }
.sn-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.4); border-radius: 4px; }
.sn-nav::-webkit-scrollbar-track { background: rgba(255,255,255,.05); }
.sn-nav li { margin-bottom: 2px; }
.sn-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; border-radius: 7px;
    color: rgba(255,255,255,.75); font-size: .87rem; font-weight: 500;
    transition: background .2s, color .2s;
}
.sn-nav a:hover, .sn-nav a.active { background: rgba(255,255,255,.16); color: #fff; }
.sn-nav a i { font-size: 1.05rem; min-width: 18px; }
.sn-nav .nav-section { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.4); padding: 12px 14px 4px; }
.sn-sidebar-footer { padding: 16px 12px; border-top: 1px solid rgba(255,255,255,.1); flex-shrink: 0; }
.sn-sidebar-footer a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; color: rgba(255,255,255,.7); font-size: .88rem; font-weight: 500; transition: background .2s; }
.sn-sidebar-footer a:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---- MAIN ---- */
.sn-main { margin-left: var(--sn-sidebar-w); min-height: 100vh; }

/* ---- TOPBAR ---- */
.sn-topbar {
    height: var(--sn-topbar-h); background: #fff;
    border-bottom: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; position: sticky; top: 0; z-index: 999;
}
.sn-topbar-left { display: flex; align-items: center; gap: 12px; }
.sn-hamburger { display: none; background: none; border: none; padding: 4px; cursor: pointer; color: #475569; font-size: 1.3rem; }
.sn-topbar-right { display: flex; align-items: center; gap: 16px; }
.sn-notif-btn { position: relative; background: none; border: none; padding: 6px; cursor: pointer; color: #475569; font-size: 1.2rem; border-radius: 6px; transition: background .2s; }
.sn-notif-btn:hover { background: #f1f5f9; }
.sn-notif-dot { position: absolute; top: 2px; right: 2px; width: 8px; height: 8px; background: #ef4444; border-radius: 50%; border: 2px solid #fff; }
.sn-user-btn { display: flex; align-items: center; gap: 8px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px 12px 6px 8px; cursor: pointer; transition: background .2s; }
.sn-user-btn:hover { background: #f1f5f9; }
.sn-user-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--sn-blue), var(--sn-teal)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 700; }
.sn-user-name { font-size: .88rem; font-weight: 600; color: #334155; }

/* ---- PAGE CONTENT ---- */
.sn-page { padding: 28px 24px; }
.page-title { font-size: 1.35rem; font-weight: 700; color: #0f172a; margin: 0 0 4px; }
.page-sub { font-size: .88rem; color: #64748b; margin: 0 0 24px; }

/* ---- STAT CARDS ---- */
.sn-stat { background: #fff; border-radius: 12px; padding: 20px; display: flex; align-items: center; gap: 16px; border: 1px solid #e8eef4; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.sn-stat-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.sn-stat-icon.blue { background: #dbeafe; color: #1d4ed8; }
.sn-stat-icon.green { background: #dcfce7; color: #16a34a; }
.sn-stat-icon.orange { background: #ffedd5; color: #ea580c; }
.sn-stat-icon.purple { background: #ede9fe; color: #7c3aed; }
.sn-stat-icon.teal { background: #ccfbf1; color: #0d9488; }
.sn-stat-icon.yellow { background: #fef9c3; color: #ca8a04; }
.sn-stat-label { font-size: .75rem; color: #64748b; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.sn-stat-value { font-size: 1.65rem; font-weight: 700; color: #0f172a; line-height: 1.2; margin-top: 2px; }
.sn-stat-sub { font-size: .78rem; color: #94a3b8; margin-top: 2px; }

/* ---- CARDS ---- */
.sn-card { background: #fff; border-radius: 12px; border: 1px solid #e8eef4; box-shadow: 0 1px 4px rgba(0,0,0,.05); overflow: hidden; }
.sn-card-head { padding: 16px 20px; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: space-between; }
.sn-card-title { font-size: .95rem; font-weight: 700; color: #1e293b; margin: 0; }
.sn-card-body { padding: 20px; }

/* ---- TABLE ---- */
.sn-table { width: 100%; border-collapse: collapse; }
.sn-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: #64748b; padding: 10px 16px; background: #f8fafc; border-bottom: 2px solid #e2e8f0; text-align: left; white-space: nowrap; }
.sn-table td { padding: 12px 16px; border-bottom: 1px solid #f1f5f9; font-size: .88rem; color: #334155; vertical-align: middle; }
.sn-table tr:last-child td { border-bottom: none; }
.sn-table tbody tr:hover td { background: #f8fafc; }

/* ---- BADGES ---- */
.sn-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: .75rem; font-weight: 600; }
.sn-badge.paid { background: #dcfce7; color: #16a34a; }
.sn-badge.pending { background: #fef9c3; color: #92400e; }
.sn-badge.failed { background: #fee2e2; color: #dc2626; }
.sn-badge.active { background: #dcfce7; color: #16a34a; }
.sn-badge.suspended { background: #fee2e2; color: #dc2626; }
.sn-badge.verified { background: #dbeafe; color: #1d4ed8; }
.sn-badge.processed { background: #ccfbf1; color: #0d9488; }
.sn-badge.completed { background: #dcfce7; color: #16a34a; }
.sn-badge.redo { background: #ffedd5; color: #c2410c; }

/* ---- PROGRESS ---- */
.sn-progress { height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.sn-progress-bar { height: 100%; background: linear-gradient(90deg, var(--sn-blue), var(--sn-teal)); border-radius: 4px; transition: width .6s ease; }

/* ---- REFERRAL BOX ---- */
.referral-box { background: linear-gradient(135deg, #1e3a8a 0%, #0f766e 100%); border-radius: 12px; padding: 20px 24px; color: #fff; }
.referral-box h6 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.7); margin: 0 0 6px; }
.referral-box .referral-link-wrap { display: flex; gap: 8px; margin-top: 8px; }
.referral-box input { flex: 1; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 8px; padding: 8px 12px; font-size: .85rem; outline: none; }
.referral-box input::placeholder { color: rgba(255,255,255,.5); }

/* ---- NOTIFICATIONS ---- */
.notif-item { display: flex; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #f1f5f9; transition: background .15s; cursor: pointer; }
.notif-item:hover { background: #f8fafc; }
.notif-item.unread { background: #eff6ff; }
.notif-item.unread:hover { background: #dbeafe; }
.notif-item:last-child { border-bottom: none; }
.notif-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.notif-icon.payment { background: #dcfce7; color: #16a34a; }
.notif-icon.course { background: #dbeafe; color: #1d4ed8; }
.notif-icon.referral { background: #ede9fe; color: #7c3aed; }
.notif-icon.info { background: #f1f5f9; color: #475569; }
.notif-title { font-size: .88rem; font-weight: 600; color: #1e293b; margin: 0 0 2px; }
.notif-msg { font-size: .82rem; color: #64748b; margin: 0; }
.notif-time { font-size: .75rem; color: #94a3b8; white-space: nowrap; }
.unread-dot { width: 8px; height: 8px; background: var(--sn-blue); border-radius: 50%; flex-shrink: 0; margin-top: 4px; }

/* ---- ALERTS ---- */
.sn-alert { padding: 12px 16px; border-radius: 8px; font-size: .88rem; margin-bottom: 16px; display: none; }
.sn-alert.show { display: flex; align-items: center; gap: 10px; }
.sn-alert.error { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
.sn-alert.success { background: #dcfce7; color: #16a34a; border: 1px solid #bbf7d0; }
.sn-alert.info { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.sn-alert.warning { background: #fef9c3; color: #92400e; border: 1px solid #fde68a; }

/* ---- BUTTONS ---- */
.btn-sn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 20px; border-radius: 8px; font-size: .9rem; font-weight: 600; border: none; cursor: pointer; transition: all .2s; }
.btn-sn-primary { background: var(--sn-blue); color: #fff; }
.btn-sn-primary:hover { background: var(--sn-blue-dark); color: #fff; }
.btn-sn-outline { background: transparent; color: var(--sn-blue); border: 1.5px solid var(--sn-blue); }
.btn-sn-outline:hover { background: var(--sn-blue); color: #fff; }
.btn-sn-danger { background: #dc2626; color: #fff; }
.btn-sn-danger:hover { background: #b91c1c; color: #fff; }
.btn-sn-sm { padding: 6px 14px; font-size: .82rem; }

/* ---- FORMS ---- */
.sn-input { width: 100%; border: 1.5px solid #e2e8f0; border-radius: 8px; padding: 10px 14px; font-size: .9rem; transition: border-color .2s, box-shadow .2s; background: #fff; color: #1e293b; }
.sn-input:focus { border-color: var(--sn-blue); outline: none; box-shadow: 0 0 0 3px rgba(29,78,216,.1); }
.sn-label { font-size: .83rem; font-weight: 600; color: #374151; margin-bottom: 6px; display: block; }
.sn-form-group { margin-bottom: 18px; }

/* ---- AUTH PAGES ---- */
.auth-wrap { min-height: 100vh; background: linear-gradient(135deg, #1e3a8a 0%, #0f766e 100%); display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-card { background: #fff; border-radius: 16px; padding: 40px; width: 100%; max-width: 430px; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.auth-logo { font-size: 1.55rem; font-weight: 800; text-align: center; margin-bottom: 6px; display: block; }
.auth-logo span { color: var(--sn-orange); }
.auth-title { font-size: 1.3rem; font-weight: 700; text-align: center; color: #0f172a; margin: 0 0 4px; }
.auth-sub { text-align: center; color: #64748b; font-size: .88rem; margin: 0 0 28px; }
.auth-link { color: var(--sn-blue); font-weight: 600; }
.auth-link:hover { color: var(--sn-blue-dark); }
.btn-auth { width: 100%; background: var(--sn-blue); color: #fff; border: none; border-radius: 8px; padding: 12px; font-size: .95rem; font-weight: 700; cursor: pointer; transition: background .2s; margin-top: 4px; }
.btn-auth:hover { background: var(--sn-blue-dark); }
.btn-auth:disabled { opacity: .65; cursor: not-allowed; }
.auth-divider { text-align: center; font-size: .82rem; color: #94a3b8; margin: 20px 0; position: relative; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: #e2e8f0; }
.auth-divider span { background: #fff; padding: 0 12px; position: relative; }

/* ---- LANDING PAGE ---- */
.landing-body { background: #fff; font-family: 'Segoe UI', system-ui, sans-serif; }
.landing-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 16px 40px; display: flex; align-items: center; justify-content: space-between; transition: background .3s, box-shadow .3s; }
.landing-nav.scrolled { background: rgba(255,255,255,.97); box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.landing-nav.scrolled .landing-brand { color: #1e3a8a; }
.landing-nav.scrolled .nav-link-ghost { color: #334155; }
.landing-brand { font-size: 1.45rem; font-weight: 800; color: #fff; }
.landing-brand span { color: #fbbf24; }
.nav-link-ghost { color: rgba(255,255,255,.9); font-size: .9rem; font-weight: 500; padding: 8px 14px; border-radius: 6px; transition: background .2s; }
.nav-link-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.landing-nav.scrolled .nav-link-ghost:hover { background: #f1f5f9; color: #1e3a8a; }
.btn-nav-cta { background: #fbbf24; color: #1e3a8a; border-radius: 8px; padding: 9px 22px; font-weight: 700; font-size: .9rem; transition: all .2s; }
.btn-nav-cta:hover { background: #f59e0b; color: #1e3a8a; transform: translateY(-1px); }

.hero { min-height: 100vh; background: linear-gradient(135deg, #1e3a8a 0%, #0f766e 100%); display: flex; align-items: center; padding: 120px 0 80px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -10%; right: -5%; width: 500px; height: 500px; border-radius: 50%; background: rgba(255,255,255,.04); pointer-events: none; }
.hero::after { content: ''; position: absolute; bottom: -15%; left: -8%; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.04); pointer-events: none; }
.hero-tag { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 99px; padding: 5px 14px; font-size: .8rem; color: #fbbf24; font-weight: 600; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 20px; }
.hero h1 span { color: #fbbf24; }
.hero p { font-size: 1.05rem; color: rgba(255,255,255,.82); max-width: 500px; line-height: 1.7; margin-bottom: 32px; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; }
.hero-stat-val { font-size: 1.8rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-stat-lab { font-size: .78rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
.hero-img-box { background: rgba(255,255,255,.08); border-radius: 20px; border: 1px solid rgba(255,255,255,.15); padding: 30px; text-align: center; }

.section-tag { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--sn-blue); margin-bottom: 8px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: #0f172a; margin-bottom: 12px; }
.section-sub { font-size: 1rem; color: #64748b; max-width: 550px; line-height: 1.7; }

.feature-card { background: #fff; border-radius: 14px; padding: 28px; border: 1.5px solid #e8eef4; transition: box-shadow .2s, transform .2s; height: 100%; }
.feature-card:hover { box-shadow: 0 12px 32px rgba(29,78,216,.1); transform: translateY(-4px); }
.feature-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 16px; }
.feature-title { font-size: 1.05rem; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.feature-desc { font-size: .88rem; color: #64748b; line-height: 1.65; }

.step-num { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--sn-blue-dark), var(--sn-teal)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 800; flex-shrink: 0; }

.pricing-card { background: linear-gradient(135deg, #1e3a8a 0%, #0f766e 100%); border-radius: 20px; padding: 48px 40px; color: #fff; max-width: 480px; margin: 0 auto; }
.pricing-price { font-size: 3.5rem; font-weight: 800; color: #fff; line-height: 1; }
.pricing-price sub { font-size: 1rem; font-weight: 400; color: rgba(255,255,255,.7); vertical-align: middle; }
.pricing-feature { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: rgba(255,255,255,.85); padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.pricing-feature:last-child { border-bottom: none; }

.landing-footer { background: #0f172a; color: rgba(255,255,255,.6); padding: 40px 0 24px; }
.footer-brand { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.footer-brand span { color: #fbbf24; }
.footer-link { color: rgba(255,255,255,.6); font-size: .88rem; display: block; margin-bottom: 8px; transition: color .2s; }
.footer-link:hover { color: #fff; }

/* ---- COURSE CARDS ---- */
.course-card { background: #fff; border-radius: 12px; border: 1.5px solid #e8eef4; padding: 20px; transition: box-shadow .2s, border-color .2s; }
.course-card:hover { box-shadow: 0 8px 24px rgba(29,78,216,.08); border-color: #93c5fd; }
.course-card.locked { opacity: .65; }
.course-icon { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 12px; }
.course-title { font-size: .95rem; font-weight: 700; color: #1e293b; margin-bottom: 6px; }
.course-meta { font-size: .78rem; color: #64748b; margin-bottom: 12px; }

/* ---- QUIZ ---- */
.quiz-question { background: #f8fafc; border-radius: 10px; padding: 18px; margin-bottom: 16px; border: 1.5px solid #e2e8f0; }
.quiz-q-text { font-size: .92rem; font-weight: 600; color: #1e293b; margin-bottom: 12px; }
.quiz-input { width: 100%; background: #fff; border: 1.5px solid #e2e8f0; border-radius: 8px; padding: 10px 14px; font-size: .88rem; resize: vertical; min-height: 80px; transition: border-color .2s; }
.quiz-input:focus { border-color: var(--sn-blue); outline: none; box-shadow: 0 0 0 3px rgba(29,78,216,.08); }

/* ---- ADMIN ---- */
.admin-tag { display: inline-flex; align-items: center; gap: 5px; background: #fef3c7; color: #92400e; border-radius: 6px; padding: 4px 10px; font-size: .75rem; font-weight: 700; margin-left: 8px; }

/* ---- RESPONSIVE ---- */
.sn-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.5); z-index: 999; }
@media (max-width: 991px) {
    .sn-hamburger { display: block; }
    .sn-sidebar { transform: translateX(-100%); }
    .sn-sidebar.open { transform: translateX(0); }
    .sn-overlay.open { display: block; }
    .sn-main { margin-left: 0; }
    .sn-page { padding: 20px 16px; }
    .landing-nav { padding: 14px 20px; }
    .hero-stats { gap: 20px; }
}
@media (max-width: 575px) {
    .auth-card { padding: 28px 20px; }
    .hero h1 { font-size: 1.85rem; }
    .pricing-card { padding: 32px 24px; }
}
