/* dRS Invent. — site tasarım sistemi (2026). ModuMate sitesiyle aynı dil: koyu zemin, cyan vurgu. */
:root {
  --bg: #0B0F14; --bg-2: #0E1319; --card: #12161C; --card-2: #171C24;
  --line: #2E3A46; --line-soft: #1F2830;
  --text: #E6EDF3; --muted: #8A9BA8; --dim: #4A5560;
  --cyan: #00D4FF; --cyan-2: #40C8F0; --green: #00E676; --amber: #FFB300; --blue: #42A5F5; --red: #FF5252; --purple: #A078FF;
  --radius: 14px; --radius-sm: 8px;
  --font-head: "Barlow Condensed", "Barlow", "Bahnschrift", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --max: 1200px; --gutter: 20px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.1; letter-spacing: 0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.ico { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.2em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--cyan); color: #000; padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 600; z-index: 100; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 15, 20, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 6px; color: var(--text); line-height: 0; }
/* Resmi logo görseldir (tools/brand_logos.py) */
.brand img { display: block; height: 24px; width: auto; max-width: none; }
.brand:hover { text-decoration: none; }
.brand .tag { font-family: var(--font-body); font-weight: 400; font-size: 0.7rem; line-height: 1.2; color: var(--muted); margin-left: 8px; letter-spacing: 0.04em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a, .nav-links button.nav-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--muted); font-size: 0.92rem; font-weight: 500; background: none; border: 0; font-family: inherit; cursor: pointer; }
.nav-links a:hover, .nav-links a.is-active, .nav-links button.nav-btn:hover { color: var(--text); text-decoration: none; background: var(--card); }
.nav-links a.nav-hl { color: var(--cyan); font-weight: 600; }
.nav-links .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 250px; padding: 8px; margin-top: 6px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: 0 20px 40px rgba(0,0,0,0.5); list-style: none; }
.nav-links li:hover > .sub, .nav-links li:focus-within > .sub, .nav-links li.open > .sub { display: block; }
.nav-links .sub a { display: block; padding: 10px 12px; }
.nav-links .sub small { display: block; color: var(--dim); font-weight: 400; font-size: 0.78rem; margin-top: 2px; }
.nav-right { display: flex; align-items: center; gap: 6px; }
.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: var(--radius-sm); color: var(--text); border: 1px solid var(--line); }
.cart-link:hover { border-color: var(--cyan-2); text-decoration: none; }
.cart-link .ico { width: 20px; height: 20px; }
.cart-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--amber); color: #1a1200; font-size: 0.72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cart-count:empty, .cart-count[data-count="0"] { display: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: var(--radius-sm); width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .ico { width: 22px; height: 22px; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 66px; flex-direction: column; align-items: stretch; gap: 2px; background: var(--bg-2); border-bottom: 1px solid var(--line-soft); padding: 10px var(--gutter) 16px; max-height: calc(100vh - 66px); overflow: auto; }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links button.nav-btn { padding: 12px 10px; font-size: 1rem; width: 100%; justify-content: space-between; }
  .nav-links .sub { position: static; display: block; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 14px; margin: 0; }
  .brand .tag { display: none; }
}

/* ---------- Buttons / badges ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem; line-height: 1; border: 1px solid transparent; cursor: pointer; text-decoration: none; font-family: inherit; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--cyan); color: #04141B; }
.btn-primary:hover { background: #33DDFF; }
.btn-green { background: var(--green); color: #04160C; }
.btn-green:hover { background: #33EB8E; }
.btn-amber { background: var(--amber); color: #1a1200; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--cyan-2); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--line); color: var(--muted); background: var(--card); white-space: nowrap; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.badge-cyan { color: var(--cyan); border-color: rgba(0,212,255,.35); }
.badge-green { color: var(--green); border-color: rgba(0,230,118,.35); }
.badge-amber { color: var(--amber); border-color: rgba(255,179,0,.4); }
.badge-purple { color: var(--purple); border-color: rgba(160,120,255,.4); }
.badge-red { color: #FF8A80; border-color: rgba(255,82,82,.4); }
.eyebrow { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; display: block; }
.lead { color: var(--muted); font-size: 1.08rem; }

/* ---------- Layout ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(22px, 3vw, 36px); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .more { color: var(--muted); font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.section-head .more:hover { color: var(--cyan); text-decoration: none; }
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px; transition: border-color .2s ease, transform .2s ease; }
.card:hover { border-color: var(--line); }
.card p { color: var(--muted); font-size: 0.95rem; }
.card p:last-child { margin-bottom: 0; }
.icon-box { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(0,212,255,.08); border: 1px solid rgba(0,212,255,.25); color: var(--cyan); margin-bottom: 14px; }
.icon-box .ico { width: 22px; height: 22px; }
.icon-box.green { background: rgba(0,230,118,.08); border-color: rgba(0,230,118,.25); color: var(--green); }
.icon-box.amber { background: rgba(255,179,0,.08); border-color: rgba(255,179,0,.25); color: var(--amber); }
.icon-box.purple { background: rgba(160,120,255,.08); border-color: rgba(160,120,255,.25); color: var(--purple); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line-soft); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 78% 45%, rgba(0,212,255,.12), transparent 70%), radial-gradient(40% 40% at 15% 90%, rgba(160,120,255,.07), transparent 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 12px; }
.hero h1 .accent { color: var(--cyan); }
.hero-text { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual img { width: 100%; max-width: 520px; position: relative; z-index: 1; filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)); }
.hero-glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(0,212,255,.22), transparent 65%); filter: blur(20px); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 0%,100% { opacity: .55; transform: scale(.95);} 50% { opacity: 1; transform: scale(1.05);} }
.hero-visual .visual-cap { position: absolute; bottom: -6px; right: 0; z-index: 2; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { order: -1; } .hero-visual img { max-width: 380px; } }

/* Page hero (list pages) */
.page-hero { padding: clamp(40px, 6vw, 64px) 0 clamp(26px, 4vw, 40px); border-bottom: 1px solid var(--line-soft); background: radial-gradient(50% 60% at 70% 0%, rgba(0,212,255,.08), transparent 70%); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 6px; }
.page-hero .lead { max-width: 680px; margin-bottom: 0; }

/* ---------- Project cards (home) ---------- */
.project { display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; padding: 0; }
.project .thumb { aspect-ratio: 16 / 9; background: #070A0E; border-bottom: 1px solid var(--line-soft); display: grid; place-items: center; overflow: hidden; }
.project .thumb img { width: 100%; height: 100%; object-fit: cover; }
.project .body { padding: 20px 22px 0; }
.project .body h3 { font-size: 1.45rem; margin-bottom: 6px; }
.project .foot { padding: 16px 22px 22px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.project .foot .btn { padding: 10px 16px; font-size: 0.88rem; }

/* ---------- Product / content cards ---------- */
.pcard { display: flex; flex-direction: column; padding: 0; overflow: hidden; color: inherit; }
.pcard:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--line); }
.pcard .media { position: relative; aspect-ratio: 4 / 3; background: #070A0E; overflow: hidden; }
.pcard .media.square { aspect-ratio: 1; }
.pcard .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pcard:hover .media img { transform: scale(1.04); }
.pcard .media .badge { position: absolute; top: 10px; left: 10px; }
.pcard .media .play { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; background: var(--cyan); color: #04141B; border: 0; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.pcard .media .play .ico { width: 18px; height: 18px; }
.pcard .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard .cat { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.pcard h3 { font-size: 1.2rem; margin: 0; }
.pcard p { color: var(--muted); font-size: 0.9rem; margin: 0; flex: 1; }
.pcard .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.price { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; color: var(--text); letter-spacing: 0.02em; }
.price.free { color: var(--green); }
.price.pre { color: var(--amber); }

/* ---------- Filters ---------- */
.filters { display: flex; flex-direction: column; gap: 10px; margin: 22px 0 28px; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-row .label { font-size: 0.8rem; color: var(--dim); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; min-width: 84px; }
.chip { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-soft); background: var(--card); color: var(--muted); font-size: 0.86rem; font-weight: 500; }
.chip:hover { color: var(--text); border-color: var(--line); text-decoration: none; }
.chip.is-active { background: var(--cyan); color: #04141B; border-color: var(--cyan); }
.search { display: inline-flex; gap: 8px; margin-left: auto; }
.search input { background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 0.9rem; min-width: 200px; }
.search input:focus { outline: none; border-color: var(--cyan); }
.empty { text-align: center; color: var(--muted); padding: 56px 20px; border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Detail pages ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 0.85rem; color: var(--dim); padding: 18px 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span.cur { color: var(--text); }
.detail-hero { padding: 24px 0 40px; }
.detail-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; margin-top: 18px; }
.detail-grid > * { min-width: 0; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.gallery-main { background: #070A0E; border: 1px solid var(--line-soft); border-radius: var(--radius); aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; cursor: zoom-in; }
.gallery-main.square { aspect-ratio: 1; }
.gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button { flex: none; width: 76px; height: 58px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: #070A0E; padding: 0; cursor: pointer; }
.gallery-thumbs button.is-active { border-color: var(--cyan); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 10px 0 12px; }
.detail-info .intro { color: var(--muted); font-size: 1.02rem; }
.buy-box { margin-top: 20px; padding: 20px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); display: flex; flex-direction: column; gap: 14px; }
.buy-box .price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.buy-box .price { font-size: 2rem; }
.buy-box .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.buy-box .note { color: var(--muted); font-size: 0.85rem; margin: 0; }
.qty { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9rem; }
.qty input { width: 76px; background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: var(--radius-sm); padding: 9px; text-align: center; font: inherit; }
.preorder-box { border-color: rgba(255,179,0,.4); background: linear-gradient(135deg, rgba(255,179,0,.08), var(--card) 60%); }

.tabs { position: sticky; top: 66px; z-index: 30; background: rgba(11,15,20,.9); backdrop-filter: blur(10px); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.tabs .container { display: flex; gap: 4px; overflow-x: auto; }
.tabs a { padding: 14px 16px; color: var(--muted); font-weight: 600; font-size: 0.92rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.tabs a:hover, .tabs a.is-active { color: var(--text); border-bottom-color: var(--cyan); text-decoration: none; }
.block { padding: 40px 0; border-bottom: 1px solid var(--line-soft); }
.block:last-child { border-bottom: 0; }
.block h2 { font-size: 1.8rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.prose { color: #C9D4DE; font-size: 1.02rem; max-width: 780px; }
.prose p { margin-bottom: 1em; }
.prose strong { color: var(--text); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.feature { padding: 16px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line-soft); display: flex; gap: 12px; align-items: center; font-weight: 500; font-size: 0.92rem; }
.feature .icon-box { margin: 0; width: 36px; height: 36px; }
.spec { width: 100%; border-collapse: collapse; background: var(--card); font-size: 0.95rem; }
.spec-wrap { border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.spec th, .spec td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { width: 38%; font-family: var(--font-head); font-weight: 600; color: var(--cyan); font-size: 1rem; background: var(--bg-2); letter-spacing: 0.03em; }
.spec td { color: var(--muted); }
@media (max-width: 600px) { .spec th, .spec td { display: block; width: auto; } .spec th { border-bottom: 0; padding-bottom: 2px; } }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.media-item { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #000; border: 1px solid var(--line-soft); cursor: pointer; padding: 0; color: inherit; font: inherit; }
.media-item.square { aspect-ratio: 1; }
.media-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.media-item:hover img { transform: scale(1.04); }
.media-item .ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); }
.media-item .ph .ico { width: 42px; height: 42px; }
.media-item .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; font-size: 0.85rem; font-weight: 600; text-align: left; }
.media-item .kind { position: absolute; top: 8px; left: 8px; }
.media-item .playbtn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.92); color: #111; display: grid; place-items: center; }
.audio-list { display: grid; gap: 10px; }
.audio-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); flex-wrap: wrap; }
.audio-row .title { flex: 1; min-width: 140px; font-weight: 500; }
.audio-row audio { flex: 2; min-width: 220px; height: 36px; }
.dl-list { display: grid; gap: 10px; }
.dl { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); }
.dl.latest { border-color: rgba(0,212,255,.35); }
.dl .fileicon { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; background: rgba(0,212,255,.08); border: 1px solid rgba(0,212,255,.25); color: var(--cyan); }
.dl h4 { margin: 0 0 2px; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.dl .meta { color: var(--dim); font-size: 0.82rem; }
.dl .log { color: var(--muted); font-size: 0.88rem; margin: 6px 0 0; }
@media (max-width: 560px) { .dl { grid-template-columns: 48px 1fr; } .dl .btn { grid-column: 1 / -1; } }
.help-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px; background: linear-gradient(135deg, rgba(0,230,118,.08), var(--card) 60%); border: 1px solid rgba(0,230,118,.3); border-radius: var(--radius); }
.help-card h3 { margin: 0 0 4px; }
.help-card p { margin: 0; color: var(--muted); }

/* ---------- Overlays ---------- */
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.95); z-index: 999; align-items: center; justify-content: center; padding: 20px; }
.overlay.active { display: flex; }
.overlay img { max-width: 92vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius-sm); }
.overlay .frame { width: min(92vw, 1000px); aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-sm); overflow: hidden; }
.overlay .frame iframe, .overlay .frame video { width: 100%; height: 100%; border: 0; }
.overlay .close { position: absolute; top: 16px; right: 20px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.1); border: 0; color: #fff; cursor: pointer; display: grid; place-items: center; }
.overlay .navbtn { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.1); border: 0; color: #fff; cursor: pointer; display: grid; place-items: center; }
.overlay .navbtn.prev { left: 16px; } .overlay .navbtn.next { right: 16px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); padding: 12px 18px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 500; box-shadow: 0 20px 40px rgba(0,0,0,.5); opacity: 0; transition: all .25s ease; z-index: 1000; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { border-color: rgba(0,230,118,.5); } .toast.err { border-color: rgba(255,82,82,.5); }
.mini-player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: rgba(14,19,25,.95); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 10px var(--gutter); display: none; }
.mini-player.show { display: block; }
.mini-player .inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.mini-player .title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 0.9rem; }
.mini-player .bar { flex: 2; height: 6px; border-radius: 3px; background: var(--line-soft); overflow: hidden; cursor: pointer; }
.mini-player .bar i { display: block; height: 100%; width: 0; background: var(--cyan); }
.mini-player button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--cyan); color: #04141B; display: grid; place-items: center; cursor: pointer; font-size: 0.8rem; }
.mini-player button.x { background: transparent; color: var(--muted); }

/* ---------- Forms / flash / tables ---------- */
.form { display: grid; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field label .req { color: var(--amber); }
.field input, .field textarea, .field select { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 12px; font: inherit; font-size: 0.95rem; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,212,255,.15); }
.field textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card); margin-bottom: 18px; }
.flash.ok { border-color: rgba(0,230,118,.45); color: #B9F6CA; }
.flash.err { border-color: rgba(255,82,82,.45); color: #FF8A80; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); color: var(--muted); font-size: 0.95rem; }
.contact-list li .ico { color: var(--cyan); margin-top: 3px; }
.contact-list li strong { color: var(--text); display: block; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table td { padding: 14px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: 0; }
.cart-table img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: #070A0E; }
.cart-table .ttl { font-weight: 600; }
.cart-table .sub { color: var(--dim); font-size: 0.82rem; }
.cart-table form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.cart-table input[type=number] { width: 66px; background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 7px; text-align: center; font: inherit; }
.iconbtn { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 6px; width: 34px; height: 34px; display: inline-grid; place-items: center; cursor: pointer; }
.iconbtn:hover { color: var(--text); border-color: var(--cyan-2); }
.iconbtn.danger:hover { color: #FF8A80; border-color: rgba(255,82,82,.5); }
.summary { position: sticky; top: 90px; }
.summary .line { display: flex; justify-content: space-between; padding: 8px 0; color: var(--muted); }
.summary .total { display: flex; justify-content: space-between; padding: 12px 0 0; margin-top: 8px; border-top: 1px solid var(--line); font-weight: 700; font-size: 1.15rem; }
@media (max-width: 700px) { .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; } .cart-table td { padding: 6px 0; border: 0; } .cart-table tr { padding: 12px 0; border-bottom: 1px solid var(--line-soft); } }
.success-box { text-align: center; padding: 48px 24px; }
.success-box .icon-box { margin: 0 auto 16px; width: 64px; height: 64px; }
.success-box .icon-box .ico { width: 30px; height: 30px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding: 44px 0 28px; color: var(--muted); font-size: 0.9rem; margin-top: auto; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-size: 1rem; color: var(--text); margin-bottom: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--text); }
.footer-brand .brand img { height: 28px; }
.footer-brand p { margin: 10px 0 0; max-width: 320px; }
.social { display: flex; gap: 8px; margin-top: 14px; }
.social a { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line); display: inline-grid; place-items: center; color: var(--muted); }
.social a:hover { color: var(--text); border-color: var(--cyan-2); text-decoration: none; }
.footer-copy { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 0.8rem; color: var(--dim); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } .hero-glow { animation: none; } .btn:hover, .pcard:hover { transform: none; } }
