/* ==========================================================================
   MR JB WORLD — DESIGN TOKENS
   ========================================================================== */
:root{
  --bg:#F6F7FB; --surface:#FFFFFF; --surface-2:#EEF1F8;
  --ink:#0B0E14; --text:#0B0E14; --text-muted:#5B6478;
  --border:#E3E7F0; --border-strong:#CBD2E3;
  --accent:#3654FF; --accent-hover:#2740D6; --accent-soft:#E7EBFF;
  --accent-2:#B96E00; --accent-2-soft:#FFF1DA;
  --success:#059669; --success-soft:#DCFCE7;
  --danger:#DC2626; --danger-soft:#FEE2E2;
  --radius-sm:8px; --radius-md:14px; --radius-lg:22px; --radius-full:999px;
  --shadow-sm:0 1px 2px rgba(11,14,20,.06);
  --shadow-md:0 10px 24px -8px rgba(11,14,20,.14);
  --shadow-lg:0 24px 56px -16px rgba(11,14,20,.26);
  --ease:cubic-bezier(.4,0,.2,1); --t-fast:150ms; --t-base:220ms; --t-slow:420ms;
  --header-h:72px; --container:1240px;
  --font-display:'Space Grotesk',system-ui,sans-serif;
  --font-body:'Inter',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
}
[data-theme="dark"]{
  --bg:#0B0E14; --surface:#12161F; --surface-2:#1A2030;
  --ink:#EDEFF5; --text:#EDEFF5; --text-muted:#8D93A6;
  --border:#232A3B; --border-strong:#303A52;
  --accent:#5B82FF; --accent-hover:#7A9BFF; --accent-soft:#182246;
  --accent-2:#FFB020; --accent-2-soft:#3A2A0A;
  --success:#34D399; --success-soft:#0F2A1E;
  --danger:#F87171; --danger-soft:#3A1414;
  --shadow-sm:0 1px 2px rgba(0,0,0,.35); --shadow-md:0 10px 28px -8px rgba(0,0,0,.55); --shadow-lg:0 28px 64px -16px rgba(0,0,0,.65);
}
@media (prefers-reduced-motion: reduce){ *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; } }
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{ margin:0; font-family:var(--font-body); background:var(--bg); color:var(--text); -webkit-font-smoothing:antialiased; transition:background var(--t-base) var(--ease),color var(--t-base) var(--ease); overflow-x:hidden; min-width:320px; }
h1,h2,h3,h4,p,figure{ margin:0; }
h1,h2,h3,h4{ font-family:var(--font-display); }
img{ max-width:100%; display:block; }
button{ font-family:inherit; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
input,textarea,select{ font-family:inherit; }
::selection{ background:var(--accent); color:#fff; }
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; border-radius:4px; }
.container{ max-width:var(--container); margin:0 auto; padding:0 24px; }
@media (max-width:640px){ .container{ padding:0 16px; } }
.hidden{ display:none !important; }
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* Buttons */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; border:none; border-radius:var(--radius-sm); cursor:pointer; font-weight:600; font-size:.9375rem; padding:12px 22px; line-height:1; transition:transform var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease),background var(--t-fast) var(--ease),opacity var(--t-fast) var(--ease),color var(--t-fast) var(--ease),border-color var(--t-fast) var(--ease); min-height:44px; white-space:nowrap; position:relative; overflow:hidden; }
.btn svg{ width:18px; height:18px; flex-shrink:0; }
.btn:active{ transform:scale(.97); }
.btn:disabled{ opacity:.6; cursor:not-allowed; transform:none; }
.btn-primary{ background:var(--accent); color:#fff; box-shadow:0 1px 2px rgba(54,84,255,.3); }
.btn-primary:hover:not(:disabled){ background:var(--accent-hover); box-shadow:0 10px 22px -6px rgba(54,84,255,.5); }
.btn-secondary{ background:var(--surface); color:var(--text); border:1px solid var(--border-strong); }
.btn-secondary:hover:not(:disabled){ border-color:var(--accent); color:var(--accent); }
.btn-ghost{ background:transparent; color:var(--text); }
.btn-ghost:hover:not(:disabled){ background:var(--surface-2); }
.btn-success{ background:var(--success); color:#fff; }
.btn-success:hover:not(:disabled){ filter:brightness(1.08); }
.btn-danger{ background:transparent; color:var(--danger); border:1px solid var(--danger); }
.btn-danger:hover:not(:disabled){ background:var(--danger); color:#fff; }
.btn-amber{ background:var(--accent-2); color:#1a1200; }
.btn-amber:hover:not(:disabled){ filter:brightness(1.06); }
.btn-block{ width:100%; }
.btn-sm{ padding:8px 14px; font-size:.8125rem; min-height:36px; }
.btn-icon{ padding:10px; min-width:44px; }
.btn-bar{ position:absolute; left:0; top:0; bottom:0; background:rgba(255,255,255,.22); transition:width .25s linear; }

/* Header */
#site-header{ position:sticky; top:0; z-index:200; height:var(--header-h); display:flex; align-items:center; background:color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter:blur(14px); border-bottom:1px solid var(--border); }
.header-inner{ display:flex; align-items:center; gap:20px; width:100%; }
.logo{ display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:700; font-size:1.05rem; flex-shrink:0; }
.logo-mark{ width:36px; height:36px; border-radius:10px; background:linear-gradient(135deg,var(--accent),#8AA0FF); color:#fff; display:flex; align-items:center; justify-content:center; font-size:.85rem; font-weight:800; box-shadow:var(--shadow-sm); }
.logo-text-sub{ display:block; font-family:var(--font-body); font-weight:500; font-size:.68rem; color:var(--text-muted); margin-top:1px; }
.main-nav{ display:flex; align-items:center; gap:4px; }
.main-nav a{ padding:9px 14px; border-radius:var(--radius-sm); font-size:.9rem; font-weight:600; color:var(--text-muted); transition:background var(--t-fast) var(--ease),color var(--t-fast) var(--ease); }
.main-nav a:hover,.main-nav a.active{ background:var(--surface-2); color:var(--text); }
.header-actions{ display:flex; align-items:center; gap:10px; margin-left:auto; }
.header-search{ display:flex; align-items:center; gap:8px; background:var(--surface-2); border:1px solid var(--border); border-radius:var(--radius-full); padding:8px 14px; width:220px; }
.header-search svg{ width:16px; height:16px; color:var(--text-muted); flex-shrink:0; }
.header-search input{ border:none; background:none; outline:none; color:var(--text); font-size:.85rem; width:100%; }
.icon-link{ width:38px; height:38px; border-radius:var(--radius-full); position:relative; display:inline-flex; flex-shrink:0; background:var(--surface-2); border:1px solid var(--border); color:var(--text-muted); transition:color var(--t-fast) var(--ease),border-color var(--t-fast) var(--ease),background var(--t-fast) var(--ease),transform var(--t-fast) var(--ease); }
.icon-link:hover{ color:var(--accent); border-color:var(--accent); transform:translateY(-2px); }
.icon-link svg{ position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:18px; height:18px; display:block; }
.icon-link.icon-youtube{ color:#FF0000; background:rgba(255,0,0,.1); border-color:rgba(255,0,0,.25); }
.icon-link.icon-youtube:hover{ color:#FF0000; border-color:#FF0000; background:rgba(255,0,0,.16); }
.icon-link.icon-mail{ color:var(--accent); background:var(--accent-soft); border-color:transparent; }
.icon-link.icon-mail:hover{ color:var(--accent-hover); border-color:var(--accent); }
.theme-toggle-track{ width:46px; height:26px; border-radius:var(--radius-full); background:var(--surface-2); border:1px solid var(--border); position:relative; cursor:pointer; padding:0; }
.theme-toggle-track .knob{ position:absolute; top:2px; left:2px; width:20px; height:20px; border-radius:50%; background:var(--accent); display:flex; align-items:center; justify-content:center; transition:transform var(--t-base) var(--ease); }
.theme-toggle-track .knob svg{ width:12px; height:12px; color:#fff; }
[data-theme="dark"] .theme-toggle-track .knob{ transform:translateX(20px); }
.icon-btn{ width:38px; height:38px; border-radius:var(--radius-sm); display:flex; align-items:center; justify-content:center; background:transparent; border:none; color:var(--text); cursor:pointer; }
.icon-btn:hover{ background:var(--surface-2); }
.icon-btn svg{ width:20px; height:20px; }
.hamburger-btn{ display:none; }
@media (max-width:900px){ .main-nav{ display:none; } .header-search{ display:none; } .hamburger-btn{ display:flex; } }

/* Mobile menu */
#mobile-menu{ position:fixed; inset:0; z-index:300; pointer-events:none; }
#mobile-menu[aria-hidden="false"]{ pointer-events:auto; }
.mobile-menu-overlay{ position:absolute; inset:0; background:rgba(0,0,0,.5); opacity:0; transition:opacity var(--t-base) var(--ease); }
.mobile-menu-panel{ position:absolute; top:0; right:0; bottom:0; width:min(320px,86vw); background:var(--surface); display:flex; flex-direction:column; padding:20px; gap:6px; transform:translateX(100%); transition:transform var(--t-slow) var(--ease); }
#mobile-menu[aria-hidden="false"] .mobile-menu-overlay{ opacity:1; }
#mobile-menu[aria-hidden="false"] .mobile-menu-panel{ transform:translateX(0); }
.mobile-menu-header{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.mobile-menu-panel a{ padding:13px 12px; border-radius:var(--radius-sm); font-weight:600; }
.mobile-menu-panel a:hover{ background:var(--surface-2); }
.mobile-menu-footer{ margin-top:auto; display:flex; gap:10px; }

/* Hero */
.hero{ position:relative; padding:76px 0 64px; overflow:hidden; border-bottom:1px solid var(--border); }
.hero-inner{ display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:center; }
@media (max-width:900px){ .hero-inner{ grid-template-columns:1fr; } }
.eyebrow-row{ display:flex; align-items:center; gap:10px; color:var(--text-muted); font-size:.85rem; font-weight:600; margin-bottom:18px; }
.eyebrow-row svg{ width:16px; height:16px; color:var(--accent); }
.hero h1{ font-size:clamp(2.1rem,4.6vw,3.4rem); line-height:1.06; font-weight:700; letter-spacing:-.01em; }
.hero h1 .accent{ color:var(--accent); }
.hero p.lead{ margin-top:20px; font-size:1.05rem; color:var(--text-muted); max-width:52ch; line-height:1.6; }
.hero-actions{ display:flex; gap:12px; margin-top:30px; flex-wrap:wrap; }
.hero-stats{ display:flex; gap:28px; margin-top:38px; flex-wrap:wrap; }
.hero-stats div b{ display:block; font-family:var(--font-display); font-size:1.5rem; }
.hero-stats div span{ font-size:.78rem; color:var(--text-muted); }

/* Terminal motif */
.terminal{ background:var(--ink); color:#DCE3FF; border-radius:var(--radius-lg); box-shadow:var(--shadow-lg); overflow:hidden; border:1px solid var(--border); }
[data-theme="dark"] .terminal{ background:#080A10; }
.terminal-bar{ display:flex; align-items:center; gap:8px; padding:12px 16px; background:rgba(255,255,255,.04); border-bottom:1px solid rgba(255,255,255,.08); }
.terminal-dot{ width:10px; height:10px; border-radius:50%; }
.terminal-body{ padding:22px 20px; font-family:'SFMono-Regular',Consolas,monospace; font-size:.84rem; line-height:1.9; }
.terminal-body .muted{ color:#6C7A9E; }
.terminal-body .ok{ color:#4ADE80; }
.terminal-body .accentline{ color:#8AA0FF; }
.type-cursor{ display:inline-block; width:7px; height:14px; background:#8AA0FF; margin-left:2px; animation:blink 1s step-end infinite; vertical-align:-2px; }
@keyframes blink{ 50%{ opacity:0; } }

/* Section header */
.section{ padding:64px 0; }
.section-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:32px; flex-wrap:wrap; }
.section-head h2{ font-size:1.7rem; font-weight:700; }
.section-head p{ color:var(--text-muted); margin-top:6px; font-size:.92rem; }

/* Category folders */
.folder-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:14px; }
.folder-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:20px; display:flex; flex-direction:column; gap:10px; cursor:pointer; transition:transform var(--t-fast) var(--ease),border-color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease); }
.folder-card:hover{ transform:translateY(-3px); border-color:var(--accent); box-shadow:var(--shadow-md); }
.folder-icon{ width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center; color:#fff; }
.folder-icon svg{ width:22px; height:22px; }
.folder-card b{ font-size:.95rem; }
.folder-card span{ font-size:.78rem; color:var(--text-muted); }

/* Live websites — animated cards */
.livesite-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:20px; perspective:1000px; }
.livesite-card{ position:relative; display:block; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:26px; overflow:hidden; isolation:isolate; transform-style:preserve-3d; will-change:transform; transition:transform .25s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.livesite-card::before{ content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(120deg, transparent 20%, color-mix(in srgb, var(--accent) 22%, transparent) 50%, transparent 80%); transform:translateX(-130%) skewX(-12deg); transition:transform .8s var(--ease); pointer-events:none; }
.livesite-card::after{ content:''; position:absolute; inset:0; z-index:-2; border-radius:inherit; padding:1px; background:linear-gradient(135deg,var(--accent),var(--accent-2),transparent 60%); opacity:0; transition:opacity .4s var(--ease); -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask-composite:exclude; }
.livesite-card:hover{ box-shadow:var(--shadow-lg); border-color:transparent; }
.livesite-card:hover::before{ transform:translateX(130%) skewX(-12deg); }
.livesite-card:hover::after{ opacity:1; }
.livesite-icon{ width:56px; height:56px; border-radius:16px; display:flex; align-items:center; justify-content:center; color:#fff; margin-bottom:18px; transform:translateZ(30px); transition:transform .45s var(--ease), box-shadow .45s var(--ease); }
.livesite-icon svg{ width:26px; height:26px; }
.livesite-icon-inner{ display:flex; align-items:center; justify-content:center; width:100%; height:100%; animation:iconFloat 3.6s ease-in-out infinite; }
@keyframes iconFloat{ 0%,100%{ transform:translateY(0) rotate(0deg); } 50%{ transform:translateY(-3px) rotate(4deg); } }
.livesite-card:hover .livesite-icon{ transform:translateZ(46px) scale(1.12) rotate(-6deg); }
.livesite-card h3{ font-size:1.05rem; font-weight:700; margin-bottom:6px; transform:translateZ(15px); }
.livesite-card p{ font-size:.85rem; color:var(--text-muted); line-height:1.55; margin-bottom:16px; min-height:40px; transform:translateZ(10px); }
.livesite-url{ font-size:.72rem; color:var(--text-muted); margin-bottom:14px; word-break:break-all; display:flex; align-items:center; gap:6px; }
.livesite-url svg{ width:12px; height:12px; flex-shrink:0; }
.livesite-visit{ display:inline-flex; align-items:center; gap:7px; font-weight:700; font-size:.86rem; color:var(--accent); transform:translateZ(15px); }
.livesite-visit svg{ width:15px; height:15px; transition:transform .35s var(--ease); }
.livesite-card:hover .livesite-visit svg{ transform:translate(4px,-4px); }

/* Project grid & cards */
.project-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(272px,1fr)); gap:20px; }
.project-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden; display:flex; flex-direction:column; transition:transform var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease),border-color var(--t-fast) var(--ease); }

/* Play-Store-style app cards: icon + name row instead of a full image overlay */
.app-card-head{ display:flex; align-items:flex-start; gap:14px; padding:18px 18px 4px; text-decoration:none; color:inherit; }
.app-icon{ width:64px; height:64px; border-radius:16px; flex-shrink:0; display:flex; align-items:center; justify-content:center; overflow:hidden; box-shadow:var(--shadow-sm); }
.app-icon img{ width:100%; height:100%; object-fit:cover; }
.app-icon svg{ width:28px; height:28px; color:#fff; }
.app-card-titles{ flex:1; min-width:0; }
.app-card-titles h3{ font-size:1.02rem; font-weight:700; line-height:1.3; }
.app-card-cat{ font-size:.74rem; color:var(--text-muted); text-transform:uppercase; letter-spacing:.03em; font-weight:600; }
.app-card .badge-price{ position:static; flex-shrink:0; }

/* Live-site cards with a preview image */
.livesite-card-img{ padding:0; }
.livesite-card-img .livesite-thumb{ height:150px; overflow:hidden; border-radius:var(--radius-lg) var(--radius-lg) 0 0; }
.livesite-card-img .livesite-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.livesite-card-img h3{ margin:14px 20px 0; }
.livesite-card-img p{ margin:6px 20px 0; }
.livesite-card-img .livesite-visit{ margin:14px 20px 20px; }
.livesite-card p{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* Clean rendered description text (from mdLite) on detail pages */
.rich-text{ color:var(--text-muted); line-height:1.7; }
.rich-text h3,.rich-text h4,.rich-text h5{ color:var(--text); margin:18px 0 6px; font-weight:700; }
.rich-text h3{ font-size:1.1rem; } .rich-text h4{ font-size:1rem; } .rich-text h5{ font-size:.95rem; }
.rich-text p{ margin-bottom:10px; }
.rich-text ul{ margin:4px 0 12px 1.2em; } .rich-text li{ margin-bottom:5px; }
.rich-text b{ color:var(--text); }
.project-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:var(--border-strong); }
.project-thumb{ height:190px; display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; }
.project-thumb svg{ width:38px; height:38px; color:rgba(255,255,255,.92); }
.project-thumb-caption{ position:absolute; left:0; right:0; bottom:0; z-index:2; padding:36px 14px 12px; background:linear-gradient(to top, rgba(0,0,0,.86) 0%, rgba(0,0,0,.55) 55%, transparent 100%); }
.project-thumb-caption h3{ color:#fff; font-size:.98rem; font-weight:700; line-height:1.25; text-shadow:0 1px 3px rgba(0,0,0,.4); }
.project-thumb-caption p{ color:rgba(255,255,255,.88); font-size:.78rem; line-height:1.4; margin-top:3px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.badge{ position:absolute; top:10px; left:10px; font-size:.68rem; font-weight:700; padding:4px 9px; border-radius:var(--radius-full); background:rgba(0,0,0,.35); color:#fff; text-transform:uppercase; letter-spacing:.03em; z-index:2; }
.badge-price{ position:absolute; top:10px; right:10px; font-size:.72rem; font-weight:700; padding:5px 10px; border-radius:var(--radius-full); }
.badge-free{ background:var(--success-soft); color:var(--success); }
.badge-paid{ background:var(--accent-2-soft); color:var(--accent-2); }
.project-thumb{ text-decoration:none; color:inherit; }
.project-body{ padding:14px 18px 18px; display:flex; flex-direction:column; gap:8px; flex:1; }
.project-meta-row{ display:flex; align-items:center; gap:10px; font-size:.74rem; color:var(--text-muted); }
.project-meta-row svg{ width:13px; height:13px; }
.project-card-footer{ display:flex; gap:8px; margin-top:6px; }
.project-card-footer .btn{ flex:1; }
.empty-state{ text-align:center; padding:70px 20px; border:1.5px dashed var(--border-strong); border-radius:var(--radius-lg); color:var(--text-muted); }
.empty-state svg{ width:40px; height:40px; margin-bottom:14px; color:var(--text-muted); }
.empty-state h3{ color:var(--text); margin-bottom:6px; }

/* Install button */
.install-btn{ position:relative; }
.install-progress-label{ font-size:.72rem; font-weight:700; }

/* Filters bar */
.filters-bar{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:26px; }
.chip{ padding:8px 15px; border-radius:var(--radius-full); border:1px solid var(--border); background:var(--surface); font-size:.82rem; font-weight:600; cursor:pointer; color:var(--text-muted); }
.chip.active,.chip:hover{ border-color:var(--accent); color:var(--accent); background:var(--accent-soft); }

/* Project detail */
.detail-grid{ display:grid; grid-template-columns:1fr 320px; gap:36px; align-items:start; }
@media (max-width:900px){ .detail-grid{ grid-template-columns:1fr; } }
.detail-hero{ height:200px; border-radius:var(--radius-lg); display:flex; align-items:center; justify-content:center; margin-bottom:26px; }
.detail-hero svg{ width:60px; height:60px; color:rgba(255,255,255,.9); }
.feature-list li{ display:flex; gap:10px; padding:9px 0; border-bottom:1px solid var(--border); font-size:.9rem; }
.feature-list li:last-child{ border-bottom:none; }
.feature-list svg{ width:17px; height:17px; color:var(--success); flex-shrink:0; margin-top:2px; }
.sidebar-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:22px; position:sticky; top:calc(var(--header-h) + 20px); }
.spec-row{ display:flex; justify-content:space-between; padding:9px 0; border-bottom:1px solid var(--border); font-size:.84rem; }
.spec-row:last-child{ border-bottom:none; }
.spec-row span{ color:var(--text-muted); }
.price-tag{ font-family:var(--font-display); font-size:1.6rem; font-weight:700; }

/* Forms */
.form-group{ display:flex; flex-direction:column; gap:6px; margin-bottom:16px; }
.form-group label{ font-size:.82rem; font-weight:600; }
.form-control{ background:var(--surface); border:1px solid var(--border-strong); border-radius:var(--radius-sm); padding:11px 13px; font-size:.9rem; color:var(--text); outline:none; transition:border-color var(--t-fast) var(--ease); width:100%; }
.form-control:focus{ border-color:var(--accent); }
textarea.form-control{ resize:vertical; min-height:90px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:600px){ .form-row{ grid-template-columns:1fr; } }
.form-error{ color:var(--danger); font-size:.82rem; display:none; }
.dropzone{ border:1.5px dashed var(--border-strong); border-radius:var(--radius-md); padding:26px; text-align:center; cursor:pointer; transition:border-color var(--t-fast) var(--ease),background var(--t-fast) var(--ease); }
.dropzone:hover,.dropzone.drag{ border-color:var(--accent); background:var(--accent-soft); }
.dropzone svg{ width:30px; height:30px; color:var(--text-muted); margin-bottom:8px; }
.toggle-row{ display:flex; align-items:center; justify-content:space-between; padding:12px 0; }
.switch{ width:44px; height:24px; border-radius:var(--radius-full); background:var(--border-strong); position:relative; cursor:pointer; border:none; padding:0; flex-shrink:0; }
.switch .knob{ position:absolute; top:2px; left:2px; width:20px; height:20px; border-radius:50%; background:#fff; transition:transform var(--t-fast) var(--ease); box-shadow:var(--shadow-sm); }
.switch.on{ background:var(--accent); }
.switch.on .knob{ transform:translateX(20px); }
.upload-progress-track{ height:8px; border-radius:var(--radius-full); background:var(--surface-2); overflow:hidden; margin-top:10px; }
.upload-progress-fill{ height:100%; background:var(--accent); width:0%; transition:width .2s linear; }

/* Cards / panels generic */
.card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:26px; }
.info-banner{ display:flex; gap:12px; background:var(--accent-soft); border:1px solid var(--accent); border-radius:var(--radius-md); padding:14px 16px; font-size:.85rem; color:var(--text); margin-bottom:22px; }
.info-banner svg{ width:19px; height:19px; color:var(--accent); flex-shrink:0; }
.warn-banner{ background:var(--accent-2-soft); border-color:var(--accent-2); }
.warn-banner svg{ color:var(--accent-2); }

/* Contact page */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
@media (max-width:800px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-tile{ display:flex; gap:14px; align-items:flex-start; }
.contact-tile .ic{ width:44px; height:44px; border-radius:12px; background:var(--accent-soft); color:var(--accent); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.contact-tile .ic svg{ width:20px; height:20px; }

/* About */
.stat-card{ text-align:center; padding:24px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); }
.stat-card b{ font-family:var(--font-display); font-size:1.8rem; display:block; }
.stat-card span{ font-size:.8rem; color:var(--text-muted); }

/* Footer */
#site-footer{ border-top:1px solid var(--border); padding:48px 0 26px; margin-top:40px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px; margin-bottom:32px; }
@media (max-width:800px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
.footer-grid h4{ font-size:.82rem; margin-bottom:14px; }
.footer-grid a,.footer-grid p{ display:block; font-size:.85rem; color:var(--text-muted); margin-bottom:10px; }
.footer-grid a:hover{ color:var(--accent); }
.footer-social a.icon-link{ display:inline-flex !important; align-items:center; justify-content:center; margin-bottom:0; }
.footer-social{ display:flex; gap:10px; margin-top:14px; }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:22px; border-top:1px solid var(--border); font-size:.78rem; color:var(--text-muted); flex-wrap:wrap; gap:10px; }
#secret-trigger{ cursor:default; user-select:none; }

/* Toasts */
#toast-stack{ position:fixed; bottom:20px; right:20px; z-index:1000; display:flex; flex-direction:column; gap:10px; max-width:320px; }
.toast{ background:var(--ink); color:#fff; padding:13px 16px; border-radius:var(--radius-sm); font-size:.85rem; box-shadow:var(--shadow-lg); display:flex; align-items:center; gap:10px; animation:toastIn .25s var(--ease); }
[data-theme="dark"] .toast{ background:var(--surface-2); border:1px solid var(--border-strong); }
.toast svg{ width:17px; height:17px; flex-shrink:0; }
.toast.success svg{ color:var(--success); } .toast.error svg{ color:var(--danger); } .toast.info svg{ color:var(--accent); }
@keyframes toastIn{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:translateY(0); } }

/* Modal */
.modal-overlay{ position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:400; display:flex; align-items:center; justify-content:center; padding:20px; }
.modal-box{ background:var(--surface); border-radius:var(--radius-lg); padding:26px; max-width:400px; width:100%; box-shadow:var(--shadow-lg); }
.modal-box h3{ margin-bottom:10px; }
.modal-box p{ color:var(--text-muted); font-size:.9rem; margin-bottom:20px; line-height:1.5; }
.modal-actions{ display:flex; gap:10px; justify-content:flex-end; }

/* About stats */
.kpi-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:14px; margin-bottom:20px; }
.kpi-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:18px; }
.kpi-card svg{ width:20px; height:20px; color:var(--accent); margin-bottom:10px; }
.kpi-card b{ font-family:var(--font-display); font-size:1.5rem; display:block; }
.kpi-card span{ font-size:.78rem; color:var(--text-muted); }

/* Fade page transition */
.page{ min-height:50vh; }
.fade-page{ animation:fadeIn .3s var(--ease); }
@keyframes fadeIn{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:translateY(0); } }
.skip-link{ position:absolute; left:12px; top:-48px; background:var(--accent); color:#fff; padding:10px 16px; border-radius:var(--radius-sm); z-index:999; transition:top var(--t-base) var(--ease); }
.skip-link:focus{ top:12px; }
.spinner{ width:16px; height:16px; border:2.5px solid rgba(255,255,255,.4); border-top-color:#fff; border-radius:50%; animation:spin .7s linear infinite; }
.spinner.dark-sp{ border:2.5px solid var(--border-strong); border-top-color:var(--accent); }
@keyframes spin{ to{ transform:rotate(360deg); } }
/* --- Additions: image slider + screenshot thumbs --- */
.eyebrow-label{ display:none; }
.badge,.badge-price{ z-index:2; }
.img-slider{ position:relative; width:100%; height:var(--slider-h,320px); border-radius:var(--radius-lg); overflow:hidden; background:var(--surface-2); box-shadow:var(--shadow-md); margin-bottom:26px; }
.img-slider-track{ display:flex; width:100%; height:100%; transition:transform .5s var(--ease); }
.img-slider-slide{ flex:0 0 100%; height:100%; position:relative; }
.img-slider-slide a{ display:block; width:100%; height:100%; }
.img-slider-slide img{ width:100%; height:100%; object-fit:cover; display:block; }
.img-slider-caption{ position:absolute; left:0; right:0; bottom:0; padding:16px 18px; background:linear-gradient(to top, rgba(0,0,0,.72), transparent); color:#fff; font-weight:700; font-size:.95rem; }
.img-slider-nav{ position:absolute; top:50%; transform:translateY(-50%); width:38px; height:38px; border-radius:50%; border:none; background:rgba(0,0,0,.45); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; transition:background var(--t-fast) var(--ease); z-index:2; }
.img-slider-nav:hover{ background:rgba(0,0,0,.7); }
.img-slider-nav svg{ width:18px; height:18px; }
.img-slider-nav.prev{ left:12px; } .img-slider-nav.next{ right:12px; }
.img-slider-dots{ position:absolute; bottom:14px; left:50%; transform:translateX(-50%); display:flex; gap:6px; z-index:2; }
.img-slider-dot{ width:7px; height:7px; border-radius:50%; border:none; background:rgba(255,255,255,.5); cursor:pointer; padding:0; }
.img-slider-dot.active{ background:#fff; width:18px; border-radius:4px; }
.project-thumb-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }

/* Homepage banner slider */
.banner-slider{ margin-bottom:0; }
.banner-overlay{ position:absolute; inset:0; display:flex; align-items:center; background:linear-gradient(90deg, rgba(8,10,20,.78) 0%, rgba(8,10,20,.35) 55%, transparent 100%); }
.banner-content{ max-width:560px; padding:0 clamp(20px,5vw,56px); color:#fff; }
.banner-content h2{ font-size:clamp(1.4rem,3.6vw,2.6rem); line-height:1.12; margin-bottom:10px; color:#fff; }
.banner-content p{ font-size:clamp(.9rem,1.6vw,1.1rem); opacity:.92; margin-bottom:18px; line-height:1.5; }

/* ---- YouTube videos: Watch now buttons, detail video card, 3D ring carousel ---- */
.btn-watch{ background:#e62117; color:#fff; width:100%; }
.btn-watch:hover{ filter:brightness(1.08); }
.btn-watch svg{ width:14px; height:14px; }
.project-body .btn-watch{ margin-top:2px; }
.livesite-card .btn-watch{ display:flex; margin:14px 0 8px; transform:translateZ(15px); }
.livesite-card-img .btn-watch{ margin:12px 20px 0; width:calc(100% - 40px); }

.yt-fallback{ width:100%; height:100%; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#1c1f2b,#3a3f55); color:#fff; }
.yt-fallback svg{ width:42px; height:42px; opacity:.8; }

.video-card{ display:block; border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden; background:var(--surface); box-shadow:var(--shadow-sm); text-decoration:none; color:inherit; transition:box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease); }
.video-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-2px); }
.video-thumb{ position:relative; aspect-ratio:16/9; background:#0b0e14; overflow:hidden; }
.video-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.video-play{ position:absolute; left:50%; top:50%; width:68px; height:68px; margin:-34px 0 0 -34px; border-radius:50%; background:rgba(230,33,23,.95); color:#fff; display:flex; align-items:center; justify-content:center; box-shadow:0 8px 22px rgba(0,0,0,.4); transition:transform var(--t-base) var(--ease); }
.video-play svg{ width:30px; height:30px; margin-left:4px; }
.video-card:hover .video-play{ transform:scale(1.1); }
.video-meta{ display:flex; flex-direction:column; gap:2px; padding:12px 16px; }
.video-meta b{ font-size:.95rem; }
.video-meta span{ font-size:.8rem; color:var(--text-muted); }

.vr-stage{ position:relative; width:100%; perspective:1100px; overflow:hidden; }
.vr-ring{ position:absolute; left:50%; top:34px; width:0; height:0; transform-style:preserve-3d; }
.vr-card{ position:absolute; top:0; left:0; display:block; background:var(--surface); border:1px solid var(--border); border-radius:14px; overflow:hidden; box-shadow:var(--shadow-md); text-decoration:none; color:inherit; -webkit-backface-visibility:hidden; backface-visibility:hidden; will-change:transform,opacity; }
.vr-thumb{ position:relative; aspect-ratio:16/9; background:#0b0e14; overflow:hidden; }
.vr-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.vr-play{ position:absolute; left:50%; top:50%; width:52px; height:52px; margin:-26px 0 0 -26px; border-radius:50%; background:rgba(230,33,23,.94); color:#fff; display:flex; align-items:center; justify-content:center; box-shadow:0 6px 18px rgba(0,0,0,.35); transition:transform var(--t-base) var(--ease); }
.vr-play svg{ width:24px; height:24px; margin-left:3px; }
.vr-card:hover .vr-play{ transform:scale(1.14); }
.vr-title{ padding:10px 12px 12px; font-weight:700; font-size:.88rem; line-height:1.3; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.vr-nav{ position:absolute; top:50%; transform:translateY(-50%); z-index:5; width:42px; height:42px; border-radius:50%; border:1px solid var(--border); background:var(--surface); color:var(--text); display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:var(--shadow-md); }
.vr-nav svg{ width:18px; height:18px; }
.vr-nav.prev{ left:6px; } .vr-nav.next{ right:6px; }
.vr-flat{ display:flex; gap:20px; flex-wrap:wrap; }
.vr-flat .vr-card{ position:relative; width:min(340px,100%); }
