/* =========================================================
   OnlineKafe — Premium Glassmorphism
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&display=swap');

/* ── Design tokens ───────────────────────────────────────── */
:root {
    /* Background — koyu mor sahne */
    --bg-deep:          #0d0820;
    --bg-mid:           #1a1138;
    --purple-deep:      #2d1b69;

    /* Eski (geriye dönük uyum) — body için kullanılmıyor artık */
    --bg-grad-1:        #1a1138;
    --bg-grad-2:        #2d1b69;
    --bg-grad-3:        #3a2280;
    --bg-overlay:       rgba(255, 255, 255, .03);

    /* Ana mor palet */
    --purple:           #5b3fcc;
    --purple-light:     #8b6fff;
    --purple-glow:      #a78bff;

    /* Altın aksan */
    --gold:             #f4c542;
    --gold-light:       #ffd968;
    --gold-deep:        #b8860b;

    /* Metin */
    --ivory:            #f8f1dc;
    --ivory-dark:       #ddd1a8;
    --ink:              #1a0f0a;
    --ink-soft:         #4a3a30;
    --ink-muted:        rgba(248, 241, 220, .55);
    --ink-inverse:      var(--ivory);

    /* Durum */
    --green:            #4ade80;
    --red:              #f87171;

    /* Eski yüzey isimleri — mevcut sayfalar için */
    --surface:          rgba(255,255,255,.06);
    --surface-soft:     rgba(255,255,255,.04);
    --surface-dim:      rgba(0,0,0,.25);

    --primary:          var(--purple);
    --primary-deep:     #3d2899;
    --primary-soft:     rgba(139,111,255,.18);

    --success:          var(--green);
    --success-deep:     #16a34a;
    --success-soft:     rgba(74,222,128,.18);

    --warning:          #fb923c;
    --danger:           var(--red);

    --border:           rgba(167,139,255,.20);
    --border-strong:    rgba(167,139,255,.35);

    /* Effects */
    --shadow-sm:        0 1px 3px rgba(0,0,0,.20);
    --shadow-md:        0 4px 12px rgba(0,0,0,.30);
    --shadow-lg:        0 12px 32px rgba(0,0,0,.45);
    --shadow-card:      0 8px 24px rgba(0,0,0,.30);
    --shadow-purple:    0 8px 24px rgba(91,63,204,.45);
    --shadow-gold:      0 4px 14px rgba(244,197,66,.30);

    --radius-sm:        8px;
    --radius:           14px;
    --radius-lg:        20px;
    --radius-xl:        28px;
    --radius-pill:      999px;
}

/* ── Reset & base ────────────────────────────────────────── */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-deep);
    color: var(--ivory);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    position: relative;
}

/* Tüm sayfalarda sabit dekor: radial mor + sağ üst altın orb + SVG noise */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(91,63,204,.45) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(244,197,66,.22) 0%, transparent 55%),
        radial-gradient(ellipse 60% 60% at 0% 100%, rgba(91,63,204,.25) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 60%, var(--bg-deep) 100%);
    filter: blur(0);
    pointer-events: none;
}
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .08;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    mix-blend-mode: overlay;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* ── App layout shell ────────────────────────────────────── */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .85rem 1rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: linear-gradient(180deg, rgba(13,8,32,.75), rgba(13,8,32,.55));
    border-bottom: 1px solid rgba(167,139,255,.18);
}
.app-header .brand {
    display: flex; align-items: center; gap: .65rem;
    color: var(--ivory);
    text-decoration: none;
    min-width: 0;
}
.app-header .brand-room-meta {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .82rem;
    font-weight: 700;
    color: var(--gold-light);
    padding: .25rem .55rem;
    background: rgba(244,197,66,.08);
    border: 1px solid rgba(244,197,66,.22);
    border-radius: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.header-right {
    display: flex; align-items: center; gap: .5rem;
}
.balance-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .3rem .3rem .95rem;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--ink);
    border-radius: 100px;
    font-weight: 800;
    font-size: .95rem;
    letter-spacing: -.01em;
    box-shadow:
        0 4px 14px rgba(244,197,66,.30),
        inset 0 1px 0 rgba(255,255,255,.45);
    transition: transform .15s, box-shadow .15s;
}
.balance-pill:hover {
    transform: translateY(-1px);
    box-shadow:
        0 6px 20px rgba(244,197,66,.45),
        inset 0 1px 0 rgba(255,255,255,.45);
}
.balance-pill .add-btn {
    width: 30px; height: 30px;
    background: rgba(26,15,10,.18);
    color: var(--ink);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    line-height: 1;
    font-weight: 800;
    transition: background .15s;
}
.balance-pill .add-btn:hover { background: rgba(26,15,10,.32); }

.icon-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(167,139,255,.12);
    border: 1px solid rgba(167,139,255,.22);
    display: flex; align-items: center; justify-content: center;
    color: var(--ivory);
    transition: background .15s, border-color .15s;
}
.icon-btn:hover { background: rgba(167,139,255,.22); border-color: rgba(167,139,255,.4); }

/* Main content area with space for bottom nav */
.app-main {
    padding: 1rem 1rem 7rem 1rem;
    max-width: 480px;
    margin: 0 auto;
}
@media (min-width: 720px) {
    .app-main { max-width: 920px; }
}

/* ── Hero block ──────────────────────────────────────────── */
.hero {
    margin: .75rem 0 1.5rem;
    text-align: center;
    animation: fadeUp .5s ease both;
}
.hero h1 {
    margin: 0 0 .35rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ivory);
    letter-spacing: -.01em;
}
.hero p {
    margin: 0;
    color: var(--ivory-dark);
    font-size: .92rem;
    font-weight: 500;
}

/* ── Fee tier chip selector ──────────────────────────────── */
.tier-rail {
    display: flex;
    gap: .6rem;
    padding: .35rem .25rem 1.1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    animation: fadeUp .5s .05s ease both;
}
.tier-rail::-webkit-scrollbar { display: none; }

.tier-chip {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
    padding: .85rem 1.15rem;
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    border: 1px solid rgba(167,139,255,.20);
    border-radius: 16px;
    color: var(--ivory);
    font-family: inherit;
    font-weight: 600;
    transition: transform .15s, border-color .15s, background .15s;
    min-width: 96px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    cursor: pointer;
}
.tier-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(167,139,255,.45);
    background: linear-gradient(180deg, rgba(167,139,255,.10), rgba(255,255,255,.02));
}
.tier-chip .chip-fee {
    font-size: 1.15rem;
    color: var(--gold);
    font-weight: 800;
    letter-spacing: -.01em;
}
.tier-chip .chip-label {
    font-size: .68rem;
    color: var(--ivory-dark);
    text-transform: uppercase;
    letter-spacing: .15em;
    font-weight: 700;
}
.tier-chip:disabled {
    opacity: .55; cursor: not-allowed;
    transform: none;
}

/* ── Section header ──────────────────────────────────────── */
.section-head {
    display: flex; justify-content: space-between; align-items: center;
    margin: 1.5rem 0 .85rem;
    padding: 0 .25rem;
}
.section-head h2 {
    margin: 0;
    font-size: .82rem;
    font-weight: 700;
    color: var(--ivory-dark);
    text-transform: uppercase;
    letter-spacing: .25em;
}
.section-head .count {
    font-size: .72rem;
    padding: .25rem .75rem;
    background: rgba(167,139,255,.12);
    border: 1px solid rgba(167,139,255,.22);
    border-radius: 100px;
    color: var(--purple-glow);
    font-weight: 700;
    letter-spacing: .05em;
}

/* ── Room cards (LOBBY) ──────────────────────────────────── */
.room-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: .85rem;
}
@media (min-width: 640px) {
    .room-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .room-list { grid-template-columns: repeat(3, 1fr); }
}

.room-card {
    background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(167,139,255,.08));
    color: var(--ivory);
    border: 1px solid rgba(167,139,255,.35);
    border-radius: 20px;
    padding: 1.1rem 1.15rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform .2s ease, border-color .2s, box-shadow .2s ease;
    animation: fadeUp .4s ease both;
}
.room-card:hover {
    transform: translateY(-3px);
    border-color: rgba(167,139,255,.55);
    box-shadow: 0 14px 36px rgba(0,0,0,.35);
}

.room-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--purple-glow), var(--purple));
}
.room-card.status-waiting::before   { background: linear-gradient(90deg, var(--purple-glow), var(--purple)); }
.room-card.status-countdown::before { background: linear-gradient(90deg, var(--gold-light), var(--gold)); }
.room-card.status-playing::before   { background: linear-gradient(90deg, var(--green), #16a34a); }
.room-card.status-full::before      { background: linear-gradient(90deg, var(--red), #dc2626); }

.room-row { display: flex; justify-content: space-between; align-items: center; }
.room-card .label {
    font-size: .68rem;
    color: var(--ivory-dark);
    text-transform: uppercase;
    letter-spacing: .20em;
    font-weight: 700;
    padding: .2rem .55rem;
    background: rgba(167,139,255,.10);
    border: 1px solid rgba(167,139,255,.20);
    border-radius: 100px;
}

.room-fee {
    margin-top: .55rem;
    display: flex; align-items: baseline; gap: .35rem;
}
.room-fee .amount {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    letter-spacing: -.02em;
}
.room-fee .currency {
    font-size: .95rem;
    color: var(--gold-light);
    font-weight: 700;
    opacity: .85;
}

.room-pot {
    margin-top: .85rem;
    padding: .7rem .9rem;
    background: linear-gradient(135deg, rgba(244,197,66,.18), rgba(244,197,66,.07));
    border: 1px solid rgba(244,197,66,.38);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: space-between;
}
.room-pot .pot-text {
    font-size: .72rem;
    color: var(--gold-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.room-pot .pot-amount {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: -.01em;
}

.room-meta {
    margin-top: .85rem;
    display: flex; align-items: center; justify-content: space-between;
    font-size: .85rem;
    color: var(--ivory-dark);
}
.player-dots {
    display: inline-flex; gap: 5px;
    align-items: center;
}
.player-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: rgba(167,139,255,.30);
    border: 1px solid rgba(167,139,255,.45);
}
.player-dot.filled {
    background: linear-gradient(135deg, var(--purple-light), var(--purple));
    border-color: var(--purple-glow);
    box-shadow: 0 0 8px rgba(167,139,255,.5);
    animation: pulse 2s ease-in-out infinite;
}
.player-count-text {
    margin-left: .5rem;
    font-weight: 700;
    color: var(--ivory);
}
.room-meta .status-pill {
    padding: .3rem .75rem;
    border-radius: 100px;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    border: 1px solid transparent;
}
.status-pill.waiting   { background: rgba(167,139,255,.10); color: var(--purple-glow);  border-color: rgba(167,139,255,.25); }
.status-pill.countdown { background: rgba(244,197,66,.15);  color: var(--gold-light);   border-color: rgba(244,197,66,.35); animation: pulse 1.2s ease-in-out infinite; }
.status-pill.playing   { background: rgba(74,222,128,.12);  color: var(--green);        border-color: rgba(74,222,128,.30); }
.status-pill.full      { background: rgba(248,113,113,.12); color: var(--red);          border-color: rgba(248,113,113,.30); }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .7; }
}

.room-action {
    margin-top: 1rem;
    position: relative;
    display: block;
    width: 100%;
    padding: .95rem;
    background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple) 60%, var(--purple-deep) 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .01em;
    transition: transform .15s, box-shadow .2s;
    box-shadow:
        0 8px 24px rgba(91,63,204,.45),
        inset 0 1px 0 rgba(255,255,255,.20);
    overflow: hidden;
    cursor: pointer;
}
.room-action::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
    transition: left .6s ease;
}
.room-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(91,63,204,.55);
}
.room-action:hover::before { left: 130%; }
.room-action:disabled {
    opacity: .55; cursor: not-allowed; transform: none;
    box-shadow: 0 4px 12px rgba(91,63,204,.30);
}

/* Boş tier kartı — kullanıcı katılana kadar gösterilen "açık ama boş" görünüm */
.room-card-empty {
    border-style: dashed;
    border-color: rgba(167,139,255,.32);
}
.room-card-empty .room-pot {
    opacity: .75;
}
.room-card-empty .player-count-text {
    color: var(--ivory-dark);
}

/* "Henüz oda yok" empty state */
.empty-state {
    grid-column: 1 / -1;
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
    border: 1.5px dashed rgba(167,139,255,.25);
    border-radius: 20px;
    padding: 2.75rem 1rem;
    text-align: center;
    color: var(--ivory-dark);
    backdrop-filter: blur(8px);
}
.empty-state .empty-icon {
    font-size: 2.75rem;
    margin-bottom: .65rem;
    opacity: .55;
    filter: drop-shadow(0 4px 16px rgba(167,139,255,.25));
}

/* ── Bottom navigation (mobile-first) ───────────────────── */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: .6rem .25rem env(safe-area-inset-bottom, .6rem);
    background: linear-gradient(180deg, rgba(13,8,32,.65), rgba(13,8,32,.88));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(167,139,255,.18);
    box-shadow: 0 -8px 28px rgba(0,0,0,.40);
}
.bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: .5rem .25rem;
    color: var(--ivory-dark);
    font-size: .68rem;
    font-weight: 600;
    transition: color .15s, transform .15s;
    position: relative;
    min-height: 56px;
}
.bottom-nav a .nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    opacity: .75;
    transition: opacity .15s;
}
.bottom-nav a .nav-icon svg { display: block; }
.bottom-nav a:hover { color: var(--ivory); }
.bottom-nav a:hover .nav-icon { opacity: 1; }
.bottom-nav a.active {
    color: var(--gold);
}
.bottom-nav a.active .nav-icon { opacity: 1; }
.bottom-nav a.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px; height: 3px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold));
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 8px rgba(244,197,66,.5);
}

/* ── FAB (Lobi — ortadaki domino butonu) ─────────────────── */
.bottom-nav a.fab {
    margin-top: -1.85rem;
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple) 60%, var(--purple-deep) 100%);
    border-radius: 50%;
    box-shadow:
        0 0 0 5px rgba(13,8,32,.95),
        0 10px 28px rgba(91,63,204,.60),
        inset 0 1px 0 rgba(255,255,255,.25);
    color: white;
    flex: 0 0 64px;
    padding: 0;
    border: 1px solid rgba(167,139,255,.45);
    transition: transform .2s, box-shadow .2s;
}
.bottom-nav a.fab:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 0 5px rgba(13,8,32,.95),
        0 14px 36px rgba(91,63,204,.75),
        inset 0 1px 0 rgba(255,255,255,.30);
}
.bottom-nav a.fab.active {
    color: white;
    background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple) 100%);
}
.bottom-nav a.fab::before { display: none !important; }
.bottom-nav a.fab .nav-icon { opacity: 1; }
.bottom-nav a.fab .nav-icon svg { color: white; }
.bottom-nav a.fab .nav-text {
    position: absolute;
    bottom: -1.4rem;
    font-size: .68rem;
    color: var(--ivory-dark);
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* ── Auth pages ──────────────────────────────────────────── */
.auth-page {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; padding: 1rem;
}
.auth-card {
    background: var(--surface);
    color: var(--ink);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%; max-width: 380px;
}
.auth-card .brand-block {
    text-align: center;
    margin-bottom: 1.5rem;
}
.auth-card .brand-block .brand-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    border-radius: 18px;
    font-size: 1.75rem;
    color: white;
    box-shadow: 0 8px 20px rgba(124, 58, 237, .35);
    margin-bottom: .75rem;
}
.auth-card h1 {
    margin: 0 0 .25rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ink);
}
.auth-card .subtitle {
    text-align: center;
    color: var(--ink-muted);
    margin-bottom: 1.5rem;
    font-size: .9rem;
}
.auth-card label {
    display: block;
    margin-bottom: .85rem;
    color: var(--ink-soft);
    font-size: .85rem;
    font-weight: 600;
}
.auth-card input {
    display: block;
    width: 100%;
    padding: .75rem .85rem;
    margin-top: .3rem;
    background: var(--surface-dim);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    color: var(--ink);
    font-size: 1rem;
    transition: border-color .15s, box-shadow .15s;
}
.auth-card input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}
.auth-card .btn-primary {
    margin-top: .5rem;
}
.auth-alt {
    margin-top: 1.25rem;
    text-align: center;
    color: var(--ink-muted);
    font-size: .9rem;
}
.auth-alt a { color: var(--primary); font-weight: 600; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: 100%;
    padding: 1.1rem 1.25rem;
    background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple) 60%, var(--purple-deep) 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: .01em;
    transition: transform .15s ease, box-shadow .2s ease;
    box-shadow:
        0 8px 24px rgba(91,63,204,.45),
        inset 0 1px 0 rgba(255,255,255,.20);
    text-align: center;
    overflow: hidden;
    cursor: pointer;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
    transition: left .6s ease;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow:
        0 12px 32px rgba(91,63,204,.55),
        inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover::before { left: 130%; }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 12px rgba(91,63,204,.30);
}

.btn-secondary {
    padding: .7rem 1.2rem;
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
    color: var(--ivory);
    border: 1px solid rgba(167,139,255,.25);
    border-radius: 14px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, border-color .15s, transform .15s;
    backdrop-filter: blur(12px);
}
.btn-secondary:hover {
    background: linear-gradient(180deg, rgba(167,139,255,.14), rgba(167,139,255,.05));
    border-color: rgba(167,139,255,.45);
    transform: translateY(-1px);
}

.btn-ghost {
    padding: .55rem 1rem;
    background: transparent;
    color: var(--ivory-dark);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
}
.btn-ghost:hover { color: var(--ivory); }
.btn-link {
    background: none; border: none;
    color: var(--purple-glow);
    font-family: inherit;
    font-weight: 600;
    text-decoration: none;
    padding: .55rem 1rem;
    cursor: pointer;
    transition: color .15s;
}
.btn-link:hover { color: var(--red); }

.btn-danger {
    padding: .7rem 1.2rem;
    background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(220,38,38,.40), inset 0 1px 0 rgba(255,255,255,.20);
    transition: transform .15s, box-shadow .15s;
}
.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(220,38,38,.55), inset 0 1px 0 rgba(255,255,255,.20);
}

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
    padding: .75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: .9rem;
}
.alert-error {
    background: rgba(248,113,113,.12);
    color: #fecaca;
    border: 1px solid rgba(248,113,113,.35);
}
.alert-success {
    background: var(--success-soft);
    color: var(--success-deep);
    border: 1px solid #6ee7b7;
}

/* ── Profile / Card layouts (dark glass cards) ──────────── */
.profile-page, .admin-page { color: var(--ivory); }

.profile-nav, .admin-nav {
    display: flex;
    gap: .35rem;
    padding: .6rem 1rem;
    overflow-x: auto;
    background: rgba(0,0,0,.20);
    border-bottom: 1px solid rgba(167,139,255,.15);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.profile-nav::-webkit-scrollbar,
.admin-nav::-webkit-scrollbar { display: none; }

.profile-nav a, .admin-nav a {
    flex: 0 0 auto;
    padding: .55rem 1.05rem;
    border-radius: 100px;
    color: var(--ivory-dark);
    font-weight: 700;
    font-size: .82rem;
    white-space: nowrap;
    transition: all .15s;
    border: 1px solid transparent;
}
.profile-nav a:hover,
.admin-nav a:hover {
    background: rgba(167,139,255,.10);
    border-color: rgba(167,139,255,.20);
    color: var(--ivory);
}
.profile-nav a.active,
.admin-nav a.active {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--ink);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(244,197,66,.30), inset 0 1px 0 rgba(255,255,255,.45);
}

.profile-main, .admin-main {
    max-width: 480px;
    margin: 0 auto;
    padding: 1.25rem 1rem 7rem;
}
@media (min-width: 720px) {
    .profile-main, .admin-main { max-width: 920px; }
}
.profile-main h1, .admin-main h1 {
    color: var(--ivory);
    font-size: 1.4rem;
    margin: 0 0 1rem;
    font-weight: 800;
    letter-spacing: -.01em;
}
.profile-main h2, .admin-main h2 {
    color: var(--ivory);
    font-size: .85rem;
    margin: 1.5rem 0 .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .20em;
}

.info-card {
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    color: var(--ivory);
    border: 1px solid rgba(167,139,255,.20);
    padding: 1.3rem 1.25rem;
    border-radius: 18px;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.info-card h3 {
    margin: 0 0 .85rem;
    color: var(--ivory);
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: -.01em;
}
.info-card hr {
    border: none;
    border-top: 1px solid rgba(167,139,255,.18);
    margin: 1.1rem 0;
}
.info-card .hint {
    color: var(--ivory-dark);
    font-size: .85rem;
}

.profile-flash, .admin-flash {
    max-width: 480px;
    margin: 1rem auto;
    padding: .85rem 1.1rem;
    border-radius: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
@media (min-width: 720px) {
    .profile-flash, .admin-flash { max-width: 920px; }
}
.profile-flash.alert-error,
.admin-flash.alert-error {
    background: rgba(248,113,113,.12);
    border-color: rgba(248,113,113,.35);
    color: #fecaca;
}
.profile-flash.alert-success,
.admin-flash.alert-success {
    background: rgba(74,222,128,.12);
    border-color: rgba(74,222,128,.35);
    color: #bbf7d0;
}

/* Tables */
.profile-table, .admin-table {
    width: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    color: var(--ivory);
    border: 1px solid rgba(167,139,255,.20);
    border-radius: 16px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 6px 20px rgba(0,0,0,.30);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.profile-table th, .profile-table td,
.admin-table th, .admin-table td {
    padding: .75rem .9rem;
    text-align: left;
    border-bottom: 1px solid rgba(167,139,255,.12);
    font-size: .88rem;
}
.profile-table tr:last-child td,
.admin-table tr:last-child td { border-bottom: none; }
.profile-table th, .admin-table th {
    background: rgba(0,0,0,.25);
    color: var(--purple-glow);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15em;
    border-bottom: 1px solid rgba(167,139,255,.20);
}
.profile-table tbody tr:hover,
.admin-table tbody tr:hover { background: rgba(167,139,255,.06); }
.profile-table tr.won td, .admin-table tr.won td { background: rgba(244,197,66,.06); }
.profile-table td.num, .admin-table td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.profile-table td.muted, .admin-table td.muted { color: var(--ivory-dark); }
.profile-table td.pos, .admin-table td.pos { color: var(--green); font-weight: 700; }
.profile-table td.neg, .admin-table td.neg { color: var(--red); font-weight: 700; }
.profile-table.compact th, .profile-table.compact td { padding: .5rem .7rem; font-size: .82rem; }

/* Withdrawal form layout */
.withdraw-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 720px) {
    .withdraw-grid { grid-template-columns: 1fr 1.4fr; }
}
.withdraw-form label {
    display: block;
    margin-bottom: 1rem;
    color: var(--ivory-dark);
    font-size: .85rem;
    font-weight: 600;
}
.withdraw-form input,
.withdraw-form textarea {
    display: block; width: 100%;
    margin-top: .35rem;
    padding: .85rem .95rem;
    background: rgba(0,0,0,.25);
    border: 1.5px solid rgba(167,139,255,.20);
    border-radius: 14px;
    color: var(--ivory);
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.withdraw-form input::placeholder,
.withdraw-form textarea::placeholder { color: rgba(248,241,220,.4); }
.withdraw-form input:focus,
.withdraw-form textarea:focus {
    outline: none;
    border-color: var(--purple-glow);
    background: rgba(0,0,0,.35);
    box-shadow: 0 0 0 4px rgba(167,139,255,.12);
}
.withdraw-form small {
    color: var(--ink-muted);
    font-size: .75rem;
}

/* Settings form */
.settings-form {
    margin-bottom: 0;
}
.settings-form label {
    display: block;
    margin-bottom: .95rem;
    color: var(--ivory-dark);
    font-size: .85rem;
    font-weight: 600;
}
.settings-form input {
    display: block; width: 100%;
    margin-top: .4rem;
    padding: .8rem .9rem;
    background: rgba(0,0,0,.25);
    border: 1.5px solid rgba(167,139,255,.20);
    border-radius: 12px;
    color: var(--ivory);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.settings-form input::placeholder { color: rgba(248,241,220,.4); }
.settings-form input:focus {
    outline: none;
    border-color: var(--purple-glow);
    background: rgba(0,0,0,.35);
    box-shadow: 0 0 0 4px rgba(167,139,255,.12);
}
.settings-form .settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.settings-form small {
    color: var(--ivory-dark);
    font-size: .75rem;
}

/* Big WhatsApp / deposit CTA */
.btn-large {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    margin: 1rem 0;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    box-shadow: 0 6px 18px rgba(37, 211, 102, .4);
    color: white;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700;
}
.btn-large:hover { transform: translateY(-1px); }

/* Badges */
.badge {
    display: inline-block;
    padding: .25rem .65rem;
    border: 1px solid rgba(167,139,255,.25);
    border-radius: 100px;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    background: rgba(167,139,255,.10);
    color: var(--ivory-dark);
}
.badge-admin     { background: rgba(244,197,66,.15);  color: var(--gold-light);   border-color: rgba(244,197,66,.35); }
.badge-waiting   { background: rgba(167,139,255,.10); color: var(--purple-glow);  border-color: rgba(167,139,255,.25); }
.badge-countdown { background: rgba(244,197,66,.15);  color: var(--gold-light);   border-color: rgba(244,197,66,.35); }
.badge-playing   { background: rgba(74,222,128,.12);  color: var(--green);        border-color: rgba(74,222,128,.30); }
.badge-finished  { background: rgba(167,139,255,.12); color: var(--purple-glow);  border-color: rgba(167,139,255,.30); }
.badge-cancelled { background: rgba(248,113,113,.12); color: var(--red);          border-color: rgba(248,113,113,.30); }
.badge-normal    { background: rgba(74,222,128,.12);  color: var(--green);        border-color: rgba(74,222,128,.30); }
.badge-locked    { background: rgba(244,197,66,.15);  color: var(--gold-light);   border-color: rgba(244,197,66,.35); }
.badge-forfeit   { background: rgba(248,113,113,.12); color: var(--red);          border-color: rgba(248,113,113,.30); }
.badge-pending   { background: rgba(244,197,66,.15);  color: var(--gold-light);   border-color: rgba(244,197,66,.35); }
.badge-approved  { background: rgba(167,139,255,.12); color: var(--purple-glow);  border-color: rgba(167,139,255,.30); }
.badge-paid      { background: rgba(74,222,128,.12);  color: var(--green);        border-color: rgba(74,222,128,.30); }
.badge-rejected  { background: rgba(248,113,113,.12); color: var(--red);          border-color: rgba(248,113,113,.30); }
.badge-deposit       { background: rgba(74,222,128,.12);  color: var(--green);       border-color: rgba(74,222,128,.30); }
.badge-withdrawal    { background: rgba(248,113,113,.12); color: var(--red);         border-color: rgba(248,113,113,.30); }
.badge-withdrawal_hold { background: rgba(244,197,66,.15); color: var(--gold-light); border-color: rgba(244,197,66,.35); }
.badge-entry_fee     { background: rgba(167,139,255,.10); color: var(--ivory-dark); border-color: rgba(167,139,255,.20); }
.badge-prize         { background: rgba(244,197,66,.15);  color: var(--gold-light); border-color: rgba(244,197,66,.35); }
.badge-refund        { background: rgba(167,139,255,.12); color: var(--purple-glow);border-color: rgba(167,139,255,.30); }
.badge-admin_adjust  { background: rgba(255,107,170,.12); color: #f9a8d4;          border-color: rgba(255,107,170,.30); }

/* ── Game page (oyun ekranı) ─────────────────────────────── */
.game-table {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1rem 1rem 6.5rem;
    display: grid;
    gap: .85rem;
}
.opponents {
    display: flex;
    gap: .6rem;
    overflow-x: auto;
    padding-bottom: .25rem;
    -webkit-overflow-scrolling: touch;
}
.opponents::-webkit-scrollbar { height: 4px; }
.opponents::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 4px; }

.opponent {
    flex: 0 0 auto;
    min-width: 160px;
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    color: var(--ivory);
    border: 1px solid rgba(167,139,255,.20);
    border-radius: 16px;
    padding: .75rem .85rem;
    transition: border-color .15s, box-shadow .15s, background .15s;
    box-shadow: 0 6px 18px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.opponent.active-turn {
    border-color: var(--purple-glow);
    background: linear-gradient(180deg, rgba(167,139,255,.14), rgba(91,63,204,.06));
    box-shadow:
        0 0 0 3px rgba(167,139,255,.18),
        0 8px 24px rgba(91,63,204,.45);
    animation: opponent-pulse 1.8s infinite;
}
@keyframes opponent-pulse {
    0%,100% { box-shadow: 0 0 0 3px rgba(167,139,255,.18), 0 8px 24px rgba(91,63,204,.45); }
    50%     { box-shadow: 0 0 0 6px rgba(167,139,255,.28), 0 10px 32px rgba(91,63,204,.65); }
}
.opponent-info {
    display: flex; justify-content: space-between; align-items: center;
    font-size: .85rem;
    margin-bottom: .5rem;
}
.opponent-name { font-weight: 700; color: var(--ivory); letter-spacing: -.01em; }
.opponent-tilecount {
    color: var(--purple-glow);
    font-size: .7rem;
    font-weight: 700;
    padding: .15rem .55rem;
    background: rgba(167,139,255,.12);
    border: 1px solid rgba(167,139,255,.22);
    border-radius: 100px;
    text-transform: lowercase;
    letter-spacing: .03em;
}
.opponent-tiles { display: flex; flex-wrap: wrap; gap: 3px; }

.table-center {
    background:
        radial-gradient(ellipse at top, rgba(255,255,255,.06), transparent 60%),
        linear-gradient(180deg, #064e3b 0%, #052e2b 100%);
    border: 1px solid rgba(74,222,128,.18);
    border-radius: 22px;
    padding: 1.1rem;
    color: var(--ivory);
    min-height: 240px;
    /* flexbox/grid alt-elemanın taşma kontrolünü gerçekten yapabilmesi için */
    min-width: 0;
    overflow: hidden;
    box-shadow:
        inset 0 4px 28px rgba(0,0,0,.45),
        0 8px 24px rgba(0,0,0,.30);
}
.game-status-bar {
    display: flex; flex-wrap: wrap; gap: .45rem;
    align-items: center; margin-bottom: .85rem;
}
.status-text {
    font-size: .95rem; font-weight: 700;
    color: var(--ivory);
    letter-spacing: -.01em;
}
.countdown-pill, .pot-pill, .turn-pill, .boneyard-pill, .mode-pill {
    padding: .3rem .8rem;
    border-radius: 100px;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.10);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.countdown-pill { color: var(--gold-light); border-color: rgba(244,197,66,.30); animation: pulse 1.2s ease-in-out infinite; }
.pot-pill       { color: var(--gold);       border-color: rgba(244,197,66,.30); background: linear-gradient(135deg, rgba(244,197,66,.18), rgba(0,0,0,.25)); }
.turn-pill      { color: var(--green);      border-color: rgba(74,222,128,.30); }
.boneyard-pill  { color: var(--purple-glow);border-color: rgba(167,139,255,.30); }
.mode-pill      { color: var(--ivory-dark); }

.board-wrap {
    display: flex; align-items: stretch; gap: .35rem;
    position: relative;
    min-width: 0;        /* taşmayı .board'a bırak — wrap kendi container'ını şişirmesin */
    max-width: 100%;
}

/* ── Side-pick buttons (taş iki uca da uyarsa) ───────────── */
.side-pick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: .55rem .9rem;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    color: var(--ink);
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    box-shadow:
        0 6px 18px rgba(244,197,66,.50),
        inset 0 1px 0 rgba(255,255,255,.50);
    animation: side-pick-pulse 1.6s infinite;
    min-width: 78px;
    flex-shrink: 0;
}
.side-pick-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 24px rgba(244,197,66,.65),
        inset 0 1px 0 rgba(255,255,255,.50);
}
.side-pick-btn .arrow { font-size: 1.2rem; line-height: 1; color: rgba(26,15,10,.7); }
.side-pick-btn .side-label {
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-weight: 800;
}
.side-pick-btn .end-num {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 30px; height: 30px;
    background: rgba(26,15,10,.20);
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 800;
}
@keyframes side-pick-pulse {
    0%, 100% { box-shadow: 0 6px 18px rgba(244,197,66,.50),  inset 0 1px 0 rgba(255,255,255,.50); }
    50%      { box-shadow: 0 10px 28px rgba(244,197,66,.85), inset 0 1px 0 rgba(255,255,255,.50); }
}
.board {
    flex: 1 1 0;
    display: flex; align-items: center;
    gap: 2px;
    min-height: 76px;
    min-width: 0;               /* KRİTİK: flex child default min-width:auto'yu ezer ki overflow-x gerçekten çalışsın */
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: .75rem .4rem;
    scroll-behavior: smooth;
    /* iOS/Android'de yatay scroll daha akıcı olsun */
    -webkit-overflow-scrolling: touch;
}
.board > * { flex-shrink: 0; }   /* taşlar küçülmek yerine scroll'la gözüksün */
.board::-webkit-scrollbar { height: 5px; }
.board::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 4px; }
.board-empty {
    color: rgba(248,241,220,.45);
    font-style: italic;
    width: 100%; text-align: center;
    font-size: .9rem;
    letter-spacing: .02em;
}
.board .tile.double:not(.horizontal) { margin: 0 4px; }
.ends-info {
    text-align: center;
    color: var(--ivory-dark);
    font-size: .82rem;
    font-weight: 600;
    margin-top: .6rem;
    letter-spacing: .02em;
}

.action-row {
    display: flex; justify-content: center; gap: .65rem; flex-wrap: wrap;
    margin: .25rem 0;
}

.my-area {
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    color: var(--ivory);
    border: 1px solid rgba(167,139,255,.20);
    border-radius: 20px;
    padding: .95rem 1.1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.my-info {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: .7rem;
    font-weight: 700; color: var(--ivory);
    letter-spacing: -.01em;
}
.turn-indicator {
    color: var(--gold);
    font-weight: 800;
    font-size: .75rem;
    background: rgba(244,197,66,.12);
    border: 1px solid rgba(244,197,66,.30);
    padding: .3rem .8rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: .15em;
    animation: pulse 1.5s infinite;
}

/* ── Sıra geri sayım: son 10 sn kırmızı/acil ──────────────── */
.turn-pill.urgent {
    color: #fff !important;
    background: linear-gradient(135deg, #f87171, #dc2626) !important;
    border-color: rgba(248,113,113,.6) !important;
    animation: urgent-blink .8s ease-in-out infinite;
}
.turn-indicator.urgent {
    color: #fff;
    background: linear-gradient(135deg, #f87171, #dc2626);
    border-color: rgba(248,113,113,.6);
    animation: urgent-blink .7s ease-in-out infinite;
}
@keyframes urgent-blink {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%      { opacity: .65; transform: scale(1.04); }
}
.hand {
    display: flex; flex-wrap: wrap; gap: 6px;
    min-height: 68px;
    padding: .65rem;
    background: rgba(0,0,0,.25);
    border: 1px solid rgba(167,139,255,.12);
    border-radius: 14px;
}
.my-area > .hint, .hand .hint {
    width: 100%; margin-top: .5rem;
    color: var(--ivory-dark);
    font-size: .82rem;
    font-weight: 500;
}

/* ── Domino tile (kept structure) ────────────────────────── */
.tile {
    display: flex;
    flex-direction: column;
    width: 30px; height: 60px;
    background: #fffaeb;
    border: 1.5px solid #1f1f1f;
    border-radius: 5px;
    overflow: hidden;
    transition: transform .15s, box-shadow .15s, width .12s, height .12s;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,.3);
}
.tile.horizontal { flex-direction: row; width: 60px; height: 30px; }

/* Tahta tile'ları için dinamik boyut (game.js autoFitBoard) */
.board .tile             { width: var(--tile-h, 30px); height: var(--tile-w, 60px); }
.board .tile.horizontal  { width: var(--tile-w, 60px); height: var(--tile-h, 30px); }
.tile.small { width: 16px; height: 32px; }
.tile.small.horizontal { width: 32px; height: 16px; }
.tile .half {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    padding: 2px;
    gap: 1px;
}
.tile .divider { background: #1f1f1f; }
.tile:not(.horizontal) .divider { height: 1.5px; }
.tile.horizontal .divider { width: 1.5px; }
.tile .pip-cell { display: block; }
.tile .pip-cell.pip-on {
    background: #1a1a1a;
    border-radius: 50%;
    width: 3px; height: 3px;
    align-self: center;
    justify-self: center;
}
.tile.small .pip-cell.pip-on { width: 2px; height: 2px; }
.tile.hidden { background: linear-gradient(135deg, #4a1820 0%, #2d0e14 100%); }
.tile-back {
    width: 100%; height: 100%;
    background: repeating-linear-gradient(
        45deg, #4a1820, #4a1820 4px,
        #6a2030 4px, #6a2030 8px
    );
}
.my-hand .tile.playable {
    cursor: pointer;
    border-color: var(--green);
    box-shadow: 0 0 14px rgba(74,222,128,.55), 0 2px 4px rgba(0,0,0,.3);
}
.my-hand .tile.playable:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(74,222,128,.70), 0 0 18px rgba(74,222,128,.5);
}
.my-hand .tile.selected {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 8px 18px rgba(244,197,66,.65), 0 0 18px rgba(244,197,66,.5);
}
.my-hand .tile:not(.playable) { opacity: .85; }

.tile.just-played { animation: tile-pop .6s ease-out; }
@keyframes tile-pop {
    0%   { transform: scale(.3) rotate(15deg); opacity: 0; }
    60%  { transform: scale(1.15) rotate(0deg); opacity: 1; box-shadow: 0 0 20px rgba(244,197,66,.95); }
    100% { transform: scale(1) rotate(0deg);    opacity: 1; box-shadow: 0 2px 4px rgba(0,0,0,.3); }
}

/* ── Chat panel ──────────────────────────────────────────── */
.chat-panel {
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    color: var(--ivory);
    border: 1px solid rgba(167,139,255,.20);
    border-radius: 18px;
    display: flex; flex-direction: column;
    max-height: 260px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: max-height .25s;
}
.chat-panel.collapsed { max-height: 48px; }
.chat-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: .65rem 1rem;
    background: rgba(0,0,0,.20);
    border-bottom: 1px solid rgba(167,139,255,.15);
    font-weight: 700;
    font-size: .85rem;
    color: var(--ivory);
    letter-spacing: -.01em;
}
.chat-toggle {
    background: rgba(167,139,255,.10); border: 1px solid rgba(167,139,255,.20);
    color: var(--ivory);
    font-size: 1.05rem;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.chat-toggle:hover { background: rgba(167,139,255,.22); border-color: rgba(167,139,255,.4); }
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: .75rem 1rem;
    display: flex; flex-direction: column; gap: .45rem;
}
.chat-msg {
    padding: .5rem .75rem;
    background: rgba(0,0,0,.25);
    border: 1px solid rgba(167,139,255,.12);
    border-radius: 12px;
    max-width: 82%;
    font-size: .88rem;
    word-wrap: break-word;
    color: var(--ivory);
}
.chat-msg.mine {
    background: linear-gradient(135deg, rgba(91,63,204,.32), rgba(91,63,204,.18));
    align-self: flex-end;
    border-color: rgba(167,139,255,.40);
    color: var(--ivory);
}
.chat-meta {
    font-size: .7rem;
    color: var(--purple-glow);
    margin-bottom: .15rem;
    font-weight: 600;
}
.chat-msg.mine .chat-meta { color: var(--gold-light); }
.chat-time { margin-left: .35rem; opacity: .7; }
.chat-input-row {
    display: flex; gap: .5rem;
    padding: .6rem;
    border-top: 1px solid rgba(167,139,255,.15);
    background: rgba(0,0,0,.20);
}
.chat-input-row input {
    flex: 1;
    padding: .65rem .85rem;
    background: rgba(0,0,0,.30);
    border: 1.5px solid rgba(167,139,255,.20);
    border-radius: 12px;
    color: var(--ivory);
    font-family: inherit;
    font-size: .9rem;
    transition: border-color .15s, background .15s;
}
.chat-input-row input::placeholder { color: rgba(248,241,220,.4); }
.chat-input-row input:focus {
    outline: none;
    border-color: var(--purple-glow);
    background: rgba(0,0,0,.40);
}
.chat-input-row button {
    width: auto;
    padding: .65rem 1.1rem;
    margin: 0;
    font-size: .9rem;
}

/* ── End-of-game modal ───────────────────────────────────── */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(13, 8, 32, .80);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
    padding: 1rem;
    animation: fadeUp .3s ease;
}
.modal-content {
    background: linear-gradient(180deg, rgba(45,27,105,.55), rgba(26,17,56,.55));
    color: var(--ivory);
    padding: 2rem 1.5rem;
    border: 1px solid rgba(167,139,255,.30);
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    box-shadow:
        0 24px 60px rgba(0,0,0,.55),
        inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}
.modal-content h2 {
    margin: 0 0 1.1rem;
    color: var(--ivory);
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.01em;
}
.modal-content p { margin: .55rem 0; color: var(--ivory-dark); }
.modal-content p b { color: var(--ivory); }

/* ── Oyun kuralları popup'ı ───────────────────────────────── */
.rules-modal-content { max-width: 540px; }
.rules-body {
    max-height: 50vh;
    overflow-y: auto;
    background: rgba(0,0,0,.22);
    border: 1px solid rgba(167,139,255,.18);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
    color: var(--ivory-dark);
    font-size: .95rem;
    line-height: 1.7;
}
.rules-dontshow {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.1rem;
    color: var(--ivory-dark);
    font-size: .88rem;
    cursor: pointer;
    user-select: none;
}
.rules-dontshow input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px; height: 20px;
    border-radius: 6px;
    border: 1.5px solid rgba(167,139,255,.35);
    background: rgba(0,0,0,.25);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all .15s;
}
.rules-dontshow input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--purple-light), var(--purple));
    border-color: var(--purple-glow);
}
.rules-dontshow input[type="checkbox"]:checked::after {
    content: '✓'; color: #fff; font-size: .8rem; font-weight: 800;
}
.modal-content .big-win {
    margin-top: 1.1rem;
    padding: 1rem 1.1rem;
    background: linear-gradient(135deg, rgba(244,197,66,.18), rgba(244,197,66,.06));
    border: 1px solid rgba(244,197,66,.40);
    color: var(--gold-light);
    border-radius: 14px;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
}
.modal-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167,139,255,.30), transparent);
    margin: 1rem 0;
}
.modal-content ul { color: var(--ivory-dark); padding-left: 1.25rem; }
.modal-content code {
    background: rgba(0,0,0,.30);
    border: 1px solid rgba(167,139,255,.18);
    padding: 1px 6px;
    border-radius: 6px;
    color: var(--gold-light);
    font-size: .9em;
}

/* ── Connection / toast ──────────────────────────────────── */
.conn-status {
    position: fixed;
    bottom: 5.5rem; right: 1rem;
    z-index: 150;
    padding: .4rem .9rem;
    border-radius: 100px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .03em;
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(167,139,255,.20);
    color: var(--ivory);
    box-shadow: 0 4px 14px rgba(0,0,0,.30);
}
.conn-status.connected    { color: var(--green); border-color: rgba(74,222,128,.30);  background: linear-gradient(180deg, rgba(74,222,128,.10),  rgba(74,222,128,.03)); }
.conn-status.disconnected { color: var(--red);   border-color: rgba(248,113,113,.30); background: linear-gradient(180deg, rgba(248,113,113,.10), rgba(248,113,113,.03)); }
.conn-status.connecting   { color: var(--gold);  border-color: rgba(244,197,66,.30);  background: linear-gradient(180deg, rgba(244,197,66,.10),  rgba(244,197,66,.03)); }

.toast {
    position: fixed;
    bottom: 6rem; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--surface);
    color: var(--ink);
    padding: .75rem 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--danger);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: opacity .25s, transform .25s;
    z-index: 1100;
    pointer-events: none;
    font-size: .9rem;
    font-weight: 600;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Misc utilities ──────────────────────────────────────── */
.muted { color: var(--ink-muted); }
.hint  { color: var(--ink-muted); font-size: .85rem; }
.text-center { text-align: center; }
hr { border: none; border-top: 1px solid var(--border); }

/* Inline form helper */
.inline-form {
    display: flex; gap: .4rem; align-items: center;
    flex-wrap: wrap;
}
.inline-form input,
.inline-form select {
    padding: .5rem .7rem;
    background: rgba(0,0,0,.25);
    border: 1.5px solid rgba(167,139,255,.20);
    border-radius: 10px;
    color: var(--ivory);
    font-family: inherit;
    font-size: .85rem;
}
.inline-form input:focus,
.inline-form select:focus {
    outline: none;
    border-color: var(--purple-glow);
    background: rgba(0,0,0,.35);
}

/* =========================================================
   SIMPLE HEADER (profile/admin sayfalar için)
   ========================================================= */
.simple-header {
    background: linear-gradient(180deg, rgba(13,8,32,.75), rgba(13,8,32,.55));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(167,139,255,.18);
    padding: .85rem 1rem;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 100;
}
.header-back {
    display: inline-flex; align-items: center; gap: .4rem;
    color: var(--gold);
    font-weight: 700;
    font-size: .9rem;
    padding: .4rem .8rem;
    background: rgba(244,197,66,.08);
    border: 1px solid rgba(244,197,66,.20);
    border-radius: 100px;
    transition: background .15s, border-color .15s;
}
.header-back:hover { background: rgba(244,197,66,.15); border-color: rgba(244,197,66,.35); }
.header-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ivory);
    flex: 1; text-align: center;
    letter-spacing: -.01em;
}
.header-spacer { width: 80px; }

/* =========================================================
   WALLET CARD (cüzdan ana kartı)
   ========================================================= */
.wallet-card {
    background:
        radial-gradient(ellipse 60% 50% at top right, rgba(244,197,66,.18), transparent 60%),
        linear-gradient(135deg, rgba(91,63,204,.55) 0%, rgba(45,27,105,.55) 100%);
    border: 1px solid rgba(167,139,255,.35);
    border-radius: 24px;
    padding: 1.35rem 1.35rem 1.1rem;
    margin-bottom: 1rem;
    color: var(--ivory);
    box-shadow:
        0 12px 32px rgba(0,0,0,.40),
        inset 0 1px 0 rgba(255,255,255,.10);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: fadeUp .5s ease both;
}
.wallet-card::before {
    content: ''; position: absolute; top: -40%; right: -30%;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(244,197,66,.25), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.wc-top {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}
.wc-user {
    font-size: .72rem;
    color: var(--purple-glow);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .25em;
}
.wc-brand {
    display: inline-flex; align-items: center;
    padding: .3rem .85rem;
    background: rgba(0,0,0,.30);
    border: 1px solid rgba(244,197,66,.25);
    border-radius: 100px;
    font-family: 'Playfair Display', serif;
    font-size: .82rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -.01em;
    color: var(--gold-light);
}
.wc-balance {
    display: flex; align-items: baseline;
    gap: .4rem;
    margin-bottom: 1.1rem;
    position: relative;
    z-index: 1;
}
.wc-amount {
    font-size: 2.85rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: -.02em;
    line-height: 1;
    text-shadow: 0 2px 24px rgba(244,197,66,.30);
}
.wc-cur {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-light);
    opacity: .85;
}
.wc-actions {
    display: flex;
    gap: .65rem;
    position: relative;
    z-index: 1;
}
.wc-btn {
    flex: 1;
    display: flex; align-items: center; justify-content: space-between;
    gap: .5rem;
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(248,241,220,.85));
    color: var(--ink);
    padding: .75rem 1rem;
    border-radius: 100px;
    font-weight: 800;
    font-size: .92rem;
    letter-spacing: -.01em;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 4px 14px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.45);
}
.wc-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.wc-btn-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
}
.wc-btn-icon.up   { background: linear-gradient(135deg, var(--green), #16a34a); box-shadow: 0 2px 8px rgba(74,222,128,.40); }
.wc-btn-icon.down { background: linear-gradient(135deg, var(--red),   #dc2626); box-shadow: 0 2px 8px rgba(248,113,113,.40); }

/* Mini cüzdan kartı (deposit/withdraw sayfalarında) */
.wallet-card.mini {
    padding: 1.1rem 1.25rem .95rem;
}
.wallet-card.mini .wc-amount { font-size: 2.1rem; }
.wallet-card.mini .wc-balance { margin-bottom: 0; }

/* =========================================================
   ACTION PAGE CARD (deposit/withdraw iç kart)
   ========================================================= */
.action-page-card {
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    color: var(--ivory);
    border: 1px solid rgba(167,139,255,.20);
    border-radius: 22px;
    padding: 1.75rem 1.4rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-align: center;
}
.action-page-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 70px; height: 70px;
    border-radius: 22px;
    margin: 0 auto .85rem;
    color: white;
}
.action-page-icon.green {
    background: linear-gradient(135deg, var(--green), #16a34a);
    box-shadow: 0 10px 28px rgba(74,222,128,.40), inset 0 1px 0 rgba(255,255,255,.35);
}
.action-page-icon.red {
    background: linear-gradient(135deg, var(--red), #dc2626);
    box-shadow: 0 10px 28px rgba(248,113,113,.40), inset 0 1px 0 rgba(255,255,255,.30);
}
.action-page-card h2 {
    margin: 0 0 .45rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ivory);
    letter-spacing: -.01em;
}
.action-page-card .hint {
    font-size: .88rem;
    line-height: 1.55;
    margin-bottom: 1.35rem;
    color: var(--ivory-dark);
}
.btn-action {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    gap: .6rem;
    padding: 1.05rem 1.5rem;
    background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple) 60%, var(--purple-deep) 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    width: 100%;
    transition: transform .15s, box-shadow .2s;
    box-shadow: 0 8px 24px rgba(91,63,204,.45), inset 0 1px 0 rgba(255,255,255,.20);
    overflow: hidden;
    cursor: pointer;
}
.btn-action::before {
    content: '';
    position: absolute; top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
    transition: left .6s ease;
}
.btn-action:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(91,63,204,.55); }
.btn-action:hover::before { left: 130%; }
.btn-action.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 8px 22px rgba(37,211,102,.45), inset 0 1px 0 rgba(255,255,255,.20);
}
.btn-action.red {
    background: linear-gradient(135deg, var(--red), #dc2626);
    box-shadow: 0 8px 22px rgba(248,113,113,.45), inset 0 1px 0 rgba(255,255,255,.20);
}
.action-meta {
    font-size: .8rem;
    color: var(--ivory-dark);
    margin-top: .75rem;
    text-align: center;
}
.action-meta code {
    background: rgba(0,0,0,.30);
    border: 1px solid rgba(167,139,255,.18);
    padding: .15rem .55rem;
    border-radius: 6px;
    font-size: .85rem;
    color: var(--gold-light);
}
.steps-block {
    margin-top: 1.35rem;
    text-align: left;
    border-top: 1px solid rgba(167,139,255,.18);
    padding-top: 1.1rem;
}
.steps-block .step {
    padding: .6rem .85rem;
    margin-bottom: .4rem;
    color: var(--ivory-dark);
    font-size: .85rem;
    background: rgba(0,0,0,.20);
    border: 1px solid rgba(167,139,255,.12);
    border-radius: 12px;
}
.steps-block .step b { color: var(--purple-glow); margin-right: .4rem; font-weight: 800; }

/* Withdraw form içindeki input grupları */
.withdraw-form label {
    display: block;
    margin-bottom: .95rem;
    text-align: left;
}
.withdraw-form .lbl-text {
    display: block;
    margin-bottom: .45rem;
    font-size: .78rem;
    font-weight: 700;
    color: var(--ivory-dark);
    text-transform: uppercase;
    letter-spacing: .15em;
}
.withdraw-form .lbl-text small {
    color: var(--purple-glow);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}
.input-with-suffix {
    position: relative;
}
.input-with-suffix .suffix {
    position: absolute;
    right: 1.1rem; top: 50%;
    transform: translateY(-50%);
    color: var(--gold-light);
    font-weight: 800;
    pointer-events: none;
}

/* =========================================================
   TRANSACTION LIST (cüzdan altı)
   ========================================================= */
.tx-list {
    display: flex; flex-direction: column;
    gap: .5rem;
}
.tx-item {
    display: flex; align-items: center; gap: .85rem;
    padding: .85rem 1.05rem;
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    color: var(--ivory);
    border: 1px solid rgba(167,139,255,.15);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,.20);
    backdrop-filter: blur(12px);
    transition: border-color .15s, background .15s;
}
.tx-item:hover {
    border-color: rgba(167,139,255,.30);
    background: linear-gradient(180deg, rgba(167,139,255,.08), rgba(255,255,255,.02));
}
.tx-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: white;
}
.tx-icon.pos {
    background: linear-gradient(135deg, var(--green), #16a34a);
    box-shadow: 0 4px 12px rgba(74,222,128,.30), inset 0 1px 0 rgba(255,255,255,.30);
}
.tx-icon.neg {
    background: linear-gradient(135deg, var(--red), #dc2626);
    box-shadow: 0 4px 12px rgba(248,113,113,.30), inset 0 1px 0 rgba(255,255,255,.30);
}
.tx-body { flex: 1; min-width: 0; }
.tx-label {
    font-weight: 700;
    font-size: .92rem;
    color: var(--ivory);
    letter-spacing: -.01em;
}
.tx-date {
    font-size: .72rem;
    color: var(--ivory-dark);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: .8;
}
.tx-amount {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    font-size: 1rem;
    letter-spacing: -.01em;
}
.tx-amount.pos { color: var(--green); }
.tx-amount.neg { color: var(--red); }

/* =========================================================
   DESTEK SAYFASI
   ========================================================= */
.support-card {
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    border: 1px solid rgba(167,139,255,.20);
    border-radius: 22px;
    padding: 1.75rem 1.4rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-width: 480px;
    margin: 0 auto;
    animation: fadeUp .5s ease both;
}
.support-head { text-align: center; margin-bottom: 1.5rem; }
.support-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px;
    border-radius: 20px;
    margin: 0 auto .85rem;
    color: #fff;
    background: linear-gradient(135deg, var(--purple-light), var(--purple));
    box-shadow: 0 10px 26px rgba(91,63,204,.45), inset 0 1px 0 rgba(255,255,255,.25);
}
.support-head h2 {
    margin: 0 0 .35rem;
    font-size: 1.4rem; font-weight: 800;
    color: var(--ivory); letter-spacing: -.01em;
}
.support-sub {
    margin: 0; font-size: .9rem; line-height: 1.55;
    color: var(--ivory-dark);
}

/* Kullanıcı adı + kopyala */
.support-user { margin-bottom: 1.5rem; }
.su-label {
    display: block;
    font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .2em;
    color: var(--purple-glow);
    margin-bottom: .55rem;
    text-align: center;
}
.su-pill {
    display: flex; align-items: center; gap: .65rem;
    background: rgba(0,0,0,.28);
    border: 1px solid rgba(244,197,66,.30);
    border-radius: 100px;
    padding: .55rem .9rem .55rem .55rem;
    width: fit-content;
    margin: 0 auto;
}
.su-copy {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    flex-shrink: 0;
    border: none; border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-light), var(--purple));
    color: #fff; cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 4px 12px rgba(91,63,204,.4);
}
.su-copy:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(91,63,204,.55); }
.su-copy.copied { background: linear-gradient(135deg, var(--green), #16a34a); }
.su-name {
    font-size: 1.05rem; font-weight: 800;
    color: var(--gold); letter-spacing: -.01em;
    padding-right: .35rem;
}
.su-hint {
    margin: .7rem 0 0;
    font-size: .78rem; line-height: 1.5;
    color: var(--ivory-dark);
    text-align: center;
}

/* Telegram / WhatsApp butonları */
.support-actions { display: flex; flex-direction: column; gap: .75rem; }
.support-btn {
    display: flex; align-items: center; gap: .85rem;
    padding: 1rem 1.15rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700; font-size: 1rem;
    color: #fff;
    transition: transform .15s, box-shadow .2s, filter .15s;
}
.support-btn .sb-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: rgba(255,255,255,.18);
    border-radius: 12px; flex-shrink: 0;
}
.support-btn .sb-text { flex: 1; }
.support-btn .sb-arrow { font-size: 1.2rem; opacity: .8; }
.support-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.support-btn.tg {
    background: linear-gradient(135deg, #2aabee, #229ed9);
    box-shadow: 0 8px 22px rgba(42,171,238,.40), inset 0 1px 0 rgba(255,255,255,.25);
}
.support-btn.wa {
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 8px 22px rgba(37,211,102,.40), inset 0 1px 0 rgba(255,255,255,.25);
}
.support-empty {
    text-align: center; color: var(--ivory-dark);
    font-size: .9rem; padding: 1rem;
    background: rgba(0,0,0,.20);
    border: 1px dashed rgba(167,139,255,.25);
    border-radius: 14px;
}

/* Login sayfası — sol üst destek bloğu */
.login-support-wrap {
    position: absolute;
    top: 1.25rem; left: 1.25rem;
    z-index: 50;
}
.login-support {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .55rem .95rem;
    background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(167,139,255,.25);
    border-radius: 100px;
    color: var(--ivory);
    text-decoration: none;
    font-size: .85rem; font-weight: 700;
    box-shadow: 0 4px 14px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.10);
    transition: border-color .15s, background .15s;
}
.login-support:hover { border-color: rgba(167,139,255,.45); }
.login-support .ls-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; color: var(--purple-glow);
}
@media (max-width: 480px) {
    .login-support .ls-text { display: none; }
}
.tx-right-stack {
    display: flex; flex-direction: column; align-items: flex-end;
    gap: .15rem;
}

/* Empty state illustration */
.empty-illustration {
    text-align: center;
    padding: 2.75rem 1rem;
    color: var(--ivory-dark);
}
.empty-illustration svg {
    opacity: .55;
    filter: drop-shadow(0 4px 16px rgba(167,139,255,.25));
}
.empty-text {
    margin-top: .85rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ivory-dark);
    letter-spacing: -.01em;
}

/* =========================================================
   FAB SUPPORT (Bize Yazın WhatsApp)
   ========================================================= */
.fab-support {
    position: fixed;
    bottom: 6rem; right: 1rem;
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .65rem 1.2rem .65rem .9rem;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: .88rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .5);
    z-index: 150;
    transition: transform .15s, box-shadow .15s;
}
.fab-support:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37, 211, 102, .65); }

/* =========================================================
   SETTINGS sekme stilleri
   ========================================================= */
.settings-section {
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    color: var(--ivory);
    border: 1px solid rgba(167,139,255,.20);
    border-radius: 18px;
    padding: 1.4rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.settings-header {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 1.1rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(167,139,255,.18);
}
.settings-avatar {
    width: 64px; height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--purple-light), var(--purple));
    color: white;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -.01em;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 22px rgba(91,63,204,.45), inset 0 1px 0 rgba(255,255,255,.25);
}
.settings-username {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ivory);
    letter-spacing: -.01em;
}
.settings-email {
    font-size: .82rem;
    color: var(--ivory-dark);
    margin-top: 3px;
}
.settings-stats {
    display: flex; align-items: center;
    gap: 1rem;
}
.settings-stats .ss-item { flex: 1; }
.settings-stats .ss-divider {
    width: 1px; align-self: stretch;
    background: rgba(167,139,255,.20);
}
.ss-label {
    font-size: .7rem;
    color: var(--purple-glow);
    text-transform: uppercase;
    letter-spacing: .15em;
    font-weight: 700;
    margin-bottom: 4px;
}
.ss-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: -.01em;
}
.ss-value.small { font-size: .9rem; font-weight: 700; color: var(--ivory); }
.info-card h3 {
    display: flex; align-items: center; gap: .55rem;
}

/* Logout butonu */
.btn-logout {
    display: flex; align-items: center; justify-content: center;
    gap: .7rem;
    width: 100%;
    padding: 1rem;
    background: rgba(248, 113, 113, .10);
    color: #fca5a5;
    border: 1.5px solid rgba(248, 113, 113, .35);
    border-radius: 14px;
    font-family: inherit;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .02em;
    margin-top: .75rem;
    transition: all .15s;
    text-decoration: none;
    cursor: pointer;
}
.btn-logout:hover {
    background: rgba(248, 113, 113, .25);
    border-color: var(--red);
    color: #fff;
    transform: translateY(-1px);
}

/* =========================================================
   LANDING PAGE — Glassmorphism (login/register)
   ========================================================= */
.landing-page {
    min-height: 100vh;
    display: flex; flex-direction: column;
    overflow-x: hidden;
}
/* Eski animasyonlu domino taşları — yeni tasarımda kapalı */
.bg-tiles, .bg-tile { display: none !important; }

.landing-main {
    flex: 1;
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 1rem;
    position: relative;
    z-index: 1;
    display: flex; flex-direction: column;
    gap: 1.5rem;
    animation: fadeUp .6s ease both;
}

.landing-hero {
    text-align: center;
    margin-top: .5rem;
}
.hero-logo {
    display: inline-flex; align-items: center; justify-content: center;
    width: 96px; height: 96px;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    border-radius: 24px;
    box-shadow:
        0 16px 40px rgba(244,197,66,.45),
        inset 0 2px 0 rgba(255,255,255,.45),
        inset 0 -3px 0 rgba(184,134,11,.35);
    margin-bottom: 1.1rem;
    animation: logo-pulse 3s ease-in-out infinite;
}
.hero-logo-tile {
    font-size: 2.8rem;
    line-height: 1;
    color: var(--ink);
    filter: drop-shadow(0 1px 0 rgba(255,255,255,.4));
}
@keyframes logo-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.04); }
}
.hero-title {
    margin: 0 0 .55rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--ivory);
    text-shadow: 0 4px 24px rgba(91,63,204,.4);
}
.hero-tagline {
    margin: 0;
    color: var(--purple-glow);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .25em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: .65rem;
}
.hero-tagline::before,
.hero-tagline::after {
    content: '';
    width: 28px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--purple-glow), transparent);
}

/* ── Brand: typographic logo (onlineKafe — "i" harfi domino taşı) ───── */
.brand-logo-text {
    font-family: 'Playfair Display', serif;
    line-height: 1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    color: inherit;
    letter-spacing: -.01em;
    user-select: none;
}
.brand-logo-text .b-online {
    color: var(--ivory);
    font-style: italic;
    font-weight: 400;
}
.brand-logo-text .b-kafe {
    color: var(--gold);
    font-weight: 700;
    margin-left: .04em;
    text-shadow: 0 2px 14px rgba(244,197,66,.25);
}
.brand-logo-text .b-tile {
    /* "i" yerine geçen küçük domino taşı: dikey, üst nokta + ayraç + alt nokta */
    width: .42em;
    height: 1em;
    margin: 0 .03em;
    display: inline-block;
    vertical-align: -.04em;
    flex-shrink: 0;
}
.brand-logo-text .b-tile rect { stroke: var(--gold); fill: rgba(244,197,66,.06); }
.brand-logo-text .b-tile line { stroke: var(--gold); opacity: .55; }
.brand-logo-text .b-tile circle { fill: var(--gold); }

/* Hero başlık wrapper (h1 margin reset) */
.brand-title {
    margin: 0 0 .65rem;
    line-height: 1;
}

/* Hero (login/register/forgot/reset) — büyük versiyon */
.brand-logo-text.hero-size {
    font-size: 3rem;
    text-shadow: 0 4px 24px rgba(91,63,204,.4);
    animation: logo-pulse 3s ease-in-out infinite;
    transform-origin: center;
}

/* Header (lobby/game) — küçük versiyon */
.brand-logo-text.header-size {
    font-size: 1.5rem;
}

@media (max-width: 480px) {
    .brand-logo-text.hero-size { font-size: 2.4rem; }
    .brand-logo-text.header-size { font-size: 1.3rem; }
}

/* ── Glassmorphism kart ─────────────────────────────────── */
.login-card {
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    color: var(--ivory);
    border: 1px solid rgba(167,139,255,.20);
    border-radius: 22px;
    padding: 1.75rem 1.4rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: fadeUp .6s .15s ease both;
}
.login-card h2 {
    margin: 0 0 .35rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--ivory);
    text-align: center;
}
.login-card .login-sub {
    margin: 0 0 1.5rem;
    text-align: center;
    color: var(--ivory-dark);
    font-size: .9rem;
    font-weight: 500;
}
.login-form { display: flex; flex-direction: column; gap: .85rem; }
.login-form label {
    position: relative;
    display: block;
}
.login-form .ipt-icon {
    position: absolute;
    left: 1.1rem; top: 50%;
    transform: translateY(-50%);
    color: var(--purple-glow);
    display: inline-flex; align-items: center;
    pointer-events: none;
    font-weight: 700;
    font-size: 1rem;
    opacity: .8;
}
.login-form input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(0,0,0,.25);
    border: 1.5px solid rgba(167,139,255,.20);
    border-radius: 14px;
    color: var(--ivory);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.login-form input::placeholder { color: rgba(248,241,220,.4); }
.login-form input:focus {
    outline: none;
    border-color: var(--purple-glow);
    background: rgba(0,0,0,.35);
    box-shadow: 0 0 0 4px rgba(167,139,255,.12);
}
.login-form .btn-primary {
    margin-top: .5rem;
}

/* Şifre göster butonu (input içi sağda) */
.login-form .pwd-toggle {
    position: absolute;
    right: 1rem; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: rgba(248,241,220,.55);
    padding: 4px;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.login-form .pwd-toggle:hover { color: var(--purple-glow); }

/* Kayıt: iki görsel adım (tek POST) */
.reg-form .reg-step { display: none; flex-direction: column; gap: .85rem; }
.reg-form[data-step="1"] .reg-step[data-step="1"] { display: flex; }
.reg-form[data-step="2"] .reg-step[data-step="2"] { display: flex; }
.reg-step-q {
    margin: 0 0 .25rem;
    color: rgba(248,241,220,.75);
    font-size: .95rem;
    line-height: 1.4;
}
/* Telefon alanı: +994 sabit ön-ek */
.login-form label.phone-field { display: flex; align-items: stretch; }
.login-form .phone-prefix {
    display: inline-flex; align-items: center;
    padding: 0 .85rem;
    background: rgba(167,139,255,.12);
    border: 1.5px solid rgba(167,139,255,.20);
    border-right: none;
    border-radius: 14px 0 0 14px;
    color: var(--ivory);
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}
.login-form .phone-field input {
    padding-left: 1rem;
    border-radius: 0 14px 14px 0;
    letter-spacing: .04em;
}
/* Geri (ikincil) buton */
.login-form .btn-ghost {
    margin-top: .15rem;
    background: none;
    border: none;
    color: rgba(248,241,220,.6);
    font-family: inherit;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    padding: .5rem;
}
.login-form .btn-ghost:hover { color: var(--purple-glow); }

/* Remember-me + forgot-password satırı */
.remember-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: .75rem;
    margin: .25rem 0 .15rem;
    font-size: .88rem;
    font-weight: 600;
}
.remember-row .remember {
    display: inline-flex; align-items: center;
    gap: .55rem;
    color: var(--ivory-dark);
    cursor: pointer;
    user-select: none;
}
.remember-row .remember input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px; height: 22px;
    border-radius: 7px;
    border: 1.5px solid rgba(167,139,255,.35);
    background: rgba(0,0,0,.25);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all .15s;
    flex-shrink: 0;
}
.remember-row .remember input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--purple-light), var(--purple));
    border-color: var(--purple-glow);
    box-shadow: 0 0 0 4px rgba(167,139,255,.12);
}
.remember-row .remember input[type="checkbox"]:checked::after {
    content: '✓';
    color: white;
    font-size: .85rem;
    font-weight: 800;
    line-height: 1;
}
.remember-row .forgot {
    color: var(--gold);
    font-weight: 700;
    text-decoration: none;
    transition: color .15s;
}
.remember-row .forgot:hover { color: var(--gold-light); }

/* "VƏ YA" divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin: 1.4rem 0 1rem;
    color: var(--ivory-dark);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .25em;
    text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167,139,255,.25), transparent);
}

/* Secondary CTA pill ("Hesabın yoxdur? Qeydiyyatdan keç →") */
.auth-secondary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .85rem;
    padding: 1rem 1.15rem;
    background: rgba(0,0,0,.2);
    border: 1px solid rgba(167,139,255,.18);
    border-radius: 16px;
    color: var(--ivory);
    text-decoration: none;
    font-size: .95rem;
    transition: all .2s;
}
.auth-secondary:hover {
    background: rgba(167,139,255,.08);
    border-color: rgba(167,139,255,.35);
    transform: translateY(-1px);
}
.auth-secondary .as-prompt {
    color: var(--ivory-dark);
    font-weight: 500;
}
.auth-secondary .as-action {
    color: var(--gold);
    font-weight: 700;
    margin-left: auto;
    text-align: right;
}
.auth-secondary .as-arrow {
    color: var(--gold);
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
}

/* Eski .auth-alt linkini kullanan sayfalar için fallback (sade) */
.auth-alt {
    text-align: center;
    margin: 1rem 0 0;
    color: var(--ivory-dark);
    font-size: .9rem;
}
.auth-alt a {
    color: var(--gold);
    font-weight: 700;
    text-decoration: none;
}

/* ── Animasyonlar ────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
}
.feature-item {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius);
    padding: .85rem;
    display: flex; align-items: center;
    gap: .65rem;
    backdrop-filter: blur(8px);
}
.feat-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    color: white;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.feat-text { min-width: 0; }
.feat-text b {
    display: block;
    color: white;
    font-size: .85rem;
    font-weight: 700;
    line-height: 1.2;
}
.feat-text small {
    color: rgba(255,255,255,.7);
    font-size: .72rem;
    display: block;
    margin-top: 2px;
}

.landing-footer {
    text-align: center;
    padding: 2rem 1rem 1.5rem;
    color: var(--ivory-dark);
    font-size: .82rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
    display: flex; flex-direction: column;
    gap: .85rem;
    align-items: center;
    animation: fadeUp .6s .3s ease both;
}
.landing-footer p { margin: 0; opacity: .65; }
.landing-footer .legal {
    display: inline-flex; align-items: center;
    gap: .35rem;
    padding: .3rem .75rem;
    background: rgba(248,113,113,.10);
    border: 1px solid rgba(248,113,113,.35);
    border-radius: 100px;
    color: var(--red);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
}
.landing-footer .legal::before {
    content: '⚠';
    font-size: .85rem;
}

/* =========================================================
   RESPONSIVE — Tablet (max 768px)
   ========================================================= */
@media (max-width: 768px) {
    /* App header — brand uzun olursa kes */
    .app-header { padding: .65rem .85rem; }
    .app-header .brand {
        font-size: 1rem;
        min-width: 0;        /* flex child ellipsis için şart */
        flex: 0 1 auto;
        overflow: hidden;
    }
    .app-header .brand > span:not(.brand-logo) {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
    }
    .header-right { flex-shrink: 0; }

    /* Hero biraz daha kompakt */
    .hero h1 { font-size: 1.4rem; }
    .hero p  { font-size: .9rem; }

    /* Tier chip rail — daha küçük kartlar */
    .tier-chip { padding: .65rem .9rem; min-width: 80px; }
    .tier-chip .chip-fee { font-size: .95rem; }

    /* Oda kartları — biraz daha kompakt */
    .room-card { padding: .85rem .9rem; }
    .room-fee .amount { font-size: 1.5rem; }
    .room-pot .pot-amount { font-size: 1.1rem; }

    /* Profile/Admin main padding */
    .profile-main, .admin-main { padding: 1rem .85rem 7rem; }
    .profile-main h1, .admin-main h1 { font-size: 1.25rem; }
    .profile-main h2, .admin-main h2 { font-size: 1rem; }
    .info-card { padding: 1rem; }
    .info-card h3 { font-size: .95rem; }

    /* TABLOLAR — yatay scroll yapsın, taşmasın */
    .profile-table, .admin-table {
        font-size: .82rem;
        white-space: nowrap;
    }
    .profile-table th, .profile-table td,
    .admin-table th, .admin-table td {
        padding: .55rem .65rem;
    }
    .profile-table th, .admin-table th { font-size: .68rem; }

    /* Tablo wrapper - yatay scroll */
    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -.85rem 1rem;
        padding: 0 .85rem;
    }
    .table-wrap table { margin-bottom: 0; }

    /* Settings ve withdraw grid'leri mobile'da tek kolon */
    .settings-form .settings-grid,
    .withdraw-grid {
        grid-template-columns: 1fr;
    }

    /* Login/register card biraz daha kompakt */
    .auth-card { padding: 1.5rem 1.25rem; }
    .auth-card .brand-block .brand-icon { width: 50px; height: 50px; }
    .auth-card h1 { font-size: 1.3rem; }

    /* Action row (game) — butonlar tam genişlikte */
    .action-row {
        flex-direction: column;
        align-items: stretch;
    }
    .action-row .btn-secondary,
    .action-row .btn-primary,
    .action-row .btn-link,
    .action-row .btn-danger {
        width: 100%;
        text-align: center;
    }

    /* Game-table padding */
    .game-table { padding: .75rem .75rem 6rem; gap: .65rem; }

    /* Opponents — kompakt */
    .opponent { min-width: 130px; padding: .55rem .7rem; font-size: .82rem; }
    .opponent-tiles .tile.small { width: 12px; height: 24px; }
    .opponent-tiles .tile.small.horizontal { width: 24px; height: 12px; }

    /* Table-center kompakt */
    .table-center { padding: .85rem .75rem; min-height: 200px; }
    .game-status-bar { font-size: .85rem; gap: .35rem; }
    .countdown-pill, .pot-pill, .turn-pill,
    .boneyard-pill, .mode-pill {
        padding: .2rem .55rem;
        font-size: .72rem;
    }

    /* My area */
    .my-area { padding: .75rem .85rem; }

    /* Chat panel daha kısa olsun */
    .chat-panel { max-height: 200px; }
    .chat-panel.collapsed { max-height: 40px; }

    /* Modal mobile */
    .modal { padding: .75rem; }
    .modal-content {
        padding: 1.25rem 1rem;
        font-size: .9rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    .modal-content h2 { font-size: 1.2rem; }

    /* WhatsApp / büyük buton tam genişlik */
    .btn-large { width: 100%; justify-content: center; }
}

/* =========================================================
   RESPONSIVE — Phone (max 480px)
   ========================================================= */
@media (max-width: 480px) {
    /* Wallet kart küçültme */
    .wc-amount { font-size: 2.2rem; }
    .wc-btn { padding: .6rem .85rem; font-size: .85rem; }
    .wc-btn-icon { width: 24px; height: 24px; }

    /* Action page card */
    .action-page-card { padding: 1.25rem 1rem; }
    .action-page-icon { width: 56px; height: 56px; }
    .action-page-card h2 { font-size: 1.2rem; }

    /* Tx item */
    .tx-item { padding: .6rem .75rem; gap: .55rem; }
    .tx-icon { width: 34px; height: 34px; }
    .tx-label { font-size: .85rem; }
    .tx-amount { font-size: .9rem; }

    /* Fab */
    .fab-support {
        bottom: 5.5rem;
        padding: .55rem 1rem .55rem .75rem;
        font-size: .8rem;
    }

    /* Settings */
    .settings-avatar { width: 50px; height: 50px; font-size: 1.4rem; }
    .settings-username { font-size: .95rem; }

    /* Landing */
    .hero-logo { width: 64px; height: 64px; border-radius: 18px; }
    .hero-logo-tile { font-size: 2rem; }
    .hero-title { font-size: 1.9rem; }
    .hero-tagline { font-size: .85rem; }
    .login-card { padding: 1.25rem 1rem; }
    .login-card h2 { font-size: 1.15rem; }
    .features-grid { grid-template-columns: 1fr 1fr; gap: .5rem; }
    .feature-item { padding: .65rem; }
    .feat-text b { font-size: .78rem; }
    .feat-text small { font-size: .68rem; }
    .feat-icon { width: 32px; height: 32px; }
    .landing-main { padding: 1.25rem 1rem 1rem; }

    /* Simple header */
    .simple-header { padding: .65rem .75rem; }
    .header-title { font-size: 1rem; }
    .header-spacer { width: 60px; }

    /* Header daha sıkı */
    .app-header { padding: .55rem .65rem; }
    .app-header .brand { font-size: .9rem; gap: .3rem; }
    .app-header .brand-logo { width: 26px; height: 26px; font-size: .95rem; border-radius: 6px; }
    .app-header .brand > span:not(.brand-logo) { max-width: 120px; }
    .balance-pill {
        font-size: .78rem;
        padding: .15rem .15rem .15rem .55rem;
        gap: .25rem;
    }
    .balance-pill .add-btn { width: 22px; height: 22px; font-size: .95rem; }
    .icon-btn { width: 32px; height: 32px; }

    /* Hero küçük */
    .hero { margin: .25rem 0 1rem; }
    .hero h1 { font-size: 1.2rem; }
    .hero p { font-size: .82rem; }

    /* App main padding */
    .app-main { padding: .65rem .65rem 7rem; }

    /* Tier chips — fluid scroll */
    .tier-rail { gap: .4rem; }
    .tier-chip {
        padding: .55rem .8rem;
        min-width: 72px;
    }
    .tier-chip .chip-fee { font-size: .9rem; }
    .tier-chip .chip-label, .tier-chip .chip-commission { font-size: .62rem; }

    /* Room cards */
    .room-card { padding: .75rem .8rem; }
    .room-fee .amount { font-size: 1.35rem; }
    .room-fee .currency { font-size: .8rem; }
    .room-fee .tier-label { font-size: .62rem; padding: .12rem .45rem; }
    .room-pot { padding: .55rem .75rem; }
    .room-pot .pot-amount { font-size: 1rem; }
    .room-pot .pot-text { font-size: .7rem; }
    .room-action { padding: .7rem; font-size: .95rem; }

    /* Profile/Admin nav daha sıkı */
    .profile-nav a, .admin-nav a {
        padding: .45rem .8rem;
        font-size: .78rem;
    }
    .profile-nav, .admin-nav { padding: .4rem .6rem; }

    /* Profile/Admin tablo */
    .profile-table th, .profile-table td,
    .admin-table th, .admin-table td {
        padding: .45rem .55rem;
        font-size: .78rem;
    }

    /* Bottom nav text */
    .bottom-nav a { font-size: .64rem; padding: .4rem .15rem; min-height: 52px; }
    .bottom-nav a .nav-icon svg { width: 20px; height: 20px; }
    .bottom-nav a.fab {
        margin-top: -1.5rem;
        width: 58px; height: 58px;
        flex: 0 0 58px;
    }
    .bottom-nav a.fab .nav-icon svg { width: 28px; height: 28px; }
    .bottom-nav a.fab .nav-text { font-size: .65rem; bottom: -1.25rem; }

    /* Auth card */
    .auth-card { padding: 1.25rem 1rem; }
    .auth-card .brand-block { margin-bottom: 1.25rem; }
    .auth-card h1 { font-size: 1.2rem; }
    .auth-card .subtitle { font-size: .82rem; }

    /* Opponents stack as horizontal row but smaller */
    .opponents { gap: .4rem; }
    .opponent { min-width: 110px; padding: .45rem .6rem; font-size: .75rem; }
    .opponent-info { margin-bottom: .25rem; }

    /* Domino tiles smaller */
    .board .tile          { width: 22px; height: 44px; }
    .board .tile.horizontal { width: 44px; height: 22px; }
    .my-hand .tile        { width: 28px; height: 56px; }
    .tile .pip-cell.pip-on { width: 2.5px; height: 2.5px; }

    /* Chat panel kompakt */
    .chat-msg { font-size: .82rem; padding: .35rem .55rem; }
    .chat-input-row input { font-size: .85rem; padding: .45rem .65rem; }
    .chat-input-row button { padding: .45rem .85rem; font-size: .85rem; }

    /* Connection status sağ alt */
    .conn-status {
        bottom: 6rem; right: .65rem;
        font-size: .7rem;
        padding: .3rem .7rem;
    }
}

/* =========================================================
   RESPONSIVE — Tiny phone (max 360px)
   ========================================================= */
@media (max-width: 360px) {
    .app-header .brand > span:not(.brand-logo) { max-width: 90px; }
    .balance-pill { font-size: .72rem; }
    .balance-pill .add-btn { width: 20px; height: 20px; }

    /* Bottom nav text gizle, sadece ikon */
    .bottom-nav a:not(.fab) .nav-text { display: none; }
    .bottom-nav a { min-height: 48px; }
    .bottom-nav a.fab .nav-text { display: block; }

    /* Tier chip etiket gizle */
    .tier-chip .chip-label { display: none; }

    .room-fee .amount { font-size: 1.2rem; }
    .room-pot .pot-amount { font-size: .95rem; }
}

/* ─── App loader — Socket.IO bağlanana kadar tam ekran ────────────────────── */
#app-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(91,63,204,.45) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(244,197,66,.20) 0%, transparent 55%),
        var(--bg-deep);
    color: var(--ivory);
    transition: opacity .3s ease-out, visibility .3s ease-out;
}
#app-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
#app-loader .loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(167,139,255,.15);
    border-top-color: var(--gold);
    border-right-color: var(--purple-glow);
    border-radius: 50%;
    animation: app-loader-spin .9s linear infinite;
    filter: drop-shadow(0 0 16px rgba(167,139,255,.4));
}
#app-loader .loader-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ivory);
    opacity: .85;
    letter-spacing: .02em;
}
#app-loader .loader-sub {
    font-size: .75rem;
    color: var(--purple-glow);
    opacity: .7;
    letter-spacing: .25em;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: -.7rem;
}
@keyframes app-loader-spin {
    to { transform: rotate(360deg); }
}

/* =========================================================
   LANGUAGE PICKER (login + register + settings)
   ========================================================= */
.lang-picker-wrap {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 50;
}
.lang-picker {
    position: relative;
}
.lang-picker summary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1rem;
    background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(167,139,255,.25);
    border-radius: 100px;
    cursor: pointer;
    font-size: .85rem;
    font-weight: 700;
    color: var(--ivory);
    list-style: none;
    box-shadow: 0 4px 14px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.10);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: border-color .15s, background .15s;
}
.lang-picker summary:hover {
    border-color: rgba(167,139,255,.45);
}
.lang-picker summary::-webkit-details-marker { display: none; }
.lang-picker summary::marker { display: none; }
.lp-flag { font-size: 1.05rem; line-height: 1; }
.lp-arrow {
    font-size: .75rem;
    color: var(--purple-glow);
    transition: transform .2s ease;
}
.lang-picker[open] .lp-arrow { transform: rotate(180deg); }
.lp-menu {
    position: absolute;
    top: calc(100% + .5rem);
    right: 0;
    min-width: 180px;
    background: linear-gradient(180deg, rgba(45,27,105,.95), rgba(26,17,56,.95));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(167,139,255,.25);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0,0,0,.45);
    overflow: hidden;
    padding: .45rem;
}
.lp-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .65rem .8rem;
    font-size: .92rem;
    color: var(--ivory-dark);
    text-decoration: none;
    border-radius: 10px;
    transition: background .12s ease, color .12s ease;
    font-weight: 500;
}
.lp-item:hover {
    background: rgba(167,139,255,.10);
    color: var(--ivory);
}
.lp-item.active {
    background: linear-gradient(135deg, rgba(244,197,66,.18), rgba(244,197,66,.08));
    color: var(--gold);
    font-weight: 700;
}
@media (max-width: 480px) {
    .lp-name { display: none; }
    .lp-menu { min-width: 150px; }
}

/* In-form / settings versiyonu (sağ üstte değil, normal akışta) */
.lang-picker-inline {
    display: inline-block;
    position: relative;
}
.lang-picker-inline .lang-picker { display: block; }

/* Settings sekmesindeki dil grid'i */
.lang-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .55rem;
    margin-top: .5rem;
}
.lang-tile {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .9rem .95rem;
    background: rgba(0,0,0,.25);
    border: 1.5px solid rgba(167,139,255,.20);
    border-radius: 14px;
    text-decoration: none;
    color: var(--ivory);
    font-size: .95rem;
    font-weight: 600;
    transition: all .15s ease;
    backdrop-filter: blur(12px);
}
.lang-tile:hover {
    background: rgba(167,139,255,.10);
    border-color: rgba(167,139,255,.45);
}
.lang-tile.active {
    background: linear-gradient(135deg, rgba(244,197,66,.18), rgba(244,197,66,.06));
    border-color: rgba(244,197,66,.50);
    color: var(--gold);
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(244,197,66,.20);
}
.lt-flag { font-size: 1.4rem; line-height: 1; }
.lt-name { flex: 1; }
.lt-check {
    color: var(--gold);
    font-weight: 800;
    font-size: 1.05rem;
}

/* =========================================================
   DEPOSIT — Adım 1: Miktar seçim kartı
   ========================================================= */
.deposit-amount-card {
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    border: 1px solid rgba(167,139,255,.20);
    border-radius: 22px;
    padding: 1.6rem 1.35rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-width: 480px;
    margin: 0 auto;
}
.da-header {
    display: flex;
    align-items: center;
    gap: .95rem;
    margin-bottom: 1.5rem;
}
.da-header h2 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--ivory);
    font-weight: 800;
    letter-spacing: -.01em;
}
.da-sub {
    margin: 2px 0 0;
    font-size: .85rem;
    color: var(--ivory-dark);
}
.da-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--green), #16a34a);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 22px rgba(74,222,128,.35), inset 0 1px 0 rgba(255,255,255,.30);
}

/* Büyük miktar display'i */
.da-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: .4rem;
    padding: 1.35rem .5rem;
    background: linear-gradient(135deg, rgba(74,222,128,.08), rgba(74,222,128,.02));
    border: 2px solid rgba(74,222,128,.25);
    border-radius: 16px;
    margin-bottom: .55rem;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.da-display:focus-within {
    border-color: var(--green);
    background: linear-gradient(135deg, rgba(74,222,128,.15), rgba(74,222,128,.05));
    box-shadow: 0 0 0 4px rgba(74,222,128,.12);
}
.da-display input {
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 3rem;
    font-weight: 800;
    color: var(--green);
    text-align: center;
    width: 100%;
    max-width: 280px;
    padding: 0;
    letter-spacing: -.02em;
    text-shadow: 0 2px 24px rgba(74,222,128,.30);
    /* Spinner butonları gizle */
    -moz-appearance: textfield;
}
.da-display input::-webkit-outer-spin-button,
.da-display input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.da-display input::placeholder { color: rgba(74,222,128,.4); font-weight: 700; }
.da-currency {
    font-size: 2rem;
    font-weight: 800;
    color: var(--green);
    opacity: .85;
}

.da-limits {
    text-align: center;
    font-size: .78rem;
    color: var(--ivory-dark);
    margin-bottom: 1.1rem;
    font-weight: 500;
}
.da-limits b { color: var(--ivory); font-weight: 700; }

/* Hızlı seçim chip'leri */
.da-chips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
    margin-bottom: 1.35rem;
}
.da-chip {
    padding: .9rem .5rem;
    background: rgba(0,0,0,.25);
    border: 1.5px solid rgba(167,139,255,.18);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ivory);
    cursor: pointer;
    transition: all .15s ease;
    -webkit-tap-highlight-color: transparent;
}
.da-chip:hover {
    background: rgba(167,139,255,.10);
    border-color: rgba(167,139,255,.40);
}
.da-chip:active {
    transform: scale(.96);
}
.da-chip.active {
    background: linear-gradient(135deg, var(--green), #16a34a);
    color: #fff;
    border-color: var(--green);
    box-shadow: 0 6px 16px rgba(74,222,128,.40), inset 0 1px 0 rgba(255,255,255,.25);
}

/* Devam butonu */
.da-continue {
    width: 100%;
    justify-content: center;
    font-size: 1.05rem;
    padding: 1.05rem;
}
.da-continue:disabled {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
}
.da-arrow {
    margin-left: .4rem;
    font-size: 1.1rem;
    transition: transform .2s ease;
}
.da-continue:not(:disabled):hover .da-arrow {
    transform: translateX(3px);
}

/* Nasıl çalışır accordion */
.da-howto {
    margin-top: 1.1rem;
    border-top: 1px solid rgba(167,139,255,.18);
    padding-top: 1.1rem;
}
.da-howto summary {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .85rem;
    font-weight: 700;
    color: var(--purple-glow);
    list-style: none;
    padding: .3rem 0;
}
.da-howto summary::-webkit-details-marker { display: none; }
.da-howto-arrow {
    transition: transform .2s ease;
    font-size: 1.1rem;
}
.da-howto[open] .da-howto-arrow { transform: rotate(180deg); }
.da-howto-body {
    margin-top: .85rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.da-step {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .85rem;
    color: var(--ivory-dark);
}
.da-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(74,222,128,.18);
    color: var(--green);
    border: 1px solid rgba(74,222,128,.35);
    font-size: .78rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .deposit-amount-card { padding: 1.25rem 1rem; }
    .da-display input { font-size: 2.4rem; }
    .da-currency { font-size: 1.6rem; }
    .da-chips { grid-template-columns: repeat(3, 1fr); gap: .45rem; }
    .da-chip { padding: .75rem .4rem; font-size: .92rem; }
}

/* =========================================================
   DEPOSIT — 3-step flow (Faz 5)
   ========================================================= */
.bank-card-display {
    margin-top: 1rem;
    padding: 1.1rem 1.2rem;
    background:
        radial-gradient(ellipse 60% 50% at top right, rgba(244,197,66,.18), transparent 60%),
        linear-gradient(135deg, rgba(45,27,105,.65) 0%, rgba(13,8,32,.65) 100%);
    color: var(--ivory);
    border: 1px solid rgba(167,139,255,.30);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    box-shadow: 0 10px 28px rgba(0,0,0,.40), inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.bank-card-display .bc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .55rem;
    flex-wrap: wrap;
}
.bank-card-display .bc-label {
    font-size: .72rem;
    color: var(--purple-glow);
    text-transform: uppercase;
    letter-spacing: .15em;
    font-weight: 700;
}
.bank-card-display .bc-val {
    font-weight: 700;
    font-size: 1rem;
    color: var(--ivory);
    text-align: right;
}
.bank-card-display .bc-card-number {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.bank-card-display code {
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(167,139,255,.20);
    padding: .4rem .65rem;
    border-radius: 8px;
    font-size: 1.05rem;
    font-family: ui-monospace, 'SF Mono', 'Cascadia Code', Consolas, monospace;
    letter-spacing: .05em;
    color: var(--gold-light);
}
.bank-card-display .bc-amount {
    margin-top: .5rem;
    padding-top: .8rem;
    border-top: 1px dashed rgba(167,139,255,.25);
}
.bank-card-display .bc-amount-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--green);
    letter-spacing: -.01em;
}
.bc-copy {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .75rem;
    background: rgba(167,139,255,.15);
    color: var(--ivory);
    border: 1px solid rgba(167,139,255,.30);
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: .8rem;
    font-weight: 700;
    transition: background .15s ease, border-color .15s ease;
}
.bc-copy:hover { background: rgba(167,139,255,.25); border-color: rgba(167,139,255,.50); }
.bc-copy.copied {
    background: linear-gradient(135deg, var(--green), #16a34a);
    border-color: var(--green);
    color: white;
}
.bc-copy .app-icon { width: 14px; height: 14px; }

.deposit-receipt-form {
    margin-top: 1.35rem;
    display: flex;
    flex-direction: column;
    gap: .95rem;
}
.deposit-receipt-form input[type="file"] {
    padding: .65rem;
    background: rgba(0,0,0,.25);
    color: var(--ivory);
    border: 1.5px dashed rgba(167,139,255,.35);
    border-radius: 12px;
    width: 100%;
    font-family: inherit;
    font-size: .9rem;
    cursor: pointer;
}
.deposit-receipt-form input[type="file"]::file-selector-button {
    margin-right: .75rem;
    padding: .4rem .85rem;
    background: rgba(167,139,255,.20);
    color: var(--ivory);
    border: 1px solid rgba(167,139,255,.35);
    border-radius: 8px;
    font-family: inherit;
    font-weight: 700;
    font-size: .82rem;
    cursor: pointer;
}

.btn-link-muted {
    background: none;
    border: none;
    color: var(--ivory-dark);
    font-family: inherit;
    text-decoration: underline;
    cursor: pointer;
    font-size: .85rem;
    padding: .3rem 0;
}
.btn-link-muted:hover { color: var(--purple-glow); }

.lbl-meta {
    display: block;
    font-size: .72rem;
    color: var(--ivory-dark);
    margin-top: .3rem;
}

.tx-reason {
    font-size: .78rem;
    color: #fca5a5;
    margin-top: .25rem;
    font-style: italic;
}

.tx-right-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .25rem;
}

/* ╔════════════════════════════════════════════════════════════════════╗
   ║  LOTO modülü — UI v2 (Mayıs 2026 redesign)                         ║
   ║                                                                    ║
   ║  Layout patternleri:                                               ║
   ║    .game-tabs       — Domino/Loto geçişi (lobby + loto lobby)      ║
   ║    .loto-card       — lobby oda kartı                              ║
   ║    .lg-*            — loto-game ekranı (sticky topbar, hero, buy)  ║
   ╚════════════════════════════════════════════════════════════════════╝ */

/* ─── DOMINO / LOTO sekmeleri (her iki lobide) ──────────────────────── */
.game-tabs {
    display: flex;
    gap: .5rem;
    padding: .6rem 1rem 0;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
}
.game-tab {
    flex: 1;
    text-align: center;
    padding: .75rem 1rem;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    color: var(--ivory-dark);
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all .18s ease;
}
.game-tab.active {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--purple-deep);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(244,197,66,0.32);
}
.game-tab:not(.active):active { background: rgba(255,255,255,0.10); color: var(--ivory); }

/* ═══ LOTO LOBBY ═══════════════════════════════════════════════════════ */

.loto-main { padding-top: .25rem; }

/* ─── Loto sayfası arkaplan dekoru — hafifçe yüzen toplar ──────────── */
.loto-bg-decor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.lbd-ball {
    position: absolute;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,245,208,0.7), rgba(244,197,66,0.5));
    color: rgba(45, 27, 105, 0.45);
    font-weight: 800;
    border: 1px solid rgba(244,197,66,0.3);
    opacity: 0.16;
    will-change: transform;
}
.lbd-1 { width: 80px;  height: 80px;  font-size: 1.3rem; left: -20px;   top: 12%; animation: lbdFloat 18s ease-in-out infinite; }
.lbd-2 { width: 60px;  height: 60px;  font-size: 1rem;   right: 8%;    top: 22%; animation: lbdFloat 22s ease-in-out -3s infinite reverse; }
.lbd-3 { width: 100px; height: 100px; font-size: 1.5rem; left: 14%;    top: 55%; animation: lbdFloat 25s ease-in-out -7s infinite; }
.lbd-4 { width: 70px;  height: 70px;  font-size: 1.1rem; right: -25px; top: 68%; animation: lbdFloat 20s ease-in-out -10s infinite reverse; }
.lbd-5 { width: 50px;  height: 50px;  font-size: .9rem;  left: 60%;    top: 80%; animation: lbdFloat 17s ease-in-out -5s infinite; }
.lbd-6 { width: 65px;  height: 65px;  font-size: 1rem;   left: 8%;     top: 88%; animation: lbdFloat 24s ease-in-out -12s infinite reverse; }
@keyframes lbdFloat {
    0%   { transform: translate(0, 0)        rotate(0deg); }
    25%  { transform: translate(12px, -18px) rotate(8deg); }
    50%  { transform: translate(-8px, -28px) rotate(-5deg); }
    75%  { transform: translate(-16px, -10px) rotate(4deg); }
    100% { transform: translate(0, 0)        rotate(0deg); }
}
/* Mobil cihazlarda performans için animasyonu hafiflet */
@media (prefers-reduced-motion: reduce) {
    .lbd-ball { animation: none !important; }
}

/* Sayfa içeriği decor'un üstünde olsun.
   NOT: .bottom-nav burada YOK — onun position:fixed kalması gerekiyor (sticky alt menü).
   Sadece z-index bumpu yetiyor, position:relative yapmak fixed'i kırar. */
.loto-page .app-header,
.loto-page .game-tabs,
.loto-page .app-main {
    position: relative;
    z-index: 1;
}
.loto-page .bottom-nav {
    z-index: 200;  /* decor'un üstünde, fixed davranışı korunur */
}

/* ────────────────────────────────────────────────────────────
   Loto kazanma modu badge (lobby kartı + game info bar)
   ──────────────────────────────────────────────────────────── */
.loto-card__mode {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin: .35rem 0 0;
    padding: .25rem .6rem;
    border-radius: 100px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    border: 1px solid transparent;
    width: fit-content;
    text-transform: uppercase;
}
.loto-card__mode--full_card {
    background: rgba(167,139,255,.15);
    color: #c4b3ff;
    border-color: rgba(167,139,255,.35);
}
.loto-card__mode--single_line {
    background: rgba(251,146,60,.18);
    color: #fbbf24;
    border-color: rgba(251,146,60,.45);
}

.lg-info-mode {
    font-size: .72rem;
    font-weight: 700;
    padding: .2rem .55rem;
    border-radius: 100px;
    border: 1px solid transparent;
}
.lg-info-mode--full_card {
    background: rgba(167,139,255,.18);
    color: #c4b3ff;
    border-color: rgba(167,139,255,.35);
}
.lg-info-mode--single_line {
    background: rgba(251,146,60,.20);
    color: #fbbf24;
    border-color: rgba(251,146,60,.45);
}

/* ────────────────────────────────────────────────────────────
   "Biletin aktif" info banner — bilet alındıktan sonra görünür
   ──────────────────────────────────────────────────────────── */
.lg-ticket-info {
    margin: .75rem 1rem 0;
    padding: .75rem .9rem;
    background: linear-gradient(135deg, rgba(74,222,128,.12), rgba(74,222,128,.04));
    border: 1px solid rgba(74,222,128,.35);
    border-radius: 12px;
    color: #d1fae5;
    font-size: .82rem;
    line-height: 1.45;
    display: flex;
    align-items: flex-start;
    gap: .55rem;
}
.lti-icon {
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: .1rem;
}
.lti-text { flex: 1; }
.lti-text b {
    color: #6ee7b7;
    font-weight: 800;
}

/* ────────────────────────────────────────────────────────────
   Ayrılma confirm modal
   ──────────────────────────────────────────────────────────── */
.lg-leave {
    max-width: 420px;
    text-align: center;
}
.lg-leave-icon {
    font-size: 3rem;
    margin-bottom: .5rem;
}
.lg-leave h2 {
    margin: 0 0 .65rem;
    font-size: 1.25rem;
    color: var(--ivory);
}
.lg-leave-body {
    font-size: .92rem;
    line-height: 1.55;
    color: var(--ivory-dark);
    margin: 0 0 1.25rem;
}
.lg-leave-body b {
    color: var(--gold-light);
}
.lg-leave-actions {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.lg-leave-actions .btn-primary,
.lg-leave-actions .btn-secondary,
.lg-leave-actions .btn-danger {
    width: 100%;
    padding: .8rem 1rem;
    font-size: .95rem;
}

.loto-rooms-grid {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ─── KART — açık renkli, temiz tasarım ────────────────────────────── */
/* ═══ KART — Premium Dark Glassmorphism ═══════════════════════════════ */
/*
 * 3 rarity tier:
 *   .loto-card--mini      → sade, soft gold rim
 *   .loto-card--standart  → premium, stronger gold + extra blur circle
 *   .loto-card--klasik    → VIP, animated rim + neon green pot + crown
 */

.loto-card {
    position: relative;
    display: block;
    border-radius: 28px;
    padding: 1.5px; /* gradient border için iç boşluk */
    background: linear-gradient(135deg, rgba(244,197,66,0.55) 0%, rgba(244,197,66,0.08) 35%, rgba(244,197,66,0.08) 65%, rgba(244,197,66,0.45) 100%);
    text-decoration: none;
    color: var(--ivory);
    box-shadow:
        0 1px 1px rgba(255,255,255,0.04) inset,
        0 18px 40px rgba(0,0,0,0.45),
        0 0 30px rgba(244,197,66,0.05);
    transition: transform .22s ease, box-shadow .22s ease;
    overflow: hidden;
    z-index: 1;
    isolation: isolate;
}

.loto-card__inner {
    position: relative;
    border-radius: 26.5px;
    padding: 1.15rem 1.2rem 1.1rem;
    background:
        radial-gradient(ellipse at top right, rgba(244,197,66,0.06), transparent 55%),
        radial-gradient(ellipse at bottom left, rgba(91,63,204,0.10), transparent 50%),
        linear-gradient(155deg, #111827 0%, #0b1020 100%);
    overflow: hidden;
}

.loto-card:active {
    transform: scale(0.985);
    box-shadow:
        0 1px 1px rgba(255,255,255,0.04) inset,
        0 8px 18px rgba(0,0,0,0.35),
        0 0 18px rgba(244,197,66,0.08);
}
@media (hover: hover) {
    .loto-card:hover {
        transform: translateY(-3px);
        box-shadow:
            0 1px 1px rgba(255,255,255,0.05) inset,
            0 22px 48px rgba(0,0,0,0.55),
            0 0 36px rgba(244,197,66,0.12);
    }
}

/* ── Dekor: blur daireler ─────────────────────────────────────────── */
.loto-card__deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 28px;
    z-index: 0;
}
.lcd-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(28px);
    opacity: 0.55;
}
.lcd-circle--1 {
    width: 160px; height: 160px;
    top: -50px; right: -40px;
    background: radial-gradient(circle, rgba(244,197,66,0.55), transparent 70%);
}
.lcd-circle--2 {
    width: 130px; height: 130px;
    bottom: -40px; left: -30px;
    background: radial-gradient(circle, rgba(91,63,204,0.55), transparent 70%);
}
.lcd-circle--3 {
    width: 90px; height: 90px;
    top: 35%; right: 30%;
    background: radial-gradient(circle, rgba(110,231,183,0.35), transparent 70%);
    filter: blur(36px);
}

/* ── Başlık ───────────────────────────────────────────────────────── */
.loto-card__header {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: space-between;
    gap: .75rem;
    margin-bottom: .85rem;
}
.loto-card__name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.015em;
    line-height: 1.1;
    display: inline-flex; align-items: center; gap: .35rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.loto-card__crown {
    color: var(--gold-light);
    font-size: 1rem;
    text-shadow: 0 0 8px rgba(244,197,66,0.7);
    transform: translateY(-1px);
}
.loto-card__fee {
    padding: .42rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffe18a 0%, #f4c542 60%, #d49628 100%);
    color: #2d1b69;
    font-weight: 800;
    font-size: .9rem;
    box-shadow:
        0 2px 8px rgba(244,197,66,0.45),
        inset 0 1px 0 rgba(255,255,255,0.5),
        inset 0 -2px 4px rgba(184,134,11,0.3);
    white-space: nowrap;
    letter-spacing: -.01em;
}

/* ── Havuz (büyük neon vurgu) ─────────────────────────────────────── */
.loto-card__pot {
    position: relative; z-index: 1;
    display: flex; align-items: baseline;
    gap: .25rem;
    margin: .15rem 0 1.05rem;
    padding: .15rem 0;
}
.loto-card__pot-val {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.025em;
    background: linear-gradient(135deg, #ffd968, #f4c542);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}
.loto-card__pot-cur {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    margin-left: -.1rem;
}
.loto-card__pot-label {
    font-size: .65rem;
    color: rgba(248,241,220,0.55);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-left: auto;
    align-self: center;
}

/* ── Son toplar ───────────────────────────────────────────────────── */
.loto-card__balls {
    position: relative; z-index: 1;
    display: flex; gap: .3rem; flex-wrap: wrap;
    margin-bottom: .9rem;
}
.lb-ball {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 28%, #fff7d6 0%, var(--gold-light) 45%, var(--gold) 100%);
    color: #2d1b69;
    font-weight: 800;
    font-size: .72rem;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow:
        0 2px 4px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.6),
        inset 0 -3px 5px rgba(184,134,11,0.4);
}

/* ── Footer: oyuncu + status + CTA ────────────────────────────────── */
.loto-card__footer {
    position: relative; z-index: 1;
    display: flex; align-items: center;
    gap: .6rem;
}
.loto-card__players {
    display: inline-flex; align-items: center; gap: .35rem;
    color: rgba(248,241,220,0.80);
    font-size: .9rem; font-weight: 700;
}
.loto-card__players .icon {
    width: 17px; height: 17px;
    color: rgba(248,241,220,0.60);
}
.loto-card__status {
    padding: .35rem .7rem;
    border-radius: 8px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.loto-card__status--open {
    background: rgba(34,197,94,0.18);
    color: #6ee7b7;
    border: 1px solid rgba(110,231,183,0.25);
}
.loto-card__status--cd {
    background: rgba(244,197,66,0.18);
    color: var(--gold-light);
    border: 1px solid rgba(244,197,66,0.32);
    animation: lcStatusPulse 1.4s ease-in-out infinite;
}
.loto-card__status--play {
    background: rgba(110,231,183,0.18);
    color: #6ee7b7;
    border: 1px solid rgba(110,231,183,0.35);
}
@keyframes lcStatusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244,197,66,0.4); }
    50%      { box-shadow: 0 0 0 6px rgba(244,197,66,0); }
}
.loto-card__cta {
    margin-left: auto;
    display: inline-flex; align-items: center; gap: .3rem;
    color: var(--gold-light);
    font-weight: 800;
    font-size: .85rem;
    letter-spacing: .02em;
    padding: .3rem .65rem;
    border-radius: 999px;
    background: rgba(244,197,66,0.10);
    border: 1px solid rgba(244,197,66,0.25);
    transition: background .15s, transform .15s;
}
.loto-card:active .loto-card__cta { background: rgba(244,197,66,0.22); transform: translateX(2px); }

/* ═══ RARITY tier varyasyonları ═══════════════════════════════════════ */

/* ── MİNİ — sade ──────────────────────────────────────────────────── */
.loto-card--mini {
    background: linear-gradient(135deg, rgba(244,197,66,0.32) 0%, rgba(244,197,66,0.05) 40%, rgba(244,197,66,0.05) 60%, rgba(244,197,66,0.28) 100%);
}
.loto-card--mini .loto-card__pot-val { font-size: 1.95rem; }

/* ── STANDART — premium ──────────────────────────────────────────── */
.loto-card--standart {
    background: linear-gradient(135deg, rgba(244,197,66,0.55) 0%, rgba(91,63,204,0.18) 35%, rgba(91,63,204,0.18) 65%, rgba(244,197,66,0.55) 100%);
    box-shadow:
        0 1px 1px rgba(255,255,255,0.05) inset,
        0 22px 44px rgba(0,0,0,0.5),
        0 0 36px rgba(244,197,66,0.10);
}
.loto-card--standart .loto-card__inner {
    background:
        radial-gradient(ellipse at top right, rgba(244,197,66,0.10), transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(91,63,204,0.18), transparent 55%),
        linear-gradient(155deg, #1a1c3a 0%, #0d1024 100%);
}
.loto-card--standart .loto-card__pot-val { font-size: 2.2rem; }

/* ── KLASİK — VIP ─────────────────────────────────────────────────── */
.loto-card--klasik {
    background: conic-gradient(from 0deg,
        rgba(244,197,66,0.75) 0%,
        rgba(110,231,183,0.45) 25%,
        rgba(244,197,66,0.75) 50%,
        rgba(167,139,255,0.45) 75%,
        rgba(244,197,66,0.75) 100%);
    box-shadow:
        0 1px 1px rgba(255,255,255,0.08) inset,
        0 24px 50px rgba(0,0,0,0.6),
        0 0 44px rgba(244,197,66,0.22),
        0 0 70px rgba(110,231,183,0.10);
    animation: lcVipShimmer 6s linear infinite;
}
@keyframes lcVipShimmer {
    0%   { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}
.loto-card--klasik .loto-card__inner {
    background:
        radial-gradient(ellipse at top right, rgba(244,197,66,0.14), transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(110,231,183,0.10), transparent 55%),
        linear-gradient(155deg, #0f1733 0%, #080a1c 100%);
}
.loto-card--klasik .loto-card__pot-val {
    font-size: 2.35rem;
    background: linear-gradient(135deg, #d4ffea 0%, #6ee7b7 50%, #34d399 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(110,231,183,0.4));
}
.loto-card--klasik .loto-card__pot-cur {
    color: #6ee7b7;
}
.loto-card--klasik .loto-card__name {
    background: linear-gradient(135deg, #fff5d0 0%, #ffd968 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}

/* Mobil tweak */
@media (max-width: 380px) {
    .loto-card__inner { padding: 1rem 1rem .95rem; }
    .loto-card__name { font-size: 1.2rem; }
    .loto-card__pot-val { font-size: 1.8rem !important; }
    .loto-card--klasik .loto-card__pot-val { font-size: 2rem !important; }
    .loto-card__fee { padding: .35rem .8rem; font-size: .82rem; }
    .lb-ball { width: 26px; height: 26px; font-size: .7rem; }
    .loto-card__cta { padding: .25rem .55rem; font-size: .8rem; }
}

/* ═══ LOTO OYUN EKRANI v3 — MİNİMALİST ═══════════════════════════════ */

.loto-game-page {
    padding-bottom: 200px; /* sticky buybar için yer aç */
    background:
        radial-gradient(ellipse at top, rgba(91,63,204,0.22), transparent 60%),
        var(--bg, #110823);
    min-height: 100vh;
}
.loto-game-page #app-loader { background: rgba(13,8,32,0.95); }

/* ─── Sticky topbar (minimal) ───────────────────────────────────────── */
.lg-topbar {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; gap: .65rem;
    padding: .55rem .85rem;
    background: rgba(13,8,32,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.lg-back {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: var(--ivory);
    text-decoration: none;
    transition: background .15s;
}
.lg-back:active { background: rgba(255,255,255,0.15); }

.lg-title-mini {
    flex: 1;
    font-weight: 700; font-size: .98rem; color: var(--ivory);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.lg-balance-pill {
    padding: .35rem .8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--purple-deep);
    font-weight: 800; font-size: .85rem;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(244,197,66,0.25);
}

/* ─── Mini info çubuğu (her zaman görünür) ─────────────────────────── */
.lg-infobar {
    position: sticky; top: 49px; z-index: 49;
    display: flex; align-items: center; gap: .55rem;
    padding: .55rem .85rem;
    background: rgba(13,8,32,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    overflow-x: auto;
    scrollbar-width: none;
}
.lg-infobar::-webkit-scrollbar { display: none; }

.lg-info-chip {
    flex-shrink: 0;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--purple-deep);
    font-weight: 800; font-size: .85rem;
    white-space: nowrap;
}

.lg-info-item {
    flex-shrink: 0;
    display: inline-flex; align-items: center; gap: .3rem;
    color: var(--ivory);
    font-weight: 700; font-size: .85rem;
    white-space: nowrap;
}
.lg-info-item svg { color: var(--ivory-dark); }
.lg-info-pot { color: #6ee7b7; }
.lg-info-pot svg { color: #6ee7b7; }

.lg-info-btn {
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
    height: 32px; min-width: 32px;
    padding: 0 .55rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.05);
    color: var(--ivory);
    cursor: pointer;
    transition: all .15s;
}
.lg-info-btn:active { background: rgba(255,255,255,0.15); }
.lg-info-btn[aria-pressed="false"] { color: var(--ivory-dark); opacity: 0.7; }

.lg-info-auto {
    margin-left: auto;
}
.lg-info-auto.on {
    background: linear-gradient(135deg, #34d399, #10b981);
    border-color: transparent;
    color: white;
}
.lg-info-auto .auto-text { font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }

/* ─── Oyun başlamadan: bekleme/countdown göstergesi ─────────────────── */
.lg-wait-zone {
    padding: 1.5rem 1rem;
    max-width: 720px; margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
}
.lg-wait-content {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .65rem 1.1rem;
    border-radius: 999px;
    background: rgba(167,139,255,0.12);
    color: var(--purple-glow);
    font-weight: 700; font-size: .9rem;
    border: 1px solid rgba(167,139,255,0.18);
}
.lg-wait-icon { font-size: 1.1rem; }

/* ─── Oyun başladığında: son top + çekilen şerit ────────────────────── */
.lg-play-zone {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1rem;
    align-items: center;
    max-width: 720px; margin: 0 auto;
}
.lg-ball-wrap { display: flex; align-items: center; justify-content: center; }
.lg-ball {
    position: relative;
    width: 90px; height: 90px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 2px dashed rgba(255,255,255,0.12);
    transition: all .25s ease;
}
.lg-ball-text {
    position: relative; z-index: 2;
    font-size: 2.2rem; font-weight: 800; color: var(--ivory-dark);
    letter-spacing: -.02em;
}
.lg-ball.has-ball {
    background: radial-gradient(circle at 30% 30%, #fff5d0 0%, var(--gold-light) 40%, var(--gold) 100%);
    border: 2px solid #fff5d0;
    box-shadow:
        0 0 28px rgba(244,197,66,0.5),
        inset 0 -6px 12px rgba(184,134,11,0.35),
        inset 0 5px 9px rgba(255,255,255,0.5);
}
.lg-ball.has-ball .lg-ball-text { color: var(--purple-deep); }
.lg-ball.pulse { animation: lgBallPulse .7s cubic-bezier(.34,1.56,.64,1); }
@keyframes lgBallPulse {
    0%   { transform: scale(0.5); opacity: 0; }
    55%  { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); }
}
/* Top yuvarlanma — server'dan top gelmeden önce hızlı dönen sayılarla "spin" */
.lg-ball.rolling {
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), rgba(91,63,204,0.4));
    border: 2px solid rgba(244,197,66,0.4);
    animation: lgBallRoll .65s linear;
}
.lg-ball.rolling .lg-ball-text { color: var(--gold-light); }
@keyframes lgBallRoll {
    0%   { transform: rotate(0deg)   scale(1); }
    25%  { transform: rotate(-12deg) scale(1.08); }
    50%  { transform: rotate(8deg)   scale(1.04); }
    75%  { transform: rotate(-4deg)  scale(1.06); }
    100% { transform: rotate(0deg)   scale(1); }
}

/* ─── Mobil çift dokunma zoom'unu engelle ───────────────────────────── */
.loto-game-page,
.loto-page,
body.loto-game-page,
body.loto-page {
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}
.loto-game-page button,
.loto-game-page a,
.loto-game-page .lg-tbtn,
.loto-game-page .lgc,
.loto-game-page .lg-buy-btn,
.loto-game-page .lg-cnt-btn,
.loto-game-page .lg-info-btn,
.loto-game-page .lg-back,
.loto-game-page .lg-balance-pill,
.loto-page .loto-card,
.loto-page .game-tab {
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.lg-drawn-strip {
    display: flex; gap: .3rem;
    overflow-x: auto; overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: .25rem 0;
}
.lg-drawn-strip::-webkit-scrollbar { display: none; }
.lg-strip-ball {
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(244,197,66,0.15);
    color: var(--gold-light);
    font-size: .72rem; font-weight: 700;
    border: 1px solid rgba(244,197,66,0.25);
}

/* ─── Biletler ──────────────────────────────────────────────────────── */
.lg-tickets {
    display: flex; flex-direction: column; gap: .85rem;
    padding: .75rem 1rem;
    max-width: 720px; margin: 0 auto;
}
.lg-tickets-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--ivory-dark);
    font-size: .88rem;
}

.lg-ticket {
    background: #fff;
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: .55rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.lg-ticket.is-preview {
    border-color: rgba(167,139,255,0.35);
}
.lg-ticket.is-winner {
    border-color: var(--gold);
    box-shadow: 0 0 22px rgba(244,197,66,0.45);
    animation: lgWinPulse 1.2s ease-in-out infinite;
}
@keyframes lgWinPulse {
    0%, 100% { box-shadow: 0 0 22px rgba(244,197,66,0.45); }
    50%      { box-shadow: 0 0 32px rgba(244,197,66,0.75); }
}

.lg-ticket-head {
    display: flex; align-items: center; gap: .4rem;
    padding: 0 .25rem .5rem;
}
.lg-win-badge {
    margin-left: auto;
    padding: .25rem .55rem;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--purple-deep);
    font-weight: 800; font-size: .72rem;
    letter-spacing: .04em;
}

.lg-tbtn {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    border: none;
    background: #2d1b69;
    color: #fff;
    font-size: .78rem; font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .1s;
}
.lg-tbtn:active { transform: scale(0.94); background: #3d2879; }
.lg-tbtn--danger { background: #3d2879; }

.lg-card {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 3px;
    padding: 3px;
    background: transparent;
    border-radius: 10px;
    border: 1.5px solid #2d1b69;
}
.lgc {
    aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    color: #1a1a2e;
    border-radius: 4px;
    font-weight: 800; font-size: .88rem;
    transition: all .18s;
    user-select: none;
    border: 1px solid #e5e5ea;
}
.lgc.empty {
    background: #d4d4d8;
    border-color: transparent;
    cursor: default;
}
.lgc.marked {
    background: radial-gradient(circle at 30% 30%, #fff5d0 0%, var(--gold-light) 50%, var(--gold) 100%);
    color: var(--purple-deep);
    box-shadow: inset 0 0 0 2px var(--gold-deep), 0 0 6px rgba(244,197,66,0.4);
    transform: scale(1.06);
    border-color: transparent;
}

/* ─── Sticky alt bilet alma barı ────────────────────────────────────── */
.lg-buybar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    padding: .75rem .85rem calc(.75rem + env(safe-area-inset-bottom));
    background: rgba(13,8,32,0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(244,197,66,0.18);
    box-shadow: 0 -8px 28px rgba(0,0,0,0.4);
    display: flex; align-items: center; gap: .65rem;
    max-width: 720px; margin: 0 auto;
}
.lg-buy-btn {
    flex: 1;
    padding: .95rem 1rem;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #4a8df2 0%, #3066d6 100%);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: .4rem;
    box-shadow: 0 4px 16px rgba(48,102,214,0.45);
    transition: transform .12s, box-shadow .15s;
}
.lg-buy-btn:active { transform: translateY(1px); box-shadow: 0 2px 8px rgba(48,102,214,0.4); }
.lg-buy-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.lg-buy-label  { font-size: 1rem; letter-spacing: .06em; }
.lg-buy-amount { font-size: 1.05rem; }

.lg-counter {
    display: inline-flex; flex-direction: column; align-items: center; gap: .25rem;
}
.lg-cnt-label {
    font-size: .65rem; color: var(--ivory-dark);
    text-transform: uppercase; letter-spacing: .06em;
}
.lg-counter .lg-cnt-btn:first-of-type,
.lg-cnt-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1.4rem; font-weight: 700;
    cursor: pointer;
    line-height: 1;
    transition: transform .1s;
}
.lg-cnt-minus { background: #ef4444; }
.lg-cnt-plus  { background: #22c55e; }
.lg-cnt-btn:active { transform: scale(0.92); }
.lg-cnt-val {
    min-width: 24px; text-align: center;
    color: var(--ivory); font-weight: 800; font-size: 1.15rem;
}
.lg-counter {
    flex-direction: row;
    align-items: center; gap: .4rem;
}
.lg-counter::before {
    content: 'Bilet';
    font-size: .68rem; color: var(--ivory-dark);
    text-transform: uppercase; letter-spacing: .04em;
    margin-right: .15rem;
    display: none; /* compact mobile */
}

/* ─── Oyun sonu modal ───────────────────────────────────────────────── */
.lg-end { text-align: center; }
.lg-end-icon { font-size: 3.5rem; margin-bottom: .5rem; }
.lg-end h2 { margin: .25rem 0; }
.lg-end-actions { margin-top: 1.25rem; }

/* ─── Mobil ayarlamalar ─────────────────────────────────────────────── */
@media (max-width: 380px) {
    .lg-infobar { gap: .4rem; padding: .5rem .65rem; }
    .lg-info-chip, .lg-info-item, .lg-info-btn { font-size: .78rem; }
    .lg-info-auto .auto-text { font-size: .72rem; }
    .lg-tickets { padding: .55rem .65rem; gap: .65rem; }
    .lg-ticket { padding: .45rem; }
    .lgc { font-size: .78rem; }
    .lg-buy-btn { padding: .85rem .8rem; }
    .lg-buy-label { font-size: .9rem; }
    .lg-cnt-btn { width: 32px; height: 32px; font-size: 1.2rem; }
}

@media (min-width: 640px) {
    .loto-rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Admin paneli — loto */
.admin-loto-rooms { display: grid; gap: .75rem; }
.admin-loto-room {
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    padding: .75rem;
    border: 1px solid rgba(255,255,255,0.08);
}
.admin-loto-room.inactive { opacity: 0.6; }
.alr-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.alr-name { font-weight: 700; color: var(--ivory); font-size: 1rem; }
.alr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: .5rem;
    font-size: .85rem;
}
.alr-grid label { display: flex; flex-direction: column; color: var(--ivory-dark); font-size: .75rem; }
.alr-grid input, .alr-grid select {
    padding: .35rem;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.25);
    color: var(--ivory);
    font-size: .85rem;
}
.alr-actions { margin-top: .5rem; display: flex; gap: .5rem; justify-content: flex-end; }

/* ────────────────────────────────────────────────────────────
   Hediye çarkı (gift wheel) — login sayfasında misafire çıkar
   ──────────────────────────────────────────────────────────── */
.gw-modal {
    position: fixed; inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity .3s ease;
}
.gw-modal.open { opacity: 1; }
.gw-modal[hidden] { display: none; }

.gw-backdrop {
    position: absolute; inset: 0;
    background: radial-gradient(circle at center, rgba(58,34,128,.75), rgba(13,8,32,.92));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

.gw-card {
    position: relative;
    width: min(440px, 100%);
    background: linear-gradient(180deg, rgba(58,34,128,.95), rgba(45,27,105,.96));
    border: 1.5px solid rgba(167,139,255,.45);
    border-radius: 28px;
    padding: 1.5rem 1.25rem 1.75rem;
    text-align: center;
    color: var(--ivory);
    box-shadow:
        0 30px 80px rgba(0,0,0,.6),
        0 0 60px rgba(167,139,255,.15),
        inset 0 1px 0 rgba(255,255,255,.10);
    transform: scale(.95);
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.gw-modal.open .gw-card { transform: scale(1); }

.gw-glow {
    position: absolute;
    top: -40%; left: -20%;
    width: 140%; height: 80%;
    background: radial-gradient(circle, rgba(244,197,66,.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.gw-close {
    position: absolute;
    top: .65rem; right: .85rem;
    width: 32px; height: 32px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 50%;
    color: var(--ivory-dark);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    transition: background .15s, color .15s;
}
.gw-close:hover { background: rgba(255,255,255,.15); color: var(--ivory); }

.gw-title {
    position: relative; z-index: 1;
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 0 .35rem;
    letter-spacing: .01em;
    background: linear-gradient(90deg, var(--gold-light), var(--gold) 60%, var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 24px rgba(244,197,66,.3);
}
.gw-sub {
    position: relative; z-index: 1;
    font-size: .9rem;
    color: var(--ivory-dark);
    margin: 0 0 .75rem;
    line-height: 1.4;
}

/* Şart rozeti — "10 AZN ve üstü depozitlerde geçerli" gibi koşullar */
.gw-condition {
    position: relative; z-index: 1;
    display: inline-block;
    margin: 0 auto 1rem;
    padding: .5rem .9rem;
    background: linear-gradient(135deg, rgba(244,197,66,.18), rgba(244,197,66,.08));
    border: 1px solid rgba(244,197,66,.5);
    border-radius: 100px;
    color: var(--gold-light);
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .01em;
    box-shadow: 0 4px 14px rgba(244,197,66,.15);
    max-width: 95%;
}
.gw-condition b {
    color: var(--gold);
    font-weight: 800;
}
.gw-condition-result {
    margin: .85rem auto;
    font-size: .82rem;
}

/* Çark sahnesi */
.gw-stage {
    position: relative;
    width: 280px; height: 280px;
    margin: .5rem auto;
    z-index: 1;
}
.gw-stage.done {
    width: 140px; height: 140px;
    transition: width .5s ease, height .5s ease;
}
.gw-stage.done .gw-spin-btn { display: none; }
.gw-stage.done .gw-pointer  { display: none; }

.gw-pointer {
    position: absolute;
    top: -6px; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 26px solid var(--gold);
    filter: drop-shadow(0 4px 10px rgba(244,197,66,.7));
    z-index: 4;
}

.gw-wheel {
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 6px solid var(--gold);
    box-shadow:
        0 0 0 4px rgba(244,197,66,.2),
        0 0 50px rgba(167,139,255,.45),
        inset 0 0 22px rgba(0,0,0,.45);
    overflow: hidden;
    transition: transform 5s cubic-bezier(.17,.67,.16,.99);
    background: rgba(0,0,0,.2);
}

.gw-wheel-label {
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    pointer-events: none;
    transform-origin: 0 0;
}
.gw-wheel-label-inner {
    position: absolute;
    top: 0; left: 0;
    font-weight: 900;
    font-size: 1.05rem;
    color: white;
    text-shadow:
        0 1px 3px rgba(0,0,0,.6),
        0 0 8px rgba(0,0,0,.3);
    white-space: nowrap;
    line-height: 1;
    /* transform JS'de: translate(-50%,-50%) rotate(-angle) */
}

.gw-spin-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 86px; height: 86px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, rgba(255,255,255,.6), transparent 50%),
        linear-gradient(135deg, var(--gold-light), var(--gold) 60%, var(--gold-deep));
    color: #2d1b69;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: .05em;
    border: 5px solid white;
    box-shadow:
        0 10px 28px rgba(244,197,66,.55),
        0 0 0 4px rgba(244,197,66,.18),
        inset 0 -3px 8px rgba(0,0,0,.15);
    cursor: pointer;
    z-index: 3;
    transition: transform .15s ease;
    text-transform: uppercase;
}
.gw-spin-btn:hover:not(:disabled) {
    transform: translate(-50%, -50%) scale(1.07);
}
.gw-spin-btn:active:not(:disabled) {
    transform: translate(-50%, -50%) scale(.97);
}
.gw-spin-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
}
.gw-spin-btn.is-spinning {
    animation: gwPulse 1.2s ease-in-out infinite;
}
@keyframes gwPulse {
    0%, 100% { box-shadow: 0 10px 28px rgba(244,197,66,.55), 0 0 0 4px rgba(244,197,66,.18), inset 0 -3px 8px rgba(0,0,0,.15); }
    50%      { box-shadow: 0 10px 28px rgba(244,197,66,.85), 0 0 0 10px rgba(244,197,66,.10), inset 0 -3px 8px rgba(0,0,0,.15); }
}

/* Sonuç ekranı */
.gw-result {
    position: relative; z-index: 1;
    margin-top: 1.25rem;
    animation: gwResultIn .6s cubic-bezier(.34,1.56,.64,1);
}
@keyframes gwResultIn {
    from { opacity: 0; transform: translateY(15px) scale(.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.gw-confetti {
    font-size: 3rem;
    animation: gwBounce 1.2s ease-in-out infinite alternate;
}
@keyframes gwBounce {
    from { transform: translateY(0)    rotate(-4deg); }
    to   { transform: translateY(-8px) rotate(4deg);  }
}
.gw-result-title {
    font-size: 1.4rem;
    margin: .25rem 0 .5rem;
    color: var(--gold-light);
    font-weight: 900;
}
.gw-prize-text {
    font-size: 1.05rem;
    color: var(--ivory);
    margin: 0 0 1rem;
    line-height: 1.45;
}
.gw-prize-text strong {
    display: inline-block;
    margin: 0 .25rem;
    padding: .25rem .65rem;
    background: linear-gradient(135deg, rgba(244,197,66,.25), rgba(244,197,66,.10));
    border: 1px solid rgba(244,197,66,.4);
    border-radius: 10px;
    color: var(--gold-light);
    font-size: 1.4rem;
    font-weight: 900;
}
.gw-instruction {
    font-size: .85rem;
    color: var(--ivory-dark);
    margin: 0 0 .85rem;
    line-height: 1.5;
    padding: .75rem .85rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(167,139,255,.20);
    border-radius: 12px;
}
.gw-ref {
    font-size: .75rem;
    color: var(--ivory-dark);
    margin-bottom: 1rem;
    letter-spacing: .03em;
}
.gw-ref code {
    background: rgba(244,197,66,.15);
    border: 1px solid rgba(244,197,66,.3);
    padding: .2rem .55rem;
    border-radius: 6px;
    color: var(--gold-light);
    font-family: ui-monospace, monospace;
    font-weight: 700;
    margin: 0 .1rem;
}
.gw-ref .gw-dot { margin: 0 .35rem; opacity: .5; }
.gw-cta {
    display: inline-flex;
    align-items: center; gap: .35rem;
    margin-top: .25rem;
    padding: .85rem 1.6rem;
    background: linear-gradient(135deg, var(--purple-light), var(--purple) 60%, var(--purple-deep));
    color: white;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .01em;
    box-shadow: 0 8px 22px rgba(91,63,204,.5);
    transition: transform .15s, box-shadow .2s;
}
.gw-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(91,63,204,.65);
}

/* Mobil ince ayar */
@media (max-width: 380px) {
    .gw-stage { width: 240px; height: 240px; }
    .gw-wheel-label-inner { font-size: .9rem; }
    .gw-spin-btn { width: 74px; height: 74px; font-size: .85rem; }
    .gw-title { font-size: 1.25rem; }
    .gw-prize-text strong { font-size: 1.2rem; }
}

/* ╔════════════════════════════════════════════════════════════════════╗
   ║  DOMINO LOBBY — Premium Casino Glass redesign (Haziran 2026)       ║
   ║                                                                    ║
   ║  Hedef: lobby oda kartları "banka kartı" gibi düz/jenerik          ║
   ║  duruyordu → AAA mobil oyun hissi veren koyu lüks glassmorphism.   ║
   ║                                                                    ║
   ║  Görsel hiyerarşi (en güçlüden zayıfa):                            ║
   ║    1) ÖDÜL HAVUZU  — büyük altın cam kutu + parıldayan kupa        ║
   ║    2) GİRİŞ ücreti — ikincil, net tipografi                        ║
   ║    3) Oyuncu slotları (avatar) + doluluk + sosyal kanıt rozeti     ║
   ║    4) CTA — tam genişlik mor neon "Oyna" butonu                    ║
   ║                                                                    ║
   ║  Atmosfer: yüzen domino taşları + ambient mor ışık + vignette.    ║
   ║  Tümü `.domino-page` altında izole → loto/diğer sayfalar etkilenmez║
   ║  Kart içeriği JS'de (lobby.js renderCard) basılır; buradaki        ║
   ║  rc-* sınıfları o yapıyı biçimlendirir.                            ║
   ╚════════════════════════════════════════════════════════════════════╝ */

/* Palet token'ları (kullanıcının verdiği marka paleti) — scope'lu */
.domino-page {
    --d-bg:     #090412;
    --d-purple: #7B4DFF;
    --d-glow:   #A36EFF;
    --d-violet: #1A1038;
    --d-gold:   #FFD24D;
    --d-green:  #4ADE80;
    --d-txt:    #FFFFFF;
    --d-txt2:   rgba(255, 255, 255, 0.7);
}

/* ─── Arka plan dekoru: ambient ışık + vignette + yüzen domino taşları ── */
.domino-bg-decor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
    /* üstte mor ambient halo, alt-sağda hafif altın sızıntı */
    background:
        radial-gradient(58% 48% at 50% -6%, rgba(123, 77, 255, 0.20), transparent 70%),
        radial-gradient(46% 40% at 100% 106%, rgba(255, 210, 77, 0.05), transparent 70%);
    /* yumuşak vignette — kenarları karartıp derinlik verir */
    box-shadow: inset 0 0 240px 80px rgba(9, 4, 18, 0.94);
}
.dbd-tile {
    position: absolute;
    border-radius: 24%/13%;
    background-color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    opacity: 0.11;
    will-change: transform;
    --pip: rgba(45, 27, 105, 0.55);
    background-repeat: no-repeat;
    /* 2 üst + 2 alt pip — küçük domino taşı izlenimi */
    background-image:
        radial-gradient(circle 3px at 33% 22%, var(--pip) 96%, transparent 100%),
        radial-gradient(circle 3px at 67% 22%, var(--pip) 96%, transparent 100%),
        radial-gradient(circle 3px at 33% 78%, var(--pip) 96%, transparent 100%),
        radial-gradient(circle 3px at 67% 78%, var(--pip) 96%, transparent 100%);
}
/* Ortadaki bölme çizgisi */
.dbd-tile::before {
    content: '';
    position: absolute;
    left: 15%; right: 15%;
    top: 50%;
    height: 2px;
    background: rgba(45, 27, 105, 0.42);
    border-radius: 2px;
    transform: translateY(-1px);
}
.dbd-1 { width: 42px;  height: 76px;  left: -14px; top: 10%; opacity: 0.12; animation: dbdFloat 19s ease-in-out infinite; }
.dbd-2 { width: 32px;  height: 58px;  right: 9%;   top: 20%; opacity: 0.10; animation: dbdFloat 23s ease-in-out -4s infinite reverse; }
.dbd-3 { width: 54px;  height: 96px;  left: 12%;   top: 54%; opacity: 0.09; animation: dbdFloat 27s ease-in-out -8s infinite; }
.dbd-4 { width: 38px;  height: 68px;  right: -16px; top: 66%; opacity: 0.11; animation: dbdFloat 21s ease-in-out -11s infinite reverse; }
.dbd-5 { width: 28px;  height: 50px;  left: 58%;   top: 82%; opacity: 0.12; animation: dbdFloat 18s ease-in-out -6s infinite; }
.dbd-6 { width: 35px;  height: 63px;  left: 7%;    top: 88%; opacity: 0.10; animation: dbdFloat 25s ease-in-out -13s infinite reverse; }
@keyframes dbdFloat {
    0%   { transform: translate(0, 0)         rotate(-6deg); }
    25%  { transform: translate(14px, -22px)  rotate(6deg); }
    50%  { transform: translate(-6px, -34px)  rotate(-3deg); }
    75%  { transform: translate(-18px, -14px) rotate(8deg); }
    100% { transform: translate(0, 0)         rotate(-6deg); }
}
@media (prefers-reduced-motion: reduce) {
    .dbd-tile { animation: none !important; }
}

/* İçerik dekorun üstünde (loto sayfasıyla aynı katman düzeni).
   .bottom-nav burada YOK — fixed kalması için sadece z-index bump'ı yeterli. */
.domino-page .app-header,
.domino-page .game-tabs,
.domino-page .app-main {
    position: relative;
    z-index: 1;
}
.domino-page .bottom-nav { z-index: 200; }

.domino-page .room-list { gap: 1.15rem; }

/* ═══ KART — koyu lüks glassmorphism ════════════════════════════════════ */
.domino-page .room-card {
    border-radius: 24px;
    padding: 1.05rem 1.1rem 1.15rem;
    color: var(--d-txt);
    /* sade cam zemin + üstte çok hafif mor derinlik */
    background:
        radial-gradient(110% 70% at 50% 0%, rgba(123, 77, 255, 0.09), transparent 60%),
        linear-gradient(165deg, rgba(30, 20, 60, 0.78), rgba(13, 8, 28, 0.82));
    border: 1px solid rgba(163, 110, 255, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 16px 40px -22px rgba(0, 0, 0, 0.80);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    isolation: isolate;
    /* Giriş: sadece opaklık (translateY YOK) → yeni oda açılınca kayma/zıplama olmaz.
       Mevcut kartlar reconcile'da yerinde güncellendiği için bu animasyon tekrar
       oynamaz; yalnızca gerçekten yeni eklenen kartta bir kez çalışır. */
    animation: rcFadeIn .35s ease both;
}
/* İnce çerçeve highlight'ı — minimalist, sadece üst-sol mor parlama */
.domino-page .room-card::before {
    content: '';
    position: absolute;
    inset: 0;
    height: auto;
    border-radius: 24px;
    padding: 1px;
    pointer-events: none;
    background: linear-gradient(150deg,
        rgba(163, 110, 255, 0.40),
        transparent 45%,
        rgba(255, 210, 77, 0.14));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
}
.domino-page .room-card:hover {
    transform: translateY(-3px);
    border-color: rgba(163, 110, 255, 0.32);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 22px 48px -24px rgba(0, 0, 0, 0.85);
}
.domino-page .room-card:active { transform: translateY(-1px) scale(0.995); }

/* ── 1) HEADER: tier badge + canlı/timer göstergesi ──────────────────── */
.rc-head {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: space-between;
    gap: .5rem;
}
/* oda adı (tier) + sosyal kanıt rozeti yan yana */
.rc-head-left {
    display: inline-flex; align-items: center; gap: .4rem;
    flex-wrap: wrap; min-width: 0;
}
.rc-tier {
    display: inline-flex; align-items: center; gap: .38rem;
    font-size: .62rem; font-weight: 800; letter-spacing: .12em;
    text-transform: uppercase;
    padding: .3rem .6rem; border-radius: 100px;
}
.rc-tier::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.rc-tier--mini {
    color: #cdbcff; background: rgba(123, 77, 255, 0.14);
    border: 1px solid rgba(123, 77, 255, 0.35);
}
.rc-tier--mini::before { background: var(--d-glow); box-shadow: 0 0 8px var(--d-glow); }
.rc-tier--standart {
    color: #ddccff; background: rgba(123, 77, 255, 0.22);
    border: 1px solid rgba(163, 110, 255, 0.5);
}
.rc-tier--standart::before { background: var(--d-glow); box-shadow: 0 0 8px var(--d-glow); }
.rc-tier--vip {
    color: #2a1d00; background: linear-gradient(135deg, #FFE89A, #FFD24D);
    border: 1px solid rgba(255, 210, 77, 0.7);
    box-shadow: 0 0 18px -4px rgba(255, 210, 77, 0.75);
}
.rc-tier--vip::before { background: #7a5a00; }

.rc-status {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .62rem; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase;
    padding: .3rem .58rem; border-radius: 100px;
    border: 1px solid transparent;
}
.rc-status .rc-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.rc-status--open { color: #9af5bd; background: rgba(74, 222, 128, 0.12); border-color: rgba(74, 222, 128, 0.32); }
.rc-status--open .rc-dot { background: var(--d-green); box-shadow: 0 0 8px var(--d-green); animation: rcPulse 1.6s ease-in-out infinite; }
.rc-status--cd  { color: #ffe6a0; background: rgba(255, 210, 77, 0.14); border-color: rgba(255, 210, 77, 0.4); }
.rc-status--full { color: #ffb4b4; background: rgba(248, 113, 113, 0.14); border-color: rgba(248, 113, 113, 0.4); }
.rc-status--full .rc-dot { background: #f87171; }
.rc-clock { width: 12px; height: 12px; flex: none; }
/* saniye → kalp atışı gibi nabız (geri sayım boyunca) */
.rc-timer-val {
    display: inline-block; transform-origin: center;
    font-variant-numeric: tabular-nums; letter-spacing: .04em;
    animation: rcBeat 1.15s ease-in-out infinite;
}

/* ── 5) SOSYAL KANIT rozeti ──────────────────────────────────────────── */
.rc-social {
    position: relative; z-index: 1;
    display: inline-flex; align-items: center; gap: .25rem;
    padding: .24rem .5rem; white-space: nowrap;
    font-size: .62rem; font-weight: 800; letter-spacing: .005em;
    border-radius: 100px;
    color: #ffdf9e;
    background: rgba(255, 210, 77, 0.12);
    border: 1px solid rgba(255, 210, 77, 0.26);
}
.rc-social--soon {
    color: #ffe1a0;
    background: linear-gradient(135deg, rgba(255, 210, 77, 0.16), rgba(255, 150, 50, 0.06));
    border-color: rgba(255, 180, 60, 0.38);
}
.rc-social--hot, .rc-social--last {
    color: #ffc7b0;
    background: linear-gradient(135deg, rgba(255, 120, 80, 0.18), rgba(255, 80, 80, 0.06));
    border-color: rgba(255, 120, 80, 0.42);
}
.rc-social--active {
    color: #d8c6ff;
    background: linear-gradient(135deg, rgba(163, 110, 255, 0.20), rgba(123, 77, 255, 0.06));
    border-color: rgba(163, 110, 255, 0.42);
}
.rc-social--new {
    color: #cde9ff;
    background: linear-gradient(135deg, rgba(110, 170, 255, 0.16), rgba(110, 170, 255, 0.05));
    border-color: rgba(110, 170, 255, 0.35);
}

/* ── 3) ÖDÜL ALANI — kartın görsel olarak baskın öğesi ──────────────── */
.rc-reward {
    position: relative; z-index: 1; overflow: hidden;
    display: flex; align-items: center; gap: .75rem;
    margin-top: .8rem; padding: .8rem .9rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 210, 77, 0.12), rgba(255, 210, 77, 0.03) 65%);
    border: 1px solid rgba(255, 210, 77, 0.24);
}
.rc-trophy {
    flex: none; width: 40px; height: 40px;
    display: grid; place-items: center; border-radius: 50%;
    background: rgba(255, 210, 77, 0.10);
    border: 1px solid rgba(255, 210, 77, 0.28);
}
.rc-trophy svg { width: 22px; height: 22px; }
.rc-reward-body { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.rc-reward-label {
    font-size: .6rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase;
    color: rgba(255, 224, 150, 0.78);
}
.rc-reward-amount {
    font-size: 1.7rem; font-weight: 900; line-height: 1; letter-spacing: -.02em;
    color: var(--d-gold); text-shadow: 0 0 12px rgba(255, 210, 77, 0.28);
}
.rc-reward-amount small { font-size: 1rem; font-weight: 800; margin-left: .14rem; color: #ffe6a0; }

/* ── 2) GİRİŞ ücreti + 4) oyuncu slotları ────────────────────────────── */
.rc-mid {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    margin-top: .95rem;
}
.rc-entry { display: flex; flex-direction: column; gap: .15rem; }
.rc-entry-label { font-size: .6rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--d-txt2); }
.rc-entry-val { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.rc-entry-val small { font-size: .8rem; font-weight: 700; margin-left: .12rem; color: var(--d-glow); }

.rc-players { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.rc-slots { display: flex; }
.rc-av {
    width: 28px; height: 28px; border-radius: 50%; margin-left: -8px;
    display: grid; place-items: center;
    border: 2px solid rgba(12, 7, 28, 0.92);
}
.rc-av:first-child { margin-left: 0; }
.rc-av--on {
    background: linear-gradient(135deg,
        hsl(calc(var(--h) * 1deg) 82% 66%),
        hsl(calc((var(--h) + 38) * 1deg) 74% 48%));
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 4px 10px -3px rgba(0, 0, 0, 0.6);
}
.rc-av--on svg { width: 16px; height: 16px; fill: rgba(255, 255, 255, 0.92); }
.rc-av--off { background: rgba(255, 255, 255, 0.04); border: 2px dashed rgba(163, 110, 255, 0.4); }
.rc-occ { font-size: .72rem; line-height: 1.2; text-align: right; color: var(--d-txt2); }
.rc-occ b { display: block; color: #fff; font-weight: 800; font-size: .82rem; }
.rc-occ i { font-style: normal; font-size: .66rem; color: var(--d-glow); }

/* ── 6) CTA — tam genişlik mor neon buton ────────────────────────────── */
.domino-page .room-action {
    position: relative; z-index: 1;
    margin-top: 1.05rem;
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #8154f5 0%, #7B4DFF 55%, #5e39d6 100%);
    font-size: 1.0rem; font-weight: 800; letter-spacing: .02em;
    box-shadow:
        0 8px 20px -10px rgba(123, 77, 255, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.domino-page .room-action:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 26px -10px rgba(123, 77, 255, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.domino-page .room-action:disabled {
    background: linear-gradient(135deg, rgba(120, 100, 170, 0.5), rgba(80, 60, 140, 0.5));
    box-shadow: none; color: rgba(255, 255, 255, 0.6);
}
.rc-cta-arrow { width: 18px; height: 18px; flex: none; transition: transform .2s ease; }
.domino-page .room-action:hover .rc-cta-arrow { transform: translateX(3px); }

/* ── Durum vurguları ─────────────────────────────────────────────────── */
/* Neredeyse dolu → altın çerçeve */
.domino-page .room-card.is-hot { border-color: rgba(255, 210, 77, 0.42); }
.domino-page .room-card.is-hot::before {
    background: linear-gradient(140deg, rgba(255, 210, 77, 0.7), transparent 50%, rgba(163, 110, 255, 0.5));
}
/* Geri sayım kritik (≤10sn) → kırmızı + daha hızlı kalp atışı */
.domino-page .room-card.is-urgent .rc-status--cd {
    color: #ff6b6b; background: rgba(248, 113, 113, 0.16); border-color: rgba(248, 113, 113, 0.55);
}
.domino-page .room-card.is-urgent .rc-clock { color: #ff6b6b; }
.domino-page .room-card.is-urgent .rc-timer-val { color: #ff6b6b; animation-duration: .68s; }

/* Geri sayım başladı → kartın çevresinde ince, çevrede dönen kırmızı ışık.
   ::before zaten 1px'lik gradient çerçeve halkası; countdown'da onu dönen
   kırmızı konik-gradient'e çeviriyoruz (mask aynı kaldığı için sadece kenar). */
.domino-page .room-card.status-countdown {
    border-color: rgba(255, 77, 77, 0.32);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 16px 40px -22px rgba(0, 0, 0, 0.80),
        0 0 16px -6px rgba(255, 77, 77, 0.30);
}
.domino-page .room-card.status-countdown::before {
    padding: 1.5px;
    background: conic-gradient(from var(--rc-ang),
        rgba(255, 77, 77, 0.22) 0deg,
        #ff5a5a 32deg,
        rgba(255, 150, 150, 0.95) 52deg,
        rgba(255, 77, 77, 0.22) 92deg,
        rgba(255, 77, 77, 0.22) 360deg);
    animation: rcBorder 2.4s linear infinite;
}

/* ── Boş tier kartı (açık ama oyuncusuz) ─────────────────────────────── */
.domino-page .room-card-empty { border-style: solid; }
.domino-page .room-card-empty .rc-reward { opacity: .8; }

/* ── "Henüz oda yok" boş durum ───────────────────────────────────────── */
.domino-page .empty-state {
    background: linear-gradient(180deg, rgba(123, 77, 255, 0.06), rgba(255, 255, 255, 0.01));
    border-color: rgba(163, 110, 255, 0.3);
}

/* ── Mikro-animasyonlar ──────────────────────────────────────────────── */
@keyframes rcPulse  { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes rcFloat  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes rcPop    { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes rcGlow   { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 180, 60, 0); } 50% { box-shadow: 0 0 16px -2px rgba(255, 180, 60, 0.55); } }
@keyframes rcUrgent { 0%, 100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0); } 50% { box-shadow: 0 0 14px -2px rgba(248, 113, 113, 0.75); } }
/* kalp atışı — hızlı çift vuruş, sonra dinlenme */
@keyframes rcBeat {
    0%   { transform: scale(1); }
    12%  { transform: scale(1.24); }
    24%  { transform: scale(1); }
    36%  { transform: scale(1.12); }
    52%  { transform: scale(1); }
    100% { transform: scale(1); }
}
/* Geri sayım kartının çevresinde dönen kırmızı ışık (konik açı animasyonu).
   @property desteklenmezse açı sabit kalır → ince statik kırmızı halka (fallback). */
@property --rc-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes rcBorder { to { --rc-ang: 360deg; } }
/* Kart girişi — kaymasız, yalnızca yumuşak opaklık */
@keyframes rcFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Küçük ekran ince ayar ───────────────────────────────────────────── */
@media (max-width: 380px) {
    .domino-page .rc-reward-amount { font-size: 1.7rem; }
    .domino-page .rc-trophy { width: 42px; height: 42px; }
    .domino-page .rc-trophy svg { width: 23px; height: 23px; }
    .domino-page .rc-entry-val { font-size: 1.12rem; }
    .domino-page .room-action { font-size: .96rem; }
    .domino-page .rc-av { width: 27px; height: 27px; }
}

/* ── Hareket azaltma tercihi ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .domino-page .rc-status--open .rc-dot,
    .domino-page .rc-av--on,
    .domino-page .rc-timer-val,
    .domino-page .room-card.status-countdown::before { animation: none !important; }
}


/* ── Ses aç/kapa anahtarı (ayarlar) ─────────────────────────────────────── */
.sound-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    padding: 6px 0 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
}
.sound-switch .sw-track {
    position: relative;
    flex: 0 0 auto;
    width: 48px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    transition: background .2s ease;
}
.sound-switch .sw-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
    transition: transform .2s ease;
}
.sound-switch.on .sw-track { background: #2ecc71; }
.sound-switch.on .sw-thumb { transform: translateX(20px); }
.sound-switch .sw-on  { display: none; font-weight: 600; }
.sound-switch .sw-off { display: none; font-weight: 600; opacity: .7; }
.sound-switch.on  .sw-on  { display: inline; }
.sound-switch.off .sw-off { display: inline; }
