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

:root {
    --primary: #331635;
    --primary-light: #4a2350;
    --primary-dark: #1a0b1b;
    --secondary: #cfa73d;
    --secondary-light: #e8c45a;
    --accent: #6c5ce7;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #e17055;
    --surface: #ffffff;
    --surface-alt: #f8f6f3;
    --bg: #f0ebe3;
    --text: #2d3436;
    --text-muted: #636e72;
    --border: #e8e4df;
    --shadow-sm: 0 2px 8px rgba(51, 22, 53, 0.06);
    --shadow-md: 0 4px 20px rgba(51, 22, 53, 0.08);
    --shadow-lg: 0 8px 40px rgba(51, 22, 53, 0.12);
    --shadow-xl: 0 20px 60px rgba(51, 22, 53, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.primary-bg { background-color: var(--primary); }
.primary-text, .text-primary-text { color: var(--primary); }
.text-primary-bg { background-color: var(--primary); color: #fff; }
.secondary-bg { background-color: var(--secondary); }
.secondary-text { color: var(--secondary); }

/* Animated gradient background */
.gradient-animated {
    background: linear-gradient(-45deg, #331635, #1a0b1b, #4a2350, #2d1a30);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glassmorphism card */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-md);
}

/* Stat card with hover lift */
.stat-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card.blue::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.stat-card.purple::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.stat-card.green::before { background: linear-gradient(90deg, #10b981, #34d399); }
.stat-card.gold::before { background: linear-gradient(90deg, #cfa73d, #e8c45a); }

/* Course card */
.course-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.course-card:hover .course-card-img {
    transform: scale(1.05);
}

.course-card-img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button styles */
.btn-primary {
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 22, 53, 0.3);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--primary);
    border-radius: var(--radius-full);
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(207, 167, 61, 0.3);
}

/* Progress bar animation */
.progress-bar {
    height: 8px;
    border-radius: var(--radius-full);
    background: #e5e7eb;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Pulse dot for live indicators */
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    position: relative;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--success);
    opacity: 0.4;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.5); opacity: 0; }
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in:nth-child(1) { animation-delay: 0.05s; }
.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.15s; }
.fade-in:nth-child(4) { animation-delay: 0.2s; }

/* Code containers */
.workspace-container {
    background-color: #1E1E1E;
    color: #D4D4D4;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-height: 400px;
}

.file-tree {
    background-color: #252526;
    border-right: 1px solid #3A3A3A;
    color: #D4D4D4;
    padding: 1rem;
}

.code-editor {
    background-color: #1E1E1E;
    color: #D4D4D4;
    padding: 1.5rem;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    overflow: auto;
}

.terminal-container {
    background-color: #0d1117;
    color: #58a6ff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    min-height: 400px;
    font-family: 'JetBrains Mono', monospace;
    overflow: auto;
    border: 1px solid #21262d;
}

.code-container {
    font-family: 'JetBrains Mono', monospace;
    background-color: #1E1E1E;
    color: #D4D4D4;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-height: 400px;
}

/* Sidebar nav item */
.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(4px);
}

.nav-item.active {
    background: rgba(207, 167, 61, 0.15);
    color: var(--secondary);
    font-weight: 600;
}

/* Badge/tag styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Chart bar animation */
.chart-bar {
    transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px 6px 0 0;
}

/* Notification badge */
.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: var(--danger);
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary);
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c4b5a3; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a89580; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .container { padding-left: 16px; padding-right: 16px; }
    input, select, textarea, button { font-size: 16px !important; }
    table { font-size: 12px; }
    .certificate { width: 100% !important; height: auto !important; }
    .stat-card { padding: 1rem; }
}

a[class*="rounded-full"], button[class*="rounded-full"] {
    white-space: nowrap;
    min-width: fit-content;
}

/* Dark mode */
.dark body { background-color: #0a0a0a; color: #e0e0e0; }
.dark .bg-white { background-color: #1a1a1a; }
.dark .bg-gray-50, .dark .bg-gray-100 { background-color: #111111; }
.dark .text-gray-700, .dark .text-gray-800, .dark .text-gray-600 { color: #c4c4c4; }
.dark .border-gray-200, .dark .border-gray-100 { border-color: #2a2a2a; }
.dark .primary-text { color: #e0c97f; }
.dark .shadow-md, .dark .shadow-lg, .dark .shadow-sm { box-shadow: 0 4px 12px rgba(0,0,0,0.5); }
.dark .stat-card, .dark .course-card { background: #1a1a1a; border-color: #2a2a2a; }

/* 2026 learning experience refresh — clean LMS shell inspired by modern
   learning platforms while retaining Hakateq's own identity. */
:root {
    --primary: #3b1747;
    --primary-light: #562364;
    --primary-dark: #24102c;
    --secondary: #d7ad3e;
    --secondary-light: #f0cb63;
    --accent: #0b75c9;
    --success: #16865b;
    --surface-alt: #f7f8fa;
    --bg: #f4f6f8;
    --text: #20242a;
    --text-muted: #59636e;
    --border: #dfe3e8;
    --shadow-sm: 0 1px 3px rgba(31, 42, 55, .08);
    --shadow-md: 0 8px 24px rgba(31, 42, 55, .08);
    --shadow-lg: 0 18px 46px rgba(31, 42, 55, .12);
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
}

body { background: var(--bg); color: var(--text); }
h1, h2, h3, h4, h5, h6 { letter-spacing: -.025em; }

.site-header {
    background: rgba(255,255,255,.97) !important;
    border-top: 4px solid var(--primary);
    border-bottom: 1px solid #dfe3e8;
    box-shadow: 0 2px 10px rgba(31,42,55,.08) !important;
    backdrop-filter: blur(16px);
}
.site-header nav { min-height: 68px; }
.site-header .text-white { color: #303942 !important; }
.site-header a.text-white:hover,
.site-header button.text-white:hover { color: var(--primary) !important; background: #f2edf4 !important; }
.site-header .brand-mark {
    width: 42px; height: 42px; display: grid; place-items: center;
    background: var(--primary); border-radius: 10px; padding: 5px;
}
.site-header .brand-accent { color: var(--primary); }
.site-header #mobile-menu { background: #fff; border-color: var(--border); }
.site-header #mobile-menu .text-white { color: #303942 !important; }
.site-header #account-btn { border: 1px solid transparent; }
.site-header #account-btn:hover { border-color: #d8cddd; }
.site-nav-link { position:relative; color:#303942; font-size:14px; font-weight:600; padding:12px 13px; border-radius:6px; transition:.16s ease; }
.site-nav-link:hover { color:var(--primary); background:#f5f1f6; }
.site-nav-link::after { content:""; position:absolute; left:13px; right:13px; bottom:3px; height:3px; border-radius:3px; background:var(--primary); transform:scaleX(0); transition:transform .16s ease; }
.site-nav-link.active { color:var(--primary); font-weight:800; }
.site-nav-link.active::after { transform:scaleX(1); }
.mobile-nav-link { display:block; padding:10px 12px; border-radius:6px; color:#303942; font-size:14px; font-weight:600; border-left:3px solid transparent; }
.mobile-nav-link.active { color:var(--primary); background:#f2edf4; border-left-color:var(--primary); font-weight:800; }

.btn-primary, .btn-secondary {
    border-radius: 9px; min-height: 42px; box-shadow: none;
    transform: none !important; justify-content: center;
}
.btn-primary { background: var(--primary); }
.btn-primary:hover { background: var(--primary-light); box-shadow: 0 4px 12px rgba(59,23,71,.18); }
.btn-secondary { background: #f1c75b; color: #2d1832; }
.btn-secondary:hover { background: #e4b83f; box-shadow: 0 4px 12px rgba(215,173,62,.2); }

.course-card {
    border-radius: 12px; border-color: #dfe3e8; box-shadow: var(--shadow-sm);
}
.course-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #c9ced5; }
.course-card-img { aspect-ratio: 16/8; }
.badge { border-radius: 5px; font-weight: 700; }

.lms-dashboard-hero {
    background: linear-gradient(105deg, var(--primary) 0%, #542461 62%, #6d3478 100%) !important;
    animation: none;
    min-height: 190px; display: flex; align-items: center;
}
.lms-dashboard-hero h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
.lms-stat-strip { background: transparent !important; border: 0; margin-top: -32px; position: relative; z-index: 2; padding-top: 0; }
.lms-stat-strip .stat-card {
    border-radius: 12px; padding: 1.25rem; text-align: left;
    box-shadow: 0 8px 24px rgba(31,42,55,.1);
}
.lms-stat-strip .stat-card::before { width: 5px; height: 100%; right: auto; border-radius: 12px 0 0 12px; }
.lms-stat-strip .stat-card:hover { transform: none; }
.lms-dashboard-main { background: var(--bg) !important; padding-top: 1.25rem; }
.lms-dashboard-main > .container { max-width: 1380px; }
.lms-dashboard-main .bg-white { border-color: var(--border); box-shadow: var(--shadow-sm); }

.lms-catalog-hero { padding: 4.5rem 1rem; border-bottom: 1px solid var(--border); background: linear-gradient(180deg,#fff,#f8f5f9) !important; }
.lms-catalog-hero h1 { font-size: clamp(2.4rem, 5vw, 4.25rem); }
.lms-filterbar { top: 72px; box-shadow: 0 3px 10px rgba(31,42,55,.05); }
.lms-filterbar a { border-radius: 7px !important; }
.lms-catalog-grid { background: var(--bg) !important; }
.lms-catalog-grid > .container { max-width: 1320px; }

.course-overview-hero { background: linear-gradient(180deg,#fff,#f7f4f8) !important; border-bottom: 1px solid var(--border); }
.course-overview-hero img { border-radius: 12px !important; box-shadow: var(--shadow-md) !important; }
.course-overview-body { background: var(--bg); }
.course-curriculum { border-radius: 12px !important; box-shadow: var(--shadow-sm) !important; }
.curriculum-module { background: #f8f9fa !important; border-radius: 9px !important; padding: 1.25rem !important; }
.curriculum-module li { border-color: var(--border); border-radius: 7px !important; }
.credential-hero { background: linear-gradient(180deg,#fff,#f7f4f8) !important; padding: 4.5rem 1rem; }
.credential-grid { background: var(--bg) !important; }
.credential-card { border-radius: 12px !important; box-shadow: var(--shadow-sm) !important; }
.credential-card-head { background: linear-gradient(105deg,var(--primary),#5c2a67); }

.lesson-breadcrumb { background: #fff !important; border-color: var(--border); }
.lesson-shell { background: #eef1f4; min-height: calc(100vh - 120px); }
.lesson-layout { align-items: flex-start; }
.learning-stage > h1 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
.learning-stage .prose { border-radius: 10px; box-shadow: var(--shadow-sm); }
.lesson-sidebar { order: -1; width: 310px !important; flex: 0 0 310px; }
.learning-stage { width: calc(100% - 342px) !important; }
.notes-panel { position: static !important; border-radius: 10px; }
.toc-panel { border-radius: 10px; max-height: calc(100vh - 170px); overflow: auto; position: sticky; top: 96px; }
.toc-panel h3 { padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.toc-panel li a { display: block; padding: 7px 9px; border-radius: 6px; }
.toc-panel li a.secondary-text { background: #f2eaf4; color: var(--primary); }

.exercise-workbench, .lab-console { border-radius: 10px !important; box-shadow: var(--shadow-md) !important; }
.exercise-workbench { display: grid; grid-template-columns: minmax(250px, 32%) minmax(0, 68%); }
.exercise-workbench > :first-child { grid-column: 1; grid-row: 1 / span 3; background: #fff; border-right: 1px solid var(--border); border-bottom: 0; }
.exercise-workbench > .code-container { grid-column: 2; grid-row: 1; border-radius: 0; min-height: 360px; }
.exercise-workbench > .border-t { grid-column: 2; grid-row: 2; }
.exercise-workbench > :last-child { grid-column: 1 / -1; grid-row: 3; border-top: 1px solid var(--border); }
.exercise-workbench textarea { min-height: 310px; }

.lab-console { display: grid; grid-template-columns: minmax(260px, 31%) minmax(0, 69%); background: #fff; }
.lab-console > :first-child { grid-column: 1; grid-row: 1 / span 3; border-right: 1px solid var(--border); border-bottom: 0; background: #fff; }
.lab-console > .lab-toolbar { grid-column: 2; grid-row: 1; }
.lab-console > .terminal-container,
.lab-console > .workspace-container { grid-column: 2; grid-row: 2; border-radius: 0; margin: 0; min-height: 500px; box-shadow: none; }
.lab-console > .terminal-container { grid-column: 2; grid-row: 2; border-radius: 0; margin: 0; min-height: 500px; box-shadow: none; }
.lab-console > .bg-gray-50,
.lab-console > .p-4 { grid-column: 2; }
.lab-console > #flag-result { grid-column: 2; }
.terminal-container { background: #111821; border: 0; padding: 1.25rem; }
.workspace-container { border-radius: 0; }
.file-tree { background: #19212b; }
.code-editor { background: #111821; }
.lab-kicker { display:flex; align-items:center; gap:8px; color:var(--success); font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.14em; margin-bottom:14px; }
.lab-steps { display:flex; flex-direction:column; gap:6px; margin-top:22px; font-size:11px; color:#7a828b; }
.lab-steps span { padding:8px 10px; border-left:2px solid #dfe3e8; }
.lab-steps .active { color:var(--primary); border-color:var(--primary); background:#f7f1f8; font-weight:700; }
.lab-toolbar { min-height:58px; background:#fff; border-bottom:1px solid var(--border); padding:9px 14px; display:flex; justify-content:space-between; align-items:center; }
.lab-status { display:grid; grid-template-columns:10px auto; column-gap:9px; align-items:center; font-size:11px; color:#3e4852; }
.lab-status small { grid-column:2; color:#8a929b; font-size:9px; }
.lab-actions { display:flex; gap:7px; }
.lab-actions button { border:1px solid #cfd5dc; background:#fff; color:#39434d; border-radius:6px; padding:7px 11px; font-size:10px; font-weight:700; }
.lab-actions button:hover { background:#f3f5f7; border-color:#aab2bb; }
.lab-console:fullscreen { width:100vw; height:100vh; overflow:auto; background:#eef1f4; padding:24px; }

@media (max-width: 1024px) {
    .lesson-sidebar { order: 0; width: 100% !important; flex-basis: auto; }
    .learning-stage { width: 100% !important; }
    .toc-panel { position: static; max-height: none; }
}
@media (max-width: 760px) {
    .site-header nav { min-height: 58px; }
    .exercise-workbench, .lab-console { display: block; }
    .exercise-workbench > :first-child,
    .lab-console > :first-child { border-right: 0; border-bottom: 1px solid var(--border); }
    .lab-console > .terminal-container,
    .lab-console > .workspace-container { min-height: 430px; }
    .lms-stat-strip { margin-top: -18px; }
}

/* Unified application surfaces */
main section[style*="#f8f6f3"],
main section[style*="#f0ebe3"] { background: var(--bg) !important; }

main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]),
main select,
main textarea,
.admin-auth-shell input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]) {
    width: 100%;
    border: 1px solid #cfd5dc;
    border-radius: 7px !important;
    background: #fff;
    color: #20262d;
    min-height: 44px;
    padding: 10px 12px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
main textarea { min-height: 120px; }
main input:focus, main select:focus, main textarea:focus,
.admin-auth-shell input:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(90, 38, 95, .12) !important;
}
main label { color: #343c45; }
main table { border-collapse: collapse; width: 100%; }
main table thead { background: #f5f7f9; }
main table th { color: #5e6873; font-size: 11px; letter-spacing: .055em; text-transform: uppercase; }
main table th, main table td { border-bottom: 1px solid #e4e8ec; padding: 13px 16px; }
main table tbody tr:hover { background: #fafbfc; }

.auth-page main { background: #eef1f4; }
.auth-shell { position: relative; background: linear-gradient(115deg, #eef1f4 0 55%, #e8dfea 55% 100%) !important; }
.auth-shell::before { content:""; position:absolute; inset:28px auto 28px 4%; width:5px; background:var(--primary); border-radius:4px; opacity:.9; }
.auth-shell > .container { position:relative; }
.auth-shell .bg-white { border:1px solid #dfe3e8 !important; border-radius:12px !important; box-shadow:0 16px 45px rgba(35,28,38,.09) !important; }
.auth-shell h1 { letter-spacing:-.035em; }

.marketing-hero { background: linear-gradient(125deg, #2d1530 0%, #4f2254 64%, #643166 100%) !important; }
.marketing-hero .rounded-full { opacity:.35; }
.marketing-hero::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(17,7,19,.28),transparent 58%),radial-gradient(circle at 78% 20%,rgba(246,196,65,.12),transparent 32%); pointer-events:none; }
.hero-eyebrow { display:inline-flex; align-items:center; gap:10px; color:#f7d773; text-transform:uppercase; letter-spacing:.13em; font-size:11px; font-weight:800; }
.hero-eyebrow span { width:30px; height:2px; background:#f4c542; }
.hero-primary-action,.hero-secondary-action { min-height:48px; padding:13px 21px; border-radius:7px; font-size:14px; font-weight:800; display:inline-flex; align-items:center; gap:12px; transition:.18s ease; }
.hero-primary-action { background:#f5c542; color:#241126; box-shadow:0 12px 30px rgba(245,197,66,.18); }
.hero-primary-action:hover { background:#ffda61; transform:translateY(-2px); }
.hero-secondary-action { border:1px solid rgba(255,255,255,.38); color:#fff; }
.hero-secondary-action:hover { background:#fff; color:#331635; }
.hero-product-preview { position:relative; width:min(100%,520px); padding:42px 18px 18px; background:#f8fafb; border:1px solid rgba(255,255,255,.3); border-radius:15px; box-shadow:0 30px 70px rgba(12,5,14,.38); transform:perspective(1200px) rotateY(-4deg) rotateX(1deg); }
.hero-product-preview > img { width:100%; min-height:310px; object-fit:cover; object-position:center; border-radius:8px; border:1px solid #dfe3e8; }
.hero-learning-card { min-height:390px; padding:24px; background:linear-gradient(180deg,#fff,#f3f5f7); border:1px solid #dfe3e8; border-radius:8px; color:#303942; }
.hero-course-row { display:grid; grid-template-columns:48px 1fr auto; align-items:center; gap:12px; padding-bottom:18px; }
.hero-course-icon { display:grid; place-items:center; width:48px; height:48px; border-radius:8px; background:#4b2050; color:#f5c542; font-weight:900; }
.hero-course-row small,.hero-module-list small,.hero-lab-preview small { display:block; font-size:9px; color:#818b95; margin-bottom:3px; }
.hero-course-row strong { font-size:13px; }.hero-course-row b{font-size:18px;color:var(--primary)}
.hero-progress-track { height:7px; background:#dfe3e8; border-radius:8px; overflow:hidden; }.hero-progress-track span{display:block;width:72%;height:100%;background:linear-gradient(90deg,#5a265f,#8a4b8f)}
.hero-module-list { display:flex; flex-direction:column; gap:7px; margin-top:18px; }
.hero-module-list > div { display:grid; grid-template-columns:28px 1fr auto; align-items:center; gap:10px; padding:11px; border:1px solid #e1e5e9; background:#fff; border-radius:7px; }
.hero-module-list i { display:grid; place-items:center; width:25px; height:25px; border-radius:50%; background:#e8ebee; color:#68737d; font-size:10px; font-style:normal; font-weight:800; }.hero-module-list .done i{background:#def3e8;color:#168653}.hero-module-list .active{border-color:#b99fbd;background:#fcf9fc}.hero-module-list .active i{background:var(--primary);color:#fff}
.hero-module-list strong { display:block; font-size:11px; }.hero-module-list em{font-size:9px;color:var(--primary);font-style:normal;font-weight:800}
.hero-lab-preview { margin-top:14px; background:#151d26; color:#fff; border-radius:7px; padding:11px 13px; display:grid; grid-template-columns:10px 1fr auto; align-items:center; gap:10px; }.hero-lab-preview strong{font-size:10px}.hero-lab-preview code{font-size:9px;color:#57db98}

.learning-steps-section { background:linear-gradient(180deg,#f3f5f7 0%,#fff 100%) !important; border-top:1px solid #e1e5e9; border-bottom:1px solid #e1e5e9; }
.learning-steps-heading { max-width:1120px; margin:0 auto 42px; display:grid; grid-template-columns:1.2fr .8fr; gap:60px; align-items:end; }
.section-kicker { display:block; margin-bottom:10px; color:var(--primary); font-size:10px; font-weight:900; letter-spacing:.14em; text-transform:uppercase; }
.learning-steps-heading h2 { color:#252d35; font-size:clamp(2rem,4vw,3rem); font-weight:850; line-height:1.08; }
.learning-steps-heading > p { color:#69747f; font-size:15px; line-height:1.7; border-left:3px solid #f1c23e; padding-left:20px; }
.learning-steps-grid { position:relative; max-width:1120px; margin:0 auto; display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.learning-steps-grid::before { content:""; position:absolute; left:16%; right:16%; top:47px; height:2px; background:linear-gradient(90deg,#c9b5cc,#6e3b73,#c9b5cc); z-index:0; }
.learning-step-card { position:relative; z-index:1; min-height:390px; background:#fff; border:1px solid #dce1e5; border-radius:11px; padding:25px; box-shadow:0 8px 26px rgba(38,44,51,.055); transition:transform .2s ease,box-shadow .2s ease; }
.learning-step-card:hover { transform:translateY(-5px); box-shadow:0 18px 38px rgba(38,44,51,.1); }
.learning-step-card.featured { border-top:4px solid var(--primary); padding-top:22px; }
.learning-step-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:28px; }
.learning-step-number { display:grid; place-items:center; width:46px; height:46px; border-radius:50%; color:#fff; background:var(--primary); border:6px solid #f1eaf2; font-size:11px; font-weight:900; }
.learning-step-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:8px; background:#f5f1f6; color:var(--primary); }.learning-step-icon svg{width:23px;height:23px}
.learning-step-label { color:#8a6b20; background:#fff7dc; border:1px solid #f0df9e; border-radius:4px; padding:5px 7px; font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.07em; }
.learning-step-card h3 { color:#293139; font-size:20px; font-weight:800; margin-top:16px; }
.learning-step-card > p { color:#69747e; font-size:13px; line-height:1.65; margin-top:10px; }
.learning-step-card ul { border-top:1px solid #e4e8ec; margin-top:20px; padding-top:16px; display:flex; flex-direction:column; gap:8px; }
.learning-step-card li { position:relative; padding-left:20px; color:#4f5a65; font-size:11px; font-weight:650; }.learning-step-card li::before{content:"✓";position:absolute;left:0;color:#1d9a62;font-weight:900}
.learning-steps-action { margin-top:34px; display:flex; flex-direction:column; align-items:center; gap:9px; }.learning-steps-action .btn-primary{display:inline-flex;gap:12px;align-items:center;padding:13px 22px}.learning-steps-action small{color:#8a939c;font-size:10px}
.hero-preview-bar { position:absolute; left:18px; right:18px; top:14px; display:flex; align-items:center; gap:6px; color:#6c7580; font-size:10px; }
.hero-preview-bar span { width:7px; height:7px; border-radius:50%; background:#cbd1d7; }
.hero-preview-bar span:first-child { background:#d95d68; }.hero-preview-bar span:nth-child(2){background:#e9b949}.hero-preview-bar span:nth-child(3){background:#51a876}
.hero-preview-bar strong { margin-left:8px; font-weight:700; }
.hero-floating-card { position:absolute; background:#fff; color:#303842; border:1px solid #dfe3e8; border-radius:9px; box-shadow:0 14px 32px rgba(21,18,23,.2); }
.hero-progress-card { left:-32px; bottom:42px; width:150px; padding:14px; }
.hero-progress-card small,.hero-lab-card small { display:block; color:#7a8490; font-size:9px; }.hero-progress-card strong{font-size:23px;color:var(--primary)}
.hero-progress-card > div { height:5px; background:#e8ebee; margin-top:8px; border-radius:6px; overflow:hidden; }.hero-progress-card > div span{display:block;width:72%;height:100%;background:#5a265f}
.hero-lab-card { right:-20px; top:76px; padding:12px 15px; display:flex; align-items:center; gap:10px; }.hero-lab-card strong{font-size:11px}.hero-lab-card .pulse-dot{background:#24a56a}
.app-page, .community-shell, .commerce-section { background:#f3f5f7 !important; min-height:60vh; }
.app-page .bg-white, .community-shell .bg-white, .commerce-section .bg-white {
    border:1px solid #dfe3e8 !important;
    border-radius:10px !important;
    box-shadow:0 4px 16px rgba(37,43,49,.045) !important;
}
.commerce-hero { border-bottom:1px solid #dfe3e8; padding-top:3.25rem; padding-bottom:3.25rem; }
.commerce-hero h1 { letter-spacing:-.04em; }
.commerce-section .grid > div { border-radius:10px !important; border-color:#dfe3e8 !important; }
.community-shell article, .community-shell form { border-radius:10px !important; }

/* Administration workspace */
.admin-shell { background:#f3f5f7 !important; color:#242b33; }
.admin-sidebar {
    width:268px !important;
    background:linear-gradient(180deg,#351739 0%,#241026 100%) !important;
    border-right:1px solid #4b2850;
    box-shadow:6px 0 24px rgba(31,13,33,.13);
}
.admin-sidebar > div:first-child { padding:19px 20px !important; border-color:rgba(255,255,255,.1) !important; }
.admin-sidebar > div:first-child img { max-width:38px; }
.admin-sidebar h1 { color:#fff !important; }
.admin-sidebar p { color:#a99aad !important; }
.admin-sidebar nav { padding:14px 12px !important; }
.admin-sidebar .nav-item {
    display:flex; align-items:center; gap:11px; min-height:42px; padding:9px 12px;
    border-radius:7px; color:#d8ceda !important; font-size:13px; font-weight:600;
    border-left:3px solid transparent; transition:background .16s ease,color .16s ease;
}
.admin-sidebar .nav-item:hover { background:rgba(255,255,255,.075); color:#fff !important; }
.admin-sidebar .nav-item.active { background:rgba(255,255,255,.12); color:#fff !important; border-left-color:#f5c542; }
.admin-sidebar .nav-item svg { width:18px; height:18px; }
.admin-sidebar .border-white { border-color:rgba(255,255,255,.1) !important; }
.admin-sidebar a.bg-gradient-to-r { background:#f5c542 !important; color:#241026 !important; border-radius:7px !important; box-shadow:none !important; }

/* Persistent guided labs */
.lab-session-metrics { display:flex; flex-wrap:wrap; gap:9px; margin-top:18px; }
.lab-session-metrics span { background:#f4f6f8; border:1px solid #dfe3e8; border-radius:6px; padding:7px 10px; color:#66717c; font-size:10px; text-transform:uppercase; letter-spacing:.04em; }
.lab-session-metrics strong { color:#303942; margin-left:5px; }
.lab-report-link { border:1px solid #cfd5dc; border-radius:6px; padding:8px 11px; color:var(--primary); font-size:11px; font-weight:800; }
.lab-evidence-panel { display:grid; grid-template-columns:260px 1fr; border-top:1px solid var(--border); background:#fff; }
.lab-checkpoint-list { background:#f4f6f8; border-right:1px solid var(--border); padding:12px; display:flex; flex-direction:column; gap:6px; }
.lab-checkpoint-list button { display:grid; grid-template-columns:24px 1fr auto; gap:8px; align-items:center; text-align:left; border:1px solid transparent; border-radius:6px; padding:9px; color:#58636e; font-size:11px; }
.lab-checkpoint-list button > span:first-child { display:grid; place-items:center; width:22px; height:22px; border-radius:50%; background:#dfe3e8; font-weight:800; }
.lab-checkpoint-list button small { color:#929aa3; font-size:9px; }
.lab-checkpoint-list button.active,.lab-checkpoint-list button.selected { background:#fff; border-color:#c8b2cb; color:var(--primary); }
.lab-checkpoint-list button.complete > span:first-child { background:#dff3e9; color:#168653; }.lab-checkpoint-list button.complete > span:first-child::after{content:"✓"}.lab-checkpoint-list button.complete > span:first-child{font-size:0}.lab-checkpoint-list button.complete > span:first-child::after{font-size:11px}
.lab-evidence-main { padding:18px; }.lab-evidence-label{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.1em;color:var(--primary)}
.lab-evidence-main > p { color:#68737e; font-size:12px; margin-top:7px; }
.lab-evidence-controls { display:flex; gap:8px; margin-top:14px; }.lab-evidence-controls input{flex:1}.lab-evidence-controls button{background:var(--primary);color:#fff;border-radius:6px;padding:10px 15px;font-size:11px;font-weight:800}
.lab-hint-text { background:#fff8dc; border-left:3px solid #e7b825; padding:9px 11px; color:#725a05 !important; }
.lab-report-page{background:#eef1f4}.lab-report-sheet{background:#fff;border:1px solid #dce1e5;box-shadow:0 10px 32px rgba(32,38,45,.08);padding:36px;border-radius:10px}.lab-report-header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;border-bottom:3px solid var(--primary);padding-bottom:22px}.lab-report-header h1{font-size:30px;font-weight:800;color:#252d35;margin-top:5px}.lab-report-header p{color:#75808a}.lab-report-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#dfe3e8;margin:26px 0}.lab-report-summary>div{background:#f8f9fa;padding:14px}.lab-report-summary small{display:block;color:#7d8791;font-size:9px;text-transform:uppercase;letter-spacing:.08em}.lab-report-summary strong{font-size:13px;color:#303942}.lab-report-section{margin-top:28px}.lab-report-section h2{font-size:16px;font-weight:800;color:#303942;margin-bottom:12px}.report-pass{color:#168653;font-weight:800}.report-fail{color:#bd3541;font-weight:800}.lab-report-id{font-family:monospace;color:#8a939c;margin-top:8px}
.admin-main { margin-left:268px !important; min-width:0; }
.admin-topbar { min-height:72px; border-color:#dfe3e8 !important; box-shadow:none !important; }
.admin-topbar h2 { color:#252c34; letter-spacing:-.015em; }
.admin-content { max-width:1500px; margin:0 auto; padding:28px 32px !important; }
.admin-content .bg-white { border:1px solid #dfe3e8 !important; border-radius:10px !important; box-shadow:0 3px 14px rgba(38,44,51,.04) !important; }
.admin-content .rounded-2xl, .admin-content .rounded-xl { border-radius:10px !important; }
.admin-content .shadow-lg, .admin-content .shadow-xl { box-shadow:0 8px 24px rgba(38,44,51,.07) !important; }
.admin-content button, .admin-content a { transition-duration:.16s !important; }

.admin-auth-shell {
    position:relative; background:linear-gradient(105deg,#351739 0 32%,#eef1f4 32% 100%) !important;
    padding:32px;
}
.admin-auth-shell > div { border:0 !important; box-shadow:none !important; }
.admin-auth-shell > .relative.z-10 > .bg-white,
.admin-auth-shell > .w-full > .bg-white {
    border:1px solid #d9dee3 !important; border-radius:12px !important;
    box-shadow:0 24px 65px rgba(24,20,26,.16) !important;
}
.admin-auth-shell h1 { color:#2d343c !important; }
.admin-auth-shell .text-gray-400 { color:#7a8490 !important; }
.admin-auth-shell button[type="submit"] { background:var(--primary) !important; color:#fff !important; border-radius:7px !important; box-shadow:none !important; }

@media (max-width:1023px) {
    .admin-main { margin-left:0 !important; }
    .admin-sidebar { width:268px !important; }
    .admin-content { padding:22px 18px !important; }
}
@media (max-width:640px) {
    .auth-shell { background:#eef1f4 !important; padding-left:14px; padding-right:14px; }
    .auth-shell::before { display:none; }
    .admin-auth-shell { background:#eef1f4 !important; padding:18px; }
    .commerce-hero { padding-top:2.5rem; padding-bottom:2.5rem; }
    .hero-product-preview { transform:none; }.hero-floating-card{display:none}.lab-evidence-panel{grid-template-columns:1fr}.lab-checkpoint-list{border-right:0;border-bottom:1px solid var(--border)}.lab-evidence-controls{flex-direction:column}.lab-report-summary{grid-template-columns:1fr 1fr}.lab-report-sheet{padding:20px}.lab-report-header{display:block}.lab-report-header button{margin-top:16px}
    .learning-steps-heading{grid-template-columns:1fr;gap:18px}.learning-steps-grid{grid-template-columns:1fr}.learning-steps-grid::before{display:none}.learning-step-card{min-height:0}
}

@media (min-width:641px) and (max-width:900px) { .learning-steps-heading{grid-template-columns:1fr;gap:20px}.learning-steps-grid{grid-template-columns:1fr}.learning-steps-grid::before{display:none}.learning-step-card{min-height:0} }

@media print { .site-header,footer,.lab-report-header button{display:none!important}.lab-report-page{background:#fff;padding:0}.lab-report-sheet{box-shadow:none;border:0;padding:0} }
