/* ==========================================================================
   ARCHITECH — theme.css v2 · "San'at asari" UI qatlami
   Nozik palitra · harakat · shisha · upload/select · scrollbar · tugmalar
   Palitra: ink (qoramtir) · bronze/gold (mis-oq) · sand (qum) · jade · blush
   ========================================================================== */

/* ---- Base ---- */
html { scroll-behavior: smooth; scroll-padding-top: 112px; scrollbar-color: #9a7422 #100d0a; scrollbar-width: thin; }
img { max-width: 100%; }

/* ---- Bespoke scrollbar: qoramtir yo'l + mis chizma ---- */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track {
  background: linear-gradient(180deg, #100d0a, #241f18);
  border-left: 1px solid rgba(207,173,85,.16);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #b78b2c, #7d5e1d 55%, #5c4415);
  border-radius: 99px;
  border: 3px solid #100d0a;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 0 12px rgba(183,139,44,.45);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #cfad55, #9a7422); }
::-webkit-scrollbar-corner { background: #100d0a; }
@media (max-width: 768px) { ::-webkit-scrollbar { width: 6px; } }

/* Yengil (ichki) scrollbar */
.dselect-list::-webkit-scrollbar { width: 8px; height: 8px; }
.dselect-list::-webkit-scrollbar-track { background: #f3efe8; border: none; }
.dselect-list::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #cfad55, #9a7422); border: 2px solid #f3efe8; box-shadow: none; }
.dselect-list { scrollbar-width: thin; scrollbar-color: #9a7422 #f3efe8; }

/* ---- Silliq yo'lqol (scroll reveal) ---- */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--d, 0ms);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ---- Header havolalari ---- */
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 500; color: #574d40;
  transition: color .25s, background-color .25s;
}
.nav-link:hover { color: #241f18; background: rgba(207,173,85,.10); }
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px;
  background: linear-gradient(90deg, transparent, #b78b2c, transparent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.nav-link:hover::after { transform: scaleX(1); }

/* ---- Menyu elementlari ---- */
.umenu-item, .mnav-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 14px;
  font-weight: 500; color: #574d40; transition: background-color .2s, color .2s, padding-left .25s;
}
.umenu-item:hover, .mnav-item:hover { background: linear-gradient(90deg, #f6edd8, #fbf7ee); color: #241f18; padding-left: 17px; }
.umenu-item i, .mnav-item i { color: #b78b2c; font-size: 16px; width: 20px; text-align: center; }

.flink { display: inline-flex; align-items: center; gap: 8px; transition: color .2s, transform .25s; }
.flink:hover { color: #dfc681; transform: translateX(4px); }
.flink i { font-size: 11px; color: #b78b2c; }

/* ==========================================================================
   TUGMA (btn) DIZAYN TIZIMI — global, to'liq
   ========================================================================== */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 24px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font-size: 14px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden;
  text-align: center; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s, filter .3s,
              background-color .25s, color .25s, border-color .25s;
}
.btn i { font-size: .95rem; transition: transform .25s; }
.btn:hover { transform: translateY(-2px); }
.btn:hover i.fi-rr-arrow-right { transform: translateX(4px); }
.btn:hover i.fi-rr-arrow-left { transform: translateX(-4px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }

.btn.gold {
  background: linear-gradient(135deg, #dfc681 0%, #b78b2c 55%, #9a7422 100%);
  color: #100d0a; box-shadow: 0 18px 40px -18px rgba(183,139,44,.65);
}
.btn.gold:hover { filter: brightness(1.05); box-shadow: 0 24px 52px -18px rgba(183,139,44,.75); }
.btn.gold::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%);
  transform: translateX(-140%); transition: transform .8s cubic-bezier(.22,1,.36,1);
}
.btn.gold:hover::before { transform: translateX(140%); }

.btn.primary {
  background: linear-gradient(155deg, #241f18 0%, #100d0a 100%);
  color: #f6f2e9; box-shadow: 0 16px 36px -18px rgba(16,13,10,.7);
}
.btn.primary:hover { box-shadow: 0 24px 50px -18px rgba(16,13,10,.82); color: #fff; }

.btn.ghost {
  border-color: rgba(24,19,15,.14); background: rgba(255,255,255,.65); color: #241f18;
  backdrop-filter: blur(6px);
}
.btn.ghost:hover { border-color: #b78b2c; color: #7d5e1d; background: #fff; box-shadow: 0 12px 28px -16px rgba(16,13,10,.28); }

.btn.line { border-color: #16130f; color: #16130f; background: transparent; }
.btn.line:hover { background: #16130f; color: #f6f2e9; }
.btn.ok { background: linear-gradient(135deg, #5ba47b, #2f7350); color: #fff; box-shadow: 0 14px 30px -16px rgba(47,115,80,.7); }
.btn.ok:hover { filter: brightness(1.06); }
.btn.danger { background: linear-gradient(135deg, #d6716a, #a34744); color: #fff; box-shadow: 0 14px 30px -16px rgba(163,71,68,.7); }
.btn.danger:hover { filter: brightness(1.06); }

.btn.small { padding: 8px 16px; font-size: 12.5px; gap: 7px; }
.btn.small i { font-size: .88rem; }
.btn.big { padding: 16px 34px; font-size: 1rem; }
.btn.icon-only { width: 44px; height: 44px; padding: 0; }
.btn.w-full, .w-full.btn { width: 100%; }

/* ---- Custom Dropdown: shisha panel + yumshoq ochilish ---- */
.dselect { position: relative; user-select: none; }
.dselect-btn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  border: 1px solid rgba(24,19,15,.10); background: #fff; border-radius: 14px;
  padding: 12px 14px; font-size: 14px; color: #241f18; text-align: left;
  box-shadow: 0 1px 2px rgba(16,13,10,.04);
  transition: border-color .2s, box-shadow .2s;
}
.dselect-btn:hover { border-color: #b78b2c; }
.dselect.open .dselect-btn { border-color: #9a7422; box-shadow: 0 0 0 4px rgba(183,139,44,.14), 0 10px 30px -16px rgba(16,13,10,.28); }
.dselect-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dselect-label.placeholder { color: #978b79; }
.dselect .chev { transition: transform .3s; color: #978b79; }
.dselect.open .chev { transform: rotate(180deg); }
.dselect-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 60;
  background: rgba(255,255,255,.96); backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(24,19,15,.08); border-radius: 16px;
  box-shadow: 0 30px 70px -28px rgba(16,13,10,.42);
  opacity: 0; transform: translateY(10px) scale(.98); transform-origin: top;
  pointer-events: none; transition: opacity .25s cubic-bezier(.22,1,.36,1), transform .25s cubic-bezier(.22,1,.36,1);
  overflow: hidden;
}
.dselect.up .dselect-panel { top: auto; bottom: calc(100% + 8px); transform-origin: bottom; transform: translateY(-10px) scale(.98); }
.dselect.open .dselect-panel { opacity: 1; transform: none; pointer-events: auto; }
.dselect-search { border-bottom: 1px solid rgba(24,19,15,.06); }
.dselect-search input { width: 100%; padding: 11px 16px; font-size: 13.5px; outline: none; background: transparent; }
.dselect-list { max-height: 240px; overflow-y: auto; padding: 6px; }
.dselect-opt {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px;
  font-size: 14px; color: #574d40; cursor: pointer; transition: background-color .15s, color .15s;
}
.dselect-opt:hover { background: #f3efe8; }
.dselect-opt.sel { background: linear-gradient(90deg, #f6edd8, #fbf7ee); color: #5c4415; font-weight: 600; }
.dselect-opt.sel .opt-check { opacity: 1; transform: scale(1); }
.opt-check { opacity: 0; transform: scale(.6); transition: all .2s; color: #b78b2c; margin-left: auto; font-size: 13px; }
.dselect-empty { padding: 18px; text-align: center; font-size: 13px; color: #978b79; }

/* ---- Drag & Drop zona: san'at darajasi ---- */
.dz {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 30px 20px; text-align: center; cursor: pointer;
  border: 2px dashed rgba(183,139,44,.45); border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(207,173,85,.10), transparent 70%),
    linear-gradient(180deg, #fbf7ee, #f3efe8);
  transition: border-color .25s, background-color .25s, transform .25s, box-shadow .25s;
}
.dz:hover { border-color: #b78b2c; background: linear-gradient(180deg, #fbf7ee, #f6edd8); }
.dz.dragover { border-color: #9a7422; transform: scale(1.015); box-shadow: 0 0 0 5px rgba(183,139,44,.16), 0 20px 44px -20px rgba(16,13,10,.3); }
.dz-ico {
  width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(135deg, #fff, #f6edd8); color: #9a7422;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 12px 26px -14px rgba(16,13,10,.32);
  transition: transform .3s, box-shadow .3s;
}
.dz:hover .dz-ico, .dz.dragover .dz-ico { transform: translateY(-5px) rotate(-5deg); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 18px 34px -14px rgba(183,139,44,.5); }
.dz.has-files { border-style: solid; border-color: #2f9063; background: linear-gradient(180deg, #eef8f2, #d7eede); }
.dz.has-files .dz-ico { color: #1f7550; background: linear-gradient(135deg, #fff, #d7eede); }

/* Yuklangan fayl elementi */
.file-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 15px;
  background: #fff; border: 1px solid rgba(24,19,15,.08);
  box-shadow: 0 8px 20px -14px rgba(16,13,10,.22);
  animation: fileIn .4s cubic-bezier(.34,1.46,.64,1) both;
}
@keyframes fileIn { from { opacity: 0; transform: translateY(9px) scale(.97); } to { opacity: 1; transform: none; } }
.file-ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #f6edd8, #fbf7ee); color: #9a7422; font-size: 17px;
  flex-shrink: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.file-item .fname { font-size: 13px; font-weight: 600; color: #241f18; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.file-item .fmeta { font-size: 11.5px; color: #978b79; }
.file-remove {
  margin-left: auto; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  color: #978b79; transition: all .2s; flex-shrink: 0;
}
.file-remove:hover { background: #fdf0ef; color: #b55149; }

/* Upload progress bar: qoramtir oyna, porlash */
.upl-progress {
  position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; gap: 16px;
  align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 40%, rgba(207,173,85,.14), transparent 70%), rgba(16,13,10,.86);
  backdrop-filter: blur(12px); opacity: 0; pointer-events: none; transition: opacity .3s;
}
.upl-progress.show { opacity: 1; pointer-events: auto; }
.upl-track { width: min(340px, 80%); height: 9px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.4); }
.upl-fill {
  height: 100%; width: 0%; border-radius: 99px;
  background: linear-gradient(90deg, #dfc681, #b78b2c, #cfad55); background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite; box-shadow: 0 0 14px rgba(207,173,85,.6);
  transition: width .3s ease;
}
.upl-progress b { color: #f3efe8; }
.upl-pct { color: #dfc681; }

/* ---- Skeleton ---- */
.skeleton {
  background: linear-gradient(90deg, #f3efe8 25%, #fbf7ee 50%, #f3efe8 75%);
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- Yulduzcha reytingi ---- */
.stars { display: inline-flex; gap: 1px; color: #cfad55; font-size: 13px; }
.stars .off { color: #ddd5bf; }

/* ---- Toast: qoramtir shisha, esmerald aksent ---- */
.toast-el {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 20px;
  border-radius: 18px; background: rgba(16,13,10,.88); backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(207,173,85,.28); color: #f3efe8;
  box-shadow: 0 30px 70px -24px rgba(16,13,10,.6);
  font-size: 14px; font-weight: 500; animation: toastIn .4s cubic-bezier(.34,1.46,.64,1) both;
}
.toast-el.out { animation: toastOut .3s ease both; }
.toast-el i { font-size: 1.1rem; }
.toast-el.ok i { color: #4fae7f; }
.toast-el.err i { color: #e2a09b; }
.toast-el.info i { color: #dfc681; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px) scale(.97); } }

/* ---- Kartochka hover sheen + top edge ---- */
.card-sheen { position: relative; overflow: hidden; }
.card-sheen::after {
  content: ""; position: absolute; top: -30%; bottom: -30%; left: 0; width: 36%;
  background: linear-gradient(102deg, transparent 22%, rgba(255,255,255,.55) 50%, transparent 78%);
  opacity: 0; pointer-events: none;
}
.card-sheen:hover::after { opacity: 1; animation: sheenMove 1s cubic-bezier(.22,1,.36,1) 1; }
@keyframes sheenMove { 0% { transform: translateX(-140%) skewX(-14deg); } 100% { transform: translateX(280%) skewX(-14deg); } }
.card-sheen .top-edge { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, #cfad55, transparent); opacity: 0; transition: opacity .4s; z-index: 2; }
.card-sheen:hover .top-edge { opacity: 1; }

/* ---- Savat badge sinishi ---- */
#cart-badge.pop { animation: badgePop .45s cubic-bezier(.34,1.46,.64,1); }
@keyframes badgePop { 0% { transform: scale(.4); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ---- Formalar (dark) ---- */
.field-label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: #d4d4d8; }
.field > label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: #d4d4d8; }
.field textarea { resize: vertical; min-height: 84px; }
.field small, .field .hint { display: block; margin-top: 6px; font-size: 11.5px; color: #71717a; }
.field-input {
  width: 100%; border: 1px solid #27272a; border-radius: 12px; background: #18181b;
  padding: 12px 15px; font-size: 14px; color: #fff; outline: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field-input::placeholder { color: #71717a; }
.field-input:focus { border-color: #52525b; box-shadow: 0 0 0 1px rgba(82,82,91,.6); }
textarea.field-input { resize: vertical; }
select.field-input { color-scheme: dark; }
select.field-input option { background: #18181b; color: #fff; }
select.field-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
}
input[type="checkbox"].field-check { accent-color: #e4e4e7; }
.field input[type="file"] { display: none; }
.field input[type="file"] + .dz { margin-top: 2px; }

/* ---- Inline yordamchilar ---- */
.link { color: #9a7422; font-weight: 600; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.link:hover { color: #7d5e1d; border-bottom-color: currentColor; }
.muted { color: #978b79; }
.small { font-size: .82rem; }
.tiny { font-size: .74rem; }

/* ==========================================================================
   HI-TECH PREMIUM QATLAM — San'at asari v3
   ========================================================================== */

/* ---- Custom Cursor Follower ---- */
#cursor-follower {
  position: fixed; pointer-events: none; z-index: 9999;
  width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle, rgba(207,173,85,.45), rgba(183,139,44,.08) 70%, transparent);
  box-shadow: 0 0 40px 12px rgba(207,173,85,.12);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .35s cubic-bezier(.34,1.46,.64,1), opacity .3s;
  will-change: transform, left, top;
  opacity: 0;
}
#cursor-follower.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
#cursor-follower.hover { transform: translate(-50%, -50%) scale(2.2); background: radial-gradient(circle, rgba(207,173,85,.6), transparent 65%); box-shadow: 0 0 60px 20px rgba(207,173,85,.18); }

/* ---- Spotlight Effect (hero va dark fonlar uchun) ---- */
.spotlight {
  position: fixed; pointer-events: none; z-index: 0;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(207,173,85,.06) 0%, rgba(207,173,85,.02) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  will-change: left, top;
  transition: left .08s linear, top .08s linear;
}

/* ---- Magnetic Button Effect ---- */
.btn-magnetic {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s cubic-bezier(.34,1.46,.64,1);
}
.btn-magnetic .btn-inner {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 9px;
}

/* ---- 3D Tilt Card ---- */
.tilt-3d {
  transform-style: preserve-3d;
  perspective: 1200px;
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.tilt-3d .tilt-content {
  transform-style: preserve-3d;
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.tilt-3d .tilt-float {
  transform: translateZ(20px);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}

/* ---- Particle Grid Overlay ---- */
.particle-grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
}
.particle-grid .pg-line {
  position: absolute; background: linear-gradient(90deg, transparent, rgba(207,173,85,.12), transparent);
  height: 1px; width: 100%;
}
.particle-grid .pg-dot {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(207,173,85,.25);
  box-shadow: 0 0 8px 2px rgba(207,173,85,.08);
}

/* ---- Animated Gradient Border ---- */
.gradient-border {
  position: relative; isolation: isolate;
}
.gradient-border::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  padding: 1.5px; border-radius: inherit;
  background: linear-gradient(135deg, #cfad55, transparent 30%, transparent 70%, #cfad55);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  background-size: 200% 200%;
  animation: borderRotate 4s linear infinite;
}
@keyframes borderRotate { 0% { background-position: 0% 0%; } 50% { background-position: 100% 100%; } 100% { background-position: 0% 0%; } }

/* ---- Glitch Text Effect (hover) ---- */
.glitch-trigger { position: relative; }
.glitch-trigger::before, .glitch-trigger::after {
  content: attr(data-text); position: absolute; inset: 0;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.glitch-trigger:hover::before {
  opacity: .7; color: #d1726b;
  clip-path: inset(0 0 65% 0); transform: translate(-2px, 0);
  animation: glitch1 .3s ease;
}
.glitch-trigger:hover::after {
  opacity: .6; color: #4fae7f;
  clip-path: inset(55% 0 0 0); transform: translate(2px, 0);
  animation: glitch2 .3s ease;
}
@keyframes glitch1 { 0% { transform: translate(0, 0); } 20% { transform: translate(-3px, 2px); } 40% { transform: translate(2px, -1px); } 60% { transform: translate(-4px, 0); } 80% { transform: translate(3px, 1px); } }
@keyframes glitch2 { 0% { transform: translate(0, 0); } 20% { transform: translate(3px, -2px); } 40% { transform: translate(-2px, 1px); } 60% { transform: translate(4px, 0); } 80% { transform: translate(-3px, -1px); } }

/* ---- Text Scramble (hover override) ---- */
.scramble-trigger { position: relative; }

/* ---- Shimmer Loading (advanced) ---- */
.shimmer-adv {
  background: linear-gradient(90deg, #f3efe8 0%, #fbf7ee 25%, #f3efe8 50%, #fbf7ee 75%, #f3efe8 100%);
  background-size: 400% 100%;
  animation: shimmerAdv 2.2s ease-in-out infinite;
  border-radius: 14px;
}
@keyframes shimmerAdv { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---- Image Reveal (clip-path animation) ---- */
.img-reveal {
  clip-path: inset(0 0 100% 0);
  animation: imgReveal 1.4s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes imgReveal { to { clip-path: inset(0 0 0 0); } }

/* ---- Float-in animation variantlari ---- */
@keyframes slideUpBlur { from { opacity: 0; transform: translateY(40px) scale(.98); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
.slide-up-blur { animation: slideUpBlur .9s cubic-bezier(.22,1,.36,1) both; }

@keyframes scaleIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.scale-in { animation: scaleIn .55s cubic-bezier(.34,1.46,.64,1) both; }

@keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.slide-in-right { animation: slideInRight .6s cubic-bezier(.22,1,.36,1) both; }

/* ---- Stagger Animation Grid ---- */
.stagger-grid > * { opacity: 0; transform: translateY(20px); }
.stagger-grid.in > * { animation: staggerFadeUp .6s cubic-bezier(.22,1,.36,1) both; }
.stagger-grid.in > *:nth-child(1) { animation-delay: 0ms; }
.stagger-grid.in > *:nth-child(2) { animation-delay: 60ms; }
.stagger-grid.in > *:nth-child(3) { animation-delay: 120ms; }
.stagger-grid.in > *:nth-child(4) { animation-delay: 180ms; }
.stagger-grid.in > *:nth-child(5) { animation-delay: 240ms; }
.stagger-grid.in > *:nth-child(6) { animation-delay: 300ms; }
.stagger-grid.in > *:nth-child(7) { animation-delay: 360ms; }
.stagger-grid.in > *:nth-child(8) { animation-delay: 420ms; }
@keyframes staggerFadeUp { to { opacity: 1; transform: none; } }

/* ---- Number Scroll (count-up refinement) ---- */
.num-scroll { font-variant-numeric: tabular-nums; display: inline-block; }
.num-scroll span { display: inline-block; transition: transform .4s cubic-bezier(.22,1,.36,1); }

/* ---- Slick scrollbar (global hi-tech) ---- */
@media (hover: hover) {
  html { scrollbar-width: thin; scrollbar-color: #9a7422 transparent; }
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #cfad55, #9a7422); border-radius: 99px; border: none; }
  ::-webkit-scrollbar-thumb:hover { background: #cfad55; }
}

/* ---- Navbar glow indicator (online seller) ---- */
.status-dot { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4fae7f; box-shadow: 0 0 10px 2px rgba(79,174,127,.4); }
.status-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #4fae7f; opacity: .6; animation: pulseRing 2s ease-in-out infinite; }

/* ---- Live Notification Pulse ---- */
.live-dot { position: relative; }
.live-dot::after { content: ""; position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%; background: #d1726b; border: 2px solid #fff; animation: pulseRing 1.8s ease-in-out infinite; }

/* ---- KPI / Stat Card Premium ---- */
.kpi-card {
  position: relative; overflow: hidden; border-radius: 24px; padding: 24px 26px;
  background: linear-gradient(145deg, #fff, #faf8f4);
  border: 1px solid rgba(24,19,15,.06);
  box-shadow: 0 1px 2px rgba(16,13,10,.04), 0 20px 44px -30px rgba(16,13,10,.34);
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s;
}
.kpi-card:hover { transform: translateY(-4px); box-shadow: 0 24px 52px -30px rgba(16,13,10,.4); }
.kpi-card .kc-icon { position: absolute; right: 20px; top: 20px; font-size: 2.2rem; color: rgba(207,173,85,.18); }
.kpi-card .kc-val { font-family: "Space Grotesk", Inter, sans-serif; font-size: 2rem; font-weight: 700; color: #16130f; line-height: 1.1; letter-spacing: -.02em; }
.kpi-card .kc-lbl { font-size: .84rem; color: #6f6455; margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.kpi-card .kc-trend { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.kpi-card .kc-trend.up { background: #d7eede; color: #175c3f; }
.kpi-card .kc-trend.down { background: #f8dddb; color: #b55149; }

/* ---- Grid Background for Hero/Sections ---- */
.grid-bg {
  background-image:
    linear-gradient(rgba(207,173,85,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(207,173,85,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ---- Morphing Blob Background ---- */
.blob-bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.blob-bg .blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .12;
  animation: blobFloat 18s ease-in-out infinite;
}
.blob-bg .blob:nth-child(1) { width: 400px; height: 400px; background: #cfad55; top: -10%; left: -5%; }
.blob-bg .blob:nth-child(2) { width: 500px; height: 500px; background: #b78b2c; bottom: -15%; right: -10%; animation-delay: -6s; }
.blob-bg .blob:nth-child(3) { width: 300px; height: 300px; background: #9a7422; top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: -12s; }
@keyframes blobFloat { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(30px, -30px) scale(1.1); } 66% { transform: translate(-20px, 20px) scale(.9); } }

/* ---- Animated checkmark ---- */
@keyframes checkDraw { to { stroke-dashoffset: 0; } }
.checkmark-svg { width: 40px; height: 40px; }
.checkmark-svg circle { stroke: #4fae7f; stroke-width: 2; fill: none; stroke-dasharray: 100; stroke-dashoffset: 100; animation: checkDraw .6s .2s ease forwards; }
.checkmark-svg path { stroke: #4fae7f; stroke-width: 2.5; fill: none; stroke-dasharray: 40; stroke-dashoffset: 40; animation: checkDraw .5s .5s ease forwards; }

/* ---- Navbar premium micro-states ---- */
.nav-link-live {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 12px; font-size: 14px; font-weight: 500; color: #574d40;
  transition: color .25s, background-color .25s, transform .25s cubic-bezier(.34,1.46,.64,1);
}
.nav-link-live:hover { color: #241f18; background: rgba(207,173,85,.1); transform: translateY(-1px); }
.nav-link-live::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: linear-gradient(90deg, transparent, #b78b2c 30%, #cfad55 70%, transparent);
  border-radius: 2px; transform: scaleX(0); transform-origin: center;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.nav-link-live:hover::after { transform: scaleX(1); }

/* ---- Premium divider ---- */
.divider-premium {
  height: 1px; background: linear-gradient(90deg, transparent 0%, rgba(183,139,44,.3) 20%, rgba(183,139,44,.5) 50%, rgba(183,139,44,.3) 80%, transparent 100%);
  margin: 24px 0; border: none;
}

/* ---- Animated border bottom (glow line) ---- */
.glow-line {
  position: relative;
}
.glow-line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: linear-gradient(90deg, transparent, #cfad55, transparent);
  background-size: 200% 100%; animation: glowLineMove 2.4s linear infinite;
}
@keyframes glowLineMove { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ---- Smooth reveal for hero content (staggered) ---- */
.hero-content-stagger > * { opacity: 0; transform: translateY(30px); }
.hero-content-stagger.in > * { animation: staggerFadeUp .8s cubic-bezier(.22,1,.36,1) both; }

/* ---- Ratio Glass Card ---- */
.glass-card-premium {
  background: rgba(255,255,255,.6); backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,.5); box-shadow: 0 4px 24px rgba(16,13,10,.08);
  border-radius: 24px;
}

/* ---- Tooltip premium ---- */
.tooltip-premium {
  position: relative;
}
.tooltip-premium .tt-bubble {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(6px);
  background: rgba(16,13,10,.92); backdrop-filter: blur(12px); color: #f3efe8;
  padding: 6px 12px; border-radius: 10px; font-size: .75rem; font-weight: 600;
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s cubic-bezier(.22,1,.36,1);
}
.tooltip-premium:hover .tt-bubble { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- Badge ring animation ---- */
.badge-ring { position: relative; }
.badge-ring::before {
  content: ""; position: absolute; inset: -4px; border-radius: inherit;
  border: 1.5px solid rgba(207,173,85,.4); animation: badgeRingPulse 2s ease-in-out infinite;
}
@keyframes badgeRingPulse { 0%, 100% { opacity: .4; transform: scale(1); } 50% { opacity: 0; transform: scale(1.15); } }

/* ---- Floating Action Button (hi-tech) ---- */
.fab-hitech {
  position: fixed; bottom: 24px; right: 24px; z-index: 80;
  width: 54px; height: 54px; border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #241f18, #100d0a);
  color: #cfad55; font-size: 1.3rem;
  box-shadow: 0 8px 24px -8px rgba(16,13,10,.6), 0 0 0 1px rgba(207,173,85,.2);
  cursor: pointer; transition: transform .3s cubic-bezier(.34,1.46,.64,1), box-shadow .3s;
}
.fab-hitech:hover { transform: translateY(-4px) scale(1.06); box-shadow: 0 16px 36px -12px rgba(16,13,10,.7), 0 0 0 1.5px rgba(207,173,85,.5); }
.fab-hitech:active { transform: scale(.95); }

/* ---- Premium Upload Zone ---- */
.dz-premium {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 36px 24px; text-align: center; cursor: pointer;
  border: 2px dashed rgba(183,139,44,.35); border-radius: 24px;
  background: linear-gradient(135deg, #fbf7ee 0%, #f6f3eb 100%);
  transition: border-color .3s, transform .3s, box-shadow .3s, background .3s;
}
.dz-premium:hover { border-color: #9a7422; transform: translateY(-2px); box-shadow: 0 16px 32px -16px rgba(16,13,10,.2); }
.dz-premium.dragover { border-color: #b78b2c; transform: scale(1.02); border-style: solid; box-shadow: 0 0 0 6px rgba(183,139,44,.12), 0 20px 44px -20px rgba(16,13,10,.28); }
.dz-premium .dz-icon { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; font-size: 1.5rem; background: linear-gradient(135deg, #fff, #f6edd8); color: #9a7422; box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 12px 28px -14px rgba(16,13,10,.28); transition: transform .3s, box-shadow .3s; }
.dz-premium:hover .dz-icon { transform: translateY(-6px) rotate(-5deg); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 20px 36px -14px rgba(183,139,44,.5); }
.dz-premium.has-files { border-style: solid; border-color: #2f9063; background: linear-gradient(135deg, #eef8f2, #d7eede); }

/* ---- Notification card premium ---- */
.notif-premium {
  display: flex; gap: 14px; padding: 16px 18px; border-radius: 18px;
  background: #fff; border: 1px solid rgba(24,19,15,.06);
  box-shadow: 0 1px 2px rgba(16,13,10,.03); cursor: pointer;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s, border-color .25s;
}
.notif-premium:hover { transform: translateX(4px); box-shadow: 0 12px 28px -16px rgba(16,13,10,.2); border-color: rgba(183,139,44,.24); }
.notif-premium.unread { background: linear-gradient(102deg, #fbf7ee, #fff); border-color: rgba(183,139,44,.3); }

/* ---- Voice/ Audio visualizer style (loading) ---- */
.audio-bar { display: flex; align-items: center; gap: 3px; height: 24px; }
.audio-bar span { width: 3px; border-radius: 3px; background: #cfad55; animation: audioWave 1.2s ease-in-out infinite; }
.audio-bar span:nth-child(1) { height: 12px; animation-delay: 0s; }
.audio-bar span:nth-child(2) { height: 18px; animation-delay: .15s; }
.audio-bar span:nth-child(3) { height: 6px; animation-delay: .3s; }
.audio-bar span:nth-child(4) { height: 20px; animation-delay: .45s; }
.audio-bar span:nth-child(5) { height: 10px; animation-delay: .6s; }
@keyframes audioWave { 0%, 100% { transform: scaleY(.6); opacity: .6; } 50% { transform: scaleY(1.2); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  #cursor-follower { display: none !important; }
  .spotlight { display: none !important; }
  .blob-bg { display: none; }
  .particle-grid { display: none; }
}

/* ==========================================================================
   PREMIUM komponentlar (2026 upgrade) — Tailwind bilan birga ishlaydi
   ========================================================================== */

/* ---- Page hero (ichki sahifalar): qoramtir + mis nur + grain ---- */
.page-hero { position: relative; overflow: hidden; background: #100d0a; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 100% at 15% -10%, rgba(207,173,85,.22), transparent 60%),
    radial-gradient(ellipse 50% 80% at 100% 110%, rgba(122,90,63,.18), transparent 60%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}
.page-hero > * { position: relative; }

/* ---- Glass panel ---- */
.glass { background: rgba(255,255,255,.74); backdrop-filter: blur(18px) saturate(160%); }
.glass-dark { background: rgba(16,13,10,.66); backdrop-filter: blur(18px) saturate(140%); }

/* ---- Section heading: Fraunces sarlavha ---- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.sec-head h2 { font-family: Fraunces, Georgia, serif; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; color: #16130f; letter-spacing: -.02em; }
.sec-head p { color: #6f6455; font-size: .92rem; margin-top: 6px; max-width: 62ch; }
.sec-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #9a7422; }

/* ---- Statistika kartochkalari ---- */
.stat-card { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid rgba(24,19,15,.08); background: #fff; padding: 20px 22px; box-shadow: 0 1px 2px rgba(16,13,10,.04), 0 16px 40px -26px rgba(16,13,10,.26); transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s; }
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 30px 64px -30px rgba(16,13,10,.36); }
.stat-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, #dfc681, #9a7422); opacity: 0; transition: opacity .3s; }
.stat-card:hover::before { opacity: 1; }
.stat-card .sv { font-family: "Space Grotesk", Inter, sans-serif; font-size: 1.7rem; font-weight: 700; color: #16130f; line-height: 1.15; }
.stat-card .sl { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: #6f6455; margin-top: 8px; }
.stat-card .sl i { color: #9a7422; }

/* ---- Jadval (data table) ---- */
.dtable { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .875rem; }
.dtable thead th {
  text-align: left; padding: 13px 16px; background: linear-gradient(180deg, #faf8f4, #f3efe8); color: #574d40;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
  border-bottom: 1px solid rgba(24,19,15,.08);
}
.dtable thead th:first-child { border-top-left-radius: 16px; }
.dtable thead th:last-child { border-top-right-radius: 16px; }
.dtable tbody td { padding: 14px 16px; border-bottom: 1px solid rgba(24,19,15,.05); color: #3a332a; vertical-align: middle; }
.dtable tbody tr { transition: background-color .2s; }
.dtable tbody tr:hover { background: #faf7ee; }
.dtable tbody tr:last-child td { border-bottom: none; }
.dtable-wrap { overflow-x: auto; border: 1px solid rgba(24,19,15,.08); border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(16,13,10,.04), 0 22px 48px -32px rgba(16,13,10,.26); }

/* ---- Status pill ---- */
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 12px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.pill.paid, .pill.ok, .pill.approved { background: #d7eede; color: #175c3f; }
.pill.pending { background: #f6edd8; color: #7d5e1d; }
.pill.rejected, .pill.err { background: #f8dddb; color: #b55149; }
.pill.neutral { background: #f3efe8; color: #574d40; }

/* ---- Badge (counter) ---- */
.count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; font-size: 10.5px; font-weight: 800; line-height: 1; }

/* ---- Sevimlilar (wishlist) tugmasi ---- */
.fav-btn { position: relative; display: inline-grid; place-items: center; border-radius: 999px; transition: transform .25s cubic-bezier(.34,1.46,.64,1), background-color .25s, color .25s; }
.fav-btn i { transition: transform .3s cubic-bezier(.34,1.46,.64,1); }
.fav-btn:hover i { transform: scale(1.18); }
.fav-btn.active { color: #d1726b; }
.fav-btn.active i { animation: favPop .5s cubic-bezier(.34,1.46,.64,1); filter: drop-shadow(0 0 6px rgba(209,114,107,.5)); }
@keyframes favPop { 0% { transform: scale(.5); } 55% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ---- Reyting yulduzlari (kiritish) ---- */
.rate-input { display: inline-flex; gap: 4px; }
.rate-input button { color: #ddd5bf; font-size: 1.4rem; transition: transform .2s, color .2s; }
.rate-input button:hover { transform: scale(1.18); }
.rate-input button.on { color: #cfad55; }

/* ---- Reyting diagrammasi (dark) ---- */
.rate-bar { height: 8px; border-radius: 999px; background: #27272a; overflow: hidden; }
.rate-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #e4e4e7, #a1a1aa); }

/* ---- Tab pane (yangi underline tablar bilan) ---- */
.tabpane { display: none; animation: fadeUp .45s cubic-bezier(.22,1,.36,1) both; }
.tabpane.active { display: block; }
#tabs button.active { border-color: #fff !important; color: #fff !important; }
#tabs button:not(.active) { border-color: transparent !important; }

/* ---- Progress (admin mini chart) ---- */
.mini-bars { display: flex; align-items: flex-end; gap: 10px; height: 132px; padding-top: 8px; }
.mini-bars .mb { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.mini-bars .mb .bar { width: 100%; max-width: 40px; border-radius: 9px 9px 4px 4px; background: linear-gradient(180deg, #dfc681, #9a7422); min-height: 4px; transition: height .6s cubic-bezier(.22,1,.36,1), filter .25s; }
.mini-bars .mb:hover .bar { filter: brightness(1.08); }
.mini-bars .mb .lb { font-size: .68rem; color: #978b79; font-weight: 600; }
.cat-bar { display: flex; align-items: center; gap: 12px; }
.cat-bar .track { flex: 1; height: 9px; border-radius: 999px; background: #ece7d8; overflow: hidden; }
.cat-bar .track span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #cfad55, #9a7422); }

/* ---- Sticky buy panel ---- */
.sticky-side { position: sticky; top: 96px; }

/* ---- Empty state ---- */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 64px 24px; text-align: center; }
.empty-state .ei { display: grid; place-items: center; width: 78px; height: 78px; border-radius: 26px; background: linear-gradient(180deg, #faf8f4, #f3efe8); color: #9a7422; font-size: 2rem; box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 0 0 1px rgba(24,19,15,.06); }

/* ---- Auth kartochka ---- */
.auth-panel { width: 100%; max-width: 460px; margin: 56px auto 72px; border-radius: 28px; border: 1px solid rgba(24,19,15,.08); background: #fff; box-shadow: 0 2px 4px rgba(16,13,10,.04), 0 48px 100px -52px rgba(16,13,10,.46); overflow: hidden; }
.auth-panel-wide { max-width: 640px; }
.auth-head { padding: 32px 34px 24px; background: radial-gradient(ellipse 90% 130% at 0% 0%, rgba(207,173,85,.16), transparent 70%); border-bottom: 1px solid rgba(24,19,15,.06); }
.demo-fill { cursor: pointer; }
.demo-fill:hover code { color: #9a7422; }

/* ---- 3D canvas: qoramtir osmon ---- */
.canvas-shell { position: relative; border-radius: 20px; overflow: hidden; background: linear-gradient(180deg, #1e1a14, #100d0a 60%, #241f18); }
.canvas-shell canvas { display: block; width: 100%; height: 420px; }
.canvas-badge { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 6px 13px; font-size: .72rem; font-weight: 700; background: rgba(255,255,255,.12); color: #f3efe8; border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(10px); }
.canvas-hint, .canvas-hint2 { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 6px 13px; font-size: .72rem; font-weight: 600; background: rgba(16,13,10,.66); color: #e3ddd2; backdrop-filter: blur(10px); }
.model-status2 { position: absolute; inset: 0; display: grid; place-items: center; color: #ddd5bf; font-size: .85rem; background: rgba(16,13,10,.5); backdrop-filter: blur(4px); }
.model-status2.ok { color: #8fc4a0; }

/* ---- Marquee ---- */
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: marqueeMove 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeMove { to { transform: translateX(-50%); } }

/* ---- Kategoriya kartochkasi ---- */
/* ---- Arxitektor kartochkasi ---- */
.maker-card { position: relative; overflow: hidden; border-radius: 26px; border: 1px solid rgba(24,19,15,.08); background: #fff; padding: 26px 24px; text-align: center; transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s; }
.maker-card:hover { transform: translateY(-7px); box-shadow: 0 32px 66px -32px rgba(16,13,10,.44); }
.maker-card .ring { position: relative; width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 999px; display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, #dfc681, #9a7422); box-shadow: 0 18px 38px -18px rgba(183,139,44,.72); }

/* ---- Qidiruv/filter kartochkasi ---- */
.filter-panel { position: sticky; top: 96px; border-radius: 26px; border: 1px solid rgba(24,19,15,.08); background: #fff; box-shadow: 0 1px 2px rgba(16,13,10,.04), 0 22px 50px -34px rgba(16,13,10,.3); }

/* ---- Progress ring ---- */
.ring-chart { --p: 0; width: 96px; height: 96px; border-radius: 999px; display: grid; place-items: center; background: conic-gradient(#9a7422 calc(var(--p) * 1%), #ece7d8 0); }
.ring-chart > span { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 999px; background: #fff; font-family: "Space Grotesk", Inter, sans-serif; font-weight: 700; font-size: 1.05rem; color: #16130f; }

/* ==========================================================================
   HOME · Hero va layout (bosh sahifa)
   ========================================================================== */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0 12px; position: relative; }
.section.tight { padding: 46px 0 8px; }

.hero { position: relative; min-height: min(88vh, 780px); display: flex; align-items: center; overflow: hidden; background: #100d0a; }
.hero-bg { position: absolute; inset: -6%; z-index: 0; will-change: transform; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 26s ease-in-out infinite alternate; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(16,13,10,.92) 0%, rgba(16,13,10,.72) 45%, rgba(16,13,10,.35) 100%); }
.hero-overlay::after { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E"); }
.hero-inner { position: relative; z-index: 4; padding: 92px 0 110px; width: 100%; }
.hero-content { max-width: 720px; color: #fff; }
.hero-kicker { display: inline-flex; align-items: center; gap: 9px; font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #dfc681; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); padding: 8px 16px; border-radius: 999px; backdrop-filter: blur(8px); animation: fadeUp 1s cubic-bezier(.22,1,.36,1) both; }
.hero-kicker i { color: #cfad55; }
.hero h1 { font-family: Fraunces, Georgia, serif; font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 600; line-height: 1.04; letter-spacing: -.02em; color: #fff; margin: 26px 0 20px; animation: fadeUp 1s .12s cubic-bezier(.22,1,.36,1) both; }
.hero h1 em { font-style: italic; color: #dfc681; position: relative; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .05em; height: .14em; background: linear-gradient(90deg, #b78b2c, transparent); opacity: .45; border-radius: 2px; }
.hero-content > p { font-size: 1.06rem; color: rgba(255,255,255,.82); max-width: 58ch; line-height: 1.7; margin-bottom: 34px; animation: fadeUp 1s .2s cubic-bezier(.22,1,.36,1) both; }
.hero-content > p b { color: #fff; }
.hero-search { display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 7px 7px 7px 22px; backdrop-filter: blur(14px); box-shadow: 0 34px 80px -30px rgba(0,0,0,.7); transition: box-shadow .3s, transform .3s, border-color .3s; animation: fadeUp 1s .3s cubic-bezier(.22,1,.36,1) both; }
.hero-search:focus-within { box-shadow: 0 0 0 3px rgba(207,173,85,.35), 0 34px 80px -30px rgba(0,0,0,.8); transform: translateY(-2px); border-color: rgba(207,173,85,.5); }
.hero-search > i { color: #cfad55; font-size: 1.1rem; }
.hero-search input { flex: 1; border: none; outline: none; background: transparent; color: #fff; font-size: .98rem; padding: 12px 0; min-width: 0; }
.hero-search input::placeholder { color: rgba(255,255,255,.5); }
.hero-search .btn { flex-shrink: 0; }
.hero-quick { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 20px; color: rgba(255,255,255,.6); animation: fadeUp 1.1s .4s cubic-bezier(.22,1,.36,1) both; }
.hero-quick i { color: #cfad55; }
.hero-quick a { color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 7px 14px; font-size: .8rem; transition: all .25s; }
.hero-quick a:hover { background: linear-gradient(135deg, #dfc681, #b78b2c); border-color: transparent; color: #100d0a; transform: translateY(-2px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; animation: fadeUp 1s .46s cubic-bezier(.22,1,.36,1) both; }
.hero-cta .btn.ghost { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); color: #fff; backdrop-filter: blur(10px); }
.hero-cta .btn.ghost:hover { background: rgba(255,255,255,.96); color: #16130f; border-color: transparent; }
.hero-stats-band { position: relative; z-index: 4; border-top: 1px solid rgba(255,255,255,.12); background: rgba(16,13,10,.55); backdrop-filter: blur(16px); animation: fadeIn 1s .6s both; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; padding: 24px 0; }
.hero-stats .stat { display: flex; align-items: center; gap: 14px; }
.hero-stats .stat b { font-family: "Space Grotesk", Inter, sans-serif; font-size: 1.9rem; font-weight: 700; color: #fff; line-height: 1; letter-spacing: -.02em; }
.hero-stats .stat span { font-size: .78rem; color: rgba(255,255,255,.62); line-height: 1.4; display: flex; align-items: center; gap: 7px; }
.hero-stats .stat span i { color: #cfad55; }
.hero-marquee { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,.07); overflow: hidden; z-index: 5; }
.hero-marquee span { position: absolute; top: 0; bottom: 0; width: 30%; background: linear-gradient(90deg, transparent, #cfad55, transparent); animation: barSweep 3.4s cubic-bezier(.65,.05,.36,1) infinite; }
@keyframes barSweep { 0% { left: -30%; } 100% { left: 100%; } }
.scroll-cue { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; color: rgba(255,255,255,.5); font-size: .78rem; animation: fadeUp 1s .6s both; }
.scroll-cue i { animation: floaty 2.4s ease-in-out infinite; }

/* ==========================================================================
   "SAN'AT ASARI" qatlami — nozik, original UI detallari
   ========================================================================== */
.font-display, .sec-head h2, .hero h1 { font-optical-sizing: auto; }
.grad-text { background: linear-gradient(120deg, #100d0a 20%, #9a7422 55%, #cfad55); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
/* ---- Focus: brauzer default outline'lari butunlay o'chiriladi, ---- */
/* ---- toza professional ring faqat kerakli elementlarda qo'llanadi ---- */
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: none !important;
}
input[type="checkbox"] { accent-color: #9a7422; width: 16px; height: 16px; }
input[type="range"] { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 99px; background: #ece7d8; outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 999px; background: linear-gradient(135deg, #dfc681, #9a7422); border: 2px solid #fff; box-shadow: 0 4px 12px -4px rgba(16,13,10,.5); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 999px; background: #9a7422; border: 2px solid #fff; cursor: pointer; }

.pop-badge { position: relative; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 12px; font-size: .7rem; font-weight: 700; background: linear-gradient(135deg, #8a5f3d, #5c4415); color: #f6edd8; box-shadow: 0 8px 18px -10px rgba(16,13,10,.5); }
.pop-badge::after { content: ""; width: 6px; height: 6px; border-radius: 999px; background: #dfc681; animation: pulseSoft 1.6s ease-in-out infinite; }

.price-tag { font-family: "Space Grotesk", Inter, sans-serif; letter-spacing: -.02em; }
.price-tag .cur { font-size: .72em; color: #978b79; }

.dz.is-success { border-color: #2f9063; }
.dz.is-success .dz-ico i { color: #1f7550; }

/* ==========================================================================
   HERO (High-Tech Architecture) — 2026
   ========================================================================== */

/* Interaktiv value-kartalar: ochilgan holat */
[data-vcard].open .vcard-body { grid-template-rows: 1fr; }
[data-vcard].open .vcard-chev { transform: rotate(180deg); }
[data-vcard].open .vcard-more { color: #3DFF9E; }

/* FOMO progress chiziqlari (JS scale-x-100 qo'shadi) */
.fomo-bar { will-change: transform; }

/* Reduced motion: loop animatsiyalar statik yakuniy holatga */
@media (prefers-reduced-motion: reduce) {
  .animate-floaty, .animate-ringPulse, .animate-scan,
  .animate-seqCursor, .animate-seqFiles, .animate-seqBar,
  .animate-seqDone, .animate-ping { animation: none !important; }
  .animate-drawLine { animation: none !important; stroke-dashoffset: 0 !important; }
  .animate-tickIn { animation: none !important; opacity: 1 !important; }
  .animate-seqFiles, .animate-seqDone { opacity: 1 !important; }
  .animate-seqBar { transform: scaleX(1) !important; }
  .animate-seqCursor { opacity: 0 !important; }
}

/* ==========================================================================
   DARK LEGACY SHIM — eski (light) komponentlarni umumiy dark theme'ga moslash
   ========================================================================== */
.sec-head h2 { color: #f4f4f5; }
.sec-head p { color: #a1a1aa; }
.sec-eyebrow { color: #cfad55; }

.maker-card { background: #141210; border-color: #2a251c; }
.maker-card:hover { box-shadow: 0 32px 66px -32px rgba(0,0,0,.8); }
.maker-card .text-graphite-800 { color: #f3efe8; }
.maker-card .text-slate-400 { color: #978b79; }
.maker-card .border-slate-100 { border-color: #262119; }

.btn.ghost { color: #dfc681; border-color: rgba(207,173,85,.35); background: transparent; }
.btn.ghost:hover { color: #fff; border-color: #cfad55; background: rgba(207,173,85,.08); box-shadow: 0 12px 28px -16px rgba(0,0,0,.6); }

.ring-chart { background: conic-gradient(#cfad55 calc(var(--p) * 1%), #262119 0); }
.ring-chart > span { background: #141210; color: #f3efe8; }

/* Gorizontal scroll'ni butunlay o'chirish (decorative absolute/fixed elementlar uchun);
   overflow-x: clip — sticky filter bar ishlashda davom etadi (hidden emas) */
html, body { overflow-x: clip; }

/* ===== 3D viewer asboblari ===== */
.viewer-tools { position: absolute; right: 14px; top: 14px; display: flex; gap: 6px; }
.viewer-tools button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; font-size: .9rem; color: #e3ddd2; background: rgba(16,13,10,.62); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.viewer-tools button:hover { background: rgba(201,162,74,.28); transform: translateY(-1px); }
.viewer-tools button.on { color: #1a150e; background: #c9a24a; border-color: #c9a24a; }
.model-bar { position: absolute; left: 20%; right: 20%; bottom: 22px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.model-bar span { display: block; height: 100%; width: 8%; background: linear-gradient(90deg, #a8741f, #e4bf63); transition: width .2s; }
.canvas-shell:fullscreen canvas { height: 100vh; }
.hero3d-canvas { opacity: 0; transition: opacity 1s ease; }
.hero3d-canvas.ready { opacity: 1; }

/* viewer: tugmalar yuklanish qatlamidan yuqorida va bosiladigan bo'lsin */
.viewer-tools, .canvas-badge, .canvas-hint { z-index: 5; }
.model-status2, .model-bar { pointer-events: none; z-index: 2; }
