/* ===== Klipzy.lv design system ===== */
:root {
  /* Accent — electric blue */
  --accent: #2563EB;
  --accent-600: #2563EB;
  --accent-700: #1D4ED8;
  --accent-500: #3B82F6;
  --accent-tint: #EFF6FF;
  --accent-tint-2: #DBEAFE;

  /* Neutrals */
  --bg: #F7F8FA;
  --card: #FFFFFF;
  --border: #E5E7EB;
  --border-strong: #D1D5DB;
  --text: #0F172A;
  --text-2: #334155;
  --muted: #64748B;
  --muted-2: #94A3B8;

  /* Status */
  --green: #16A34A;
  --green-tint: #ECFDF5;
  --amber: #D97706;
  --amber-tint: #FFFBEB;
  --red: #DC2626;
  --red-tint: #FEF2F2;

  /* Shape */
  --r-sm: 8px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* Shadow — restrained */
  --sh-sm: 0 1px 2px rgba(15,23,42,.05);
  --sh: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --sh-md: 0 4px 16px rgba(15,23,42,.07), 0 1px 3px rgba(15,23,42,.05);
  --sh-lg: 0 12px 40px rgba(15,23,42,.10), 0 2px 8px rgba(15,23,42,.05);

  --font: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace;

  --maxw: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv01","ss01";
  line-height: 1.5;
}
#root { min-height: 100vh; }

::selection { background: var(--accent-tint-2); }

h1,h2,h3,h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.12; font-weight: 600; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
table { border-collapse: collapse; width: 100%; }

/* numbers tabular */
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 540; font-size: 14px; line-height: 1;
  padding: 0 16px; height: 40px; border-radius: var(--r-sm);
  border: 1px solid transparent; white-space: nowrap;
  transition: background .14s, border-color .14s, color .14s, box-shadow .14s, transform .04s;
  letter-spacing: -0.01em;
}
.btn:active { transform: translateY(.5px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(37,99,235,.25); }
.btn-primary:hover { background: var(--accent-700); }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: #F8FAFC; border-color: var(--muted-2); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: #F1F5F9; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: var(--r); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---- Pills / tags ---- */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 540; letter-spacing: -0.01em;
  background: #F1F5F9; color: var(--text-2); border: 1px solid var(--border);
}
.pill-accent { background: var(--accent-tint); color: var(--accent-700); border-color: var(--accent-tint-2); }
.pill-niche { background: #fff; color: var(--muted); }

/* tiny uppercase label */
.eyebrow {
  font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}

/* ---- Card ---- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--sh-sm);
}

/* status badges */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 560; }
.badge::before { content:''; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.badge-green { color: var(--green); background: var(--green-tint); }
.badge-amber { color: var(--amber); background: var(--amber-tint); }
.badge-red { color: var(--red); background: var(--red-tint); }
.badge-blue { color: var(--accent-700); background: var(--accent-tint); }
.badge-gray { color: var(--muted); background: #F1F5F9; }

/* progress */
.prog { height: 6px; border-radius: 999px; background: #EEF1F5; overflow: hidden; }
.prog > i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }

/* inputs */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 13px; font-weight: 540; color: var(--text-2); }
.field:has(> input[required], > select[required], > textarea[required], .input[required], .select[required], .textarea[required]) > label::after,
.field.required > label::after { content: ' *'; color: var(--red); font-weight: 700; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: #fff; color: var(--text); font-size: 14px; padding: 0 12px; height: 42px;
  transition: border-color .14s, box-shadow .14s;
}
.textarea { height: auto; padding: 11px 12px; resize: vertical; line-height: 1.5; }
.select { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }

/* gradient placeholder tiles */
.tile { border-radius: var(--r); position: relative; overflow: hidden; background: #E2E8F0; }
.tile::after { content:''; position:absolute; inset:0; background: linear-gradient(135deg, rgba(255,255,255,.18), transparent 60%); }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 999px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* utility */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; width: 100%; }
.row { display: flex; align-items: center; }
.spread { display: flex; align-items: center; justify-content: space-between; }
.stack { display: flex; flex-direction: column; }
.muted { color: var(--muted); }
.fade-in { animation: fade .32s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.app-scroll { height: 100%; overflow-y: auto; }

/* infinite logo marquee */
.marquee {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee-scroll 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}
.testi-track::-webkit-scrollbar { display: none; }
.klipzy-spinner {
  width: 32px; height: 32px; border-radius: 999px;
  border: 3px solid var(--accent-tint-2); border-top-color: var(--accent);
  animation: klipzy-spin .7s linear infinite;
}
@keyframes klipzy-spin { to { transform: rotate(360deg); } }

/* ============================================================
   RESPONSIVE LAYER
   Desktop layout lives in inline styles; these rules only kick
   in at breakpoints (via !important) to adapt without changing
   the desktop design.
   ============================================================ */
html, body { max-width: 100%; overflow-x: hidden; }

/* 4-up grids (stat cards, quick-nav): 4 → 2 → 1 */
@media (max-width: 1080px) { .r-grid4 { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 560px)  { .r-grid4 { grid-template-columns: 1fr !important; } }

/* 3-up grids (campaign cards, payment stats, metrics): 3 → 2 → 1 */
@media (max-width: 1000px) { .r-grid3 { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 620px)  { .r-grid3 { grid-template-columns: 1fr !important; } }

/* 2-up grids (forms, role cards, split cards): 2 → 1 */
@media (max-width: 820px) { .r-grid2 { grid-template-columns: 1fr !important; } .r-settings-grid { grid-template-columns: 1fr !important; } }

/* content + side rail (filter rail, campaign sidebar): stack */
@media (max-width: 900px) { .r-rail { grid-template-columns: 1fr !important; } }
@media (max-width: 900px) { .r-rail .r-rail-sticky { position: static !important; } }

/* hero (2-col): stack + tighten */
@media (max-width: 900px) {
  .r-hero { grid-template-columns: 1fr !important; gap: 36px !important; padding-top: 40px !important; padding-bottom: 52px !important; }
  .r-hero .hero-panel { justify-self: center; width: 100%; max-width: 360px; }
}
@media (max-width: 560px) { .r-hero-h1 { font-size: 38px !important; } }

/* academy category tiles: 5 → 3 → 2 */
@media (max-width: 900px) { .r-grid5 { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 560px) { .r-grid5 { grid-template-columns: repeat(2, 1fr) !important; } }

@media (max-width: 900px) { .clip-preview-pane { display: none !important; } }
/* footer columns handled in the mobile footer block below */

/* stats band padding shrink */
@media (max-width: 620px) { .r-statband { padding: 32px 26px !important; } }
/* create-campaign stepper: hide labels + connector lines on phones, keep circles */
@media (max-width: 620px) {
  .create-stepper { justify-content: center; gap: 12px; }
  .create-stepper .stepper-label { display: none !important; }
  .create-stepper .stepper-line { margin: 0 4px !important; }
}

/* container side padding shrink on phones */
@media (max-width: 640px) { .container { padding-left: 18px !important; padding-right: 18px !important; } }
/* marketplace search + sort: stack so sort pills stay reachable on phones */
@media (max-width: 640px) {
  .mkt-searchrow { flex-direction: column !important; }
  .mkt-searchrow .sortpills { width: 100%; flex-wrap: nowrap; justify-content: stretch; gap: 4px; }
  .mkt-searchrow .sortpills button { flex: 1 1 0; min-width: 0; padding: 0 6px !important; text-align: center; font-size: 12px !important; }
  /* collapsible filter panel: toggle shows, body hidden until opened */
  .r-filter-rail { position: static !important; padding: 14px !important; }
  .r-filter-caret { display: inline-flex !important; }
  .r-filter-toggle { width: 100%; justify-content: space-between !important; padding: 0 !important; }
  .r-filter-head { margin-bottom: 0 !important; }
  .r-filter-body { display: none; }
  .r-filter-body.open { display: block; margin-top: 8px; }
}
/* story player arrows: drop the circle on phones, keep same position */
@media (max-width: 640px) { .story-arrow { background: none !important; border: none !important; } }
/* hero floating stat card: pull in from the negative offset so it stays on-screen */
@media (max-width: 640px) { .hero-float-card { left: 8px !important; bottom: -16px !important; } }
/* notification dropdown: keep on-screen with a margin on phones */
@media (max-width: 640px) { .notif-pop { position: fixed !important; right: 12px !important; left: 12px !important; width: auto !important; max-width: none !important; top: 64px !important; } }

/* public top nav: wrap instead of overflowing */
@media (max-width: 760px) {
  .nav-bar { height: 60px !important; padding-top: 0; padding-bottom: 0; row-gap: 0; gap: 8px !important; flex-wrap: nowrap !important; position: relative; width: 100% !important; max-width: 100% !important; padding-left: 16px !important; padding-right: 16px !important; box-sizing: border-box; }
  .aud-switch { position: absolute !important; left: 50% !important; transform: translateX(-50%); }
  .aud-label { display: none !important; }
  .aud-icon { display: inline-flex !important; align-items: center; }
  /* icon-only square nav buttons */
  .nav-btn-label { display: none !important; }
  .nav-btn { height: 40px !important; width: 40px !important; padding: 0 !important; justify-content: center; }
  .nav-btn svg { width: 30px !important; height: 30px !important; }
  /* overlay scrollbars: no gutter, content centers full-width */
  html, body, .app-scroll { scrollbar-width: none !important; }
  html::-webkit-scrollbar, body::-webkit-scrollbar, .app-scroll::-webkit-scrollbar { width: 0 !important; height: 0 !important; background: transparent !important; }
  .hero-panel { max-width: 380px; margin-left: auto !important; margin-right: auto !important; }
  .aud-btn { padding: 0 14px !important; }
  /* login/register/dashboard/signout → icon only */
  .nav-btn-label { display: none !important; }
  .nav-btn { padding: 0 12px !important; gap: 0 !important; }
  /* language switcher moves to the footer on mobile */
  .nav-lang { display: none !important; }
}
.aud-icon { display: none; }

/* button label swap (full text → short on mobile) */
.btn-text-short { display: none; }
@media (max-width: 760px) {
  .btn-text-full { display: none; }
  .btn-text-short { display: inline; }
}

/* testimonials: one card per view on mobile (scroll-snap one-by-one) */
@media (max-width: 760px) {
  .testi-card { width: 100% !important; }
}

/* hero copy centered on mobile */
@media (max-width: 900px) {
  .hero-copy { text-align: center !important; }
  .hero-copy p { margin-left: auto !important; margin-right: auto !important; }
  .hero-actions { justify-content: center !important; }
  .hero-stats { justify-content: center !important; }
}

/* footer: mobile language switcher + tidy columns */
.footer-lang { display: none; }
.footer-tagline { }
@media (max-width: 640px) {
  html, body { overflow-x: hidden !important; max-width: 100%; }
  .footer-tagline { display: none !important; }
  .r-footer { display: grid !important; grid-template-columns: 1fr 1fr 1fr !important; gap: 14px 12px !important; align-items: start; padding: 32px 18px 20px !important; }
  .r-footer .footer-brand { grid-column: 1 / -1 !important; grid-row: 1; }
  .footer-lang { display: flex !important; justify-content: flex-start; grid-column: 1 / -1 !important; grid-row: 2; }
  .r-footer > div:nth-child(2) { grid-column: 1; grid-row: 3; }
  .r-footer > div:nth-child(3) { grid-column: 2; grid-row: 3; }
  .r-footer > div:nth-child(4) { grid-column: 3; grid-row: 3; }
  .r-footer .footer-link, .r-footer .eyebrow { font-size: 12px !important; }
}
@media (max-width: 760px) {
  .r-footer { grid-template-columns: 1.2fr 1fr 1fr !important; gap: 22px 18px !important; }
  .footer-brand { grid-column: 1 / -1 !important; }
}
@media (max-width: 460px) {
  .r-footer { grid-template-columns: 1fr 1fr !important; }
}

/* dashboard TopBar: stack title + actions on small screens */
@media (max-width: 680px) {
  .r-topbar { flex-direction: column; align-items: flex-start !important; gap: 12px; padding: 16px 18px !important; }
  .r-topbar .r-topbar-actions { width: 100%; display: flex; flex-wrap: nowrap; gap: 8px; }
  .r-topbar .r-topbar-actions .btn { flex: 1 1 auto; min-width: 0; white-space: nowrap; padding-left: 10px; padding-right: 10px; }
}

/* tables: become horizontally scrollable inside their card */
@media (max-width: 680px) {
  table.r-table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  table.r-table th, table.r-table td { padding-left: 14px !important; padding-right: 14px !important; }
  /* r-fit tables stack so everything fits with no sideways scroll */
  table.r-fit { display: block; width: 100%; }
  table.r-fit thead { display: none; }
  table.r-fit tbody { display: block; width: 100%; }
  table.r-fit tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 14px 16px !important; border-top: 1px solid var(--border); }
  table.r-fit td { display: block; padding: 0 !important; border: none !important; text-align: left !important; }
  table.r-fit td:first-child { flex: 1 1 100%; margin-bottom: 6px; }
}

/* admin users page: table + detail panel stack */
@media (max-width: 920px) {
  .r-userwrap { flex-direction: column !important; }
  .r-userpanel { width: 100% !important; position: static !important; top: auto !important; }
}

/* ---- dashboard sidebar: hamburger menu on mobile ---- */
/* desktop defaults */
.dash-bar { display: flex; align-items: center; justify-content: space-between; }
.dash-burger { display: none; }
.dash-collapse { display: inline-flex; }
.dash-logo-icon { display: none; }
.dash-menu { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.dash-menu-panel { display: none; }
.dash-menu-signout { display: none; }
.dash-lang-inline { display: none; }
.dash-role { display: none; }

/* desktop collapsed sidebar (icons only) */
.dash-sidebar.collapsed { width: 76px !important; }
.dash-sidebar.collapsed .dash-bar { flex-direction: column; gap: 8px; padding: 16px 0 12px !important; }
.dash-sidebar.collapsed .dash-logo-full { display: none; }
.dash-sidebar.collapsed .dash-logo-icon { display: inline-flex !important; }
.dash-sidebar.collapsed .nav-label,
.dash-sidebar.collapsed .nav-badge { display: none !important; }
.dash-sidebar.collapsed nav { padding: 4px 10px !important; }
.dash-sidebar.collapsed nav button { justify-content: center !important; padding: 0 !important; }
.dash-sidebar.collapsed .dash-lang,
.dash-sidebar.collapsed .dash-userinfo,
.dash-sidebar.collapsed .dash-lang-inline,
.dash-sidebar.collapsed .dash-signout-icon { display: none !important; }
.dash-sidebar.collapsed .dash-user { justify-content: center; padding: 8px 0 !important; }
.dash-sidebar.collapsed .dash-foot { padding: 12px 6px !important; }

@media (max-width: 768px) {
  .dash-shell { flex-direction: column !important; overflow-y: auto !important; }
  .dash-shell > .app-scroll { overflow: visible !important; height: auto !important; flex: 1 1 auto !important; }
  /* tighter page gutters around dashboard content boxes on phones */
  .app-scroll .fade-in > div { padding-left: 14px !important; padding-right: 14px !important; padding-bottom: 16px !important; }
  /* page chrome scrolls with content (nothing pinned) */
  .r-topbar { position: static !important; }

  .dash-sidebar, .dash-sidebar.collapsed {
    width: 100% !important; height: auto !important; flex: none !important;
    flex-direction: column !important;
    border-right: none !important; border-bottom: 1px solid var(--border) !important;
    padding: 0 !important;
  }
  .dash-bar { display: flex !important; flex-direction: row !important; align-items: center; justify-content: space-between; width: 100%; padding: 12px 16px !important; }
  .dash-collapse { display: none !important; }
  .dash-logo-full { display: inline-flex !important; }
  .dash-logo-icon { display: none !important; }
  .dash-burger { display: inline-flex !important; }

  /* collapsed by default, expands when the hamburger is tapped */
  .dash-menu { display: none !important; }
  .dash-menu.open { display: flex !important; flex-direction: column; border-top: 1px solid var(--border); padding: 12px; gap: 4px; }

  .dash-menu-panel { display: flex !important; align-items: center; }
  .dash-navitem-panel { display: none !important; } /* replaced by the blue Panelis button */
  .dash-menu.open nav { flex: none !important; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 8px 0 !important; margin: 10px 0; gap: 2px; }
  .dash-menu.open nav button { white-space: normal; justify-content: flex-start !important; }
  .dash-menu.open .nav-label { display: inline !important; }

  .dash-foot { border-top: none !important; padding: 0 !important; flex: none; }
  /* language switcher inline with the user row (right side); centered one hidden */
  .dash-lang { display: none !important; }
  .dash-lang-inline { display: flex !important; }
  .dash-role { display: inline !important; }
  .dash-email { display: none !important; } /* role now sits on the name line */
  .dash-menu-signout { display: flex !important; align-items: center; justify-content: center; }
  .dash-signout-icon { display: none !important; } /* avoid duplicate sign-out */
}

/* ---- Legal pages (Noteikumi / Privātums / Drošība) ---- */.legal-tab {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 540; cursor: pointer;
  background: #fff; color: var(--text-2);
  border: 1px solid var(--border-strong); transition: all .14s;
}
.legal-tab:hover { border-color: var(--muted-2); background: #F8FAFC; }
.legal-tab.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.legal-tab.on svg { color: #fff; }

.legal-toc-link {
  font-size: 13.5px; color: var(--muted); cursor: pointer;
  padding: 7px 12px; border-radius: var(--r-sm); line-height: 1.4;
  border-left: 2px solid transparent; transition: all .12s;
}
.legal-toc-link:hover { color: var(--text); background: #F8FAFC; }
.legal-toc-link.on { color: var(--accent-700); background: var(--accent-tint); border-left-color: var(--accent); font-weight: 540; }

.legal-body { max-width: 760px; }
.legal-h2 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 14px; }
.legal-p { font-size: 15.5px; color: var(--text-2); line-height: 1.72; margin-bottom: 14px; }
.legal-p a { color: var(--accent); }
.legal-ul { padding-left: 4px; list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 4px 0 14px; }
.legal-ul li { font-size: 15px; color: var(--text-2); line-height: 1.6; padding-left: 26px; position: relative; }
.legal-ul li::before {
  content: ''; position: absolute; left: 6px; top: 9px;
  width: 6px; height: 6px; border-radius: 2px; background: var(--accent);
}
.legal-note {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--accent-tint); border: 1px solid var(--accent-tint-2);
  border-radius: var(--r); padding: 14px 16px; margin: 6px 0 16px;
  font-size: 14px; color: var(--accent-700); line-height: 1.55;
}
.legal-note svg { flex: none; margin-top: 2px; color: var(--accent); }

.legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.legal-sec-card { padding: 22px; }
.legal-sec-ico {
  width: 42px; height: 42px; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-tint); color: var(--accent);
}

@media (max-width: 860px) {
  .legal-toc { display: none; }
  .legal-rail { grid-template-columns: 1fr !important; }
  .legal-grid { grid-template-columns: 1fr; }
}

/* ---- Footer links: clear hover / active affordance ---- */
.footer-link {
  font-size: 14px; color: var(--muted); cursor: pointer; text-decoration: none;
  padding: 3px 8px; margin-left: -8px; border-radius: var(--r-sm);
  transition: color .13s, background .13s; width: fit-content;
}
.footer-link:hover { color: var(--accent-700); background: var(--accent-tint); }
.footer-link:active { color: var(--accent-700); background: var(--accent-tint-2); }

/* ---- Academy story series grid: 5 → 3 → 2 ---- */
@media (max-width: 1000px) { .academy-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 600px)  { .academy-grid { grid-template-columns: repeat(2, 1fr) !important; } .academy-bubbles { gap: 14px !important; } }
@keyframes klipzy-spin { to { transform: rotate(360deg); } }
.spin { animation: klipzy-spin 0.8s linear infinite; }
