/* =====================================================================
   Effektlar ko'rinishi: kursor, parda, 3D hero, yashirin rasm,
   ulkan yozuvlar, kinetik qatorlar, kontur chiziqlar.
   ===================================================================== */

/* ---------- Lenis (silliq scroll) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- 3D hero foni ---------- */
.hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.gl-on > .hero-canvas { display: none; }
.hero, .page-hero { isolation: isolate; }

/* ---------- Maxsus kursor ---------- */
.cursor { position: fixed; inset: 0; z-index: 150; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.on { opacity: 1; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor summary { cursor: none; }
.cur-dot, .cur-ring, .cur-label { position: absolute; top: 0; left: 0; will-change: transform; }
.cur-dot::before { content: ""; position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--gold-2); transition: transform .3s var(--ease); }
.cur-ring::before {
  content: ""; position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  border: 1px solid rgba(240, 213, 149, .6); transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .3s, border-color .3s;
}
.cur-label span {
  position: absolute; transform: translate(-50%, -50%) scale(0); font: 700 11px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--bg);
  transition: transform .4s var(--ease);
}
.cursor.link .cur-ring::before { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(216, 179, 106, .12); border-color: var(--gold); }
.cursor.link .cur-dot::before { transform: scale(0); }
.cursor.view .cur-ring::before { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--gold-2); border-color: var(--gold-2); }
.cursor.view .cur-dot::before { transform: scale(0); }
.cursor.view .cur-label span { transform: translate(-50%, -50%) scale(1); }
.cursor.down .cur-ring::before { width: 26px; height: 26px; margin: -13px 0 0 -13px; }

/* ---------- Sahifalar orasida parda ---------- */
.curtain { position: fixed; inset: 0; z-index: 140; display: flex; align-items: flex-start; pointer-events: none; }
.curtain i {
  flex: 1; height: calc(100% + 70px); margin-right: -1px; background: var(--bg);
  border-radius: 0 0 999px 999px; transform: translateY(-120%); transition: transform .65s cubic-bezier(.76, 0, .24, 1);
}
.curtain.cover i { transform: translateY(0); }
.curtain.lift i { transform: translateY(-120%); }
.curtain.instant i { transition: none !important; }
.curtain.cover { pointer-events: auto; }

/* ---------- Hero: kursor ostida yashirin rasm (Lando) ---------- */
.hp1 { overflow: hidden; }
.hp1 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hp-reveal {
  --mx: 50%; --my: 45%; --r: 0px;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 70%, transparent 72%);
  mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 70%, transparent 72%);
  filter: saturate(1.15) contrast(1.05);
}
.hp-ring {
  position: absolute; left: var(--mx); top: var(--my); width: calc(var(--r) * 2); height: calc(var(--r) * 2);
  border: 1px solid rgba(240, 213, 149, .8); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none;
  box-shadow: 0 0 40px rgba(216, 179, 106, .35) inset;
}
.hero-hint {
  position: absolute; left: 50%; bottom: 6%; z-index: 4; transform: translateX(-50%);
  padding: 8px 16px; border-radius: 99px; background: rgba(20, 16, 12, .85);
  border: 1px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2);
  white-space: nowrap; animation: hint-pulse 2.4s ease-in-out infinite;
}
@keyframes hint-pulse { 50% { opacity: .55; } }

/* ---------- Ulkan yozuvlar + rasm kartasi + imzo (Lando) ---------- */
.mega { position: relative; overflow: hidden; padding: clamp(110px, 16vw, 200px) 0; background: var(--bg); }
.mega-rows { display: grid; gap: clamp(4px, 1vw, 14px); }
.mega-row {
  display: flex; gap: .4em; width: max-content; white-space: nowrap; will-change: transform;
  font: 500 clamp(64px, 11vw, 190px)/0.95 var(--serif); letter-spacing: -.02em; color: var(--cream);
  text-transform: uppercase;
}
.mega-row:nth-child(even) { font-family: var(--sans); font-weight: 700; letter-spacing: -.04em; }
.mega-row em { color: var(--gold); text-transform: none; }
.mega-row b { font-weight: inherit; color: transparent; -webkit-text-stroke: 1px rgba(216, 179, 106, .55); }
.mega-card {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: min(34vw, 420px); aspect-ratio: 4/5; margin: 0;
  transform: translate(-50%, -50%) rotate(-3deg); border-radius: 20px; overflow: hidden;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9); border: 1px solid var(--line);
}
.mega-card img { width: 100%; height: 100%; object-fit: cover; }
.sig { position: absolute; inset: -10% -20%; width: 140%; height: 120%; overflow: visible; pointer-events: none; }
.sig path { fill: none; stroke: var(--gold-2); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 12px rgba(240, 213, 149, .6)); }
.mega-label { position: absolute; left: 50%; bottom: clamp(30px, 5vw, 60px); transform: translateX(-50%); font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }

/* ---------- Kinetik yozuvlar (Lando) ---------- */
.brand-quote { overflow: hidden; }
.kinetic { margin: 0 auto 80px; display: grid; gap: .08em; text-align: center; }
.k-line { font: 700 clamp(46px, 8.6vw, 150px)/0.98 var(--sans); letter-spacing: -.04em; text-transform: uppercase; color: var(--cream); white-space: nowrap; will-change: transform, opacity; }
.k-line em { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; text-transform: none; }

/* ---------- Kontur chiziqlar (Lando) ---------- */
[data-contour] { position: relative; isolation: isolate; }
.contour { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: .5; }
.contour path { fill: none; stroke: rgba(216, 179, 106, .16); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1400 600; animation: contour 18s linear infinite; }
@keyframes contour { to { stroke-dashoffset: -2000; } }

.masonry figure { will-change: transform; }

@media (max-width: 760px) {
  .mega { padding: 170px 0 150px; }
  .mega-card { width: 50vw; }
  .mega-label { bottom: 40px; letter-spacing: .18em; white-space: nowrap; }
  .hero-hint { bottom: 2%; }
}

.hero-gl { animation: gl-in 1.2s ease both; }
@keyframes gl-in { from { opacity: 0; } }
.contour path { animation-play-state: paused; }
.contour.on path { animation-play-state: running; }

/* =====================================================================
   LOGO: yaqinlashib, bir marta aylanadi
   ===================================================================== */
section.logospin { height: 230vh; padding: 0; }
.ls-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(ellipse 50% 55% at 50% 50%, #2a2018 0%, var(--bg) 70%); }
.ls-glow { position: absolute; width: 70vmin; height: 70vmin; border-radius: 50%; background: radial-gradient(closest-side, rgba(216, 179, 106, .35), transparent); filter: blur(30px); opacity: 0; will-change: opacity, transform; }
.ls-stage { position: relative; width: min(40vmin, 400px); margin-bottom: 8vh; aspect-ratio: 1; display: grid; place-items: center; perspective: 1200px; }
.ls-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(240, 213, 149, .55); will-change: transform, opacity; }
.ls-ring.r2 { inset: -7%; border-color: rgba(240, 213, 149, .3); }
.ls-ring.r3 { inset: -15%; border-style: dashed; border-color: rgba(240, 213, 149, .18); }
.ls-coin { position: relative; width: 62%; aspect-ratio: 558 / 576; transform-style: preserve-3d; will-change: transform; }
.ls-face { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden;
  filter: drop-shadow(0 0 30px rgba(240, 213, 149, .45)); }
.ls-back { transform: rotateY(180deg); }
.ls-text { position: absolute; left: 50%; bottom: 5vh; transform: translateX(-50%); text-align: center; opacity: 0; will-change: opacity, transform; }
.ls-text img { width: auto; height: min(13vh, 120px); max-width: 64vw; margin: 0 auto 8px; }
.ls-text .eyebrow { margin: 0; }

/* =====================================================================
   VIDEO: kartadan to'liq ekranga kengayadi
   ===================================================================== */
section.film { height: 200vh; padding: 0; }
.film-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.film-frame { position: absolute; inset: 0; clip-path: inset(14% 20% round 28px); will-change: clip-path; }
.film-video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); will-change: transform; }
.film-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10, 8, 6, .75)); pointer-events: none; }
.film-caption { position: absolute; left: clamp(16px, 6vw, 90px); bottom: clamp(30px, 8vh, 80px); z-index: 2; max-width: 720px; }
.film-caption h2 { font-size: clamp(32px, 5vw, 72px); font-weight: 500; }

/* =====================================================================
   ISHONCH: guvohnoma va hikoya
   ===================================================================== */
.trust-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; max-width: 1100px; margin: 0 auto; align-items: start; }
.trust-card { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); transition: transform .25s ease-out, border-color .4s, opacity 1.1s var(--ease); }
.trust-card:hover { border-color: var(--gold); }
.trust-card img { width: 100%; height: auto; cursor: zoom-in; }
.trust-card figcaption { padding: 14px 18px; font-size: 13px; letter-spacing: .08em; color: var(--muted); }

/* =====================================================================
   INSTAGRAM — profil kartasi va plitkalar
   ===================================================================== */
.ig-profile {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(18px, 3vw, 36px);
  max-width: 1250px; margin: 0 auto clamp(40px, 6vw, 70px); padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line); border-radius: 28px;
  background: linear-gradient(120deg, rgba(216, 179, 106, .1), rgba(28, 22, 17, .9) 45%);
}
.ig-avatar { position: relative; width: clamp(76px, 9vw, 110px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--bg); }
.ig-avatar::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; padding: 2px;
  background: conic-gradient(from 0deg, var(--gold-2), #b8863e, var(--gold), var(--gold-2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ig-spin 6s linear infinite; }
@keyframes ig-spin { to { transform: rotate(360deg); } }
.ig-avatar img { width: 58%; height: auto; }
.ig-info .eyebrow { margin-bottom: 6px; }
.ig-info h2 { font-size: clamp(30px, 3.6vw, 50px); font-weight: 500; }
.ig-info h2 a:hover { color: var(--gold-2); }
.ig-bio { margin: 8px 0 0; color: var(--muted); font-size: 15px; white-space: pre-line; }
.ig-follow svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.ig-follow circle:last-child { fill: currentColor; stroke: none; }

.ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1250px; margin: 0 auto; }
.ig-tile { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); isolation: isolate; }
.ig-grid .ig-tile:nth-child(even) { transform: translateY(40px); }
.ig-grid .ig-tile:nth-child(even).in { transform: translateY(40px) !important; }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: saturate(.9) brightness(.92); }
.ig-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10, 8, 6, .75)); transition: opacity .5s; z-index: 1; }
.ig-tile:hover img { transform: scale(1.08); filter: saturate(1.05) brightness(1); }
.ig-tile:hover { border-color: var(--gold); }
.ig-badge { position: absolute; left: 14px; bottom: 14px; z-index: 2; padding: 5px 12px; border-radius: 99px; font: 700 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--bg); background: var(--gold-2); }
.ig-play { position: absolute; left: 50%; top: 50%; z-index: 2; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  transform: translate(-50%, -50%) scale(.9); background: rgba(20, 16, 12, .55); border: 1px solid rgba(240, 213, 149, .7); transition: transform .5s var(--ease), background .3s; }
.ig-play svg { width: 24px; fill: var(--gold-2); margin-left: 3px; }
.ig-tile:hover .ig-play { transform: translate(-50%, -50%) scale(1.05); background: var(--gold-2); }
.ig-tile:hover .ig-play svg { fill: var(--bg); }

.ig-modal { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 16px; background: rgba(8, 6, 4, .92); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.ig-modal.open { opacity: 1; visibility: visible; }
.ig-modal-box { width: min(440px, 92vw); max-height: 88vh; overflow-y: auto; border-radius: 22px; background: #fff; border: 1px solid var(--gold); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9); transform: scale(.94); transition: transform .45s var(--ease); }
.ig-modal.open .ig-modal-box { transform: none; }
.ig-modal-box .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; max-width: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.ig-modal-box iframe { display: block; }
.ig-close { position: absolute; top: 16px; right: 22px; background: none; border: 0; color: var(--cream); font-size: 44px; line-height: 1; cursor: pointer; }

@media (max-width: 900px) {
  .ig-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ig-profile { grid-template-columns: auto 1fr; }
  .ig-follow { grid-column: 1 / -1; justify-self: start; }
  .trust-grid { grid-template-columns: 1fr; max-width: 560px; }
  .film-frame { clip-path: inset(18% 6% round 20px); }
}
@media (max-width: 560px) {
  .ig-grid .ig-tile:nth-child(even), .ig-grid .ig-tile:nth-child(even).in { transform: translateY(24px) !important; }
}

/* =====================================================================
   ADMIN PANEL (yashirin)
   ===================================================================== */
.adm-key { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(8, 6, 4, .8); }
.adm-key form { width: min(340px, 90vw); display: grid; gap: 12px; padding: 24px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--gold); }
.adm-key p { margin: 0; font: 700 12px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.adm-key input, .adm textarea, .adm-search { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--cream); font: 14px/1.5 var(--sans); }
.adm-key div { display: flex; gap: 8px; justify-content: flex-end; }
.adm button { cursor: pointer; }
.adm-key button, .adm footer button, .adm-img button { padding: 9px 16px; border-radius: 99px; border: 1px solid var(--gold); background: transparent; color: var(--gold-2); font: 600 13px var(--sans); cursor: pointer; }
.adm-key button:last-child, .adm footer button { background: var(--gold); color: var(--bg); }
.adm { position: fixed; top: 0; right: 0; bottom: 0; z-index: 290; width: min(460px, 100vw); display: flex; flex-direction: column;
  background: #120e0a; border-left: 1px solid var(--gold); box-shadow: -30px 0 80px rgba(0, 0, 0, .6); transform: translateX(105%); transition: transform .4s var(--ease); cursor: auto; }
.adm.open { transform: none; }
.adm header, .adm footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--cream); }
.adm footer { border-top: 1px solid var(--line); border-bottom: 0; color: var(--muted); font-size: 13px; }
.adm footer button:disabled { opacity: .4; cursor: default; }
.adm header button { background: none; border: 0; color: var(--cream); font-size: 28px; }
.adm nav { display: flex; gap: 6px; padding: 12px 18px 0; }
.adm nav button { flex: 1; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: none; color: var(--muted); font: 600 12px var(--sans); }
.adm nav button.on { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.adm-search { margin: 12px 18px 0; width: auto; }
.adm-list { flex: 1; overflow-y: auto; padding: 8px 18px 18px; overscroll-behavior: contain; }
.adm-row { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid rgba(216, 179, 106, .1); }
.adm-row span { font: 11px "Space Mono", monospace; color: var(--gold); word-break: break-all; }
.adm textarea { resize: vertical; min-height: 40px; }
.adm-img { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; align-items: center; }
.adm-img img { grid-row: span 2; width: 90px; height: 90px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.adm-img button { justify-self: start; }
.adm-img small { color: var(--muted); font-size: 11px; word-break: break-all; }
.adm-toast { position: fixed; left: 50%; bottom: 24px; z-index: 310; padding: 12px 18px; border-radius: 12px; background: var(--gold); color: var(--bg); font: 600 14px var(--sans);
  transform: translate(-50%, 30px); opacity: 0; transition: .35s var(--ease); }
.adm-toast.on { transform: translate(-50%, 0); opacity: 1; }
.has-cursor .adm, .has-cursor .adm *, .has-cursor .adm-key, .has-cursor .adm-key * { cursor: auto; }

/* ---------- tahrirlash rejimi ---------- */
.adm-bar { position: fixed; left: 50%; top: 10px; z-index: 295; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
  padding: 8px 10px 8px 16px; border-radius: 99px; background: #120e0a; border: 1px solid var(--gold); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); font: 13px var(--sans); color: var(--cream); cursor: auto; max-width: calc(100vw - 20px); }
.adm-bar b { color: var(--gold-2); margin-right: 6px; }
.adm-bar span { color: var(--muted); padding: 0 6px; }
.adm-bar button, .adm-tbar button, .aim-side button { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--cream); font: 600 12px var(--sans); cursor: pointer; }
.adm-bar button.on, .aim-side button.on { border-color: var(--gold); color: var(--gold-2); }
.adm-bar button.gold, .adm-tbar button.gold, .aim-side button.gold { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.adm-bar button:disabled { opacity: .4; cursor: default; }
.adm-editing [data-e] { cursor: pointer !important; }
.adm-editing [data-e]:hover { outline: 1px dashed var(--gold-2); outline-offset: 4px; }
.adm-editing .adm-text-on { outline: 2px solid var(--gold-2) !important; outline-offset: 4px; cursor: text !important; caret-color: var(--gold-2); }
.adm-on .cursor { display: none; }
.adm-on, .adm-on a, .adm-on button { cursor: auto; }

.adm-tbar { position: fixed; z-index: 296; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; max-width: min(760px, calc(100vw - 20px));
  padding: 8px; border-radius: 16px; background: #120e0a; border: 1px solid var(--gold); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); font: 12px var(--sans); color: var(--cream); cursor: auto; }
.adm-tbar select, .adm-tbar input[type=number] { padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--cream); font: 12px var(--sans); }
.adm-tbar input[type=number] { width: 62px; }
.adm-tbar label { display: inline-flex; align-items: center; gap: 4px; }
.adm-tbar input[type=range] { width: 80px; accent-color: var(--gold); }
.adm-color input { width: 32px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }
.adm-tbar small { color: var(--muted); }

.adm-img-modal { position: fixed; inset: 0; z-index: 297; display: grid; place-items: center; padding: 16px; background: rgba(8, 6, 4, .88); cursor: auto; }
.aim-box { width: min(1180px, 100%); height: min(760px, 100%); display: grid; grid-template-columns: 1fr 340px; border-radius: 20px; overflow: hidden; border: 1px solid var(--gold); background: #120e0a; }
.aim-stage { position: relative; display: grid; place-items: center; overflow: hidden;
  background: repeating-conic-gradient(#1c1611 0% 25%, #15100c 0% 50%) 50% / 24px 24px; }
.aim-frame { position: relative; overflow: hidden; touch-action: none; cursor: grab; outline: 1px dashed rgba(240, 213, 149, .6); }
.aim-frame:active { cursor: grabbing; }
.aim-frame img { position: absolute; left: 50%; top: 50%; max-width: none; user-select: none; pointer-events: none; }
.aim-side { overflow-y: auto; padding: 18px; display: grid; gap: 10px; align-content: start; color: var(--cream); font: 13px var(--sans); border-left: 1px solid var(--line); }
.aim-side h3 { font-size: 26px; }
.aim-side h4 { margin: 8px 0 0; font: 700 11px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.aim-side label { display: grid; gap: 4px; color: var(--muted); }
.aim-side label.aim-inline { display: flex; align-items: center; justify-content: space-between; }
.aim-side input[type=range] { width: 100%; accent-color: var(--gold); }
.aim-side input[type=color] { width: 40px; height: 28px; border: 1px solid var(--line); border-radius: 8px; background: none; }
.aim-row { display: flex; gap: 6px; flex-wrap: wrap; }
.aim-chips button { padding: 6px 10px; }
.aim-end { justify-content: flex-end; margin-top: 8px; position: sticky; bottom: -18px; padding: 10px 0; background: #120e0a; }
.aim-hint { color: var(--muted); }
@media (max-width: 860px) { .aim-box { grid-template-columns: 1fr; grid-template-rows: 45vh 1fr; height: 100%; } .aim-side { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- admin tanlaydigan rasm animatsiyalari (tashrifchilarda ham ishlaydi) ---------- */
@keyframes adm-kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-2%, -1%); } }
@keyframes adm-float { 50% { transform: translateY(-14px); } }
@keyframes adm-glow { 50% { box-shadow: 0 0 60px rgba(240, 213, 149, .6); } }
@keyframes adm-pulse { 50% { transform: scale(1.04); } }
@keyframes adm-spin { to { transform: rotate(360deg); } }
@keyframes adm-sway { 25% { transform: rotate(-2deg); } 75% { transform: rotate(2deg); } }

/* ---------- admin: olib tashlash va bo'limlar ---------- */
.adm-hidden { opacity: .28 !important; outline: 2px dashed #e0655f !important; outline-offset: -2px; }
.adm-editing [data-sec]:hover { box-shadow: inset 0 0 0 1px rgba(240, 213, 149, .25); }
.adm-bar button.danger, .adm-tbar button.danger, .aim-side button.danger { border-color: #e0655f; color: #f19b96; }
.adm-sbar b { color: var(--gold-2); padding: 0 6px; }

/* ---------- rasm muharriri: bo'limlar, filtrlar, qatlamlar ---------- */
.aim-frame i { position: absolute; inset: 0; pointer-events: none; }
.aim-grain { opacity: 0; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.aim-top { display: grid; gap: 8px; }
.aim-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg); position: sticky; top: -18px; z-index: 2; }
.aim-tabs button { flex: 1 1 auto; padding: 7px 8px !important; border: 0 !important; border-radius: 9px !important; font-size: 11px !important; }
.aim-tabs button.on { background: var(--gold) !important; color: var(--bg) !important; }
.aim-side section { display: grid; gap: 10px; }
.aim-side section[hidden] { display: none; }
.aim-side label output { float: right; color: var(--gold-2); font: 11px "Space Mono", monospace; }
.aim-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.aim-presets button { display: grid; gap: 6px; padding: 6px !important; border-radius: 12px !important; font-size: 11px !important; text-align: center; }
.aim-presets button span { display: block; aspect-ratio: 1; border-radius: 8px; background-size: cover; background-position: center; background-color: var(--bg); }
.aim-presets button.on { border-color: var(--gold) !important; }
.aim-col { flex-direction: column; align-items: stretch; }
.aim-col button { text-align: left; }

/* ---------- admin: tarmoqlar paneli va blok asboblari ---------- */
.soc-box { width: min(760px, 100%); max-height: 90vh; overflow-y: auto; display: grid; gap: 12px; padding: 20px; border-radius: 20px; border: 1px solid var(--gold); background: #120e0a; color: var(--cream); font: 13px var(--sans); }
.soc-box header { display: flex; justify-content: space-between; align-items: center; }
.soc-box header h3 { font-size: 28px; }
.soc-box header button { background: none; border: 0; color: var(--cream); font-size: 30px; cursor: pointer; }
.soc-box button { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--cream); font: 600 12px var(--sans); cursor: pointer; }
.soc-box button.gold { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.soc-box button.danger { border-color: #e0655f; color: #f19b96; }
.soc-list { display: grid; gap: 8px; }
.soc-item { display: grid; grid-template-columns: 130px 1fr 170px auto auto auto; gap: 6px; align-items: center; }
.soc-item select, .soc-item input, .adm-sbar input[type=text], .adm-sbar select { padding: 7px 9px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--cream); font: 12px var(--sans); min-width: 0; }
.adm-sbar input[type=text] { width: 190px; }
.adm-sep { width: 1px; height: 24px; background: var(--line); margin: 0 4px; }
.soc-box .aim-tabs { position: static; }
@media (max-width: 700px) { .soc-item { grid-template-columns: 1fr 1fr; } .soc-item input[data-u] { grid-column: 1 / -1; } }

.adm-warn { color: #f19b96; font: 700 12px var(--sans); white-space: nowrap; }
