/* =========================================================
   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,.06), rgba(255,255,255,.02));
    color: var(--ivory);
    border: 1px solid rgba(167,139,255,.20);
    border-radius: 20px;
    padding: 1.1rem 1.15rem;
    position: relative;
    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: 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,.40);
    box-shadow: 0 14px 36px rgba(0,0,0,.40);
}

.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,.10), rgba(244,197,66,.03));
    border: 1px solid rgba(244,197,66,.25);
    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,.18);
    border: 1px solid rgba(167,139,255,.25);
}
.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);
}

/* "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;
    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;
}

/* ── 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;
    display: flex; align-items: center;
    gap: 2px;
    min-height: 76px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: .75rem .4rem;
    scroll-behavior: smooth;
}
.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;
}
.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); }
.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); }
.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); }

/* 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;
}

