/* ============================================================
   JASUR BARBER — Premium Barber Lounge dizayn tizimi
   Faqat vizual qatlam. Funksiyalarga tegilmagan.
   ============================================================ */
:root {
  --bg: #070b09;
  --bg2: #0b110e;
  --card: #111a15;
  --card2: #17211c;
  --line: #24322b;
  --line-2: #2e4038;
  --ink: #eef4f0;
  --ink-soft: #c4d3cb;
  --mut: #7f938a;
  --brass: #e0bd6a;
  --brass-2: #f0d288;
  --brass-dark: #8a6c33;
  --green: #10b981;
  --green-2: #34d399;
  --green-3: #6ee7b7;
  --green-bg: #0c2b20;
  --green-line: #1c5844;
  --red: #f2604c;
  --red-bg: #2b1512;
  --shadow: 0 18px 50px rgba(0,0,0,.5);
  --shadow-lg: 0 30px 80px rgba(0,0,0,.6);
  --glow: 0 0 30px rgba(16,185,129,.32);
  --glow-brass: 0 0 26px rgba(224,189,106,.28);
  --r: 16px;
  --r-lg: 22px;
}
* { box-sizing: border-box; margin: 0; }
::selection { background: rgba(52,211,153,.28); color: #fff; }

body {
  background:
    radial-gradient(1300px 650px at 82% -12%, rgba(16,185,129,.10), transparent 58%),
    radial-gradient(1000px 560px at -12% 8%, rgba(224,189,106,.06), transparent 55%),
    radial-gradient(700px 700px at 50% 120%, rgba(16,185,129,.05), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: .1px;
}

/* ===== Barber ustuni chizig'i (signature) ===== */
.pole {
  height: 6px;
  background: repeating-linear-gradient(45deg,
    var(--green) 0 12px, transparent 12px 24px,
    var(--brass) 24px 36px, transparent 36px 48px);
  background-size: 96px 100%;
  animation: poleflow 2.4s linear infinite;
  position: relative;
}
.pole::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  background-size: 40% 100%; background-repeat: no-repeat;
  animation: poleShine 3.5s ease-in-out infinite;
}
@keyframes poleflow { to { background-position: 96px 0; } }
@keyframes poleShine { 0% { background-position: -50% 0; } 60%,100% { background-position: 150% 0; } }

.wrap { max-width: 1140px; margin: 0 auto; padding: 22px; }

/* ===== Tipografiya ===== */
h1 { font-size: 21px; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 800; }
h1 .thin { color: var(--green-2); font-weight: 300; }
h2 { font-size: 17px; font-weight: 700; letter-spacing: .3px; }
.sub { color: var(--mut); font-size: 13px; }
b, strong { font-weight: 700; }

/* ===== Kartalar ===== */
.card {
  background:
    linear-gradient(180deg, var(--card), var(--bg2));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  position: relative;
  transition: border-color .3s cubic-bezier(.16,1,.3,1),
              transform .3s cubic-bezier(.16,1,.3,1),
              box-shadow .3s;
  overflow: hidden;
}
/* Yuqori chetда nozik yorug' chiziq */
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52,211,153,.35), transparent);
  opacity: 0; transition: opacity .35s;
}
.card:hover {
  border-color: var(--green-line);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card:hover::before { opacity: 1; }

.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; }

/* ===== Input / Select ===== */
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
input::placeholder, textarea::placeholder { color: #56675e; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--card);
  box-shadow: 0 0 0 3px rgba(16,185,129,.16);
}
label { font-size: 12px; color: var(--mut); display: block; margin: 10px 0 5px; letter-spacing: .2px; }

/* ===== Tugmalar ===== */
button {
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--green-2), var(--green));
  color: #04140d;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-family: inherit;
  transition: transform .18s cubic-bezier(.16,1,.3,1), box-shadow .25s, filter .2s, border-color .25s, color .25s, background .25s;
}
/* Bosilganда yorug'lik to'lqini */
button::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; border-radius: 50%;
  background: rgba(255,255,255,.35);
  transform: translate(-50%,-50%); opacity: 0;
  transition: width .5s ease, height .5s ease, opacity .6s;
}
button:active::after { width: 240px; height: 240px; opacity: 1; transition: 0s; }
button:hover { transform: translateY(-2px); box-shadow: var(--glow); filter: brightness(1.06); }
button:active { transform: translateY(0) scale(.97); }
button:focus-visible { outline: 2px solid var(--green-2); outline-offset: 2px; }

button.ghost { background: transparent; border-color: var(--line); color: var(--ink-soft); font-weight: 600; }
button.ghost:hover { border-color: var(--green); color: var(--green-2); box-shadow: none; background: rgba(16,185,129,.05); }
button.ok { background: linear-gradient(180deg, var(--green-2), var(--green)); color: #04140d; }
button.danger { background: transparent; border-color: var(--red); color: var(--red); }
button.danger:hover { background: var(--red); color: #fff; box-shadow: 0 0 22px rgba(242,96,76,.4); }
button.brass { background: linear-gradient(180deg, var(--brass-2), var(--brass)); color: #1a1305; }
button.brass:hover { box-shadow: var(--glow-brass); }

/* ===== Statistika kartalari ===== */
.stat {
  background: linear-gradient(155deg, var(--card2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 17px 18px;
  position: relative;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.16,1,.3,1), border-color .3s, box-shadow .3s;
}
.stat::after {
  content: ''; position: absolute; right: -20px; top: -20px;
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,.12), transparent 70%);
  opacity: 0; transition: opacity .35s;
}
.stat:hover { transform: translateY(-3px); border-color: var(--green-line); box-shadow: var(--shadow); }
.stat:hover::after { opacity: 1; }
.stat .lbl { font-size: 12px; color: var(--mut); margin-bottom: 5px; letter-spacing: .3px; }
.stat .val { font-size: 26px; font-weight: 800; letter-spacing: .4px; }
.stat .val small { font-size: 13px; color: var(--mut); font-weight: 400; }

/* ===== Badge ===== */
.badge { font-size: 11px; padding: 3px 11px; border-radius: 20px; background: var(--card2); color: var(--mut); font-weight: 600; }
.badge.live { background: var(--green-bg); color: var(--green-2); border: 1px solid var(--green-line); position: relative; padding-left: 20px; }
.badge.live::before {
  content: ''; position: absolute; left: 9px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--green-2);
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); } 50% { box-shadow: 0 0 0 5px rgba(52,211,153,0); } }
.badge.lock { background: #2a2118; color: var(--brass); }

/* ===== Jadval ===== */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: var(--mut); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; padding: 10px 8px; border-bottom: 1px solid var(--line-2); }
td { padding: 11px 8px; border-bottom: 1px solid var(--line); }
tbody tr { transition: background .18s; }
tbody tr:hover { background: rgba(16,185,129,.05); }

/* ===== Tablar ===== */
.tabs { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.tabs button { background: transparent; border: 1px solid var(--line); color: var(--mut); font-weight: 600; }
.tabs button:hover { border-color: var(--green-line); color: var(--ink); box-shadow: none; background: rgba(16,185,129,.04); }
.tabs button.on {
  border-color: var(--green); color: #04140d;
  background: linear-gradient(180deg, var(--green-2), var(--green));
  box-shadow: var(--glow);
}

.hide { display: none !important; }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(14px);
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--green);
  padding: 13px 22px; border-radius: 14px; font-size: 14px; font-weight: 600;
  opacity: 0; transition: opacity .35s, transform .35s cubic-bezier(.16,1,.3,1);
  pointer-events: none; z-index: 90; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Chek (termal) ===== */
pre.check {
  background: #f6f1e7; color: #1c1a14;
  padding: 16px; border-radius: 10px;
  font-family: 'Courier New', monospace; font-size: 13px; line-height: 1.5;
}

/* ===== Login ===== */
.login-box { max-width: 400px; margin: 56px auto; animation: rise .6s cubic-bezier(.16,1,.3,1) both; }
.logo-mark { font-size: 36px; text-align: center; margin-bottom: 6px; }

/* ===== Animatsiyalar ===== */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); } 50% { box-shadow: 0 0 0 8px rgba(16,185,129,0); } }
#app, #login { animation: fade .45s ease both; }

/* Kartalar ketma-ket paydo bo'lishi (stagger) */
.prod-grid > *, .grid > *, .stats > * { animation: rise .55s cubic-bezier(.16,1,.3,1) both; }
.prod-grid > *:nth-child(1), .grid > *:nth-child(1), .stats > *:nth-child(1) { animation-delay: .03s; }
.prod-grid > *:nth-child(2), .grid > *:nth-child(2), .stats > *:nth-child(2) { animation-delay: .07s; }
.prod-grid > *:nth-child(3), .grid > *:nth-child(3), .stats > *:nth-child(3) { animation-delay: .11s; }
.prod-grid > *:nth-child(4), .grid > *:nth-child(4), .stats > *:nth-child(4) { animation-delay: .15s; }
.prod-grid > *:nth-child(5), .grid > *:nth-child(5), .stats > *:nth-child(5) { animation-delay: .19s; }
.prod-grid > *:nth-child(6), .grid > *:nth-child(6), .stats > *:nth-child(6) { animation-delay: .23s; }
.prod-grid > *:nth-child(7), .grid > *:nth-child(7) { animation-delay: .27s; }
.prod-grid > *:nth-child(8), .grid > *:nth-child(8) { animation-delay: .31s; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-line); }

/* ===== Modal fon ===== */
.modal-bg {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(4,8,6,.72); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fade .25s ease both;
}
.modal-bg .card { animation: rise .35s cubic-bezier(.16,1,.3,1) both; box-shadow: var(--shadow-lg); }

/* ===== Responsiv ===== */
@media (max-width: 700px) { .wrap { padding: 14px; } h1 { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
