/* Layout: one phone-width app column floating over a starry indigo field, framed like a phone on wide screens.
   Single dark look on purpose: it is the Sitecom brand world from the client's own artwork. */
:root {
  --night: #050720;
  --indigo: #0d0b3a;
  --violet: #24106a;
  --panel: rgba(22, 24, 84, .55);
  --panel-line: rgba(120, 140, 255, .18);
  --teal: #2ed3c6;
  --beam: #3d8bff;
  --ink: #eceeff;
  --ink-soft: #a9acd9;
  --ink-faint: #6e71a8;
  --f-logo: "Montserrat", "Century Gothic", "Segoe UI", sans-serif;
  --f-body: "Jost", "Futura", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
html, body { min-height: 100%; }
body {
  background: var(--night);
  background-image:
    radial-gradient(ellipse 70% 55% at 0% 35%, rgba(70, 30, 170, .55), transparent 70%),
    radial-gradient(ellipse 60% 45% at 75% 10%, rgba(20, 50, 170, .45), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(30, 20, 120, .5), transparent 70%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
#sky { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

.app {
  position: relative; z-index: 1;
  max-width: 440px; margin: 0 auto; min-height: 100vh;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
  padding-block: 0 40px;
}
@media (min-width: 700px) {
  .app {
    margin-block: 28px; min-height: calc(100vh - 56px);
    border: 1px solid var(--panel-line); border-radius: 38px;
    background: rgba(5, 7, 32, .45);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 0 0 6px rgba(255, 255, 255, .02);
  }
}

/* Logo, rebuilt from the client artwork: white letters, teal I and O, pixel check over the I */
.logo { font-family: var(--f-logo); font-weight: 400; line-height: 1; letter-spacing: .07em; color: #fff; display: inline-flex; align-items: flex-end; position: relative; }
.logo .t { color: var(--teal); position: relative; }
.logo .px { position: absolute; width: .62em; height: .445em; left: 50%; bottom: .9em; transform: translateX(-.27em); fill: var(--teal); }
.tagline { font-family: var(--f-logo); font-weight: 500; color: #fff; letter-spacing: .02em; }

.hero { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-block: 56px 26px; text-align: center; }
.hero .logo { font-size: clamp(52px, 17vw, 70px); }
.hero .tagline { font-size: clamp(10.5px, 3vw, 12.5px); }

.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  display: grid; grid-template-columns: 40px 1fr 40px; align-items: center;
  padding-block: 14px; margin-bottom: 4px;
  background: linear-gradient(var(--night) 60%, transparent);
}
.bar .logo { font-size: 24px; justify-self: center; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--panel-line);
  background: var(--panel); color: var(--ink); display: grid; place-items: center; cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
button:focus-visible, a:focus-visible, input:focus-visible, .tile:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.beam { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, rgba(61, 139, 255, .35) 15%, #6fb6ff 50%, rgba(61, 139, 255, .35) 85%, transparent); box-shadow: 0 0 10px 1px rgba(61, 139, 255, .55); }

.search { position: relative; }
.search input {
  width: 100%; box-sizing: border-box; height: 50px; border-radius: 14px;
  border: 1px solid var(--panel-line); background: rgba(14, 16, 64, .75); color: var(--ink);
  font: 400 16px var(--f-body); padding: 0 16px 0 46px;
}
.search input::placeholder { color: var(--ink-faint); }
.search svg { position: absolute; left: 15px; top: 15px; width: 20px; height: 20px; stroke: var(--teal); fill: none; stroke-width: 2; }

.section-h { display: flex; align-items: baseline; justify-content: space-between; margin: 30px 0 14px; }
.section-h h2 { margin: 0; font: 400 21px var(--f-body); letter-spacing: .02em; }
.section-h span { color: var(--ink-faint); font-size: 14px; font-variant-numeric: tabular-nums; }

.feature {
  display: block; width: 100%; text-align: left; cursor: pointer; color: inherit;
  border: 1px solid var(--panel-line); border-radius: 22px; padding: 18px 18px 20px;
  background: linear-gradient(160deg, rgba(36, 16, 106, .55), rgba(8, 12, 50, .7));
  font-family: inherit; margin-top: 22px;
}
.feature .kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.feature h3 { margin: 6px 0 0; font: 400 26px var(--f-body); letter-spacing: .02em; }
.feature ul { margin: 6px 0 0; }

.photo {
  position: relative; width: 100%; max-width: 100%; aspect-ratio: 780 / 470;
  background-image: url("/img/hp-14-dq5039la.webp"); background-repeat: no-repeat;
  background-size: 131.3% auto; background-position: 49.2% 45%;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 62%, transparent 100%);
}

.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile {
  display: flex; flex-direction: column; gap: 4px; text-align: left; cursor: pointer; color: inherit;
  font-family: inherit; border: 1px solid var(--panel-line); border-radius: 18px;
  background: var(--panel); padding: 12px 12px 14px; min-width: 0;
  transition: border-color .2s, transform .2s;
}
.tile:hover { border-color: rgba(46, 211, 198, .55); transform: translateY(-2px); }
.tile .art { height: 78px; margin-bottom: 14px; }
.tile b, .tile small { position: relative; z-index: 1; }
.tile b { font-weight: 400; font-size: 16px; line-height: 1.25; }
.tile small { color: var(--ink-faint); font-size: 13px; font-variant-numeric: tabular-nums; }

.art { position: relative; }
.art svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 6px rgba(46, 211, 198, .55)); }
.art .ln { fill: rgba(46, 211, 198, .07); stroke: #63ebdf; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.art .gl { fill: rgba(61, 139, 255, .28); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.prod .art { height: 88px; margin-bottom: 14px; }
.prod b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; }
.prod small { margin-top: auto; padding-top: 4px; }

.page-title { margin: 6px 0 2px; font: 400 28px var(--f-body); letter-spacing: .02em; text-wrap: balance; }
.page-sub { color: var(--ink-soft); margin: 0 0 18px; font-size: 15px; }

/* Product sheet: mirrors the client's HP 14-DQ5039LA artwork */
.sheet { display: flex; flex-direction: column; gap: 22px; padding-top: 8px; }
.sheet-head { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sheet-head .logo { font-size: 44px; }
.sheet-head .tagline { font-size: 9.5px; }
.sheet h1 { margin: 14px 0 0; text-align: center; font: 400 clamp(26px, 8vw, 36px) var(--f-body); letter-spacing: .03em; text-wrap: balance; }
.stage { position: relative; display: grid; place-items: center; min-height: 200px; }
.stage .art { width: 82%; height: 210px; }
.stage .art svg { filter: drop-shadow(0 0 10px rgba(46, 211, 198, .7)); }
.stage::before, .stage::after {
  content: ""; position: absolute; height: 1px; left: -18px; right: -18px; z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(46, 211, 198, .6) 30%, rgba(160, 255, 250, .9) 65%, transparent);
  box-shadow: 0 0 12px 2px rgba(46, 211, 198, .45);
}
.stage::before { top: 58%; opacity: .55; }
.stage::after { top: 82%; }
.specs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.specs li { display: grid; grid-template-columns: 12px 1fr; gap: 16px; align-items: baseline; font-size: clamp(17px, 5vw, 20px); font-weight: 400; letter-spacing: .015em; line-height: 1.35; }
.specs li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); transform: translateY(-2px); }
.specs span { min-width: 0; overflow-wrap: anywhere; }
.feature .specs { gap: 6px; margin-top: 4px; }
.feature .specs li { font-size: 15px; gap: 12px; }
.feature .specs li::before { width: 7px; height: 7px; }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 14px;
  font: 500 15px var(--f-body); letter-spacing: .02em; text-decoration: none; cursor: pointer;
}
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-main { background: var(--teal); color: #04221f; border: 0; box-shadow: 0 0 18px rgba(46, 211, 198, .35); }
.btn-ghost { background: transparent; color: var(--teal); border: 1px solid rgba(46, 211, 198, .6); }
.note { color: var(--ink-faint); font-size: 13px; text-align: center; margin: -8px 0 0; }

.empty { text-align: center; color: var(--ink-soft); padding: 30px 10px; line-height: 1.6; }
.foot { text-align: center; color: var(--ink-faint); font-size: 12.5px; letter-spacing: .04em; margin-top: 34px; line-height: 1.7; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  z-index: 20; background: rgba(14, 16, 64, .95); border: 1px solid rgba(46, 211, 198, .5);
  color: var(--ink); padding: 10px 18px; border-radius: 12px; font-size: 14px; max-width: calc(100% - 40px);
  user-select: all;
}
.view { animation: rise .35s ease both; }
@keyframes rise { from { opacity: .4; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view { animation: none; } .tile { transition: none; } }

/* Admin panel */
.admin-btn { position: absolute; top: 14px; right: 0; }
.hero { position: relative; }
.panel { border: 1px solid var(--panel-line); border-radius: 20px; background: var(--panel); padding: 18px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.panel h2 { margin: 0; font: 400 20px var(--f-body); letter-spacing: .02em; }
.panel p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.field input[type=text], .field input[type=tel] {
  height: 46px; border-radius: 12px; border: 1px solid var(--panel-line); background: rgba(5, 7, 32, .7);
  color: var(--ink); font: 400 16px var(--f-body); padding: 0 14px; box-sizing: border-box; width: 100%;
}
.field input[type=file] { color: var(--ink-soft); font: 400 14px var(--f-body); max-width: 100%; }
.field input[type=file]::file-selector-button { font: 500 14px var(--f-body); border-radius: 10px; border: 1px solid rgba(46, 211, 198, .6); background: transparent; color: var(--teal); padding: 8px 12px; margin-right: 10px; cursor: pointer; }
.err { color: #ff9b9b; font-size: 13.5px; margin: 0; }
.ok { color: var(--teal); font-size: 14px; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stats div { border-radius: 12px; background: rgba(5, 7, 32, .6); padding: 10px; text-align: center; }
.stats b { display: block; font: 400 24px var(--f-body); font-variant-numeric: tabular-nums; }
.stats span { font-size: 12.5px; color: var(--ink-soft); }
.sample { list-style: none; margin: 0; padding: 0; font-size: 13.5px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 4px; }
.sample li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--panel-line); }
.sup:first-of-type { border-top: 0; }
.sup small { color: var(--ink-faint); display: block; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row .btn { flex: 1 1 140px; }
.btn[disabled] { opacity: .5; cursor: progress; }
.field select {
  height: 46px; border-radius: 12px; border: 1px solid var(--panel-line); background: rgba(5, 7, 32, .7);
  color: var(--ink); font: 400 15px var(--f-body); padding: 0 12px; width: 100%; max-width: 100%; min-width: 0;
}
.tbl-wrap { overflow-x: auto; border: 1px solid var(--panel-line); border-radius: 12px; background: rgba(5, 7, 32, .5); }
.tbl { border-collapse: collapse; font-size: 13px; min-width: 100%; }
.tbl th, .tbl td { padding: 8px 10px; text-align: left; white-space: nowrap; max-width: 190px; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid var(--panel-line); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th { color: var(--ink-faint); font-weight: 500; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.tbl .pick-c { background: rgba(46, 211, 198, .16); color: #fff; }
.tbl .pick-d { background: rgba(61, 139, 255, .2); color: #fff; }
.tbl th.pick-c { color: var(--teal); }
.tbl th.pick-d { color: #8fc2ff; }
.imp-result { display: flex; flex-direction: column; gap: 12px; }
#imp-preview { display: flex; flex-direction: column; gap: 12px; }

/* Uploaded product photos sit on a light card so white-background pictures look intentional */
.art.pic { background: #f4f6ff; border-radius: 14px; overflow: hidden; display: grid; place-items: center; }
.art.pic img { width: 100%; height: 100%; object-fit: contain; padding: 8px; box-sizing: border-box; display: block; }
.stage .art.pic { box-shadow: 0 0 28px rgba(46, 211, 198, .35); border-radius: 18px; }

/* Admin: product photos */
.ph-list { display: flex; flex-direction: column; gap: 10px; }
.ph-row { border: 1px solid var(--panel-line); border-radius: 14px; background: rgba(5, 7, 32, .5); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ph-row.open { border-color: rgba(46, 211, 198, .55); }
.ph-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.ph-thumb { width: 64px; height: 52px; flex: none; position: relative; }
.ph-thumb .art { position: absolute; inset: 0; }
.ph-thumb img { width: 100%; height: 100%; object-fit: contain; background: #f4f6ff; border-radius: 10px; padding: 4px; box-sizing: border-box; }
.ph-info { min-width: 0; }
.ph-info b { font-weight: 400; font-size: 15px; line-height: 1.3; display: block; overflow-wrap: anywhere; }
.ph-info small { color: var(--ink-faint); font-size: 12.5px; }
.ph-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ph-actions .btn { flex: 1 1 120px; text-decoration: none; }
.ph-drop { border: 1.5px dashed rgba(46, 211, 198, .6); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; outline: none; }
.ph-drop:focus { background: rgba(46, 211, 198, .06); }
.ph-drop p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.ph-file { align-self: flex-start; cursor: pointer; }
.ph-url { display: flex; gap: 8px; }
.ph-url input { flex: 1; min-width: 0; }
