@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* Commerce and subscription management */
.checkout-success h1 { margin:17px 0 7px; font-size: 21px; }
.checkout-success p { color:#6c838f; line-height:1.9; }
.checkout-reference { margin:19px 0; padding:12px; border:1px dashed #c7dce7; border-radius:12px; color:#607986; background:#f6fafc; font-size: 10px; }
.course-price-tag { width:max-content; margin:13px 0 2px; padding:6px 11px; border:1px solid #cbe4f1; border-radius:20px; color:#076fae; background:#edf8fd; font-size: 10px; font-weight:800; }
.ai-plan-admin-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
.ai-plan-admin-card { padding:16px; border:1px solid #dbe8ee; border-radius:16px; background:linear-gradient(155deg,#fff,#f7fbfd); }
.ai-plan-admin-card .form-group { margin-bottom:10px; }
.ai-plan-admin-card .form-row { gap:8px; }
.ai-plan-admin-card .check-row { margin-top:4px; }
.ai-plan-manager .form-actions { justify-content:flex-start; margin-top:15px; }
.ai-locked .service-icon .icon { width:24px; height:24px; }
@media(max-width:1000px){.ai-plan-admin-grid{grid-template-columns:1fr}}

:root {
  --navy-950: #02070b;
  --navy-900: #001623;
  --navy-800: #002c47;
  --navy-700: #064d78;
  --teal-700: #0568a8;
  --teal-600: #0878c5;
  --teal-500: #158edb;
  --teal-100: #dceefb;
  --teal-50: #f0f7fc;
  --amber-500: #38a6e8;
  --amber-100: #deeffa;
  --ink: #071d2b;
  --muted: #607587;
  --line: #dce7ee;
  --canvas: #f4f7fa;
  --success: #129668;
  --danger: #dc4c64;
  --shadow-sm: 0 10px 30px rgba(0, 35, 59, .08);
  --shadow-lg: 0 28px 70px rgba(0, 26, 43, .18);
}

html, body, button, input, textarea, select { font-family: "Vazirmatn", Tahoma, sans-serif !important; }
body { letter-spacing: 0; text-rendering: optimizeLegibility; font-feature-settings: "kern", "liga", "calt"; }
.brand {
  width: 145px;
  height: 68px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  font-size: 0 !important;
  line-height: 0;
}
.brand-mark {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent url("/assets/mana-brand-color.png") center / contain no-repeat;
  box-shadow: none;
}
.brand-mark::after {
  display: none;
}
.announcement { background: #01090f; }
.site-header {
  color: var(--ink);
  border-bottom-color: rgba(4,77,120,.12);
  background: rgba(255,255,255,.97);
  box-shadow: 0 5px 24px rgba(0,32,52,.08);
}
.site-header .brand { width: 118px; height: 66px; }
.site-header .main-nav a { color: #3e5965; }
.site-header .main-nav a:hover,
.site-header .main-nav a.active { color: #0568a8; }
.site-header .main-nav a.active::after { background: #087bc9; }
.site-header .btn-soft { color: #0568a8; border: 1px solid #c9e2f2; background: #e5f2fb; }
.site-header .btn-soft:hover { background: #d7ebf8; }
.site-header .container { gap: 22px; }
.site-header .main-nav { gap: 20px; }
.site-header .header-actions { gap: 7px; }
.site-header .header-actions .btn { min-height: 38px; padding: 7px 12px; border-radius: 10px; font-size: 11.5px; }
.site-header .menu-toggle i,
.site-header .menu-toggle i::before,
.site-header .menu-toggle i::after { background: #064d78; }
.btn-primary { background: linear-gradient(100deg, #034d7d, #087bc9); box-shadow: 0 10px 24px rgba(8, 123, 201, .23); }
.btn-primary:hover { background: linear-gradient(100deg, #023e66, #066cae); }
.btn-soft { color: #0568a8; background: #e5f2fb; }
.eyebrow { color: #0877bf; }
.eyebrow::before { background: #087bc9; box-shadow: 0 0 0 5px #e3f1fa; }
.hero {
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgba(8, 123, 201, .3), transparent 25%),
    radial-gradient(circle at 83% 72%, rgba(20, 105, 158, .22), transparent 26%),
    linear-gradient(118deg, #010609, #00253d 56%, #0768a8);
}
.hero::before { border-color: rgba(75, 180, 241, .19); box-shadow: 0 0 0 55px rgba(27, 141, 207, .05), 0 0 0 110px rgba(27, 141, 207, .035); }
.hero h1 em { color: #43b8f3; }
.hero-copy > p, .hero-trust { color: #c1d3de; }
.visual-stage { background: linear-gradient(145deg, #010609, #02466e); border: 1px solid rgba(255,255,255,.13); }
.visual-stage::before { background: linear-gradient(145deg, #03578d, #0b85d0); }
.visual-stage::after { border-color: #4bb9f1; opacity: .7; }
.dashboard-card { border: 1px solid rgba(255,255,255,.8); }
.badge { color: #075f98; background: #e4f2fb; }
.bars i { background: linear-gradient(to top, #034d7d, #1494df); }
.bars i:nth-child(4) { background: #42b0ec; }
.floating-note i, .service-icon, .feature-list i { color: #0874b9; background: #e1f0fa; }

/* Unified professional icon system */
.icon {
  width: 1.25em;
  height: 1.25em;
  display: inline-block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.18em;
}
.service-icon .icon { width: 25px; height: 25px; stroke-width: 1.65; }
.purpose-card > i .icon { width: 24px; height: 24px; }
.auth-form-icon .icon { width: 24px; height: 24px; }
.auth-benefits i .icon, .floating-note i .icon { width: 15px; height: 15px; stroke-width: 2.4; }
.search-box > span .icon { width: 18px; height: 18px; }
.play-btn .icon { width: 28px; height: 28px; }
.ai-welcome > i .icon, .ai-locked .service-icon .icon { width: 30px; height: 30px; }
.quick-action-icon .icon, .admin-kpi .icon { width: 21px; height: 21px; }
.icon-button .icon, .row-actions .icon { width: 16px; height: 16px; }
.stats { box-shadow: 0 18px 50px rgba(0,32,52,.11); }
.stat strong { color: #056ba9; }
.service-card:hover, .course-card:hover { border-color: #a8d4ef; box-shadow: 0 18px 45px rgba(1, 52, 84, .1); }
.course-cover { background: linear-gradient(135deg, #02080c, #076eae); }
.course-card:nth-child(2) .course-cover { background: linear-gradient(135deg, #00111d, #03527f); }
.course-card:nth-child(3) .course-cover { background: linear-gradient(135deg, #001a2b, #0983ce); }
.course-cover::after { background: #48b8ef; }
.section-dark { background: linear-gradient(125deg, #010609, #00314e); }
.cta-panel { background: linear-gradient(105deg, #01090f, #004c78 62%, #087bc9); }
.site-footer, .dashboard-nav { background: #01090f; }
.progress-ring { background: conic-gradient(#138ed5 0 62%, #163e56 62%); }
.progress-ring::before { background: #001623; }
.auth-visual { background: linear-gradient(145deg, #010609, #005180 60%, #087bc9); }
.auth-visual::before { border-color: rgba(71, 183, 239, .35); }
.auth-visual::after { background: rgba(49, 170, 235, .22); }
.auth-visual > .brand { width: 205px; height: 115px; border-radius: 0; overflow: visible; }
.auth-visual .brand-mark { background-image: url("/assets/mana-brand-white.png"); }
.player-screen { background: linear-gradient(135deg, #d8edfa, #4daee6); }
.player-progress i { background: linear-gradient(90deg, #04659f, #2ba6e9); }
.video-frame { background: linear-gradient(135deg, #010609, #034b74); }
.video-frame::before { border-color: rgba(8, 123, 201, .24); }
.lesson-video { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; background: #000; }
.player-empty { position: relative; z-index: 2; display: grid; place-items: center; gap: 10px; padding: 25px; text-align: center; }
.player-empty i { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; color: #087bc9; background: rgba(255,255,255,.94); font-style: normal; font-size: 25px; }
.player-empty i .icon { width: 29px; height: 29px; stroke-width: 1.7; }
.player-empty b { font-size: 16px; }.player-empty span { color: #b9cfdb; font-size: 11px; }
.auth-switch { margin-top: 20px !important; text-align: center; font-size: 12px; }
.check-row { display: flex; align-items: center; gap: 9px; color: #365766; font-size: 12px; }
.check-row input { width: 17px; height: 17px; accent-color: #087bc9; }
.quiz-admin-list { display: grid; gap: 11px; }
.quiz-admin-list > .btn { justify-self: start; margin-top: 8px; }
.quiz-admin-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #f8fafb; }
.quiz-admin-item b, .quiz-admin-item small { display: block; }
.quiz-admin-item b { font-size: 12px; }.quiz-admin-item small { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.9; }
.team-table-avatar { width: 38px; height: 38px; object-fit: cover; border-radius: 10px; background: #e8f2f7; }
.team-section { background: linear-gradient(180deg,#fff,#f1f6f9); }
.team-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 16px; }
.team-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 9px 28px rgba(0,35,59,.06); transition: .25s; }
.team-card:hover { transform: translateY(-5px); border-color: #9acde8; box-shadow: 0 20px 46px rgba(0,35,59,.12); }
.team-photo { position: relative; aspect-ratio: 358/460; overflow: hidden; background: linear-gradient(145deg,#edf5f9,#d7e9f3); }
.team-photo::after { content:""; position:absolute; inset:auto 0 0; height:36%; background:linear-gradient(transparent,rgba(0,25,42,.25)); pointer-events:none; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter:grayscale(1) contrast(1.04); transition:transform .45s cubic-bezier(.2,.8,.2,1),filter .42s ease; }.team-card:hover img{transform:scale(1.025);filter:grayscale(0) contrast(1)}
.team-card:focus-within .team-photo img { filter:grayscale(0) contrast(1); }
@media (hover:none) { .team-photo img { filter:none; } }
.team-card-body { padding: 16px; }.team-card-body h3 { margin: 0 0 5px; font-size: 15px; }.team-card-body > span { display:block; min-height:34px; color:#0874b9; font-size: 10px; line-height:1.8; }.team-card-body p { margin:10px 0 0; color:var(--muted); font-size: 10px; line-height:2; }
.client-cloud { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:14px; }
.client-brand { min-height:105px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; padding:15px; border:1px solid #d4e2e9; border-radius:16px; color:#466471; background:#fff; box-shadow:0 7px 20px rgba(0,35,59,.05); transition:.2s; }
.client-brand:hover { color:#076ba7; border-color:#91cce9; transform:translateY(-3px); box-shadow:0 13px 28px rgba(0,63,100,.1); }
.client-brand img { width:100%; height:54px; object-fit:contain; }
.client-brand b { font-size:11px; text-align:center; }
.about-hero { padding: 70px 0 80px; color:#fff; background:radial-gradient(circle at 15% 20%,rgba(8,123,201,.35),transparent 30%),linear-gradient(120deg,#010609,#003c61); }
.about-hero .breadcrumb { color:#9bb5c3; }.about-hero .breadcrumb a{color:#d7e6ed}.about-hero h1{max-width:900px;margin:18px 0 12px;font-size: 44px;line-height:1.55}.about-hero p{max-width:900px;color:#bed2dc;font-size: 15px;line-height:2.2}
.story-grid { display:grid; grid-template-columns:1.2fr .8fr; gap:22px; }.story-card,.purpose-card{padding:28px;border:1px solid var(--line);border-radius:19px;background:#fff}.story-card h2{font-size: 27px;line-height:1.65}.story-card p,.purpose-card p{color:var(--muted);line-height:2.25;font-size: 13px}.purpose-stack{display:grid;gap:15px}.purpose-card{display:flex;gap:16px}.purpose-card>i{width:45px;height:45px;flex:0 0 45px;display:grid;place-items:center;border-radius:12px;color:#0874b9;background:#e5f2fb;font-style:normal}.purpose-card h3{margin:0 0 8px;font-size: 17px}
.governance-banner { display:flex;align-items:center;justify-content:space-between;gap:30px;padding:38px;border-radius:22px;color:#fff;background:radial-gradient(circle at 15% 20%,rgba(55,178,239,.25),transparent 28%),linear-gradient(110deg,#01070b,#00517f)}.governance-banner h2{margin:10px 0;font-size: 30px}.governance-banner p{max-width:850px;color:#bdd1dc;line-height:2}
.faq-layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:25px;align-items:start}.faq-item{border:1px solid var(--line);border-radius:17px;background:#fff;overflow:hidden}.faq-item button{width:100%;display:flex;justify-content:space-between;gap:20px;padding:22px;border:0;background:#fff;text-align:right;font-weight:700;cursor:pointer}.faq-item button i{font-style:normal;color:#0874b9}.faq-item>div{display:none;padding:0 22px 22px}.faq-item.open>div{display:block}.faq-item p{margin:0;color:var(--muted);line-height:2.2}.faq-contact{padding:28px;border-radius:19px;color:#fff;background:linear-gradient(145deg,#010609,#005281)}.faq-contact h2{font-size: 24px;line-height:1.7}.faq-contact p{color:#bed2dc;line-height:2}
.cta-form { width: min(520px,100%); display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.cta-form input { min-width: 0; padding: 11px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 9px; outline: 0; color: #fff; background: rgba(255,255,255,.1); }
.cta-form input::placeholder { color: #bad0dc; }.cta-form input:focus { border-color: #fff; }
.cta-form .btn, .cta-form small { grid-column: 1 / -1; }.cta-form small { min-height: 16px; color: #d9edf8; }
.cta-assurance { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; color: #d7eaf5; font-size: 11px; }
.cta-assurance span { display: inline-flex; align-items: center; gap: 5px; }
[data-newsletter-result] { display: block; min-height: 18px; margin-top: 6px; color: #9ac9e2; font-size: 9px; }
@media (max-width:700px){.cta-form{grid-template-columns:1fr}}
.learn-topbar {
  color: #fff;
  border-bottom-color: rgba(255,255,255,.08);
  background: linear-gradient(100deg, #01070b, #003657);
}
.learn-topbar .brand { width: 108px; height: 61px; border-radius: 0; overflow: visible; }
.learn-topbar .brand-mark { background-image: url("/assets/mana-brand-white.png"); }
.learn-topbar .btn-soft { color: #fff; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.1); }

.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 270px 1fr; background: #f3f6f9; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 25px 18px; color: #aac1ce; background: linear-gradient(180deg, #010609, #001a2a); }
.admin-brand { padding: 0 11px 24px; border-bottom: 1px solid rgba(255,255,255,.09); }
.admin-brand .brand { color: #fff; }
.admin-brand .brand { width: 190px; height: 106px; border-radius: 0; overflow: visible; }
.admin-brand .brand-mark { background-image: url("/assets/mana-brand-white.png"); }
.admin-brand small { display: block; margin: 3px 7px 0 0; color: #7494a4; font-size: 10px; }
.admin-nav { display: grid; gap: 5px; margin-top: 24px; }
.admin-nav button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 13px; border: 0; border-radius: 10px; text-align: right; color: inherit; background: transparent; font-size: 13px; }
.admin-nav button i { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; background: rgba(255,255,255,.06); font-style: normal; }
.admin-nav button:hover, .admin-nav button.active { color: #fff; background: linear-gradient(90deg, rgba(8,123,201,.28), rgba(8,123,201,.08)); }
.admin-nav button.active i { background: #087bc9; }
.admin-sidebar-foot { margin-top: auto; padding: 15px 10px 0; border-top: 1px solid rgba(255,255,255,.09); }
.admin-profile { display: flex; align-items: center; gap: 10px; }.admin-profile .person-avatar { width: 38px; height: 38px; font-size: 12px; }.admin-profile b { display: block; color: #fff; font-size: 12px; }.admin-profile small { color: #7894a3; font-size: 10px; }
.admin-main { min-width: 0; padding: 0 30px 45px; }
.admin-topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.admin-topbar h1 { margin: 0; font-size: 23px; }.admin-topbar p { margin: 0; color: var(--muted); font-size: 11px; }
.admin-top-actions { display: flex; align-items: center; gap: 9px; }.admin-icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #fff; }
.admin-view { padding-top: 26px; }
.admin-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.admin-kpi { position: relative; overflow: hidden; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 7px 22px rgba(0,35,59,.04); }
.admin-kpi::after { content: ""; position: absolute; left: -20px; bottom: -32px; width: 85px; height: 85px; border-radius: 50%; background: #e9f4fb; }
.admin-kpi i { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 10px; color: #0877bf; background: #e5f2fb; font-style: normal; }.admin-kpi span { display: block; margin-top: 14px; color: var(--muted); font-size: 11px; }.admin-kpi b { font-size: 27px; }
.admin-content-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 16px; margin-top: 16px; }
.admin-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; }.admin-card-head h2 { margin: 0; font-size: 16px; }.admin-card-head p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.admin-toolbar { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }.admin-toolbar .search-box { max-width: 340px; }.admin-toolbar .btn { margin-right: auto; }
.data-table-wrap { overflow: auto; }.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 11px; }.data-table th { padding: 10px 12px; color: #718592; background: #f5f8fa; text-align: right; font-weight: 600; }.data-table th:first-child { border-radius: 0 8px 8px 0; }.data-table th:last-child { border-radius: 8px 0 0 8px; }.data-table td { padding: 13px 12px; border-bottom: 1px solid #edf2f4; white-space: nowrap; }.data-table tr:last-child td { border: 0; }
.table-title { display: flex; align-items: center; gap: 9px; }.table-thumb { width: 38px; height: 34px; border-radius: 8px; background: linear-gradient(135deg,#00121e,#087bc9); }.table-title b { display: block; font-size: 11px; }.table-title small { color: var(--muted); }
.row-actions { display: flex; gap: 5px; }.row-actions button { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: #fff; }.row-actions button:hover { color: #0874b9; border-color: #8dc7e8; }.row-actions button.danger:hover { color: var(--danger); border-color: #efb4be; }
.admin-modal-backdrop { position: fixed; inset: 0; z-index: 500; display: none; place-items: center; padding: 20px; background: rgba(0,12,20,.62); backdrop-filter: blur(5px); }.admin-modal-backdrop.open { display: grid; }
.admin-modal { width: min(620px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 25px; border-radius: 20px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.32); }.admin-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }.admin-modal-head h2 { margin: 0; font-size: 19px; }.admin-modal-head button { border: 0; color: var(--muted); background: transparent; font-size: 21px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.admin-chart { height: 190px; display: flex; align-items: end; gap: 12px; padding-top: 20px; }.admin-chart i { flex: 1; min-width: 12px; border-radius: 5px 5px 0 0; background: linear-gradient(to top,#034d7d,#1696dd); }.admin-chart i:nth-child(1){height:38%}.admin-chart i:nth-child(2){height:52%}.admin-chart i:nth-child(3){height:46%}.admin-chart i:nth-child(4){height:72%}.admin-chart i:nth-child(5){height:65%}.admin-chart i:nth-child(6){height:88%}.admin-chart i:nth-child(7){height:79%}
.quick-list { display: grid; gap: 10px; }.quick-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: #f7fafb; }.quick-item i { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; color: #0877bf; background: #e4f2fb; font-style: normal; }.quick-item b { display: block; font-size: 11px; }.quick-item small { color: var(--muted); font-size: 10px; }

@media (max-width: 1050px) {
  .admin-shell { grid-template-columns: 88px 1fr; }.admin-brand .brand { width: 55px; height: 31px; }.admin-brand small, .admin-profile div, .admin-nav button span { display: none; }.admin-nav button { justify-content: center; }.admin-nav button i { width: 34px; height: 34px; }.admin-sidebar { padding-inline: 13px; }.admin-kpis { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 700px) {
  .admin-shell { grid-template-columns: 1fr; }.admin-sidebar { position: static; width: 100%; height: auto; padding: 12px; }.admin-brand, .admin-sidebar-foot { display: none; }.admin-nav { margin: 0; display: flex; overflow-x: auto; }.admin-nav button { flex: 0 0 48px; padding: 7px; }.admin-main { padding: 0 15px 30px; }.admin-topbar { height: 70px; }.admin-kpis { grid-template-columns: 1fr 1fr; }.admin-content-grid { grid-template-columns: 1fr; }.form-row { grid-template-columns: 1fr; }
  .site-header .brand { width: 105px; height: 59px; }
}

.site-footer .brand {
  width: 175px;
  height: 98px;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}
.site-footer .brand-mark {
  border-radius: 0;
  background: transparent url("/assets/mana-brand-white.png") center / contain no-repeat;
}

/* Mana AI */
.ai-page { min-height: 100vh; overflow: hidden; background: #eef3f7; }
.ai-shell { min-height: 100vh; display: grid; grid-template-columns: 285px 1fr; }
.ai-history {
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 23px 17px;
  color: #a9c0cd;
  background: linear-gradient(180deg, #010609, #001c2d);
}
.ai-history-head { padding: 0 9px 19px; border-bottom: 1px solid rgba(255,255,255,.09); }
.ai-history-head .brand { width: 175px; height: 98px; border-radius: 0; overflow: visible; }
.ai-history-head .brand-mark { background-image: url("/assets/mana-brand-white.png"); }
.ai-history-head > span { display: block; margin: 4px 7px 0; color: #7796a6; font-size: 10px; }
.ai-new-chat { width: 100%; margin: 18px 0 13px; }
.ai-conversations { min-height: 0; display: grid; align-content: start; gap: 5px; overflow-y: auto; }
.ai-conversation {
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 9px;
  overflow: hidden;
  color: #a9c0cd;
  background: transparent;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.ai-conversation:hover, .ai-conversation.active { color: #fff; background: rgba(8,123,201,.2); }
.ai-history-foot { display: grid; gap: 10px; margin-top: auto; padding: 16px 4px 0; border-top: 1px solid rgba(255,255,255,.09); font-size: 11px; }
.ai-history-foot a, .ai-history-foot button { border: 0; color: #90adbc; background: transparent; text-align: right; }
.ai-history-foot .ai-back-dashboard { position:relative; display:grid; grid-template-columns:40px minmax(0,1fr) 18px; align-items:center; gap:10px; padding:10px; overflow:hidden; border:1px solid rgba(82,192,247,.42); border-radius:14px; color:#f4fbff; background:linear-gradient(135deg,rgba(8,123,201,.32),rgba(14,151,216,.13)); box-shadow:0 10px 25px rgba(0,15,27,.2),inset 0 1px rgba(255,255,255,.08); transition:transform .2s,border-color .2s,background .2s,box-shadow .2s; }
.ai-history-foot .ai-back-dashboard::before { content:""; position:absolute; inset:0; background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.11),transparent 65%); transform:translateX(120%); transition:transform .45s; pointer-events:none; }
.ai-history-foot .ai-back-dashboard:hover { color:#fff; border-color:#60c9fb; background:linear-gradient(135deg,rgba(8,139,221,.5),rgba(21,171,226,.2)); box-shadow:0 13px 28px rgba(0,15,27,.28),0 0 0 3px rgba(31,167,229,.09); transform:translateY(-2px); }
.ai-history-foot .ai-back-dashboard:hover::before { transform:translateX(-120%); }
.ai-back-icon { width:40px; height:40px; display:grid; place-items:center; border-radius:11px; color:#fff; background:linear-gradient(145deg,#1498dc,#0871b6); box-shadow:0 7px 15px rgba(0,86,139,.32),inset 0 1px rgba(255,255,255,.24); }
.ai-back-icon .icon { width:21px; height:21px; stroke-width:1.9; }
.ai-back-copy { min-width:0; display:grid; gap:2px; }
.ai-back-copy b { font-size:12px; line-height:1.5; white-space:nowrap; }
.ai-back-copy small { color:#9fc5d8; font-size:9px; line-height:1.4; white-space:nowrap; }
.ai-back-arrow { color:#60c9fb; font-size:18px; transition:transform .2s; }
.ai-back-dashboard:hover .ai-back-arrow { transform:translateX(-3px); }
.ai-history-foot > button { padding:7px 10px; }
.ai-workspace { height: 100vh; min-width: 0; display: grid; grid-template-rows: 84px 1fr auto; background: #f7f9fb; }
.ai-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); }
.ai-topbar h1 { margin: 2px 0 0; font-size: 21px; }
.ai-online { color: #507080; font-size: 10px; }.ai-online i { width: 7px; height: 7px; display: inline-block; margin-left: 4px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px #dff4eb; }
.ai-plan { padding: 8px 12px; border: 1px solid #c9e4f3; border-radius: 9px; color: #0568a8; background: #edf7fc; font-size: 10px; }
.ai-subscription-link { width:max-content; display:flex; align-items:center; gap:5px; margin-bottom:2px; color:#0877bd; font-size: 9px; font-weight:750; }.ai-subscription-link .icon { width:13px; height:13px; }
.ai-chat { min-height: 0; overflow-y: auto; padding: 35px max(28px, calc((100% - 840px)/2)); scroll-behavior: smooth; }
.ai-welcome { max-width: 720px; margin: 8vh auto 0; text-align: center; }
.ai-welcome > i { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 19px; color: #fff; background: linear-gradient(135deg,#002c47,#087bc9); box-shadow: 0 16px 35px rgba(8,123,201,.24); font-style: normal; font-size: 27px; }
.ai-welcome h2 { margin: 0 0 10px; font-size: 26px; }.ai-welcome p { margin: 0 auto; max-width: 600px; color: var(--muted); line-height: 2; font-size: 12px; }
.ai-suggestions { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 28px; }
.ai-suggestions button { padding: 14px; border: 1px solid var(--line); border-radius: 12px; color: #315161; background: #fff; font-size: 11px; line-height: 1.8; }.ai-suggestions button:hover { color: #0568a8; border-color: #9dcee9; box-shadow: var(--shadow-sm); }
.ai-message { max-width: 780px; display: flex; gap: 11px; margin: 0 auto 20px; }
.ai-message.user { flex-direction: row-reverse; }
.ai-message-avatar { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(135deg,#001b2b,#087bc9); font-style: normal; font-size: 13px; }
.ai-message.user .ai-message-avatar { color: #315161; background: #e1ebf0; }
.ai-message-content { max-width: calc(100% - 50px); padding: 14px 17px; border: 1px solid var(--line); border-radius: 4px 15px 15px 15px; color: #163747; background: #fff; box-shadow: 0 5px 18px rgba(0,35,59,.04); font-size: 12px; line-height: 2.1; white-space: pre-wrap; }
.ai-message.user .ai-message-content { border-color: #c6e2f2; border-radius: 15px 4px 15px 15px; background: #eaf5fb; }
.ai-thinking i { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: #6f8a98; animation: aiPulse 1s infinite alternate; }.ai-thinking i:nth-child(2){animation-delay:.2s}.ai-thinking i:nth-child(3){animation-delay:.4s}
@keyframes aiPulse { to { opacity:.25; transform:translateY(-3px); } }
.ai-composer { position: relative; width: min(920px, calc(100% - 42px)); margin: 0 auto 22px; padding: 4px; border: 1px solid rgba(31, 149, 215, .18); border-radius: 22px; background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(239,248,253,.94)); box-shadow: 0 18px 50px rgba(0,45,76,.11), inset 0 1px rgba(255,255,255,.9); }
.ai-composer textarea { display: block; width: 100%; min-height: 78px; max-height: 190px; resize: none; padding: 18px 24px 34px 78px; border: 1px solid #c8e0ed; border-radius: 18px; outline: 0; color: #081f2e; background: rgba(255,255,255,.96); box-shadow: inset 0 1px 2px rgba(0,35,59,.025); font-size: 12.5px; line-height: 1.9; transition: border-color .22s, box-shadow .22s, background .22s; }
.ai-composer textarea::placeholder { color: #78909d; }
.ai-composer textarea:focus { border-color: #45a8dd; background: #fff; box-shadow: 0 0 0 4px rgba(34,153,215,.09), inset 0 1px 2px rgba(0,35,59,.025); }
.ai-composer > button { position: absolute; left: 14px; top: 14px; width: 50px; height: 50px; display: grid; place-items: center; border: 0; border-radius: 15px; color: #fff; background: linear-gradient(145deg,#075f98,#1198df); box-shadow: 0 9px 20px rgba(5,105,166,.28), inset 0 1px rgba(255,255,255,.22); transition: transform .2s, box-shadow .2s; }.ai-composer > button:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(5,105,166,.34); }.ai-composer > button:disabled { opacity:.45; transform:none; }
.ai-composer > button .icon { width: 22px; height: 22px; stroke-width: 1.9; transform: rotate(180deg); }
.ai-composer small { position: absolute; right: 24px; bottom: 13px; left: 82px; display: block; overflow: hidden; color: #8a9faa; font-size: 8.5px; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; pointer-events: none; }
.ai-locked { max-width: 540px; margin: 12vh auto; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: #fff; text-align: center; box-shadow: var(--shadow-sm); }.ai-locked h2 { margin: 0 0 9px; }.ai-locked p { color: var(--muted); line-height: 2; font-size: 11px; }
.pricing-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; align-items:stretch; }
.pricing-card { position:relative; display:flex; flex-direction:column; min-height:360px; padding:25px; overflow:hidden; border:1px solid #d4e4ed; border-radius:22px; background:#fff; box-shadow:0 14px 35px rgba(0,45,76,.07); }
.pricing-card.featured { color:#fff; border-color:#0878bb; background:linear-gradient(155deg,#001b2b,#075d91); box-shadow:0 20px 48px rgba(0,67,109,.22); transform:translateY(-7px); }
.pricing-card-badge { position:absolute; top:16px; left:16px; padding:5px 10px; border-radius:20px; color:#0873b5; background:#e3f3fb; font-size: 9px; font-weight:800; }
.pricing-card h2 { margin:20px 0 7px; font-size: 21px; }.pricing-card p { min-height:45px; color:#718793; font-size: 11px; line-height:1.9; }.pricing-card.featured p { color:#b9d2df; }
.pricing-price { margin:16px 0; }.pricing-price strong { font-size: 28px; }.pricing-price span { margin-right:5px; color:#7b919d; font-size: 10px; }.pricing-card.featured .pricing-price span { color:#a9c7d6; }
.pricing-features { display:grid; gap:10px; margin:0 0 24px; padding:0; list-style:none; color:#46606e; font-size: 10.5px; }.pricing-card.featured .pricing-features { color:#d3e5ed; }.pricing-features li { display:flex; align-items:center; gap:8px; }.pricing-features .icon { width:16px; height:16px; color:#1bb889; stroke-width:2.3; }
.pricing-card .btn { width:100%; margin-top:auto; }.pricing-note { display:flex; align-items:center; justify-content:center; gap:12px; max-width:650px; margin:32px auto 0; padding:15px 20px; border:1px solid #d6e7f0; border-radius:15px; color:#496472; background:#f7fbfd; }.pricing-note .icon { width:25px; height:25px; color:#0878bb; }.pricing-note b,.pricing-note span { display:block; }.pricing-note span { margin-top:3px; color:#7d919b; font-size: 9.5px; }
.checkout-page { min-height:100vh; display:grid; place-items:center; padding:25px; background:radial-gradient(circle at 85% 10%,rgba(20,150,219,.14),transparent 28%),#f1f6f9; }.checkout-shell { width:min(520px,100%); }.checkout-shell>.brand { width:max-content; margin:0 auto 20px; }.checkout-card { padding:28px; border:1px solid #d2e3ec; border-radius:24px; background:#fff; box-shadow:0 24px 65px rgba(0,42,70,.13); }.checkout-head { display:flex; align-items:center; gap:13px; padding-bottom:18px; border-bottom:1px solid #e3edf2; }.checkout-head>i { width:48px; height:48px; display:grid; place-items:center; border-radius:14px; color:#fff; background:linear-gradient(145deg,#075f98,#1198df); }.checkout-head .icon { width:24px; height:24px; }.checkout-head h1 { margin:0; font-size: 19px; }.checkout-head p { margin:3px 0 0; color:#7a8e99; font-size: 10px; }.checkout-summary { display:grid; gap:13px; margin:20px 0; }.checkout-row { display:flex; justify-content:space-between; gap:15px; color:#657d89; font-size: 11px; }.checkout-row strong { color:#102a39; }.checkout-total { padding-top:13px; border-top:1px dashed #cbdde6; font-size: 14px; }.checkout-total strong { color:#0878bb; font-size: 21px; }.checkout-card .btn { width:100%; }.checkout-security { display:flex; justify-content:center; align-items:center; gap:6px; margin-top:12px; color:#78909b; font-size: 9px; }.checkout-success { text-align:center; }.checkout-success>.icon { width:58px; height:58px; padding:13px; border-radius:50%; color:#19a97c; background:#e7f8f2; }
@media(max-width:760px){.pricing-grid{grid-template-columns:1fr}.pricing-card.featured{transform:none}.pricing-card{min-height:330px}}
.ai-settings-grid { display: grid; grid-template-columns: 1fr .72fr; gap: 16px; }
.ai-prompt-area { min-height: 330px; line-height: 2; }
.ai-knowledge-status { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:16px; padding:13px 15px; border:1px solid #cde5d9; border-radius:13px; background:linear-gradient(110deg,#f3fbf7,#fbfefd); }
.ai-knowledge-status b, .ai-knowledge-status small { display:block; }
.ai-knowledge-status b { color:#176747; font-size:11px; }
.ai-knowledge-status small { margin-top:3px; color:#6b8178; font-size:9px; }
.ai-settings-stack { display:grid; gap:18px; }
.ai-knowledge-manager { overflow:hidden; }
.ai-knowledge-status > span { color:#73847e; font-size:10px; white-space:nowrap; }
.ai-knowledge-upload { margin:18px 0; padding:18px; border:1px dashed #a9cfc1; border-radius:16px; background:#f7fbfa; }
.ai-knowledge-upload > div:first-child { display:grid; gap:4px; }
.ai-knowledge-upload > div:first-child b { color:#123c32; }
.ai-knowledge-upload > div:first-child small { color:#6b8178; }
.ai-knowledge-toolbar { display:grid; grid-template-columns:minmax(190px,.7fr) minmax(240px,1fr) auto; gap:12px; align-items:end; margin:4px 0 14px; }
.ai-knowledge-toolbar .form-group { margin:0; }
.ai-knowledge-list { display:grid; gap:9px; }
.ai-knowledge-chapter { border:1px solid #dbe7e3; border-radius:14px; background:#fff; overflow:hidden; transition:border-color .2s ease,box-shadow .2s ease; }
.ai-knowledge-chapter.open { border-color:#74b7a4; box-shadow:0 10px 30px rgba(16,72,58,.08); }
.ai-knowledge-chapter-head { display:flex; align-items:center; gap:8px; padding:8px; background:#fbfdfc; }
.ai-knowledge-chapter-head > button { flex:1; display:flex; align-items:center; gap:11px; min-width:0; padding:6px; border:0; background:none; text-align:right; cursor:pointer; color:#173e35; }
.ai-knowledge-chapter-head > button i { display:grid; place-items:center; flex:0 0 34px; height:34px; border-radius:10px; background:#e8f5f0; color:#168665; font-style:normal; font-weight:800; }
.ai-knowledge-chapter-head > button span { display:grid; gap:2px; min-width:0; }
.ai-knowledge-chapter-head > button b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ai-knowledge-chapter-head > button small { color:#82918c; }
.ai-knowledge-chapter-head > button em { margin-right:auto; font-style:normal; color:#168665; transition:transform .2s ease; }
.ai-knowledge-chapter.open .ai-knowledge-chapter-head > button em { transform:rotate(180deg); }
.ai-knowledge-chapter-head > div { display:flex; gap:5px; }
.ai-knowledge-chapter-head > div button { width:32px; height:32px; border:1px solid #d9e6e2; border-radius:9px; background:#fff; color:#31594e; cursor:pointer; }
.ai-knowledge-chapter-head > div button.danger { color:#c34854; }
.ai-knowledge-chapter-head > div button:disabled { opacity:.35; cursor:not-allowed; }
.ai-knowledge-chapter-body { display:grid; gap:12px; padding:16px; border-top:1px solid #e7efec; }
.ai-knowledge-chapter-body textarea { min-height:340px; line-height:2; resize:vertical; }
.ai-knowledge-chapter-body .form-group { margin:0; }
.ai-knowledge-actions { display:grid; grid-template-columns:1fr auto auto; align-items:center; gap:14px; position:sticky; bottom:10px; z-index:2; margin-top:16px; padding:13px 15px; border:1px solid #cfe0da; border-radius:14px; background:rgba(255,255,255,.96); box-shadow:0 12px 35px rgba(13,55,44,.12); backdrop-filter:blur(10px); }
.ai-knowledge-actions > div:first-child { display:grid; gap:2px; }
.ai-knowledge-actions small { color:#74847f; }
@media (max-width:760px) {
  .ai-knowledge-toolbar { grid-template-columns:1fr; }
  .ai-knowledge-status { align-items:flex-start; flex-direction:column; }
  .ai-knowledge-status > span { white-space:normal; }
  .ai-knowledge-chapter-head { align-items:flex-start; flex-wrap:wrap; }
  .ai-knowledge-chapter-head > div { margin-right:50px; }
  .ai-knowledge-actions { grid-template-columns:1fr; bottom:6px; }
}
.settings-note { margin: 12px 0 0; padding: 12px; border-radius: 10px; color: #456576; background: #eff6fa; font-size: 10px; line-height: 1.9; }

.cart-shortcut { position:relative; min-height:38px; display:flex; align-items:center; gap:7px; padding:8px 12px; border:1px solid #c9e2f2; border-radius:11px; color:#0568a8; background:#eef7fc; font-size: 10px; font-weight:750; }.cart-shortcut .icon{width:18px;height:18px}.cart-shortcut b{min-width:18px;height:18px;display:grid;place-items:center;padding:0 4px;border-radius:20px;color:#fff;background:#087bc9;font-size: 8px}.cart-shortcut b[hidden]{display:none}
.cart-page { min-height:100vh; background:radial-gradient(circle at 12% 8%,rgba(8,123,201,.08),transparent 25%),#f3f7f9; }.cart-shell{padding:55px 0 80px}.cart-card{min-height:360px}.cart-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.65fr);gap:22px;align-items:start}.cart-products,.cart-summary,.cart-empty,.cart-error{border:1px solid #d8e6ed;border-radius:22px;background:#fff;box-shadow:0 16px 45px rgba(0,45,76,.07)}.cart-products{padding:24px}.cart-title{display:flex;align-items:center;justify-content:space-between;padding-bottom:18px;border-bottom:1px solid #e2ebf0}.cart-title h1{margin:4px 0 0;font-size: 25px}.cart-title>b{padding:6px 10px;border-radius:20px;color:#0872b4;background:#e9f5fb;font-size: 9px}.cart-lines{display:grid}.cart-line{display:grid;grid-template-columns:46px minmax(0,1fr) auto 34px;gap:13px;align-items:center;padding:18px 0;border-bottom:1px solid #edf2f5}.cart-line>i{width:46px;height:46px;display:grid;place-items:center;border-radius:13px;color:#0878bd;background:#e8f5fb}.cart-line>i .icon{width:23px;height:23px}.cart-line b,.cart-line small{display:block}.cart-line b{font-size: 12px}.cart-line small{margin-top:4px;color:#7b919c;font-size: 9px}.cart-line>strong{color:#0a648f;font-size: 12px}.cart-line>button{width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:9px;color:#c35050;background:#fff0f0}.cart-line>button .icon{width:17px;height:17px}.cart-products>.text-link{display:inline-block;margin-top:17px}.cart-summary{position:sticky;top:100px;padding:22px}.cart-summary h2{margin:0 0 18px;font-size: 18px}.cart-summary-row{display:flex;justify-content:space-between;gap:12px;margin:11px 0;color:#637c88;font-size: 10px}.cart-summary-row b{color:#173745}.cart-summary-row.discount,.checkout-discount{color:#16845f}.cart-summary-row.discount b,.checkout-discount strong{color:#16845f}.cart-discount{margin:18px 0;padding:14px 0;border-block:1px dashed #cfdee6}.cart-discount label{display:block;margin-bottom:7px;font-size: 10px;font-weight:750}.cart-discount>div{display:flex;gap:7px}.cart-discount .form-control{text-transform:uppercase}.cart-discount .btn{flex:0 0 auto}.cart-discount small{display:block;min-height:17px;margin-top:6px;color:#16845f;font-size: 9px}.cart-discount small.error{color:var(--danger)}.cart-total{display:flex;align-items:end;justify-content:space-between;margin:17px 0}.cart-total span{font-size: 11px}.cart-total strong{color:#0875b8;font-size: 20px}.cart-summary>.btn{width:100%}.cart-back{display:block;margin-top:11px;text-align:center;color:#718994;font-size: 9px}.cart-empty,.cart-error{padding:60px 25px;text-align:center}.cart-empty>.icon{width:64px;height:64px;padding:15px;border-radius:20px;color:#0878bd;background:#e8f5fb}.cart-empty h1{margin:17px 0 7px}.cart-empty p,.cart-error p{color:#718894}.cart-empty-actions{display:flex;justify-content:center;gap:9px;margin-top:20px}

@media (max-width: 800px) {
  .ai-shell { grid-template-columns: 1fr; }.ai-history { display: none; }.ai-topbar { padding: 0 18px; }.ai-chat { padding: 22px 16px; }.ai-suggestions { grid-template-columns: 1fr; }.ai-composer { width: calc(100% - 24px); margin-bottom: 12px; }
  .ai-settings-grid { grid-template-columns: 1fr; }
  .cart-layout{grid-template-columns:1fr}.cart-summary{position:static}.cart-shell{padding:28px 0 55px}.cart-line{grid-template-columns:42px minmax(0,1fr) 32px}.cart-line>strong{grid-column:2}.site-header .header-actions:has(.cart-shortcut){display:flex}.site-header .header-actions:has(.cart-shortcut)>:not(.cart-shortcut){display:none}.cart-shortcut span{display:none}
}

/* CMS, integrations and blog */
.settings-hub { display: grid; gap: 17px; }
.settings-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.settings-section form { display: grid; gap: 12px; }
.mail-settings-card { grid-column: 1 / -1; }
.mail-account-summary { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:17px; border:1px solid #d3e6f0; border-radius:15px; background:linear-gradient(135deg,#f5fbfe,#eaf6fc); }
.mail-account-summary small,.mail-account-summary b { display:block; }
.mail-account-summary small { margin-bottom:4px; color:var(--muted); font-size:10px; }
.mail-account-summary b { color:#034d78; font-size:15px; }
.settings-group-title { margin: 14px 0 0; padding: 10px 0 7px; border-bottom: 1px solid var(--line); color: #064d78; font-size: 13px; }
.blog-editor { min-height: 330px; line-height: 2; }
.admin-modal:has([data-blog-form]) { width: min(900px,100%); }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.blog-category-tabs { display:flex; flex-wrap:wrap; gap:9px; margin:0 0 24px; }
.blog-category-tabs button { display:inline-flex; align-items:center; gap:8px; min-height:40px; padding:8px 15px; border:1px solid #cfe1ea; border-radius:999px; color:#31596d; background:#fff; font-family:inherit; cursor:pointer; transition:.2s; }
.blog-category-tabs button:hover { border-color:#62b9e5; color:#006da9; transform:translateY(-1px); }
.blog-category-tabs button.active { border-color:#0079b9; color:#fff; background:linear-gradient(135deg,#00669f,#0c8ed0); box-shadow:0 8px 20px rgba(0,111,173,.18); }
.blog-category-tabs b { min-width:20px; height:20px; display:inline-grid; place-items:center; border-radius:999px; background:rgba(108,151,173,.13); font-size:9px; }
.blog-category-tabs button.active b { background:rgba(255,255,255,.2); }
.blog-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 8px 28px rgba(0,35,59,.05); transition:.2s; }
.blog-card:hover { transform: translateY(-4px); border-color:#abd5ec; box-shadow:0 18px 42px rgba(0,35,59,.1); }
.blog-card-cover { height: 195px; display: flex; align-items: flex-start; padding: 17px; background: radial-gradient(circle at 20% 20%,rgba(39,161,226,.35),transparent 28%),linear-gradient(135deg,#01070b,#005b91); background-size:cover; background-position:center; }
.blog-card-cover span { padding:6px 10px; border-radius:7px; color:#fff; background:rgba(0,13,22,.55); backdrop-filter:blur(5px); font-size: 10px; }
.blog-card-body { padding:19px; }.blog-meta { display:flex; gap:12px; color:var(--muted); font-size: 9px; }.blog-card h2 { margin:10px 0 8px; font-size: 17px; line-height:1.7; }.blog-card p { min-height:58px; margin:0 0 13px; color:var(--muted); font-size: 11px; line-height:2; }
.blog-hero { padding-block:55px; }.blog-hero h1 { margin:12px 0 8px; font-size: 37px; }.blog-hero p { color:#55707f; }
.article-header { padding:65px 0 55px; color:#fff; background:radial-gradient(circle at 20% 20%,rgba(8,123,201,.3),transparent 28%),linear-gradient(120deg,#010609,#003657); }
.article-header .breadcrumb { color:#91acbb; }.article-header .breadcrumb a { color:#c5d7e1; }.article-header h1 { max-width:850px; margin:16px 0 12px; font-size: 40px; line-height:1.55; }.article-header p { max-width:760px; color:#bdd0da; line-height:2; }.article-meta { display:flex; gap:20px; margin-top:18px; color:#8faab9; font-size: 10px; }
.article-cover { width:100%; max-height:520px; object-fit:cover; margin-top:30px; border-radius:20px; }
.article-layout { display:grid; grid-template-columns:minmax(0,1fr) 250px; gap:35px; padding-block:55px 80px; }
.article-content { min-width:0; padding:30px; border:1px solid var(--line); border-radius:18px; background:#fff; font-size: 14px; line-height:2.4; }.article-content p { margin:0 0 22px; }
.article-content h2 { margin:38px 0 13px; color:#033b5c; font-size:25px; line-height:1.7; }
.article-content h3 { margin:30px 0 10px; color:#075a87; font-size:19px; line-height:1.7; }
.article-content ul,.article-content ol { margin:0 0 24px; padding-right:25px; }
.article-content li { margin-bottom:7px; }
.article-content blockquote { margin:26px 0; padding:18px 20px; border-right:4px solid #0a8bd0; border-radius:12px 0 0 12px; color:#275a73; background:#edf8fd; }
.article-content img { width:100%; height:auto; display:block; margin:28px auto; border-radius:16px; box-shadow:0 12px 34px rgba(0,35,59,.1); }
.article-content code { padding:2px 7px; border-radius:6px; direction:ltr; background:#eef3f6; font-family:Consolas,monospace; font-size:.88em; }
.article-content a { color:#0078b8; text-decoration:underline; text-underline-offset:4px; }
.article-takeaways,.article-faqs,.article-sources { margin:0 0 32px; padding:23px; border:1px solid #cce7f4; border-radius:16px; background:linear-gradient(145deg,#f7fcff,#edf8fd); }
.article-takeaways h2,.article-faqs h2,.article-sources h2 { margin:0 0 15px; font-size:20px; }
.article-takeaways ul,.article-sources ol { margin-bottom:0; }
.article-faqs details { border-top:1px solid #d4e6ee; }
.article-faqs details:first-of-type { border-top:0; }
.article-faqs summary { padding:13px 0; color:#093c58; font-weight:700; cursor:pointer; }
.article-faqs details p { margin:0 0 14px; color:#456778; }
.article-aside { position:sticky; top:100px; height:max-content; padding:22px; border-radius:17px; color:#fff; background:linear-gradient(145deg,#010609,#005281); }.article-aside b { font-size: 17px; }.article-aside p { color:#b9cfdb; font-size: 11px; line-height:2; }

@media (max-width:900px){.settings-columns,.article-layout{grid-template-columns:1fr}.blog-grid{grid-template-columns:repeat(2,1fr)}.article-aside{position:static}.mail-account-summary{align-items:stretch;flex-direction:column}.mail-account-summary .btn{width:100%}}
@media (max-width:1100px){.team-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:800px){.story-grid,.faq-layout{grid-template-columns:1fr}.governance-banner{align-items:flex-start;flex-direction:column}.about-hero h1{font-size: 34px}}
@media (max-width:600px){.blog-grid,.team-grid{grid-template-columns:1fr}.article-header h1{font-size: 29px}.article-content{padding:20px}.team-card{display:grid;grid-template-columns:120px 1fr}.team-photo{height:100%;aspect-ratio:auto}.about-hero{padding:45px 0}.about-hero h1{font-size: 29px}}

.upload-hint { min-height: 45px; display: flex; align-items: center; padding: 10px 12px; border: 1px dashed #aac7d6; border-radius: 10px; color: #517486; background: #f5fafc; font-size: 12px; line-height: 1.8; }
.file-control { padding: 8px; cursor: pointer; }
.file-control::file-selector-button { margin-left: 10px; padding: 8px 13px; border: 0; border-radius: 8px; color: #fff; background: #006aa7; cursor: pointer; font-family: inherit; }
.media-manager { display: grid; gap: 22px; }
.media-manager form { padding-top: 18px; border-top: 1px solid #dce8ee; }
.media-manager form h3 { margin: 0 0 15px; font-size: 16px; }
.media-list { display: grid; gap: 9px; max-height: 330px; overflow-y: auto; }
.media-item { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border: 1px solid #dce8ee; border-radius: 11px; background: #f8fbfc; }
.media-item > i { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: #087bbb; background: #e4f4fc; font-style: normal; }
.media-item > div { min-width: 0; flex: 1; }
.media-item b, .media-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-item b { color: #0d3245; font-size: 12px; }.media-item small { margin-top: 3px; color: #6c8795; font-size: 10px; direction: ltr; text-align: right; }
.showcase-table-icon { width:38px; height:38px; display:grid; place-items:center; border-radius:10px; color:#087bbb; background:#e7f5fc; }
.showcase-table-icon .icon { width:20px; height:20px; }
.client-admin-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.client-admin-card { display:grid; grid-template-columns:64px minmax(0,1fr) auto; align-items:center; gap:12px; padding:12px; border:1px solid #dbe8ee; border-radius:14px; background:#fafdff; }
.client-admin-logo { width:64px; height:52px; display:grid; place-items:center; overflow:hidden; border:1px solid #deeaef; border-radius:10px; color:#087bbb; background:#fff; font-weight:800; }
.client-admin-logo img { width:100%; height:100%; object-fit:contain; padding:5px; }
.client-admin-card b,.client-admin-card small { display:block; }.client-admin-card small { margin-top:5px; color:#738b97; font-size:10px; }
.client-logo-uploader { display:flex; align-items:center; gap:15px; margin:8px 0; }
.client-logo-uploader [data-client-logo-preview] { width:130px; height:75px; display:grid; place-items:center; overflow:hidden; border:1px dashed #aac7d6; border-radius:12px; background:#f8fbfc; }
.client-logo-uploader img { width:100%; height:100%; object-fit:contain; padding:8px; }
@media(max-width:1000px){.client-admin-grid{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.client-admin-grid{grid-template-columns:1fr}.client-cloud{grid-template-columns:repeat(2,minmax(0,1fr))}.client-admin-card{grid-template-columns:54px minmax(0,1fr) auto}.client-admin-logo{width:54px}}
.media-delete { width: 30px; height: 30px; border: 0; border-radius: 8px; color: #b3261e; background: #ffebe9; cursor: pointer; font-size: 19px; }
.current-video video { width: 100%; max-height: 310px; display: block; margin-bottom: 9px; border-radius: 12px; background: #001522; }
.upload-progress { position: relative; height: 34px; display: none; align-items: center; overflow: hidden; margin-top: 12px; border-radius: 9px; color: #17465e; background: #e7f1f6; }
.upload-progress.active { display: flex; }.upload-progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg,#8bd5f8,#27a9e8); transition: width .2s; }.upload-progress span { position: relative; z-index: 1; width: 100%; text-align: center; font-size: 11px; font-weight: 700; }
.media-ready { color: #0b7d53; font-size: 11px; font-weight: 700; }.media-missing { color: #a04a31; font-size: 11px; }
.course-files-box { margin-top: 24px; padding: 18px; border: 1px solid #dce8ee; border-radius: 14px; background: #f7fafc; }
.course-files-box h3 { margin: 0 0 12px; font-size: 15px; }.course-files-list { display: grid; gap: 8px; }
.course-file-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #d8e6ed; border-radius: 10px; color: #123e55; background: #fff; }
.course-file-link i { color: #087bbb; font-style: normal; }.course-file-link span { min-width: 0; flex: 1; }.course-file-link b,.course-file-link small { display: block; }.course-file-link small { margin-top: 2px; color: #718995; font-size: 10px; }

/* Home motion system */
.hero-visual { min-height: 485px; isolation: isolate; }
.hero-visual .visual-stage {
  inset: 14px 18px 18px 0;
  margin: 0;
  border-radius: 34px 34px 105px 34px;
  background: #021624;
  box-shadow: 0 34px 90px rgba(0,0,0,.38),0 0 0 1px rgba(255,255,255,.05);
}
.hero-visual .visual-stage::before,.hero-visual .visual-stage::after { content:none; }
.hero-photo { width:100%; height:100%; display:block; object-fit:cover; object-position:center; transform:scale(1.035); filter:saturate(.88) contrast(1.03); }
.hero-photo-shade { position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,14,24,.03) 35%,rgba(0,20,33,.82) 100%),linear-gradient(90deg,rgba(0,23,38,.5),transparent 46%); pointer-events:none; }
.visual-stage figcaption { position:absolute; right:auto; left:26px; bottom:25px; z-index:2; max-width:235px; color:#fff; text-align:right; }
.visual-stage figcaption small,.visual-stage figcaption b { display:block; }
.visual-stage figcaption small { margin-bottom:5px; color:#80d2fb; font-size:10px; font-weight:700; letter-spacing:.04em; }
.visual-stage figcaption b { font-size:18px; line-height:1.7; text-shadow:0 3px 18px rgba(0,0,0,.45); }
.governance-card { position:absolute; z-index:4; top:0; left:-18px; display:flex; align-items:center; gap:11px; padding:13px 15px; border:1px solid rgba(151,215,246,.28); border-radius:16px; color:#fff; background:rgba(0,37,61,.8); box-shadow:0 20px 45px rgba(0,0,0,.27); backdrop-filter:blur(15px) saturate(1.2); }
.governance-card i { width:39px; height:39px; display:grid; place-items:center; border-radius:11px; color:#8dd8fb; background:rgba(70,175,231,.16); }
.governance-card small,.governance-card b { display:block; }.governance-card small { margin-bottom:4px; color:#91b9ce; font-size:9px; }.governance-card b { font-size:11px; }
.hero-visual .floating-note { right:-10px; left:auto; bottom:0; max-width:270px; border-color:rgba(255,255,255,.72); color:#062a3f; background:rgba(255,255,255,.97); box-shadow:0 20px 50px rgba(0,16,27,.28); }
.hero-visual .floating-note b { color:#062a3f; font-weight:900; }
.hero-visual .floating-note small { display:block; margin-top:3px; color:#526f7e; font-weight:600; line-height:1.7; }
.hero-orbit { position:absolute; z-index:-1; inset:-32px -42px 6px 22px; border:1px solid rgba(101,195,241,.2); border-radius:45% 55% 48% 52%; pointer-events:none; }
.hero-orbit::before,.hero-orbit::after { content:""; position:absolute; border:1px solid rgba(101,195,241,.12); border-radius:50%; }
.hero-orbit::before { inset:32px -18px -16px 48px; }.hero-orbit::after { inset:85px 26px 33px -35px; }
.hero-orbit i { position:absolute; width:7px; height:7px; border-radius:50%; background:#57c5f5; box-shadow:0 0 0 7px rgba(87,197,245,.12),0 0 24px #35a9e4; }
.hero-orbit i:nth-child(1){top:9%;right:18%}.hero-orbit i:nth-child(2){top:52%;left:-3px}.hero-orbit i:nth-child(3){right:5%;bottom:18%}
.home-scroll-progress { position:fixed; z-index:10000; top:0; right:0; width:var(--page-progress,0%); height:3px; border-radius:0 0 0 4px; background:linear-gradient(90deg,#56c6f7,#087bc9,#04517f); box-shadow:0 1px 12px rgba(41,166,226,.5); pointer-events:none; }
.home-motion .site-header { transition:height .3s ease,background .3s ease,box-shadow .3s ease,border-color .3s ease; }
.home-motion .site-header.is-scrolled { border-color:rgba(180,211,227,.8); background:rgba(255,255,255,.92); box-shadow:0 12px 35px rgba(0,36,59,.1); backdrop-filter:blur(18px) saturate(1.25); }
body.home-motion { overflow-x: hidden; }
body.home-motion main { max-width:100%; overflow-x:hidden; }
.announcement { display:none !important; }
.home-motion .hero {
  --hero-rx: 0deg;
  --hero-ry: 0deg;
  --hero-tx: 0px;
  --hero-ty: 0px;
  isolation: isolate;
  overflow: hidden;
  background-size: 115% 115%;
  animation: manaHeroGradient 14s ease-in-out infinite alternate;
}
.home-motion .hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 520px;
  height: 520px;
  left: -230px;
  bottom: -310px;
  border: 1px solid rgba(88, 194, 248, .14);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(39, 154, 218, .035), 0 0 0 145px rgba(39, 154, 218, .025);
  animation: manaOrbit 17s linear infinite;
  pointer-events: none;
}
.home-motion .hero-grid { position: relative; z-index: 2; }
.home-motion .hero-motion-item {
  opacity: 0;
  animation: manaHeroEnter .85s cubic-bezier(.2,.75,.2,1) forwards;
  animation-delay: var(--hero-delay, 0ms);
}
.home-motion .hero-copy .eyebrow.hero-motion-item { animation-name:manaHeroEyebrow; }
.home-motion .hero-copy h1.hero-motion-item { animation-name:manaHeroTitle; animation-duration:1.05s; }
.home-motion .hero-copy>p.hero-motion-item { animation-name:manaHeroCopy; }
.home-motion .hero-actions.hero-motion-item { animation-name:manaHeroActions; }
.home-motion .hero-visual.hero-motion-item { animation-name:manaHeroVisual; animation-duration:1.15s; }
.home-motion .hero-actions.hero-motion-item .btn { opacity:0; animation:manaButtonPop .62s cubic-bezier(.18,.8,.25,1) forwards; }
.home-motion .hero-actions.hero-motion-item .btn:first-child { animation-delay:calc(var(--hero-delay,0ms) + 100ms); }
.home-motion .hero-actions.hero-motion-item .btn:nth-child(2) { animation-delay:calc(var(--hero-delay,0ms) + 210ms); }
.home-motion .hero-visual {
  transform: perspective(1100px) rotateX(var(--hero-rx)) rotateY(var(--hero-ry)) translate3d(var(--hero-tx), var(--hero-ty), 0);
  transform-style: preserve-3d;
  transition: transform .22s ease-out;
}
.home-motion .visual-stage {
  box-shadow: 0 34px 85px rgba(0, 0, 0, .32), inset 0 1px rgba(255,255,255,.08);
  animation: manaStageBreath 7s ease-in-out infinite;
}
.home-motion .hero-photo { animation:manaPhotoDrift 14s ease-in-out infinite alternate; }
.home-motion .hero-photo-shade { animation:manaPhotoShade 8s ease-in-out infinite alternate; }
.home-motion .hero-orbit { animation:manaOrbitMorph 18s ease-in-out infinite alternate; }
.home-motion .hero-orbit::before { animation:manaOrbit 24s linear infinite; }
.home-motion .governance-card { transform:translateZ(42px); animation:manaFloatGovernance 5.4s ease-in-out infinite; }
.home-motion .floating-note {
  transform: translateZ(58px);
  animation: manaFloatNote 4.7s ease-in-out .6s infinite;
}
.home-motion .bars i {
  transform-origin: bottom;
  animation: manaBarPulse 3.4s ease-in-out infinite;
}
.home-motion .bars i:nth-child(2) { animation-delay: .15s; }
.home-motion .bars i:nth-child(3) { animation-delay: .3s; }
.home-motion .bars i:nth-child(4) { animation-delay: .45s; }
.home-motion .bars i:nth-child(5) { animation-delay: .6s; }
.home-motion .badge { position: relative; overflow: hidden; }
.home-motion .badge::after {
  content: "";
  position: absolute;
  inset: -60% auto -60% -45%;
  width: 35%;
  transform: rotate(18deg);
  background: rgba(255,255,255,.75);
  animation: manaShine 4s ease-in-out infinite;
}
.home-motion .motion-reveal {
  --reveal-x: 0px;
  --reveal-y: 30px;
  --lift: 0px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  opacity: 0;
  filter:blur(4px);
  transform: perspective(1000px) translate3d(var(--reveal-x), calc(var(--reveal-y) + var(--lift)), 0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(.985);
  transition:
    opacity .75s ease var(--reveal-delay, 0ms),
    transform .85s cubic-bezier(.2,.75,.2,1) var(--reveal-delay, 0ms),
    border-color .25s ease,
    box-shadow .25s ease;
}
.home-motion .motion-reveal.is-visible {
  --reveal-x: 0px;
  --reveal-y: 0px;
  opacity: 1;
  filter:blur(0);
}
.home-motion .motion-reveal.reveal-right { --reveal-x:56px; --reveal-y:8px; }
.home-motion .motion-reveal.reveal-left { --reveal-x:-56px; --reveal-y:8px; }
.home-motion .motion-reveal.reveal-scale { --reveal-y:8px; transform:perspective(1000px) translate3d(var(--reveal-x),calc(var(--reveal-y) + var(--lift)),0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(.94); }
.home-motion .motion-reveal.reveal-scale.is-visible { transform:perspective(1000px) translate3d(0,var(--lift),0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(1); }
.home-motion .motion-reveal.reveal-line { --reveal-y:0px; filter:none; }
.home-motion .section-heading.motion-reveal h2 { clip-path:inset(0 0 100% 0); transition:clip-path .9s cubic-bezier(.2,.8,.2,1) calc(var(--reveal-delay,0ms) + 120ms); }
.home-motion .section-heading.motion-reveal.is-visible h2 { clip-path:inset(0); }
.home-motion .motion-tilt {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.home-motion .motion-tilt.is-visible:hover { --lift: -7px; }
.home-motion .motion-tilt::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(circle at var(--glow-x,50%) var(--glow-y,50%), rgba(81,188,241,.18), transparent 42%);
  transition: opacity .25s;
  pointer-events: none;
}
.home-motion .motion-tilt:hover::before { opacity: 1; }
.home-motion .motion-tilt > * { position: relative; z-index: 1; }
.home-motion .stats { position: relative; overflow: hidden; }
.home-motion .stats::before { content:""; position:absolute; z-index:2; right:0; bottom:0; width:100%; height:3px; transform:scaleX(0); transform-origin:right; background:linear-gradient(90deg,#087bc9,#61cff8); }
.home-motion .stats.is-visible::before { animation:manaLineDraw 1.05s cubic-bezier(.2,.8,.2,1) .15s forwards; }
.home-motion .stats.is-visible .stat { animation:manaStatPop .68s cubic-bezier(.2,.8,.2,1) both; }
.home-motion .stats.is-visible .stat:nth-child(2) { animation-delay:.09s; }.home-motion .stats.is-visible .stat:nth-child(3) { animation-delay:.18s; }.home-motion .stats.is-visible .stat:nth-child(4) { animation-delay:.27s; }
.home-motion .stats::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -25%;
  width: 18%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg,transparent,rgba(44,166,228,.09),transparent);
  animation: manaStatsSweep 7s ease-in-out infinite;
  pointer-events: none;
}
.home-motion .stat strong { display: inline-block; transition: transform .25s, text-shadow .25s; }
.home-motion .stat:hover strong { transform: translateY(-3px) scale(1.06); text-shadow: 0 8px 24px rgba(8,123,201,.2); }
.home-motion .process-list { position: relative; }
.home-motion .process-list::before {
  content: "";
  position: absolute;
  top: 14%;
  bottom: 14%;
  right: 28px;
  width: 1px;
  background: linear-gradient(transparent,#76c3ea 15%,#087bc9 50%,#76c3ea 85%,transparent);
  transform: scaleY(0);
  transform-origin: top;
  animation: none;
}
.home-motion .process-list.is-visible::before { animation:manaProcessLine 1.35s cubic-bezier(.2,.8,.2,1) .18s forwards; }
.home-motion .process-item { position: relative; transition-property: opacity,transform,background,border-color,box-shadow; }
.home-motion .process-item.reveal-step.is-visible .process-number { animation:manaStepPop .58s cubic-bezier(.2,.9,.2,1) calc(var(--reveal-delay,0ms) + 180ms) both; }
.home-motion .process-item:hover { --lift: -4px; border-color: #a8d5ed; background: #f8fcff; box-shadow: 0 15px 38px rgba(0,55,89,.08); }
.home-motion .process-number { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.home-motion .process-item:hover .process-number { transform: rotate(-7deg) scale(1.1); box-shadow: 0 8px 22px rgba(8,123,201,.2); }
.home-motion .service-card { overflow: hidden; }
.home-motion .service-card.reveal-service { filter:none; }
.home-motion .service-card .service-icon { transition: transform .4s cubic-bezier(.2,.8,.2,1), background .3s, color .3s; }
.home-motion .service-card:hover .service-icon { transform: translateY(-4px) rotate(-7deg) scale(1.08); color: #fff; background: linear-gradient(135deg,#045d96,#1597df); }
.home-motion .service-card h3::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  margin-top: 9px;
  border-radius: 2px;
  background: linear-gradient(90deg,#0c83ca,#55bdf1);
  transition: width .4s ease;
}
.home-motion .service-card:hover h3::after { width: 42px; }
.home-motion .section-heading .eyebrow::before { animation: manaDotPulse 2.4s ease-in-out infinite; }
.home-motion .section-heading h2 { position:relative; width:fit-content; }
.home-motion .section-heading h2::after { content:""; position:absolute; right:0; bottom:-7px; width:58px; height:3px; border-radius:99px; transform:scaleX(0); transform-origin:right; background:linear-gradient(90deg,#58c7f6,#087bc9); transition:transform .8s cubic-bezier(.2,.8,.2,1) .2s; }
.home-motion .section-heading.is-visible h2::after { transform:scaleX(1); }
.home-motion .section { position:relative; }
.home-motion .section:nth-of-type(2n)::before { content:""; position:absolute; z-index:0; width:280px; height:280px; left:-180px; top:15%; border:1px solid rgba(17,137,199,.08); border-radius:50%; box-shadow:0 0 0 45px rgba(17,137,199,.025),0 0 0 90px rgba(17,137,199,.018); pointer-events:none; }
.home-motion .section>.container { position:relative; z-index:1; }
.home-motion .service-card::after { content:""; position:absolute; right:0; bottom:0; width:100%; height:3px; transform:scaleX(0); transform-origin:right; background:linear-gradient(90deg,#087bc9,#54c4f4); transition:transform .4s ease; }
.home-motion .service-card:hover::after { transform:scaleX(1); }
.home-motion .team-card:hover img { transform: scale(1.055) translateY(-2px); }
.home-motion .team-card.reveal-portrait .team-photo { clip-path:inset(0 0 100% 0 round 18px 18px 0 0); transition:clip-path .95s cubic-bezier(.2,.8,.2,1) calc(var(--reveal-delay,0ms) + 80ms); }
.home-motion .team-card.reveal-portrait.is-visible .team-photo { clip-path:inset(0 round 18px 18px 0 0); }
.home-motion .team-card.reveal-portrait .team-card-body { opacity:0; transform:translateY(12px); transition:.55s ease calc(var(--reveal-delay,0ms) + 380ms); }
.home-motion .team-card.reveal-portrait.is-visible .team-card-body { opacity:1; transform:none; }
.home-motion .course-cover::before {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  left: -90px;
  bottom: -95px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(255,255,255,.035),0 0 0 62px rgba(255,255,255,.025);
  transition: transform .65s ease;
}
.home-motion .course-card:hover .course-cover::before { transform: translate(18px,-15px) scale(1.08); }
.home-motion .course-card.reveal-course .course-cover { clip-path:inset(0 100% 0 0); transition:clip-path .85s cubic-bezier(.2,.8,.2,1) calc(var(--reveal-delay,0ms) + 100ms); }
.home-motion .course-card.reveal-course.is-visible .course-cover { clip-path:inset(0); }
.home-motion .course-card .course-meta b { display: inline-block; transition: transform .25s; }
.home-motion .course-card:hover .course-meta b { transform: translateX(-5px); }
.home-motion .player-shell { overflow: hidden; box-shadow: 0 28px 65px rgba(0,0,0,.25); }
.home-motion .player-screen::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 90deg,transparent,rgba(255,255,255,.2),transparent 26%);
  animation: manaOrbit 10s linear infinite;
}
.home-motion .play-btn { z-index: 2; transition: transform .3s, box-shadow .3s; animation: manaPlayPulse 2.5s ease-in-out infinite; }
.home-motion .play-btn:hover { transform: scale(1.1); box-shadow: 0 0 0 12px rgba(255,255,255,.13),0 13px 34px rgba(0,52,84,.25); }
.home-motion .feature-list li { transition: transform .25s,color .25s; }
.home-motion .feature-list li.reveal-check i { transform:scale(0) rotate(-25deg); transition:transform .55s cubic-bezier(.2,.9,.2,1) calc(var(--reveal-delay,0ms) + 160ms); }
.home-motion .feature-list li.reveal-check.is-visible i { transform:scale(1) rotate(0); }
.home-motion .feature-list li:hover { transform: translateX(-6px); color: #fff; }
.home-motion .mini-quote { transition-property: opacity,transform,border-color,background; }
.home-motion .mini-quote:hover { --lift: -4px; border-color: rgba(69,177,234,.35); background: rgba(255,255,255,.035); }
.home-motion .client-brand { animation: manaClientFloat 5s ease-in-out infinite; }
.home-motion .client-brand:nth-child(3n+2) { animation-delay: .7s; }
.home-motion .client-brand:nth-child(3n) { animation-delay: 1.4s; }
.home-motion .cta-panel {
  position: relative;
  overflow: hidden;
  background-size: 150% 150%;
  animation: manaCtaFlow 9s ease-in-out infinite alternate;
}
.home-motion .cta-panel::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  left: -140px;
  top: -220px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  box-shadow: 0 0 0 52px rgba(255,255,255,.035),0 0 0 105px rgba(255,255,255,.025);
  animation: manaOrbit 18s linear infinite reverse;
  pointer-events: none;
}
.home-motion .cta-panel > * { position: relative; z-index: 1; }
.home-motion .btn { transition: transform .25s ease,box-shadow .25s ease,background .25s ease; }
.home-motion .btn:hover { transform: translateY(-2px); }

@keyframes manaHeroGradient { to { background-position: 75% 35%; } }
@keyframes manaHeroEnter {
  from { opacity: 0; transform: translateY(25px) scale(.985); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes manaOrbit { to { transform: rotate(360deg); } }
@keyframes manaStageBreath { 0%,100% { box-shadow: 0 34px 85px rgba(0,0,0,.32),inset 0 1px rgba(255,255,255,.08); } 50% { box-shadow: 0 42px 105px rgba(0,0,0,.42),0 0 55px rgba(31,153,218,.12),inset 0 1px rgba(255,255,255,.1); } }
@keyframes manaStageCore { to { transform: translate3d(-8px,8px,0) scale(1.04); filter: saturate(1.15); } }
@keyframes manaPhotoDrift { from{transform:scale(1.035) translate3d(0,0,0)} to{transform:scale(1.085) translate3d(-1.1%,.7%,0)} }
@keyframes manaPhotoShade { to{opacity:.83} }
@keyframes manaOrbitMorph { from{transform:rotate(-2deg) scale(.98);border-radius:45% 55% 48% 52%} to{transform:rotate(4deg) scale(1.025);border-radius:55% 45% 55% 45%} }
@keyframes manaFloatGovernance { 0%,100%{transform:translateZ(42px) translateY(0)} 50%{transform:translateZ(42px) translateY(-8px)} }
@keyframes manaFloatCard { 0%,100% { transform: translateZ(35px) translateY(0); } 50% { transform: translateZ(35px) translateY(-9px); } }
@keyframes manaFloatNote { 0%,100% { transform: translateZ(58px) translateY(0); } 50% { transform: translateZ(58px) translateY(8px); } }
@keyframes manaBarPulse { 0%,100% { transform: scaleY(.96); filter: brightness(.96); } 50% { transform: scaleY(1.05); filter: brightness(1.16); } }
@keyframes manaShine { 0%,45% { transform: translateX(0) rotate(18deg); opacity:0; } 55% { opacity:1; } 75%,100% { transform: translateX(420%) rotate(18deg); opacity:0; } }
@keyframes manaStatsSweep { 0%,20% { transform: translateX(0) skewX(-18deg); opacity:0; } 35% { opacity:1; } 55%,100% { transform: translateX(800%) skewX(-18deg); opacity:0; } }
@keyframes manaProcessLine { to { transform: scaleY(1); } }
@keyframes manaDotPulse { 0%,100% { box-shadow:0 0 0 5px #e3f1fa; } 50% { box-shadow:0 0 0 9px rgba(227,241,250,.35); } }
@keyframes manaPlayPulse { 0%,100% { box-shadow:0 0 0 0 rgba(255,255,255,.18); } 50% { box-shadow:0 0 0 10px rgba(255,255,255,0); } }
@keyframes manaClientFloat { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-3px); } }
@keyframes manaCtaFlow { to { background-position: 100% 45%; } }

@media (max-width: 760px) {
  .hero-visual { min-height:385px; }
  .hero-visual .visual-stage { inset:12px 0 10px; border-radius:25px 25px 68px 25px; }
  .visual-stage figcaption { right:auto; left:18px; bottom:80px; max-width:210px; }.visual-stage figcaption b{font-size:14px}
  .governance-card { top:0; left:8px; padding:9px 10px; }.governance-card i{width:32px;height:32px}.governance-card b{font-size:9px}
  .hero-visual .floating-note { right:5px; bottom:0; padding:9px 10px; }.hero-visual .floating-note i{width:31px;height:31px}.hero-visual .floating-note b{font-size:11px}.hero-visual .floating-note small{font-size:8px}
  .hero-orbit { display:none; }
  .home-motion .hero-visual { transform: none; }
  .home-motion .motion-tilt,
  .home-motion .motion-tilt.is-visible:hover {
    --tilt-x: 0deg !important;
    --tilt-y: 0deg !important;
    --lift: 0px;
  }
  .home-motion .process-list::before { right: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-motion *,
  .home-motion *::before,
  .home-motion *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .home-motion .hero-motion-item,
  .home-motion .motion-reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* Student account */
.student-page {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #eef3f7;
}
.student-shell {
  height: 100%;
  display: grid;
  grid-template-columns: 318px minmax(0, 1fr);
  overflow: hidden;
}
.student-sidebar {
  position: relative;
  isolation: isolate;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 18px 18px 16px;
  color: #c2d3dc;
  background:
    radial-gradient(circle at 12% 2%, rgba(24, 156, 228, .24), transparent 27%),
    radial-gradient(circle at 94% 78%, rgba(0, 107, 166, .2), transparent 32%),
    linear-gradient(168deg, #03121d 0%, #031d2d 50%, #032c46 100%);
  box-shadow: -12px 0 42px rgba(0, 20, 33, .18);
}
.student-sidebar::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -1;
  width: 1px;
  background: linear-gradient(transparent, rgba(61, 174, 236, .34), transparent);
}
.student-sidebar-glow {
  position: absolute;
  z-index: -1;
  top: 34%;
  left: -120px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(10, 126, 198, .18);
  filter: blur(38px);
  pointer-events: none;
  animation: studentGlow 7s ease-in-out infinite alternate;
}
.student-brand {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  padding: 9px 14px 12px;
  border: 1px solid rgba(142, 211, 247, .11);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .018));
  box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 15px 34px rgba(0, 8, 14, .16);
}
.student-brand .brand {
  width: 118px;
  height: 60px;
  margin: -4px 0 0;
}
.student-brand .brand-mark { background-image: url("/assets/mana-brand-white.png"); }
.student-brand > div { padding: 6px 0 0; text-align: center; border-top: 1px solid rgba(255, 255, 255, .07); }
.student-brand b,
.student-brand small { display: block; }
.student-brand b { color: #f8fcff; font-size: 14px; font-weight: 800; }
.student-brand small { margin-top: 3px; color: #8da9b8; font-size: 10.5px; font-weight: 450; }
.student-nav-wrap {
  min-height: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding-top: 18px;
}
.student-nav-label {
  flex: 0 0 auto;
  padding: 0 13px 10px;
  color: #7f9eae;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .02em;
}
.student-nav {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px 3px 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(102, 174, 214, .28) transparent;
  overscroll-behavior: contain;
}
.student-nav::-webkit-scrollbar { width: 5px; }
.student-nav::-webkit-scrollbar-track { background: transparent; }
.student-nav::-webkit-scrollbar-thumb { border-radius: 10px; background: rgba(102, 174, 214, .28); }
.student-nav button,
.student-nav > a {
  position: relative;
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 11px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 16px;
  text-align: right;
  color: inherit;
  background: transparent;
  transition: color .22s ease, border-color .22s ease, background .22s ease, transform .22s ease, box-shadow .22s ease;
}
.student-nav button::before,
.student-nav > a::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(100deg, rgba(20, 146, 219, .31), rgba(17, 118, 180, .07));
  transform: translateX(22%);
  transition: opacity .24s ease, transform .3s ease;
}
.student-nav button::after {
  content: "";
  position: absolute;
  top: 13px;
  right: -2px;
  bottom: 13px;
  width: 4px;
  border-radius: 8px 0 0 8px;
  opacity: 0;
  background: #35b3f3;
  box-shadow: 0 0 13px rgba(53, 179, 243, .72);
  transform: scaleY(.25);
  transition: opacity .2s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.student-nav button:hover,
.student-nav > a:hover {
  color: #f4faff;
  border-color: rgba(107, 196, 242, .18);
  background: rgba(255, 255, 255, .055);
  transform: translateX(-3px);
}
.student-nav button:hover::before,
.student-nav > a:hover::before,
.student-nav button.active::before {
  opacity: 1;
  transform: none;
}
.student-nav button.active {
  color: #fff;
  border-color: rgba(105, 204, 255, .35);
  background: linear-gradient(102deg, rgba(6, 110, 174, .72), rgba(11, 82, 130, .38));
  box-shadow: inset 0 1px rgba(255, 255, 255, .1), 0 11px 28px rgba(0, 9, 17, .22);
}
.student-nav button.active::after {
  opacity: 1;
  transform: scaleY(1);
}
.student-nav button:focus-visible,
.student-nav > a:focus-visible,
.student-logout:focus-visible,
.student-home-link:focus-visible {
  outline: 2px solid #48b9ef;
  outline-offset: 2px;
}
.student-nav-icon {
  position: relative;
  z-index: 1;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: 13px;
  color: #9bb7c6;
  background: rgba(255, 255, 255, .055);
  font-style: normal;
  transition: color .22s ease, background .22s ease, border-color .22s ease, transform .25s ease;
}
.student-nav-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.student-nav button:hover .student-nav-icon,
.student-nav > a:hover .student-nav-icon {
  color: #bfe7fb;
  border-color: rgba(77, 180, 234, .18);
  background: rgba(22, 135, 203, .13);
  transform: scale(1.04);
}
.student-nav button.active .student-nav-icon {
  color: #fff;
  border-color: rgba(112, 208, 255, .3);
  background: linear-gradient(145deg, #087ac2, #159ee3);
  box-shadow: 0 7px 17px rgba(4, 100, 158, .32);
}
.student-nav-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1;
}
.student-nav-copy b,
.student-nav-copy small { display: block; }
.student-nav-copy b { color: #dce8ee; font-size: 14px; font-weight: 750; line-height: 1.55; }
.student-nav-copy small {
  margin-top: 3px;
  overflow: hidden;
  color: #83a0af;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .22s ease;
}
.student-nav button:hover small,
.student-nav > a:hover small,
.student-nav button.active small { color: #99b8c9; }
.student-nav-arrow {
  position: relative;
  z-index: 1;
  color: #7395a6;
  font-style: normal;
  font-size: 22px;
  transition: color .22s ease, transform .22s ease;
}
.student-cart-badge { min-width:20px; height:20px; display:grid; place-items:center; padding:0 5px; border-radius:20px; color:#fff; background:#0b8bd1; font-style:normal; font-size: 8px; font-weight:800; }
.student-cart-badge[hidden] { display:none; }
.student-nav button:hover .student-nav-arrow,
.student-nav > a:hover .student-nav-arrow,
.student-nav button.active .student-nav-arrow {
  color: #8fd5f7;
  transform: translateX(-2px);
}
.student-sidebar-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
  padding: 12px;
  border: 1px solid rgba(142, 211, 247, .11);
  border-radius: 17px;
  background: rgba(255, 255, 255, .035);
}
.student-profile {
  min-width: 0;
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
}
.student-profile .person-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid rgba(116, 205, 250, .28);
  color: #fff;
  background: linear-gradient(145deg, #075b91, #1095da);
  box-shadow: 0 7px 18px rgba(4, 76, 120, .3);
  font-size: 12px;
  font-weight: 800;
}
.student-profile > div { min-width: 0; }
.student-profile b,
.student-profile small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.student-profile b { color: #f4f9fc; font-size: 13px; font-weight: 750; }
.student-profile small { margin-top: 2px; color: #8ba7b6; font-size: 10px; }
.student-profile small i {
  width: 5px;
  height: 5px;
  display: inline-block;
  margin-left: 3px;
  border-radius: 50%;
  background: #33c98d;
  box-shadow: 0 0 0 3px rgba(51, 201, 141, .1);
}
.student-logout {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  color: #7899aa;
  background: rgba(255, 255, 255, .035);
  transition: .22s ease;
}
.student-logout:hover {
  color: #ff9cac;
  border-color: rgba(239, 117, 139, .25);
  background: rgba(220, 76, 100, .1);
  transform: translateY(-1px);
}
.student-logout svg,
.student-home-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.student-main {
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #b7cbd7 transparent;
  background:
    radial-gradient(circle at 88% 0, rgba(41, 158, 222, .075), transparent 25%),
    #f3f6f9;
}
.student-main::-webkit-scrollbar { width: 8px; }
.student-main::-webkit-scrollbar-track { background: transparent; }
.student-main::-webkit-scrollbar-thumb { border: 2px solid #f3f6f9; border-radius: 20px; background: #b7cbd7; }
.student-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 13px clamp(20px, 3vw, 42px);
  border-bottom: 1px solid rgba(189, 208, 219, .62);
  background: rgba(248, 250, 252, .88);
  box-shadow: 0 8px 25px rgba(0, 34, 56, .035);
  backdrop-filter: blur(18px) saturate(1.3);
}
.student-heading > span {
  display: block;
  margin-bottom: 1px;
  color: #0a78bc;
  font-size: 9.5px;
  font-weight: 800;
}
.student-heading h1 {
  margin: 0;
  color: #071d2b;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
}
.student-heading p { margin: 0; color: #708592; font-size: 10px; }
.student-top-actions { display: flex; align-items: center; gap: 9px; }
.student-cart-link { min-height:38px; display:flex; align-items:center; gap:7px; padding:8px 12px; border:1px solid #cce1ec; border-radius:10px; color:#076fae; background:#eef7fc; font-size: 10px; font-weight:750; }.student-cart-link b{min-width:18px;height:18px;display:grid;place-items:center;padding:0 4px;border-radius:20px;color:#fff;background:#087bc9;font-size: 8px}.student-cart-link b[hidden]{display:none}.student-cart-link:hover{background:#e1f2fa}
.student-home-link {
  min-height: 41px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid #d7e4eb;
  border-radius: 11px;
  color: #58707e;
  background: rgba(255, 255, 255, .82);
  font-size: 10.5px;
  transition: .22s ease;
}
.student-home-link:hover {
  color: #0877bd;
  border-color: #a9d2e9;
  background: #fff;
  box-shadow: 0 7px 18px rgba(0, 48, 79, .07);
  transform: translateY(-1px);
}
.student-view {
  width: 100%;
  max-width: 1500px;
  min-height: calc(100% - 88px);
  margin-inline: auto;
  padding: 27px clamp(20px, 3vw, 42px) 48px;
}
.student-view.student-view-enter { animation: studentViewEnter .38s cubic-bezier(.2, .78, .25, 1) both; }
.student-page .admin-card {
  border-color: #dfe8ed;
  border-radius: 19px;
  box-shadow: 0 10px 30px rgba(0, 37, 61, .045);
  transition: border-color .23s ease, box-shadow .23s ease, transform .23s ease;
}
.student-page .admin-card:hover {
  border-color: #cbdde7;
  box-shadow: 0 15px 38px rgba(0, 37, 61, .065);
}
.student-page .admin-kpi {
  border-color: #dfe8ed;
  border-radius: 18px;
  box-shadow: 0 9px 28px rgba(0, 37, 61, .045);
  transition: transform .23s ease, border-color .23s ease, box-shadow .23s ease;
}
.student-page .admin-kpi:hover {
  z-index: 1;
  border-color: #bdd9e8;
  box-shadow: 0 16px 36px rgba(0, 52, 84, .08);
  transform: translateY(-3px);
}
.student-page .admin-kpi::after {
  background: radial-gradient(circle, #e2f2fb 0%, rgba(226, 242, 251, .35) 62%, transparent 64%);
  transition: transform .35s ease;
}
.student-page .admin-kpi:hover::after { transform: scale(1.14); }
.student-page .active-course {
  border-color: #edf2f5;
  border-radius: 12px;
  transition: padding .22s ease, background .22s ease;
}
.student-page .active-course:hover { padding-inline: 10px; background: #f7fafc; }
.student-page .active-thumb { flex: 0 0 70px; box-shadow: inset 0 1px rgba(255, 255, 255, .13); }
.student-page .quick-item { border: 1px solid transparent; transition: .2s ease; }
.student-page .quick-item:hover { border-color: #dceaf1; background: #f2f8fb; transform: translateX(-2px); }

@keyframes studentGlow {
  from { opacity: .55; transform: translate3d(0, -12px, 0) scale(.9); }
  to { opacity: 1; transform: translate3d(25px, 14px, 0) scale(1.1); }
}
@keyframes studentViewEnter {
  from { opacity: 0; transform: translateY(11px); filter: blur(2px); }
  to { opacity: 1; transform: none; filter: none; }
}

@media (max-width: 1080px) and (min-width: 721px) {
  .student-shell { grid-template-columns: 94px minmax(0, 1fr); }
  .student-sidebar { padding-inline: 12px; }
  .student-brand { display: grid; place-items: center; padding-inline: 0; }
  .student-brand .brand { width: 64px; height: 48px; margin: 0; }
  .student-brand > div,
  .student-nav-label,
  .student-nav-copy,
  .student-nav-arrow,
  .student-profile > div { display: none; }
  .student-nav button,
  .student-nav > a { min-height: 54px; justify-content: center; padding: 8px; }
  .student-nav button::after { right: -1px; }
  .student-nav-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .student-sidebar-foot { justify-content: center; padding-inline: 0; }
  .student-profile { flex: 0 0 auto; }
  .student-profile .person-avatar { width: 36px; height: 36px; flex-basis: 36px; }
  .student-logout { position: absolute; bottom: 19px; left: 11px; width: 29px; height: 29px; border-radius: 9px; }
  .student-logout svg { width: 15px; height: 15px; }
}

@media (max-width: 720px) {
  .student-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .student-sidebar {
    z-index: 40;
    height: auto;
    min-height: 86px;
    display: block;
    padding: 9px 10px 8px;
    box-shadow: 0 8px 25px rgba(0, 24, 40, .16);
  }
  .student-sidebar::after {
    inset: auto 0 0;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(61, 174, 236, .34), transparent);
  }
  .student-sidebar-glow,
  .student-brand,
  .student-nav-label,
  .student-sidebar-foot { display: none; }
  .student-nav-wrap { display: block; padding: 0; }
  .student-nav {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1px 1px 5px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .student-nav::-webkit-scrollbar { display: none; }
  .student-nav button,
  .student-nav > a {
    width: auto;
    min-width: max-content;
    min-height: 66px;
    flex: 0 0 auto;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 13px;
    scroll-snap-align: start;
  }
  .student-nav button:hover,
  .student-nav > a:hover { transform: none; }
  .student-nav button::after {
    inset: auto 10px -1px;
    width: auto;
    height: 3px;
    border-radius: 6px 6px 0 0;
    transform: scaleX(.25);
  }
  .student-nav button.active::after { transform: scaleX(1); }
  .student-nav-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 10px;
  }
  .student-nav-icon svg { width: 17px; height: 17px; }
  .student-nav-copy { flex: 0 0 auto; }
  .student-nav-copy b { font-size: 12px; }
  .student-nav-copy small,
  .student-nav-arrow { display: none; }
  .student-main { scrollbar-gutter: auto; }
  .student-topbar {
    min-height: 72px;
    gap: 12px;
    padding: 10px 14px;
  }
  .student-heading > span,
  .student-heading p,
  .student-home-link span { display: none; }
  .student-heading h1 { font-size: 18px; white-space: nowrap; }
  .student-top-actions { gap: 6px; }
  .student-top-actions .btn { min-height: 38px; padding: 8px 11px; font-size: 10px; }
  .student-home-link {
    width: 38px;
    min-height: 38px;
    justify-content: center;
    padding: 0;
  }
  .student-home-link svg { width: 17px; height: 17px; }
  .student-view {
    min-height: calc(100% - 72px);
    padding: 18px 14px 35px;
  }
  .student-page .admin-kpis { gap: 10px; }
  .student-page .admin-kpi { padding: 15px; }
  .student-page .admin-content-grid { gap: 12px; margin-top: 12px; }
  .student-page .admin-card { padding: 16px; border-radius: 16px; }
  .student-page .admin-card-head { align-items: flex-start; flex-direction: column; }
  .student-page .admin-card-head .btn { align-self: stretch; }
  .student-page .active-course { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .student-page .active-course .btn { margin-right: auto; }
}

@media (max-width: 430px) {
  .student-nav button,
  .student-nav > a { min-height: 60px; padding-inline: 8px; }
  .student-nav-icon { width: 31px; height: 31px; flex-basis: 31px; }
  .student-nav-copy b { font-size: 11.5px; }
  .student-top-actions .btn { display: none; }
  .student-page .admin-kpis { grid-template-columns: 1fr 1fr; }
  .student-page .admin-kpi span { margin-top: 9px; }
  .student-page .admin-kpi b { font-size: 23px; }
  .student-page .active-thumb { width: 58px; flex-basis: 58px; height: 47px; }
}

@media (prefers-reduced-motion: reduce) {
  .student-page *,
  .student-page *::before,
  .student-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
@keyframes manaHeroEyebrow { from{opacity:0;transform:translateX(35px);letter-spacing:.12em} to{opacity:1;transform:none;letter-spacing:inherit} }
@keyframes manaHeroTitle { from{opacity:0;transform:translateY(38px);clip-path:inset(0 0 100% 0);filter:blur(5px)} to{opacity:1;transform:none;clip-path:inset(0);filter:none} }
@keyframes manaHeroCopy { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:none} }
@keyframes manaHeroActions { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:none} }
@keyframes manaHeroVisual { from{opacity:0;clip-path:inset(8% 10% 8% 10% round 45px);filter:blur(8px)} to{opacity:1;clip-path:inset(0);filter:none} }
@keyframes manaButtonPop { from{opacity:0;transform:translateY(14px) scale(.94)} to{opacity:1;transform:none} }
@keyframes manaLineDraw { to{transform:scaleX(1)} }
@keyframes manaStatPop { from{opacity:.2;transform:translateY(18px) scale(.9)} to{opacity:1;transform:none} }
@keyframes manaStepPop { from{transform:scale(.55) rotate(16deg);box-shadow:0 0 0 0 rgba(8,123,201,.25)} to{transform:none;box-shadow:0 0 0 6px rgba(8,123,201,.08)} }

/* Mobile reliability and touch ergonomics */
@media (max-width: 760px) {
  html { overflow-x: hidden; }
  body { min-width: 0; overflow-x: hidden; }
  img, video, iframe { max-width: 100%; }
  button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
  input, select, textarea, .form-control, .search-box input { font-size: 16px !important; }
  textarea { resize: vertical; }

  .announcement { height: 32px; font-size: 10.5px; background: linear-gradient(100deg, #01070c, #00233a); }
  .announcement .container { justify-content: center; text-align: center; }
  .announcement strong { display: inline-flex; align-items: center; gap: 7px; }
  .announcement strong::before { content: ""; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #38bdf8; box-shadow: 0 0 0 4px rgba(56,189,248,.12); }
  .site-header { height: 68px; border-bottom-color: #dceaf1; background: rgba(255,255,255,.96); box-shadow: 0 8px 24px rgba(0,37,61,.08); backdrop-filter: blur(18px) saturate(1.25); }
  .site-header::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; opacity: .72; background: linear-gradient(90deg, transparent, #168fd2 45%, #064f7e 70%, transparent); }
  .site-header .container { gap: 4px; padding-inline: 2px; }
  .site-header .brand { width: 96px; height: 54px; }
  .site-header .header-actions { display: flex; align-items: center; gap: 5px; margin-right: auto; }
  .site-header .header-actions > * { display: none; }
  .site-header .header-actions > .menu-toggle,
  .site-header .header-actions > a[href="/dashboard.html"],
  .site-header .header-actions > .cart-shortcut,
  .site-header .header-actions:has(.cart-shortcut) > a[href="/dashboard.html"],
  .site-header .header-actions:has(.cart-shortcut) > .menu-toggle { display: inline-flex; }
  .site-header .header-actions > a[href="/dashboard.html"] { width: 72px; min-width: 72px; min-height: 38px; justify-content: center; padding: 0 6px; border-radius: 10px; font-size: 9.5px; white-space: nowrap; }
  .menu-toggle, .cart-shortcut { min-width: 38px; min-height: 38px; border: 1px solid #d5e8f2; border-radius: 11px; color: #075d91; background: linear-gradient(145deg, #f8fcfe, #e9f5fb); box-shadow: 0 6px 15px rgba(0,69,110,.07), inset 0 1px #fff; }
  .site-header .header-actions > .menu-toggle { width: 38px; min-width: 38px; height: 38px; min-height: 38px; align-items: center; justify-content: center; border-radius: 10px; }
  .menu-toggle { position: relative; display: grid; place-items: center; padding: 0; transition: border-color .22s ease, background .22s ease, box-shadow .22s ease, transform .22s ease; }
  .menu-toggle:hover { transform: none; }
  .site-header .menu-toggle::before, .site-header .menu-toggle::after { content: none; }
  .site-header .menu-toggle i { position: relative; width: 16px; height: 1.8px; display: block; margin: 0; border-radius: 4px; background: currentColor; transition: background .18s ease; }
  .site-header .menu-toggle i::before, .site-header .menu-toggle i::after { content: ""; position: absolute; right: 0; width: 16px; height: 1.8px; border-radius: 4px; background: currentColor; transition: transform .28s cubic-bezier(.2,.75,.25,1); }
  .site-header .menu-toggle i::before { transform: translateY(-5px); }
  .site-header .menu-toggle i::after { transform: translateY(5px); }
  .menu-open .menu-toggle { border-color: #188ecb; color: #fff; background: linear-gradient(145deg, #05679f, #0d91d3); box-shadow: 0 9px 22px rgba(6,112,174,.25); }
  .menu-open .site-header .menu-toggle i { background: transparent; }
  .menu-open .site-header .menu-toggle i::before { transform: rotate(45deg); }
  .menu-open .site-header .menu-toggle i::after { transform: rotate(-45deg); }
  .cart-shortcut { width: 38px; justify-content: center; padding: 0; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
  .cart-shortcut:active, .menu-toggle:active { transform: scale(.94); }
  .cart-shortcut .icon { width: 17px; height: 17px; }
  .cart-shortcut b { position: absolute; top: -4px; left: -4px; border: 2px solid #fff; }
  .main-nav {
    inset: 68px 0 auto;
    display: flex;
    max-height: none;
    height: calc(100dvh - 100px);
    align-items: stretch;
    gap: 8px;
    padding: 16px 14px calc(22px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border-top: 1px solid #e3edf2;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: radial-gradient(circle at 90% 5%, rgba(19,145,211,.1), transparent 28%), rgba(248,252,254,.985);
    box-shadow: 0 22px 48px rgba(0, 31, 51, .16);
    overscroll-behavior: contain;
    transform: translateY(-18px) scale(.985);
    transform-origin: top center;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .38s cubic-bezier(.2,.75,.25,1), transform .34s cubic-bezier(.2,.75,.25,1), opacity .24s ease, visibility .38s;
  }
  .menu-open .main-nav { visibility: visible; opacity: 1; pointer-events: auto; transform: none; clip-path: inset(0); }
  .main-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 11px 14px;
    border: 1px solid #e1ebf0;
    border-radius: 12px;
    color: #274b5e;
    background: #fff;
    font-size: 14px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .3s cubic-bezier(.2,.75,.25,1), color .2s ease, border-color .2s ease, background .2s ease;
  }
  .site-header .main-nav a::after { content: "←"; position: static; right: auto; bottom: auto; width: auto; height: auto; display: block; margin-right: auto; color: #80a9be; background: none; font-size: 17px; }
  .site-header .main-nav a.active::after { width: auto; color: #1688c5; background: none; }
  .menu-open .main-nav a { opacity: 1; transform: none; }
  .menu-open .main-nav a:nth-child(1) { transition-delay: .05s; }
  .menu-open .main-nav a:nth-child(2) { transition-delay: .08s; }
  .menu-open .main-nav a:nth-child(3) { transition-delay: .11s; }
  .menu-open .main-nav a:nth-child(4) { transition-delay: .14s; }
  .menu-open .main-nav a:nth-child(5) { transition-delay: .17s; }
  .menu-open .main-nav a:nth-child(6) { transition-delay: .2s; }
  .menu-open .main-nav a:nth-child(7) { transition-delay: .23s; }
  .main-nav a.active { border-color: #abd7ee; color: #056aa9; background: #edf8fd; }

  .btn { min-height: 46px; padding-inline: 16px; font-size: 13px; }
  .section-heading h2 { font-size: clamp(24px, 7.2vw, 30px); letter-spacing: -.45px; }
  .section-heading p, .page-hero p, .service-card p, .course-body p { font-size: 14px; line-height: 2; }
  .page-hero { padding: 45px 0; }
  .page-hero h1 { font-size: clamp(29px, 8.6vw, 38px); line-height: 1.55; }
  .course-toolbar { gap: 9px; }
  .filter-chip { min-height: 42px; padding-inline: 13px; font-size: 12px; }

  .pricing-card { min-height: 0; padding: 22px 19px; }
  .pricing-card p { min-height: 0; font-size: 13px; }
  .pricing-features { font-size: 12px; line-height: 1.9; }
  .pricing-price span, .pricing-note span { font-size: 11px; }

  .cart-products, .cart-summary { padding: 18px 15px; border-radius: 17px; }
  .cart-line { gap: 10px; }
  .cart-line b, .cart-line > strong { font-size: 13px; }
  .cart-line small, .cart-summary-row, .cart-discount label, .cart-back { font-size: 11px; }
  .cart-line > button { width: 42px; height: 42px; }
  .cart-discount > div { align-items: stretch; flex-direction: column; }
  .cart-discount .btn { width: 100%; }
  .cart-empty-actions { align-items: stretch; flex-direction: column; }

  .checkout-page { padding: 16px 13px; }
  .checkout-card { padding: 22px 17px; border-radius: 18px; }
  .checkout-head p, .checkout-row, .checkout-security { font-size: 11px; }

  .learn-layout { min-height: 100dvh; }
  .learn-sidebar { box-shadow: 0 8px 24px rgba(0, 32, 53, .08); }
  .learn-sidebar-head { padding: 16px; }
  .learn-sidebar.open .lesson-list { max-height: 52dvh; overflow-y: auto; overscroll-behavior: contain; }
  .learn-topbar { position: sticky; z-index: 20; top: 0; height: 66px; padding: 9px 13px; }
  .learn-topbar .brand { font-size: 0; }
  .learn-topbar .brand-mark { margin: 0; }
  .learn-content { padding: 14px 12px 30px; }
  .video-frame { border-radius: 13px; }
  .lesson-article { padding: 19px 16px; }
  .lesson-article h1 { font-size: 22px; }

  .auth-page .form-group label { font-size: 12px; }
  .auth-page .auth-switch { font-size: 12px !important; }
  .auth-page .muted { font-size: 11px; }

  .student-sidebar { min-height: 0; padding: 8px; }
  .student-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }
  .student-nav button,
  .student-nav > a {
    width: 100%;
    min-width: 0;
    min-height: 64px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px;
    text-align: center;
    white-space: normal;
  }
  .student-nav button::after { inset: auto 8px -1px; }
  .student-nav-icon { width: 28px; height: 28px; flex-basis: 28px; border-radius: 8px; }
  .student-nav-icon svg { width: 16px; height: 16px; }
  .student-nav-copy { width: 100%; }
  .student-nav-copy b { overflow: hidden; font-size: 10.5px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
  .student-topbar { min-height: 68px; padding: 9px 12px; }
  .student-heading h1 { max-width: 155px; overflow: hidden; font-size: 18px; text-overflow: ellipsis; }
  .student-view { min-height: calc(100% - 68px); padding: 15px 12px calc(28px + env(safe-area-inset-bottom)); }

  .admin-page .admin-main, .student-main { min-width: 0; }
  .admin-page .admin-view { padding-bottom: calc(34px + env(safe-area-inset-bottom)); }
  .admin-page .data-table-wrap { max-width: 100%; -webkit-overflow-scrolling: touch; overscroll-behavior-inline: contain; }
  .admin-page .data-table { min-width: 680px; }
  .admin-page .modal-card { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; }

  .toast { right: 13px; bottom: calc(13px + env(safe-area-inset-bottom)); left: 13px; text-align: center; }
  .team-card-body > span, .client-cloud span { font-size: 12px; }
}

@media (max-width: 430px) {
  .container { width: calc(100% - 24px); }
  .hero { padding: 44px 0 58px; }
  .hero h1 { font-size: clamp(30px, 9.4vw, 35px); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .student-top-actions .btn { display: none; }
  .student-cart-link { width: auto; min-height: 42px; justify-content: center; padding: 0 11px; font-size: 10.5px; }
  .student-heading h1 { max-width: 135px; }
}

/* Admin navigation and independent workspace scrolling */
.admin-page {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #eef3f7;
}
.admin-page .admin-shell {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  overflow: hidden;
  background: #f3f6f9;
}
.admin-page .admin-sidebar {
  position: relative;
  isolation: isolate;
  top: auto;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 20px 15px 16px;
  color: #9eb5c2;
  background:
    radial-gradient(circle at 8% 8%, rgba(17, 143, 218, .19), transparent 26%),
    linear-gradient(178deg, #01070b 0%, #001725 54%, #00263e 100%);
  box-shadow: -9px 0 34px rgba(0, 20, 33, .13);
}
.admin-page .admin-sidebar::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -1;
  width: 1px;
  background: linear-gradient(transparent, rgba(61, 174, 236, .32), transparent);
}
.admin-sidebar-glow {
  position: absolute;
  z-index: -1;
  top: 34%;
  left: -110px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(8, 123, 201, .15);
  filter: blur(38px);
  pointer-events: none;
  animation: adminGlow 7s ease-in-out infinite alternate;
}
.admin-page .admin-brand {
  position: relative;
  flex: 0 0 auto;
  display: block;
  padding: 0 9px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, .085);
}
.admin-page .admin-brand .brand {
  width: 166px;
  height: 82px;
  margin: -12px -2px -7px 0;
}
.admin-page .admin-brand > div { padding-right: 6px; }
.admin-page .admin-brand b,
.admin-page .admin-brand small { display: block; }
.admin-page .admin-brand b { color: #f7fbfd; font-size: 11.5px; }
.admin-page .admin-brand small { margin-top: 1px; color: #6f91a3; font-size: 9px; }
.admin-sidebar-close {
  position: absolute;
  top: 5px;
  left: 1px;
  width: 34px;
  height: 34px;
  display: none;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  color: #8eabba;
  background: rgba(255, 255, 255, .045);
}
.admin-sidebar-close svg,
.admin-menu-toggle svg,
.admin-page .admin-icon-btn svg,
.admin-logout svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.admin-page .admin-nav {
  min-height: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  overflow-x: hidden;
  overflow-y: auto;
  margin-top: 0;
  padding: 14px 3px 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(102, 174, 214, .3) transparent;
  overscroll-behavior: contain;
}
.admin-page .admin-nav::-webkit-scrollbar { width: 5px; }
.admin-page .admin-nav::-webkit-scrollbar-track { background: transparent; }
.admin-page .admin-nav::-webkit-scrollbar-thumb { border-radius: 9px; background: rgba(102, 174, 214, .3); }
.admin-nav-section {
  flex: 0 0 auto;
  padding: 9px 12px 3px;
  color: #5f8294;
  font-size: 8.5px;
  font-weight: 750;
}
.admin-nav-section:first-child { padding-top: 0; }
.admin-page .admin-nav button {
  position: relative;
  width: 100%;
  min-height: 45px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  overflow: hidden;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-align: right;
  color: inherit;
  background: transparent;
  font-size: 10.5px;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.admin-page .admin-nav button::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(100deg, rgba(12, 132, 207, .29), rgba(12, 132, 207, .035));
  transform: translateX(18%);
  transition: opacity .23s ease, transform .28s ease;
}
.admin-page .admin-nav button::after {
  content: "";
  position: absolute;
  top: 10px;
  right: -2px;
  bottom: 10px;
  width: 3px;
  border-radius: 7px 0 0 7px;
  opacity: 0;
  background: #36b4f3;
  box-shadow: 0 0 12px rgba(54, 180, 243, .7);
  transform: scaleY(.2);
  transition: opacity .2s ease, transform .27s cubic-bezier(.2, .8, .2, 1);
}
.admin-page .admin-nav button:hover {
  color: #f4faff;
  border-color: rgba(83, 179, 231, .11);
  background: rgba(255, 255, 255, .035);
  transform: translateX(-2px);
}
.admin-page .admin-nav button:hover::before,
.admin-page .admin-nav button.active::before {
  opacity: 1;
  transform: none;
}
.admin-page .admin-nav button.active {
  color: #fff;
  border-color: rgba(67, 179, 239, .22);
  background: rgba(9, 101, 161, .12);
  box-shadow: inset 0 1px rgba(255, 255, 255, .045), 0 8px 23px rgba(0, 8, 14, .13);
}
.admin-page .admin-nav button.active::after {
  opacity: 1;
  transform: scaleY(1);
}
.admin-page .admin-nav button i {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: 9px;
  color: #7696a7;
  background: rgba(255, 255, 255, .045);
  font-style: normal;
  transition: .22s ease;
}
.admin-page .admin-nav button i svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.admin-page .admin-nav button:hover i {
  color: #bfe7fb;
  border-color: rgba(77, 180, 234, .18);
  background: rgba(22, 135, 203, .13);
  transform: scale(1.04);
}
.admin-page .admin-nav button.active i {
  color: #fff;
  border-color: rgba(112, 208, 255, .3);
  background: linear-gradient(145deg, #087ac2, #159ee3);
  box-shadow: 0 6px 15px rgba(4, 100, 158, .31);
}
.admin-page .admin-nav button span {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-page .admin-nav button em {
  position: relative;
  z-index: 1;
  color: #55798b;
  font-style: normal;
  font-size: 18px;
  transition: .2s ease;
}
.admin-page .admin-nav button:hover em,
.admin-page .admin-nav button.active em { color: #8fd5f7; transform: translateX(-2px); }
.admin-page .admin-nav button:focus-visible,
.admin-sidebar-close:focus-visible,
.admin-menu-toggle:focus-visible,
.admin-logout:focus-visible {
  outline: 2px solid #48b9ef;
  outline-offset: 2px;
}
.admin-page .admin-sidebar-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  padding: 13px 7px 0;
  border-top: 1px solid rgba(255, 255, 255, .085);
}
.admin-page .admin-profile {
  min-width: 0;
  display: flex;
  flex: 1;
  align-items: center;
  gap: 9px;
}
.admin-page .admin-profile .person-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid rgba(116, 205, 250, .28);
  color: #fff;
  background: linear-gradient(145deg, #075b91, #1095da);
  box-shadow: 0 7px 17px rgba(4, 76, 120, .28);
  font-size: 11px;
}
.admin-page .admin-profile > div { min-width: 0; }
.admin-page .admin-profile b,
.admin-page .admin-profile small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-page .admin-profile b { color: #f4f9fc; font-size: 10.5px; }
.admin-page .admin-profile small { color: #7899aa; font-size: 8.5px; }
.admin-page .admin-profile small i {
  width: 5px;
  height: 5px;
  display: inline-block;
  margin-left: 3px;
  border-radius: 50%;
  background: #33c98d;
  box-shadow: 0 0 0 3px rgba(51, 201, 141, .1);
}
.admin-logout {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  color: #7899aa;
  background: rgba(255, 255, 255, .035);
  transition: .22s ease;
}
.admin-logout:hover {
  color: #ff9cac;
  border-color: rgba(239, 117, 139, .25);
  background: rgba(220, 76, 100, .1);
  transform: translateY(-1px);
}
.admin-menu-backdrop { display: none; }
.admin-page .admin-main {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #b7cbd7 transparent;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 88% 0, rgba(41, 158, 222, .07), transparent 25%),
    #f3f6f9;
}
.admin-page .admin-main::-webkit-scrollbar { width: 8px; }
.admin-page .admin-main::-webkit-scrollbar-track { background: transparent; }
.admin-page .admin-main::-webkit-scrollbar-thumb { border: 2px solid #f3f6f9; border-radius: 20px; background: #b7cbd7; }
.admin-page .admin-topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: 84px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(20px, 2.8vw, 38px);
  border-bottom: 1px solid rgba(189, 208, 219, .62);
  background: rgba(248, 250, 252, .9);
  box-shadow: 0 8px 25px rgba(0, 34, 56, .035);
  backdrop-filter: blur(18px) saturate(1.3);
}
.admin-topbar-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}
.admin-topbar-title > div { min-width: 0; }
.admin-topbar-title > div > span {
  display: block;
  margin-bottom: 1px;
  color: #0a78bc;
  font-size: 9px;
  font-weight: 800;
}
.admin-page .admin-topbar h1 {
  overflow: hidden;
  margin: 0;
  color: #071d2b;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-page .admin-topbar p { margin: 0; color: #708592; font-size: 9.5px; }
.admin-menu-toggle {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: none;
  place-items: center;
  border: 1px solid #d7e4eb;
  border-radius: 11px;
  color: #527080;
  background: #fff;
}
.admin-page .admin-top-actions { display: flex; align-items: center; gap: 8px; }
.admin-page .admin-icon-btn {
  width: 40px;
  height: 40px;
  border-color: #d7e4eb;
  color: #58707e;
  background: rgba(255, 255, 255, .85);
  transition: .22s ease;
}
.admin-page .admin-icon-btn:hover {
  color: #0877bd;
  border-color: #a9d2e9;
  box-shadow: 0 7px 18px rgba(0, 48, 79, .07);
  transform: translateY(-1px);
}
.admin-api-link {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid #d7e4eb;
  border-radius: 11px;
  color: #58707e;
  background: rgba(255, 255, 255, .85);
  transition: .22s ease;
}
.admin-api-link span { color: #0877bd; font-size: 10px; font-weight: 850; }
.admin-api-link small { font-size: 9px; }
.admin-api-link:hover { border-color: #a9d2e9; background: #fff; box-shadow: 0 7px 18px rgba(0, 48, 79, .07); transform: translateY(-1px); }
.admin-page .admin-view {
  width: 100%;
  max-width: 1600px;
  min-height: calc(100% - 84px);
  margin-inline: auto;
  padding: 25px clamp(20px, 2.8vw, 38px) 48px;
}
.admin-page .admin-view.admin-view-enter { animation: adminViewEnter .34s cubic-bezier(.2, .78, .25, 1) both; }

@keyframes adminGlow {
  from { opacity: .55; transform: translate3d(0, -12px, 0) scale(.9); }
  to { opacity: 1; transform: translate3d(23px, 14px, 0) scale(1.08); }
}
@keyframes adminViewEnter {
  from { opacity: 0; transform: translateY(9px); filter: blur(1.5px); }
  to { opacity: 1; transform: none; filter: none; }
}

@media (max-width: 1080px) and (min-width: 721px) {
  .admin-page .admin-shell { grid-template-columns: 92px minmax(0, 1fr); }
  .admin-page .admin-sidebar { padding-inline: 11px; }
  .admin-page .admin-brand { display: grid; place-items: center; padding-inline: 0; }
  .admin-page .admin-brand .brand { width: 62px; height: 46px; margin: 0; }
  .admin-page .admin-brand > div,
  .admin-nav-section,
  .admin-page .admin-nav button span,
  .admin-page .admin-nav button em,
  .admin-page .admin-profile > div { display: none; }
  .admin-page .admin-nav { padding-inline: 2px; }
  .admin-page .admin-nav button { min-height: 48px; justify-content: center; padding: 6px; }
  .admin-page .admin-nav button i { width: 35px; height: 35px; flex-basis: 35px; }
  .admin-page .admin-sidebar-foot { justify-content: center; padding-inline: 0; }
  .admin-page .admin-profile { flex: 0 0 auto; }
  .admin-page .admin-profile .person-avatar { width: 35px; height: 35px; flex-basis: 35px; }
  .admin-logout { position: absolute; bottom: 17px; left: 9px; width: 28px; height: 28px; border-radius: 8px; }
  .admin-logout svg { width: 14px; height: 14px; }
}

@media (max-width: 720px) {
  .admin-page .admin-shell { grid-template-columns: 1fr; }
  .admin-page .admin-sidebar {
    position: fixed;
    z-index: 450;
    top: 0;
    right: 0;
    width: min(310px, 88vw);
    height: 100vh;
    height: 100dvh;
    padding: 16px 14px;
    visibility: hidden;
    box-shadow: -20px 0 60px rgba(0, 12, 20, .34);
    transform: translateX(105%);
    transition: transform .3s cubic-bezier(.2, .75, .25, 1), visibility .3s;
  }
  .admin-menu-open .admin-sidebar {
    visibility: visible;
    transform: none;
  }
  .admin-page .admin-brand { padding-bottom: 14px; }
  .admin-page .admin-brand .brand { width: 140px; height: 70px; margin: -8px -2px -5px 0; }
  .admin-sidebar-close { display: grid; }
  .admin-page .admin-nav { padding-top: 10px; }
  .admin-nav-section { padding-top: 8px; }
  .admin-page .admin-nav button { min-height: 45px; }
  .admin-menu-backdrop {
    position: fixed;
    z-index: 440;
    inset: 0;
    display: block;
    visibility: hidden;
    border: 0;
    opacity: 0;
    background: rgba(0, 14, 23, .56);
    backdrop-filter: blur(3px);
    transition: opacity .25s ease, visibility .25s;
  }
  .admin-menu-open .admin-menu-backdrop { visibility: visible; opacity: 1; }
  .admin-page .admin-main { width: 100%; scrollbar-gutter: auto; }
  .admin-page .admin-topbar { min-height: 72px; padding: 9px 13px; }
  .admin-menu-toggle { display: grid; }
  .admin-page .admin-topbar h1 { max-width: 180px; font-size: 17px; }
  .admin-topbar-title > div > span,
  .admin-page .admin-topbar p,
  .admin-api-link small { display: none; }
  .admin-page .admin-icon-btn,
  .admin-api-link { min-height: 38px; height: 38px; }
  .admin-page .admin-icon-btn { width: 38px; }
  .admin-api-link { padding-inline: 10px; }
  .admin-page .admin-view { min-height: calc(100% - 72px); padding: 17px 13px 36px; }
  .admin-page .admin-card { border-radius: 15px; }
  .admin-page .admin-card-head { align-items: flex-start; flex-wrap: wrap; }
  .admin-page .admin-card-head > .btn { width: 100%; }
  .admin-page .admin-toolbar { align-items: stretch; flex-direction: column; }
  .admin-page .admin-toolbar .search-box { max-width: none; }
  .admin-page .admin-toolbar .btn { width: 100%; margin-right: 0; }
}

@media (max-width: 430px) {
  .admin-page .admin-topbar h1 { max-width: 145px; }
  .admin-page .admin-icon-btn { display: none; }
  .admin-api-link { width: 38px; justify-content: center; padding: 0; }
  .admin-page .admin-kpis { gap: 10px; }
  .admin-page .admin-kpi { padding: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .admin-page *,
  .admin-page *::before,
  .admin-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* Focused, calm authentication screens */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(430px, .9fr) minmax(500px, 1.1fr);
  background: #f6f9fb;
}
.auth-page .auth-visual {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(26px, 4vw, 58px);
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(42, 165, 225, .26), transparent 26%),
    radial-gradient(circle at 16% 92%, rgba(24, 102, 161, .42), transparent 30%),
    linear-gradient(145deg, #01070b, #003453 60%, #087bc9);
}
.auth-page .auth-visual::before {
  width: 610px;
  height: 610px;
  left: -330px;
  bottom: -390px;
  border: 46px solid rgba(82, 188, 237, .16);
  box-shadow: 0 0 0 45px rgba(82, 188, 237, .045), 0 0 0 90px rgba(82, 188, 237, .025);
  animation: authOrbit 16s linear infinite;
}
.auth-page .auth-visual::after {
  width: 460px;
  height: 460px;
  right: -250px;
  top: -250px;
  background: rgba(61, 180, 236, .16);
}
.auth-visual-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.auth-page .auth-visual .brand {
  width: 178px;
  height: 86px;
}
.auth-page .auth-visual .brand-mark { background-image: url("/assets/mana-brand-white.png"); }
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b7d9e8;
  font-size: 10px;
  transition: color .2s ease, transform .2s ease;
}
.auth-back:hover { color: #fff; transform: translateX(-2px); }
.auth-back span { font-size: 16px; }
.auth-page .auth-message {
  position: relative;
  z-index: 2;
  max-width: 590px;
  margin-top: auto;
  margin-bottom: auto;
  padding-block: 50px;
}
.auth-page .auth-message .eyebrow { color: #8ed7f9; }
.auth-page .auth-message .eyebrow::before { background: #52bceb; box-shadow: 0 0 0 5px rgba(82, 188, 235, .12); }
.auth-page .auth-message h1 {
  max-width: 580px;
  margin: 14px 0 12px;
  color: #fff;
  font-size: clamp(30px, 4vw, 49px);
  line-height: 1.55;
  letter-spacing: -.9px;
}
.auth-page .auth-message p {
  max-width: 520px;
  margin: 0;
  color: #c0d7e2;
  font-size: 14px;
  line-height: 2.15;
}
.auth-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 27px;
}
.auth-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d3e7ef;
  font-size: 10px;
}
.auth-benefits i {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(117, 209, 248, .28);
  border-radius: 50%;
  color: #a8e4fc;
  background: rgba(70, 184, 236, .13);
  font-style: normal;
  font-size: 11px;
}
.auth-copyright {
  position: relative;
  z-index: 2;
  color: #86aebf;
  font-size: 9px;
}
.auth-page .auth-form-wrap {
  min-width: 0;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 72px);
  background:
    radial-gradient(circle at 65% 7%, rgba(33, 150, 216, .06), transparent 24%),
    #f7fafc;
}
.auth-page .auth-card {
  width: min(440px, 100%);
  padding: 34px 36px 28px;
  border: 1px solid #e0eaf0;
  border-radius: 22px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 24px 70px rgba(0, 39, 63, .08);
  animation: authCardEnter .45s cubic-bezier(.2, .78, .25, 1) both;
}
.auth-card-heading {
  display: flex;
  align-items: center;
  gap: 11px;
}
.auth-card-heading > div > span {
  display: block;
  margin-bottom: 1px;
  color: #0878c1;
  font-size: 9.5px;
  font-weight: 800;
}
.auth-page .auth-card h2 {
  margin: 0;
  color: #0a2433;
  font-size: 27px;
  line-height: 1.45;
}
.auth-form-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #05669f, #0b91d4);
  box-shadow: 0 8px 18px rgba(7, 119, 191, .22);
  font-style: normal;
  font-size: 20px;
}
.auth-card-lead {
  margin: 8px 0 25px;
  color: #758b98;
  font-size: 11px;
  line-height: 1.9;
}
.auth-page .form-grid { gap: 14px; }
.auth-page .form-group { gap: 6px; }
.auth-page .form-group label { color: #314d5b; font-size: 11px; }
.auth-page .form-control {
  padding: 12px 13px;
  border-color: #dce7ed;
  border-radius: 11px;
  background: #fff;
  font-size: 12px;
}
.auth-page .form-control::placeholder { color: #a4b3bb; }
.auth-page .form-control:focus {
  border-color: #55add9;
  box-shadow: 0 0 0 4px rgba(61, 171, 224, .11);
}
.auth-page .auth-submit {
  min-height: 46px;
  width: 100%;
  border-radius: 11px;
  font-size: 12px;
}
.auth-submit span { margin-right: 5px; font-size: 16px; }
.otp-group[hidden] { display: none; }
.otp-group {
  padding: 15px;
  border: 1px solid #b9ddf2;
  border-radius: 14px;
  background: linear-gradient(135deg, #f3faff, #fff);
}
.otp-input {
  direction: ltr;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 9px;
}
.otp-resend {
  appearance: none;
  border: 0;
  padding: 0 4px;
  background: transparent;
  color: var(--primary, #0878bd);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.otp-resend:disabled { color: var(--muted); cursor: default; }
.auth-field-label { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:7px; }
.auth-field-label label { margin:0 !important; }
.auth-field-label a { color:#0878c1; font-size:11px; font-weight:750; }
.auth-field-label a:hover { color:#045b93; }
.password-reset-fields[hidden] { display:none; }
.password-reset-fields { display:grid; gap:14px; }
.reset-mobile-summary { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 12px; border:1px solid #cfe4ef; border-radius:11px; color:#526f7e; background:#f2f9fc; font-size:11px; }
.reset-mobile-summary b { color:#064f7b; }
.reset-mobile-summary button { padding:0; border:0; color:#0878c1; background:transparent; font-size:10px; font-weight:800; cursor:pointer; }
.password-reset-success { padding:12px 0 3px; text-align:center; }
.password-reset-success > .icon { width:62px; height:62px; padding:16px; border-radius:50%; color:#fff; background:linear-gradient(145deg,#119568,#2bb886); box-shadow:0 14px 32px rgba(17,149,104,.22); }
.password-reset-success h2 { margin:18px 0 7px; }
.password-reset-success p { margin:0 0 20px; color:var(--muted); line-height:1.9; }
.password-reset-success .btn { min-width:180px; }
.settings-divider { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.sms-checkline { display: flex; align-items: center; gap: 9px; margin: 14px 0; color: var(--ink); font-weight: 700; }
.sms-checkline input { width: 18px; height: 18px; accent-color: var(--primary, #0878bd); }
.sms-diagnostics { display: grid; gap: 5px; margin: 14px 0 18px; padding: 13px 15px; border: 1px solid #cfe2ee; border-radius: 12px; background: #f4faff; }
.sms-diagnostics b { color: var(--ink); }
.sms-diagnostics span { overflow-wrap: anywhere; color: var(--muted); font-size: 12px; }
.auth-page .form-error { min-height: 18px; margin-top: -1px; font-size: 10px; }
.auth-page .auth-switch {
  margin: 20px 0 0;
  color: #78909d;
  text-align: center;
  font-size: 10px;
}
.auth-page .auth-switch .text-link { color: #0878c1; }
.auth-page .demo-accounts {
  margin-top: 19px;
  padding: 11px 13px;
  border: 1px solid #e1edf2;
  border-radius: 11px;
  color: #738b98;
  background: #f7fbfd;
  font-size: 10px;
}
.auth-page .demo-accounts summary {
  color: #567382;
  cursor: pointer;
  font-weight: 700;
}
.auth-page .demo-accounts[open] summary { margin-bottom: 8px; }
.auth-page .demo-account {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  direction: ltr;
}
.auth-page .demo-account code {
  padding: 2px 5px;
  border-radius: 5px;
  color: #0878c1;
  background: #e8f4fa;
  font-family: "Vazirmatn", monospace;
  font-size: 9px;
}
.auth-page .muted { font-size: 9px; }
/* Data-backed admin activity chart */
.admin-page .admin-chart {
  height: 218px;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  gap: 10px;
  padding: 18px 8px 24px;
  border-bottom: 1px solid #e5eef2;
}
.admin-chart-day {
  min-width: 27px;
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  gap: 5px;
}
.admin-chart-day::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 25px;
  left: 0;
  height: 1px;
  background: #edf3f6;
}
.admin-chart-bars {
  position: relative;
  z-index: 1;
  width: min(68px, 82%);
  height: 155px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
}
.admin-chart-bars i {
  position: relative;
  z-index: 1;
  width: min(17px, 30%);
  min-height: 7px;
  display: block;
  flex: 1 1 0;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(to top, #045b91, #18a0df);
  box-shadow: 0 5px 12px rgba(8, 123, 201, .14);
  transform-origin: bottom;
  animation: chartBarIn .55s cubic-bezier(.2, .8, .2, 1) both;
  transition: filter .2s ease, transform .2s ease;
}
.admin-chart-bars i.enroll { background: linear-gradient(to top, #045b91, #18a0df); }
.admin-chart-bars i.complete { background: linear-gradient(to top, #1a9276, #42c7a4); }
.admin-chart-bars i.quiz { background: linear-gradient(to top, #c8781e, #f0ad58); }
.admin-chart-day:hover .admin-chart-bars i { filter: brightness(1.1); transform: scaleX(1.08); }
.admin-chart-day small { position: relative; z-index: 1; color: #7a919d; font-size: 9px; }
.admin-chart-day b { position: absolute; bottom: 29px; color: #466a7b; font-size: 9px; opacity: 0; transition: opacity .2s ease; }
.admin-chart-day:hover b { opacity: 1; }
.chart-total {
  padding: 4px 8px;
  border-radius: 999px;
  color: #0877bd;
  background: #e7f4fb;
  font-size: 9px;
  font-weight: 750;
}
.admin-chart-legend {
  display: flex;
  gap: 16px;
  padding-top: 11px;
  color: #78909d;
  font-size: 9px;
}
.admin-chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.admin-chart-legend i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #0b83c8; }
.admin-chart-legend i.complete { background: #39b899; }
.admin-chart-legend i.quiz { background: #f0a74a; }
.chart-empty { width: 100%; display: grid; align-content: center; justify-items: center; gap: 5px; color: #8297a2; font-size: 10px; text-align: center; }
.chart-empty strong { color: #587684; font-size: 11px; }
.chart-empty span { color: #8aa0aa; font-size: 9px; }
.admin-permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 11px;
  border: 1px solid #e1edf2;
  border-radius: 12px;
  background: #f8fbfd;
}
.admin-permission-grid .check-row {
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid #e5eef2;
  border-radius: 9px;
  background: #fff;
  font-size: 10px;
}
.notice-box {
  padding: 12px 13px;
  border: 1px solid #cce8f5;
  border-radius: 10px;
  color: #166a8f;
  background: #eef9fd;
  font-size: 11px;
  line-height: 1.9;
}
@media (max-width: 560px) {
  .admin-permission-grid { grid-template-columns: 1fr; }
}
@keyframes chartBarIn { from { opacity: .1; transform: scaleY(.05); } to { opacity: 1; transform: scaleY(1); } }
@media (max-width: 720px) {
  .admin-page .admin-chart { height: 190px; gap: 5px; padding-inline: 2px; }
  .admin-chart-bars { width: min(49px, 88%); height: 130px; gap: 2px; }
  .admin-chart-bars i { width: min(12px, 30%); }
  .admin-chart-legend { gap: 9px; font-size: 8px; }
}
@keyframes authCardEnter {
  from { opacity: 0; transform: translateY(13px); filter: blur(2px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes authOrbit { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-page .auth-visual { min-height: 355px; padding: 24px 28px; }
  .auth-page .auth-message { padding-block: 22px; }
  .auth-page .auth-message h1 { max-width: 600px; font-size: 33px; }
  .auth-page .auth-message p { max-width: 570px; font-size: 12px; }
  .auth-page .auth-form-wrap { min-height: calc(100vh - 355px); padding: 34px 22px 48px; }
}
@media (max-width: 520px) {
  .auth-page .auth-visual { min-height: 286px; padding: 17px 18px; }
  .auth-page .auth-visual .brand { width: 132px; height: 62px; }
  .auth-back { font-size: 9px; }
  .auth-page .auth-message { padding-block: 10px; }
  .auth-page .auth-message h1 { margin-top: 9px; font-size: 27px; }
  .auth-page .auth-message p { font-size: 11px; }
  .auth-benefits { gap: 6px 12px; margin-top: 16px; }
  .auth-benefits span { font-size: 9px; }
  .auth-copyright { font-size: 8px; }
  .auth-page .auth-form-wrap { min-height: calc(100vh - 286px); padding: 24px 14px 35px; }
  .auth-page .auth-card { padding: 25px 19px 21px; border-radius: 18px; }
  .auth-page .auth-card h2 { font-size: 24px; }
  .auth-card-lead { margin-bottom: 20px; }
}
/* Portrait/tablet auth layout: keep the visual calm and let the form lead. */
@media (max-width: 900px) and (orientation: portrait) {
  .auth-page .auth-visual {
    min-height: 300px;
    padding: 16px 24px 18px;
  }
  .auth-page .auth-visual::before {
    width: 430px;
    height: 430px;
    left: -255px;
    bottom: -310px;
    border-width: 30px;
    box-shadow: 0 0 0 28px rgba(82, 188, 237, .045), 0 0 0 56px rgba(82, 188, 237, .025);
  }
  .auth-page .auth-visual::after {
    width: 300px;
    height: 300px;
    right: -180px;
    top: -190px;
  }
  .auth-page .auth-visual .brand {
    width: 132px;
    height: 62px;
  }
  .auth-back {
    gap: 4px;
    font-size: 9px;
  }
  .auth-page .auth-message {
    max-width: 620px;
    padding-block: 7px 10px;
  }
  .auth-page .auth-message .eyebrow {
    font-size: 9px;
  }
  .auth-page .auth-message h1 {
    max-width: 600px;
    margin: 7px 0 5px;
    font-size: clamp(22px, 4.8vw, 29px);
    line-height: 1.42;
    letter-spacing: -.35px;
  }
  .auth-page .auth-message p {
    max-width: 580px;
    font-size: 11px;
    line-height: 1.75;
  }
  .auth-benefits {
    gap: 5px 13px;
    margin-top: 11px;
  }
  .auth-benefits span {
    gap: 4px;
    font-size: 8.5px;
  }
  .auth-benefits i {
    width: 16px;
    height: 16px;
    font-size: 9px;
  }
  .auth-copyright { font-size: 8px; }
  .auth-page .auth-form-wrap {
    min-height: calc(100vh - 300px);
  }
}
@media (max-width: 620px) and (orientation: portrait) {
  .auth-page .auth-visual {
    min-height: 264px;
    padding-inline: 18px;
  }
  .auth-page .auth-message h1 {
    max-width: 430px;
    font-size: 25px;
  }
  .auth-page .auth-message p { font-size: 10px; }
  .auth-benefits { display: none; }
  .auth-page .auth-form-wrap {
    min-height: calc(100vh - 264px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .auth-page *,
  .auth-page *::before,
  .auth-page *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* Admin usability helpers */
.admin-nav-search {
  min-height: 39px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 3px 0;
  padding: 0 10px;
  border: 1px solid rgba(115, 178, 211, .13);
  border-radius: 11px;
  color: #66889a;
  background: rgba(255, 255, 255, .045);
  transition: .2s ease;
}
.admin-nav-search:focus-within {
  color: #b9e6fb;
  border-color: rgba(75, 184, 240, .32);
  background: rgba(12, 116, 180, .11);
  box-shadow: 0 0 0 3px rgba(33, 151, 215, .07);
}
.admin-nav-search svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}
.admin-nav-search input {
  width: 100%;
  min-width: 0;
  padding: 8px 0;
  border: 0;
  outline: 0;
  color: #eaf7fd;
  background: transparent;
  font-size: 9.5px;
}
.admin-nav-search input::placeholder { color: #648294; }
.admin-nav-search input::-webkit-search-cancel-button { filter: invert(1); opacity: .45; }
.admin-nav-empty {
  margin: 8px;
  padding: 14px 9px;
  border: 1px dashed rgba(129, 187, 217, .2);
  border-radius: 10px;
  color: #7393a4;
  text-align: center;
  font-size: 9px;
}
.admin-quick-actions { position: relative; }
.admin-quick-toggle {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(100deg, #03598f, #0b88cf);
  box-shadow: 0 8px 20px rgba(4, 103, 165, .2);
  font-size: 10px;
  font-weight: 750;
  transition: .2s ease;
}
.admin-quick-toggle:hover,
.admin-quick-toggle[aria-expanded="true"] {
  background: linear-gradient(100deg, #034c79, #0878ba);
  box-shadow: 0 11px 25px rgba(4, 103, 165, .28);
  transform: translateY(-1px);
}
.admin-quick-toggle span { font-size: 15px; line-height: 1; }
.admin-quick-menu {
  position: absolute;
  z-index: 90;
  top: calc(100% + 10px);
  left: 0;
  width: 280px;
  display: none;
  gap: 5px;
  padding: 13px;
  border: 1px solid #d9e6ed;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(0, 30, 50, .18);
  transform-origin: top left;
}
.admin-quick-menu.open { display: grid; animation: adminQuickOpen .2s ease-out both; }
.admin-quick-menu > b { padding: 2px 5px 8px; color: #254757; font-size: 10px; }
.admin-quick-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 0;
  border-radius: 11px;
  text-align: right;
  color: #244555;
  background: transparent;
  transition: .18s ease;
}
.admin-quick-menu button:hover { color: #056cae; background: #edf7fc; transform: translateX(-2px); }
.admin-quick-menu button > i {
  width: 33px;
  height: 33px;
  flex: 0 0 33px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #0877bd;
  background: #e4f2fa;
  font-style: normal;
}
.admin-quick-menu button span,
.admin-quick-menu button small { display: block; }
.admin-quick-menu button span { font-size: 10px; font-weight: 750; }
.admin-quick-menu button small { margin-top: 1px; color: #7a8f9b; font-size: 8.5px; font-weight: 400; }
.admin-welcome {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(520px, 1.28fr);
  align-items: center;
  gap: 28px;
  overflow: hidden;
  margin-bottom: 15px;
  padding: 24px 26px;
  border-radius: 19px;
  color: #fff;
  background:
    radial-gradient(circle at 8% 15%, rgba(56, 176, 235, .24), transparent 28%),
    linear-gradient(105deg, #010b12, #00436b 58%, #087bc2);
  box-shadow: 0 16px 40px rgba(0, 43, 70, .13);
}
.admin-welcome::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -90px;
  left: -65px;
  width: 210px;
  height: 210px;
  border: 35px solid rgba(255, 255, 255, .055);
  border-radius: 50%;
}
.admin-welcome-copy > span { color: #71c8f4; font-size: 9.5px; font-weight: 750; }
.admin-welcome-copy h2 { margin: 4px 0 3px; color: #fff; font-size: 19px; }
.admin-welcome-copy p { margin: 0; color: #b9d1de; font-size: 9.5px; }
.admin-start-steps {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}
.admin-start-steps > em { color: #75b9da; font-style: normal; }
.admin-start-steps button {
  min-width: 145px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  text-align: right;
  color: #fff;
  background: rgba(255, 255, 255, .075);
  backdrop-filter: blur(8px);
  transition: .2s ease;
}
.admin-start-steps button:hover {
  border-color: rgba(125, 211, 252, .32);
  background: rgba(255, 255, 255, .13);
  transform: translateY(-2px);
}
.admin-start-steps button > i {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #034d7b;
  background: #bfe9fc;
  font-style: normal;
  font-size: 11px;
  font-weight: 850;
}
.admin-start-steps button span,
.admin-start-steps button b,
.admin-start-steps button small { display: block; }
.admin-start-steps button b { color: #fff; font-size: 10px; }
.admin-start-steps button small { color: #9fc3d5; font-size: 8px; }
.admin-attention-list .quick-item { width: 100%; border: 1px solid #e8eff3; text-align: right; }
.admin-attention-list .quick-item > div { min-width: 0; flex: 1; }
.admin-attention-list .quick-item > em { color: #7b909e; font-style: normal; font-size: 17px; }
.settings-tabs {
  position: sticky;
  z-index: 12;
  top: 96px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px;
  border: 1px solid #dbe7ed;
  border-radius: 16px;
  background: rgba(248, 251, 252, .92);
  box-shadow: 0 9px 28px rgba(0, 38, 62, .06);
  backdrop-filter: blur(14px);
}
.settings-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  text-align: right;
  color: #617984;
  background: transparent;
  transition: .2s ease;
}
.settings-tabs button:hover { color: #0875b8; background: #eef7fc; }
.settings-tabs button.active {
  color: #fff;
  border-color: #0877bf;
  background: linear-gradient(100deg, #03598f, #0b88cf);
  box-shadow: 0 8px 20px rgba(4, 103, 165, .2);
}
.settings-tabs button > i {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #0877bd;
  background: #e4f2fa;
  font-style: normal;
}
.settings-tabs button.active > i { color: #fff; background: rgba(255, 255, 255, .15); }
.settings-tabs button span,
.settings-tabs button small { display: block; }
.settings-tabs button span { font-size: 10px; font-weight: 750; }
.settings-tabs button small { margin-top: 1px; color: #8598a2; font-size: 8px; font-weight: 400; }
.settings-tabs button.active small { color: #c3e2f1; }
[data-settings-panel][hidden] { display: none !important; }
.content-manager { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 16px; align-items: start; }
.content-page-nav { position: sticky; top: 185px; display: grid; gap: 5px; padding: 10px; border: 1px solid #dbe7ed; border-radius: 18px; background: #fff; box-shadow: 0 12px 35px rgba(0, 43, 70, .06); }
.content-page-nav-head { padding: 9px 10px 12px; border-bottom: 1px solid #e5edf1; }
.content-page-nav-head span, .content-page-nav-head b { display: block; }
.content-page-nav-head span { color: #0877bd; font-size: 9px; font-weight: 800; }
.content-page-nav-head b { margin-top: 3px; color: #274553; font-size: 11px; }
.content-page-nav button { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 8px; border: 1px solid transparent; border-radius: 11px; color: #526d7a; background: transparent; text-align: right; transition: .18s ease; }
.content-page-nav button:hover { color: #086da9; background: #f0f8fc; }
.content-page-nav button.active { color: #fff; border-color: #0878bd; background: linear-gradient(105deg, #045c91, #0c8bd1); box-shadow: 0 8px 18px rgba(5, 104, 165, .18); }
.content-page-nav button > i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: #0875b7; background: #e8f5fb; font-style: normal; font-weight: 850; }
.content-page-nav button.active > i { color: #fff; background: rgba(255,255,255,.15); }
.content-page-nav button span, .content-page-nav button b, .content-page-nav button small { min-width: 0; display: block; }
.content-page-nav button b { font-size: 10.5px; }
.content-page-nav button small { margin-top: 2px; overflow: hidden; color: #8a9da6; font-size: 8px; font-weight: 400; white-space: nowrap; text-overflow: ellipsis; }
.content-page-nav button.active small { color: #c5e4f3; }
.content-page-nav button em { color: #9bb0ba; font-style: normal; font-size: 17px; }
.content-page-nav button.active em { color: #fff; }
.content-editor { min-width: 0; padding: 0; overflow: hidden; }
.content-page-panel { min-height: 480px; padding: 24px; }
.content-page-panel[hidden] { display: none !important; }
.content-page-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid #e4edf2; }
.content-page-head span { color: #0875b7; font-size: 9px; font-weight: 800; }
.content-page-head h2 { margin: 3px 0; color: #153441; font-size: 19px; }
.content-page-head p { margin: 0; color: #81949e; font-size: 9.5px; }
.content-fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.content-fields-grid .content-field:has(textarea) { grid-column: 1 / -1; }
.content-fields-grid textarea { min-height: 105px; line-height: 1.9; }
.content-fields-grid .site-image-field { grid-column:1 / -1; }
.site-image-control { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px; }
.site-image-field > small { color:#78909c; font-size:10px; }
.site-image-preview { width:min(560px,100%); overflow:hidden; border:1px solid #d9e7ed; border-radius:16px; background:#edf5f8; aspect-ratio:16/9; box-shadow:0 12px 28px rgba(0,41,65,.08); }
.site-image-preview img { width:100%; height:100%; display:block; object-fit:cover; }
.process-steps-editor { margin-top: 22px; padding-top: 20px; border-top: 1px solid #e4edf2; }
.process-steps-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.process-steps-editor-head span { display: block; color: #153441; font-size: 14px; font-weight: 850; }
.process-steps-editor-head p { margin: 4px 0 0; color: #78909c; font-size: 9.5px; }
.process-steps-editor-list { display: grid; gap: 10px; }
.process-step-editor { display: grid; grid-template-columns: 68px minmax(180px, .8fr) minmax(260px, 1.4fr) 38px; align-items: end; gap: 11px; padding: 13px; border: 1px solid #dfeaf0; border-radius: 15px; background: linear-gradient(110deg, #fbfdfe, #f5fafc); }
.process-step-editor .form-group { margin: 0; }
.process-step-editor textarea { min-height: 42px; resize: vertical; }
.process-step-order { display: flex; align-items: center; gap: 7px; align-self: center; }
.process-step-order > i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #03669f, #0b8fd5); font-style: normal; font-weight: 850; }
.process-step-order > div { display: grid; gap: 3px; }
.process-step-order button, .process-step-delete { width: 27px; height: 22px; display: grid; place-items: center; padding: 0; border: 1px solid #d5e5ec; border-radius: 7px; color: #55737f; background: #fff; transition: .18s ease; }
.process-step-order button:hover:not(:disabled) { color: #0875b7; border-color: #9fd2eb; background: #edf8fd; }
.process-step-delete { width: 38px; height: 38px; align-self: center; color: #c94c55; }
.process-step-delete svg { width: 16px; height: 16px; }
.process-step-delete:hover:not(:disabled) { color: #fff; border-color: #d85e67; background: #d85e67; }
.process-step-order button:disabled, .process-step-delete:disabled { opacity: .35; cursor: not-allowed; }
.process-steps-hint { display: block; margin-top: 9px; color: #8799a2; font-size: 9px; }
.content-editor-actions { position: sticky; z-index: 4; bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 14px 24px; border-top: 1px solid #dce8ee; background: rgba(250,252,253,.96); box-shadow: 0 -10px 28px rgba(0,41,68,.06); backdrop-filter: blur(12px); }
.content-editor-actions b, .content-editor-actions small { display: block; }
.content-editor-actions b { color: #284653; font-size: 10.5px; }
.content-editor-actions small { margin-top: 2px; color: #8598a1; font-size: 8.5px; }
.content-editor-actions .form-error { margin: 0; }
.settings-commerce { display: grid; gap: 16px; }
.blog-admin-tabs { position: sticky; z-index: 11; top: 96px; display: flex; gap: 6px; margin-bottom: 15px; padding: 7px; border: 1px solid #dbe7ed; border-radius: 15px; background: rgba(248,251,252,.94); box-shadow: 0 8px 24px rgba(0,43,70,.06); backdrop-filter: blur(12px); }
.blog-admin-tabs button { min-height: 39px; padding: 8px 18px; border: 0; border-radius: 10px; color: #617984; background: transparent; font-weight: 750; }
.blog-admin-tabs button.active { color: #fff; background: linear-gradient(100deg,#03598f,#0b88cf); box-shadow: 0 7px 17px rgba(4,103,165,.2); }
.blog-admin-panel { display: none; }
.blog-admin-panel.active { display: block; }
.blog-editor-panel { padding: 0; overflow: hidden; }
.blog-builder { display: grid; gap: 15px; padding: 20px; }
.blog-builder-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 4px 2px 17px; border-bottom: 1px solid #e2ebf0; }
.blog-builder-head span, .blog-builder-head h2, .blog-builder-head p { display: block; margin: 0; }
.blog-builder-head span { color: #0877bd; font-size: 9px; font-weight: 800; }
.blog-builder-head h2 { margin-top: 3px; font-size: 20px; }
.blog-builder-head p { margin-top: 3px; color: #81939c; font-size: 9px; }
.blog-editor-section { display: grid; gap: 13px; padding: 19px; border: 1px solid #dfeaf0; border-radius: 17px; background: #f9fbfc; }
.blog-editor-section > h3, .blog-editor-section .admin-card-head h3 { margin: 0; color: #153642; font-size: 15px; }
.blog-editor-section .admin-card-head { margin-bottom: 0; }
.blog-ai-panel { border-color: #bfe2f4; background: linear-gradient(145deg,rgba(12,139,209,.08),#f9fbfc 58%); }
.blog-ai-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.blog-ai-mode { min-width: 0; display: grid; align-content: start; gap: 9px; padding: 14px; border: 1px solid #dce9ef; border-radius: 14px; background: #fff; }
.blog-ai-mode > b { color: #173946; font-size: 11px; }
.blog-ai-mode .btn { justify-self: start; }
.blog-ai-topic-mode { grid-column: 1/-1; }
.blog-ai-topic-controls { display: grid; grid-template-columns: minmax(220px,1fr) 145px auto; align-items: end; gap: 8px; }
.blog-ai-note { display: block; padding: 9px 11px; border: 1px solid #f1ddb0; border-radius: 10px; color: #82611b; background: #fff9eb; font-size: 9px; line-height: 1.8; }
.blog-topic-results { display: grid; gap: 10px; }
.blog-topic-notice { margin: 0; padding: 9px 11px; border: 1px solid #dce9ef; border-radius: 10px; color: #718892; background: #f8fbfc; font-size: 9px; }
.blog-topic-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.blog-topic-cards article { display: grid; align-content: start; gap: 8px; padding: 14px; border: 1px solid #dce8ee; border-radius: 13px; background: #fff; }
.blog-topic-cards h4, .blog-topic-cards p, .blog-topic-cards ul { margin: 0; }
.blog-topic-cards h4 { font-size: 13px; line-height: 1.8; }
.blog-topic-cards article > b { color: #0875b7; font-size: 10px; }
.blog-topic-cards p, .blog-topic-cards li { color: #6f858f; font-size: 9px; line-height: 1.9; }
.blog-upload-row, .blog-repeat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.blog-upload-row small { color: #82959e; font-size: 9px; }
.blog-cover-preview { width: min(480px,100%); overflow: hidden; border: 1px solid #d9e7ed; border-radius: 14px; background: #eef5f8; aspect-ratio: 16/9; }
.blog-cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.blog-image-prompt { display: grid; gap: 10px; padding: 14px; border: 1px dashed #b9d8e7; border-radius: 13px; background: #f2f9fc; }
.blog-repeat-list { display: grid; gap: 8px; }
.blog-repeat-row { display: grid; grid-template-columns: minmax(180px,.8fr) minmax(260px,1.4fr) auto; gap: 8px; align-items: start; }
.blog-repeat-row textarea { min-height: 74px; }
.blog-repeat-row .btn-danger { min-height: 42px; color: #b84242; border: 1px solid #f0cccc; background: #fff1f1; }
.blog-markdown-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid #dce8ee; border-radius: 12px; background: #fff; }
.blog-markdown-toolbar button { min-height: 34px; padding: 5px 11px; border: 1px solid #d6e5ec; border-radius: 8px; color: #305463; background: #f7fafb; font-size: 9.5px; }
.blog-article-editor { min-height: 440px; direction: rtl; line-height: 2; resize: vertical; }
.blog-seo-audit { background: #fff; }
.blog-seo-audit [data-seo-score] { color: #0877bd; font-size: 24px; }
.blog-score-track { height: 8px; overflow: hidden; border-radius: 99px; background: #e5eef2; }
.blog-score-track span { width: 0; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,#efb23a,#16a57a); transition: width .25s; }
.blog-seo-checks { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.blog-seo-checks span { padding: 8px 10px; border: 1px solid #e1eaf0; border-radius: 10px; color: #7d9099; background: #f9fbfc; font-size: 9.5px; }
.blog-seo-checks span.ok { color: #087b5c; border-color: #bfe6d9; background: #edf9f5; }
.blog-seo-checks span.warn { color: #9a6700; }
.blog-publish-bar { position: sticky; z-index: 5; bottom: 0; display: flex; align-items: center; gap: 16px; padding: 14px 18px; border: 1px solid #dce8ee; border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: 0 -9px 24px rgba(0,42,68,.07); backdrop-filter: blur(12px); }
.blog-publish-bar .form-error { flex: 1; margin: 0; }
.blog-category-form { display: grid; grid-template-columns: minmax(220px,1fr) minmax(130px,180px) auto; align-items: end; gap: 10px; }
.blog-category-list { display: grid; gap: 8px; margin-top: 17px; }
.blog-category-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border: 1px solid #e0eaef; border-radius: 12px; background: #f8fafb; }
.blog-category-row b, .blog-category-row small { display: block; }
.blog-category-row small { margin-top: 3px; color: #82949d; font-size: 9px; }
.admin-page .row-actions button[title] { position: relative; }
.admin-page .data-table-wrap { scrollbar-width: thin; scrollbar-color: #b7cbd7 #f3f7f9; }
.lesson-order-cell { display: flex; align-items: center; gap: 8px; }
.lesson-drag-handle { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #cbdde7; border-radius: 8px; color: #5c7888; background: #f7fafc; cursor: grab; font-weight: 800; letter-spacing: -3px; }
.lesson-drag-handle:active { cursor: grabbing; }
.lesson-order-table tr[draggable="true"] { transition: opacity .15s ease, background-color .15s ease, box-shadow .15s ease; }
.lesson-order-table tr.lesson-dragging { opacity: .48; background: #e8f5fc; box-shadow: inset 3px 0 #0b87cc; }
.lesson-order-saving { opacity: .7; pointer-events: none; }
.row-actions button:disabled { opacity: .35; cursor: not-allowed; }

@keyframes adminQuickOpen {
  from { opacity: 0; transform: translateY(-5px) scale(.98); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1240px) {
  .admin-welcome { grid-template-columns: 1fr; }
  .admin-start-steps { justify-content: flex-start; }
}

@media (max-width: 1080px) and (min-width: 721px) {
  .admin-nav-search { display: none; }
  .admin-welcome { padding: 21px; }
  .admin-start-steps button { min-width: 0; flex: 1; }
}

@media (max-width: 720px) {
  .admin-nav-search { display: flex; }
  .admin-page .admin-top-actions { gap: 6px; }
  .admin-quick-toggle { width: 38px; min-height: 38px; justify-content: center; padding: 0; font-size: 0; }
  .admin-quick-toggle span { font-size: 18px; }
  .admin-quick-menu {
    position: fixed;
    top: 78px;
    right: 12px;
    left: 12px;
    width: auto;
    transform-origin: top center;
  }
  .admin-welcome {
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 20px 17px;
  }
  .admin-welcome-copy h2 { font-size: 17px; }
  .admin-start-steps {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-start-steps > em { display: none; }
  .admin-start-steps button { width: 100%; min-width: 0; }
  .settings-tabs {
    top: 80px;
    grid-template-columns: repeat(4, minmax(108px, 1fr));
    overflow-x: auto;
    padding: 6px;
  }
  .settings-tabs button { min-width: 108px; padding-inline: 8px; }
  .settings-tabs button small { display: none; }
  .content-manager { grid-template-columns: 1fr; }
  .content-page-nav { position: static; display: flex; overflow-x: auto; padding: 7px; }
  .content-page-nav-head { display: none; }
  .content-page-nav button { flex: 0 0 138px; grid-template-columns: 30px minmax(0, 1fr); }
  .content-page-nav button > i { width: 30px; height: 30px; }
  .content-page-nav button em, .content-page-nav button small { display: none; }
  .content-page-panel { min-height: 0; padding: 18px 14px; }
  .content-page-head { align-items: flex-start; }
  .content-page-head .btn { flex: 0 0 auto; padding-inline: 10px; font-size: 9px; }
  .content-fields-grid { grid-template-columns: 1fr; }
  .content-fields-grid .content-field:has(textarea) { grid-column: auto; }
  .site-image-control { grid-template-columns:1fr; }
  .site-image-control .btn { width:100%; }
  .process-steps-editor-head { align-items: flex-start; }
  .process-step-editor { grid-template-columns: 58px minmax(0, 1fr) 36px; align-items: start; }
  .process-step-editor .process-step-description { grid-column: 2 / -1; }
  .process-step-delete { grid-column: 3; grid-row: 1; }
  .content-editor-actions { grid-template-columns: 1fr auto; padding: 12px 14px; }
  .content-editor-actions .form-error { grid-column: 1 / -1; grid-row: 1; }
  .content-editor-actions > div:first-child { display: none; }
  .blog-admin-tabs { top: 80px; overflow-x: auto; }
  .blog-admin-tabs button { flex: 0 0 auto; }
  .blog-builder { padding: 12px; }
  .blog-ai-grid, .blog-ai-topic-controls, .blog-topic-cards, .blog-category-form { grid-template-columns: 1fr; }
  .blog-ai-mode .btn, .blog-ai-topic-controls .btn, .blog-category-form .btn { width: 100%; }
  .blog-editor-section { padding: 14px; }
  .blog-repeat-row, .blog-seo-checks { grid-template-columns: 1fr; }
  .blog-publish-bar { align-items: stretch; flex-direction: column; }
  .admin-page .data-table-wrap::before {
    content: "برای دیدن ستون‌های بیشتر، جدول را به چپ و راست بکشید";
    position: sticky;
    right: 0;
    width: max-content;
    display: block;
    margin-bottom: 8px;
    padding: 5px 9px;
    border-radius: 7px;
    color: #66818f;
    background: #eef6fa;
    font-size: 8.5px;
  }
}

/* Cascade-safe mobile fixes for the admin and authentication sections. */
@media (max-width: 760px) {
  .admin-page .admin-main { min-width: 0; }
  .admin-page .admin-view { padding-bottom: calc(34px + env(safe-area-inset-bottom)); }
  .admin-page .data-table-wrap { max-width: 100%; -webkit-overflow-scrolling: touch; overscroll-behavior-inline: contain; }
  .admin-page .data-table { min-width: 680px; }
  .admin-page .modal-card { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; }
}

@media (max-width: 430px) {
  .auth-page .auth-visual { min-height: 230px; padding: 14px 16px; }
  .auth-page .auth-visual .brand { width: 112px; height: 54px; }
  .auth-page .auth-message h1 { font-size: 24px; }
  .auth-page .auth-form-wrap { min-height: calc(100dvh - 230px); padding: 20px 12px 30px; }
  .auth-page .auth-card { padding: 22px 16px 19px; }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 520px) {
  .auth-page { grid-template-columns: minmax(260px, .8fr) minmax(360px, 1.2fr); }
  .auth-page .auth-visual { min-height: 100dvh; }
  .auth-page .auth-form-wrap { min-height: 100dvh; padding-block: 18px; }
  .auth-page .auth-message h1 { font-size: 25px; }
  .auth-benefits { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .main-nav,
  .main-nav a,
  .menu-toggle,
  .menu-toggle i,
  .menu-toggle::before,
  .menu-toggle::after { transition: none !important; }
}
