
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #0B0D10;
  --panel: #111418;
  --text: #E6E9EF;
  --muted: #9BA3AF;
  --border: #222833;
  --accent: #F5D259;
  --danger: #D34A4A;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --focus: 0 0 0 2px rgba(245, 210, 89, 0.25);
  --neon-glow: 0 0 16px rgba(245, 210, 89, 0.5);
  --neon-glow-subtle: 0 0 6px rgba(245, 210, 89, 0.5), 0 0 20px rgba(245, 210, 89, 0.15);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Mobil touch highlight'ı kaldır */
}

html {
    -webkit-text-size-adjust: 100%; /* iOS font scaling'i önle */
    -ms-text-size-adjust: 100%;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    background: radial-gradient(1200px 600px at 70% -10%, rgba(245, 210, 89, 0.06), transparent 70%), var(--bg);
    background-attachment: fixed;
    color: var(--text);
    font: 12px/1.5 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    overflow-x: hidden; /* Yatay scroll'u önle */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation; /* Touch delay'i azalt */
    max-width: 100vw;
}


html.auth-html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body.auth-page {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.auth-page-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: url('/images/login-bg.png') center center / cover no-repeat;
}

.auth-page-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.78) 35%, rgba(0,0,0,0.85) 100%);
    pointer-events: none;
}

.auth-page .container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.auth-page-tagline {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 16px 12px max(16px, env(safe-area-inset-bottom));
    font-family: 'Oswald', sans-serif;
    font-size: clamp(11px, 2.2vw, 16px);
    font-weight: 500;
    letter-spacing: 0.12em;
    color: rgba(245, 210, 89, 0.95);
    text-shadow: 0 0 20px rgba(0,0,0,0.9), 0 2px 4px rgba(0,0,0,0.8);
    text-align: center;
    pointer-events: none;
    box-sizing: border-box;
}

.auth-container {
    background: rgba(17, 20, 24, 0.92);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: min(450px, calc(100vw - 24px));
    min-width: 0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    box-sizing: border-box;
    overflow-x: hidden;
}

.auth-container form {
    max-width: 100%;
    min-width: 0;
}

.auth-container .btn-primary {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.auth-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

.auth-logo-img {
    display: block;
    height: 72px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    filter: drop-shadow(0 2px 12px rgba(255, 215, 0, 0.25));
}

@media (max-width: 480px) {
    .auth-logo-img {
        height: 56px;
        max-width: 180px;
    }
}

.game-title {
    text-align: center;
    color: var(--accent);
    font-family: 'Oswald', sans-serif;
    font-size: 2.25em;
    margin-bottom: 30px;
    text-shadow: var(--neon-glow-subtle);
    letter-spacing: 3px;
    font-weight: 700;
    text-transform: uppercase;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    min-width: 0;
    width: 100%;
}

.tab-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 8px;
    background: #0E1115;
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    border-radius: 10px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab-btn:hover {
    background: #18202a;
    border-color: var(--accent);
}

.tab-btn.active {
    background: var(--accent);
    color: #131313;
    font-weight: 700;
    box-shadow: var(--neon-glow);
}

/* Raporlar sayfası tab bar – başlıklar tam görünsün, gerekirse yatay kaydırma */
.reports-tab-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    overflow-x: auto;
    padding: 4px 0 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.reports-tab-bar::-webkit-scrollbar {
    height: 6px;
}
.reports-tab-bar .tab-btn {
    flex: 0 0 auto;
    min-width: max-content;
    padding: 12px 16px;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    font-size: 13px;
}
.reports-tab-bar .reports-tab-spacer {
    flex: 1 1 0;
    min-width: 12px;
}
.reports-tab-bar .reports-mark-all-btn {
    flex-shrink: 0;
    padding: 10px 14px;
    font-weight: 700;
}

.form-group-remember {
    display: block;
    width: 100%;
}

.auth-container .form-group-remember .remember-me-label {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0 !important;
    padding: 0;
    font-size: 14px;
    letter-spacing: normal;
    color: var(--text);
    line-height: 1.4;
    text-transform: none !important;
    white-space: nowrap;
    width: auto;
    min-width: max-content;
    max-width: 100%;
}

.auth-container .form-group-remember .remember-me-text {
    display: inline-block !important;
    white-space: nowrap !important;
    writing-mode: horizontal-tb !important;
    flex-shrink: 0;
}

.auth-container .form-group-remember .remember-me-checkbox {
    margin: 0;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    html.auth-html,
    body.auth-page {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    .auth-page .container {
        padding: 10px 12px 72px;
        align-items: flex-start;
        padding-top: max(10px, env(safe-area-inset-top));
        padding-bottom: calc(56px + env(safe-area-inset-bottom));
        max-width: 100vw;
        min-height: 100vh;
    }

    .auth-container {
        padding: 16px 14px;
        margin: 0;
        max-width: calc(100vw - 24px);
    }

    .game-title {
        font-size: 1.5em;
        margin-bottom: 12px;
        letter-spacing: 1px;
    }

    .auth-tabs {
        gap: 6px;
        margin-bottom: 16px;
    }

    .tab-btn {
        padding: 10px 6px;
        font-size: 12px;
    }

    .auth-form .form-group {
        margin-bottom: 14px;
    }

    .auth-page-tagline {
        padding: 10px 12px max(10px, env(safe-area-inset-bottom));
        letter-spacing: 0.06em;
        font-size: 11px;
    }

    .auth-container .form-group-remember .remember-me-label {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .tab-btn {
        font-size: 11px;
        padding: 10px 4px;
    }
}

/* Güvenlik kodu modalı – mobil web */
#crime-math-challenge-modal {
    align-items: flex-start;
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
}
@media (max-width: 480px) {
    #crime-math-challenge-modal {
        padding-left: 10px;
        padding-right: 10px;
    }
    #crime-math-challenge-modal .crime-security-modal-inner {
        margin: auto 0;
        padding: 16px;
        width: 100%;
    }
    #crime-security-code-image-wrap img {
        max-width: 100% !important;
        height: auto !important;
        max-height: 52px !important;
    }
    #crime-math-answer {
        min-height: 44px !important;
        font-size: 18px !important;
    }
    #crime-math-challenge-modal .btn-primary,
    #crime-math-challenge-modal .btn-secondary {
        min-height: 44px !important;
    }
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 6px 0;
    letter-spacing: 0.02em;
}

.auth-form-hint {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.4;
}

.auth-field-hint {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
    line-height: 1.35;
}

.auth-form-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--muted);
    text-align: center;
}

.auth-form-footer-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
.auth-form-footer-link:hover {
    text-decoration: underline;
}

/* Giriş sayfası – mobil uygulama indirme (Çok yakında) */
.app-download-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    position: relative;
}
.app-download-coming-soon {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin: 0 0 16px 0;
    text-transform: uppercase;
}
.app-download-apk-btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(180deg, #e8c547 0%, #c9a227 100%);
    border: 2px solid #d4af37;
    border-radius: 8px;
    color: #1a1a1a;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
    cursor: default;
    opacity: 0.9;
    pointer-events: none;
    margin-bottom: 20px;
}
.app-download-stores {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.app-store-badge-link,
.google-play-badge-link {
    display: inline-block;
    cursor: default;
    pointer-events: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}
.app-store-badge-img,
.google-play-badge-img {
    display: block;
    height: 44px;
    width: auto;
    max-height: 46px;
    object-fit: contain;
    border-radius: 6px;
}
.app-store-badge-img { max-width: 140px; }
.google-play-badge-img { max-width: 155px; }

.forgot-password-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
}
.forgot-password-link:hover {
    text-decoration: underline;
}

.auth-form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.auth-form-buttons .btn-primary,
.auth-form-buttons .btn-secondary {
    flex: 1;
    min-width: 0;
    width: auto;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    min-height: 48px;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.6px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: #0E1115;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--focus);
}

input[type="checkbox"] {
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    flex-shrink: 0;
    margin: 0;
    cursor: pointer;
    accent-color: var(--accent);
    -webkit-appearance: checkbox;
    appearance: checkbox;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    input[type="checkbox"] {
        width: 24px !important;
        min-width: 24px !important;
        height: 24px !important;
        min-height: 24px !important;
    }
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    border: 1px solid #d1b648;
    border-radius: 10px;
    color: #131313;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    box-shadow: 0 0 16px rgba(245, 210, 89, 0.35);
}

.btn-primary:hover {
    background: #fff2b3;
    box-shadow: var(--neon-glow);
}

.btn-primary:active {
    transform: translateY(1px);
}

.error-message, .success-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 10px;
    display: none;
}

.error-message {
    background: rgba(211, 74, 74, 0.16);
    border: 1px solid #3b1d1f;
    color: #ffd7d7;
}

.success-message {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #51cf66;
}

.error-message.show, .success-message.show {
    display: block;
}

/* Aktivasyon kodu modalı (giriş/kayıt doğrulama) */
.activation-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.activation-modal-box {
    background: rgba(17, 20, 24, 0.98);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    position: relative;
}
.activation-modal-box h3 {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.02em;
}
.activation-modal-box .activation-modal-hint {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 20px;
    line-height: 1.4;
}
.activation-modal-box .activation-code-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 22px;
    letter-spacing: 0.35em;
    text-align: center;
    background: #0E1115;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    margin-bottom: 16px;
    box-sizing: border-box;
}
.activation-modal-box .activation-code-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(245, 210, 89, 0.2);
}
.activation-modal-box .activation-code-input::placeholder {
    color: var(--muted);
    letter-spacing: 0.2em;
}
.activation-modal-box .activation-verify-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: #131313;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 20px;
}
.activation-modal-box .activation-verify-btn:hover:not(:disabled) {
    filter: brightness(1.08);
}
.activation-modal-box .activation-verify-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.activation-modal-countdown {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
    min-height: 20px;
}
.activation-modal-box .activation-resend-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}
.activation-modal-box .activation-resend-btn:hover:not(:disabled) {
    background: rgba(245, 210, 89, 0.1);
}
.activation-modal-box .activation-resend-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.activation-modal-box .activation-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.activation-modal-box .activation-modal-close:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.activation-modal-box .activation-modal-error {
    font-size: 13px;
    color: #ff6b6b;
    margin-bottom: 12px;
    display: none;
}
.activation-modal-box .activation-modal-error.show {
    display: block;
}
.activation-modal-box .activation-modal-success {
    font-size: 13px;
    color: #51cf66;
    margin-bottom: 12px;
    display: none;
}
.activation-modal-box .activation-modal-success.show {
    display: block;
}

/* Destek sayfası */
.support-container {
    max-width: 560px;
    margin: 0 auto;
    padding: 20px 0;
}
.support-intro {
    margin-bottom: 24px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.support-intro-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
}
.support-form .form-group {
    margin-bottom: 20px;
}
.support-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}
.support-form .form-group label .required {
    color: #e74c3c;
}
.support-form select,
.support-form textarea {
    width: 100%;
    padding: 12px 14px;
    background: #0E1115;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    box-sizing: border-box;
}
.support-form select:focus,
.support-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(245, 210, 89, 0.15);
}
.support-form textarea {
    resize: vertical;
    min-height: 120px;
}
.support-char-count {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
}
.support-form-actions {
    margin-top: 24px;
}
.support-form-actions .btn-primary {
    padding: 12px 24px;
    min-width: 140px;
}
.support-message-area {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}
.support-message-area.success {
    display: block;
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.4);
    color: #51cf66;
}
.support-message-area.error {
    display: block;
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.35);
    color: #ff6b6b;
}

.defense-message {
    word-wrap: break-word;
    white-space: normal;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}


.dashboard-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 60px;
    overflow-x: hidden;
    max-width: 100vw;
}

.top-status-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #0E1115;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.status-center {
    min-width: 0; /* Flexbox overflow için */
}

.status-resources {
    display: flex;
    gap: 25px;
    align-items: center;
}

/* Üst bar: tema uyumlu chip ve ikon sistemi (sidebar ile aynı dil) */
.topbar-groups {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.topbar-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.topbar-group-economy { gap: 8px; }
.topbar-stat-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 10px;
    min-width: 100px;
    width: 100px;
    height: 36px;
    min-height: 36px;
    background: rgba(20, 24, 30, 0.9);
    border: 1px solid rgba(201, 169, 97, 0.35);
    border-radius: 8px;
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
    box-sizing: border-box;
    flex-shrink: 0;
}
.topbar-stat-chip .topbar-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.topbar-stat-chip .topbar-icon-svg {
    width: 20px;
    height: 20px;
    display: block;
}
.topbar-stat-chip.ammo-status .topbar-stat-icon,
.topbar-stat-chip.ammo-status .topbar-ammo-icon {
    width: 28px !important;
    height: 28px !important;
}
.topbar-stat-chip .topbar-icon-svg img,
.topbar-stat-chip .topbar-ammo-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}
.topbar-stat-chip.ammo-status .topbar-ammo-icon {
    transition: transform 0.2s ease;
}
.topbar-stat-chip.ammo-status:hover .topbar-ammo-icon {
    transform: scale(1.1);
}
/* Touch cihazlarda hover scale devre dışı (stuck state önleme) */
@media (hover: none) {
    .topbar-stat-chip.ammo-status:hover .topbar-ammo-icon {
        transform: none;
    }
}
.topbar-stat-chip .topbar-stat-value {
    white-space: nowrap;
}

/* Header'dan güç ve NAM kaldırıldı */
#top-power-item,
#top-nam-item {
    display: none !important;
}
.topbar-chip-premium {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(201, 169, 97, 0.08) 100%);
    border-color: rgba(255, 215, 0, 0.45);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.15);
}
.topbar-chip-premium .topbar-stat-value {
    color: #E6C35C;
    font-weight: 700;
}
.topbar-btc-symbol {
    color: #E6C35C;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 0 8px rgba(230, 195, 92, 0.5);
}
.online-users-badge.topbar-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 10px;
    min-width: 100px;
    width: 100px;
    height: 36px;
    min-height: 36px;
    box-sizing: border-box;
    flex-shrink: 0;
    background: rgba(20, 24, 30, 0.9);
    border: 1px solid rgba(201, 169, 97, 0.35);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}
.online-users-badge .online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 6px #2ecc71;
    flex-shrink: 0;
}
.online-users-badge .online-text {
    color: rgba(255, 255, 255, 0.85);
}
.topbar-chip-alarm .topbar-stat-value-alarm {
    color: #d32f2f;
    font-weight: 700;
}
.topbar-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    max-width: 320px;
    margin: 0 12px;
    margin-left: auto;
    margin-right: 20px;
    min-width: 0;
}
.topbar-center-inner.topbar-level-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 5px 12px;
    height: 36px;
    min-height: 36px;
    box-sizing: border-box;
    background: rgba(20, 24, 30, 0.9);
    border: 1px solid rgba(201, 169, 97, 0.35);
    border-radius: 8px;
    flex-shrink: 0;
}
.topbar-level-chip .topbar-level-text {
    color: var(--accent);
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}
.topbar-level-chip .topbar-level-sep {
    color: rgba(201, 169, 97, 0.6);
    font-weight: 700;
    font-size: 12px;
}
.topbar-level-chip .topbar-icon-svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.topbar-level-chip .topbar-stat-value {
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}
.topbar-center .tp-container {
    white-space: nowrap;
}
.header-plus-btn {
    background: none !important;
    border: none !important;
    color: #E6C35C !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    padding: 0 2px !important;
    line-height: 1 !important;
    margin-left: 2px;
}
.header-plus-btn:hover {
    opacity: 0.9;
    text-decoration: none;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
}
.status-item.topbar-stat-chip {
    display: inline-flex;
    gap: 6px;
}

.health-status {
    position: relative;
}

.health-tooltip {
    position: absolute;
    top: 115%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 14, 19, 0.95);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 160px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    box-shadow: var(--shadow);
    color: var(--text);
    font-size: 12px;
    z-index: 1000;
}

.health-status:hover .health-tooltip {
    opacity: 1;
}

.health-tooltip-values {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.health-tooltip-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 6px;
}

.health-tooltip-bar-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #e74c3c 0%, #f39c12 50%, #2ecc71 100%);
    transition: width 0.3s ease;
}

.bonus-status {
    position: relative;
}

.attack-bonus-status,
.defense-bonus-status {
    position: relative;
}

.bonus-tooltip {
    position: absolute;
    top: 115%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 14, 19, 0.95);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    min-width: 240px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    box-shadow: var(--shadow);
    color: var(--text);
    font-size: 12px;
    z-index: 1000;
    white-space: nowrap;
}

.attack-bonus-status:hover .bonus-tooltip,
.defense-bonus-status:hover .bonus-tooltip {
    opacity: 1;
}

.bonus-tooltip-header {
    color: var(--accent);
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.bonus-tooltip-section {
    margin-bottom: 8px;
}

.bonus-tooltip-section:last-child {
    margin-bottom: 0;
}

.bonus-tooltip-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.bonus-tooltip-label {
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 4px;
    font-weight: 500;
}

.bonus-tooltip-value {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bonus-tooltip-value > span:first-child {
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
}

.bonus-tooltip-item {
    color: var(--muted);
    font-size: 10px;
    margin-top: 2px;
    font-style: italic;
}

.tp-status,
.np-status,
.ammo-status,
.power-status {
    position: relative;
}

.simple-tooltip {
    position: absolute;
    top: 115%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 14, 19, 0.95);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    box-shadow: var(--shadow);
    color: var(--text);
    font-size: 11px;
    white-space: nowrap;
    z-index: 1000;
}

.tp-status:hover .simple-tooltip,
.np-status:hover .simple-tooltip,
.ammo-status:hover .simple-tooltip,
.power-status:hover .simple-tooltip {
    opacity: 1;
}

.status-icon {
    font-size: 16px;
}

.ammo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.ammo-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 1px 2px rgba(255, 215, 0, 0.5));
    transition: transform 0.2s ease;
}

.ammo-icon:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.8));
}

.game-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: var(--neon-glow-subtle);
}
a.game-logo:hover {
    color: var(--accent);
    text-decoration: none;
    opacity: 0.95;
}

.game-logo-img {
    display: block;
    height: 44px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.game-logo-text {
    white-space: nowrap;
    letter-spacing: 0.08em;
}

.logo-icon {
    font-size: 20px;
}

.online-users-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15) 0%, rgba(39, 174, 96, 0.1) 100%);
    border: 1px solid rgba(46, 204, 113, 0.4);
    border-radius: 20px;
    font-size: 11px;
    color: #2ecc71;
    margin-left: 15px;
}

.online-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.6);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

#online-count {
    font-weight: 700;
    font-size: 12px;
}

.online-text {
    font-size: 11px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    button, a, input, select, textarea {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    /* main-content hariç: üç sütun (sol menü + orta + sağ sohbet) korunur */
    .container, .page-content {
        width: 100%;
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    body {
        font-size: 14px;
    }
    
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    h3 { font-size: 18px; }
    h4 { font-size: 16px; }
    
    .btn-primary, .btn-secondary {
        min-height: 44px; /* iOS touch target minimum */
        padding: 12px 20px;
        font-size: 14px;
    }
    
    input, select, textarea {
        min-height: 44px; /* iOS touch target minimum */
        font-size: 16px; /* iOS zoom'u önlemek için */
        padding: 12px;
    }
    
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    
    .panel, .card {
        padding: 15px;
    }
    
    .flex, .grid {
        gap: 10px;
    }
    
    .online-users-badge {
        padding: 4px 8px;
        margin-left: 10px;
    }
    .online-text {
        display: none;
    }
}

.nav-wrapper {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    left: 0;
    background: #0E1115;
    border-right: 1px solid var(--border);
    padding: 20px;
    padding-bottom: 30px;
    position: fixed;
    height: calc(100vh - 60px);
    max-height: calc(100vh - 60px);
    top: 60px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.nav-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.nav-header h2 {
    color: var(--accent);
    font-size: 1.15em;
    margin-bottom: 10px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: var(--neon-glow-subtle);
}

#user-level-info {
    color: var(--muted);
    font-size: 1em;
}

.user-family-separator {
    margin: 0 2px;
}

.user-family-link {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.05em;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.user-family-link:hover {
    color: #ffd700;
}

.vip-ol-button:hover {
    transform: scale(1.02);
    box-shadow: 0 0 28px rgba(255, 215, 0, 0.7), inset 0 1px 0 rgba(255,255,255,0.4);
    filter: brightness(1.1);
}

.vip-ol-button:active {
    transform: scale(0.98);
}

.nav-menu-container {
    margin-top: 20px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-menu-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    padding-bottom: 20px; /* Alt butonlar için alan */
}

.nav-btn {
    flex-shrink: 0;
}

.nav-btn-wrapper {
    position: relative;
    width: 100%;
}

.nav-btn {
    padding: 12px 15px;
    background: #0E1115;
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border-radius: 10px;
}


.nav-icon {
    font-size: 15px;
    display: inline-block;
    width: 24px;
    text-align: center;
    transition: transform 0.2s;
}

.nav-btn:hover {
    background: #18202a;
    border-color: var(--accent);
    transform: translateX(3px);
}

.nav-btn:hover .nav-icon {
    transform: scale(1.1);
}

.nav-icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nav-icon-svg img {
    display: block;
    object-fit: contain;
}
.nav-btn.active .nav-icon-svg img {
    opacity: 1;
}

/* Vendetta icon pack: sidebar */
.vendetta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    text-align: center;
}
.vendetta-icon img,
.vendetta-icon .vendetta-icon-img {
    width: 42px;
    height: 42px;
    display: block;
    object-fit: contain;
}
.nav-btn.active .vendetta-icon img,
.nav-btn.active .vendetta-icon .vendetta-icon-img {
    opacity: 1;
}

/* Vendetta icon pack: page header */
.page-icon.vendetta-page-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    vertical-align: middle;
}
.page-icon .vendetta-page-icon-img,
.page-icon.vendetta-page-icon img {
    width: 56px;
    height: 56px;
    display: inline-block;
    object-fit: contain;
    vertical-align: middle;
}

.nav-btn.active {
    background: var(--accent);
    color: #131313;
    font-weight: 700;
    border-color: #d1b648;
    box-shadow: var(--neon-glow);
}

.nav-btn.active .nav-icon {
    transform: scale(1.1);
}

.nav-btn.store-btn {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 193, 7, 0.1) 100%);
    border: 2px solid rgba(255, 215, 0, 0.4);
    font-weight: 700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
    position: relative;
}

.nav-btn.store-btn:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 193, 7, 0.2) 100%);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    transform: translateX(3px) scale(1.02);
}

.nav-btn.store-btn.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 193, 7, 0.25) 100%);
    border-color: rgba(255, 215, 0, 0.7);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    color: #ffd700;
}

.nav-btn.store-btn .nav-icon,
.nav-btn.store-btn .vendetta-icon img {
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.5));
}

.nav-btn.store-btn span:not(.nav-icon) {
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.main-content {
    margin-left: 280px;
    margin-right: 332px; /* 320 sohbet + 12 sağ boşluk */
    padding: 30px;
    width: calc(100% - 280px - 332px);
    min-height: calc(100vh - 60px);
    margin-top: 0;
    box-sizing: border-box;
}

/* 481px+ kesin üç sütun: sol menü | orta içerik | sağ sohbet */
@media (min-width: 481px) {
    .main-content {
        margin-left: 280px !important;
        margin-right: 332px !important;
        width: calc(100% - 280px - 332px) !important;
        max-width: none;
    }
    .chat-sidebar.collapsed ~ .main-content {
        margin-right: 0 !important;
        width: calc(100% - 280px) !important;
    }
}

.page {
    display: none;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 200px);
    padding-right: 10px;
}

.page.active {
    display: block;
}

.page h2 {
    color: var(--accent);
    margin-bottom: 30px;
    font-size: 1.4em;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: var(--neon-glow-subtle);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page h2 .page-icon {
    font-size: 1.2em;
    display: inline-block;
    margin-right: 5px;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.5));
}

.page h2::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: var(--accent);
    box-shadow: var(--neon-glow);
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.stat-card {
    background: #0E1115;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.2s;
}

.stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.stat-label {
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.stat-value {
    color: var(--accent);
    font-size: 18px;
    font-weight: 700;
    text-shadow: var(--neon-glow-subtle);
}

.tp-progress-container {
    background: linear-gradient(135deg, rgba(14, 17, 21, 0.95) 0%, rgba(20, 25, 30, 0.95) 100%);
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(245, 210, 89, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.tp-progress-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

.tp-progress-container label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(245, 210, 89, 0.3);
}

.tp-progress-bar {
    width: 100%;
    height: 24px;
    background: rgba(13, 16, 20, 0.8);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(245, 210, 89, 0.2);
    position: relative;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.tp-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.tp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        #f5d259 0%, 
        #ffd700 30%, 
        #ffed4e 60%, 
        #fff2b3 100%);
    box-shadow: 
        0 0 20px rgba(245, 210, 89, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 11px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.tp-progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.tp-info {
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(245, 210, 89, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(245, 210, 89, 0.1);
}

.location-info {
    background: #0E1115;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    color: var(--accent);
}


#page-crime h2 {
    margin-top: 0;
    margin-bottom: 15px;
}

.crime-card {
    background: #0E1115;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    min-height: 0;
    box-sizing: border-box;
}

.crime-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.crime-card h3 {
    color: var(--accent);
    margin-bottom: 12px;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crime-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9em;
    flex: 1;
    min-height: 0;
}

.crime-info-item {
    color: var(--text);
    font-size: 13px;
    min-height: 20px;
    box-sizing: border-box;
}

.crime-info-item strong {
    color: var(--accent);
}

.crime__meta {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

.btn-crime {
    padding: 8px 16px;
    background: var(--accent);
    border: 1px solid #d1b648;
    border-radius: 10px;
    color: #131313;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 16px rgba(245, 210, 89, 0.35);
    min-height: 44px;
    height: 44px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-crime:hover:not(:disabled) {
    background: #fff2b3;
    box-shadow: var(--neon-glow);
}

.btn-crime:active:not(:disabled) {
    transform: translateY(1px);
}

.btn-crime:disabled {
    background: #0E1115;
    cursor: not-allowed;
    color: #ff9800 !important;
    border-color: var(--border);
    box-shadow: none;
}

.btn-crime:focus-visible {
    outline: none;
    box-shadow: var(--focus);
}

.badge {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid var(--border);
    display: inline-block;
}

.badge--danger {
    color: #ffd7d7;
    background: rgba(211, 74, 74, 0.16);
    border-color: #3b1d1f;
}

.badge--cooldown {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}


.messages-section {
    background: #0E1115;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.messages-list {
    margin-bottom: 30px;
}

.message-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

@media (max-width: 768px) {
    .message-tabs {
        gap: 0;
        margin-bottom: 15px;
    }

    .message-tab {
        padding: 12px 16px;
        font-size: 13px;
    }

    .messages-section > div:first-child > div:last-child {
        gap: 8px;
        flex-wrap: wrap;
    }

    .message-form .btn-secondary,
    .message-form .btn-primary {
        min-width: 90px;
        padding: 10px 16px;
        font-size: 14px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }
}

.messages-section > div:first-child > div:last-child button {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.conversation-header button {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.message-tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--muted);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 14px;
}

.message-tab:hover {
    color: var(--text);
    background: rgba(245, 210, 89, 0.05);
}

.message-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: rgba(245, 210, 89, 0.1);
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.conversation-header h3 {
    margin: 0;
}

.conversation-subject {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.conversation-messages {
    max-height: 520px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-right: 2px;
}

.conversation-messages.compact {
    gap: 3px;
}

.conversation-row {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    max-width: 95%;
}

.conversation-row.compact {
    gap: 4px;
    max-width: 100%;
}

.conversation-row.sent {
    flex-direction: row;
    align-self: flex-end;
    max-width: 90%;
}

.conversation-row.compact.sent {
    align-self: flex-end;
    max-width: 100%;
}

.conversation-avatar {
    display: none;
}

.conversation-body {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 5px;
    padding: 6px 8px;
    min-width: 0;
    flex: 1;
    animation: fadeIn 0.2s;
    font-size: 13px;
    box-shadow: none;
}

.conversation-body.compact {
    border-radius: 5px;
    padding: 5px 7px;
}

.conversation-row.sent .conversation-body,
.conversation-row.compact.sent .conversation-body {
    background: linear-gradient(180deg, rgba(245, 210, 89, 0.10), rgba(245, 210, 89, 0.04));
    border-color: rgba(245, 210, 89, 0.35);
}

.conversation-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.conversation-meta.compact {
    gap: 6px;
}

.conversation-username {
    font-weight: 700;
    color: var(--text);
    font-size: 13px;
}

.conversation-time {
    color: var(--muted);
    font-size: 11px;
}

.conversation-subject-inline {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 13px;
}

.conversation-text {
    font-size: 13px;
    line-height: 1.3;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text);
}

.conversation-row:hover .conversation-body {
    border-color: rgba(255,255,255,0.10);
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
}

.conversation-row.sent:hover .conversation-body {
    border-color: rgba(245, 210, 89, 0.5);
    background: linear-gradient(180deg, rgba(245, 210, 89, 0.15), rgba(245, 210, 89, 0.07));
}

.conversation-empty {
    text-align: center;
    color: var(--muted);
    padding: 16px;
}

.message-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #0E1115;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.message-item:hover {
    background: #18202a;
    border-color: var(--accent);
    transform: translateX(4px);
}

.message-item.unread {
    border-left: 4px solid var(--accent);
    background: #18202a;
}

.message-item.selection-mode {
    cursor: pointer;
    user-select: none;
}

.message-item.selection-mode:hover {
    background: rgba(245, 210, 89, 0.05);
}

.message-item.system-message {
    border-left: 4px solid #ff9800;
    background: rgba(255, 152, 0, 0.05);
}

.message-item.system-message:hover {
    background: rgba(255, 152, 0, 0.1);
    border-color: #ff9800;
}

.message-item.system-message .message-from strong {
    color: #ff9800;
}

/* Destek (DESTEK) mesajları – gelen kutusunda belirgin */
.message-item.message-item-support {
    border-left: 4px solid #22c55e;
    background: rgba(34, 197, 94, 0.08);
}

.message-item.message-item-support:hover {
    background: rgba(34, 197, 94, 0.12);
    border-color: #22c55e;
}

.message-item.message-item-support .message-from strong {
    color: #22c55e;
}

/* Destek mesajı detay – cevap kutusu belirgin */
.support-header h3 {
    color: #22c55e;
}
.support-header .support-icon {
    margin-right: 6px;
}
.support-no-reply {
    color: var(--muted);
    font-size: 13px;
}
.support-reply-box {
    background: rgba(34, 197, 94, 0.12) !important;
    border: 1px solid #22c55e !important;
    border-radius: 10px;
    padding: 16px !important;
}
.support-reply-label {
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 10px;
    font-size: 13px;
}
.support-reply-text {
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text);
    line-height: 1.6;
}

.message-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-right: 10px;
    accent-color: var(--accent);
}

.message-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message-from, .message-subject-preview, .message-content-preview {
    color: var(--text);
    line-height: 1.6;
    font-size: 13px;
}

.message-from strong, .message-subject-preview strong, .message-content-preview strong {
    color: var(--accent);
    margin-right: 8px;
}

.message-date {
    color: var(--muted);
    font-size: 11px;
    margin-top: 8px;
    text-align: right;
}

.unread-badge {
    position: relative;
    top: auto;
    right: auto;
    background: var(--accent);
    color: #131313;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    box-shadow: var(--neon-glow);
}

.report-item {
    transition: all 0.2s ease;
}

.report-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateX(4px);
    border-color: var(--accent) !important;
}

.report-item.unread {
    background: rgba(245, 210, 89, 0.05) !important;
}

.message-form {
    background: #0E1115;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
}

.message-form textarea {
    min-height: 150px !important;
    font-size: 14px;
    line-height: 1.5;
    background: #0D1014;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    padding: 12px;
    width: 100%;
    resize: vertical;
}

.message-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--focus);
}

.message-form input {
    background: #0D1014;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    padding: 12px;
    width: 100%;
    margin-bottom: 12px;
}

.message-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--focus);
}

.message-detail-view {
    animation: fadeIn 0.3s;
}

.message-detail-container {
    max-width: 800px;
    margin: 0 auto;
}

.btn-back {
    background: #0E1115;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.2s;
    font-size: 14px;
}

.btn-back:hover {
    background: #18202a;
    border-color: var(--accent);
}

.btn-back:active {
    transform: translateY(1px);
}

.message-detail-card {
    background: #0E1115;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 25px;
}

.message-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.message-detail-from {
    color: var(--accent);
    font-size: 1.1em;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
}

.message-detail-date {
    color: var(--muted);
    font-size: 0.9em;
}

.message-detail-subject {
    color: var(--text);
    font-size: 1em;
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(245, 210, 89, 0.08);
    border-left: 4px solid var(--accent);
    border-radius: 6px;
}

.message-detail-subject strong {
    color: var(--accent);
    margin-right: 10px;
}

.message-detail-body {
    color: var(--text);
    margin-bottom: 30px;
    line-height: 1.8;
}

.message-detail-body strong {
    color: var(--accent);
    display: block;
    margin-bottom: 10px;
    font-size: 1em;
}

.message-body-text {
    padding: 20px;
    background: #0D1014;
    border-radius: 8px;
    border: 1px solid var(--border);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.message-detail-actions {
    display: flex;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.btn-secondary {
    background: #0E1115;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.btn-secondary:hover {
    background: #18202a;
    border-color: var(--accent);
}

.btn-secondary:active {
    transform: translateY(1px);
}

.btn-secondary:focus-visible {
    outline: none;
    box-shadow: var(--focus);
}


.nav-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--accent);
    color: #131313;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.75em;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    box-shadow: var(--neon-glow);
}

.nav-btn {
    position: relative;
}


.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.location-card {
    background: #0E1115;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.inventory-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: 220px;
    padding: 20px 16px;
}

.inventory-card h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.inventory-card p {
    margin: 0;
}

.inventory-card .btn-primary {
    margin-top: auto;
    width: 100%;
}

.inventory-selected-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.05);
    color: var(--bg);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    min-height: 24px;
}

.inventory-selected-badge .badge-icon {
    font-size: 12px;
}

.inventory-selected-badge.active {
    visibility: visible;
    opacity: 1;
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 0 12px rgba(245, 210, 89, 0.4);
}

.inventory-travel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.inventory-travel-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    min-height: 220px;
}

.inventory-travel-card h4,
.inventory-travel-card p {
    text-align: left;
}

.inventory-travel-card-actions {
    margin-top: auto;
    padding-top: 12px;
}

.vip-item-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 4px;
    background: rgba(245, 210, 89, 0.2);
    color: var(--accent);
    border: 1px solid var(--accent);
    vertical-align: middle;
}

.locations-grid.travel-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    justify-content: start;
    max-width: 100%;
}

.locations-grid.travel-grid .location-card.travel-location-card {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    cursor: default;
}

.locations-grid.travel-grid .location-card.travel-location-card:hover {
    background: #18202a;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.locations-grid.travel-grid .location-card.travel-location-card.current {
    border-color: var(--accent);
    background: rgba(245, 210, 89, 0.1);
    box-shadow: 0 0 20px rgba(245, 210, 89, 0.2);
}

.locations-grid.travel-grid .location-card.travel-location-card h4 {
    margin: 0;
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.location-card:hover {
    background: #18202a;
    border-color: var(--accent);
    transform: translateY(-3px);
}

.location-card.factory-clickable {
    transition: all 0.3s ease;
    position: relative;
}

.location-card.factory-clickable:hover {
    background: rgba(245, 210, 89, 0.15);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(245, 210, 89, 0.3);
}

.location-card.factory-clickable:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 210, 89, 0.2);
}

/* Fabrika kartında "Tıkla - Yönet" çağrı metni – belirgin buton benzeri görünüm */
.factory-manage-cta {
    margin: 14px 0 0;
    padding: 10px 16px;
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: #0B0D10;
    background: linear-gradient(135deg, var(--accent) 0%, #d4a83a 100%);
    border: 2px solid rgba(245, 210, 89, 0.9);
    border-radius: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 16px rgba(245, 210, 89, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.location-card.factory-clickable:hover .factory-manage-cta {
    box-shadow: 0 6px 20px rgba(245, 210, 89, 0.5);
    transform: scale(1.03);
}

.location-card.current {
    border-color: var(--accent);
    background: rgba(245, 210, 89, 0.08);
    box-shadow: var(--neon-glow);
}

.btc-package-card {
    padding-top: 36px;
}
.btc-bonus-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--accent) 0%, #d4a83a 100%);
    color: #0B0D10;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 0 14px rgba(245, 210, 89, 0.5), 0 2px 8px rgba(0,0,0,0.3);
    white-space: nowrap;
}

.travel-status {
    background: #0E1115;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}


.jail-status {
    background: #0E1115;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
}

.jail-timer {
    font-size: 3em;
    color: var(--danger);
    margin: 20px 0;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    text-shadow: 0 0 16px rgba(211, 74, 74, 0.5);
}

.jail-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}


.factory-info {
    background: #0E1115;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.factory-stock {
    font-size: 1.5em;
    color: var(--accent);
    margin: 15px 0;
    font-weight: 700;
}

.buy-form {
    background: #0E1115;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
}

.buy-form input {
    width: 100%;
    padding: 12px;
    background: #0D1014;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 16px;
    margin-bottom: 15px;
}

.buy-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--focus);
}

.price-info {
    margin-bottom: 15px;
    color: var(--accent);
}


.profile-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border);
}

.profile-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-tab:hover {
    color: var(--text);
    background: rgba(245, 210, 89, 0.05);
}

.profile-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: rgba(245, 210, 89, 0.08);
}

/* Sıralama sayfası - özel dropdown */
.ranking-dropdown-wrap {
    margin: 20px 0 24px 0;
    max-width: 340px;
}

.ranking-dropdown-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'Oswald', sans-serif;
}

.ranking-dropdown {
    position: relative;
}

.ranking-dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text);
    background: var(--panel);
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    text-align: left;
}

.ranking-dropdown-trigger:hover {
    border-color: rgba(245, 210, 89, 0.4);
    background: rgba(245, 210, 89, 0.04);
}

.ranking-dropdown-trigger:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245, 210, 89, 0.15);
}

.ranking-dropdown-value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-dropdown-arrow {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23c9a961%22 stroke-width=%222.5%22 stroke-linecap=%22round%22%3E%3Cpath d=%22M6 9l6 6 6-6%22/%3E%3C/svg%3E') no-repeat center;
    background-size: contain;
    transition: transform 0.2s;
}

.ranking-dropdown.is-open .ranking-dropdown-arrow {
    transform: rotate(180deg);
}

.ranking-dropdown-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--panel);
    border: 2px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    max-height: 320px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.ranking-dropdown-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.ranking-dropdown-group {
    padding: 8px 0;
}

.ranking-dropdown-group:first-child {
    padding-top: 10px;
}

.ranking-dropdown-group-title {
    padding: 6px 16px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-family: 'Oswald', sans-serif;
    opacity: 0.9;
}

.ranking-dropdown-option {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    color: var(--text);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, color 0.15s;
}

.ranking-dropdown-option:hover {
    background: rgba(245, 210, 89, 0.08);
    color: var(--accent);
}

.ranking-dropdown-option.is-selected {
    background: rgba(245, 210, 89, 0.12);
    color: var(--accent);
    font-weight: 600;
}

.ranking-dropdown-option.is-selected::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--accent);
    vertical-align: middle;
}

.btn-quantity {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 5px;
}

.btn-quantity:hover {
    background: rgba(245, 210, 89, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

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

.quantity-input-group input[type="number"] {
    font-family: 'Inter', sans-serif;
}

.quantity-input-group input[type="number"]::-webkit-inner-spin-button,
.quantity-input-group input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
}

.profile-section {
    background: #0E1115;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.profile-section h3 {
    color: var(--accent);
    margin-bottom: 15px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-item {
    margin-bottom: 10px;
    color: var(--text);
    font-size: 14px;
}

.profile-item strong {
    color: var(--accent);
    display: inline-block;
    width: 150px;
}

.wall-message-form {
    margin-top: 20px;
}

.wall-message-form textarea {
    width: 100%;
    padding: 12px;
    background: #0D1014;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 10px;
}

.wall-message-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--focus);
}

.char-count {
    color: var(--muted);
    font-size: 0.9em;
    text-align: right;
}


.chat-sidebar {
    position: fixed;
    right: 12px; /* Sağ kenardan boşluk, taşma ve kesilme olmasın */
    top: 60px;
    bottom: 12px; /* Alt kenardan da küçük boşluk */
    width: 320px;
    max-width: calc(100vw - 300px);
    box-sizing: border-box;
    background: #0E1115;
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    z-index: 900;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.chat-sidebar.collapsed {
    width: 60px;
    overflow: hidden;
    border-left: 2px solid var(--accent);
    box-shadow: -4px 0 20px rgba(245, 210, 89, 0.2);
}

.chat-sidebar.collapsed .chat-header h3,
.chat-sidebar.collapsed .chat-messages,
.chat-sidebar.collapsed .chat-input-container,
.chat-sidebar.collapsed .chat-tabs,
.chat-sidebar.collapsed .chat-container,
.chat-sidebar.collapsed #chat-general-container,
.chat-sidebar.collapsed #chat-family-container,
.chat-sidebar.collapsed .chat-tab {
    display: none !important;
}

.chat-sidebar.collapsed .chat-toggle {
    display: flex !important;
}

.chat-sidebar.collapsed .chat-header {
    justify-content: center;
    align-items: center;
    padding: 15px 8px;
    background: linear-gradient(180deg, rgba(245, 210, 89, 0.15) 0%, rgba(245, 210, 89, 0.05) 100%);
    border-bottom: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    min-height: 120px;
    flex-direction: column;
    gap: 12px;
    position: relative;
    cursor: pointer;
    height: auto;
}

.chat-sidebar.collapsed .chat-header::after {
    content: 'SOHBET';
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: var(--accent);
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.95;
    transition: all 0.3s ease;
    margin: 8px 0;
}

.chat-sidebar.collapsed .chat-header:hover {
    background: linear-gradient(180deg, rgba(245, 210, 89, 0.2) 0%, rgba(245, 210, 89, 0.1) 100%);
    box-shadow: inset 0 0 20px rgba(245, 210, 89, 0.2);
}

.chat-sidebar.collapsed .chat-header:hover::after {
    opacity: 1;
    color: var(--accent);
    text-shadow: 0 0 12px rgba(245, 210, 89, 0.7);
    transform: scale(1.05);
}

.chat-sidebar.collapsed .chat-toggle {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background: rgba(245, 210, 89, 0.2);
    border: 1.5px solid var(--accent);
    color: var(--accent);
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
    line-height: 1;
}

.chat-sidebar.collapsed .chat-toggle:hover {
    background: rgba(245, 210, 89, 0.3);
    transform: scale(1.15);
    box-shadow: 0 0 12px rgba(245, 210, 89, 0.5);
    border-color: var(--accent);
}

.chat-tabs {
    display: flex;
    gap: 5px;
    padding: 10px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
}

.chat-tab {
    flex: 1;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
}

.chat-tab:hover {
    background: rgba(245, 210, 89, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.chat-tab.active {
    background: rgba(245, 210, 89, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

.chat-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-height: 0; /* Flexbox için önemli */
    height: 100%; /* Tam yükseklik */
    position: relative; /* Input container için referans */
}

#chat-general-container,
#chat-family-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.chat-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111418;
}

.chat-header h3 {
    color: var(--accent);
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}


.bank-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border);
}

.bank-tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bank-tab-btn:hover {
    color: var(--text);
    background: rgba(245, 210, 89, 0.05);
}

.bank-tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: rgba(245, 210, 89, 0.08);
}

.bank-tab-content {
    margin-top: 20px;
}

.bank-section {
    margin-bottom: 30px;
}

/* Para transferi formu – metin alanları hizalı ve düz */
.bank-section .transfer-form .form-group {
    box-sizing: border-box;
    width: 100%;
}
.bank-section .transfer-form .form-group label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    font-style: normal;
    letter-spacing: normal;
}
.bank-section .transfer-form .form-group input {
    display: block;
    box-sizing: border-box;
    text-align: left;
    width: 100%;
    font-style: normal;
}
.bank-section .transfer-form .form-group input::placeholder {
    text-align: left;
}

.chat-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    width: 30px;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(245, 210, 89, 0.1);
    transform: scale(1.05);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 14px 10px 10px; /* Sağda scrollbar için fazla boşluk */
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
    max-height: none;
    scroll-behavior: smooth;
}

.chat-message {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.3;
    max-width: 80%;
    word-wrap: break-word;
}

.chat-message.own {
    align-self: flex-end;
    background: rgba(245, 210, 89, 0.15);
    border: 1px solid rgba(245, 210, 89, 0.3);
    color: var(--accent);
}

.chat-message.other {
    align-self: flex-start;
    background: #18202a;
    border: 1px solid var(--border);
    color: var(--text);
}

.chat-message.system {
    align-self: flex-start;
    background: linear-gradient(135deg, rgba(105, 240, 174, 0.15) 0%, rgba(67, 160, 71, 0.1) 100%);
    border: 1px solid rgba(105, 240, 174, 0.5);
    border-left: 3px solid rgba(105, 240, 174, 0.8);
    padding: 6px 10px;
    margin: 4px 0;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 0 8px rgba(105, 240, 174, 0.15), inset 0 0 5px rgba(105, 240, 174, 0.05);
    position: relative;
    animation: systemMessagePulse 0.5s ease-out;
    text-align: left;
}

@keyframes systemMessagePulse {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.chat-message.system .chat-message-username {
    font-weight: 800;
    font-size: 10px;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-message.system .chat-message-username::before {
    content: '⚡';
    font-size: 12px;
    filter: drop-shadow(0 0 3px currentColor);
}

.chat-message.system .chat-message-text {
    font-weight: 700;
    font-size: 12px;
    line-height: 1.3;
    text-align: left;
}

.chat-message.system .chat-message-time {
    font-size: 10px;
    opacity: 0.8;
    margin-top: 4px;
}

.chat-message-username {
    font-weight: 600;
    font-size: 10px;
    margin-bottom: 2px;
    opacity: 0.9;
}

.chat-message.own .chat-message-username {
    display: none;
}


.chat-message.other .chat-message-username {
    color: var(--muted);
    text-align: left;
}

.chat-message-text {
    color: var(--text);
}

.chat-message.own .chat-message-text {
    color: var(--accent);
}

.chat-message-time {
    font-size: 9px;
    color: var(--muted);
    margin-top: 2px;
}

.chat-input-container {
    padding: 10px 14px 10px 10px; /* Sağda Gönder butonu için boşluk */
    border-top: 1px solid var(--border);
    background: #111418;
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    margin-top: auto;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.chat-input-container input {
    flex: 1;
    min-width: 0; /* Flex item'in küçülmesine izin ver */
    padding: 10px;
    background: #0E1115;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    box-sizing: border-box;
}

.chat-input-container input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--focus);
}

.chat-input-container button {
    padding: 10px 16px;
    background: var(--accent);
    border: 1px solid #d1b648;
    border-radius: 8px;
    color: #131313;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0; /* Butonların küçülmesini önle */
    white-space: nowrap; /* Metin taşmasını önle */
    box-sizing: border-box;
}

.chat-input-container button:hover {
    background: #fff2b3;
    box-shadow: var(--neon-glow);
}

.chat-input-container button:active {
    transform: translateY(1px);
}

.chat-input-container .chat-char-count {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    min-width: 44px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Aile sohbeti: input + karakter sayacı + butonlar (Gönder üstte büyük, sesli katıl altta kısa) */
.chat-family-input-wrap {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex-wrap: nowrap;
    min-height: 88px;
    padding: 10px 14px 12px 10px; /* Sağda butonlar için boşluk */
}
.chat-family-input-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.chat-family-input-wrap .chat-family-input {
    flex: 1 1 0%;
    min-width: 100px;
    max-width: none;
    padding: 10px 14px;
    font-size: 15px;
    line-height: 1.4;
    align-self: stretch;
}
.chat-family-input-wrap .chat-char-count {
    align-self: center;
    flex-shrink: 0;
    min-width: 44px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.chat-family-buttons-column {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    flex-shrink: 0;
    width: 100px;
    min-width: 100px;
}
.chat-family-input-wrap .chat-family-send-btn {
    flex-shrink: 0;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 700;
    min-height: 44px;
}
.chat-family-input-wrap .chat-voice-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    min-height: 34px;
}
/* Katıl butonu: sade, outline tarzı, profesyonel */
.chat-family-input-wrap .chat-voice-group .voice-toggle-btn {
    flex: 1;
    min-width: 0;
    padding: 7px 12px !important;
    height: 34px;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(201, 169, 97, 0.35) !important;
    color: rgba(225, 200, 130, 0.95) !important;
    border-radius: 6px !important;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.chat-family-input-wrap .chat-voice-group .voice-toggle-btn .voice-icon {
    font-size: 13px;
    opacity: 0.95;
}
.chat-family-input-wrap .chat-voice-group .voice-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(201, 169, 97, 0.55) !important;
    color: #e5c882 !important;
    transform: none;
    box-shadow: none;
}
.chat-family-input-wrap .chat-voice-group .voice-toggle-btn.join {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(201, 169, 97, 0.35) !important;
    color: rgba(225, 200, 130, 0.95) !important;
}
.chat-family-input-wrap .chat-voice-group .voice-toggle-btn.active,
.chat-family-input-wrap .chat-voice-group .voice-toggle-btn.leave {
    background: rgba(211, 74, 74, 0.12) !important;
    border-color: rgba(211, 74, 74, 0.5) !important;
    color: #e57373 !important;
}
.chat-family-input-wrap .chat-voice-group .voice-mute-btn {
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 6px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(244, 67, 54, 0.4) !important;
    color: rgba(244, 67, 54, 0.9) !important;
}
.chat-family-input-wrap .chat-voice-group .voice-mute-btn:hover {
    background: rgba(244, 67, 54, 0.15) !important;
    border-color: rgba(244, 67, 54, 0.6) !important;
}

/* Sohbet yasağı uyarı kutusu: okunaklı ve düzgün yerleşim */
.chat-ban-warning {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    margin: 12px 10px 10px;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.18) 0%, rgba(255, 152, 0, 0.08) 100%);
    border: 2px solid rgba(255, 152, 0, 0.5);
    border-radius: 10px;
    color: #ffb74d;
    font-size: 14px;
    line-height: 1.4;
    box-sizing: border-box;
    flex-shrink: 0;
}
.chat-ban-warning .chat-ban-icon {
    font-size: 18px;
    margin-right: 6px;
    vertical-align: middle;
}
.chat-ban-warning #chat-ban-message {
    font-weight: 600;
    display: block;
}
.chat-ban-countdown {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    color: #ffcc80;
}

.voice-toggle-btn {
    padding: 6px 10px !important;
    background: rgba(245, 210, 89, 0.15) !important;
    border: 2px solid var(--accent) !important;
    border-radius: 8px !important;
    color: var(--accent) !important;
    font-size: 12px !important;
    cursor: pointer;
    transition: all 0.2s;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 60px;
    height: 38px;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    font-weight: 700;
    flex-shrink: 0;
    z-index: 10;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    box-sizing: border-box;
    white-space: nowrap;
}

.voice-toggle-btn:hover {
    background: rgba(245, 210, 89, 0.25) !important;
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(245, 210, 89, 0.3);
}

.voice-toggle-btn:active {
    transform: scale(0.95);
}

.voice-toggle-btn.active {
    background: rgba(211, 74, 74, 0.2) !important;
    border-color: #d34a4a !important;
    color: #d34a4a !important;
}

.voice-toggle-btn.active .voice-icon {
    animation: voiceActivePulse 2s ease-in-out infinite;
}

.voice-toggle-btn.join {
    background: rgba(76, 175, 80, 0.2) !important;
    border-color: #4caf50 !important;
    color: #4caf50 !important;
}

.voice-toggle-btn.leave {
    background: rgba(211, 74, 74, 0.2) !important;
    border-color: #d34a4a !important;
    color: #d34a4a !important;
}

.voice-mute-btn {
    padding: 6px 8px !important;
    background: rgba(211, 74, 74, 0.15) !important;
    border: 2px solid var(--danger) !important;
    border-radius: 8px !important;
    color: var(--danger) !important;
    font-size: 14px !important;
    cursor: pointer;
    transition: all 0.2s;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    width: 36px;
    height: 36px;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    font-weight: 700;
    flex-shrink: 0;
    z-index: 10;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    box-sizing: border-box;
    white-space: nowrap;
}

.voice-mute-btn:hover {
    background: rgba(211, 74, 74, 0.25) !important;
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(211, 74, 74, 0.3);
}

.voice-mute-btn:active {
    transform: scale(0.95);
}

.voice-mute-btn.muted {
    background: rgba(158, 158, 158, 0.2) !important;
    border-color: #9e9e9e !important;
    color: #9e9e9e !important;
}

.voice-icon {
    font-size: 16px;
}

.voice-mute-icon {
    font-size: 16px;
}

.voice-participants-list {
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.voice-participants-header {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.voice-participants-content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.voice-participant-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: rgba(245, 210, 89, 0.1);
    border: 1px solid rgba(245, 210, 89, 0.3);
    border-radius: 6px;
    font-size: 12px;
    color: var(--accent);
}

.voice-participant-item.active {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.4);
    color: #4caf50;
}

.voice-participant-item.own {
    background: rgba(76, 175, 80, 0.25);
    border-color: rgba(76, 175, 80, 0.6);
    color: #4caf50;
    font-weight: 600;
}

.voice-participant-icon {
    font-size: 14px;
    animation: voiceActivePulse 2s ease-in-out infinite;
}

.voice-participant-name {
    font-weight: 600;
}

@keyframes voiceActivePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@media (max-width: 768px) {
    .voice-toggle-btn {
        min-width: 60px;
        height: 40px;
        padding: 6px 8px !important;
        font-size: 12px !important;
    }
    
    .voice-icon {
        font-size: 14px;
    }
    
    .voice-label {
        font-size: 11px;
    }
    
    .voice-participants-list {
        padding: 8px;
    }
    
    .voice-participant-item {
        padding: 3px 6px;
        font-size: 11px;
    }
    
    .chat-input-container {
        gap: 8px;
        padding: 10px;
    }
    
    .chat-input-container input {
        padding: 10px 12px;
        font-size: 16px; /* iOS zoom önleme, okunaklılık */
    }
    
    .chat-input-container button {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .chat-family-input-wrap {
        min-height: 82px;
        padding: 8px 10px;
    }
    
    .chat-family-input-wrap .chat-family-input {
        min-width: 80px;
        font-size: 16px;
    }
    
    .chat-family-buttons-column {
        width: 88px;
        min-width: 88px;
    }
    
    .chat-family-input-wrap .chat-family-send-btn {
        min-height: 40px;
        padding: 10px 12px;
        font-size: 14px !important;
    }
    
    .chat-family-input-wrap .chat-voice-group .voice-toggle-btn {
        height: 34px;
    }
    
    .chat-family-input-wrap .chat-voice-group .voice-mute-btn {
        width: 34px;
        min-width: 34px;
        height: 34px;
    }
}

.main-content {
    margin-right: 332px; /* 320 sohbet + 12 sağ boşluk */
}

.chat-sidebar.collapsed ~ .main-content {
    margin-right: 0;
}


/* Bilgilendirme toast – tema: koyu panel + altın vurgu */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 22px;
    background: var(--panel, #111418);
    border: 2px solid var(--accent, #E6C35C);
    border-radius: 10px;
    color: var(--text, #E6E9EF);
    font-weight: 600;
    font-size: 14px;
    display: none;
    z-index: 10001;
    box-shadow: 0 0 20px rgba(230, 195, 92, 0.15), 0 4px 24px rgba(0, 0, 0, 0.4);
}

.notification.show {
    display: block;
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    border-color: rgba(76, 175, 80, 0.9);
    color: #81c784;
    box-shadow: 0 0 16px rgba(76, 175, 80, 0.2), 0 4px 24px rgba(0, 0, 0, 0.4);
}

.notification.error {
    border-color: var(--danger, #ef4444);
    color: #fca5a5;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.2), 0 4px 24px rgba(0, 0, 0, 0.4);
}

.notification.info {
    border-color: var(--accent, #E6C35C);
    color: var(--accent, #E6C35C);
}

.field-error-inline {
    margin-top: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: #ffd7d7;
    background: rgba(211, 74, 74, 0.15);
    border: 1px solid rgba(211, 74, 74, 0.4);
    border-radius: 8px;
}


#search-content input {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    background: #0D1014;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 16px;
}

#search-content input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--focus);
}


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

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.2);
    }
}

.attack-alarm-icon.blinking {
    animation: blink 1s infinite;
    color: #d32f2f;
    filter: drop-shadow(0 0 8px rgba(211, 47, 47, 0.8));
}

.attack-alarm-icon.returning {
    color: #4caf50;
    filter: drop-shadow(0 0 8px rgba(76, 175, 80, 0.8));
    animation: none;
}

.shelter-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px;
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.shelter-status {
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--accent);
}
.shelter-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    justify-items: center;
    align-items: stretch;
    margin-bottom: 10px;
}
.shelter-alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid rgba(255, 193, 7, 0.4);
    background: rgba(255, 193, 7, 0.08);
    color: #f3c623;
    display: none;
}
.shelter-alert.warn {
    border-color: rgba(255, 193, 7, 0.4);
    background: rgba(255, 193, 7, 0.08);
    color: #f3c623;
}
.shelter-alert.error {
    border-color: rgba(244, 67, 54, 0.4);
    background: rgba(244, 67, 54, 0.08);
    color: #ef5350;
}
.shelter-btn {
    min-width: 160px;
    width: 100%;
    min-height: 50px;
    max-height: 50px;
    padding: 10px 16px;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: var(--neon-glow-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.2;
    font-size: 15px;
}
.shelter-btn-enter,
.shelter-btn-leave {
    background: linear-gradient(135deg, var(--accent) 0%, #d9b64f 100%);
    border: 1px solid rgba(245, 210, 89, 0.7);
    color: #131313;
}
.shelter-btn-enter:hover:not(:disabled),
.shelter-btn-leave:hover:not(:disabled) {
    background: linear-gradient(135deg, #f6d878 0%, #f5d259 100%);
}
.shelter-btn-enter:disabled,
.shelter-btn-leave:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.friend-actions {
    display: flex;
    gap: 10px;
    min-width: 250px;
    justify-content: flex-start;
    padding-left: 10px;
    align-items: center;
}

.friend-action-btn {
    height: 40px;
    min-width: 120px;
    padding: 0 16px;
    font-size: 13px;
    flex: 0 0 120px;
    border-radius: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.friend-action-accept {
    background: linear-gradient(135deg, rgba(245, 210, 89, 0.14) 0%, rgba(245, 210, 89, 0.08) 100%);
    color: #f5d259;
    border-color: rgba(245, 210, 89, 0.7);
    box-shadow: 0 6px 14px rgba(245, 210, 89, 0.18);
}

.friend-action-reject {
    background: linear-gradient(135deg, rgba(255, 77, 79, 0.12) 0%, rgba(179, 38, 30, 0.1) 100%);
    color: #ff6b6b;
    border-color: rgba(255, 77, 79, 0.6);
    box-shadow: 0 6px 14px rgba(255, 77, 79, 0.15);
}

.friend-action-accept:hover {
    background: linear-gradient(135deg, rgba(245, 210, 89, 0.2) 0%, rgba(245, 210, 89, 0.12) 100%);
    border-color: rgba(245, 210, 89, 0.9);
    box-shadow: 0 8px 16px rgba(245, 210, 89, 0.25);
}

.friend-action-reject:hover {
    background: linear-gradient(135deg, rgba(255, 77, 79, 0.18) 0%, rgba(179, 38, 30, 0.14) 100%);
    border-color: rgba(255, 77, 79, 0.85);
    box-shadow: 0 8px 16px rgba(255, 77, 79, 0.22);
}
.shelter-info {
    margin-top: 8px;
    font-size: 13px;
    color: #ccc;
    line-height: 1.5;
}

.battle-alerts-section {
    margin-bottom: 30px;
}

.battle-alerts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.neon {
    text-shadow: var(--neon-glow-subtle);
}


.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002; /* Header'dan ve menüden yüksek */
    position: relative;
}

.mobile-menu-toggle .notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f44336;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0E1115;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 1003;
    min-width: 18px;
    padding: 0 2px;
}

.mobile-menu-toggle .notification-badge.hidden {
    display: none;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998; /* Menüden (1001) ve header'dan (1000) düşük */
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Varsayılan olarak tıklamaları engelleme */
}

.mobile-menu-overlay.active {
    pointer-events: auto; /* Aktifken tıklamaları al */
}

.mobile-menu-overlay.active {
    opacity: 1;
}

/* Sadece dar ekranlarda (≤480px) menü overlay; sayfa tam genişlik */
@media (max-width: 480px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-wrapper {
        position: fixed;
        left: -100%;
        top: 0;
        width: 280px;
        max-width: 280px;
        height: 100vh;
        max-height: 100vh;
        background: #0E1115;
        border-right: 1px solid var(--border);
        padding: 20px;
        padding-top: 70px;
        padding-bottom: 80px;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
        z-index: 1001;
        transition: left 0.3s ease;
        box-sizing: border-box;
        pointer-events: auto;
        display: flex !important;
        flex-direction: column;
    }

    .nav-wrapper.mobile-open {
        left: 0;
    }

    /* Mobil sidebar: ikonları küçült, dokunma alanı 44px */
    .nav-wrapper .vendetta-icon,
    .nav-wrapper .nav-btn .vendetta-icon {
        width: 44px !important;
        min-width: 44px;
    }
    .nav-wrapper .vendetta-icon img,
    .nav-wrapper .vendetta-icon .vendetta-icon-img {
        width: 32px !important;
        height: 32px !important;
        object-fit: contain;
    }
    .nav-wrapper .nav-btn {
        min-height: 44px;
        padding: 10px 14px;
    }

    .mobile-menu-overlay {
        display: block;
    }

    .main-content {
        margin-left: 0 !important;
        margin-top: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px !important;
        padding-top: 80px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .main-content .page {
        overflow-x: hidden;
        max-width: 100%;
    }

    /* Sohbet dar ekranda tam ekran overlay */
    .chat-sidebar {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 1003 !important;
        transition: right 0.3s ease !important;
        background: var(--bg) !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .chat-sidebar.mobile-open {
        right: 0 !important;
    }
    .chat-sidebar.collapsed {
        right: -100% !important;
    }
    .mobile-chat-back {
        display: flex !important;
    }
    .chat-toggle {
        display: none !important;
    }
}

/* 768px ve altında diğer mobil stiller; menü solda sayfalar ortada (481px+) */
@media (max-width: 768px) {
    .page {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 12px 20px !important;
        margin: 0 !important;
        margin-top: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
        min-width: 0;
    }

    .page h2 {
        font-size: 18px !important;
        margin-bottom: 15px !important;
        margin-top: 0 !important;
        padding: 0 !important;
        padding-top: 10px !important;
        flex-wrap: wrap !important;
        min-width: 0 !important;
    }

    /* Sayfa başlığı ikonu mobilde küçült */
    .page-icon .vendetta-page-icon-img,
    .page-icon.vendetta-page-icon img {
        width: 40px !important;
        height: 40px !important;
    }

    .profile-tabs {
        margin-top: 10px !important;
        padding-top: 10px !important;
        position: relative !important;
        z-index: 1 !important;
    }

    #crime-content,
    #ranking-content,
    #family-content,
    #reports-content,
    #smuggling-content,
    #shop-content,
    #search-content,
    #profile-content,
    #info-content,
    #settings-content,
    #friends-content,
    #jail-content,
    #messages-content,
    #travel-content,
    #factory-content,
    #casino-content,
    #bank-content,
    #store-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px !important;
        box-sizing: border-box !important;
    }

    .profile-section {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .top-status-bar {
        position: fixed !important;
        z-index: 1000;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        min-width: 0;
        max-width: 100%;
    }
    .stat-card {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .locations-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-container {
        padding-top: 0 !important;
    }

    .top-status-bar {
        flex-direction: column;
        height: auto;
        padding: 10px;
        min-height: 60px;
        max-height: 120px; /* Maksimum yükseklik sınırı */
        overflow-y: auto; /* İçerik taşarsa scroll */
    }

    .status-resources {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .profile-dropdown {
        left: 0;
        top: calc(100% + 5px);
        min-width: 100%;
    }

    .profile-dropdown::before,
    .profile-dropdown::after {
        left: 20px;
        top: -8px;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid var(--border);
        border-top: none;
    }

    .profile-dropdown::after {
        top: -7px;
        border-bottom: 8px solid #0E1115;
    }

    /* Üç sütun korunur: sol menü 280px, orta içerik, sağ sohbet 320px */
    .family-info-container {
        padding: 10px;
    }

    .profile-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        flex-wrap: nowrap !important;
        padding-bottom: 5px;
    }

    .profile-tabs::-webkit-scrollbar {
        height: 4px;
    }

    .profile-tabs::-webkit-scrollbar-thumb {
        background: var(--accent);
        border-radius: 2px;
    }

    .profile-tab {
        min-width: auto;
        padding: 10px 14px !important;
        font-size: 13px !important;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .family-members-table {
        display: block;
        width: 100%;
    }

    .family-members-table thead {
        display: none;
    }

    .family-members-table tbody {
        display: block;
        width: 100%;
    }

    .family-members-table tr {
        display: block;
        width: 100%;
        margin-bottom: 15px;
        background: var(--panel) !important;
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 15px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .family-members-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0 !important;
        text-align: left !important;
        border: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    .family-members-table td:last-child {
        border-bottom: none !important;
    }

    .family-members-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: var(--accent);
        margin-right: 10px;
        min-width: 100px;
    }

    .family-treasury-section {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .family-treasury-section > div {
        width: 100% !important;
        max-width: 100% !important;
    }

    .family-treasury-section > div:first-child {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .family-treasury-section > div:first-child p {
        font-size: 20px !important;
        margin: 0 !important;
    }

    .family-donate-form {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .family-donate-form input,
    .family-donate-form button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px !important;
        font-size: 16px !important;
        min-height: 48px; /* Dokunma için minimum yükseklik */
    }

    #donate-amount-input,
    #donate-ammunition-input,
    #withdraw-amount-input,
    #withdraw-ammunition-input,
    #family-name-input,
    #family-search-input,
    #family-search-tab-input {
        max-width: 100% !important;
        width: 100% !important;
    }

    .locations-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .location-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px !important;
    }

    .form-group {
        width: 100% !important;
        max-width: 100% !important;
    }

    .form-group input,
    .form-group select,
    .form-group button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px !important;
        font-size: 16px !important;
        min-height: 48px;
    }

    .family-search-results .location-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 15px 0 !important;
    }

    .profile-section {
        padding: 15px !important;
    }

    .profile-section h3,
    .profile-section h4 {
        font-size: 18px !important;
        margin-bottom: 15px !important;
    }

    .profile-item {
        font-size: 14px !important;
        padding: 8px 0 !important;
    }

    .btn-primary,
    .btn-secondary {
        padding: 14px 20px !important;
        font-size: 15px !important;
        min-height: 48px;
        width: 100%;
        max-width: 100%;
    }

    .family-members-table-wrapper {
        overflow-x: visible !important;
    }

    .family-members-table td[data-label] {
        flex-wrap: wrap;
    }

    .family-members-table td[data-label]::before {
        flex-shrink: 0;
        width: auto;
    }

    .family-members-table td button {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 5px;
    }

    table,
    table[style],
    .family-members-table,
    table.custom-table {
        display: block !important;
        width: 100% !important;
        overflow-x: visible !important;
        -webkit-overflow-scrolling: touch;
    }

    table thead,
    table thead[style],
    .family-members-table thead {
        display: none !important;
    }

    table tbody,
    table tbody[style],
    .family-members-table tbody {
        display: block !important;
        width: 100% !important;
    }

    table tr,
    table tr[style],
    .family-members-table tr {
        display: block !important;
        width: 100% !important;
        margin-bottom: 15px !important;
        background: var(--panel) !important;
        border: 1px solid var(--border) !important;
        border-radius: 8px !important;
        padding: 15px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    }

    table td,
    table td[style],
    .family-members-table td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 0 !important;
        text-align: left !important;
        border: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        word-break: break-word;
    }

    table td:last-child,
    .family-members-table td:last-child {
        border-bottom: none !important;
    }

    table td[data-label]::before,
    .family-members-table td[data-label]::before {
        content: attr(data-label) ": " !important;
        font-weight: bold !important;
        color: var(--accent) !important;
        margin-right: 10px !important;
        min-width: 100px !important;
        flex-shrink: 0 !important;
    }

    table td:not([data-label])::before {
        content: attr(data-th) ": " !important;
        font-weight: bold !important;
        color: var(--accent) !important;
        margin-right: 10px !important;
        min-width: 100px !important;
        flex-shrink: 0 !important;
    }

    .table-wrapper,
    div[style*="overflow-x"] {
        overflow-x: visible !important;
    }

    #crimes-list,
    #simple-crimes-list,
    #major-crimes-list {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .crime-card {
        width: 100% !important;
        max-width: 100% !important;
    }

    .ranking-table {
        display: block !important;
    }

    .ranking-header {
        display: none !important;
    }

    .ranking-row {
        display: block !important;
        background: var(--panel) !important;
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 15px !important;
        margin-bottom: 15px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .ranking-row > div {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    .ranking-row > div:last-child {
        border-bottom: none !important;
    }

    /* Sıralama dropdown - mobilde tam genişlik, dokunmatik dostu */
    .ranking-dropdown-wrap {
        max-width: 100%;
    }
    .ranking-dropdown-trigger {
        min-height: 48px;
        font-size: 15px;
    }
    .ranking-dropdown-panel {
        max-height: 70vh;
    }

    .ranking-row > div[data-label]::before {
        content: attr(data-label) ": " !important;
        font-weight: bold !important;
        color: var(--accent) !important;
        margin-right: 10px !important;
        min-width: 100px !important;
        flex-shrink: 0 !important;
    }
}

.playing-card {
    width: 80px;
    height: 112px;
    background: #ffffff;
    border: 2px solid #1a1a1a;
    border-radius: 8px;
    position: relative;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6px;
    margin: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Arial', sans-serif;
}

.playing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3);
}

.playing-card.red {
    color: #d32f2f;
}

.playing-card.black {
    color: #1a1a1a;
}

.card-corner {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: bold;
    line-height: 1;
    position: absolute;
    width: 20px;
}

.card-corner.top-left {
    top: 4px;
    left: 4px;
}

.card-corner.bottom-right {
    bottom: 4px;
    right: 4px;
    transform: rotate(180deg);
}

.card-rank {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 2px;
    white-space: nowrap;
    width: 100%;
    text-align: center;
}

.card-suit {
    font-size: 14px;
    white-space: nowrap;
    width: 100%;
    text-align: center;
}

.card-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-suit-large {
    font-size: 36px;
    font-weight: normal;
}

.card-back {
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.1) 10px, rgba(255,255,255,0.1) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255,255,255,0.1) 10px, rgba(255,255,255,0.1) 20px);
    border: 2px solid #1a1a1a;
    position: relative;
}

.card-back::before {
    content: '🂠';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    opacity: 0.3;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
    min-height: 130px;
    padding: 10px;
}

.custom-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    overflow-y: auto;
    padding: 20px;
}

.custom-confirm-box {
    background: var(--panel);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 30px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 0 30px rgba(245, 210, 89, 0.3), 0 10px 40px rgba(0, 0, 0, 0.5);
    margin: auto;
    position: relative;
}

.crack-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    overflow: hidden;
}

.crack-overlay.active {
    opacity: 1;
    animation: crackEffect 3s ease-out forwards;
    animation-iteration-count: 1 !important;
    animation-fill-mode: forwards !important;
}

.crack-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 50% 50%, transparent 0%, transparent 20%, rgba(255, 255, 255, 0.9) 20.5%, rgba(255, 255, 255, 0.9) 21%, transparent 21.5%),
        radial-gradient(circle at 50% 50%, transparent 0%, transparent 25%, rgba(255, 255, 255, 0.8) 25.5%, rgba(255, 255, 255, 0.8) 26%, transparent 26.5%),
        radial-gradient(circle at 50% 50%, transparent 0%, transparent 30%, rgba(255, 255, 255, 0.7) 30.5%, rgba(255, 255, 255, 0.7) 31%, transparent 31.5%),
        linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.9) 48.5%, rgba(255, 255, 255, 0.9) 49%, transparent 49.5%, transparent 50.5%, rgba(255, 255, 255, 0.8) 51%, rgba(255, 255, 255, 0.8) 51.5%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(255, 255, 255, 0.9) 48.5%, rgba(255, 255, 255, 0.9) 49%, transparent 49.5%, transparent 50.5%, rgba(255, 255, 255, 0.8) 51%, rgba(255, 255, 255, 0.8) 51.5%, transparent 52%),
        linear-gradient(30deg, transparent 47%, rgba(255, 255, 255, 0.8) 47.5%, rgba(255, 255, 255, 0.8) 48%, transparent 48.5%, transparent 51.5%, rgba(255, 255, 255, 0.7) 52%, rgba(255, 255, 255, 0.7) 52.5%, transparent 53%),
        linear-gradient(-30deg, transparent 47%, rgba(255, 255, 255, 0.8) 47.5%, rgba(255, 255, 255, 0.8) 48%, transparent 48.5%, transparent 51.5%, rgba(255, 255, 255, 0.7) 52%, rgba(255, 255, 255, 0.7) 52.5%, transparent 53%),
        linear-gradient(60deg, transparent 49%, rgba(255, 255, 255, 0.7) 49.5%, rgba(255, 255, 255, 0.7) 50%, transparent 50.5%),
        linear-gradient(-60deg, transparent 49%, rgba(255, 255, 255, 0.7) 49.5%, rgba(255, 255, 255, 0.7) 50%, transparent 50.5%),
        linear-gradient(15deg, transparent 48.5%, rgba(255, 255, 255, 0.6) 49%, rgba(255, 255, 255, 0.6) 49.5%, transparent 50%, transparent 50.5%, rgba(255, 255, 255, 0.5) 51%, rgba(255, 255, 255, 0.5) 51.5%, transparent 52%),
        linear-gradient(-15deg, transparent 48.5%, rgba(255, 255, 255, 0.6) 49%, rgba(255, 255, 255, 0.6) 49.5%, transparent 50%, transparent 50.5%, rgba(255, 255, 255, 0.5) 51%, rgba(255, 255, 255, 0.5) 51.5%, transparent 52%),
        linear-gradient(75deg, transparent 49.5%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.5) 50.5%, transparent 51%),
        linear-gradient(-75deg, transparent 49.5%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.5) 50.5%, transparent 51%);
    background-size: 
        100% 100%,
        100% 100%,
        100% 100%,
        400px 400px,
        400px 400px,
        350px 350px,
        350px 350px,
        300px 300px,
        300px 300px,
        280px 280px,
        280px 280px,
        250px 250px,
        250px 250px;
    background-position: 
        center,
        center,
        center,
        50% 50%,
        50% 50%,
        50% 50%,
        50% 50%,
        50% 50%,
        50% 50%,
        50% 50%,
        50% 50%,
        50% 50%,
        50% 50%;
    opacity: 0;
    filter: blur(0.3px);
    transform-origin: center center;
}

.crack-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(0, 0, 0, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(0, 0, 0, 0.08) 0%, transparent 40%);
    opacity: 0;
    mix-blend-mode: multiply;
}

.crack-overlay.active::before {
    animation: crackExpand 1.5s ease-out forwards;
}

.crack-overlay.active::after {
    animation: crackShadows 2s ease-out 0.5s forwards;
}

@keyframes crackEffect {
    0% {
        background: rgba(0, 0, 0, 0);
        transform: scale(1) rotate(0deg);
        filter: brightness(1) contrast(1);
    }
    5% {
        background: rgba(0, 0, 0, 0.05);
        transform: scale(1.002) rotate(0.2deg);
        filter: brightness(0.95) contrast(1.1);
    }
    10% {
        background: rgba(0, 0, 0, 0.08);
        transform: scale(1.003) rotate(-0.2deg);
        filter: brightness(0.9) contrast(1.15);
    }
    20% {
        background: rgba(0, 0, 0, 0.1);
        transform: scale(1.002) rotate(0.15deg);
        filter: brightness(0.88) contrast(1.2);
    }
    40% {
        background: rgba(0, 0, 0, 0.12);
        transform: scale(1.001) rotate(-0.1deg);
        filter: brightness(0.85) contrast(1.25);
    }
    60% {
        background: rgba(0, 0, 0, 0.1);
        transform: scale(1.001) rotate(0.08deg);
        filter: brightness(0.88) contrast(1.2);
    }
    80% {
        background: rgba(0, 0, 0, 0.06);
        transform: scale(1.0005) rotate(-0.05deg);
        filter: brightness(0.92) contrast(1.1);
    }
    100% {
        background: rgba(0, 0, 0, 0);
        transform: scale(1) rotate(0deg);
        filter: brightness(1) contrast(1);
    }
}

@keyframes crackExpand {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(0deg);
        filter: blur(2px);
    }
    30% {
        opacity: 0.6;
        transform: scale(0.6) rotate(5deg);
        filter: blur(1px);
    }
    60% {
        opacity: 0.9;
        transform: scale(0.9) rotate(-3deg);
        filter: blur(0.5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0.3px);
    }
}

@keyframes crackShadows {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 0.8;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px) rotate(-0.5deg);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px) rotate(0.5deg);
    }
}

@keyframes btcPulse {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
    50% {
        opacity: 0.9;
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.4);
    }
}


.mobile-chat-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent) 0%, #e6c200 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1002;
    box-shadow: 0 4px 15px rgba(245, 210, 89, 0.4);
    font-size: 24px;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mobile-chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(245, 210, 89, 0.6);
}

.mobile-chat-toggle .chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #d32f2f;
    color: white;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

@media (max-width: 768px) {
    #math-challenge-popup {
        padding: 15px !important;
        max-width: 90% !important;
        width: 90% !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
    
    #math-challenge-popup h3 {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }
    
    #math-challenge-popup p {
        font-size: 20px !important;
        margin-bottom: 15px !important;
    }
    
    #math-answer {
        width: 100px !important;
        padding: 8px !important;
        font-size: 16px !important;
    }
    
    #math-submit,
    #math-cancel {
        padding: 8px 20px !important;
        font-size: 13px !important;
        min-width: 90px !important;
        touch-action: manipulation !important;
    }
    
    #math-error {
        font-size: 11px !important;
        margin-top: 12px !important;
    }
    
    button, .btn-primary, .btn-secondary, .btn-crime {
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(245, 210, 89, 0.3) !important;
        min-height: 44px !important; /* iOS için minimum touch target */
    }
    
    input:not([type="checkbox"]):not([type="radio"]), textarea, select {
        font-size: 16px !important; /* iOS zoom'u önlemek için */
        -webkit-appearance: none !important;
        appearance: none !important;
        border-radius: 8px !important;
    }
    
    [style*="position: fixed"][style*="z-index"] {
        padding: 10px !important;
    }
    
    #payment-result-modal-overlay,
    .payment-result-modal-overlay {
        z-index: 99999 !important;
        padding: 20px !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        -webkit-overflow-scrolling: touch;
        overflow-y: auto !important;
    }
    .payment-result-modal-box {
        margin: auto !important;
        max-height: calc(100dvh - 40px);
        overflow-y: auto;
    }
    #payment-result-ok-btn {
        min-height: 48px !important;
        -webkit-tap-highlight-color: transparent;
    }
    
    .crime-card {
        min-width: 100% !important;
        max-width: 100% !important;
    }
    
    #crimes-list {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .crime-tabs {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    
    .crime-tab {
        flex: 1 1 auto !important;
        min-width: calc(33.333% - 6px) !important;
        padding: 10px 8px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 768px) {
    html {
        overflow-x: hidden;
        max-width: 100vw;
    }
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    .dashboard-container {
        overflow-x: hidden;
        max-width: 100vw;
        width: 100%;
    }
    .main-content {
        overflow-x: hidden;
        max-width: 100%;
        min-width: 0;
    }
    .main-content .page {
        overflow-x: hidden;
        min-width: 0;
        max-width: 100%;
    }
    .page h2 {
        flex-wrap: wrap;
        min-width: 0;
        gap: 8px;
        word-break: break-word;
    }
    .page h2 .page-icon,
    .page h2 .vendetta-page-icon {
        flex-shrink: 0;
    }
    .page h2::before {
        flex-shrink: 0;
    }
    .mobile-chat-toggle {
        display: flex;
    }

    .top-status-bar {
        flex-direction: row !important;
        flex-wrap: wrap;
        height: auto !important;
        min-height: 50px !important;
        max-height: 88px !important;
        padding: 8px 10px !important;
        gap: 5px;
        justify-content: space-between;
        align-items: center;
        overflow-x: hidden !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100vw !important;
        width: 100vw;
        box-sizing: border-box;
        left: 0;
        right: 0;
    }

    .game-logo {
        order: 1;
        flex: 0 0 auto;
        min-width: 0;
        max-width: 90px;
    }

    .game-logo .game-logo-img {
        height: 38px;
        max-width: 80px;
        object-fit: contain;
    }
    .game-logo-text {
        display: none;
    }

    .online-users-counter {
        display: none; /* Mobilde çevrimiçi sayacı gizle */
    }

    .online-users-badge.topbar-chip {
        min-width: 72px !important;
        width: 72px !important;
        height: 32px !important;
        min-height: 32px !important;
        padding: 4px 6px !important;
    }

    .status-resources {
        order: 2;
        flex: 1 1 auto;
        min-width: 0;
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 6px !important;
        padding: 0 !important;
        max-width: calc(100vw - 120px);
    }

    .status-resources .status-item,
    .status-resources .topbar-stat-chip {
        padding: 4px 6px !important;
        font-size: 11px !important;
        min-width: 72px !important;
        width: 72px !important;
        height: 32px !important;
        min-height: 32px !important;
    }

    .status-resources .status-item .status-icon,
    .status-resources .topbar-stat-chip .topbar-icon-svg {
        font-size: 14px !important;
        margin-right: 3px !important;
    }
    .status-resources .topbar-stat-chip .topbar-icon-svg {
        width: 18px !important;
        height: 18px !important;
    }
    .status-resources .topbar-stat-chip.ammo-status .topbar-stat-icon,
    .status-resources .topbar-stat-chip.ammo-status .topbar-ammo-icon {
        width: 24px !important;
        height: 24px !important;
    }
    #top-ammo-item {
        min-height: 36px;
        min-width: 36px;
    }

    .status-resources .bonus-tooltip,
    .status-resources .health-tooltip {
        display: none !important;
    }

    .status-center {
        display: none !important;
    }

    .status-user {
        order: 3;
        flex: 0 0 auto;
    }

    .status-user .user-info span {
        display: none; /* Kullanıcı adını gizle */
    }

    .status-user .user-avatar {
        width: 32px !important;
        height: 32px !important;
    }

    /* 768px'te üç sütun korunur; chat/sayfa overlay sadece 480px altında */

    .attack-bonus-status,
    .defense-bonus-status {
        display: none !important;
    }

    #top-factory-defense-item {
        display: none !important;
    }

    /* Siren - mobilde dokunmatik hedef ve görünürlük */
    #attack-alarm-item {
        min-height: 44px !important;
        min-width: 44px !important;
        padding: 6px 10px !important;
        border-radius: 8px;
        flex-shrink: 0;
    }
    #attack-alarm-count {
        font-size: 12px !important;
    }

    /* Savaş bildirimleri sayfası - mobil */
    #battle-alerts-content {
        padding: 12px 10px 24px !important;
    }
    .battle-alerts-section {
        margin-bottom: 24px;
    }
    .battle-alerts-section h3 {
        font-size: 15px !important;
        flex-wrap: wrap;
        gap: 6px !important;
    }
    .battle-alert-item {
        padding: 12px !important;
        border-radius: 10px;
    }
    .battle-alert-item > div > div {
        min-width: 0;
    }
    .battle-alert-item .battle-countdown {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    .dashboard-container {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    .main-content .page {
        overflow-x: hidden !important;
        min-width: 0 !important;
    }
    .page h2 {
        flex-wrap: wrap !important;
        min-width: 0 !important;
    }
    .top-status-bar {
        max-height: 80px !important;
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    .page-icon .vendetta-page-icon-img,
    .page-icon.vendetta-page-icon img {
        width: 36px !important;
        height: 36px !important;
    }

    .status-resources {
        gap: 4px !important;
        justify-content: flex-start !important;
    }

    .status-resources .status-item,
    .status-resources .topbar-stat-chip {
        padding: 2px 4px !important;
        font-size: 10px !important;
        min-width: 64px !important;
        width: 64px !important;
        height: 30px !important;
        min-height: 30px !important;
    }

    #attack-alarm-item {
        padding: 8px 10px !important;
        min-height: 44px !important;
        min-width: 44px !important;
    }

    #battle-alerts-content {
        padding: 10px 8px 20px !important;
    }

    .status-resources .status-item .status-icon,
    .status-resources .topbar-stat-chip .topbar-icon-svg {
        font-size: 11px !important;
    }
    .status-resources .topbar-stat-chip .topbar-icon-svg {
        width: 16px !important;
        height: 16px !important;
    }
    .status-resources .topbar-stat-chip.ammo-status .topbar-stat-icon,
    .status-resources .topbar-stat-chip.ammo-status .topbar-ammo-icon {
        width: 22px !important;
        height: 22px !important;
    }
    #top-ammo-item {
        min-height: 40px;
        min-width: 40px;
        padding: 6px 8px !important;
    }

    .btc-container {
        padding: 3px 6px !important;
        margin-left: 4px !important;
    }

    .btc-container .status-icon,
    .btc-container .topbar-icon-svg {
        font-size: 12px !important;
    }
    .btc-container .topbar-icon-svg {
        width: 16px !important;
        height: 16px !important;
    }

    #top-btc {
        font-size: 11px !important;
    }

    #top-tp-text {
        font-size: 11px !important;
    }

    .topbar-level-chip {
        padding: 4px 8px !important;
        gap: 6px !important;
        height: 32px !important;
        min-height: 32px !important;
    }
    .topbar-level-chip .topbar-level-text {
        font-size: 12px !important;
    }
    .topbar-level-chip .topbar-icon-svg {
        width: 18px !important;
        height: 18px !important;
    }

    .tp-container {
        padding: 4px 10px !important;
        margin-left: 10px !important;
        gap: 4px !important;
        white-space: nowrap !important;
    }

    .tp-container .status-icon {
        font-size: 12px !important;
    }

    .location-info-header {
        font-size: 11px !important;
        padding: 3px 8px !important;
        margin-top: 6px !important;
    }

    @media (max-width: 1200px) {
        .tp-container {
            padding: 3px 8px !important;
            margin-left: 8px !important;
            gap: 3px !important;
            white-space: nowrap !important;
        }

        .tp-container .status-icon,
        .tp-container .topbar-icon-svg {
            font-size: 11px !important;
        }
        .tp-container .topbar-icon-svg {
            width: 14px !important;
            height: 14px !important;
        }

        #top-tp-text {
            font-size: 10px !important;
        }
    }

    .status-item:has(#top-nam) {
        display: none !important;
    }

    #top-money-item,
    #top-ammo-item,
    #top-power-item,
    #top-health-item {
        display: flex !important;
    }

    .mobile-chat-toggle {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 15px;
        right: 15px;
    }

    .mobile-menu-toggle {
        width: 36px !important;
        height: 36px !important;
    }

    .status-user .user-avatar {
        width: 28px !important;
        height: 28px !important;
    }
}

@media (max-width: 375px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    .dashboard-container {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    .top-status-bar {
        padding: 6px 8px !important;
        max-height: 76px !important;
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    .status-resources {
        max-width: calc(100vw - 100px) !important;
    }

    .status-resources {
        gap: 3px !important;
    }

    .status-resources .status-item,
    .status-resources .topbar-stat-chip {
        padding: 2px 4px !important;
        font-size: 9px !important;
        min-width: 58px !important;
        width: 58px !important;
        height: 28px !important;
        min-height: 28px !important;
    }
    .status-resources .topbar-stat-chip .topbar-icon-svg {
        width: 14px !important;
        height: 14px !important;
    }
    .status-resources .topbar-stat-chip.ammo-status .topbar-stat-icon,
    .status-resources .topbar-stat-chip.ammo-status .topbar-ammo-icon {
        width: 20px !important;
        height: 20px !important;
    }
    #top-ammo-item {
        min-height: 36px;
        min-width: 36px;
        padding: 5px 6px !important;
    }

    .btc-container {
        display: none !important;
    }

    #top-power-item {
        display: none !important;
    }

    .game-logo .logo-icon,
    .game-logo .game-logo-img {
        font-size: 20px !important;
    }
    .game-logo .game-logo-img {
        max-width: 100px !important;
    }
}


.casino-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border);
}

.casino-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.casino-tab:hover {
    color: var(--text);
    background: rgba(245, 210, 89, 0.05);
}

.casino-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: rgba(245, 210, 89, 0.08);
}

.roulette-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    padding: 20px;
}

.roulette-top-section {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    max-width: 1400px;
    flex-wrap: nowrap;
}

.roulette-left-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
    width: 420px;
}

.roulette-right-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.roulette-wheel-wrapper {
    position: relative;
    width: 450px;
    height: 450px;
    margin: 0 auto;
    filter: drop-shadow(0 12px 35px rgba(0, 0, 0, 0.75));
}

.roulette-wheel-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0;
    perspective: 1000px;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.8));
    flex-shrink: 0;
}

.roulette-wheel-wrapper-svg {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

#roulette-wheel-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.7));
}

#roulette-wheel-svg text {
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.roulette-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.9) 100%),
        linear-gradient(135deg, #1f1f1f 0%, #0f0f0f 50%, #050505 100%);
    border: 18px solid #0a0a0a;
    position: relative;
    box-shadow: 
        inset 0 0 60px rgba(0, 0, 0, 0.95),
        inset 0 0 20px rgba(0, 0, 0, 0.7),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 0 4px rgba(0, 0, 0, 0.8),
        0 0 0 6px rgba(200, 200, 200, 0.15),
        0 10px 40px rgba(0, 0, 0, 0.9),
        0 0 30px rgba(245, 210, 89, 0.2);
    overflow: hidden;
}

.roulette-wheel::before {
    content: '';
    position: absolute;
    top: -18px;
    left: -18px;
    right: -18px;
    bottom: -18px;
    border-radius: 50%;
    background: 
        repeating-conic-gradient(
            from 0deg at 50% 50%,
            rgba(200, 200, 200, 0.25) 0deg,
            rgba(150, 150, 150, 0.15) 5deg,
            rgba(100, 100, 100, 0.1) 10deg,
            rgba(150, 150, 150, 0.15) 15deg,
            rgba(200, 200, 200, 0.25) 20deg
        ),
        linear-gradient(135deg, 
            rgba(180, 180, 180, 0.2) 0%, 
            rgba(120, 120, 120, 0.15) 25%,
            rgba(80, 80, 80, 0.1) 50%,
            rgba(120, 120, 120, 0.15) 75%,
            rgba(180, 180, 180, 0.2) 100%);
    z-index: 0;
    pointer-events: none;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.roulette-wheel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        inset 0 0 0 1px rgba(0, 0, 0, 0.6),
        inset 0 0 20px rgba(0, 0, 0, 0.4);
    z-index: 0;
    pointer-events: none;
}

.wheel-number {
    position: absolute;
    width: 50%;
    height: 50%;
    left: 50%;
    top: 0;
    transform-origin: 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 2px solid rgba(0, 0, 0, 0.6);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    z-index: 100;
    overflow: visible;
    font-size: 14px;
    font-weight: 900;
    isolation: isolate;
}

.wheel-number::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
    z-index: -1;
}

.wheel-number[data-color="red"] {
    background: 
        linear-gradient(135deg, 
            #dc3545 0%, 
            #c82333 25%,
            #bd2130 50%,
            #c82333 75%,
            #dc3545 100%);
    color: #ffffff;
    box-shadow: 
        inset 0 3px 12px rgba(0, 0, 0, 0.4),
        inset 0 -3px 12px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 8px rgba(220, 53, 69, 0.4);
    border-right: 3px solid rgba(0, 0, 0, 0.65);
}

.wheel-number[data-color="red"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%,
        transparent 30%,
        rgba(0, 0, 0, 0.1) 70%,
        rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: -1;
}

.wheel-number[data-color="black"] {
    background: 
        linear-gradient(135deg, 
            #1a1a1a 0%, 
            #0f0f0f 25%,
            #000000 50%,
            #0f0f0f 75%,
            #1a1a1a 100%);
    color: #ffffff;
    box-shadow: 
        inset 0 3px 12px rgba(0, 0, 0, 0.6),
        inset 0 -3px 12px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 8px rgba(0, 0, 0, 0.5);
    border-right: 3px solid rgba(0, 0, 0, 0.8);
}

.wheel-number[data-color="black"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%,
        transparent 30%,
        rgba(0, 0, 0, 0.2) 70%,
        rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: -1;
}

.wheel-number[data-color="green"] {
    background: 
        linear-gradient(135deg, 
            #28a745 0%, 
            #218838 25%,
            #1e7e34 50%,
            #218838 75%,
            #28a745 100%);
    color: #ffffff;
    box-shadow: 
        inset 0 3px 12px rgba(0, 0, 0, 0.4),
        inset 0 -3px 12px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        0 0 10px rgba(40, 167, 69, 0.5);
    border-right: 3px solid rgba(0, 0, 0, 0.65);
}

.wheel-number[data-color="green"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%,
        transparent 30%,
        rgba(0, 0, 0, 0.1) 70%,
        rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: -1;
}

.number-text {
    font-size: 16px;
    font-weight: 900;
    text-shadow: 
        0 3px 6px rgba(0, 0, 0, 1),
        0 0 10px rgba(0, 0, 0, 0.9),
        2px 2px 4px rgba(0, 0, 0, 1),
        0 0 15px rgba(255, 255, 255, 0.4),
        -1px -1px 3px rgba(255, 255, 255, 0.3),
        0 0 20px rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
    z-index: 200;
    position: relative;
    letter-spacing: 0.5px;
    color: #ffffff !important;
    white-space: nowrap;
    width: 100%;
    text-align: center;
    line-height: 1.2;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 1)) drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.8);
}

.wheel-ball {
    position: absolute;
    width: 24px;
    height: 24px;
    background: 
        radial-gradient(circle at 35% 35%, 
            #ffffff 0%,
            #fff8dc 12%,
            #ffd700 30%,
            #ffa500 60%,
            #ff8c00 85%,
            #cc6600 100%);
    border-radius: 50%;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 
        0 0 25px rgba(255, 215, 0, 1.3),
        0 0 35px rgba(255, 165, 0, 0.9),
        inset -5px -5px 10px rgba(0, 0, 0, 0.7),
        inset 4px 4px 8px rgba(255, 255, 255, 0.5),
        0 8px 16px rgba(0, 0, 0, 0.8);
    z-index: 15;
    border: 3px solid rgba(255, 255, 255, 0.6);
    animation: ballGlow 2s ease-in-out infinite;
}

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

@keyframes ballGlow {
    0%, 100% {
        box-shadow: 
            0 0 15px rgba(255, 215, 0, 1),
            0 0 25px rgba(255, 165, 0, 0.6),
            inset -3px -3px 6px rgba(0, 0, 0, 0.5),
            inset 2px 2px 4px rgba(255, 255, 255, 0.3),
            0 4px 8px rgba(0, 0, 0, 0.6);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(255, 215, 0, 1.2),
            0 0 35px rgba(255, 165, 0, 0.8),
            inset -3px -3px 6px rgba(0, 0, 0, 0.5),
            inset 2px 2px 4px rgba(255, 255, 255, 0.4),
            0 4px 12px rgba(0, 0, 0, 0.7);
    }
}


.roulette-betting-area {
    width: 100%;
    max-width: 900px;
}

.chip-selector {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.chips-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.chip-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.chip-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), transparent 70%);
}

.chip-btn:hover {
    transform: scale(1.1);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(245, 210, 89, 0.6);
}

.chip-btn.selected {
    border-color: var(--accent);
    border-width: 4px;
    transform: scale(1.15);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4),
        0 0 25px var(--accent);
}

.chip-value {
    font-weight: 900;
    font-size: 12px;
    color: white;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(0, 0, 0, 0.5);
    z-index: 1;
    position: relative;
}

.bet-cell {
    position: relative;
    overflow: visible;
}

.chips-on-bet {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.chip-on-table {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        inset 0 -1px 2px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cell-number {
    position: relative;
    z-index: 1;
}

.betting-options {
    margin-top: 20px;
}

.roulette-table {
    background: linear-gradient(135deg, #0d5d2f 0%, #0a4d26 50%, #0d5d2f 100%);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.6),
        inset 0 0 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.roulette-table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.05) 2px, rgba(255, 255, 255, 0.05) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 255, 255, 0.05) 2px, rgba(255, 255, 255, 0.05) 4px);
    pointer-events: none;
    z-index: 1;
}

.table-zero-and-numbers {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px;
    position: relative;
    z-index: 2;
}

.table-zero-column {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 2px;
    position: relative;
    z-index: 2;
}

.table-zero-column .zero-cell {
    width: 60px;
    height: 100%;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s;
    grid-row: 1 / 4;
}

.table-numbers {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    grid-template-columns: repeat(12, 1fr);
    gap: 2px;
    position: relative;
    z-index: 2;
}

.table-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.table-column {
    display: grid;
    grid-template-rows: repeat(12, 1fr);
    gap: 2px;
}

.table-column-bets {
    display: grid;
    grid-template-rows: repeat(12, 1fr);
    gap: 2px;
}

.bet-number-btn {
    padding: 8px 4px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    background: var(--panel);
    color: var(--text);
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.bet-number-btn.red {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.bet-number-btn.black {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.bet-number-btn.green {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.bet-number-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(245, 210, 89, 0.6);
    border-color: var(--accent);
}

.bet-number-btn.bet-placed {
    box-shadow: 0 0 20px rgba(245, 210, 89, 0.9) !important;
    border-color: var(--accent) !important;
    border-width: 3px !important;
}

.bet-column-btn {
    padding: 8px 4px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    position: relative;
    z-index: 2;
}

.bet-column-btn:hover {
    background: rgba(245, 210, 89, 0.2);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(245, 210, 89, 0.6);
}

.bet-column-btn.bet-placed {
    box-shadow: 0 0 20px rgba(245, 210, 89, 0.9) !important;
    border-color: var(--accent) !important;
    background: rgba(245, 210, 89, 0.3) !important;
}

.table-dozens {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.bet-dozen-btn {
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.bet-dozen-btn:hover {
    background: rgba(245, 210, 89, 0.2);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(245, 210, 89, 0.6);
}

.bet-dozen-btn.bet-placed {
    box-shadow: 0 0 20px rgba(245, 210, 89, 0.9) !important;
    border-color: var(--accent) !important;
    background: rgba(245, 210, 89, 0.3) !important;
}

.table-outside {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    position: relative;
    z-index: 2;
}

.bet-outside-btn {
    padding: 12px 8px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.bet-outside-btn.red {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: white;
}

.bet-outside-btn.black {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    color: white;
}

.bet-outside-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(245, 210, 89, 0.6);
    border-color: var(--accent);
}

.bet-outside-btn.bet-placed {
    box-shadow: 0 0 20px rgba(245, 210, 89, 0.9) !important;
    border-color: var(--accent) !important;
    border-width: 3px !important;
}

.betting-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.roulette-wheel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 30% 30%, 
            rgba(255, 255, 255, 0.2) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.8) 100%);
    border: 4px solid rgba(0, 0, 0, 0.6);
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

@media (max-width: 768px) {
    .roulette-container {
        padding: 10px;
        gap: 15px;
    }
    
    .roulette-top-section {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .roulette-left-section {
        width: 100%;
        max-width: 100%;
    }
    
    .roulette-right-section {
        width: 100%;
    }
    
    .roulette-wheel-wrapper {
        width: 100%;
        max-width: 280px;
        height: auto;
        aspect-ratio: 1;
    }
    
    .roulette-wheel-container {
        width: 100%;
        max-width: 280px;
        height: auto;
        aspect-ratio: 1;
    }
    
    .roulette-wheel {
        width: 100%;
        height: 100%;
    }
    
    .number-text {
        font-size: 12px;
    }
    
    .wheel-ball {
        width: 18px;
        height: 18px;
        top: 3px;
    }
    
    .wheel-center {
        width: 40px;
        height: 40px;
    }
    
    .roulette-table {
        padding: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .betting-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    
    .betting-table {
        min-width: 600px;
    }
    
    .bet-number-btn {
        padding: 4px 2px;
        font-size: 10px;
        min-height: 28px;
    }
    
    .table-zero .bet-number-btn {
        width: 50px;
        height: 40px;
        font-size: 18px;
    }
    
    .bet-column-btn {
        font-size: 9px;
        min-height: 28px;
        padding: 4px 2px;
    }
    
    .bet-dozen-btn {
        padding: 8px 6px;
        font-size: 11px;
    }
    
    .bet-outside-btn {
        padding: 8px 4px;
        font-size: 10px;
    }
    
    .table-outside {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }
    
    .table-dozens {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    
    .bet-input-section {
        padding: 10px;
        width: 100%;
    }
    
    .bet-input-row {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .bet-input-left {
        width: 100%;
    }
    
    .bet-input-left input {
        width: 100% !important;
        max-width: 100%;
    }
    
    .bet-input-buttons {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .bet-input-buttons button {
        width: 100%;
        padding: 12px;
    }
    
    .roulette-result {
        font-size: 14px;
        padding: 15px;
    }
    
    .casino-tabs {
        flex-wrap: wrap;
        gap: 5px;
        margin-bottom: 15px;
    }
    
    .casino-tab {
        padding: 8px 12px;
        font-size: 12px;
        flex: 1;
        min-width: calc(50% - 5px);
    }
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.3) 0%, transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.9) 100%),
        linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 50%, #1a1a1a 100%);
    border: 4px solid rgba(245, 210, 89, 0.6);
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.95),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 20px rgba(245, 210, 89, 0.5),
        0 0 0 2px rgba(0, 0, 0, 0.8);
    z-index: 20;
}

.roulette-controls {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bet-input-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 100%;
    font-size: 0.85em;
}

.bet-input-row {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.bet-input-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.bet-input-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.bet-input-buttons .btn-primary,
.bet-input-buttons .roulette-clear-btn {
    width: 150px !important;
    height: 47px !important;
    padding: 0 !important;
    margin-top: 0 !important;
    flex: 0 0 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bet-input-section label {
    font-weight: 700;
    color: var(--accent);
    font-size: 16px;
    text-align: center;
}

.bet-input-section input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(245, 210, 89, 0.5);
}

.betting-table-container {
    width: 100%;
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
}

.betting-table {
    background: linear-gradient(135deg, #0d5d2f 0%, #0a4d26 50%, #0d5d2f 100%);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.6),
        inset 0 0 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 500px;
    font-size: 0.85em;
}

.betting-table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.05) 2px, rgba(255, 255, 255, 0.05) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 255, 255, 0.05) 2px, rgba(255, 255, 255, 0.05) 4px);
    pointer-events: none;
    z-index: 1;
}

.table-zero {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.zero-cell {
    width: 70px;
    height: 52px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s;
}

.table-numbers {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    grid-template-columns: repeat(12, 1fr);
    gap: 2px;
    position: relative;
    z-index: 2;
}

.number-cell {
    min-height: 32px;
    background: var(--panel);
    color: var(--text);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.number-cell.red {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: white;
}

.number-cell.black {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    color: white;
}

.number-cell:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(245, 210, 89, 0.6);
    border-color: var(--accent);
}

.number-cell.bet-placed {
    box-shadow: 0 0 20px rgba(245, 210, 89, 0.9) !important;
    border-color: var(--accent) !important;
    border-width: 3px !important;
}

.bet-cell-highlighted {
    box-shadow: 
        0 0 25px rgba(255, 215, 0, 1),
        0 0 40px rgba(255, 215, 0, 0.8),
        inset 0 0 20px rgba(255, 215, 0, 0.3) !important;
    border-color: #ffd700 !important;
    border-width: 3px !important;
    transform: scale(1.08) !important;
    z-index: 100 !important;
    position: relative !important;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 193, 7, 0.2) 100%) !important;
}

.number-cell.bet-cell-highlighted {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.4) 0%, rgba(255, 193, 7, 0.3) 100%) !important;
}

.number-cell.red.bet-cell-highlighted {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.5) 0%, rgba(255, 193, 7, 0.4) 100%) !important;
}

.number-cell.black.bet-cell-highlighted {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.5) 0%, rgba(255, 193, 7, 0.4) 100%) !important;
}

.zero-cell.bet-cell-highlighted {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.5) 0%, rgba(255, 193, 7, 0.4) 100%) !important;
}

.table-outside-bets {
    margin-top: 15px;
    position: relative;
    z-index: 2;
}

.outside-bets-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.outside-bets-row:last-child {
    grid-template-columns: repeat(3, 1fr);
}

.outside-bet {
    min-height: 50px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    padding: 8px;
}

.outside-bet.red-bet {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
}

.outside-bet.black-bet {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
}

.outside-bet:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(245, 210, 89, 0.6);
    border-color: var(--accent);
}

.outside-bet.bet-placed {
    box-shadow: 0 0 20px rgba(245, 210, 89, 0.9) !important;
    border-color: var(--accent) !important;
    border-width: 3px !important;
}

.chip-stack-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.bet-chip {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
        linear-gradient(135deg, var(--accent) 0%, #d4b547 50%, var(--accent) 100%);
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.6),
        inset 0 1px 2px rgba(255, 255, 255, 0.4),
        inset 0 -1px 2px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 9px;
    font-weight: 900;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.bet-amount-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--accent);
    white-space: nowrap;
    z-index: 15;
}

.bet-summary {
    text-align: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid var(--border);
    width: 100%;
}

.bet-summary p {
    margin: 4px 0;
    font-size: 12px;
}

.bet-summary span {
    color: var(--accent);
    font-weight: 700;
}

.roulette-result {
    padding: 16px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--accent);
    border-radius: 10px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    min-width: 280px;
    box-shadow: 0 0 20px rgba(245, 210, 89, 0.3);
    align-self: flex-start;
}

.roulette-clear-btn {
    background: #ff6b35 !important;
    border-color: #ff6b35 !important;
    color: white !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    box-shadow: 0 0 16px rgba(255, 107, 53, 0.35) !important;
}

.roulette-clear-btn:hover {
    background: #ff5722 !important;
    border-color: #ff5722 !important;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5) !important;
    transform: translateY(-1px);
}

.roulette-clear-btn:active {
    transform: translateY(1px);
}

.roulette-clear-btn:hover {
    background: #ff7700 !important;
    border-color: #ff7700 !important;
}

.result-content h3 {
    margin-bottom: 12px;
    font-size: 1.1em;
}

.result-content ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.result-content li {
    padding: 5px 0;
    color: var(--accent);
}

/* Ayakçı Suç Notları – mobilde her iki panel görünsün */
.assistant-logbook-panels {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.assistant-logbook-card {
    width: 100%;
    min-width: 0;
    flex-shrink: 0;
}
.assistant-logbook-list {
    max-height: 200px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
@media (min-width: 600px) {
    .assistant-logbook-panels {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }
    .assistant-logbook-card {
        flex: 1;
        min-width: 260px;
    }
    .assistant-logbook-list {
        max-height: 280px;
    }
}

/* Kaçakçılık ayakçısı ürün dropdown – ok görünsün (appearance:none sonrası) */
.assistant-smuggling-select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M2 4 L6 8 L10 4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}
.assistant-smuggling-select:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

/* Kaçakçılık notları — alım/satım kartları */
#assistant-smuggling-notes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px !important;
}
.smuggling-notes-empty {
    padding: 20px 16px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}
.smuggling-note-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    transition: opacity 0.2s ease;
}
.smuggling-note-row:hover {
    opacity: 0.95;
}
.smuggling-note-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.smuggling-note-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 6px;
    width: fit-content;
}
.smuggling-note-desc {
    color: var(--text);
    font-weight: 500;
}
.smuggling-note-desc em {
    color: var(--muted);
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
}
.smuggling-note-meta {
    text-align: right;
    flex-shrink: 0;
}
.smuggling-note-amount {
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
}
.smuggling-note-unit {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}
.smuggling-note-time {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
    letter-spacing: 0.02em;
}

/* Mermi Borsası */
.ammo-market-page { max-width: 1100px; margin: 0 auto; padding: 16px; }
.ammo-market-no-data-hint { background: rgba(245,210,89,0.12); border: 1px solid rgba(245,210,89,0.35); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px; font-size: 13px; color: var(--text); line-height: 1.5; }
.ammo-info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.ammo-card { background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; }
.ammo-card.ammo-card-next-update { display: flex; flex-direction: column; gap: 6px; }
.ammo-card-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 6px; }
.ammo-card-value { font-weight: 600; color: var(--text); font-size: 14px; }
.ammo-card-countdown { font-size: 13px; color: var(--accent); font-variant-numeric: tabular-nums; }
.ammo-section { margin-bottom: 28px; }
.ammo-section h3 { font-size: 16px; margin-bottom: 12px; color: var(--accent); }
.ammo-market-empty, .ammo-market-error { color: var(--muted); padding: 20px; text-align: center; }
.ammo-market-error { color: var(--danger); }
.ammo-chart { display: flex; flex-direction: column; gap: 8px; }
.ammo-chart-row { display: grid; grid-template-columns: 120px 1fr 80px; align-items: center; gap: 10px; font-size: 13px; }
.ammo-chart-label { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ammo-chart-bar-wrap { background: rgba(0,0,0,0.3); border-radius: 6px; height: 20px; overflow: hidden; }
.ammo-chart-bar { height: 100%; background: linear-gradient(90deg, var(--accent), #c9a961); border-radius: 6px; transition: width 0.3s; }
.ammo-chart-bar.under-threshold { background: linear-gradient(90deg, #4caf50, #2e7d32); }
.ammo-chart-value { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.ammo-market-table { width: 100%; border-collapse: collapse; font-size: 13px; background: rgba(255,255,255,0.03); border-radius: var(--radius); overflow: hidden; }
.ammo-market-table th, .ammo-market-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.ammo-market-table th { background: rgba(245,210,89,0.12); color: var(--accent); font-weight: 600; }
.ammo-market-table tr.cheapest { background: rgba(76,175,80,0.12); }
.ammo-market-table tr.under-threshold { background: rgba(76,175,80,0.06); }
.ammo-market-table .badge-cheapest { background: #4caf50; color: #fff; padding: 2px 8px; border-radius: 6px; font-size: 11px; }
.ammo-market-table .badge-ok { background: rgba(76,175,80,0.4); color: #fff; padding: 2px 8px; border-radius: 6px; font-size: 11px; }
.ammo-assistant-panel { background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.ammo-assistant-panel h4 { margin: 0 0 10px; color: var(--accent); font-size: 15px; }
.ammo-assistant-desc { font-size: 12px; color: var(--muted); margin-bottom: 14px; line-height: 1.5; }
.ammo-assistant-status p { margin: 6px 0; font-size: 13px; }
.ammo-assistant-status .status-badge { background: var(--accent); color: #0B0D10; padding: 4px 10px; border-radius: 8px; font-weight: 600; font-size: 12px; }
.ammo-assistant-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.ammo-assistant-form label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ammo-assistant-form input[type="number"] { width: 80px; padding: 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel); color: var(--text); }
.ammo-assistant-form input[type="checkbox"] { width: 18px; height: 18px; }
.ammo-assistant-form .btn-primary { padding: 10px 18px; }
.ammo-assistant-status .btn-secondary { margin-top: 12px; }
.ammo-logs-table { width: 100%; border-collapse: collapse; font-size: 12px; background: rgba(255,255,255,0.03); border-radius: var(--radius); overflow: hidden; }
.ammo-logs-table th, .ammo-logs-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.ammo-logs-table th { background: rgba(0,0,0,0.2); color: var(--muted); font-weight: 600; }
.ammo-logs-table .log-status.success { color: #4caf50; }
.ammo-logs-table .log-status.insufficient_balance { color: #ff9800; }
.ammo-logs-table .log-status.no_matching_city { color: var(--muted); }
.ammo-logs-table .log-status.daily_limit_reached { color: var(--accent); }
.ammo-log-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.ammo-log-tab { padding: 10px 18px; font-size: 13px; border-radius: var(--radius); border: 1px solid var(--border); background: rgba(255,255,255,0.05); color: var(--text); cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.ammo-log-tab:hover { background: rgba(255,255,255,0.08); border-color: var(--accent); }
.ammo-log-tab.active { background: var(--accent); color: #131313; border-color: var(--accent); font-weight: 600; }
.ammo-log-panel { display: none; }
.ammo-log-panel.active { display: block; }
.ammo-confirm-overlay .ammo-confirm-cancel:hover { background: rgba(255,255,255,0.08); border-color: var(--muted); }
.ammo-confirm-overlay .ammo-confirm-ok:hover { background: #c9a961; box-shadow: 0 0 12px rgba(230,195,92,0.4); }
.ammo-table-scroll-wrap .ammo-success-table { min-width: 380px; }
/* Tablo yatay kaydırma (mobil) */
.ammo-table-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 16px 0;
}
.ammo-table-scroll-wrap .ammo-market-table,
.ammo-table-scroll-wrap .ammo-logs-table {
  min-width: 520px;
}

@media (max-width: 600px) {
  .ammo-chart-row { grid-template-columns: 80px 1fr 60px; font-size: 12px; }
  .ammo-market-table th, .ammo-market-table td { padding: 8px 10px; font-size: 12px; }
  .ammo-assistant-form { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  #page-ammo-market .ammo-market-page,
  .ammo-market-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .ammo-market-page .ammo-info-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .ammo-market-page .ammo-card {
    min-width: 0;
  }
  .ammo-chart-row {
    min-width: 0;
    grid-template-columns: minmax(0, 80px) 1fr minmax(0, 64px);
  }
  .ammo-assistant-panel {
    padding: 14px;
    min-width: 0;
  }
  .ammo-assistant-panel .btn-primary,
  .ammo-assistant-panel .btn-secondary {
    min-height: 44px;
    padding: 12px 16px;
  }
  .ammo-table-scroll-wrap {
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 480px) {
  #page-ammo-market .ammo-market-page,
  .ammo-market-page {
    padding: 8px 0;
  }
  .ammo-table-scroll-wrap .ammo-market-table,
  .ammo-table-scroll-wrap .ammo-logs-table {
    min-width: 480px;
  }
}
