/* Vault9 — tətbiq qabığı (app shell) və ekran layoutu.
   Mənbə: vault9-kazino-prototype/index.html-dəki layout CSS-i.
   Prototipdəki yerli dəyişən adları (--sub, --line2, --btn, --mint …) burada
   tokens.css-dəki rəsmi token adları ilə əvəzlənib — yeni token yaradılmayıb.
   Komponent stilləri bu faylda DƏYİŞDİRİLMİR; yalnız vitrin (preview) üçün
   qoyulmuş sabit enlər tətbiqdə mayeyə çevrilir — aşağıdaki
   "Komponent en uyğunlaşdırmaları" bölməsinə bax. */

* { box-sizing: border-box; }

/* Komponentlərin bir hissəsi MVC naviqasiyası üçün <button> yerinə <a> kimi
   render olunur — görünüş eyni qalsın deyə link bəzəyi söndürülür. */
a.v9-btn,
a.v9-segment-item,
a.v9-chip,
a.v9-dd-trigger,
a.v9-dd-item,
a.v9-selection,
a.v9-stat-box,
a.v9-balance,
a.v9-game-link,
a.v9-invite-card,
a.v9-avatar,
a.v9-eye,
a.v9-logo { text-decoration: none; }

html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
/* Təhlükəsiz zonanın üstü header rəngində qalsın */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--bar);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--link); }
/* README: klaviatura fokusunda 2px `link` çərçivə, 2–3px aralıqla */
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

.v9-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---- Tətbiq qabığı -------------------------------------------------- */
.v9-app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100%;
  position: relative;
  background: radial-gradient(120% 420px at 50% 0%, #34127A 0%, rgba(11, 6, 32, 0) 100%), var(--bg);
  padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}
.v9-wrap {
  padding-left: max(var(--gutter-mobile), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter-mobile), env(safe-area-inset-right, 0px));
}
.v9-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-28);
  padding-block: var(--space-16) var(--space-32);
}
.v9-stack-tight { gap: var(--space-20); }
.v9-stack-22 { gap: var(--space-22); }

/* ---- Header --------------------------------------------------------- */
.v9-hdr {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: var(--space-10);
  padding-block: var(--space-10);
  background: var(--bar);
  border-bottom: 1px solid var(--divider);
}
.v9-hdr-title { flex: 1; min-width: 0; }
.v9-hdr-spacer { flex: 1; }
.v9-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  color: var(--text);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  flex: 0 0 auto;
}
.v9-logo b {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.v9-logo b span { color: var(--pink); }

/* Balans düyməsi (mono məbləğ + "+") */
.v9-balance {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  height: var(--touch);
  padding: 0 var(--space-4) 0 var(--space-12);
  border-radius: var(--r-sm);
  background: var(--field);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  flex: 0 0 auto;
}
.v9-balance-plus {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-image: var(--gloss), var(--grad-primary);
  color: var(--on-pink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.v9-coin {
  width: 22px;
  height: 22px;
  border-radius: var(--r-pill);
  background: #4FD1A5;
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  flex: 0 0 auto;
}
.v9-coin-lg { width: 34px; height: 34px; font-size: 15px; }

/* ---- Sətir / şəbəkə köməkçiləri -------------------------------------- */
.v9-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-10);
  padding: 0;
  flex-wrap: nowrap;
}
.v9-row-top { align-items: flex-start; }
.v9-col { display: flex; flex-direction: column; min-width: 0; }
.v9-inline { display: inline-flex; align-items: center; gap: var(--space-10); }
.v9-gap-6 { gap: var(--space-6); }
.v9-gap-8 { gap: var(--space-8); }
.v9-gap-10 { gap: var(--space-10); }
.v9-gap-12 { gap: var(--space-12); }
.v9-gap-14 { gap: var(--space-14); }
.v9-gap-16 { gap: var(--space-16); }
.v9-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-10); }
.v9-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-10); }
.v9-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-8); }
.v9-flex1 { flex: 1; min-width: 0; }
.v9-muted { color: var(--text-muted); }
.v9-sub { color: var(--text-3); }
.v9-ok { color: var(--success); }
.v9-nowrap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v9-section { display: flex; flex-direction: column; gap: var(--space-12); }
.v9-section-wide { gap: var(--space-14); }

/* README: oyun şəbəkəsi mobildə 3 sütun / space-10, vebdə minmax(160px,1fr) / space-16 */
.v9-game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-10);
}
/* Üfüqi sıra: kart eni 116px */
.v9-hscroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 116px;
  gap: var(--space-10);
  overflow-x: auto;
  margin: 0 calc(-1 * max(var(--gutter-mobile), env(safe-area-inset-left, 0px)));
  padding: 0 max(var(--gutter-mobile), env(safe-area-inset-left, 0px)) var(--space-4);
  scrollbar-width: none;
}
.v9-hscroll::-webkit-scrollbar { display: none; }
.v9-chips-scroll {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  margin: 0 calc(-1 * max(var(--gutter-mobile), env(safe-area-inset-left, 0px)));
  padding: 0 max(var(--gutter-mobile), env(safe-area-inset-left, 0px)) var(--space-4);
  scrollbar-width: none;
}
.v9-chips-scroll::-webkit-scrollbar { display: none; }
.v9-chips-scroll .v9-chip { flex: 0 0 auto; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; }

/* ---- Birləşik input sətri (ikon + input + düymə) ---------------------- */
.v9-field-row {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  min-height: 50px;
  padding: 0 var(--space-6) 0 var(--space-14);
  border-radius: var(--r-md);
  background: var(--field);
  border: 1px solid var(--line);
}
.v9-field-row > input,
.v9-field-row > select {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  height: 48px;
  color: var(--text);
}
.v9-field-row > select { flex: 0 0 auto; background: var(--field); }
.v9-field-row > input::placeholder { color: var(--text-muted); }
.v9-field-row:focus-within { border-color: var(--pink); }
.v9-field-row-dashed { border-style: dashed; border-color: #8A6CFF; }
.v9-field-row-active { border-color: var(--pink); }
.v9-field-row-icon { color: var(--text-muted); flex: 0 0 auto; display: inline-flex; }
.v9-field-text {
  flex: 1;
  min-width: 0;
  word-break: break-all;
  padding-block: var(--space-12);
}
.v9-field-suffix { color: var(--text-muted); flex: 0 0 auto; padding-right: var(--space-8); }
.v9-cc { flex: 0 0 108px; padding-right: var(--space-8); }
.v9-eye {
  width: var(--touch);
  height: var(--touch);
  border: 0;
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0;
}

/* ---- Seqment: tətbiqdə tam en ---------------------------------------- */
.v9-segment-block.v9-segment { display: grid; width: 100%; }
.v9-segment-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v9-segment-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v9-segment-block .v9-segment-item {
  width: 100%;
  padding: 0 var(--space-8);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---- Oyun kartı: tətbiqdə maye en ------------------------------------ */
.v9-game-link { display: block; text-decoration: none; color: inherit; }
.v9-game-cell { position: relative; min-width: 0; }
.v9-game-cell .v9-game { width: 100%; }
.v9-game-caption { display: flex; flex-direction: column; gap: 2px; margin-top: var(--space-6); min-width: 0; }
.v9-game-caption .v9-game-name { font-size: 13px; font-weight: 600; }
.v9-game-caption .v9-game-provider { color: var(--text-muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Sevimli düyməsi kartın üstündə, 44×44 toxunma sahəsi */
.v9-fav-form { position: absolute; top: 0; right: 0; margin: 0; z-index: 2; }
.v9-fav-btn {
  width: var(--touch);
  height: var(--touch);
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.v9-fav-btn > span {
  width: 30px;
  height: 30px;
  border-radius: var(--r-pill);
  background: rgba(8, 2, 24, .6);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Qradiyent lövhəciyi (şəbəkə / bonus nişanı) — oyun kartı qradiyentlərindən */
.v9-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  background-image: var(--gloss), var(--game-1);
  box-shadow: var(--shadow-tile);
}
.v9-glyph-2 { background-image: var(--gloss), var(--game-2); }
.v9-glyph-3 { background-image: var(--gloss), var(--game-3); color: #3A1A00; }
.v9-glyph-4 { background-image: var(--gloss), var(--game-4); }
.v9-glyph-5 { background-image: var(--gloss), var(--game-5); }
.v9-glyph-6 { background-image: var(--gloss), var(--game-6); }
.v9-glyph-36 { width: 36px; height: 36px; border-radius: 10px; }
.v9-glyph-44 { width: 44px; height: 44px; border-radius: var(--r-md); font-size: 14px; }
.v9-glyph-56 { width: 56px; height: 56px; border-radius: var(--r-card); }

/* ---- Banner karuseli -------------------------------------------------- */
.v9-carousel {
  position: relative;
  border-radius: var(--r-hero);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: var(--shadow-hero);
  touch-action: pan-y;
}
.v9-track { display: flex; transition: transform .9s cubic-bezier(.45, 0, .2, 1); }
.v9-slide {
  position: relative;
  flex: 0 0 100%;
  min-height: 184px;
  padding: var(--space-18) var(--space-20) var(--space-20);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-10);
  overflow: hidden;
  color: #fff;
}
.v9-slide-1 { background-image: var(--gloss), var(--grad-hero); }
.v9-slide-2 { background-image: var(--gloss), var(--grad-invite); }
.v9-bchip {
  position: relative;
  padding: var(--space-4) var(--space-10);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .5);
}
.v9-bbig {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: var(--space-8);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .12), 0 4px 0 rgba(60, 0, 90, .25), 0 10px 20px rgba(40, 0, 60, .45);
}
.v9-bbig small { font-size: 18px; letter-spacing: .02em; color: #FFE98F; }
.v9-bbig-gold { color: #FFE98F; }
.v9-bbig-gold small { color: #fff; }
.v9-slide .v9-btn { position: relative; margin-top: auto; }
.v9-ring { position: absolute; border-radius: 50%; border: 18px solid rgba(255, 255, 255, .12); pointer-events: none; }
.v9-ring-1 { width: 220px; height: 220px; right: -60px; top: -40px; }
.v9-ring-2 { width: 120px; height: 120px; right: 50px; bottom: -54px; border-width: 12px; }
.v9-bcoin {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  box-shadow: 0 5px 0 rgba(0, 0, 0, .25), 0 10px 18px rgba(40, 0, 60, .4), inset 0 2px 3px rgba(255, 255, 255, .75);
  pointer-events: none;
}
.v9-bcoin-mint { background: radial-gradient(circle at 35% 30%, #EFFFF8, #5CF0C0 35%, #14A37A 75%, #0B6E52); color: #075039; }
.v9-bcoin-gold { background: radial-gradient(circle at 35% 30%, #FFF6C8, #FFD24A 40%, #E09A00 80%, #9A6200); color: #5A3000; }
.v9-bcoin-pink { background: radial-gradient(circle at 35% 30%, #fff, #FFB0EE 40%, #E03CC4 85%); color: #5A0A50; }
.v9-bcoin-blue { background: radial-gradient(circle at 35% 30%, #fff, #7FF5FF 40%, #0FA8F0 85%); color: #063A5A; }
.v9-bcoin-a { right: 34px; top: 30px; transform: rotate(-14deg); }
.v9-bcoin-b { right: 96px; top: 84px; width: 34px; height: 34px; font-size: 15px; transform: rotate(18deg); }
.v9-bcoin-c { right: 28px; bottom: 42px; width: 28px; height: 28px; }
.v9-bcoin-d { right: 34px; top: 30px; font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.v9-bcoin-e { right: 100px; top: 86px; width: 36px; height: 36px; }
.v9-bcoin-f { right: 30px; bottom: 44px; width: 30px; height: 30px; }
.v9-dots { position: absolute; right: var(--space-8); bottom: var(--space-6); display: flex; }
.v9-dots a, .v9-dots button {
  width: 30px;
  height: 30px;
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.v9-dots i { width: 7px; height: 7px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .45); transition: width .3s, background .3s; }
.v9-dots [aria-current="true"] i { width: 20px; background: #fff; }

/* ---- Aşağı menyu (sticky qab) ----------------------------------------- */
.v9-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  transition: transform .28s ease;
  will-change: transform;
}
.v9-tabbar.v9-hide { transform: translateY(110%); }
.v9-tabbar .v9-bottomnav {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  height: auto;
  padding: var(--space-6) max(var(--space-4), env(safe-area-inset-left, 0px)) calc(var(--space-10) + env(safe-area-inset-bottom, 0px));
}
.v9-bottomnav-item {
  min-height: 54px;
  border: 0;
  background: none;
  text-decoration: none;
  gap: 2px;
}
.v9-bottomnav-label { font-size: 11px; font-weight: 500; }
.v9-bottomnav-item-active .v9-bottomnav-label { font-weight: 700; }

/* ---- Pop-up: mobil sheet + veb modal ---------------------------------- */
.v9-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(6, 2, 20, .74);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: v9-fade .18s ease-out;
}
/* README: arxa fona toxunanda da bağlanır */
.v9-scrim-link { position: absolute; inset: 0; }
.v9-sheet {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  padding: var(--space-12) max(var(--space-20), env(safe-area-inset-left, 0px)) calc(var(--space-24) + env(safe-area-inset-bottom, 0px));
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  background: var(--grad-sheet);
  border-top: 1px solid #6B55C8;
  box-shadow: var(--shadow-sheet);
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  animation: v9-up .22s ease-out;
}
.v9-grab { align-self: center; width: 44px; height: 5px; border-radius: var(--r-pill); background: var(--line); flex: 0 0 auto; }

/* ---- Yan menyu (drawer) ----------------------------------------------- */
.v9-drawer-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(6, 2, 20, .74); animation: v9-fade .18s ease-out; }
.v9-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 41;
  width: min(330px, 88vw);
  overflow-y: auto;
  padding: calc(var(--space-14) + env(safe-area-inset-top, 0px)) var(--space-16) calc(var(--space-24) + env(safe-area-inset-bottom, 0px)) max(var(--space-16), env(safe-area-inset-left, 0px));
  background: radial-gradient(120% 300px at 30% 0%, #34127A 0%, rgba(18, 10, 44, 0) 100%), var(--bar);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--space-18);
  animation: v9-slide .22s ease-out;
}
.v9-nav-sec { display: flex; flex-direction: column; gap: 2px; }
.v9-nav-sec > span { padding: 0 var(--space-6) var(--space-4); color: var(--text-muted); }
.v9-nav-sec a {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  min-height: 46px;
  padding: 0 var(--space-10);
  border-radius: var(--r-sm);
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  font-weight: 500;
}
.v9-nav-sec [aria-current="page"] { background: var(--selected); }
.v9-nav-icon { color: var(--text-3); flex: 0 0 auto; display: inline-flex; }
.v9-nav-sec [aria-current="page"] .v9-nav-icon { color: var(--link); }
.v9-invite-card {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  padding: var(--space-12) var(--space-14);
  border-radius: var(--r-card);
  border: 1px solid #9BE2FF;
  color: #fff;
  text-align: left;
  text-decoration: none;
  background-image: var(--gloss), var(--grad-invite);
}
.v9-invite-coin {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFF6C8, #FFD24A 40%, #E09A00 85%);
  box-shadow: 0 3px 0 #8A5500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #5A3000;
}
.v9-avatar {
  width: var(--touch);
  height: var(--touch);
  border-radius: var(--r-pill);
  background: rgba(20, 6, 50, .35);
  border: 1px solid rgba(255, 255, 255, .5);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  text-decoration: none;
}
.v9-avatar-sm { width: 36px; height: 36px; color: var(--text-3); background: var(--field); border-color: var(--line); }

/* ---- Toast (mövqe) ---------------------------------------------------- */
.v9-toast-fixed {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  width: min(440px, calc(100% - 32px));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  animation: v9-fade .2s ease-out;
}
.v9-toast-fixed.v9-toast { display: flex; }
.v9-toast-fixed .v9-toast-text { flex: 1; }

/* ---- Digər hissələr --------------------------------------------------- */
.v9-progress {
  width: 240px;
  max-width: 100%;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--field);
  border: 1px solid var(--divider);
  overflow: hidden;
}
.v9-progress i {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, #8A3BFF, var(--pink));
  transition: width .3s linear;
}
.v9-qr {
  position: relative;
  width: 188px;
  height: 188px;
  border-radius: var(--r-card);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.v9-qr-note {
  position: absolute;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--space-8);
  background: #F1EAFF;
  color: var(--on-white);
  font-size: 12px;
}
.v9-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  flex: 0 0 auto;
}
.v9-pill-plain { background: var(--field); border: 1px solid var(--line); color: var(--text-3); font-weight: 500; }
.v9-divider-h { flex: 1; height: 1px; background: var(--divider); }
.v9-or { display: flex; align-items: center; gap: var(--space-12); color: var(--text-muted); }
.v9-stat { padding: var(--space-12); gap: 0; }
.v9-stat-box {
  padding: var(--space-10) var(--space-12);
  border-radius: var(--r-md);
  background: rgba(20, 6, 50, .35);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  text-align: left;
  text-decoration: none;
  display: block;
}
.v9-stat-box > span:first-child { color: #FFF2FB; display: block; }
.v9-deep-box { padding: var(--space-6) var(--space-8); border-radius: var(--space-10); background: var(--deep); display: block; min-width: 0; }
.v9-deep-box > span { display: block; }
.v9-deep-box > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v9-flow {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-10);
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--divider);
  color: var(--text-3);
}
.v9-flow > span { flex: 1; text-align: center; padding: var(--space-6) 2px; border-radius: var(--space-10); }
.v9-flow-calc { background: #24185A; }
.v9-flow-avail { flex: 1.3 !important; background: #3A1A5A; color: var(--link); font-weight: 600; }
.v9-flow-active { background: #0F3A33; color: var(--success); font-weight: 600; }
.v9-flow-sep { flex: 0 0 auto !important; }
.v9-check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-10); }
.v9-check-list li { display: flex; gap: var(--space-12); align-items: center; }
.v9-check-list li > span:first-child {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: var(--r-pill);
  background: #0F3A33;
  color: var(--success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.v9-agree { display: flex; gap: var(--space-12); align-items: flex-start; color: var(--text-3); }
.v9-agree input { width: 22px; height: 22px; margin: 0; accent-color: var(--pink); flex: 0 0 auto; }
.v9-error { color: var(--error); }
.v9-center { text-align: center; }
.v9-self-center { align-self: center; }
.v9-self-start { align-self: flex-start; }
.v9-block { width: 100%; }
.v9-m0 { margin: 0; }

/* Oyun başlat ekranı */
.v9-launch {
  min-height: calc(100vh - 84px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-22);
  padding-block: var(--space-20) var(--space-28);
  text-align: center;
  background: radial-gradient(120% 50% at 50% 30%, #4A1A9A 0%, rgba(11, 6, 32, 0) 70%);
}
.v9-launch-mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-20); width: 100%; }
.v9-launch-art.v9-game { width: 148px; border-radius: var(--r-hero); padding: var(--space-14); text-align: left; }
.v9-launch-art .v9-game-mark { font-size: 44px; text-align: left; }
.v9-note {
  display: flex;
  gap: var(--space-10);
  align-items: flex-start;
  text-align: left;
  padding: var(--space-12) var(--space-14);
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--divider);
  color: var(--text-3);
}
.v9-note-icon { color: var(--text-muted); flex: 0 0 auto; display: inline-flex; }

/* Dəvət kartı (Dostlar tabı) */
.v9-ref-card {
  padding: var(--space-16);
  border-radius: var(--r-card);
  background-image: var(--gloss), var(--grad-invite);
  border: 1px solid #9BE2FF;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}
.v9-ref-card .v9-field-row { background: rgba(8, 2, 40, .4); border-color: rgba(255, 255, 255, .4); }

/* Footer — README: hər səhifədə 18+ nişanı və "Məsuliyyətlə oynayın" */
.v9-footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  padding-top: var(--space-22);
  border-top: 1px solid var(--divider-soft);
}
.v9-footer-links { display: flex; flex-wrap: wrap; gap: var(--space-6) var(--space-18); }
.v9-footer-links a { color: var(--text-3); text-decoration: none; }
.v9-age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  border: 2px solid var(--text);
  font-weight: 700;
  font-size: 13px;
  flex: 0 0 auto;
}

/* ---- Komponent en uyğunlaşdırmaları ---------------------------------
   bundle.css-dəki sabit enlər vitrin (preview) üçündür. Tətbiqdə
   komponentlər konteynerə uyğunlaşır — rəng, radius, kölgə, tipoqrafiya
   dəyişmir. */
.v9-app .v9-card,
.v9-app .v9-list,
.v9-app .v9-hero,
.v9-app .v9-kv,
.v9-app .v9-warning,
.v9-app .v9-emptystate,
.v9-app .v9-dd,
.v9-app .v9-field,
.v9-app .v9-selection,
.v9-sheet .v9-card,
.v9-sheet .v9-kv,
.v9-sheet .v9-warning,
.v9-sheet .v9-field,
.v9-sheet .v9-selection,
.v9-sheet .v9-list,
.v9-sheet .v9-emptystate,
.v9-sheet .v9-dd,
.v9-drawer .v9-hero,
.v9-drawer .v9-card { width: 100%; }
.v9-sheet .v9-selection { padding: var(--space-12) var(--space-10); }
/* Dar seçim kartlarında ✓ işarəsi mətnin üstünə düşməsin */
.v9-selection-net.v9-selection-selected,
.v9-selection-amount.v9-selection-selected { padding-right: var(--space-18); }
.v9-selection-net .v9-selection-check,
.v9-selection-amount .v9-selection-check { font-size: 11px; top: 50%; right: var(--space-6); transform: translateY(-50%); }
.v9-app .v9-card { display: flex; flex-direction: column; gap: var(--space-12); padding: var(--space-18); }
.v9-app .v9-hero,
.v9-sheet .v9-hero { padding: var(--space-20); }
.v9-app .v9-list-row { padding: var(--space-14) var(--space-16); }
.v9-app .v9-input,
.v9-sheet .v9-input { width: 100%; }
.v9-btn-block { width: 100%; }
/* İki sətirli düymə (başlıq + izah) — "Qeydiyyatsız oyna" kimi. */
.v9-btn-stack {
  height: auto;
  min-height: 54px;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: var(--space-14);
  padding: var(--space-14) var(--space-16);
  border-radius: var(--r-card);
  text-align: left;
  white-space: normal;
}
.v9-btn-stack > svg { flex: 0 0 auto; }
/* Dar ekranda (320px) sətirə sığmayan uzun düymə mətni keçsin */
.v9-btn-wrap {
  white-space: normal;
  height: auto;
  min-height: 50px;
  padding-block: var(--space-10);
  border-radius: var(--r-lg);
}
.v9-btn-wrap .v9-btn-text { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: var(--space-6); }
.v9-btn-text { display: inline-flex; flex-direction: column; min-width: 0; gap: 2px; }
.v9-btn-stack .v9-btn-text .caption { font-weight: 500; color: #EAF6FF; }
.v9-btn-stack .v9-btn-text > span:first-child { font-family: var(--font-display); font-size: 17px; }
.v9-app .v9-selection { padding: var(--space-12) var(--space-14); }
.v9-selection-btn { text-decoration: none; color: var(--text); display: block; cursor: pointer; }
.v9-selection-net { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: var(--space-8) 2px; min-height: 60px; text-align: center; }
.v9-selection-net-row { display: flex; align-items: center; gap: var(--space-10); min-height: 60px; padding: var(--space-10) var(--space-12); text-align: left; }
.v9-selection-amount { height: var(--touch); display: flex; align-items: center; justify-content: center; font-weight: 600; padding: 0; }

/* ---- Hərəkət ---------------------------------------------------------- */
@keyframes v9-fade { from { opacity: 0; } }
@keyframes v9-up { from { transform: translateY(30px); opacity: .6; } }
@keyframes v9-slide { from { transform: translateX(-30px); opacity: .6; } }
/* README: prefers-reduced-motion aktivdirsə bütün animasiyaları söndür */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---- Veb (1024px və yuxarı) ------------------------------------------
   README: veb dizayn eni 1440px, kənar boşluq gutter-web, məzmun eni
   content-max + sidebar, oyun şəbəkəsi auto-fill minmax(160px,1fr),
   veb modal ortada maksimum 440–460px. */
@media (min-width: 1024px) {
  .v9-app { max-width: calc(var(--content-max) + 2 * var(--gutter-web)); padding-bottom: var(--space-32); }
  .v9-wrap { padding-left: var(--gutter-web); padding-right: var(--gutter-web); }
  .v9-stack { gap: var(--space-32); padding-block: var(--space-20) var(--space-32); }
  .v9-game-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--space-16); }
  .v9-slide { min-height: 240px; }
  /* Şəkilli banner nisbətlə idarə olunur — minimum hündürlük onu əzməsin */
  .v9-slide-sekilli { min-height: 0; }
  .v9-hscroll { grid-auto-columns: 160px; gap: var(--space-16); }
  .v9-scrim { align-items: center; }
  .v9-sheet {
    max-width: 460px;
    border-radius: var(--r-sheet);
    border: 1px solid #6B55C8;
    box-shadow: var(--shadow-modal);
    animation: v9-fade .2s ease-out;
  }
  .v9-tabbar { display: none; }
  .v9-app { padding-bottom: var(--space-32); }
}

/* ---- Admin panel ------------------------------------------------------
   README "Ekran ölçüləri və layout": veb sol menyu sabitdir, eni `sidebar`
   (260px), bənd hündürlüyü `touch`. Dizayn sistemi dəyişmir — yalnız
   admin üçün iki sütunlu qabıq əlavə olunur. */
.v9-admin {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
  background: var(--bg);
}
.v9-admin-yan {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  padding: var(--space-20) var(--space-16);
  background: var(--bar);
  border-right: 1px solid var(--divider);
}
.v9-admin-yan .v9-nav-sec a { min-height: var(--touch); }
.v9-nav-cix {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  min-height: var(--touch);
  padding: 0 var(--space-10);
  border-radius: var(--r-sm);
  color: var(--text-3);
  text-decoration: none;
  font-weight: 500;
}
.v9-admin-mezmun {
  min-width: 0;
  padding: var(--space-32) var(--gutter-web);
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  max-width: var(--content-max);
}
.v9-admin-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); }

/* Admin cədvəli — README: cədvəl `deep` fonunda, qradiyentsiz */
.v9-cedvel {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--r-card);
  overflow: hidden;
}
.v9-cedvel th,
.v9-cedvel td {
  padding: var(--space-12) var(--space-16);
  text-align: left;
  border-bottom: 1px solid var(--divider);
  vertical-align: middle;
}
.v9-cedvel th { color: var(--text-muted); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.v9-cedvel tr:last-child td { border-bottom: none; }
.v9-cedvel td.v9-sag, .v9-cedvel th.v9-sag { text-align: right; font-variant-numeric: tabular-nums; }
.v9-cedvel-qab { overflow-x: auto; }

/* Admin kartları */
.v9-admin-kartlar { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-16); }
.v9-admin-kart { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-18); border-radius: var(--r-card); background: var(--card); border: 1px solid var(--divider); }
/* Komponentlər admin qabığında da konteynerə uyğunlaşır */
.v9-admin .v9-card,
.v9-admin .v9-emptystate,
.v9-admin .v9-warning,
.v9-admin .v9-list,
.v9-admin .v9-kv,
.v9-admin .v9-hero,
.v9-admin .v9-dd { width: 100%; }
.v9-admin .v9-card { display: flex; flex-direction: column; gap: var(--space-12); padding: var(--space-18); }
.v9-admin .v9-input { width: 100%; }
.v9-admin .v9-toast { align-self: flex-start; }

.v9-admin-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-12); }
.v9-admin-form .v9-field { width: 160px; }

/* Çəkməcəni idarə edən checkbox: görünmür, lakin fokus ala bilir */
.v9-gizli-giris {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Mobil üst zolaq və menyu açarı — masaüstündə ikisi də gizlidir */
.v9-admin-ust { display: none; }
.v9-admin-cekmece-ac { display: none; }

@media (max-width: 1023px) {
  /* Telefonda məzmun dərhal yuxarıda başlasın deyə yan menyu yığılır */
  .v9-admin { grid-template-columns: 1fr; }

  .v9-admin-ust {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: var(--space-12);
    min-height: var(--touch);
    padding: var(--space-10) var(--gutter-mobile);
    background: var(--bar);
    border-bottom: 1px solid var(--divider);
  }
  .v9-admin-ust-bildiris {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    min-height: var(--touch);
    padding: 0 var(--space-10);
    border-radius: var(--r-sm);
    color: var(--text-2);
    text-decoration: none;
  }

  .v9-admin-yan {
    position: static;
    height: auto;
    gap: var(--space-10);
    padding: var(--space-12) var(--gutter-mobile);
    border-right: none;
    border-bottom: 1px solid var(--divider);
  }
  /* Loqo üst zolaqdadır — yan paneldə təkrarlanmır */
  .v9-yan-logo { display: none; }

  .v9-admin-cekmece-ac {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    min-height: var(--touch);
    padding: 0 var(--space-12);
    border-radius: var(--r-sm);
    border: 1px solid var(--divider);
    background: var(--card);
    color: var(--text-1);
    cursor: pointer;
  }
  .v9-cekmece-ox { transition: transform .18s ease; }

  /* Menyu yalnız açarla açılır */
  .v9-admin-yan .v9-nav-sec { display: none; }
  #v9-admin-menyu:checked ~ .v9-nav-sec { display: flex; }
  #v9-admin-menyu:checked ~ .v9-admin-cekmece-ac .v9-cekmece-ox { transform: rotate(180deg); }
  #v9-admin-menyu:focus-visible ~ .v9-admin-cekmece-ac { outline: 2px solid var(--pink); outline-offset: 2px; }

  /* Bağlı çəkməcədə "Sayta qayıt" və "Çıxış" yer tutmasın */
  .v9-admin-yan .v9-nav-cix,
  .v9-admin-yan form { display: none; }
  #v9-admin-menyu:checked ~ .v9-nav-cix,
  #v9-admin-menyu:checked ~ form { display: flex; }

  .v9-admin-mezmun { padding: var(--space-20) var(--gutter-mobile); }

  /* Admin formaları telefonda bir sütuna düşür */
  .v9-admin-form { gap: var(--space-10); }
  .v9-admin-form .v9-field,
  .v9-admin-form .v9-field[style] { width: 100% !important; }
  .v9-admin-form .v9-agree[style] { width: 100% !important; }
  .v9-admin-form > .v9-btn { width: 100%; }

  /* Cədvəldə sıxlığı artırırıq ki, yan sürüşdürmə az lazım olsun */
  .v9-cedvel th,
  .v9-cedvel td { padding: var(--space-10) var(--space-12); }
  .v9-cedvel th { font-size: 10px; }

  /* Məzənnə formaları kimi sətir-içi formalar da sığsın */
  .v9-cedvel .v9-row { flex-wrap: wrap; }
  .v9-cedvel .v9-input[style] { width: 100% !important; }
}

/* ---- Oyun kartında provayder şəkli ---------------------------------------
   Şəkil qradiyentin üstünü örtür. Şəkil yüklənməsə qradiyent və nişan
   altda qalır, yəni kart heç vaxt boş görünmür. */
.v9-game-sekilli { position: relative; overflow: hidden; }
.v9-game-sekil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Şəkil varsa böyük işarə lazım deyil */
.v9-game-sekilli .v9-game-mark { display: none; }
/* Ad və nişan şəklin üstündə qalır */
.v9-game-sekilli .v9-game-tag,
.v9-game-sekilli .v9-game-foot { position: relative; z-index: 1; }
/* Adın oxunaqlı qalması üçün aşağıda qaranlıq keçid */
.v9-game-sekilli .v9-game-foot {
  background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
}

/* ---- Huba Casino loqosu --------------------------------------------------
   Personajın öz fonu silinib; dairənin fonu brend qradiyentidir, yəni
   şəkil palitra ilə uyğunlaşır. Şəkil yüklənməsə dairə yenə də rəngli qalır. */
.v9-loqo-nisan {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--grad-hero);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .16),
    0 4px 14px rgba(138, 59, 255, .45);
}
.v9-loqo-nisan img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Üz dairənin mərkəzinə düşsün */
  object-position: 50% 18%;
}
/* Admin yan panelində bir az kiçik */
.v9-admin-yan .v9-loqo-nisan,
.v9-admin-ust .v9-loqo-nisan { width: 30px; height: 30px; }

/* ---- Hazır şəkilli banner ------------------------------------------------
   Şəkil 2:1 nisbətindədir; yuva da həmin nisbəti alır ki, kəsilmə olmasın.
   Mətn qatı göstərilmir (şəkildə onsuz da var), yalnız düymə üstdə qalır. */
.v9-slide-sekilli {
  aspect-ratio: 2 / 1;
  min-height: 0;
  justify-content: flex-end;
  padding: var(--space-16);
}
.v9-slide-sekil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Düymənin altındaki qaranlıq keçid — şəkil açıq olsa da oxunaqlı qalsın */
.v9-slide-sekilli::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(to top, rgba(10, 4, 30, .68), rgba(10, 4, 30, 0));
  pointer-events: none;
}
.v9-slide-sekilli .v9-btn { margin-top: 0; }

/* Dar ekranda loqo header-dəki düymələri sıxışdırmasın.
   "HUBA CASINO" əvvəlki "VAULT9"-dan uzundur, ona görə lazımdır. */
@media (max-width: 430px) {
  .v9-hdr .v9-logo { gap: var(--space-6); }
  .v9-hdr .v9-logo b { font-size: 13px; letter-spacing: 0; }
}
@media (max-width: 360px) {
  /* Lap dar ekranda yalnız nişan qalır — ad səhifə başlığında onsuz da var */
  .v9-hdr .v9-logo b { display: none; }
}
