/* Patiş Anket: ortak tasarım sistemi (müşteri sayfası + yönetici paneli).
   Marka renkleri en üstteki değişkenlerde toplanmıştır; logoya göre yalnızca buradan ayarlanır. */
:root {
  /* Logodan alınan marka renkleri: lacivert ve yeşil */
  --navy: #232a5c;
  --green: #52b81f;
  --bg: #edf3f0;
  --surface: #ffffff;
  --ink: #1b2250;
  --muted: #545f86;
  --line: #d3dde0;
  --accent: #232a5c;
  --accent-2: #38428a;
  --accent-ink: #ffffff;
  --green-ink: #2d7a0e;
  --wa-a: #2d7a0e;
  --wa-b: #1f6a08;
  --wa-ink: #ffffff;
  --glow-a: #52b81f;
  --glow-b: #3a4694;
  --chip: #e1ebea;
  --star: #f2a900;
  --star-off: #ccd6dc;
  --danger: #b3261e;
  --ok: #1f7a2c;
  --shadow: 0 18px 40px -22px rgba(28, 34, 80, 0.5);
  --font-display: 'Bricolage Grotesque', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f2b;
    --surface: #141a47;
    --ink: #eceffd;
    --muted: #a4acd6;
    --line: #262e66;
    --accent: #7ed44a;
    --accent-2: #5cb82c;
    --accent-ink: #0b0f2b;
    --green-ink: #8be05a;
    --wa-a: #8be05a;
    --wa-b: #6cc83a;
    --wa-ink: #0b0f2b;
    --glow-a: #3f8f1a;
    --glow-b: #3a4694;
    --chip: #1b2358;
    --star: #ffbf2e;
    --star-off: #343d78;
    --danger: #ff8a80;
    --ok: #7ee0a0;
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.85);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--font-body);
  padding-block: max(18px, env(safe-area-inset-top, 0px)) calc(56px + env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  overflow-x: hidden;
}
/* Yavaşça kayan renk lekeleri */
body::before {
  content: '';
  position: fixed;
  inset: -25%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 30% at 18% 12%, color-mix(in srgb, var(--glow-a) 34%, transparent), transparent 70%),
    radial-gradient(34% 28% at 88% 22%, color-mix(in srgb, var(--glow-b) 26%, transparent), transparent 70%),
    radial-gradient(40% 30% at 55% 95%, color-mix(in srgb, var(--glow-a) 22%, transparent), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.08); } }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.shell { width: 100%; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.shell.wide { max-width: 780px; }
.loading { color: var(--muted); padding: 60px 0; text-align: center; }

/* Giriş animasyonları: sadece .animate altında ve hareket tercih edilmişse */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.7s var(--ease) both; animation-delay: var(--d, 0ms); }
  .pop-in { animation: popin 0.6s var(--ease) both; animation-delay: var(--d, 0ms); }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes popin { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }

/* Marka çubuğu */
.brandbar { display: flex; align-items: center; gap: 12px; }
.logo { width: 56px; height: 56px; border-radius: 50%; background: #fff; object-fit: cover; flex: none; box-shadow: var(--shadow); }
.logo.big { width: 112px; height: 112px; }
.logo-fallback { width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); font: 700 24px/1 var(--font-display); box-shadow: var(--shadow); }
.logo-fallback.big { width: 112px; height: 112px; font-size: 48px; }
@media (prefers-reduced-motion: no-preference) { .float { animation: float 5s ease-in-out infinite; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
.signoff { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--muted); padding: 8px 0; }
.signoff strong { font: 700 18px/1.2 var(--font-display); color: var(--ink); }
.brandbar .name { display: flex; flex-direction: column; min-width: 0; }
.brandbar .name strong { font: 700 17px/1.2 var(--font-display); }
.brandbar .name span { font-size: 13px; color: var(--muted); }
.brandbar .when { margin-left: auto; font-size: 13px; color: var(--muted); text-align: right; }

.card {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 18px; min-width: 0; box-shadow: var(--shadow);
}
.lead { color: var(--muted); font-size: 17px; }
.eyebrow { font: 600 12px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-ink); }
.hero-title { font-size: clamp(30px, 8vw, 40px); }

/* Fotoğraf ve önce/sonra karşılaştırma */
.photo { position: relative; border-radius: 26px; overflow: hidden; background: var(--chip); aspect-ratio: 4 / 5; max-width: 100%; box-shadow: var(--shadow); isolation: isolate; }
.photo img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.photo.loading::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--surface) 55%, transparent) 50%, transparent 70%); background-size: 220% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (prefers-reduced-motion: no-preference) {
  .photo img.main { animation: photoin 1.1s var(--ease) both; }
}
@keyframes photoin { from { transform: scale(1.12); filter: blur(8px); opacity: 0; } to { transform: none; filter: none; opacity: 1; } }
.photo .shade { position: absolute; inset: auto 0 0 0; height: 38%; background: linear-gradient(to top, rgba(4, 28, 32, 0.55), transparent); pointer-events: none; z-index: 1; }
.compare img { position: absolute; inset: 0; }
.compare .over { clip-path: inset(0 calc(100% - var(--p, 50%)) 0 0); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--p, 50%); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.12), 0 0 24px rgba(0,0,0,0.35); z-index: 2; pointer-events: none; }
.compare .handle::after { content: '↔'; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #fff; color: #0d2b31; display: grid; place-items: center; font-size: 20px; font-weight: 700; box-shadow: 0 8px 22px rgba(0,0,0,0.35); }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; touch-action: pan-y; }
.compare:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.compare .tagpill { position: absolute; top: 14px; z-index: 2; padding: 6px 12px; border-radius: 999px; background: rgba(6, 30, 34, 0.7); color: #eefafa; font: 600 12px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; backdrop-filter: blur(6px); pointer-events: none; }
.compare .tagpill.l { left: 14px; }
.compare .tagpill.r { right: 14px; }
.photo .name-tag { position: absolute; left: 18px; bottom: 16px; z-index: 2; color: #fff; font: 700 26px/1 var(--font-display); text-shadow: 0 2px 14px rgba(0,0,0,0.45); pointer-events: none; }

/* Bakım kartı */
.ticket { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-top: 2px dashed var(--line); padding-top: 16px; margin: 0; }
.ticket div { min-width: 0; }
.ticket dt { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ticket dd { margin: 3px 0 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 420px) { .ticket { grid-template-columns: 1fr 1fr; } .ticket div:first-child { grid-column: 1 / -1; } }

/* Form */
form { display: flex; flex-direction: column; gap: 20px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend, .label { font-weight: 600; margin-bottom: 10px; padding: 0; display: block; }
.hint { font-size: 14px; color: var(--muted); font-weight: 400; }
.stars { display: flex; gap: 2px; justify-content: space-between; max-width: 340px; }
.stars label { position: relative; cursor: pointer; padding: 4px; line-height: 0; border-radius: 14px; flex: 1; display: grid; place-items: center; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars svg { width: 100%; max-width: 54px; height: auto; aspect-ratio: 1; fill: var(--star-off); transition: fill 0.2s, transform 0.25s var(--ease); overflow: visible; }
.stars label:hover svg { transform: scale(1.12) rotate(-4deg); }
.stars label.on svg { fill: var(--star); filter: drop-shadow(0 4px 10px color-mix(in srgb, var(--star) 55%, transparent)); }
.stars label.bounce svg { animation: starpop 0.55s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes starpop { 0% { transform: scale(0.7) rotate(-18deg); } 55% { transform: scale(1.3) rotate(8deg); } 100% { transform: scale(1) rotate(0); } }
.stars input:focus-visible + svg { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 12px; }
.spark { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--star); pointer-events: none; animation: spark 0.7s var(--ease) forwards; }
@keyframes spark { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--x), var(--y)) scale(0); opacity: 0; } }
.rating-text { min-height: 28px; margin-top: 8px; font: 600 18px/1.3 var(--font-display); color: var(--ink); }
.rating-text.swap { animation: swap 0.35s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--chip); border: 1.5px solid transparent; font-weight: 500; cursor: pointer; transition: transform 0.2s var(--ease), background 0.2s, color 0.2s; }
.chip:hover span { transform: translateY(-2px); }
.chip input:checked + span { background: var(--accent); color: var(--accent-ink); transform: scale(1.04); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }

input[type="text"], input[type="tel"], select, textarea {
  width: 100%; border: 1.5px solid var(--line); background: color-mix(in srgb, var(--bg) 70%, var(--surface)); border-radius: 14px; padding: 12px 14px; min-height: 50px; transition: border-color 0.2s, box-shadow 0.2s;
}
input[type="text"]:focus, input[type="tel"]:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
textarea { min-height: 112px; resize: vertical; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { font-weight: 600; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.check span { color: var(--muted); font-size: 15px; }

.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 24px; border-radius: 16px; border: 1.5px solid transparent; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); font-weight: 600; text-decoration: none; cursor: pointer; text-align: center; box-shadow: 0 12px 26px -14px var(--accent); transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px var(--accent); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,0.35) 50%, transparent 65%); transform: translateX(-120%); }
.btn:hover::after { transform: translateX(120%); transition: transform 0.7s var(--ease); }
.btn:disabled { opacity: 0.7; cursor: default; transform: none; }
.btn.ghost { background: transparent; color: var(--accent); border-color: var(--accent); box-shadow: none; }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn.danger { background: transparent; border-color: var(--danger); color: var(--danger); box-shadow: none; }
.btn.danger.confirm { background: var(--danger); color: var(--surface); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--accent-ink) 35%, transparent); border-top-color: var(--accent-ink); animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { color: var(--danger); font-weight: 600; min-height: 1px; }
.ok { color: var(--ok); font-weight: 600; }

/* Teşekkür ekranı */
.check-ring { width: 76px; height: 76px; }
.check-ring circle { fill: color-mix(in srgb, var(--accent) 16%, transparent); stroke: var(--accent); stroke-width: 3; stroke-dasharray: 190; stroke-dashoffset: 190; animation: draw 0.8s 0.1s var(--ease) forwards; }
.check-ring path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw 0.5s 0.65s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .check-ring circle, .check-ring path { stroke-dashoffset: 0; animation: none; } }
.big-stars { display: flex; gap: 4px; }
.big-stars svg { width: 30px; height: 30px; fill: var(--star-off); }
.big-stars svg.on { fill: var(--star); }
.actions { display: flex; flex-direction: column; gap: 10px; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }

/* Yönetici paneli */
.top h1 { font-size: 30px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { background: color-mix(in srgb, var(--chip) 70%, var(--surface)); border-radius: 18px; padding: 14px; min-width: 0; }
.stat .n { font: 700 30px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.stat .t { font-size: 13px; color: var(--muted); margin-top: 4px; }
.dist { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 12px; align-items: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.dist .bar { height: 10px; border-radius: 999px; background: var(--chip); overflow: hidden; }
.dist .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--star), color-mix(in srgb, var(--star) 70%, #fff)); border-radius: 999px; transition: width 0.9s var(--ease); }
.previews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.drop { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.drop .frame { aspect-ratio: 4 / 5; border: 2px dashed var(--line); border-radius: 18px; display: grid; place-items: center; text-align: center; color: var(--muted); overflow: hidden; cursor: pointer; padding: 8px; position: relative; background: color-mix(in srgb, var(--bg) 70%, var(--surface)); transition: border-color 0.2s, transform 0.2s var(--ease); }
.drop .frame:hover { border-color: var(--accent); transform: translateY(-2px); }
.drop .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: popin 0.5s var(--ease) both; }
.drop .frame:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.plus { font-size: 30px; line-height: 1; color: var(--green-ink); }
.linkbox { display: flex; flex-direction: column; gap: 12px; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 20px; padding: 18px; }
.linkbox input { background: var(--surface); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.2s var(--ease); }
.filters button:hover { transform: translateY(-1px); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.list { display: flex; flex-direction: column; gap: 12px; }
.visit { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; background: color-mix(in srgb, var(--surface) 90%, transparent); border: 1px solid var(--line); border-radius: 20px; padding: 14px; transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.visit:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.visit.fresh { animation: fresh 1s var(--ease); }
@keyframes fresh { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 100% { box-shadow: 0 0 0 18px transparent; } }
.visit .thumb { width: 88px; height: 110px; border-radius: 14px; object-fit: cover; background: var(--chip); }
.visit .info { min-width: 0; }
.visit .titlerow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.visit h3 { font-size: 19px; }
.visit .meta { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.visit .comment { margin-top: 8px; overflow-wrap: anywhere; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--chip); }
.pill.wait { color: var(--muted); }
.pill.ok { color: var(--ok); }
.pill.star svg { width: 14px; height: 14px; fill: var(--star); }
.pill.low { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
.visit .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.visit .btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.empty { color: var(--muted); text-align: center; padding: 32px 14px; border: 2px dashed var(--line); border-radius: 20px; }
.skeleton { height: 120px; border-radius: 20px; background: var(--chip); position: relative; overflow: hidden; }
.skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--surface) 60%, transparent) 50%, transparent 70%); background-size: 220% 100%; animation: shimmer 1.3s linear infinite; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow); z-index: 60; max-width: calc(100vw - 32px); animation: toast 2.4s var(--ease) forwards; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 16px); } 12%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .dist .bar i { transition: none !important; }
}

.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Giriş, ayarlar, çıkış */
.auth { max-width: 460px; width: 100%; margin: 6vh auto 0; }
.linkbtn { margin-left: auto; background: none; border: 0; color: var(--muted); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; padding: 0 6px; }
.linkbtn:hover { color: var(--ink); }
details.settings summary { cursor: pointer; font: 700 20px/1.2 var(--font-display); list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
details.settings summary::-webkit-details-marker { display: none; }
details.settings summary::after { content: '+'; font-size: 26px; color: var(--green-ink); transition: transform 0.25s var(--ease); }
details.settings[open] summary::after { transform: rotate(45deg); }
details.settings[open] { gap: 16px; }

/* Tek dokunuşla WhatsApp gönderimi */
.btn.wa { background: linear-gradient(135deg, var(--wa-a), var(--wa-b)); color: var(--wa-ink); box-shadow: 0 12px 26px -14px var(--wa-a); }
.btn.wa:hover { box-shadow: 0 16px 30px -14px var(--wa-a); }
.wa-icon { width: 20px; height: 20px; fill: currentColor; flex: none; }

.installbox { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px; }
.installbox .txt { flex: 1 1 200px; min-width: 0; }
.installbox .txt strong { display: block; }
.installbox .txt span { color: var(--muted, inherit); font-size: .92rem; }
.installbox ol { margin: 8px 0 0; padding-left: 20px; font-size: .95rem; }
@media (display-mode: standalone) { .installbox { display: none; } }

.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gcard { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.gcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gpair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gpair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; display: block; }
.gmeta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.gbtns .btn { flex: 1 1 110px; }
