
:root{
  --bg: #050507;
  --surface: #0d0e12;
  --muted: #9aa0a6;
  --text: #f8f9fb;
  --border: rgba(255,255,255,0.08);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

*{box-sizing:border-box;margin:0;padding:0}
body{background:linear-gradient(180deg,var(--bg),#020203);color:var(--text);min-height:100vh}
img{display:block;max-width:100%}

a{color:inherit;text-decoration:none}

.page{min-height:100vh;background:var(--bg)}
.topnav{display:flex;justify-content:space-between;align-items:center;padding:24px 36px;position:sticky;top:0;background:rgba(3,5,12,0.94);backdrop-filter:blur(20px);border-bottom:1px solid rgba(255,255,255,0.06);z-index:10}
.brand-row{display:flex;align-items:center;gap:18px}
.brand-mark{display:flex;align-items:center;gap:14px;font-weight:700;color:#fff}
.brand-mark span{font-size:1.1rem;letter-spacing:0.02em}
.logo{width:44px;height:44px}
.menu{display:flex;gap:24px}
.menu a{color:var(--muted);font-size:0.95rem;transition:color .2s ease}
.menu a:hover{color:#fff}
.actions{display:flex;gap:12px;align-items:center}
.link-button{color:var(--text);border:1px solid rgba(255,255,255,0.12);padding:10px 18px;border-radius:10px;transition:background .2s ease}
.primary-button{background:#fff;color:#000;padding:10px 20px;border-radius:10px;font-weight:700;transition:transform .2s ease,box-shadow .2s ease}
.primary-button:hover{transform:translateY(-1px);box-shadow:0 18px 40px rgba(255,255,255,0.12)}
.secondary-button{color:#fff;border:1px solid rgba(255,255,255,0.12);padding:10px 20px;border-radius:10px;transition:background .2s ease}
.secondary-button:hover{background:rgba(255,255,255,0.08)}

.main-content{max-width:1180px;margin:0 auto;padding:40px 36px}
.hero-section{display:grid;grid-template-columns:1.15fr 0.85fr;gap:28px;align-items:start;padding:24px 0}
.hero-copy{max-width:620px}
.eyebrow{display:inline-block;padding:8px 16px;border:1px solid rgba(255,255,255,0.12);border-radius:999px;color:var(--muted);font-size:0.8rem;margin-bottom:24px}
.hero-copy h1{font-size:3.3rem;line-height:1.04;margin-bottom:18px;max-width:620px}
.hero-text{color:var(--muted);font-size:1.05rem;line-height:1.8;max-width:620px;margin-bottom:28px}
.hero-buttons{display:flex;gap:14px;flex-wrap:wrap}
.hero-panel{display:grid;gap:18px}
.feature-card{padding:28px;background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.08);border-radius:18px}
.card-title{font-size:1.15rem;font-weight:700;margin-bottom:10px}
.feature-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.stat-card{padding:20px;border-radius:16px;background:rgba(255,255,255,0.02);border:1px solid rgba(255,255,255,0.08)}
.stat-card strong{display:block;font-size:1.3rem;margin-bottom:8px}

.labs-section{padding:50px 0 20px}
.section-header{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:24px}
.section-header h2{font-size:2rem;line-height:1.05}
.tabs-row{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:26px}
.tab{background:rgba(255,255,255,0.03);color:var(--text);border:1px solid rgba(255,255,255,0.08);padding:12px 18px;border-radius:999px;cursor:pointer}
.tab.active{background:#fff;color:#000;border-color:#fff}
.course-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.course-card{padding:24px;background:#090a0e;border-radius:20px;border:1px solid rgba(255,255,255,0.08);display:flex;flex-direction:column;gap:16px}
.course-head{display:flex;justify-content:flex-end}
.course-badge{font-size:.8rem;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,0.08);font-weight:700}
.course-card h3{font-size:1.4rem;line-height:1.15}
.course-card p{color:var(--muted);line-height:1.7}
.course-footer{display:flex;justify-content:space-between;align-items:center;font-size:.95rem;color:var(--muted);font-weight:600}
.cta-row{margin-top:26px;display:flex;justify-content:center}
.hero-button{background:#f7c21b;color:#000;padding:14px 32px;border-radius:14px;font-weight:700}

.community-section{padding:50px 0 20px}
.community-row{display:flex;justify-content:space-between;gap:24px;align-items:center}
.community-row h2{font-size:2rem;line-height:1.1}
.community-stat{text-align:right}
.community-stat strong{display:block;font-size:3rem;line-height:1;letter-spacing:-0.03em}
.community-stat span{color:var(--muted)}
.testimonial-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:26px}
.testimonial-card{background:#090a0e;border:1px solid rgba(255,255,255,0.08);border-radius:20px;padding:24px}
.stars{color:#f7c21b;margin-bottom:12px}
.testimonial-card h3{font-size:1.1rem;margin-bottom:12px}
.testimonial-card p{color:var(--muted);line-height:1.8;margin-bottom:16px}
.author{font-weight:700}

.page-footer{padding:40px 36px 24px;background:rgba(255,255,255,0.02);border-top:1px solid rgba(255,255,255,0.08);}
.footer-columns{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-bottom:32px}
.footer-columns h4{font-size:1rem;margin-bottom:16px}
.footer-columns a{display:block;color:var(--muted);margin-bottom:10px;font-size:.95rem}
.footer-bottom{display:flex;justify-content:space-between;color:var(--muted);font-size:.9rem}

.auth-page{display:flex;align-items:center;justify-content:center;min-height:calc(100vh - 90px);padding:40px 24px;background:linear-gradient(180deg,#050607,#020203)}
.auth-layout{width:100%;max-width:440px;background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.08);border-radius:24px;padding:36px;box-shadow:0 18px 60px rgba(0,0,0,0.4)}
.auth-layout h1{font-size:2rem;margin-bottom:18px}
.auth-form{display:flex;flex-direction:column;gap:16px;margin-top:18px}
.auth-form input{background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.08);border-radius:14px;padding:16px;color:var(--text)}
.auth-success{padding:24px;background:rgba(76,175,80,0.1);border:1px solid rgba(76,175,80,0.3);border-radius:14px;margin:18px 0;text-align:center}
.auth-success p{color:#7fd87f;margin-bottom:16px;line-height:1.8}
.error-message{padding:14px;background:rgba(244,67,54,0.1);border:1px solid rgba(244,67,54,0.3);border-radius:14px;color:#ff7369;margin-top:12px;font-size:.95rem}

@media(max-width:1080px){.hero-section{grid-template-columns:1fr}.feature-row{grid-template-columns:1fr}.course-grid{grid-template-columns:1fr 1fr}.community-row{flex-direction:column;align-items:flex-start}.footer-columns{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.topnav{flex-direction:column;align-items:flex-start;gap:18px;padding:22px}.menu{flex-wrap:wrap;gap:12px}.hero-copy h1{font-size:2.4rem}.main-content{padding:28px 20px}.course-grid{grid-template-columns:1fr}.testimonial-grid{grid-template-columns:1fr}.footer-columns{grid-template-columns:1fr}.auth-layout{padding:28px}}
.user-greeting{color:var(--muted);margin-right:12px;font-size:.95rem}
.dashboard-page{background:linear-gradient(180deg,#050607,#020203);min-height:calc(100vh - 70px);padding:28px 36px}
.dashboard-container{max-width:1200px;margin:0 auto}
.greeting-section{display:grid;grid-template-columns:1fr 320px;gap:20px;margin-bottom:28px}
.greeting-box{background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.08);border-radius:20px;padding:32px}
.greeting-box h1{font-size:2rem;margin-bottom:10px}
.greeting-box p{color:var(--muted);margin-bottom:18px}
.mission-box{background:rgba(76,175,80,0.08);border:1px solid rgba(76,175,80,0.2);border-radius:20px;padding:24px;display:flex;gap:16px}
.clock-icon{font-size:2.5rem}
.learning-section{margin-bottom:28px}
.learning-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.learning-header h2{font-size:1.4rem}
.tab-group{display:flex;gap:8px}
.courses-list{display:grid;gap:16px}
.dashboard-course-card{background:rgba(255,255,255,0.02);border:1px solid rgba(255,255,255,0.08);border-radius:18px;padding:20px}
.course-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.course-header h3{font-size:1.1rem}
.progress-badge{background:rgba(255,255,255,0.08);padding:6px 12px;border-radius:8px;font-size:.85rem;font-weight:600}
.progress-bar{width:100%;height:6px;background:rgba(255,255,255,0.08);border-radius:3px;overflow:hidden;margin-top:12px}
.progress-fill{height:100%;background:linear-gradient(90deg,#4f46e5,#7c3aed);transition:width .3s ease}
.stats-section{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.stat-card-dash{background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.08);border-radius:18px;padding:24px;text-align:center}
.stat-card-dash h2{font-size:2.5rem;margin:12px 0}
.admin-page{background:linear-gradient(180deg,#050607,#020203);min-height:calc(100vh - 70px);padding:28px 36px}
.admin-container{max-width:1200px;margin:0 auto}
.admin-container h1{font-size:2rem;margin-bottom:24px}
.users-table{width:100%;border-collapse:collapse;background:rgba(255,255,255,0.02);border:1px solid rgba(255,255,255,0.08);border-radius:12px;overflow:hidden}
.users-table thead{background:rgba(255,255,255,0.05)}
.users-table th{padding:14px;text-align:left;font-weight:700;color:var(--muted);border-bottom:1px solid rgba(255,255,255,0.08)}
.users-table td{padding:14px;border-bottom:1px solid rgba(255,255,255,0.08);color:var(--text)}
.users-table tbody tr:hover{background:rgba(255,255,255,0.02)}
.actions-cell{display:flex;gap:8px}
.action-btn{padding:6px 12px;border-radius:8px;border:1px solid rgba(255,255,255,0.12);font-size:0.85rem;cursor:pointer;transition:all 0.2s ease}
.edit-btn{color:#7c3aed;background:rgba(124,58,237,0.1);border-color:rgba(124,58,237,0.3)}
.edit-btn:hover{background:rgba(124,58,237,0.2)}
.delete-btn{color:#ff7369;background:rgba(244,67,54,0.1);border-color:rgba(244,67,54,0.3)}
.delete-btn:hover{background:rgba(244,67,54,0.2)}
.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.5);display:flex;align-items:center;justify-content:center;z-index:1000}
.modal-box{background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.08);border-radius:20px;padding:32px;max-width:400px;width:90%}
.modal-box h2{margin-bottom:18px;font-size:1.4rem}
.modal-box input{width:100%;padding:12px;background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.08);border-radius:10px;color:var(--text);margin-bottom:16px}
.modal-buttons{display:flex;gap:12px;justify-content:flex-end}
.modal-buttons button{padding:10px 18px;border-radius:10px;font-weight:700;cursor:pointer}

.profile-page{background:linear-gradient(180deg,#050607,#020203);min-height:calc(100vh - 70px);padding:28px 36px}
.profile-container{max-width:600px;margin:0 auto}
.profile-info-section{background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.08);border-radius:20px;padding:32px;margin-bottom:24px}
.profile-info-section h1{font-size:2rem;margin-bottom:24px}
.profile-details{display:grid;gap:16px}
.profile-field{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:rgba(255,255,255,0.02);border-radius:12px;border:1px solid rgba(255,255,255,0.06)}
.profile-label{color:var(--muted);font-size:.9rem}
.profile-value{font-weight:600}
.profile-section{background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.08);border-radius:20px;padding:32px;margin-bottom:24px}
.profile-section h2{font-size:1.3rem;margin-bottom:18px}
.profile-form{display:flex;flex-direction:column;gap:14px}
.profile-form input{background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.08);border-radius:14px;padding:14px;color:var(--text)}
.profile-form button{align-self:flex-start}
.success-message{padding:14px;background:rgba(76,175,80,0.1);border:1px solid rgba(76,175,80,0.3);border-radius:14px;color:#7fd87b;margin-bottom:16px;font-size:.95rem}
.totp-status-enabled,.totp-status-disabled{padding:24px;background:rgba(255,255,255,0.02);border:1px solid rgba(255,255,255,0.08);border-radius:16px}
.totp-status-enabled strong{color:#7fd87b}
.totp-setup{margin-top:20px}
.totp-qr{width:180px;height:180px;margin:0 auto 16px;display:block}
.totp-secret-box{text-align:center;margin-bottom:12px}
.totp-secret{font-family:monospace;font-size:1.1rem;background:rgba(255,255,255,0.04);padding:10px 16px;border-radius:10px;display:inline-block;letter-spacing:0.1em;margin-top:8px;user-select:all}
.totp-secret-box p{margin-bottom:4px}

