/* İstifadəçi saytı. Rənglər admin paneldən gəlir: --primary, --accent, --bg-dark, --bg-light, --radius, --card-blur */
:root {
  --bg: var(--bg-dark, #0b0b0d); --surface: #17171b; --surface-2: #202026; --line: rgba(255,255,255,.08);
  --text: #f5f4f7; --text-2: #b9b7c2; --muted: #85828f; --glass: rgba(28,28,32,.42); --glass-line: rgba(255,255,255,.12);
  --ok: #34c77b; --danger: #ff4d5e; --star: #6aa8ff; --r: var(--radius, 24px);
  --tab-h: 72px; --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
html[data-mode="light"] { --bg: var(--bg-light, #f7f5f2); --surface: #fff; --surface-2: #f0eeea; --line: rgba(0,0,0,.08); --text: #141318; --text-2: #4b4955; --muted: #8b8894; color-scheme: light; }
@media (prefers-color-scheme: light) { html[data-mode="system"] { --bg: var(--bg-light, #f7f5f2); --surface: #fff; --surface-2: #f0eeea; --line: rgba(0,0,0,.08); --text: #141318; --text-2: #4b4955; --muted: #8b8894; color-scheme: light; } }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { font: 15px/1.45 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; min-height: 100dvh; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
.fi { flex: none; display: block; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; border: 0; font-weight: 650; font-size: 15px; cursor: pointer; background: var(--surface-2); color: var(--text); transition: transform .12s, filter .15s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn.primary { background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, var(--accent))); color: #fff; box-shadow: 0 10px 28px -12px var(--primary); }
.btn.glass { background: rgba(255,255,255,.08); border: 1px solid var(--glass-line); }
html[data-mode="light"] .btn.glass { background: rgba(0,0,0,.05); }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.danger { background: rgba(255,77,94,.12); color: var(--danger); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn.lg { height: 54px; font-size: 16px; }
.btn.block { display: flex; width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.ib { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; cursor: pointer; flex: none; color: var(--text); }
.ib:active { background: rgba(255,255,255,.08); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.fl { display: flex; flex-direction: column; gap: 7px; }
.fl > span { font-size: 13px; font-weight: 600; color: var(--text-2); }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input:not([type]), select, textarea {
  font: inherit; width: 100%; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; outline: none;
}
textarea { min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
input[type=range] { width: 100%; accent-color: var(--primary); }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg label { flex: 1; min-width: 80px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg b { display: block; text-align: center; padding: 11px 8px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; font-size: 14px; cursor: pointer; }
.seg input:checked + b { background: color-mix(in srgb, var(--primary) 16%, transparent); border-color: var(--primary); color: var(--text); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); }
.check input { margin-top: 3px; accent-color: var(--primary); width: 18px; height: 18px; flex: none; }
.check a, .switch a { color: var(--primary); font-weight: 600; }
.range2 { display: grid; gap: 4px; }
.toast { margin: 10px 16px 0; padding: 12px 14px; border-radius: 14px; font-weight: 550; font-size: 14px; background: var(--surface-2); }
.toast.ok { background: rgba(52,199,123,.14); color: var(--ok); }
.toast.error { background: rgba(255,77,94,.14); color: var(--danger); }
.toast.warn { background: rgba(245,165,36,.15); color: #f5a524; }
.toast.static { margin: 0; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; letter-spacing: -.02em; }
.brand img { height: 34px; border-radius: 10px; }
.brand-ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); }

/* Landing */
.landing-wrap { max-width: 480px; margin: 0 auto; padding: 0 18px calc(24px + var(--safe-b)); }
.land-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.hero { text-align: center; padding: 18px 0 8px; }
.hero h1 { font-size: 34px; line-height: 1.1; letter-spacing: -.035em; font-weight: 800; margin: 22px 0 10px; }
.hero p { color: var(--text-2); margin-bottom: 22px; }
.hero .btn + .btn { margin-top: 10px; }
.faces { height: 210px; position: relative; }
.faces img { position: absolute; width: 112px; height: 150px; object-fit: cover; border-radius: 22px; border: 3px solid var(--bg); box-shadow: 0 16px 40px -14px rgba(0,0,0,.7);
  left: calc(50% - 56px + (var(--i) - 2.5) * 52px); top: calc(24px + (var(--i) * 13px % 40px)); transform: rotate(calc((var(--i) - 2.5) * 6deg)); }
.hero-stats { display: flex; justify-content: space-around; margin: 22px 0 6px; }
.hero-stats b { display: block; font-size: 22px; letter-spacing: -.02em; } .hero-stats small { color: var(--muted); }
.banner { display: block; margin-top: 14px; padding: 18px; border-radius: var(--r); background: linear-gradient(135deg, var(--primary), var(--accent)) center/cover; color: #fff; }
.banner b { display: block; font-size: 17px; } .banner small { opacity: .9; }
.features { display: grid; gap: 10px; margin-top: 18px; }
.features div { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.features span { grid-row: span 2; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); }
.features small { color: var(--muted); }
.site-foot { text-align: center; color: var(--muted); font-size: 13px; padding: 26px 0 6px; display: grid; gap: 6px; }
.site-foot .social { display: flex; justify-content: center; gap: 14px; font-weight: 600; color: var(--text-2); }

/* Auth */
.auth-wrap { max-width: 440px; margin: 0 auto; padding: 22px 18px 40px; }
.auth-card { margin-top: 26px; }
.auth-card h1 { font-size: 28px; letter-spacing: -.03em; font-weight: 800; }
.auth-card .sub { color: var(--text-2); margin: 6px 0 22px; }
.auth-card .switch { text-align: center; margin-top: 18px; color: var(--text-2); }
.center-page { display: grid; place-items: center; min-height: 100dvh; padding: 20px; }
.panel { max-width: 460px; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
.panel h1 { font-size: 22px; margin-bottom: 12px; }
.terms { padding-left: 18px; color: var(--text-2); display: grid; gap: 10px; margin: 0 0 20px; }

/* Swipe */
.swipe-page { overflow: hidden; height: 100dvh; }
.swipe-shell { max-width: 480px; margin: 0 auto; height: 100dvh; display: flex; flex-direction: column; padding-bottom: calc(var(--tab-h) + 12px + var(--safe-b)); }
.swipe-top { display: flex; align-items: center; gap: 6px; padding: 10px 10px 8px; }
.chips { flex: 1; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 85%, transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 0; background: transparent; color: var(--text); font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 999px; cursor: pointer; opacity: .92; }
.chip.on { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); opacity: 1; }
html[data-mode="light"] .chip.on { background: rgba(0,0,0,.07); }
.bolt { color: var(--accent); }
.nudge { display: flex; align-items: center; gap: 8px; margin: 0 12px 8px; padding: 10px 14px; border-radius: 14px; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--text); font-weight: 600; font-size: 14px; }
.deck { position: relative; flex: 1; margin: 0 12px; }
.card { position: absolute; inset: 0; border-radius: calc(var(--r) + 10px); overflow: hidden; background: #1a1a1d; touch-action: none; user-select: none; will-change: transform; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.card.back { transform: scale(.96) translateY(10px); filter: brightness(.7); }
.card .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.card .ph-blur { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; pointer-events: none; }
.bars { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; z-index: 3; }
.bars i { width: 22px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.35); }
.bars i.on { background: #fff; width: 12px; }
.info { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; padding: 18px 16px 16px; border-radius: var(--r); color: #fff;
  background: linear-gradient(180deg, rgba(30,26,24,.18), rgba(30,26,24,.5)); backdrop-filter: blur(var(--card-blur, 18px)) saturate(1.3); -webkit-backdrop-filter: blur(var(--card-blur, 18px)) saturate(1.3); border: 1px solid rgba(255,255,255,.08); }
.info .nm { display: flex; align-items: center; gap: 8px; font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.info .nm span { font-weight: 400; }
.info .nm .fi { color: #fff; }
.info .online { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(52,199,123,.25); }
.info .up { position: absolute; right: 14px; top: 16px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); border: 0; color: #fff; cursor: pointer; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 15px; color: rgba(255,255,255,.88); }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.more { display: none; margin-top: 10px; font-size: 14.5px; color: rgba(255,255,255,.92); }
.card.open .more { display: block; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tags span { padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.14); font-size: 13px; }
.actions { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.act { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; transition: transform .12s; }
.act:active { transform: scale(.9); }
.act.big { width: 66px; height: 66px; background: rgba(20,20,20,.35); }
.act.star { color: var(--star); } .act.like { color: var(--primary); } .act.send { color: #9db7ff; }
.act.like .fi { fill: var(--primary); }
.stamp { position: absolute; top: 60px; z-index: 4; padding: 6px 14px; border: 4px solid; border-radius: 12px; font-weight: 900; font-size: 30px; letter-spacing: .06em; opacity: 0; pointer-events: none; }
.stamp.like { left: 22px; color: var(--ok); transform: rotate(-14deg); }
.stamp.nope { right: 22px; color: var(--danger); transform: rotate(14deg); }
.stamp.super { left: 50%; top: auto; bottom: 46%; transform: translateX(-50%); color: var(--star); }
.empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--text-2); }
.empty .pulse { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary); animation: pulse 2s infinite; }
.empty h2 { color: var(--text); font-size: 20px; margin-bottom: 6px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 40%, transparent); } 100% { box-shadow: 0 0 0 40px transparent; } }

/* Tab bar */
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + var(--safe-b)); width: calc(100% - 24px); max-width: 456px; height: var(--tab-h); z-index: 40;
  display: flex; justify-content: space-around; align-items: center; padding: 0 8px; border-radius: 999px; background: rgba(22,22,24,.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.07); }
html[data-mode="light"] .tabbar { background: rgba(255,255,255,.92); border-color: rgba(0,0,0,.06); box-shadow: 0 10px 30px -12px rgba(0,0,0,.2); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0; border-radius: 999px; color: var(--text-2); font-size: 11.5px; font-weight: 600; max-width: 88px; }
.tabbar a.on { background: rgba(255,255,255,.1); color: var(--text); }
html[data-mode="light"] .tabbar a.on { background: rgba(0,0,0,.06); }
.tabbar .ti { position: relative; }
.tabbar .dot { position: absolute; top: -1px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px #161618; }

/* Sheet & overlay */
.sheet, .overlay { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.overlay { align-items: center; background: rgba(0,0,0,.78); backdrop-filter: blur(8px); }
.sheet-card { width: 100%; max-width: 480px; max-height: 88dvh; overflow-y: auto; background: var(--surface); border-radius: 28px 28px 0 0; padding: 10px 20px calc(24px + var(--safe-b)); animation: up .25s ease; }
.sheet-card h2 { font-size: 20px; margin: 10px 0 16px; }
.grab { width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 4px auto 0; background: rgba(127,127,127,.4); }
.match-box { width: calc(100% - 40px); max-width: 380px; text-align: center; display: grid; gap: 12px; }
.match-title { font-size: 40px; font-weight: 900; letter-spacing: -.03em; font-style: italic; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.match-title.sm { font-size: 28px; }
.match-avs { display: flex; justify-content: center; margin: 12px 0; }
.match-avs img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; background: #333; }
.match-avs img + img { margin-left: -22px; }
.match-box p { color: #ddd; }
.big-ic { color: #f5a524; display: grid; place-items: center; }
@keyframes fade { from { opacity: 0; } } @keyframes up { from { transform: translateY(40px); opacity: .5; } }

/* Inner pages */
.inner .shell { max-width: 560px; margin: 0 auto; padding-bottom: calc(var(--tab-h) + 30px + var(--safe-b)); min-height: 100dvh; }
.pagebar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 4px; padding: 10px 12px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.pagebar h1 { font-size: 24px; font-weight: 800; letter-spacing: -.03em; padding-left: 6px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-right { display: flex; gap: 4px; }
.section { padding: 8px 16px 6px; }
.section h2 { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .02em; margin-bottom: 10px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 16px; }
.tile { position: relative; aspect-ratio: 3/4; border-radius: 20px; overflow: hidden; background: var(--surface-2); display: block; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .tl { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 12px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.tile .tl b { font-size: 16px; display: flex; align-items: center; gap: 5px; } .tile .tl small { opacity: .85; display: block; }
.tile .on { position: absolute; top: 10px; right: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px rgba(0,0,0,.4); }
.tile .badge { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--star); color: #fff; }
.tile.locked img { filter: blur(16px) brightness(.8); transform: scale(1.1); }
.seg-tabs { display: flex; gap: 6px; padding: 4px 16px 12px; overflow-x: auto; scrollbar-width: none; }
.seg-tabs a { padding: 8px 14px; border-radius: 99px; background: var(--surface-2); font-weight: 600; font-size: 14px; white-space: nowrap; }
.seg-tabs a.on { background: var(--text); color: var(--bg); }
.upsell { margin: 6px 16px 16px; padding: 18px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); display: grid; gap: 10px; }
.upsell b { font-size: 18px; } .upsell .btn { background: #fff; color: #111; }
.hscroll { display: flex; gap: 14px; overflow-x: auto; padding: 0 16px 6px; scrollbar-width: none; }
.hscroll a { flex: none; width: 72px; text-align: center; font-size: 13px; font-weight: 600; }
.hscroll .av { width: 72px; height: 72px; border-radius: 50%; display: block; margin-bottom: 6px; border: 2px solid var(--primary); padding: 2px; object-fit: cover; }
.av { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
.av.ph { display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.list a.row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.list a.row:active { background: var(--surface); }
.row .tx { flex: 1; min-width: 0; } .row .tx b { display: block; font-size: 16px; } .row .tx small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.row .tm { color: var(--muted); font-size: 12.5px; text-align: right; }
.row .unread { display: inline-block; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; text-align: center; line-height: 20px; margin-top: 4px; }
.row.new .tx small { color: var(--text); font-weight: 600; }
.empty-inline { text-align: center; padding: 50px 24px; color: var(--muted); display: grid; gap: 12px; justify-items: center; }
.empty-inline .ei { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.empty-inline b { color: var(--text); font-size: 18px; }

/* Chat */
.chat-page { height: 100dvh; overflow: hidden; }
.chat-shell { max-width: 560px; margin: 0 auto; height: 100dvh; display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 10px 10px; border-bottom: 1px solid var(--line); }
.chat-head .av { width: 40px; height: 40px; }
.chat-head .tx { flex: 1; min-width: 0; } .chat-head b { display: block; } .chat-head small { color: var(--muted); font-size: 12.5px; }
.msgs { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 4px; }
.bubble { max-width: 78%; padding: 9px 13px; border-radius: 20px; background: var(--surface-2); align-self: flex-start; word-wrap: break-word; white-space: pre-wrap; position: relative; }
.bubble.mine { align-self: flex-end; background: var(--primary); color: #fff; }
.bubble small { display: block; font-size: 11px; opacity: .65; margin-top: 2px; text-align: right; }
.bubble.sel { outline: 2px solid var(--star); }
.select-mode .bubble:not(.mine) { cursor: pointer; }
.seen { align-self: flex-end; font-size: 11.5px; color: var(--muted); margin: 2px 4px 0; }
.composer { display: flex; gap: 8px; padding: 10px 12px calc(10px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--bg); }
.composer textarea { min-height: 46px; max-height: 120px; height: 46px; border-radius: 23px; padding: 12px 16px; resize: none; }
.composer .ib { background: var(--primary); color: #fff; width: 46px; height: 46px; }
.day { align-self: center; font-size: 12px; color: var(--muted); margin: 10px 0 4px; }
.chat-hello { text-align: center; color: var(--muted); padding: 30px 20px; display: grid; gap: 10px; justify-items: center; }
.chat-hello img, .chat-hello .av { width: 96px; height: 96px; }
.menu-list { display: grid; gap: 6px; }
.menu-list button, .menu-list a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: 14px; border: 0; background: var(--surface-2); font-weight: 600; cursor: pointer; text-align: left; }
.menu-list .danger { color: var(--danger); }

/* Profile */
.p-hero { position: relative; margin: 0 16px; border-radius: 26px; overflow: hidden; aspect-ratio: 4/5; background: var(--surface-2); }
.p-hero img { width: 100%; height: 100%; object-fit: cover; }
.p-hero .bars { top: 12px; }
.p-hero .tap { position: absolute; top: 0; bottom: 0; width: 40%; z-index: 2; } .p-hero .tap.l { left: 0; } .p-hero .tap.r { right: 0; }
.p-name { padding: 16px 18px 4px; font-size: 28px; font-weight: 800; letter-spacing: -.03em; display: flex; align-items: center; gap: 8px; }
.p-name span { font-weight: 400; }
.p-meta { padding: 0 18px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.p-meta span { display: inline-flex; align-items: center; gap: 6px; }
.box { margin: 14px 16px 0; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.box h3 { font-size: 13px; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.box .tags span { background: var(--surface-2); color: var(--text); }
.p-actions { display: flex; gap: 10px; padding: 16px; }
.p-actions .btn { flex: 1; }
.me-card { display: flex; align-items: center; gap: 16px; padding: 10px 18px 6px; }
.me-card .av { width: 88px; height: 88px; }
.me-card b { font-size: 24px; letter-spacing: -.02em; display: block; }
.progress { height: 6px; border-radius: 9px; background: var(--surface-2); overflow: hidden; margin-top: 8px; } .progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.prem-card { margin: 14px 16px 0; padding: 18px; border-radius: 22px; background: linear-gradient(135deg, #1d1720, #2a1520); border: 1px solid rgba(255,255,255,.08); color: #fff; display: flex; align-items: center; gap: 14px; }
.prem-card .crown { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #f5a524, var(--primary)); color: #fff; flex: none; }
.prem-card div { flex: 1; } .prem-card small { color: #cfc8d2; display: block; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 16px; }
.pslot { position: relative; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; background: var(--surface-2); border: 1.5px dashed var(--line); display: grid; place-items: center; color: var(--muted); }
.pslot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pslot .st { position: absolute; left: 6px; top: 6px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; }
.pslot .st.main { background: var(--primary); }
.pslot .pa { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 4px; }
.pslot .pa button { width: 30px; height: 30px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
.pslot label { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; }
.pslot input { display: none; }
.form-pad { padding: 4px 16px 16px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin: 0 16px 8px; font-weight: 600; }
.setting-row small { display: block; color: var(--muted); font-weight: 500; }

/* Premium */
.plans { display: grid; gap: 10px; padding: 0 16px; }
.plan { position: relative; display: block; padding: 18px; border-radius: 22px; background: var(--surface); border: 2px solid var(--line); cursor: pointer; }
.plan input { position: absolute; opacity: 0; }
.plan:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, var(--surface)); }
.plan .pt { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.plan .pt b { font-size: 18px; } .plan .pr { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.plan s { color: var(--muted); font-size: 14px; margin-left: 6px; }
.plan ul { margin: 10px 0 0; padding: 0; list-style: none; color: var(--text-2); display: grid; gap: 4px; font-size: 14px; }
.plan li::before { content: "✓ "; color: var(--primary); font-weight: 800; }
.plan .save { position: absolute; top: -10px; right: 16px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; background: var(--primary); color: #fff; }
.prem-hero { text-align: center; padding: 6px 20px 18px; }
.prem-hero .crown { width: 70px; height: 70px; border-radius: 22px; margin: 0 auto 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #f5a524, var(--primary)); box-shadow: 0 18px 40px -16px var(--primary); }
.prem-hero h2 { font-size: 26px; letter-spacing: -.03em; } .prem-hero p { color: var(--text-2); margin-top: 6px; }
.compare { margin: 16px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.compare div { display: grid; grid-template-columns: 1fr 70px 70px; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.compare div:first-child { border-top: 0; font-weight: 700; color: var(--muted); font-size: 12.5px; }
.compare span { text-align: center; } .compare .y { color: var(--primary); font-weight: 800; }
.coupon { display: flex; gap: 8px; padding: 12px 16px 0; }
.coupon input { text-transform: uppercase; }
.checkout { padding: 16px; display: grid; gap: 10px; }
.fine { color: var(--muted); font-size: 12.5px; text-align: center; padding: 0 20px; }

@media (min-width: 700px) {
  .swipe-shell { padding-top: 10px; }
  .deck { margin: 0 18px; }
}
@media (max-height: 700px) {
  .info .nm { font-size: 24px; } .act { width: 44px; height: 44px; } .act.big { width: 56px; height: 56px; } .meta { font-size: 13.5px; }
}
.landing-wrap { overflow-x: clip; } .hero .faces { margin: 0 -18px; }

/* Bot nişanı */
.botb { display: inline-block; vertical-align: middle; font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.25); text-transform: uppercase; }
html[data-mode="light"] .inner .botb, html[data-mode="light"] .chat-page .botb { background: rgba(0,0,0,.08); color: #333; border-color: rgba(0,0,0,.12); }
.p-name .botb, .chat-head .botb, .list .botb { background: var(--surface-2); color: var(--text-2); border-color: var(--line); }

/* Təsdiq nişanı */
.vb { display: inline-flex; vertical-align: -3px; color: #4ea1ff; margin-left: 4px; }
.vb .fi path:last-child { stroke: #fff; }
/* İzləmə */
.follow-row { display: flex; gap: 22px; padding: 10px 18px 0; }
.follow-row a, .follow-row span { display: flex; flex-direction: column; line-height: 1.2; }
.follow-row b { font-size: 18px; } .follow-row small { color: var(--muted); font-size: 13px; }
.btn.following { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.promo-bar { display: flex; align-items: center; gap: 8px; margin: 0 12px 8px; padding: 10px 14px; border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 22%, transparent), color-mix(in srgb, var(--accent) 22%, transparent)); font-weight: 600; font-size: 14px; }
.admin-dot { color: #4ea1ff; }

/* Match bildirişi */
.notif { position: fixed; z-index: 90; left: 50%; top: calc(12px + var(--d, 0) * 76px); transform: translateX(-50%); width: calc(100% - 24px); max-width: 440px; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 18px; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--accent))); color: #fff; box-shadow: 0 16px 40px -12px rgba(0,0,0,.6); animation: notif-in .35s ease, notif-out .4s ease 7s forwards; }
.notif span { display: flex; flex-direction: column; line-height: 1.25; } .notif small { opacity: .92; }
@keyframes notif-in { from { transform: translate(-50%, -30px); opacity: 0; } }
@keyframes notif-out { to { transform: translate(-50%, -120px); opacity: 0; visibility: hidden; } }

/* =================================================================== Domino */
.dt-face { fill: #fbf8f1; stroke: #cfc6b4; stroke-width: 1.5; }
.dt-mid { stroke: #b9b09e; stroke-width: 1.5; }
.dt-pip { fill: #1d1b19; }
.dt { display: block; width: 100%; height: 100%; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }

/* Lobbi */
.g-hero { margin: 0 16px; padding: 22px 18px; border-radius: 24px; text-align: center; color: #fff;
  background: radial-gradient(120% 120% at 50% 0%, #1f6b4a 0%, #0f3d2b 60%, #0a2a1e 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.g-hero h2 { font-size: 22px; letter-spacing: -.02em; margin-top: 10px; } .g-hero p { opacity: .8; margin-top: 4px; }
.g-hero-tiles { display: flex; justify-content: center; gap: 8px; }
.g-hero-tiles span { display: block; width: 30px; height: 60px; } .g-hero-tiles span:nth-child(1) { transform: rotate(-10deg); } .g-hero-tiles span:nth-child(3) { transform: rotate(10deg); }
.g-who { padding: 14px 18px 4px; color: var(--text-2); } .g-who a { color: var(--primary); font-weight: 600; }
.g-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; padding: 0 16px; }
.g-mode { text-align: left; padding: 16px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.g-mode b { font-size: 18px; } .g-mode span { font-weight: 600; } .g-mode small { color: var(--primary); font-weight: 600; margin-top: 6px; }
.g-mode:active { transform: scale(.98); }
.emoji-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.emoji-pick input { position: absolute; opacity: 0; pointer-events: none; }
.emoji-pick span { width: 40px; height: 40px; display: grid; place-items: center; font-size: 22px; border-radius: 12px; background: var(--surface-2); border: 2px solid transparent; cursor: pointer; }
.emoji-pick input:checked + span { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 15%, transparent); }
.g-room.full { opacity: .65; }
.g-seats { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 34px; flex: none; }
.g-seats i { width: 15px; height: 15px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); } .g-seats i.on { background: #2fbf71; border-color: transparent; }
.pill-ok, .pill-live { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.pill-ok { background: rgba(47,191,113,.15); color: #2fbf71; } .pill-live { background: color-mix(in srgb, var(--primary) 15%, transparent); color: var(--primary); }
.g-me { display: flex; gap: 14px; align-items: center; padding: 8px 18px 4px; }
.g-me-av { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 38px; background: var(--surface-2); overflow: hidden; flex: none; }
.g-me-av img { width: 100%; height: 100%; object-fit: cover; }
.g-me b { font-size: 22px; display: block; } .g-me small { color: var(--muted); }
.g-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 16px 4px; }
.g-stats div { padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.g-stats b { display: block; font-size: 20px; } .g-stats small { color: var(--muted); font-size: 12px; }
.g-res { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; flex: none; }
.g-res.w { background: rgba(47,191,113,.15); color: #2fbf71; } .g-res.l { background: rgba(255,77,94,.12); color: var(--danger); }
.up { color: #2fbf71; } .down { color: var(--danger); }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.lb-row.mine { background: color-mix(in srgb, var(--primary) 9%, transparent); }
.lb-rank { width: 28px; text-align: center; font-weight: 800; color: var(--muted); }
.lb-rank.m1 { color: #f5b301; } .lb-rank.m2 { color: #b8c0cc; } .lb-rank.m3 { color: #cd7f32; }
.lb-score { font-weight: 800; font-size: 18px; }

/* Masa */
.game-page { overflow: hidden; height: 100dvh; background: #07130d; }
.gt { height: 100dvh; display: grid; grid-template-rows: auto auto 1fr; grid-template-columns: 1fr; color: #fff; }
.gt.with-chat { grid-template-columns: 1fr 340px; }
.gt-bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 4px; padding: 8px 10px; background: rgba(0,0,0,.35); backdrop-filter: blur(10px); z-index: 5; }
.gt-bar .ib { color: #fff; } .gt-bar .ib:active { background: rgba(255,255,255,.1); }
.gt-title { flex: 1; min-width: 0; line-height: 1.2; } .gt-title b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt-title small { color: rgba(255,255,255,.65); font-size: 12px; }
.code-copy { background: rgba(255,255,255,.12); border: 0; color: #fff; font: 700 11px/1 ui-monospace, monospace; padding: 3px 6px; border-radius: 6px; cursor: pointer; letter-spacing: .08em; }
.gt-score { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 45%; }
.gt-score .sc { font-size: 12px; padding: 4px 9px; border-radius: 99px; background: rgba(255,255,255,.1); white-space: nowrap; }
.gt-score .sc.me { background: color-mix(in srgb, var(--primary) 55%, transparent); }
.gt-score .sc b { font-size: 14px; }
.chat-btn { position: relative; } .chat-btn .dot { position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); }
.gt-net { grid-column: 1 / -1; text-align: center; font-size: 13px; padding: 6px; background: #b8860b; color: #fff; font-weight: 600; }
.gt-main { display: grid; grid-template-rows: 1fr auto; min-height: 0; min-width: 0;
  background: radial-gradient(120% 90% at 50% 40%, #1e7a52 0%, #135c3d 45%, #0b3a27 80%, #082a1c 100%); position: relative; }
.gt-main::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: radial-gradient(rgba(255,255,255,.25) 1px, transparent 1px); background-size: 4px 4px; }
.table { position: relative; display: grid; grid-template-areas: ". top ." "left board right" ". bottom ."; grid-template-columns: minmax(64px, auto) 1fr minmax(64px, auto); grid-template-rows: auto 1fr auto; min-height: 0; padding: 6px; gap: 4px; }
.s-top { grid-area: top; justify-self: center; } .s-left { grid-area: left; align-self: center; } .s-right { grid-area: right; align-self: center; } .s-bottom { grid-area: bottom; justify-self: center; }
.board-wrap { grid-area: board; position: relative; min-height: 0; min-width: 0; display: grid; place-items: center; border-radius: 22px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.06); background: rgba(0,0,0,.08); overflow: hidden; }
.board { --u: 24px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; align-content: center; gap: 3px; padding: 12px; max-width: 100%; max-height: 100%; }
.bt { display: block; } .bt.h { width: calc(var(--u) * 2); height: var(--u); } .bt.v { width: var(--u); height: calc(var(--u) * 2); }
.bt.new { animation: drop-in .45s cubic-bezier(.2,1.4,.4,1); } .bt.new .dt-face { fill: #fff6d6; }
@keyframes drop-in { from { transform: translateY(-40px) scale(1.3) rotate(-12deg); opacity: 0; } }
.drop { min-width: calc(var(--u) * 1.6); height: calc(var(--u) * 1.6); border-radius: 12px; border: 2px dashed rgba(255,255,255,.8); background: rgba(255,255,255,.12); color: #fff; font-weight: 800; cursor: pointer; animation: pulse-d 1.2s infinite; padding: 0 10px; }
.drop.hot { background: rgba(255,255,255,.35); transform: scale(1.12); }
@keyframes pulse-d { 50% { box-shadow: 0 0 0 6px rgba(255,255,255,.15); } }
.board-empty { color: rgba(255,255,255,.75); font-weight: 600; text-align: center; }
.lobby-center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 16px; }
.lc-code { font-size: 14px; opacity: .85; } .lc-code b { font: 800 20px ui-monospace, monospace; letter-spacing: .12em; }
.lobby-center p { opacity: .85; max-width: 320px; }

/* Oyunçu yerləri */
.seat { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.seat-card { display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border-radius: 99px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); max-width: 220px; transition: box-shadow .2s, background .2s; }
.s-left .seat-card, .s-right .seat-card { flex-direction: column; border-radius: 18px; padding: 8px 6px; gap: 4px; max-width: 86px; text-align: center; }
.seat.turn .seat-card { background: rgba(255,214,102,.18); box-shadow: 0 0 0 2px #ffd666, 0 0 24px rgba(255,214,102,.35); }
.seat.dim .seat-card { opacity: .6; }
.seat.empty .seat-card { border-style: dashed; padding: 10px 14px; }
.seat-empty { opacity: .6; font-size: 13px; } .seat-join { background: #fff; color: #0b3a27; border: 0; border-radius: 99px; padding: 6px 12px; font-weight: 700; cursor: pointer; }
.ring { --p: 0; position: relative; width: 42px; height: 42px; border-radius: 50%; padding: 3px; flex: none;
  background: conic-gradient(#ffd666 calc(var(--p) * 360deg), rgba(255,255,255,.15) 0); }
.ga { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: #224; font-size: 20px; }
.ga img { width: 100%; height: 100%; object-fit: cover; } .ga.emo { background: #1b2a22; } .ga.ini { background: linear-gradient(135deg, var(--primary), var(--accent)); font-weight: 800; font-size: 16px; }
.st { position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #0b3a27; }
.st.on { background: #2fbf71; } .st.weak { background: #f5a524; } .st.off { background: #888; }
.seat-info { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.seat-info b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; } .seat-info b small { opacity: .6; font-weight: 500; }
.seat-info > span { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; margin-top: 2px; }
.team, .ready, .cnt, .pts { font-size: 10.5px; padding: 1px 6px; border-radius: 99px; background: rgba(255,255,255,.12); font-weight: 600; }
.team.t0 { background: rgba(78,161,255,.3); } .team.t1 { background: rgba(255,120,120,.3); }
.ready.yes { background: rgba(47,191,113,.4); } .pts { background: rgba(255,214,102,.3); }
.backs { display: flex; gap: 2px; }
.backs i { width: 8px; height: 16px; border-radius: 2px; background: linear-gradient(135deg, #f4efe4, #d8cfbd); box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.s-left .backs, .s-right .backs { flex-wrap: wrap; justify-content: center; max-width: 60px; }
.bubble-msg { position: absolute; z-index: 4; top: -6px; left: 50%; transform: translate(-50%, -100%); max-width: 180px; padding: 6px 10px; border-radius: 12px; background: #fff; color: #111; font-size: 12.5px; box-shadow: 0 6px 18px rgba(0,0,0,.35); animation: fade .2s; white-space: normal; }
.s-left .bubble-msg { left: 0; transform: translate(0, -100%); } .s-right .bubble-msg { left: auto; right: 0; transform: translate(0, -100%); }

/* Əl */
.hand-wrap { padding: 4px 8px calc(10px + env(safe-area-inset-bottom, 0px)); position: relative; z-index: 2; }
.turn-hint { text-align: center; font-size: 13px; min-height: 20px; color: rgba(255,255,255,.8); margin-bottom: 4px; }
.turn-hint.me { color: #ffd666; font-weight: 700; }
.hand { display: flex; justify-content: center; gap: 6px; flex-wrap: nowrap; }
.ht { --w: min(48px, calc((100vw - 64px) / 7)); width: var(--w); height: calc(var(--w) * 2); padding: 0; border: 0; background: none; cursor: pointer; transition: transform .15s, filter .15s; touch-action: none; flex: none; }
.ht[aria-disabled] { filter: brightness(.55) saturate(.7); cursor: default; }
.ht.ok { transform: translateY(-6px); } .ht.ok .dt-face { stroke: #ffd666; stroke-width: 3; }
.ht.sel { transform: translateY(-14px) scale(1.06); }
.ht.ghost { position: fixed; z-index: 100; pointer-events: none; transform: translate(-50%, -50%) rotate(-6deg) scale(1.1); opacity: .92; }
.gt.with-chat .ht { --w: min(48px, calc((100vw - 404px) / 7)); }

/* Xal animasiyası */
.score-float { position: fixed; z-index: 120; top: 56px; right: 24px; font-size: 26px; font-weight: 900; color: #ffd666; text-shadow: 0 2px 8px rgba(0,0,0,.5); animation: float-up 1.6s ease forwards; pointer-events: none; }
.score-float.me { color: #7dffb3; }
@keyframes float-up { 0% { transform: translateY(20px) scale(.6); opacity: 0; } 20% { transform: none; opacity: 1; } 100% { transform: translateY(-50px); opacity: 0; } }

/* Raund nəticəsi */
.result-card { width: calc(100% - 28px); max-width: 460px; max-height: 88dvh; overflow-y: auto; background: #10261b; color: #fff; border-radius: 24px; padding: 20px; box-shadow: 0 30px 60px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.08); animation: up .3s; }
.rc-head { font-size: 30px; font-weight: 900; text-align: center; letter-spacing: -.02em; }
.rc-head.won { background: linear-gradient(135deg, #ffd666, #ff9f43); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rc-sub { text-align: center; opacity: .85; margin: 4px 0 14px; }
.rh { display: grid; grid-template-columns: 1fr auto 34px; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.08); }
.rh > span:first-child { display: flex; align-items: center; gap: 8px; min-width: 0; } .rh .ga { width: 28px; height: 28px; font-size: 14px; flex: none; }
.rh b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rh.win b { color: #7dffb3; }
.rh-tiles { display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; } .rh-tiles i { width: 14px; height: 28px; display: block; } .rh-tiles em { font-size: 12px; color: #7dffb3; font-style: normal; font-weight: 700; }
.rh-pip { font-weight: 800; text-align: right; }
.rs { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 14px 0 8px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.06); }
.rs b { text-align: right; font-size: 18px; }
.rating { text-align: center; margin: 8px 0; } .rating a { color: #ffd666; }
.rc-more { margin: 8px 0; } .rc-more summary { cursor: pointer; opacity: .8; }
.rc-btns { display: grid; gap: 8px; margin-top: 14px; }
.center { text-align: center; }
.rules-text p { margin: 0 0 10px; color: var(--text-2); }

/* Çat */
.chat { grid-row: 3; grid-column: 2; display: flex; flex-direction: column; min-height: 0; background: #0d1a14; border-left: 1px solid rgba(255,255,255,.08); color: #fff; }
.chat-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.chat-top .ib { color: #fff; }
.chat-list { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.cm { display: flex; gap: 8px; align-items: flex-start; } .cm .ga { width: 30px; height: 30px; font-size: 15px; flex: none; }
.cm-b { background: rgba(255,255,255,.07); border-radius: 4px 14px 14px 14px; padding: 6px 10px; max-width: 80%; }
.cm.mine { flex-direction: row-reverse; } .cm.mine .cm-b { background: color-mix(in srgb, var(--primary) 45%, transparent); border-radius: 14px 4px 14px 14px; }
.cm-h { display: flex; gap: 8px; align-items: baseline; font-size: 12px; } .cm-h time { opacity: .55; }
.cm-r { margin-left: auto; background: none; border: 0; color: rgba(255,255,255,.45); cursor: pointer; font-size: 12px; }
.cm-b p { margin: 2px 0 0; word-break: break-word; font-size: 14px; }
.chat-quick { display: flex; gap: 6px; padding: 6px 10px; overflow-x: auto; scrollbar-width: none; }
.chat-quick button { flex: none; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: #fff; border-radius: 99px; padding: 6px 12px; font: 600 13px Inter, sans-serif; cursor: pointer; }
.chat-form { display: flex; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255,255,255,.08); }
.chat-form input { flex: 1; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: #fff; border-radius: 99px; padding: 10px 14px; }
.chat-form .ib { background: var(--primary); color: #fff; width: 42px; height: 42px; }

@media (max-width: 999px) {
  .gt.with-chat { grid-template-columns: 1fr; }
  .chat { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; height: 62dvh; border-left: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -20px 50px rgba(0,0,0,.5); animation: up .25s; }
  .gt.with-chat .ht { --w: min(48px, calc((100vw - 64px) / 7)); }
}
@media (max-width: 520px) {
  .table { grid-template-columns: 64px 1fr 64px; padding: 4px; }
  .ring { width: 36px; height: 36px; }
  .seat-card { padding: 4px 8px 4px 4px; gap: 6px; }
  .s-left .seat-card, .s-right .seat-card { max-width: 64px; padding: 6px 3px; }
  .s-left .seat-info b, .s-right .seat-info b { max-width: 56px; font-size: 11.5px; }
  .gt-score { max-width: 40%; } .gt-score .sc { padding: 3px 7px; }
  .gt-title b { font-size: 14px; }
  .s-left .team, .s-right .team { display: none; }
}
/* Masa: əsas sahə həmişə qalan hündürlüyü tutur (gizli elementlər sıra sürüşdürməsin) */
.gt-bar { grid-row: 1; } .gt-net { grid-row: 2; } .gt-main { grid-row: 3; grid-column: 1; }
.gt > .toast { position: fixed; z-index: 60; top: 64px; left: 50%; transform: translateX(-50%); width: calc(100% - 32px); max-width: 440px; margin: 0; }
.gt-title small { display: flex; gap: 4px; align-items: center; white-space: nowrap; overflow: hidden; }
.gt-title small > span { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) {
  .gt-bar { gap: 0; padding: 6px 4px; }
  .gt-bar .ib { width: 38px; height: 38px; }
  #gt-mode { display: none; }
  .gt-score { max-width: none; flex-wrap: nowrap; }
}
.s-left .seat-info b, .s-right .seat-info b { max-width: 76px; }
.s-left .seat-card, .s-right .seat-card { overflow: hidden; }
