/* ─── Ganimet WebApp Stilleri ─── */

:root {
    --tg-bg: #0f0f1a;
    --tg-text: #e8e8f0;
    --tg-hint: #7a7a9a;
    --tg-link: #7c6cff;
    --tg-btn: #7c6cff;
    --tg-btn-text: #ffffff;

    --bg-primary: #080816;
    --bg-secondary: #0d0d1f;
    --bg-card: #12122a;
    --bg-card-hover: #1a1a3a;
    --bg-input: #16213e;
    --border: #1e1e40;
    --border-light: #2a2a55;
    --accent: #7c6cff;
    --accent-soft: rgba(124, 108, 255, 0.15);
    --accent-glow: rgba(124, 108, 255, 0.4);
    --success: #00d4aa;
    --success-soft: rgba(0, 212, 170, 0.15);
    --warning: #ffb347;
    --warning-soft: rgba(255, 179, 71, 0.15);
    --danger: #ff5c6c;
    --danger-soft: rgba(255, 92, 108, 0.15);
    --gold: #ffd700;
    --gold-soft: rgba(255, 215, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 20px var(--accent-glow);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    color: var(--tg-text);
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 80px;
    -webkit-font-smoothing: antialiased;
}

/* ─── HEADER ─── */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 8, 22, 0.85);
    border-bottom: 1px solid var(--border);
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-left { display: flex; align-items: center; gap: 8px; }

.header-logo {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold), #ff9f43, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.header-right {
    display: flex;
    gap: 6px;
    font-size: 12px;
    align-items: center;
}

.header-stat {
    display: flex;
    align-items: center;
    gap: 3px;
    background: var(--bg-card);
    padding: 4px 8px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.header-stat .val {
    font-weight: 700;
    color: var(--gold);
    font-size: 12px;
}

.xp-bar-wrap {
    width: 100%;
    height: 2px;
    background: var(--border);
    position: absolute;
    bottom: 0;
    left: 0;
}

.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #c084fc, #f472b6);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 2px 2px 0;
}

/* ─── PAGE CONTENT ─── */
#page-content {
    padding: 14px;
    min-height: calc(100vh - 130px);
}

/* Page transition */
.page-enter {
    animation: pageIn 0.25s ease-out;
}

@keyframes pageIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── DASHBOARD ─── */
.welcome-card {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 40%, #c026d3 100%);
    border-radius: var(--radius-lg);
    padding: 22px 20px;
    margin-bottom: 14px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.3);
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.welcome-name {
    font-size: 20px;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    position: relative;
}

.welcome-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    margin-top: 3px;
    position: relative;
}

/* Stats Row (Pill Style) */
.stats-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.stat-pill {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    position: relative;
    overflow: hidden;
}

.stat-pill::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 3px;
}

.stat-pill.gold::before { background: var(--gold); }
.stat-pill.purple::before { background: var(--accent); }
.stat-pill.green::before { background: var(--success); }
.stat-pill.blue::before { background: #38bdf8; }

.stat-pill-icon { font-size: 20px; }

.stat-pill-data { display: flex; flex-direction: column; min-width: 0; }

.stat-pill-val {
    font-size: 14px;
    font-weight: 800;
    color: var(--tg-text);
    letter-spacing: -0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-pill-lbl {
    font-size: 9px;
    color: var(--tg-hint);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}

/* Legacy support */
.stat-card { display: none; }

/* Section Title */
.section-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--tg-hint);
    margin-bottom: 10px;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* Action Buttons */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.action-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 6px;
    color: var(--tg-text);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
    font-size: 12px;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.action-btn:active:not(.loading)::before { opacity: 1; }

.action-btn:active:not(.loading) {
    transform: scale(0.93);
}

.action-btn.loading {
    opacity: 0.4;
    pointer-events: none;
}

.action-btn.loading .action-icon {
    animation: bounce 0.6s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes spin { to { transform: rotate(360deg); } }

.action-icon { font-size: 26px; }
.action-text { font-weight: 700; font-size: 11px; }

.action-hunt { border-color: rgba(74,222,128,0.3); }
.action-fish { border-color: rgba(56,189,248,0.3); }
.action-mine { border-color: rgba(251,191,36,0.3); }
.action-collect { border-color: rgba(167,139,250,0.3); }

/* Energy Bar (inline) */
.energy-bar-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.energy-bar-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--tg-hint);
    white-space: nowrap;
}

.energy-bar-track {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.energy-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.energy-bar-fill.low { background: linear-gradient(90deg, var(--danger), #ff8c8c); }
.energy-bar-fill.full { background: linear-gradient(90deg, var(--success), #34d399); }

.energy-bar-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    min-width: 40px;
    text-align: right;
}

.energy-timer {
    font-size: 11px;
    color: var(--warning);
    font-weight: 600;
}

/* Income Banner */
.income-banner {
    background: linear-gradient(135deg, #064e3b, #047857);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    margin-bottom: 14px;
    animation: pulse-glow 2.5s ease-in-out infinite;
    -webkit-tap-highlight-color: transparent;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 8px rgba(16,185,129,0.2); }
    50% { box-shadow: 0 0 24px rgba(16,185,129,0.5); }
}

.income-banner:active { transform: scale(0.98); }
.collect-arrow { font-size: 18px; }

/* Action Result Card */
.action-result {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    margin-bottom: 14px;
    animation: resultPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.action-result::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.06;
}

.action-result.result-success::before { background: var(--success); }
.action-result.result-rare::before { background: var(--gold); }
.action-result.result-fail::before { background: var(--danger); }

.action-result.result-rare { border-color: rgba(255, 215, 0, 0.4); }
.action-result.result-success { border-color: rgba(0, 212, 170, 0.3); }

@keyframes resultPop {
    0% { opacity: 0; transform: scale(0.8); }
    60% { transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}

.result-emoji { font-size: 48px; margin-bottom: 6px; }

.result-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

.result-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--gold);
}

.result-sub {
    font-size: 12px;
    color: var(--tg-hint);
    margin-top: 4px;
}

.result-dismiss {
    margin-top: 12px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--tg-hint);
    padding: 8px 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

/* Level Up Overlay */
.levelup-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(4px);
}

.levelup-card {
    background: linear-gradient(135deg, #4f46e5, #7c3aed, #c026d3);
    border-radius: var(--radius-xl);
    padding: 32px 40px;
    text-align: center;
    animation: resultPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(124, 108, 255, 0.4);
}

.levelup-title {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.levelup-level {
    font-size: 56px;
    font-weight: 900;
    color: white;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.levelup-reward {
    font-size: 16px;
    color: var(--gold);
    font-weight: 700;
    margin-top: 8px;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ─── ENVANTER ─── */
.inv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.inv-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    transition: transform 0.15s;
}

.inv-item:active { transform: scale(0.97); }

.inv-item-name { font-weight: 700; font-size: 13px; margin-bottom: 3px; }
.inv-item-count { color: var(--gold); font-weight: 800; font-size: 15px; }
.inv-item-sub { font-size: 10px; color: var(--tg-hint); margin-top: 3px; }

.dur-bar {
    height: 5px;
    background: var(--border);
    border-radius: 3px;
    margin-top: 6px;
    overflow: hidden;
}

.dur-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), #4ade80);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* ─── MAĞAZA ─── */
.shop-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.shop-tabs::-webkit-scrollbar { display: none; }

.shop-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.shop-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.15s;
}

.shop-item:active { transform: scale(0.98); }
.shop-item.owned { border-color: rgba(0, 212, 170, 0.3); }

.shop-item-icon { font-size: 28px; }

.shop-item-info { flex: 1; }
.shop-item-name { font-weight: 700; font-size: 14px; }
.shop-item-desc { font-size: 11px; color: var(--tg-hint); margin-top: 1px; }

.shop-item-right { text-align: right; }
.shop-item-price { color: var(--gold); font-weight: 700; font-size: 14px; }
.shop-item-owned { color: var(--success); font-size: 11px; font-weight: 600; }

.btn-buy {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    font-weight: 700;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.btn-buy:active { transform: scale(0.93); opacity: 0.85; }
.btn-buy:disabled { opacity: 0.3; pointer-events: none; }

/* ─── TAB BAR ─── */
.tab-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }

.tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 7px 14px;
    color: var(--tg-hint);
    cursor: pointer;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.tab-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 2px 12px var(--accent-glow);
}

/* ─── SIRALAMA ─── */
.rank-list { display: flex; flex-direction: column; gap: 4px; }

.rank-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.15s;
}

.rank-item.rank-me {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.rank-item.rank-top-1 { border-color: rgba(255, 215, 0, 0.4); background: var(--gold-soft); }
.rank-item.rank-top-2 { border-color: rgba(192, 192, 192, 0.3); }
.rank-item.rank-top-3 { border-color: rgba(205, 127, 50, 0.3); }

.rank-pos { font-size: 16px; min-width: 30px; text-align: center; font-weight: 700; }
.rank-name { flex: 1; font-weight: 600; font-size: 14px; }
.title-remaining {
    font-size: 11px;
    color: var(--gold);
    font-weight: 600;
    margin-top: 2px;
}

.rank-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(124, 108, 255, 0.12);
    padding: 1px 6px;
    border-radius: 6px;
    margin-right: 4px;
    white-space: nowrap;
}
.rank-val { color: var(--gold); font-weight: 800; }

/* ─── PROFİL ─── */
.profile-card {
    text-align: center;
    padding: 20px;
    margin-bottom: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #c084fc);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 32px;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.profile-name {
    font-size: 20px;
    font-weight: 800;
}

.profile-sub {
    color: var(--tg-hint);
    font-size: 13px;
}

.detail-list {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.detail-row:last-child { border-bottom: none; }
.detail-row span:first-child { color: var(--tg-hint); }
.detail-row span:last-child { font-weight: 700; }

/* ─── NAVİGASYON ─── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(8, 8, 22, 0.92);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 6px 0;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-btn {
    background: none;
    border: none;
    color: var(--tg-hint);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 4px 12px;
    font-size: 10px;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.nav-btn.active {
    color: var(--accent);
}

.nav-btn.active::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.nav-home .nav-icon {
    font-size: 26px;
    background: var(--accent);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -18px;
    box-shadow: 0 -2px 12px rgba(124, 108, 255, 0.35);
}

.nav-home .nav-label {
    margin-top: 0;
}

.nav-icon { font-size: 22px; }
.nav-label { font-weight: 700; letter-spacing: 0.3px; }

/* ─── TOAST BİLDİRİMLER ─── */
#toast-container {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 92%;
    max-width: 380px;
    pointer-events: none;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    backdrop-filter: blur(10px);
}

.toast.show { opacity: 1; transform: translateY(0) scale(1); }
.toast-success { border-color: var(--success); background: rgba(0,212,170,0.12); color: var(--success); }
.toast-error { border-color: var(--danger); background: rgba(255,92,108,0.12); color: var(--danger); }
.toast-info { border-color: var(--accent); background: rgba(124,108,255,0.12); }
.toast-gold { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); }

/* ─── GENEL ─── */
.page-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.empty-msg {
    text-align: center;
    color: var(--tg-hint);
    padding: 20px;
    font-size: 13px;
}

.error-text {
    text-align: center;
    color: var(--danger);
    padding: 20px;
}

.loading-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 40px auto;
}

/* ─── MENÜ GRID ─── */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 14px;
}

.menu-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.menu-item:active { transform: scale(0.93); border-color: var(--accent); }
.menu-icon { font-size: 22px; }
.menu-label { font-size: 9px; color: var(--tg-hint); font-weight: 700; }
.menu-item small { display: block; font-size: 9px; color: var(--tg-hint); font-weight: 600; }

/* ─── MESLEKLER ─── */
.job-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.job-card:active:not(.locked) { transform: scale(0.98); border-color: var(--accent); }
.job-card.locked { opacity: 0.35; cursor: default; }

.job-name { font-weight: 700; font-size: 14px; }
.job-desc { font-size: 11px; color: var(--tg-hint); margin-top: 2px; }
.job-level { font-size: 18px; }

.btn-back {
    display: block;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    color: var(--tg-text);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 14px;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.btn-back:active { transform: scale(0.97); }

/* ─── GARSON ─── */
.garson-game { text-align: center; }
.garson-order {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 14px 0;
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.3);
}

.garson-label { font-size: 13px; color: rgba(255,255,255,0.7); }
.garson-target { font-size: 52px; margin-top: 6px; }
.garson-hint { color: var(--tg-hint); margin-bottom: 14px; font-size: 13px; }

.garson-options {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 14px;
}

.garson-opt {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.garson-opt:active { transform: scale(0.88); border-color: var(--accent); }
.garson-opt-icon { font-size: 36px; }
.energy-info { color: var(--tg-hint); font-size: 12px; margin: 10px 0; }

/* ─── AŞÇI & TARİFLER ─── */
.recipe-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 6px;
    transition: all 0.15s;
}

.recipe-card.locked { opacity: 0.4; }

.recipe-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.recipe-name { font-weight: 700; font-size: 14px; }
.recipe-diff { font-size: 11px; }
.recipe-ings { font-size: 11px; color: var(--tg-hint); margin-bottom: 6px; }

.recipe-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recipe-reward { color: var(--gold); font-weight: 700; font-size: 13px; }
.recipe-locked { color: var(--danger); font-size: 11px; font-weight: 600; }

/* ─── TÜCCAR ─── */
.tuccar-balance {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--gold);
    font-size: 16px;
}

.trade-item, .trade-city {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.trade-item.selected, .trade-city.selected {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 12px var(--accent-glow);
}

.trade-name { font-weight: 700; }
.trade-price { color: var(--gold); font-weight: 700; }
.trade-risk { color: var(--warning); font-size: 12px; font-weight: 600; }

.tuccar-actions { display: flex; gap: 8px; margin-top: 12px; }

.btn-trade {
    flex: 1;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 12px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-trade:disabled { opacity: 0.3; cursor: default; }
.btn-trade:active:not(:disabled) { transform: scale(0.97); }

/* ─── ÇİFTLİK ─── */
.farm-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 14px;
}

.farm-plot {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.farm-plot:active { transform: scale(0.93); }
.farm-plot.ready { border-color: var(--success); background: var(--success-soft); }
.farm-plot.growing { border-color: var(--warning); }
.farm-plot.empty { opacity: 0.5; }

.plot-crop { font-size: 20px; margin-bottom: 3px; }
.plot-status { font-size: 9px; color: var(--tg-hint); font-weight: 600; }

.building-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 6px;
}

.building-name { font-weight: 700; margin-bottom: 6px; font-size: 14px; }

.animal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}

.animal-row:last-child { border-bottom: none; }

.animal-hunger {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
}

.hunger-bar {
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.hunger-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s;
}

/* Çiftlik genişletilmiş */
.farm-balance { text-align: center; font-size: 16px; font-weight: 700; color: var(--gold); margin-bottom: 10px; }

.btn-farm-action {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 3px 0;
    border: none;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
}
.btn-harvest { background: var(--success); }
.btn-gubre { background: #a855f7; }

.farm-top-actions {
    display: flex;
    gap: 6px;
    margin: 8px 0 12px;
    flex-wrap: wrap;
}
.farm-top-actions .btn-action {
    flex: 1;
    min-width: 120px;
    padding: 8px 10px;
    font-size: 12px;
}
.btn-secondary { background: var(--bg-card) !important; color: var(--tg-text) !important; border: 1px solid var(--border) !important; }

.farm-items {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.farm-item-badge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
}
.btn-super-yem {
    cursor: pointer;
    border: 1px solid #a855f7;
    color: #a855f7;
    background: rgba(168,85,247,0.1);
}

.building-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.building-cap { font-size: 11px; color: var(--tg-hint); font-weight: 600; }

.animal-card {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.animal-card:last-of-type { border-bottom: none; }
.animal-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.animal-name { font-size: 13px; font-weight: 600; }
.hunger-pct { font-size: 10px; color: var(--tg-hint); min-width: 28px; text-align: right; }

.animal-actions {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}
.btn-farm-sm {
    flex: 1;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-card);
    font-size: 10px;
    cursor: pointer;
    color: var(--tg-text);
    text-align: center;
}
.btn-farm-sm:active { background: var(--border); }
.btn-buy-feed { border-color: var(--gold); color: var(--gold); }

.btn-farm-buy {
    display: block;
    width: 100%;
    padding: 8px;
    margin-top: 6px;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    color: var(--tg-text);
    font-size: 12px;
    cursor: pointer;
    text-align: center;
}
.btn-farm-buy:active { background: var(--border); }
.building-buy { margin-bottom: 8px; border-color: var(--gold); color: var(--gold); }

/* ─── MESLEK AŞAMA KARTLARI ─── */
.job-stage-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
}
.stage-badge {
    display: inline-block;
    background: rgba(99,102,241,0.15);
    color: #818cf8;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 10px;
}
.stage-badge.stage-danger {
    background: rgba(239,68,68,0.15);
    color: #f87171;
}
.case-title { font-size: 15px; font-weight: 700; margin: 8px 0; }
.case-clue { font-size: 13px; color: var(--tg-hint); margin-bottom: 12px; line-height: 1.5; }
.case-story { font-size: 12px; color: #a5b4fc; margin-bottom: 8px; font-style: italic; }
.case-score { font-size: 12px; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.case-desc { font-size: 11px; color: var(--tg-hint); margin-bottom: 10px; line-height: 1.6; }
.case-warning { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); border-radius: 8px; padding: 10px; color: #f87171; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.case-hint { background: rgba(250,204,21,0.1); border: 1px solid rgba(250,204,21,0.3); border-radius: 8px; padding: 8px 10px; color: #fbbf24; font-size: 12px; margin-bottom: 10px; }

.case-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}
.btn-case-option {
    padding: 10px 14px;
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--tg-text);
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
}
.btn-case-option:active { background: var(--border); transform: scale(0.97); }

.case-story-list {
    margin: 8px 0;
    font-size: 12px;
    color: var(--tg-hint);
}
.story-item { margin-bottom: 3px; }

.suspects-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}
.btn-suspect {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--tg-text);
    cursor: pointer;
    text-align: left;
}
.btn-suspect:active { background: var(--border); }
.suspect-name { font-size: 14px; font-weight: 700; }
.suspect-hint { font-size: 11px; color: var(--tg-hint); margin-top: 2px; }

/* Meslek sonuç kartı */
.job-result-card {
    text-align: center;
    padding: 20px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}
.job-result-card.result-success { border-color: var(--success); }
.job-result-card.result-fail { border-color: var(--danger); }
.job-result-card.result-partial { border-color: var(--warning); }
.result-icon { font-size: 36px; margin-bottom: 8px; }
.result-title { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.result-detail { font-size: 13px; color: var(--tg-hint); margin-bottom: 4px; }
.result-reward { font-size: 14px; font-weight: 700; color: var(--gold); margin: 10px 0; }

/* ─── BANKA ─── */
.bank-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.bank-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
}

.bank-card-icon { font-size: 24px; margin-bottom: 4px; }
.bank-card-value { font-size: 18px; font-weight: 800; color: var(--gold); }
.bank-card-label { font-size: 10px; color: var(--tg-hint); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

.bank-actions {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.btn-bank-action {
    flex: 1;
    background: var(--success);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 6px;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.btn-bank-action:active { transform: scale(0.95); }
.btn-bank-action.withdraw { background: var(--warning); color: #1a1a2e; }

/* ─── BÖLGELER ─── */
.territory-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 6px;
    transition: all 0.15s;
}

.territory-card:active { transform: scale(0.98); }

.territory-header { display: flex; justify-content: space-between; align-items: center; }
.territory-name { font-weight: 700; font-size: 15px; }
.territory-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}
.territory-badge.owned { background: var(--gold-soft); color: var(--gold); }
.territory-badge.free { background: var(--accent-soft); color: var(--accent); }
.territory-owner { font-size: 12px; color: var(--gold); margin-top: 4px; }
.territory-info { font-size: 11px; color: var(--tg-hint); margin-top: 2px; }

/* ─── GÖREVLER ─── */
.quest-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 6px;
    transition: all 0.15s;
}

.quest-card.done { border-color: var(--success); }

.quest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.quest-desc { font-weight: 600; font-size: 13px; flex: 1; }

.quest-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}

.quest-badge.complete { background: var(--success-soft); color: var(--success); }
.quest-badge.claimed { background: var(--bg-card); color: var(--tg-hint); }
.quest-badge.active { background: var(--accent-soft); color: var(--accent); }

.quest-progress { font-size: 11px; color: var(--tg-hint); margin-top: 4px; text-align: right; }

.quest-reward {
    font-size: 11px;
    color: var(--gold);
    font-weight: 600;
}

/* ─── YARATIK ─── */
.creature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    text-align: center;
    margin-bottom: 14px;
}

.creature-emoji { font-size: 64px; margin-bottom: 8px; }
.creature-name { font-size: 18px; font-weight: 800; }
.creature-tier { font-size: 11px; color: var(--tg-hint); margin-top: 2px; }

.creature-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.creature-stat {
    text-align: center;
}

.creature-stat-label {
    font-size: 10px;
    color: var(--tg-hint);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.creature-stat-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.creature-stat-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s;
}

.creature-stat-fill.hunger { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.creature-stat-fill.happy { background: linear-gradient(90deg, #ec4899, #f472b6); }
.creature-stat-fill.health { background: linear-gradient(90deg, var(--success), #34d399); }

.creature-stat-val {
    font-size: 11px;
    font-weight: 700;
    margin-top: 2px;
}

.creature-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.creature-action-btn {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px;
    color: var(--tg-text);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    transition: all 0.15s;
}

.creature-action-btn:active { transform: scale(0.95); border-color: var(--accent); }

/* ─── MARKETPLACE / PAZAR ─── */
.listing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.listing-info { flex: 1; }
.listing-name { font-weight: 700; font-size: 14px; }
.listing-seller { font-size: 11px; color: var(--tg-hint); }
.listing-price { color: var(--gold); font-weight: 800; font-size: 15px; }
.listing-qty { font-size: 11px; color: var(--tg-hint); }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ─── UTILITY ─── */
.text-gold { color: var(--gold); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-hint { color: var(--tg-hint); }
.text-center { text-align: center; }
.fw-bold { font-weight: 700; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 14px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 14px; }

/* ─── KUMAR / GAMBLİNG ─── */
.jackpot-banner {
    background: linear-gradient(135deg, #b8860b, #ffd700, #b8860b);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    text-align: center;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.jackpot-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: jackpotShine 2s ease-in-out infinite;
}

@keyframes jackpotShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.jackpot-label {
    font-size: 11px;
    color: rgba(0,0,0,0.5);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.jackpot-amount {
    font-size: 28px;
    font-weight: 900;
    color: #1a1a00;
    text-shadow: 0 1px 3px rgba(255,255,255,0.3);
    position: relative;
}

.kumar-bet-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 14px;
}

.bet-selector {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.bet-btn {
    flex: 1;
    min-width: 50px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 4px;
    color: var(--tg-text);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.bet-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 2px 8px var(--accent-glow);
}

.bet-btn.bet-allin {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border-color: #dc2626;
    color: white;
}

.bet-btn:active { transform: scale(0.93); }

.bet-display {
    text-align: center;
    font-size: 13px;
    color: var(--tg-hint);
}

.bet-display strong { color: var(--gold); font-size: 15px; }

.kumar-games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.kumar-game-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}

.kumar-game-card:active {
    transform: scale(0.93);
    border-color: var(--accent);
}

.kumar-game-icon { font-size: 36px; margin-bottom: 4px; }
.kumar-game-name { font-weight: 700; font-size: 12px; }
.kumar-game-mult { font-size: 10px; color: var(--gold); font-weight: 700; margin-top: 2px; }

.kumar-bet-info {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px;
    margin-bottom: 14px;
    color: var(--gold);
    font-weight: 700;
    font-size: 14px;
}

/* Kumar Result */
.kumar-result {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    margin-bottom: 14px;
    animation: resultPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.kumar-result.win { border-color: var(--gold); }
.kumar-result.win::before { content:''; position:absolute; inset:0; background:var(--gold); opacity:0.05; }
.kumar-result.lose { border-color: var(--danger); }
.kumar-result.lose::before { content:''; position:absolute; inset:0; background:var(--danger); opacity:0.05; }
.kumar-result.push { border-color: var(--accent); }

.kumar-result-icon { font-size: 48px; margin-bottom: 6px; position: relative; }
.kumar-result-detail { font-size: 14px; color: var(--tg-hint); margin-bottom: 6px; position: relative; }
.kumar-result-text { font-size: 18px; font-weight: 800; margin-bottom: 4px; position: relative; }
.kumar-result-amount { font-size: 24px; font-weight: 900; position: relative; }
.kumar-result-tax { font-size: 11px; color: var(--tg-hint); margin-top: 4px; position: relative; }
.kumar-result-balance { font-size: 12px; color: var(--tg-hint); margin-top: 6px; position: relative; }

.kumar-replay {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.kumar-replay .btn-buy { flex: 1; padding: 10px; font-size: 13px; }
.kumar-replay .btn-back { flex: 1; margin-top: 0; }

.jackpot-win-banner {
    background: linear-gradient(135deg, #b8860b, #ffd700);
    color: #1a1a00;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-weight: 900;
    font-size: 16px;
    margin-top: 8px;
    animation: resultPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

/* ─── YAZI TURA ANİMASYON ─── */
.yt-coin-area {
    display: flex;
    justify-content: center;
    padding: 30px 0;
}

.yt-coin {
    font-size: 80px;
    transition: transform 0.3s;
}

.yt-coin.coin-flip {
    animation: coinFlip 0.8s ease-in-out;
}

@keyframes coinFlip {
    0% { transform: rotateY(0deg) scale(1); }
    25% { transform: rotateY(180deg) scale(1.2); }
    50% { transform: rotateY(360deg) scale(1); }
    75% { transform: rotateY(540deg) scale(1.2); }
    100% { transform: rotateY(720deg) scale(1); }
}

.yt-choices {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 14px;
}

.yt-choice-btn {
    flex: 1;
    max-width: 140px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    color: var(--tg-text);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.yt-choice-btn:active:not(:disabled) { transform: scale(0.93); border-color: var(--accent); }
.yt-choice-btn:disabled { opacity: 0.3; }

/* ─── SLOT ANİMASYON ─── */
.slot-machine {
    background: linear-gradient(135deg, #1a0a2e, #2d1b69);
    border: 2px solid #7c6cff;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 14px;
    box-shadow: 0 0 30px rgba(124, 108, 255, 0.2);
}

.slot-display {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.slot-reel {
    width: 70px;
    height: 80px;
    background: var(--bg-primary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    overflow: hidden;
    position: relative;
}

.slot-reel.reel-spinning {
    animation: reelSpin 0.12s linear infinite;
}

.slot-reel.reel-stop {
    animation: reelStop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes reelSpin {
    0% { transform: translateY(0); }
    25% { transform: translateY(-5px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(5px); }
    100% { transform: translateY(0); }
}

@keyframes reelStop {
    0% { transform: translateY(-10px); }
    60% { transform: translateY(3px); }
    100% { transform: translateY(0); }
}

.slot-payouts {
    text-align: center;
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
}

.slot-spin-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 14px;
    font-weight: 900;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: 8px;
    -webkit-tap-highlight-color: transparent;
}

.slot-spin-btn:active:not(:disabled) { transform: scale(0.97); }
.slot-spin-btn:disabled { opacity: 0.4; cursor: default; }

.slot-result-display {
    text-align: center;
    padding: 20px;
    margin-bottom: 14px;
}

.slot-result-reels { font-size: 48px; letter-spacing: 8px; }
.slot-result-mult { font-size: 24px; color: var(--gold); font-weight: 900; margin-top: 6px; }

/* ─── ZAR ANİMASYON ─── */
.zar-area {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
}

.zar-dice {
    font-size: 56px;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
}

.zar-dice.dice-roll {
    animation: diceRoll 0.15s linear infinite;
}

@keyframes diceRoll {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

.zar-info {
    text-align: center;
    color: var(--tg-hint);
    font-size: 13px;
    margin-bottom: 12px;
}

.zar-choices {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.zar-choice-btn {
    flex: 1;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 6px;
    color: var(--tg-text);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.zar-choice-btn:active:not(:disabled) { transform: scale(0.93); border-color: var(--accent); }
.zar-choice-btn:disabled { opacity: 0.3; }
.zar-choice-btn small { display: block; font-size: 10px; color: var(--gold); margin-top: 2px; }
.zar-choice-btn.zar-seven { border-color: rgba(255, 215, 0, 0.3); }

.zar-result-dice { font-size: 28px; font-weight: 800; margin-bottom: 4px; position: relative; }

/* ─── RULET ANİMASYON ─── */
.rulet-wheel-area {
    text-align: center;
    padding: 20px 0;
    position: relative;
}

.rulet-wheel {
    font-size: 80px;
    display: inline-block;
    transition: transform 0.5s;
}

.rulet-wheel.wheel-spin {
    animation: wheelSpin 0.4s linear infinite;
}

@keyframes wheelSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rulet-number {
    font-size: 40px;
    font-weight: 900;
    margin-top: 8px;
}

.rulet-num-kirmizi { color: #ef4444; }
.rulet-num-siyah { color: #9ca3af; }
.rulet-num-yesil { color: #22c55e; }

.rulet-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 14px;
}

.rulet-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px;
    color: var(--tg-text);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.rulet-btn:active:not(:disabled) { transform: scale(0.93); }
.rulet-btn:disabled { opacity: 0.3; }
.rulet-btn.rulet-red { border-color: rgba(239,68,68,0.4); }
.rulet-btn.rulet-black { border-color: rgba(156,163,175,0.4); }
.rulet-btn.rulet-green { grid-column: 1 / -1; border-color: rgba(34,197,94,0.4); background: rgba(34,197,94,0.08); }

.rulet-result-number { font-size: 48px; font-weight: 900; margin-bottom: 6px; position: relative; }

/* ─── BLACKJACK ─── */
.bj-table {
    background: linear-gradient(135deg, #064e3b, #047857);
    border: 2px solid rgba(16, 185, 129, 0.4);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 14px;
}

.bj-dealer, .bj-player { margin: 8px 0; }
.bj-label { font-size: 12px; color: rgba(255,255,255,0.6); font-weight: 700; margin-bottom: 6px; }

.bj-cards {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    min-height: 60px;
}

.bj-card {
    width: 42px;
    height: 58px;
    background: white;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    animation: cardDeal 0.3s ease-out;
    animation-fill-mode: both;
}

.bj-card.card-hidden {
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    color: white;
    font-size: 24px;
}

@keyframes cardDeal {
    from { opacity: 0; transform: translateY(-20px) rotate(-5deg) scale(0.8); }
    to { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}

.card-rank { font-size: 16px; line-height: 1; }
.card-rank.red { color: #dc2626; }
.card-rank.black { color: #1a1a1a; }
.card-suit { font-size: 12px; line-height: 1; }

.bj-value {
    font-size: 14px;
    font-weight: 800;
    color: white;
    margin-top: 4px;
}

.bj-divider {
    height: 1px;
    background: rgba(255,255,255,0.15);
    margin: 6px 0;
}

.bj-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.bj-action-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    color: white;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.bj-action-btn:active:not(:disabled) { transform: scale(0.95); }
.bj-action-btn:disabled { opacity: 0.3; }
.bj-hit { background: var(--accent); }
.bj-stand { background: var(--warning); color: #1a1a2e; }

.bj-final-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 14px;
}

.bj-final-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}

.bj-final-row:last-child { border-bottom: none; }

/* ─── TOMBALA ─── */
.tombala-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--tg-hint);
}

.tombala-payouts {
    font-size: 10px;
    margin-top: 6px;
    color: var(--gold);
    font-weight: 600;
}

.tombala-result {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 14px;
}

.tombala-row {
    margin-bottom: 10px;
    font-size: 14px;
}

.tombala-label {
    display: block;
    font-size: 11px;
    color: var(--tg-hint);
    font-weight: 700;
    margin-bottom: 4px;
}

.tombala-num {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    margin: 2px;
}

.tombala-num.match {
    background: var(--gold);
    color: #1a1a00;
    border-color: var(--gold);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
    animation: tombalaMatch 0.5s ease;
}

@keyframes tombalaMatch {
    0% { transform: scale(0.6); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.tombala-match-count {
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    margin-top: 6px;
    color: var(--gold);
}

/* ─── BORSA ─── */
.borsa-rate-card {
    background: linear-gradient(135deg, #064e3b, #047857);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    margin-bottom: 14px;
}

.borsa-rate-label {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.borsa-rate-value {
    font-size: 22px;
    font-weight: 900;
    color: white;
    margin: 4px 0;
}

.borsa-rate-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.borsa-rate-card.trend-up {
    background: linear-gradient(135deg, #064e3b, #059669);
    border-color: rgba(16, 185, 129, 0.6);
}
.borsa-rate-card.trend-down {
    background: linear-gradient(135deg, #4a1420, #991b1b);
    border-color: rgba(239, 68, 68, 0.5);
}
.borsa-rate-card.trend-stable {
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    border-color: rgba(96, 165, 250, 0.4);
}

#borsa-chart {
    display: block;
    margin: 8px auto 4px;
    border-radius: 6px;
    background: rgba(0,0,0,0.2);
}

/* ─── BANKA GENİŞLETİLMİŞ ─── */
.deposit-options, .loan-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.deposit-option, .loan-option {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
}

.deposit-option-name { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.deposit-option-info { font-size: 11px; color: var(--tg-hint); }

.loan-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.loan-option.locked { opacity: 0.35; }
.loan-option-name { font-weight: 700; font-size: 13px; }
.loan-option-info { font-size: 11px; color: var(--tg-hint); margin-top: 2px; }

/* ─── ENVANTER KULLAN BUTONU ─── */
.inv-usable {
    border-color: var(--accent);
}

.inv-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inv-use-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    background: linear-gradient(135deg, var(--accent), #c084fc);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.inv-use-btn:active { transform: scale(0.95); opacity: 0.85; }

/* ─── HEADER ENERJİ RENK ─── */
.energy-stat.energy-low .val { color: var(--danger) !important; }
.energy-stat.energy-full .val { color: var(--success) !important; }

/* ─── CONFETTİ CANVAS ─── */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    display: none;
}

/* ─── İYİLEŞTİRİLMİŞ ANİMASYONLAR ─── */
.coin-land {
    animation: coinLand 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes coinLand {
    0% { transform: scale(1.3) rotateY(180deg); }
    50% { transform: scale(0.9) rotateY(90deg); }
    100% { transform: scale(1) rotateY(0deg); }
}

.dice-land {
    animation: diceLand 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes diceLand {
    0% { transform: scale(1.2) rotate(10deg); }
    50% { transform: scale(0.9) rotate(-5deg); }
    100% { transform: scale(1) rotate(0); }
}

.wheel-stop {
    animation: wheelStop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wheelStop {
    0% { transform: rotate(720deg); }
    100% { transform: rotate(0deg); }
}

.rulet-num-reveal {
    animation: numReveal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes numReveal {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.3); }
    100% { transform: scale(1); opacity: 1; }
}

/* Slot canvas container */
.slot-display canvas {
    border-radius: var(--radius-md);
    display: block;
    margin: 0 auto;
}

/* ─── MÜLK & BAKIM ─── */
.mulk-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 8px;
    transition: all 0.15s;
}

.mulk-card.mulk-damaged {
    border-color: rgba(255, 92, 108, 0.4);
    background: rgba(255, 92, 108, 0.05);
}

.mulk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.mulk-name { font-weight: 700; font-size: 14px; }
.mulk-rent { color: var(--gold); font-weight: 700; font-size: 13px; }

.mulk-status {
    font-size: 11px;
    color: var(--tg-hint);
    margin-top: 4px;
    font-weight: 600;
}

.mulk-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.mulk-maint-info {
    font-size: 10px;
    color: var(--tg-hint);
    margin-top: 4px;
}

.btn-sm {
    padding: 5px 10px !important;
    font-size: 11px !important;
}

/* ─── NPC ALICI ─── */
.npc-rate-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-bottom: 14px;
    text-align: center;
    font-size: 14px;
}

/* ─── PAZAR ─── */
.market-form {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-top: 14px;
    animation: resultPop 0.3s ease-out;
}

.market-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.market-form-row label {
    color: var(--tg-hint);
    font-weight: 600;
}

.market-input {
    width: 120px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    color: var(--tg-text);
    font-size: 14px;
    font-weight: 700;
    text-align: right;
}

.market-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

/* ─── ÜNVAN ─── */
.title-buy-btns {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.locked-item {
    opacity: 0.35;
}

/* ─── CANVAS RULET ─── */
.rulet-canvas-area {
    text-align: center;
    padding: 10px 0;
    position: relative;
}

.rulet-canvas-area canvas {
    display: block;
    margin: 0 auto;
    border-radius: 50%;
}

.rulet-result-num {
    font-size: 32px;
    font-weight: 900;
    margin-top: 10px;
    min-height: 40px;
}

/* ─── ÇETE / GANG ─── */
.gang-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(124,108,255,0.15), rgba(255,107,107,0.15));
    border: 1px solid rgba(124,108,255,0.3);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 14px;
    cursor: pointer;
}

.gang-summary-link {
    color: var(--accent);
    font-size: 13px;
}

.gang-overview {
    background: linear-gradient(135deg, rgba(124,108,255,0.12), rgba(0,0,0,0.3));
    border: 1px solid rgba(124,108,255,0.25);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
}

.gang-stat-row {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.gang-stat-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--gold);
}

.gang-stat-lbl {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.gang-soldier-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
}

.gang-soldier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.gang-soldier-name {
    font-weight: 700;
    font-size: 15px;
}

.gang-soldier-count {
    font-weight: 800;
    font-size: 16px;
    color: var(--gold);
}

.gang-soldier-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.gang-soldier-actions {
    display: flex;
    gap: 8px;
}

.cooldown-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.warning-box {
    background: rgba(255,159,67,0.15);
    border: 1px solid rgba(255,159,67,0.3);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #ff9f43;
}

/* ─── TERRITORY UPGRADES ─── */
.territory-mine {
    border-color: rgba(124,108,255,0.4) !important;
    background: linear-gradient(135deg, rgba(124,108,255,0.08), rgba(0,0,0,0)) !important;
}

.territory-badge.mine {
    background: linear-gradient(135deg, #7c6cff, #5b4dcc);
    color: white;
}

.territory-defenses {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 6px 0;
}

.def-badge {
    font-size: 11px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 2px 8px;
}

.territory-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.btn-attack {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
}

.btn-defend {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
}

.btn-tax {
    background: linear-gradient(135deg, #f39c12, #e67e22) !important;
}

/* ─── BATTLE RESULT ─── */
.battle-result {
    text-align: center;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 16px;
}

.battle-result.victory {
    background: linear-gradient(135deg, rgba(39,174,96,0.15), rgba(0,0,0,0.2));
    border: 2px solid rgba(39,174,96,0.4);
}

.battle-result.defeat {
    background: linear-gradient(135deg, rgba(231,76,60,0.15), rgba(0,0,0,0.2));
    border: 2px solid rgba(231,76,60,0.4);
}

.battle-result-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.battle-result-text {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 14px;
}

.battle-stats {
    text-align: left;
}

.battle-stat {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 13px;
}

/* ─── CRASH GAME ─── */
.crash-card {
    background: linear-gradient(135deg, #1a2a3a 0%, #0d1b2a 100%) !important;
    border: 1px solid rgba(0, 255, 136, 0.3) !important;
}

.crash-container {
    position: relative;
    text-align: center;
    margin: 12px 0;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 16px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.crash-container canvas {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 8px;
}

.crash-mult-display {
    font-size: 36px;
    font-weight: 900;
    color: #2ecc71;
    margin-top: 8px;
    font-family: 'JetBrains Mono', monospace;
    text-shadow: 0 0 20px rgba(46, 204, 113, 0.4);
    transition: color 0.3s, text-shadow 0.3s;
}

.crash-mult-display.medium {
    color: #f39c12;
    text-shadow: 0 0 25px rgba(243, 156, 18, 0.5);
}

.crash-mult-display.high {
    color: #e74c3c;
    font-size: 42px;
    text-shadow: 0 0 30px rgba(231, 76, 60, 0.6);
    animation: crashPulse 0.5s ease-in-out infinite alternate;
}

.crash-mult-display.crashed {
    color: #e74c3c;
    animation: crashShake 0.4s ease-in-out;
}

.crash-mult-display.cashed {
    color: #2ecc71;
    text-shadow: 0 0 30px rgba(46, 204, 113, 0.7);
}

@keyframes crashPulse {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

@keyframes crashShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

.crash-info {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    margin: 8px 0 12px;
    padding: 8px;
    background: rgba(255, 193, 7, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(255, 193, 7, 0.15);
}

.crash-start-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    transition: transform 0.1s, opacity 0.2s;
}

.crash-start-btn:active {
    transform: scale(0.97);
}

.crash-start-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.crash-cashout-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    animation: cashoutGlow 1s ease-in-out infinite alternate;
    transition: transform 0.1s;
}

.crash-cashout-btn:active {
    transform: scale(0.95);
}

.crash-cashout-btn:disabled {
    animation: none;
    opacity: 0.7;
    cursor: not-allowed;
}

.crash-cashout-btn.crashed {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    animation: none;
}

@keyframes cashoutGlow {
    from { box-shadow: 0 0 10px rgba(243, 156, 18, 0.3); }
    to { box-shadow: 0 0 25px rgba(243, 156, 18, 0.6); }
}

.crash-result {
    text-align: center;
    padding: 24px;
    border-radius: 16px;
    margin: 16px 0;
}

.crash-result.win {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15), rgba(0, 0, 0, 0.2));
    border: 2px solid rgba(46, 204, 113, 0.4);
}

.crash-result.loss {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.15), rgba(0, 0, 0, 0.2));
    border: 2px solid rgba(231, 76, 60, 0.4);
}

.crash-result-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.crash-result-title {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 12px;
}

.crash-result.win .crash-result-title {
    color: #2ecc71;
}

.crash-result.loss .crash-result-title {
    color: #e74c3c;
}

.crash-result-detail {
    font-size: 15px;
    color: var(--text-secondary);
}

.crash-result-net {
    font-size: 18px;
    font-weight: 700;
    margin-top: 8px;
}

.text-success {
    color: #2ecc71;
}

.text-danger {
    color: #e74c3c;
}

/* Ripple effect */
.ripple {
    position: relative;
    overflow: hidden;
}
