/* Akıllı Okul — Premium Design System */
:root {
  --primary: #2563EB;
  --primary-dark: #1E3A8A;
  --primary-light: #3B82F6;
  --cyan: #06B6D4;
  --navy: #1E3A8A;
  --live: #7C3AED;
  --success: #16A34A;
  --warning: #EA580C;
  --danger: #DC2626;
  --bg: #F8FAFC;
  --bg-card: #FFFFFF;
  --text: #0F172A;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --shadow: 0 4px 24px rgba(37, 99, 235, 0.08);
  --shadow-lg: 0 12px 40px rgba(37, 99, 235, 0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --font: 'Quicksand', sans-serif;
  --header-h: 80px;
  --sidebar-w: 260px;
  --transition: 0.25s ease;
}

[data-theme="dark"] {
  --bg: #0F172A;
  --bg-card: #1E293B;
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --border: #334155;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  padding-bottom: 80px;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 992px) { body { padding-bottom: 0; } }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

.ako-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.ako-logo img { width: 48px; height: 48px; max-width: 48px !important; object-fit: contain; flex-shrink: 0; }
.ako-logo-text {
  font-weight: 700; font-size: 1.25rem; color: var(--primary-dark); white-space: nowrap; line-height: 1.15;
  letter-spacing: -0.02em;
}

.ako-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  height: var(--header-h);
}
.ako-header .navbar {
  height: var(--header-h); padding: 0;
  display: flex; align-items: center; flex-wrap: nowrap; gap: 8px;
}
.ako-header .ako-logo { margin-right: 8px; padding-right: 20px; border-right: 1px solid var(--border); }
.ako-header .navbar-toggler { border: none; color: var(--text); margin-left: auto; }
.header-nav-left {
  display: flex; align-items: center; gap: 4px; margin-right: 12px !important;
}
.header-nav-left .nav-link {
  padding: 8px 14px !important; white-space: nowrap;
}
.nav-link { font-weight: 600; color: var(--text) !important; font-size: 0.95rem; }
.nav-link:hover { color: var(--primary) !important; }
.nav-icon-btn {
  background: none; border: none; color: var(--text); font-size: 1.15rem;
  padding: 8px 10px; border-radius: 8px; position: relative; cursor: pointer;
}
.nav-icon-btn:hover { background: var(--bg); }
.badge-count {
  position: absolute; top: 2px; right: 2px;
  background: var(--danger); color: #fff; font-size: 0.65rem;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.nav-profile-btn {
  background: var(--primary); border: none; border-radius: 50%;
  width: 38px; height: 38px; cursor: pointer; color: #fff; font-weight: 700; font-size: 0.85rem;
}
.header-search-wrap { flex: 1; max-width: 520px; margin: 0 1.25rem; position: relative; min-width: 180px; }
.header-search {
  display: flex; align-items: center; background: var(--bg);
  border: 1px solid var(--border); border-radius: 50px; padding: 0 16px; height: 44px;
}
.header-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.header-search i { color: var(--text-muted); margin-right: 10px; }
.header-search input { border: none; background: none; flex: 1; outline: none; font-family: var(--font); color: var(--text); }
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); display: none; max-height: 320px; overflow-y: auto; z-index: 100;
}
.search-results.show { display: block; }
.search-result-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: var(--text); border-bottom: 1px solid var(--border); }
.search-result-item:hover { background: var(--bg); }

.ako-loader {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}
.ako-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.ako-loader-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; width: 280px; margin: 0 auto;
}
.ako-loader .loader-logo {
  width: 56px !important; height: 56px !important; max-width: 56px !important;
  display: block; margin: 0 auto 16px; object-fit: contain;
}
.ako-loader h2 { font-weight: 700; color: var(--primary-dark); margin: 0 0 8px; font-size: 1.5rem; }
.ako-loader p { color: var(--text-muted); margin: 0; }
.loader-bar { width: 200px; height: 4px; background: var(--border); border-radius: 2px; margin: 20px auto 0; overflow: hidden; }
.loader-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--cyan)); animation: loadBar 1.2s ease forwards; }
@keyframes loadBar { from { width: 0; } to { width: 100%; } }

.integration-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; }
.integration-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.integration-status { font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 50px; }
.integration-status.off { background: rgba(100,116,139,0.15); color: var(--text-muted); }
.integration-status.on { background: rgba(22,163,74,0.12); color: var(--success); }

.btn-primary { background: var(--primary); border-color: var(--primary); font-weight: 600; border-radius: 8px; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); font-weight: 600; border-radius: 8px; }
.btn-accent { background: linear-gradient(135deg, var(--primary), var(--cyan)); border: none; color: #fff; font-weight: 600; border-radius: 8px; }
.btn-live { background: var(--live); color: #fff; border: none; font-weight: 600; border-radius: 8px; }

.hero-section { padding: 4rem 0 5rem; background: linear-gradient(180deg, rgba(37,99,235,0.04) 0%, transparent 100%); }
.hero-badge { display: inline-block; background: rgba(37,99,235,0.1); color: var(--primary); padding: 6px 16px; border-radius: 50px; font-weight: 600; font-size: 0.85rem; margin-bottom: 1rem; }
.hero-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.15; margin-bottom: 1rem; }
.text-gradient { background: linear-gradient(135deg, var(--primary), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 1.1rem; color: var(--text-muted); max-width: 520px; margin-bottom: 1.5rem; }
.hero-search { display: flex; align-items: center; background: var(--bg-card); border: 2px solid var(--border); border-radius: 50px; padding: 6px 6px 6px 20px; box-shadow: var(--shadow); max-width: 520px; }
.hero-search input { border: none; background: none; flex: 1; outline: none; padding: 10px; font-family: var(--font); font-size: 1rem; color: var(--text); }
.hero-search .btn { border-radius: 50px; padding: 10px 24px; }
.popular-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.tag { background: var(--bg-card); border: 1px solid var(--border); padding: 6px 14px; border-radius: 50px; font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }
.tag:hover { border-color: var(--primary); color: var(--primary); }
.hero-visual { position: relative; height: 400px; }
.hero-mockup img { width: 100%; border-radius: var(--radius-lg); }
.hero-card { position: absolute; background: var(--bg-card); padding: 12px 18px; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.9rem; animation: float 3s ease-in-out infinite; }
.hero-card-1 { top: 10%; right: 5%; }
.hero-card-2 { bottom: 30%; left: -5%; animation-delay: 1s; }
.hero-card-3 { top: 40%; right: -10%; animation-delay: 2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.promo-strip {
  position: relative;
  overflow: hidden;
  min-height: 44px;
}
.promo-slide {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 48px;
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  min-height: 44px;
}
.promo-slide.active { display: flex; }
.promo-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.2);
  padding: 3px 8px;
  border-radius: 50px;
}
.promo-desc { opacity: 0.92; }
.promo-cta { font-weight: 700; white-space: nowrap; }
.promo-dots {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.promo-dot {
  width: 7px; height: 7px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.4); padding: 0; cursor: pointer;
}
.promo-dot.active { background: #fff; }
@media (max-width: 768px) {
  .promo-slide { padding: 10px 16px 18px; font-size: 0.82rem; }
  .promo-dots { right: 50%; transform: translate(50%, 0); top: auto; bottom: 6px; }
}

.campaign-banner { padding: 12px 0; color: #fff; font-weight: 500; text-align: center; }
.section-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 1.5rem; }
.bg-light-subtle { background: rgba(37,99,235,0.03) !important; }

.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.category-card { display: flex; flex-direction: column; align-items: center; gap: 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 12px; text-align: center; color: var(--text); transition: all var(--transition); }
.category-card:hover { border-color: var(--cat-color, var(--primary)); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.cat-icon { width: 48px; height: 48px; border-radius: 12px; background: color-mix(in srgb, var(--cat-color, var(--primary)) 12%, transparent); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--cat-color, var(--primary)); }

.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.course-card { background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); transition: all var(--transition); }
.course-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.course-card-img-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.course-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.course-card:hover .course-card-img { transform: scale(1.05); }
.badge-bestseller { position: absolute; top: 10px; left: 10px; background: #FBBF24; color: #78350F; font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 4px; }
.btn-fav { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,0.9); border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; color: var(--text-muted); }
.btn-fav.active { color: var(--danger); }
.course-card-body { padding: 16px; }
.course-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.course-card-title a { color: var(--text); }
.course-card-instructor { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
.course-card-rating { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; margin-bottom: 8px; }
.rating-num { font-weight: 700; color: #B45309; }
.stars { color: #FBBF24; }
.course-card-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; }
.badge-level { background: var(--bg); padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.course-card-price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.price-current { font-size: 1.15rem; font-weight: 700; }
.price-old { font-size: 0.85rem; color: var(--text-muted); text-decoration: line-through; }
.price-discount { font-size: 0.75rem; font-weight: 700; color: var(--danger); }
.course-card-actions { margin-top: 12px; }

.skeleton { background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 6px; }
.skeleton-img { aspect-ratio: 16/9; }
.skeleton-text { height: 16px; margin: 8px 16px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; text-align: center; }
.stat-item strong { display: block; font-size: 2rem; font-weight: 700; color: var(--primary); }

.course-hero { border-bottom: 1px solid var(--border); }
.breadcrumb-nav { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.content-section { margin-bottom: 2rem; }
.content-section h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.includes-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.includes-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.includes-list i { color: var(--primary); width: 20px; }
.lesson-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.lesson-duration { margin-left: auto; color: var(--text-muted); }
.badge-preview { background: var(--primary); color: #fff; font-size: 0.7rem; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.purchase-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); top: calc(var(--header-h) + 16px) !important; }
.purchase-video { position: relative; aspect-ratio: 16/9; }
.purchase-video img { width: 100%; height: 100%; object-fit: cover; }
.play-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.3); cursor: pointer; }
.play-overlay i { font-size: 3rem; color: #fff; }
.purchase-body { padding: 20px; }
.instructor-mini { display: flex; gap: 16px; }
.avatar-lg { width: 64px; height: 64px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; flex-shrink: 0; }
.avatar-xl { width: 80px; height: 80px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.5rem; margin: 0 auto; }
.avatar-sm { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.7rem; }
.rating-overview { display: flex; gap: 2rem; margin-bottom: 1.5rem; align-items: center; }
.rating-big { font-size: 3.5rem; font-weight: 700; }
.rating-bar-row { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; margin-bottom: 4px; }
.rating-bar-row .bar { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.rating-bar-row .fill { height: 100%; background: #FBBF24; }

.player-page { background: #0F172A; min-height: 100vh; }
.player-page .ako-header { background: #1E293B; border-color: #334155; }
.player-page .nav-link, .player-page .nav-icon-btn { color: #F1F5F9 !important; }
.player-layout { display: flex; min-height: calc(100vh - var(--header-h)); }
.player-main { flex: 1; min-width: 0; }
.video-player-wrap { position: relative; aspect-ratio: 16/9; background: #000; }
.video-player-wrap video { width: 100%; height: 100%; display: block; }
.custom-controls { background: linear-gradient(transparent, rgba(0,0,0,0.85)); padding: 8px 16px 12px; position: absolute; bottom: 0; left: 0; right: 0; }
.progress-bar-wrap { height: 4px; background: rgba(255,255,255,0.3); border-radius: 2px; cursor: pointer; margin-bottom: 8px; }
.progress-bar-fill { height: 100%; background: var(--primary); border-radius: 2px; width: 0; }
.controls-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: #fff; }
.controls-row button { background: none; border: none; color: #fff; cursor: pointer; padding: 6px; }
.control-select { background: rgba(255,255,255,0.15); border: none; color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; }
.player-info { padding: 16px 24px; color: #F1F5F9; }
.player-sidebar { width: 360px; background: #1E293B; border-left: 1px solid #334155; overflow-y: auto; flex-shrink: 0; }
.sidebar-header { padding: 16px; border-bottom: 1px solid #334155; color: #F1F5F9; }
.sidebar-sec-title { padding: 10px 16px; font-weight: 700; font-size: 0.85rem; color: #94A3B8; background: #0F172A; }
.sidebar-lesson { display: flex; align-items: center; gap: 8px; padding: 10px 16px; cursor: pointer; color: #CBD5E1; font-size: 0.85rem; border-left: 3px solid transparent; }
.sidebar-lesson:hover, .sidebar-lesson.active { background: rgba(37,99,235,0.15); border-left-color: var(--primary); color: #fff; }
.sidebar-lesson.completed { color: var(--success); }
.sidebar-lesson small { margin-left: auto; color: #64748B; }

.panel-layout { display: flex; min-height: calc(100vh - var(--header-h)); }
.ako-sidebar { width: var(--sidebar-w); background: var(--bg-card); border-right: 1px solid var(--border); padding: 1.5rem 0; flex-shrink: 0; position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; }
.sidebar-section-title { padding: 8px 20px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.sidebar-link { display: flex; align-items: center; gap: 10px; padding: 10px 20px; color: var(--text-muted); font-weight: 600; font-size: 0.9rem; border-left: 3px solid transparent; }
.sidebar-link:hover { color: var(--primary); background: rgba(37,99,235,0.05); }
.sidebar-link.active { color: var(--primary); background: rgba(37,99,235,0.08); border-left-color: var(--primary); }
.panel-main { flex: 1; min-width: 0; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.kpi-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; gap: 16px; align-items: center; }
.kpi-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(37,99,235,0.1); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.kpi-value { font-size: 1.5rem; font-weight: 700; }
.kpi-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.kpi-green .kpi-icon { background: rgba(22,163,74,0.1); color: var(--success); }
.kpi-orange .kpi-icon { background: rgba(234,88,12,0.1); color: var(--warning); }
.kpi-purple .kpi-icon { background: rgba(124,58,237,0.1); color: var(--live); }

.ako-table { font-size: 0.9rem; }
.ako-table th { font-weight: 700; color: var(--text-muted); }
.filter-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: sticky; top: calc(var(--header-h) + 16px); }
.filter-group { margin-bottom: 16px; }

.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.live-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.live-card.upcoming { border-left: 4px solid var(--live); }
.live-card.completed { border-left: 4px solid var(--success); }
.live-badge { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 4px; margin-bottom: 10px; }
.live-meta { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--text-muted); margin: 12px 0; }

.live-room-page { background: #0F172A; min-height: 100vh; display: flex; flex-direction: column; }
.live-room-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: #1E293B; color: #fff; }
.live-room-body { flex: 1; display: flex; position: relative; }
.live-main-video { flex: 1; background: #1E293B; border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #94A3B8; min-height: 300px; margin: 16px; }
.live-toolbar { display: flex; justify-content: center; gap: 12px; padding: 16px; background: #1E293B; }
.live-tool { width: 48px; height: 48px; border-radius: 50%; background: #334155; border: none; color: #fff; cursor: pointer; font-size: 1.1rem; }
.live-chat-drawer { position: absolute; right: -320px; top: 0; bottom: 0; width: 320px; background: #1E293B; border-left: 1px solid #334155; display: flex; flex-direction: column; transition: right var(--transition); z-index: 10; }
.live-chat-drawer.open { right: 0; }
.chat-header { padding: 12px 16px; border-bottom: 1px solid #334155; color: #fff; display: flex; justify-content: space-between; }
.chat-messages { flex: 1; overflow-y: auto; padding: 12px; }
.chat-msg { padding: 8px 0; color: #CBD5E1; font-size: 0.9rem; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #334155; }
.chat-input input { flex: 1; background: #0F172A; border: 1px solid #334155; border-radius: 8px; padding: 8px 12px; color: #fff; outline: none; }

.checkout-summary, .checkout-payment { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.checkout-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.order-success-page .success-icon { font-size: 4rem; }

.quiz-option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; cursor: pointer; font-weight: 500; }
.quiz-result-card { text-align: center; padding: 3rem; background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border); }

.cert-border { border: 3px solid var(--primary); border-radius: var(--radius-lg); padding: 3rem; text-align: center; background: var(--bg-card); }
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.verify-result { padding: 24px; border-radius: var(--radius); text-align: center; margin-top: 16px; }
.verify-result.valid { background: rgba(22,163,74,0.1); border: 1px solid var(--success); color: var(--success); }

.messages-layout { display: flex; height: 500px; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.msg-sidebar { width: 280px; border-right: 1px solid var(--border); overflow-y: auto; background: var(--bg-card); }
.msg-conv { padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
.msg-chat { flex: 1; display: flex; flex-direction: column; }
.msg-chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-bubble { max-width: 70%; padding: 10px 14px; border-radius: 12px; font-size: 0.9rem; }
.chat-bubble.received { background: var(--bg-card); border: 1px solid var(--border); align-self: flex-start; }
.chat-bubble.sent { background: var(--primary); color: #fff; align-self: flex-end; }
.msg-chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }

.wizard-steps { display: flex; gap: 4px; margin-bottom: 2rem; flex-wrap: wrap; }
.wizard-step { flex: 1; min-width: 80px; text-align: center; padding: 10px; background: var(--bg); border-radius: 8px; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.wizard-step.active { background: var(--primary); color: #fff; }
.wizard-panel { display: none; }
.wizard-panel.active { display: block; }
.upload-zone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 3rem; text-align: center; cursor: pointer; color: var(--text-muted); }

.ai-assistant { position: fixed; bottom: 90px; right: 20px; z-index: 1050; }
@media (min-width: 992px) { .ai-assistant { bottom: 24px; } }
.ai-fab { background: linear-gradient(135deg, var(--primary), var(--live)); color: #fff; border: none; padding: 12px 20px; border-radius: 50px; font-weight: 700; font-family: var(--font); cursor: pointer; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 8px; }
.ai-panel { position: absolute; bottom: calc(100% + 12px); right: 0; width: 320px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: none; overflow: hidden; }
.ai-panel.open { display: block; }
.ai-header { display: flex; justify-content: space-between; padding: 12px 16px; background: linear-gradient(135deg, var(--primary), var(--live)); color: #fff; font-weight: 700; }
.ai-action-btn { background: var(--bg); border: 1px solid var(--border); padding: 10px; border-radius: 8px; text-align: left; cursor: pointer; font-family: var(--font); font-weight: 600; font-size: 0.85rem; width: 100%; margin-bottom: 6px; color: var(--text); }
.ai-rec-card { background: var(--bg-card); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }

#toastContainer { position: fixed; top: 90px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.ako-toast { display: flex; align-items: center; gap: 10px; background: var(--bg-card); border: 1px solid var(--border); padding: 12px 20px; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-weight: 600; font-size: 0.9rem; transform: translateX(120%); transition: transform 0.3s ease; min-width: 280px; }
.ako-toast.show { transform: translateX(0); }
.toast-success i { color: var(--success); }
.toast-error i { color: var(--danger); }

.ako-footer { background: var(--primary-dark); color: rgba(255,255,255,0.85); padding: 3rem 0 1.5rem; margin-top: 4rem; }
.ako-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.ako-footer ul { list-style: none; padding: 0; }
.ako-footer a { color: rgba(255,255,255,0.7); }
.social-links { display: flex; gap: 12px; }
.social-links a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2rem; padding-top: 1.5rem; text-align: center; font-size: 0.85rem; }

.mobile-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; background: var(--bg-card); border-top: 1px solid var(--border); display: flex; justify-content: space-around; padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); }
.mob-nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text-muted); font-size: 0.65rem; font-weight: 600; padding: 4px 8px; }
.mob-nav-item i { font-size: 1.2rem; }
.mob-nav-item:hover { color: var(--primary); }

.login-page { min-height: 100vh; background: var(--bg); }
.login-container { display: flex; min-height: 100vh; }
.login-card { flex: 1; max-width: 480px; margin: auto; padding: 2rem; }
.login-visual { flex: 1; background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--cyan)); display: flex; align-items: center; justify-content: center; color: #fff; padding: 3rem; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-btn { background: var(--bg); border: 1px solid var(--border); padding: 10px; border-radius: 8px; cursor: pointer; font-family: var(--font); font-weight: 600; font-size: 0.85rem; color: var(--text); display: flex; align-items: center; gap: 8px; justify-content: center; }

.error-page { text-align: center; padding: 5rem 2rem; }
.error-code { font-size: 5rem; font-weight: 700; color: var(--primary); }

@media (max-width: 991px) {
  .ako-header .ako-logo { border-right: none; padding-right: 0; margin-right: 0; }
  .ako-logo-text { font-size: 1.1rem; }
}
@media (max-width: 768px) {
  .header-search-wrap { display: none; }
  .course-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .player-layout { flex-direction: column; }
  .player-sidebar { width: 100%; max-height: 300px; }
  .messages-layout { flex-direction: column; height: auto; }
  .msg-sidebar { width: 100%; max-height: 200px; }
}
@media (max-width: 430px) {
  .hero-cta .btn { width: 100%; margin-bottom: 8px; }
  .kpi-grid { grid-template-columns: 1fr; }
}

[data-theme="dark"] .form-control, [data-theme="dark"] .form-select { background: var(--bg); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .dropdown-menu, [data-theme="dark"] .offcanvas, [data-theme="dark"] .modal-content { background: var(--bg-card); color: var(--text); }
