/* ============================================================== */
/*  Deoblox Portfolio — theme + intro + interface                 */
/*  Palette sampled from testmainwebinterface.png                 */
/* ============================================================== */

:root {
  /* ---- surfaces (pure-black UI, subtle near-black elevation) ---- */
  --bg:            #191a1f;   /* app background                  */
  --ribbon-top:    #191a1f;   /* (legacy) top tab bar            */
  --ribbon:        #191a1f;   /* nav bar                         */
  --exp-bar:       #191a1f;   /* (legacy) experience bar         */
  --panel:         #191a1f;   /* side panels                     */
  --panel-2:       #121214;   /* cards / wells — slight lift     */
  --panel-head:    #0c0c0e;   /* panel header strips             */
  --field:         #0b0b0d;   /* inputs                          */
  --hover:         #1c1c20;   /* hover state                     */
  --selected:      #1f3450;   /* blue-tinted selection           */

  /* shared card surface — the charcoal cards had before going black */
  --card-bg:       linear-gradient(150deg, #2c2c31, #232327);

  /* ---- lines ---- */
  --border:        #2a2a2e;
  --border-soft:   #1a1a1d;

  /* ---- text ---- */
  --text:          #d7d7da;
  --text-dim:      #9a9aa0;
  --text-faint:    #75757b;
  --text-bright:   #ffffff;

  /* ---- accent (Roblox blue) ---- */
  --accent:        #0a90ff;
  --accent-soft:   #2f7fd6;

  /* ---- viewport (light baseplate scene) ---- */
  --sky-top:       #ccd5dd;
  --sky-bottom:    #a8b2bd;
  --grid-line:     #7f8b98;
  --grid-fill:     #9aa4b0;

  /* ---- intro ---- */
  --intro-bg:      #0b0c0f;
  --banner-h:      92px;

  /* ---- intro timings (tweak freely) ---- */
  --t-fadein:      0.6s;
  --t-flyup:       1.5s;
  --t-flyright:    1.1s;

  --font: "Segoe UI", system-ui, -apple-system, "Roboto", Arial, sans-serif;
}

* { box-sizing: border-box; }

/* `hidden` must always win, even over elements given an explicit display */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--intro-bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  overflow: hidden;
}

button { font-family: inherit; color: inherit; cursor: pointer; }

/* ============================================================== */
/*  HERO LOGO — the single element that flies through all phases  */
/* ============================================================== */
.hero-logo {
  position: fixed;
  left: 0;
  top: 0;
  width: 172px;
  height: auto;
  z-index: 1000;
  opacity: 0;
  transform-origin: center center;
  /* default transform set by JS; transition swapped per phase */
  will-change: transform, opacity;
  filter: drop-shadow(0 8px 26px rgba(0, 0, 0, 0.55));
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}
/* resting state once docked top-right — subtle accent glow */
.hero-logo.docked {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5))
          drop-shadow(0 0 9px rgba(10, 144, 255, 0.45));
  transition: filter 0.6s ease;
}

/* ============================================================== */
/*  INTRO OVERLAY + LOADING SCREEN                                */
/* ============================================================== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--intro-bg);
  transition: opacity 0.8s ease;
}
.intro.gone { opacity: 0; pointer-events: none; visibility: hidden; }

.loading-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* banner across the top */
.loading-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background:
    radial-gradient(120% 170% at 7% 50%, rgba(10, 144, 255, 0.20), rgba(10, 144, 255, 0) 60%),
    radial-gradient(90% 130% at 97% 0%, rgba(47, 127, 214, 0.10), rgba(47, 127, 214, 0) 55%),
    linear-gradient(180deg, #0c1726 0%, #0a1019 100%);
  border-bottom: 1px solid rgba(10, 144, 255, 0.22);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.7s ease;
}
.loading-screen.show-content .loading-banner { opacity: 1; }
.banner-img {
  display: block;
  width: 100%;
  height: auto;       /* full-bleed: spans the top edge-to-edge, completely visible */
}
/* invisible anchor: dock point for the logo — clean brand mark at the banner's left */
.logo-dock-banner {
  position: absolute;
  top: 50%;
  left: 104px;
  width: 1px;
  height: 1px;
}

/* loading text + animation */
.loading-body {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s;
}
.loading-screen.show-content .loading-body { opacity: 1; transform: none; }

.loading-text {
  margin: 0;
  color: #c3c8cf;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.loader { display: flex; gap: 9px; }
.loader span {
  width: 11px;
  height: 11px;
  background: #4a5a6b;
  border-radius: 2px;
  animation: load-pulse 1.05s ease-in-out infinite;
}
.loader span:nth-child(2) { animation-delay: 0.16s; }
.loader span:nth-child(3) { animation-delay: 0.32s; }
@keyframes load-pulse {
  0%, 100% { background: #3c4856; transform: scale(0.82); }
  40%      { background: var(--accent); transform: scale(1.12); }
}

.loading-version {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  color: #5a5f66;
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.6s ease 0.3s;
}
.loading-screen.show-content .loading-version { opacity: 1; }

/* ============================================================== */
/*  MAIN BOOT SCREEN  (first paint, ~1.5s — Rockstar-style)       */
/* ============================================================== */
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 3000;            /* above intro(900) / heroLogo(1000) / notice(2000) */
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}
.boot-screen.gone { opacity: 0; pointer-events: none; visibility: hidden; }

/* centered logo — big, smooth fade in / fade out breathing pulse */
.boot-logo {
  width: clamp(230px, 24vw, 380px);
  height: auto;
  will-change: opacity, filter;
  animation: boot-flicker 2.4s ease-in-out infinite;
  -webkit-user-select: none;
  user-select: none;
}
@keyframes boot-flicker {
  0%   { opacity: 0.22; filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.10)); }
  50%  { opacity: 1;    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.45)); }
  100% { opacity: 0.22; filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.10)); }
}

.boot-bottom { position: absolute; left: 0; right: 0; bottom: 0; }

/* full-width loading line that fills over the boot hold */
.boot-progress {
  position: relative;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.10);
  overflow: hidden;
}
.boot-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: #f4f6f8;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  animation: boot-load 2s ease-in-out forwards;
}
@keyframes boot-load {
  0%   { width: 0; }
  60%  { width: 62%; }
  100% { width: 100%; }
}

.boot-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 40px 26px;
  background: #1a1a1a;
}
/* exact design + font from the Jack hero "DEOBLOX": Kanit black, uppercase,
   tight tracking, silver vertical gradient (.hero-heading) */
.boot-brand {
  font-family: "Kanit", var(--font);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  font-size: clamp(24px, 3.6vw, 50px);
  background: linear-gradient(180deg, #646973 0%, #bbccd7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.boot-note {
  color: #b9bdc4;
  font-size: clamp(10px, 1vw, 13px);
  line-height: 1.45;
  text-align: right;
  opacity: 0.85;
}

/* ============================================================== */
/*  APP SHELL                                                     */
/* ============================================================== */
.app {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--bg);
  opacity: 0;
  transition: opacity 0.9s ease;
}
.app.revealed { opacity: 1; }
.app.locked { pointer-events: none; }

/* ============================== RIBBON ======================== */
.ribbon {
  background: var(--ribbon);
  border-bottom: 1px solid var(--border);
  user-select: none;
}

.ribbon-top {
  display: flex;
  align-items: stretch;
  height: 34px;
  background: var(--ribbon-top);
  padding-left: 4px;
}
.menu-btn {
  background: none;
  border: none;
  width: 38px;
  font-size: 15px;
  color: var(--text-dim);
}
.menu-btn:hover { background: var(--hover); color: var(--text-bright); }

.tabs { display: flex; align-items: stretch; }
.tab {
  background: none;
  border: none;
  padding: 0 14px;
  font-size: 12.5px;
  color: var(--text-dim);
  position: relative;
  white-space: nowrap;
}
.tab:hover { color: var(--text-bright); background: rgba(255,255,255,0.04); }
.tab.active {
  color: var(--text-bright);
  background: var(--ribbon);
}
.tab.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
}

.run-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
  padding: 0 10px;
}
.run-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 12px;
  width: 30px;
  height: 24px;
  border-radius: 4px;
}
.run-btn.play { color: #4ec06a; font-size: 13px; }
.run-btn:hover:not(:disabled) { background: var(--hover); }
.run-btn:disabled { opacity: 0.4; cursor: default; }

.win-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}
.win-chip { font-size: 13px; color: var(--text-dim); }
.win-chip.avatar {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.win-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.win-dot.min { background: #f7c948; }
.win-dot.max { background: #4ec06a; }
.win-dot.close { background: #ef5b5b; }

/* tool ribbon */
.ribbon-tools {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  height: 172px;            /* taller so the bigger buttons clear the group labels */
  padding: 8px 10px 0;
  position: relative;
  overflow: hidden;
}
/* brand wordmark parked in the empty top-left of the ribbon */
.ribbon-brand {
  position: absolute;
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
  height: clamp(28px, 3vw, 40px);
  width: auto;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}
.nav-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 22px 0;
  position: relative;
  border-right: 1px solid var(--border-soft);
}
.group-label {
  position: absolute;
  bottom: 10px;
  left: 0; right: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #c2c2c8;
}
.nav-btn {
  background: #000000;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 120px;
  height: 110px;
  padding: 12px 8px 8px;
  font-size: 13px;
  line-height: 1.1;
  text-align: center;
  transition: border-color 0.15s, transform 0.12s, box-shadow 0.15s;
}
.nav-btn .ni { font-size: 33px; line-height: 1; }
.nav-btn .ni img { width: 66px; height: 66px; object-fit: contain; display: block; }
/* keep labels on a single line so they never spill out of the button */
.nav-btn .nl { white-space: nowrap; font-size: 13px; }
.nav-btn:hover {
  border-color: var(--border);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.nav-btn.active {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(10, 144, 255, 0.16), rgba(10, 144, 255, 0.04)), #000000;
  box-shadow: 0 0 0 1px var(--accent), 0 6px 18px rgba(10, 144, 255, 0.28);
  color: var(--text-bright);
}
.nav-btn.active .ni { filter: drop-shadow(0 0 7px rgba(10, 144, 255, 0.6)); }
.nav-btn.active .nl { text-shadow: 0 0 10px rgba(10, 144, 255, 0.35); }

.ribbon-section-label {
  position: absolute;
  right: 14px;
  bottom: 6px;
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.4px;
}

/* experience tab bar */
.exp-bar {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 30px;
  background: var(--exp-bar);
  border-top: 1px solid var(--border);
  padding: 0 6px;
}
.exp-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 24px;
  padding: 0 12px;
  font-size: 12px;
  color: var(--text-dim);
  background: var(--panel-2);
  border: 1px solid var(--border-soft);
  border-bottom: none;
  border-radius: 5px 5px 0 0;
}
.exp-tab.active { background: var(--bg); color: var(--text-bright); }
.exp-tab .exp-ico { color: var(--accent); }
.exp-close { color: var(--text-faint); font-size: 10px; }
.exp-tab.ghost { background: none; border: none; color: var(--text-faint); font-size: 15px; padding: 0 8px; }

/* ============================= WORK AREA ====================== */
.workarea {
  display: grid;
  grid-template-columns: 268px 1fr var(--right-w, 280px);
  min-height: 0;
  background: var(--border);
  gap: 1px;
}

/* shared panel chrome */
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  padding: 0 10px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
}
.panel-head.sub { background: var(--panel-2); height: 24px; }
.ph-title { font-size: 12px; font-weight: 600; color: var(--text); }
.ph-tools { color: var(--text-dim); font-size: 12px; }

/* ------------------------- LEFT PANEL ------------------------- */
.left-panel {
  background: var(--panel);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.lp-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px;
  padding: 0 13px;
  height: 42px;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 9px;
}
.lp-search .srch-ico { color: var(--text-faint); font-size: 15px; }
.lp-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
}
.lp-search input::placeholder { color: var(--text-faint); }

.lp-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 8px;
}
.crumb-back {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 12px;
  padding: 0;
}
.crumb-back:hover { text-decoration: underline; }
.crumb-current { color: var(--text-dim); font-size: 12px; }
.crumb-current::before { content: "/ "; color: var(--text-faint); }

.lp-scroll { flex: 1; overflow-y: auto; min-height: 0; }
.lp-subhead {
  padding: 12px 12px 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #c2c2c8;
}

/* category grid — fills the whole left panel */
.category-view {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.category-grid {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 6px 10px 12px;
}
.category-tile {
  flex: 1;
  min-height: 92px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  color: var(--text);
  text-align: left;
  transition: border-color 0.15s, transform 0.12s, box-shadow 0.15s;
}
.category-tile:hover {
  border-color: var(--accent);
  transform: translateX(3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}
.cat-ico {
  width: 58px; height: 58px;
  flex-shrink: 0;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.cat-ico svg { width: 31px; height: 31px; display: block; }
/* illustration icons replace the gradient chip — no chip bg/shadow */
.cat-ico-img { background: none; box-shadow: none; border-radius: 12px; width: 84px; height: 84px; }
.cat-ico-img img { width: 84px; height: 84px; object-fit: contain; display: block; }
.cat-text { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.cat-name { font-size: 16px; font-weight: 700; letter-spacing: 0.2px; }
.cat-count { font-size: 12px; color: var(--text-faint); }
.category-tile::after {
  content: "\203A";
  margin-left: auto;
  font-size: 24px;
  color: var(--text-faint);
  transition: color 0.15s, transform 0.15s;
}
.category-tile:hover::after { color: var(--accent); transform: translateX(3px); }

/* sample list */
.sample-list { display: flex; flex-direction: column; gap: 7px; padding: 2px 8px 12px; }
.sample-card {
  display: flex;
  gap: 10px;
  padding: 7px;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 7px;
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
}
.sample-card:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); }
.sample-card.active { border-color: var(--accent); background: var(--selected); }
.sample-thumb {
  width: 84px;
  height: 56px;
  border-radius: 5px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: rgba(255,255,255,0.85);
  position: relative;
  overflow: hidden;
}
.sample-thumb svg { width: 28px; height: 28px; opacity: 0.92; }
.sample-thumb .play-badge {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.28);
  font-size: 18px;
}
.sample-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sample-title { font-size: 12.5px; font-weight: 600; color: var(--text-bright); }
.sample-tag { font-size: 10px; color: var(--text-faint); }
.sample-desc {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.35;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.25s ease;
}
.sample-card:hover .sample-desc,
.sample-card.active .sample-desc { max-height: 60px; opacity: 1; }

/* mini explorer */
.mini-explorer { border-top: 1px solid var(--border); background: var(--panel-2); }
.tree { list-style: none; margin: 0; padding: 4px 0 8px; }
.tree-row {
  padding: 3px 10px;
  font-size: 12px;
  color: var(--text-dim);
  cursor: default;
}
.tree-row:hover { background: var(--hover); }
.tree-row.indent { padding-left: 26px; }
.tree-ico { margin: 0 3px; }

/* ------------------------- VIEWPORT --------------------------- */
.viewport {
  position: relative;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom));
  overflow: hidden;
  min-width: 0;
}
/* soft vignette — adds depth to the baseplate scene */
.viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 38%,
    transparent 55%, rgba(20, 30, 42, 0.32) 100%);
}
.vp-toolbar {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 5;
  display: flex;
  gap: 4px;
  background: rgba(28,28,30,0.78);
  padding: 3px;
  border-radius: 6px;
  backdrop-filter: blur(3px);
}
.vp-chip {
  background: none;
  border: none;
  color: #d7d7da;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
}
.vp-chip.active { background: var(--accent); color: #fff; }

.logo-dock-nav {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 1px;
  height: 1px;
  z-index: 6;
}
/* Deoblox brand logo parked top-right of the viewport / preview screen */
.viewport-logo {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 120px;
  height: auto;
  z-index: 7;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}

/* studio pages (Our Clients / Blog) — overlay the viewport center */
.studio-page {
  position: absolute; inset: 0; z-index: 8;
  background: linear-gradient(180deg, #0f1116, #0a0b0e);
  overflow-y: auto;
}
.studio-page-inner { max-width: 1000px; margin: 0 auto; padding: 40px 40px 60px; }
.studio-page-title { font-size: 34px; font-weight: 800; color: var(--text-bright); margin: 0; }
.studio-page-sub { font-size: 14px; color: var(--text-faint); margin: 8px 0 30px; }

.clients-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.client-card {
  background: var(--card-bg); border: 1px solid var(--border-soft); border-radius: 12px;
  padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.client-logo {
  width: 64px; height: 64px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: #fff;
}
.client-name { font-size: 15px; font-weight: 700; color: var(--text-bright); }
.client-note { font-size: 12px; color: var(--text-faint); line-height: 1.4; }
.studio-empty { color: var(--text-faint); font-size: 14px; padding: 40px 0; text-align: center; grid-column: 1/-1; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.blog-card {
  background: var(--card-bg); border: 1px solid var(--border-soft); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
}
.blog-cover { height: 150px; background-size: cover; background-position: center; background-color: #1b1d22; }
.blog-body { padding: 16px; }
.blog-date { font-size: 11px; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.blog-title { font-size: 16px; font-weight: 700; color: var(--text-bright); margin: 6px 0; }
.blog-excerpt { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }

/* faux baseplate */
.floor-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  perspective: 540px;
  pointer-events: none;
}
.grid-floor {
  position: absolute;
  left: -40%;
  right: -40%;
  bottom: -28%;
  height: 150%;
  transform: rotateX(70deg);
  transform-origin: bottom center;
  background-color: var(--grid-fill);
  background-image:
    linear-gradient(rgba(53,63,74,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53,63,74,0.5) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.85;
}

/* media stage */
.viewer-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 4;
  padding: 0;
}
.viewer-empty { text-align: center; max-width: 340px; }
.ve-decal {
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 30%, transparent 31%),
    conic-gradient(from 0deg, #2c2c30, #3a3a40, #2c2c30);
  box-shadow: 0 10px 28px rgba(0,0,0,0.32);
  position: relative;
  transform: rotate(8deg);
}
.ve-decal::after {
  content: "\2756";
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  color: #1f2127;
}
.ve-title { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: #2a2f37; }
.ve-sub { margin: 0; font-size: 12.5px; color: #3c424b; line-height: 1.45; }

/* the WHOLE viewport section is the player — media fills it edge to edge,
   zooming to perfectly fill it (object-fit: cover) whatever its native size */
.viewer-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0e1014;
  display: flex; align-items: center; justify-content: center;
}
.viewer-media img,
.viewer-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* zoom in/out to perfectly fit the screen */
  object-position: center;  /* scale from the middle — never any black space */
  display: block;
}
/* close (X) button — top-left of the player */
.media-close {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 4;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(14, 16, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  backdrop-filter: blur(4px);
  transition: background 0.15s, transform 0.12s;
}
.media-close:hover { background: rgba(34, 38, 46, 0.92); transform: scale(1.06); }
.media-close:active { transform: scale(0.95); }
/* title/description on a dark card (matched shade of black) at the bottom-left */
.media-caption {
  position: absolute;
  left: 18px; bottom: 18px;
  max-width: min(72%, 760px);
  z-index: 2;
  padding: 14px 22px;
  background: #14171c;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  color: #fff;
  text-align: left;
}
.media-caption .vc-title { font-size: 16px; font-weight: 700; }
.media-caption .vc-desc { font-size: 12.5px; color: #d2d6dc; margin-top: 3px; line-height: 1.4; }
.media-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,0.92);
  text-align: center;
  padding: 20px;
}
.media-placeholder .mp-ico { font-size: 46px; }
.media-placeholder .mp-ico svg { width: 56px; height: 56px; }
.media-placeholder .mp-type {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.85;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 2px 10px;
  border-radius: 20px;
}
/* "no preview uploaded yet" state — fills the screen like a powered-on but
   empty display, instead of a fake colored preview card */
.media-empty {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 24px;
  color: #aeb6c2;
  background: radial-gradient(120% 90% at 50% 30%, rgba(255,255,255,0.05), transparent 60%), #0e1014;
}
.media-empty .me-ico { width: 60px; height: 60px; opacity: 0.55; }
.media-empty .me-ico svg { width: 100%; height: 100%; display: block; }
.media-empty .me-title { font-size: 17px; font-weight: 700; color: #dce2ea; letter-spacing: 0.3px; }
.media-empty .me-sub { font-size: 12.5px; color: #828b98; line-height: 1.5; max-width: 380px; }
.viewer-caption {
  margin-top: 16px;
  text-align: center;
  background: rgba(20,22,26,0.82);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  max-width: min(78%, 760px);
}
.viewer-caption .vc-title { font-size: 14px; font-weight: 700; }
.viewer-caption .vc-desc { font-size: 12px; color: #c7ccd3; margin-top: 3px; }

/* ------------------------- RIGHT PANEL ------------------------ */
.right-panel {
  background: var(--panel);
  display: grid;
  grid-template-rows: 7fr 2fr 1fr;   /* reviews 70% · socials 20% · consult 10% */
  min-height: 0;
}
.rp-section { display: flex; flex-direction: column; min-height: 0; }
.rp-section.socials { border-top: 1px solid var(--border); overflow: hidden; }
.rp-scroll { flex: 1; overflow-y: auto; min-height: 0; padding: 8px; }

/* reviews */
.review-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 7px;
  padding: 9px 10px;
  margin-bottom: 8px;
}
.rev-top { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.rev-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.rev-name { font-size: 12px; font-weight: 600; color: var(--text-bright); }
.rev-stars { margin-left: auto; color: #f7c948; font-size: 11px; letter-spacing: 1px; }
.rev-text { font-size: 11.5px; color: var(--text-dim); line-height: 1.4; }

/* ============================================================== */
/*  iOS REVIEWS SHOWCASE  (iPhone frame in the reviews slot)      */
/* ============================================================== */
.rp-section.reviews {
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  overflow: hidden;
}
.iphone { position: relative; flex-shrink: 0; }
.iphone-frame {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 36px;
  padding: 2.6px;
  background: linear-gradient(155deg, #ff9838 0%, #f9701d 46%, #d64f08 100%);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.55),
    inset 0 0 0 2px rgba(255, 255, 255, 0.22),
    inset 0 -4px 10px rgba(0, 0, 0, 0.35),
    inset 0 3px 8px rgba(255, 255, 255, 0.25);
}
.iphone-island {
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 33%; height: 21px;
  background: #000; border-radius: 11px; z-index: 30;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 7px;
  box-shadow: 0 0 0 1px #3a3b40;   /* subtle dark-grey outline vs the panel */
}
.island-cam {
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #26384a 0%, #0a0f14 65%);
  box-shadow: inset 0 0 3px rgba(90, 140, 190, 0.5);
}
/* earpiece speaker slit at the very top */
.iphone-speaker {
  position: absolute;
  top: 5px; left: 50%; transform: translateX(-50%);
  width: 19%; height: 4px; border-radius: 3px;
  background: #26272c; z-index: 30;
}
.iphone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #0d0e11;
  display: flex; flex-direction: column;
  color: #fff;
  font-family: -apple-system, "SF Pro Text", "Segoe UI", var(--font);
}
/* thin black bezel ring around the display — real-phone vibe */
.iphone-screen::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px #000;
  pointer-events: none;
  z-index: 40;
}
.ios-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 20px 2px; font-size: 11px; font-weight: 600; flex-shrink: 0;
  background: #1c1c1e;                 /* upper panel grey (matches reference) */
}
.ios-sys { display: flex; align-items: center; gap: 4px; }
/* Telegram-style nav header */
.tg-nav {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px 7px; flex-shrink: 0;
  background: #1c1c1e;                 /* upper panel grey */
}
.tg-nav-side { flex: 1; display: flex; align-items: center; font-size: 13px; color: #3e9bff; }
.tg-rating { justify-content: flex-end; gap: 3px; font-size: 13px; font-weight: 700; color: #f5c33b; }
.tg-rating svg { width: 14px; height: 14px; }
.tg-nav-title { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.tg-nav-name { font-size: 16px; font-weight: 700; color: #fff; }
.ios-head {
  padding: 0 22px 8px; flex-shrink: 0;
  background: #1c1c1e;                 /* upper panel grey */
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ios-search {
  display: flex; align-items: center; gap: 6px;
  background: #2c2c2e; border-radius: 10px; padding: 7px 10px; margin-top: 7px;
}
.ios-search svg { width: 14px; height: 14px; flex-shrink: 0; }
.ios-search input {
  background: none; border: none; outline: none; color: #fff;
  font-size: 12px; width: 100%; font-family: inherit;
}
.ios-search input::placeholder { color: #8e8e93; }
.ios-chips { display: flex; gap: 6px; padding: 9px 13px 4px; overflow-x: auto; scrollbar-width: none; }
.ios-chips::-webkit-scrollbar { display: none; }
.ios-chip {
  flex-shrink: 0; font-size: 10.5px; font-weight: 600;
  padding: 5px 10px; border-radius: 16px;
  background: #1c1c1e; color: #aeb2b8; border: none; cursor: pointer;
  font-family: inherit; white-space: nowrap;
}
.ios-chip.is-active { background: #3e9bff; color: #fff; }
.ios-feed {
  flex: 1; overflow-y: auto; min-height: 0;
  padding: 2px 0 6px; display: flex; flex-direction: column;
  scrollbar-width: none;
}
.ios-feed::-webkit-scrollbar { display: none; }
.ios-empty { text-align: center; color: #8e8e93; font-size: 12px; padding: 30px 10px; }

/* ---- tab views: Reviews / Join Us / Contact Us ---- */
.tg-view {
  display: none;
  flex: 1; min-height: 0; overflow-y: auto;
  flex-direction: column;
  padding: 8px 14px 16px;
  scrollbar-width: none;
}
.tg-view::-webkit-scrollbar { display: none; }
.tg-view-title { font-size: 16px; font-weight: 800; color: #fff; margin: 2px 0 0; }
.tg-view-sub { font-size: 11px; color: #8a8f97; margin: 2px 0 10px; }
/* Join Us: fit all social options on one screen (no scroll) — the list fills
   the view and the buttons share the height evenly */
#viewJoin { overflow: hidden; }
#viewJoin #joinList { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 7px; }
#viewJoin .join-item { flex: 1 1 0; min-height: 44px; max-height: 76px; margin-bottom: 0; }
/* switch views by the screen's data-tab (hide reviews content, show the view) */
#iphoneScreen[data-tab="join"] .ios-head,
#iphoneScreen[data-tab="join"] .ios-chips,
#iphoneScreen[data-tab="join"] .ios-feed,
#iphoneScreen[data-tab="contact"] .ios-head,
#iphoneScreen[data-tab="contact"] .ios-chips,
#iphoneScreen[data-tab="contact"] .ios-feed { display: none; }
#iphoneScreen[data-tab="join"] #viewJoin { display: flex; }
#iphoneScreen[data-tab="contact"] #viewContact { display: flex; }

/* Join Us items */
.join-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 12px; margin-bottom: 8px;
  background: #1c1c1e; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff; text-decoration: none;
  transition: background 0.15s ease;
}
.join-item:hover { background: #232325; }
.join-ico {
  width: 34px; height: 34px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.06); border-radius: 9px;
}
.join-ico svg { width: 20px; height: 20px; }
.join-name { flex: 1; font-size: 13px; font-weight: 600; }
.join-go { color: #6a6f78; font-size: 18px; }

/* Contact info rows (tap to copy) */
.contact-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; margin-bottom: 8px;
  background: #1c1c1e; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff; cursor: pointer; text-align: left; font-family: inherit;
}
.contact-ico { width: 30px; height: 30px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.contact-ico svg { width: 20px; height: 20px; }
.contact-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.contact-label { font-size: 10px; color: #8a8f97; }
.contact-val { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-copy { flex-shrink: 0; color: #6a6f78; display: flex; align-items: center; }
.contact-copy svg { width: 15px; height: 15px; }
.contact-row.copied .contact-copy svg { display: none; }
.contact-row.copied .contact-copy::after { content: "Copied"; color: #30d158; font-size: 10px; font-weight: 700; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 11px; margin-top: 6px; }
.contact-form label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 11px; font-weight: 600; color: #c7c7cc;
}
.contact-form input, .contact-form textarea {
  background: #101012; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px;
  padding: 10px 12px; color: #fff; font-size: 12px; font-family: inherit; outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: #3e9bff; }
.contact-form textarea { min-height: 84px; resize: vertical; }
.contact-form ::placeholder { color: #6a6f78; }
.contact-send {
  margin-top: 4px; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px; border-radius: 12px; border: none; cursor: pointer;
  background: #fff; color: #0c0c0c; font-size: 13px; font-weight: 800; font-family: inherit;
  transition: transform 0.12s ease;
}
.contact-send:active { transform: scale(0.98); }
.contact-send svg { width: 16px; height: 16px; }
.contact-send:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Contact form status feedback */
.contact-status {
  font-size: 11.5px; font-weight: 600; text-align: center;
  padding: 0; min-height: 0; border-radius: 8px;
  transition: all 0.2s ease;
}
.contact-status:empty { display: none; }
.contact-status.is-success {
  display: block; color: #30d158; background: rgba(48, 209, 88, 0.1);
  padding: 8px 12px;
}
.contact-status.is-error {
  display: block; color: #ff453a; background: rgba(255, 69, 58, 0.1);
  padding: 8px 12px;
}

/* Telegram-style flat chat rows */
.rev-item {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 9px 14px; cursor: pointer; position: relative;
  transition: background 0.15s ease;
}
.rev-item:hover { background: rgba(255, 255, 255, 0.04); }
.rev-item::after {
  content: ""; position: absolute; left: 71px; right: 0; bottom: 0;
  height: 1px; background: rgba(255, 255, 255, 0.07);
}
.rev-item:last-child::after { display: none; }
.rev-ava {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.rev-body { flex: 1; min-width: 0; }
.rev-line1 { display: flex; align-items: center; gap: 6px; }
.rev-nm {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px;
  font-size: 13.5px; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rev-nm .rev-badge { width: 13px; height: 13px; flex-shrink: 0; }
.rev-when {
  display: flex; align-items: center; gap: 3px;
  font-size: 10.5px; color: #8a8a8e; flex-shrink: 0;
}
.rev-tick { display: inline-flex; align-items: center; color: #3e9bff; }
.rev-tick svg { width: 15px; height: 11px; }
.rev-line2 { display: flex; align-items: flex-end; gap: 8px; margin-top: 3px; }
.rev-snip {
  flex: 1; min-width: 0; font-size: 11.5px; color: #8a8f97; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rev-rate {
  flex-shrink: 0; font-size: 10px; font-weight: 700; color: #f5c33b;
  background: rgba(245, 195, 59, 0.14); padding: 2px 7px; border-radius: 10px;
}

/* bottom tab bar (3 tabs, review-themed) */
.tg-tabbar {
  display: flex; flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 0 2px;
  background: #1c1c1e;                 /* lower panel grey (matches reference) */
}
.tg-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: none; cursor: pointer;
  color: #7d818a; font-size: 9px; font-weight: 500; font-family: inherit;
}
.tg-tab svg { width: 22px; height: 22px; }
.tg-tab.is-active { color: #3e9bff; }

/* home indicator + safe-area space */
.ios-home { flex-shrink: 0; display: flex; justify-content: center; padding: 7px 0 8px; }
.ios-home-bar { width: 34%; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.85); }

/* dim + blur overlay (scoped to the phone screen) */
.ios-overlay {
  position: absolute; inset: 0; z-index: 10;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.32s ease, visibility 0s linear 0.32s;
}
.ios-overlay.show { opacity: 1; visibility: visible; transition: opacity 0.32s ease; }

/* the focused preview window — morphs from the list card (FLIP) */
.rev-preview {
  position: absolute; z-index: 20;
  background: #1c1c1e; border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.65);
  transition:
    top .44s cubic-bezier(.32, .72, 0, 1), left .44s cubic-bezier(.32, .72, 0, 1),
    width .44s cubic-bezier(.32, .72, 0, 1), height .44s cubic-bezier(.32, .72, 0, 1);
  will-change: top, left, width, height;
}
.rev-preview-inner {
  height: 100%; overflow-y: auto; padding: 13px; scrollbar-width: none;
  opacity: 0; transition: opacity 0.28s ease 0.08s;
}
.rev-preview-inner::-webkit-scrollbar { display: none; }
.rev-preview.open .rev-preview-inner { opacity: 1; }
/* Telegram-style preview header: centered name + status, avatar pinned right */
.pv-head {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 40px; margin-bottom: 12px;
}
.pv-head-main { text-align: center; max-width: 78%; }
.pv-name {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 14px; font-weight: 700; color: #fff;
}
.pv-name .rev-badge { width: 13px; height: 13px; flex-shrink: 0; }
.pv-status {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  margin-top: 3px; font-size: 10.5px; color: #8e8e93;
}
.pv-stars { color: #ffd60a; letter-spacing: 0.5px; }
.pv-sep { opacity: 0.55; }
.pv-avatar {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
}
/* message bubble holding the review text (Telegram chat style) */
.pv-bubble {
  background: #16171b;
  border-radius: 14px;
  padding: 11px 13px 8px;
  font-size: 12px; line-height: 1.5; color: #e6e6ea;
}
.pv-bubble-meta {
  display: flex; justify-content: flex-end; align-items: center; gap: 4px;
  margin-top: 6px; font-size: 9.5px; color: #8a8f97;
}
.pv-tick { display: inline-flex; align-items: center; color: #3e9bff; }
.pv-tick svg { width: 15px; height: 11px; }
.pv-cats { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.pv-cat { display: flex; align-items: center; gap: 8px; font-size: 10.5px; }
.pv-cat-k { width: 48px; color: #8e8e93; flex-shrink: 0; }
.pv-cat-bar { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.pv-cat-bar span { display: block; height: 100%; border-radius: 3px; background: #ffd60a; }
.pv-cat-v { width: 20px; text-align: right; color: #c7c7cc; flex-shrink: 0; }
.rev-tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 5px; }
.rev-tag { font-size: 9.5px; color: #c7c7cc; background: rgba(255, 255, 255, 0.08); padding: 3px 8px; border-radius: 6px; }

/* iOS-style context menu under the preview */
.ios-ctx {
  position: absolute; z-index: 20;
  background: rgba(44, 44, 46, 0.72);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  opacity: 0; transform: translateY(15px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.ios-ctx.show { opacity: 1; transform: none; }
.ios-ctx-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; font-size: 13px; color: #fff; cursor: pointer;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.12);
}
.ios-ctx-item:last-child { border-bottom: none; }
.ios-ctx-item:hover { background: rgba(255, 255, 255, 0.06); }
.ios-ctx-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.ios-ctx-item.destructive { color: #ff453a; }

/* toast (e.g. "link copied") shown inside the phone screen */
.ios-toast {
  position: absolute; left: 12px; right: 12px; bottom: 72px;
  z-index: 90;
  background: rgba(20, 20, 22, 0.95);
  color: #fff; font-size: 11.5px; line-height: 1.4;
  padding: 10px 14px; border-radius: 12px; text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.ios-toast.show { opacity: 1; transform: none; }

/* socials & status (20%) */
.socials-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  scrollbar-width: none;
  padding: 9px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.socials-body::-webkit-scrollbar { display: none; }
.social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.social-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  color: var(--text);
  font-size: 12px;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.12s;
}
.social-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.social-btn .sb-ico { font-size: 15px; }
.status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  padding: 0 2px;
}
.status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #2bd576;
  box-shadow: 0 0 8px #2bd576;
  flex-shrink: 0;
}

/* consult-with-us CTA (10%) */
.consult-wrap {
  border-top: 1px solid var(--border);
  padding: 10px;
  display: flex;
}
.consult-btn {
  flex: 1;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #2ded77, #0fb957);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  box-shadow: 0 6px 20px rgba(20, 200, 90, 0.45);
  transition: transform 0.14s ease, box-shadow 0.2s ease, filter 0.2s ease;
  animation: consult-pulse 2.6s ease-in-out infinite;
}
.consult-btn:hover {
  transform: translateY(-2px) scale(1.015);
  filter: brightness(1.08);
  box-shadow: 0 12px 32px rgba(20, 200, 90, 0.62);
}
.consult-btn:active { transform: translateY(0) scale(0.99); box-shadow: 0 4px 14px rgba(20, 200, 90, 0.5); }
.consult-ico { font-size: 17px; }
@keyframes consult-pulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(20, 200, 90, 0.4); }
  50%      { box-shadow: 0 9px 28px rgba(20, 200, 90, 0.72); }
}

/* ============================ STATUS BAR ===================== */
.status-bar {
  display: flex;
  align-items: center;
  height: 24px;
  background: var(--accent);
  color: #eaf4ff;
  font-size: 11px;
  padding: 0 12px;
}
.status-bar .sb-left { font-weight: 600; }
.status-bar .sb-mid { margin: 0 auto; opacity: 0.9; }
.status-bar .sb-right { opacity: 0.9; }

/* ============================ SCROLLBARS ===================== */
.lp-scroll::-webkit-scrollbar,
.rp-scroll::-webkit-scrollbar { width: 10px; }
.lp-scroll::-webkit-scrollbar-thumb,
.rp-scroll::-webkit-scrollbar-thumb {
  background: #3c3c42;
  border-radius: 6px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.lp-scroll::-webkit-scrollbar-thumb:hover,
.rp-scroll::-webkit-scrollbar-thumb:hover { background: #4a4a52; }

/* ============================ SMALL SCREENS ================= */
/* mobile-only controls — hidden on desktop, revealed in the touch media block */
.m-reviews-fab, .m-back-btn, .m-reviews-overlay { display: none; }
.m-nav-toggle { display:none; }

.screen-notice {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--intro-bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 30px;
  color: var(--text-dim);
}
.screen-notice img { width: 90px; opacity: 0.85; }
.screen-notice p { font-size: 15px; max-width: 320px; line-height: 1.5; }

@media (max-width: 860px) {
  .screen-notice { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo, .intro, .app, .grid-floor { transition-duration: 0.001ms !important; }
}

/* ============================================================== */
/*  MOBILE / TABLET  (touch devices only)                         */
/*  Gated on (hover:none) and (pointer:coarse): real desktops     */
/*  report hover:hover / pointer:fine and NEVER match this block, */
/*  at ANY window width — so the desktop layout is 100% unchanged. */
/* ============================================================== */
@media (hover: none) and (pointer: coarse) {
  /* touch devices get the real experience, not the "wider screen" notice */
  .screen-notice { display: none !important; }

  /* Drop the upper ribbon nav on phone/tablet to give the left (categories) and
     right (reviews) panels the full height. The studio's .app grid is
     `auto 1fr` (ribbon | workarea), so hiding the ribbon lets the workarea take
     the whole screen. Left + right panels themselves are kept exactly as-is.
     Desktop keeps its ribbon (this whole block never matches desktop). */
  #app .ribbon { display:block; position:absolute; z-index:120; top:0; right:0; width:min(380px,92vw); height:100%; transform:translateX(105%); transition:transform .32s ease; box-shadow:-16px 0 32px rgba(0,0,0,.35); overflow-y:scroll; overflow-x:hidden; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; touch-action:pan-y; }
  #app.nav-open .ribbon { transform:none; }
  #app .ribbon-tools { display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; height:auto; min-height:100%; overflow:visible; padding:58px 12px 18px; }
  #app .ribbon-brand { position:static; transform:none; align-self:flex-start; margin:0 8px 22px; }
  #app .nav-group { display:flex; flex-direction:column; gap:12px; width:100%; }
  #app .nav-btn { width:100%; height:94px; min-height:94px; flex-direction:row; justify-content:flex-start; gap:18px; padding:0 22px; border-radius:13px; }
  #app .nav-btn .ni { width:56px; height:56px; margin:0; }
  #app .nav-btn .nl { writing-mode:horizontal-tb; transform:none; font-size:16px; }
  #app .group-label { position:static; order:-1; text-align:left; margin:18px 10px 6px; font-size:13px; }
  @media (max-width: 600px) {
    /* The rotated phone workspace reads this as the visual centre of the
       upper panel. Keep the wordmark out of the tablet/desktop layout. */
    #app .ribbon-brand {
      align-self:center;
      height:clamp(34px, 9vw, 44px);
      margin:0 auto 22px;
    }
  }
  .m-nav-toggle { display:flex; position:absolute; z-index:130; top:14px; right:14px; width:42px; height:42px; padding:10px; border:1px solid rgba(255,255,255,.25); border-radius:10px; background:#101216; flex-direction:column; justify-content:center; gap:5px; box-shadow:0 6px 16px rgba(0,0,0,.35); }
  .m-nav-toggle span { display:block; height:2px; background:#fff; border-radius:99px; }

  /* Narrow the left (categories) panel so the sample preview/viewport expands
     into the freed space. */
  #app .workarea { grid-template-columns: 190px 1fr !important; }

  /* the big 84px category chips don't fit a narrow panel — shrink them and drop
     the "›" chevron so the category name + sample count have room (no truncation) */
  #app .cat-ico-img,
  #app .cat-ico-img img { width: 44px; height: 44px; }
  #app .category-tile { gap: 10px; padding: 0 12px; min-height: 72px; }
  #app .category-tile::after { display: none; }
  #app .cat-name { font-size: 13.5px; line-height: 1.2; letter-spacing: 0; }
  #app .cat-count { font-size: 11px; }

  /* Smaller caption on the rotated phone preview, preserving video space. */
  #app .media-caption { left:10px; bottom:10px; max-width:52%; padding:8px 12px; border-radius:9px; }
  #app .media-caption .vc-title { font-size:13px; }
  #app .media-caption .vc-desc { margin-top:2px; font-size:10.5px; line-height:1.25; }

  /* The reviews (right) panel is hidden inside the (rotated, landscape) studio.
     When opened it is MOVED (in app.js) into #mReviewsOverlay — a top-level,
     un-rotated overlay — so it presents UPRIGHT / portrait (the iPhone's natural
     orientation) instead of being rotated sideways with the studio. */
  #app .right-panel { display: none; }
  .m-reviews-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: var(--panel);
    transform: translateY(100%);
    transition: transform 0.42s cubic-bezier(.32, .72, 0, 1);
    visibility: hidden;
  }
  .m-reviews-overlay.open { transform: none; visibility: visible; }
  .m-reviews-overlay .right-panel {
    display: grid;
    position: static;
    width: 100%;
    height: 100%;
    transform: none;
    box-shadow: none;
  }

  /* highlighted "Reviews" button that opens the panel */
  .m-reviews-fab {
    display: inline-flex;
    position: absolute;
    bottom: 20px; right: 20px;
    z-index: 55;
    align-items: center; gap: 8px;
    padding: 12px 20px;
    border: none; border-radius: 30px;
    font-family: var(--font); font-size: 15px; font-weight: 800; letter-spacing: 0.3px;
    color: #fff; cursor: pointer;
    background: linear-gradient(135deg, #2aa4ff, #0a68e6);
    box-shadow: 0 8px 22px rgba(10, 144, 255, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  }
  .m-reviews-fab svg { width: 18px; height: 18px; }

  /* Back button inside the slid-in panel */
  .m-back-btn {
    display: inline-flex;
    position: absolute;
    top: 10px; left: 10px;
    z-index: 80;
    align-items: center; gap: 4px;
    padding: 8px 14px; border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(10, 12, 16, 0.68);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    color: #fff; font-family: var(--font); font-size: 13px; font-weight: 700; cursor: pointer;
  }

  /* Jack landing page: drop the decorative backdrop and let the cards go
     full-bleed so the main content fills the phone/tablet screen. */
  #jack-root .smoky-bg {
    background-image: none !important;
    background-color: #0a0a0c !important;
  }
  #jack-root .smoky-bg > div {
    padding-left: 6px !important;
    padding-right: 6px !important;
    padding-top: 6px !important;
  }

  /* The boot loader (#bootScreen) and the Jack landing page (#jack-root) are
     already fluid — they stay upright and just flow to the phone/tablet width.
     The studio loading banner (#intro) and the main studio interface (#app)
     are desktop-grade landscape UIs, so when the device is held in PORTRAIT we
     rotate them 90° to present them in landscape (turn the device to view). */
  @media (orientation: portrait) {
    #app,
    #intro {
      position: fixed;
      top: 0;
      left: 0;
      right: auto;
      bottom: auto;
      width: 100vh;
      height: 100vw;
      transform-origin: top left;
      /* rotate the layer into landscape and shift it back over the viewport */
      transform: translateY(100vh) rotate(-90deg);
    }
    /* keep the rotated layers from leaking page scroll (Jack page overrides
       this with its own !important jack-active rule, so it still scrolls) */
    html, body { overflow: hidden; }
  }

  /* In landscape orientation the studio already fits — no rotation needed. */
}
