:root {
    --clr-bg: #0f172a;
    --clr-surface: rgba(30, 41, 59, 0.7);
    --clr-primary: #3b82f6;
    --clr-primary-hover: #2563eb;
    --clr-success: #10b981;
    --clr-danger: #ef4444;
    --clr-text: #f8fafc;
    --clr-text-muted: #94a3b8;
    --clr-warning: #fbbf24;
    --border-glass: rgba(255, 255, 255, 0.1);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --blur-glass: blur(12px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text);
    min-height: 100vh;
    overflow-x: hidden;
}

#vfx-background {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 50%, #1e1b4b 0%, #0f172a 100%);
    z-index: -1;
}

#vfx-background::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.4;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%233b82f6" fill-opacity="0.1"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z" /%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

.screen {
    display: none;
    min-height: 100vh;
    animation: fadeIn 0.5s ease-out forwards;
}

.screen.active {
    display: flex;
}

/* --- GLASSMORPHISM UTILS --- */
.glass-card {
    background: var(--clr-surface);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
    border-radius: 20px;
    padding: 2rem;
}

.glass-header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: var(--blur-glass);
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* --- BUTTONS --- */
button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    transition: all 0.3s ease;
    border-radius: 12px;
    font-weight: 600;
}

.btn-primary {
    background: var(--clr-primary);
    color: white;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}
.btn-primary:hover {
    background: var(--clr-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}
.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}
.btn-danger {
    background: var(--clr-danger);
    color: white;
    padding: 0.8rem 1.5rem;
}

/* --- FORMS --- */
.input-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}
.input-group label {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}
input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    padding: 1rem;
    border-radius: 12px;
    color: white;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}
input:focus {
    border-color: var(--clr-primary);
}

/* --- LOGIN SCREEN --- */
#login-screen {
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Slogan Arkaplanı */
.slogan-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    overflow: hidden;
    padding: 2rem 0;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.05), transparent 50%);
}
.slogan-bg .slog {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.2rem;
    white-space: nowrap;
    text-transform: uppercase;
    animation: panSlogan 30s linear infinite alternate;
}
.slogan-bg .slog-1 { align-self: center; animation-duration: 35s; }
.slogan-bg .slog-2 { align-self: center; animation-duration: 25s; color: rgba(96, 165, 250, 0.25); }
.slogan-bg .slog-3 { align-self: center; animation-duration: 40s; }

@keyframes panSlogan {
    from { transform: translateX(-5%); }
    to { transform: translateX(5%); }
}

#login-screen .glass-card {
    width: 100%;
    max-width: 400px;
}
#login-screen h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
#login-screen p {
    color: var(--clr-text-muted);
    margin-bottom: 2rem;
}
#login-form button {
    width: 100%;
    margin-top: 1rem;
}

/* --- DASHBOARD --- */
#dashboard {
    flex-direction: column;
}

.user-info { display: flex; align-items: center; gap: 1rem; }
.avatar {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--clr-primary), #8b5cf6);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem; font-weight: bold;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}
.status {
    font-size: 0.85rem;
    color: var(--clr-success);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.time-display {
    display: flex; align-items: center; gap: 0.5rem;
    background: rgba(0,0,0,0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
}
.season-icon { font-size: 1.2rem; }

.wallet { text-align: right; }
.wallet-label { font-size: 0.85rem; color: var(--clr-text-muted); }
.balance-container { font-size: 1.8rem; font-weight: 800; color: #fbbf24; }
.currency { font-size: 1.2rem; }

.dashboard-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* --- ACTIONS GRID --- */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.action-card {
    background: var(--clr-surface);
    border: 1px solid var(--border-glass);
    padding: 2rem 1rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
}
.action-card:hover:not(.locked) {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.action-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.action-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.action-card p { font-size: 0.85rem; color: var(--clr-text-muted); }

.action-card.locked {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
}

/* --- MODALS --- */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 100;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}
.modal.active { display: flex; animation: fadeIn 0.15s ease-out; will-change: opacity; }

.modal-content {
    width: 100%;
    max-width: 500px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-content.wide {
    max-width: 700px;
}
.modal-content.admin-panel-modal {
    max-width: 1400px;
    width: 95%;
    max-height: 92vh;
}
.admin-table-wrapper {
    overflow-x: auto;
    width: 100%;
    margin-top: 10px;
}

.close-btn {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--clr-text-muted);
    transition: color 0.3s;
}
.close-btn:hover { color: white; }

.modal-header h2 { margin-bottom: 1rem; }
.tabs {
    display: flex; gap: 10px; margin-bottom: 20px;
    border-bottom: 1px solid var(--border-glass); padding-bottom: 5px;
}
.tab-btn {
    background: none; border: none; color: var(--clr-text-muted); padding: 5px 10px;
}
.tab-btn.active {
    color: white; border-bottom: 2px solid var(--clr-primary);
}
.casino-subtab-btn {
    background: none; border: none; color: var(--clr-text-muted); padding: 5px 10px;
    cursor: pointer;
}
.casino-subtab-btn.active {
    color: white; border-bottom: 2px solid var(--clr-primary);
}
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

/* Financial Details */
.financial-summary {
    display: flex; gap: 1rem; margin: 1.5rem 0;
}
.summary-box {
    flex: 1;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-glass);
}
.summary-box span { font-size: 0.85rem; color: var(--clr-text-muted); }
.income-box h3 { color: var(--clr-success); }
.expense-box h3 { color: var(--clr-danger); }

.transaction-list {
    display: flex; flex-direction: column; gap: 0.5rem;
    margin-top: 1rem;
}
.transaction-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem;
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    border-left: 4px solid transparent;
}
.transaction-item.income { border-left-color: var(--clr-success); }
.transaction-item.expense { border-left-color: var(--clr-danger); }
.transaction-item.refund { border-left-color: var(--clr-warning); }
.transaction-item .info strong { display: block; font-weight: 500; font-size: 0.95rem; }
.transaction-item .info small { color: var(--clr-text-muted); font-size: 0.8rem; }
.transaction-item .amount { font-weight: 600; font-family: monospace; font-size: 1.1rem; }

/* Chatbot Widget */
.chat-widget {
    position: fixed;
    bottom: 20px; right: 20px;
    width: 300px; height: 40px;
    background: var(--clr-surface);
    backdrop-filter: var(--blur-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    display: flex; flex-direction: column;
    overflow: hidden;
    transition: height 0.3s ease;
    z-index: 95;
}
.chat-widget.expanded { height: 400px; }

/* Modal aktifken yüzen danışman widget'ını gizle */
body:has(.modal.active) .chat-widget {
    display: none !important;
}
.chat-header {
    background: var(--clr-primary);
    padding: 10px 15px;
    font-weight: 600; cursor: pointer;
    display: flex; justify-content: space-between;
}
.chat-body {
    flex: 1; padding: 10px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 10px;
}
.chat-message {
    padding: 8px 12px; border-radius: 8px; font-size: 0.9rem;
    max-width: 85%;
    line-height: 1.5;
    word-wrap: break-word;
    flex-shrink: 0;
}
.chat-message.bot { background: rgba(255,255,255,0.1); align-self: flex-start; }
.chat-message.user { background: var(--clr-primary); align-self: flex-end; }
.chat-input-area {
    display: flex; border-top: 1px solid var(--border-glass);
}
.chat-input-area input {
    flex: 1; border: none; border-radius: 0; padding: 10px; background: rgba(0,0,0,0.2);
}
#btn-chat-send {
    padding: 0 15px; background: var(--clr-primary); border-radius: 0; border: none; font-size: 1.2rem;
}

/* Notifications */
#notifications-area {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1000000 !important;
    pointer-events: none;
    max-width: 400px;
    width: calc(100vw - 40px);
}
.notification {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-left: 4px solid var(--clr-success);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5), 0 0 15px rgba(255,255,255,0.05);
    color: white;
    transform: translateX(120%);
    animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    pointer-events: auto;
    user-select: none;
    touch-action: none;
    cursor: grab;
}
.notification:active {
    cursor: grabbing;
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(-120%); } to { transform: translateX(0); } }
@keyframes slideInRight { from { transform: translateX(120%); } to { transform: translateX(0); } }

.pulse-minus { animation: pulseRed 0.5s ease; }
.pulse-plus { animation: pulseGreen 0.5s ease; }

@keyframes pulseRed {
    0% { transform: scale(1); color: #fbbf24; }
    50% { transform: scale(1.1); color: var(--clr-danger); }
    100% { transform: scale(1); color: #fbbf24; }
}
@keyframes pulseGreen {
    0% { transform: scale(1); color: #fbbf24; }
    50% { transform: scale(1.1); color: var(--clr-success); }
    100% { transform: scale(1); color: #fbbf24; }
}

/* Forms Utils */
.form-group {
    display: flex;
    gap: 10px;
}
.form-group input { flex:1; }

/* Survival Meters */
.survival-stats {
    width: 200px;
    font-size: 0.85rem;
}
.progress-bg {
    flex: 1;
    height: 12px;
    background: rgba(0,0,0,0.5);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
}
.progress-fill {
    height: 100%;
    transition: width 0.3s ease, background 0.3s ease;
}

/* --- DASHBOARD LAYOUT & SIDEBAR WIDGET --- */
.dashboard-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    align-items: start;
}

.dashboard-content {
    /* override previous styles if needed */
    padding: 0;
    margin: 0;
    max-width: none;
}

.sidebar-widget {
    background: var(--clr-surface);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 650px;
    color: white;
}

.sidebar-content {
    padding: 30px 20px 20px 20px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-content::-webkit-scrollbar {
    display: none; /* Hide scrollbar for a cleaner look */
}

.sidebar-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.app-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    .sidebar-widget {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Typing Indicator (Pseudo-LLM Bot) */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border-bottom-left-radius: 2px;
    width: fit-content;
    margin-bottom: 5px;
}
.typing-dot {
    width: 6px;
    height: 6px;
    background: #a78bfa;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Custom scrollbar for horizontal news ticker */
#global-news-ticker {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
#global-news-ticker::-webkit-scrollbar {
    height: 4px;
}
#global-news-ticker::-webkit-scrollbar-track {
    background: transparent;
}
#global-news-ticker::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}
#global-news-ticker::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* --- ADA SOSYAL DM PANELI --- */
.whatsapp-layout {
    display: flex;
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-glass);
}

.whatsapp-sidebar {
    width: 220px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.whatsapp-chat-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.2);
}

.whatsapp-input-area {
    display: none;
    padding: 8px 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(0, 0, 0, 0.15);
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.whatsapp-layout.chat-active .whatsapp-input-area,
.whatsapp-input-area.active {
    display: flex !important;
}

.whatsapp-chat-back-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px 8px;
    margin-right: 5px;
    border-radius: 8px;
    transition: background 0.3s;
}
.whatsapp-chat-back-btn:hover {
    background: rgba(255,255,255,0.1);
}

/* Mobil Uyumlu DM Penceresi */
@media (max-width: 600px) {
    #notifications-area {
        top: 15px !important;
        right: 50% !important;
        transform: translateX(50%) !important;
        left: auto !important;
        width: 92vw !important;
        max-width: 380px !important;
    }
    .modal {
        align-items: flex-start !important;
        overflow-y: auto !important;
        padding: 0.5rem !important;
    }
    
    .modal-content {
        margin: 10px auto !important;
        max-height: none !important;
    }
    
    .modal-content.glass-card {
        padding: 1rem !important;
    }
    
    .whatsapp-layout {
        height: 320px !important;
    }
    
    #social-dm-list {
        padding: 10px !important;
    }
    
    #uni-chat-feed {
        max-height: 140px !important;
    }

    .whatsapp-layout.chat-active .whatsapp-sidebar {
        display: none !important;
    }
    
    .whatsapp-layout.chat-active .whatsapp-chat-pane {
        display: flex !important;
    }
    
    .whatsapp-layout:not(.chat-active) .whatsapp-sidebar {
        width: 100% !important;
        display: flex !important;
        border-right: none !important;
    }
    
    .whatsapp-layout:not(.chat-active) .whatsapp-chat-pane {
        display: none !important;
    }
    
    .whatsapp-chat-back-btn {
        display: inline-flex !important;
    }
}

/* --- KARIYER VE IS ARAYUZU STILLERI --- */
.career-container {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: 15px;
    margin-top: 15px;
}
@media (max-width: 680px) {
    .career-container {
        grid-template-columns: 1fr;
    }
}
.job-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 5px;
}
.job-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid transparent;
}
.job-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}
.job-item.selected {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    border-left-color: var(--clr-primary);
}
.job-item.active-job {
    border-left-color: var(--clr-success);
    background: rgba(16, 185, 129, 0.06);
}
.job-details-panel {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 300px;
}
.job-info-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px;
    font-size: 0.85rem;
    line-height: 1.4;
}
.career-badge {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
}
.career-badge.badge-primary { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.career-badge.badge-success { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.career-badge.badge-warning { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.career-badge.badge-danger { background: rgba(239, 68, 68, 0.2); color: #f87171; }

/* --- CASINO (KUMARHANE) STILLERI --- */
.casino-lobby-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}
@media (max-width: 600px) {
    .casino-lobby-grid {
        grid-template-columns: 1fr;
    }
}
.casino-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.casino-card:hover {
    background: rgba(250, 204, 21, 0.1);
    border-color: #facc15;
    transform: translateY(-2px);
}
.casino-card-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
}
.casino-card-content h3 {
    margin: 0; color: #facc15; font-size: 1.1rem;
}
.casino-card-content p {
    margin: 4px 0 0 0; font-size: 0.8rem; color: var(--clr-text-muted);
}

/* Green felt background for casino tables */
.casino-table {
    background: radial-gradient(circle, #064e3b 0%, #022c22 100%);
    border: 5px solid #78350f; /* wooden frame */
    border-radius: 15px;
    padding: 20px;
    color: white;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
    margin-top: 15px;
}

/* Slots styles */
.slots-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}
.slot-reel-box {
    width: 80px;
    height: 100px;
    background: #0f172a;
    border: 3px solid #eab308;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    overflow: hidden;
}
.slot-reel {
    display: inline-block;
    transition: transform 0.1s ease;
}

/* Blackjack styles */
.bj-hand-container {
    background: rgba(0,0,0,0.25);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    min-height: 120px;
}
.bj-cards {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
    min-height: 70px;
}
.card-item {
    width: 50px;
    height: 70px;
    background: white;
    border-radius: 5px;
    border: 1px solid #cbd5e1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px;
    color: black;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    position: relative;
    user-select: none;
}
.card-item.red-suit {
    color: #ef4444;
}

/* Roulette styles */
.roulette-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}
.roulette-bet-btn {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    transition: all 0.2s;
    user-select: none;
}
.roulette-bet-btn:hover {
    transform: scale(1.05);
}
.roulette-bet-btn.red { background: #ef4444; color: white; }
.roulette-bet-btn.black { background: #1e293b; color: white; }
.roulette-bet-btn.green { background: #10b981; color: white; }
.roulette-bet-btn.selected {
    outline: 3px solid #eab308;
    box-shadow: 0 0 10px #eab308;
}
.roulette-wheel-circular-wrapper {
    margin: 15px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 320px;
    height: 320px;
}
#roulette-wheel-canvas {
    display: block;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* Horse Racing styles */
.horse-lane {
    margin-bottom: 15px;
}
.horse-name {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
    color: #eab308;
}
.track-bar {
    height: 35px;
    background: rgba(0,0,0,0.4);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    width: 100%;
}
.horse-progress {
    position: absolute;
    left: 0;
    font-size: 1.8rem;
    transition: left 0.1s linear;
}
.finish-line {
    position: absolute;
    right: 10px;
    width: 4px;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        #fff,
        #fff 4px,
        #000 4px,
        #000 8px
    );
}

/* Sınav Modalı Seçenek Butonları */
.exam-option-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--clr-text);
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease-in-out;
    font-size: 0.95rem;
    outline: none;
    margin-bottom: 5px;
}

.exam-option-btn:hover {
    background: rgba(167, 139, 250, 0.15);
    border-color: #a78bfa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.2);
}

.exam-option-btn:active {
    transform: translateY(0);
}

/* --- ŞANS ÇARKI (ÇARKIFELEK) --- */
.carkifelek-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    position: relative;
}
.wheel-pointer {
    font-size: 2rem;
    color: #ef4444;
    position: absolute;
    top: -15px;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.wheel-outer {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}
.wheel-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    transition: transform 4s cubic-bezier(0.1, 0.8, 0.1, 1);
    background: conic-gradient(
        #8b5cf6 0deg 45deg,
        #ef4444 45deg 90deg,
        #10b981 90deg 135deg,
        #f59e0b 135deg 180deg,
        #a78bfa 180deg 225deg,
        #fbbf24 225deg 270deg,
        #34d399 270deg 315deg,
        #6b7280 315deg 360deg
    );
}
.wheel-label {
    position: absolute;
    width: 120px;
    height: 30px;
    left: calc(50% - 60px);
    top: calc(50% - 15px);
    transform-origin: center center;
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 0.75rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 0 4px rgba(0,0,0,0.5);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(calc(var(--i) * 45deg + 22.5deg)) translateY(-95px) rotate(90deg);
}
.wheel-center {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ffffff;
    color: #111827;
    position: absolute;
    top: calc(50% - 30px);
    left: calc(50% - 30px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.7rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    z-index: 5;
    border: 4px solid #1f2937;
    transition: transform 0.1s, background-color 0.2s;
    cursor: pointer;
    user-select: none;
}
.wheel-center:hover {
    transform: scale(1.08);
    background: #f3f4f6;
}
.wheel-center:active {
    transform: scale(0.95);
}

/* --- SATRANÇ OYUNU STILLERI --- */
#chess-board-container {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    width: 400px;
    height: 400px;
    background: #0f172a;
    border-radius: 8px;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.chess-square {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

/* Light & Dark Squares (Glassmorphic look) */
.chess-square.light {
    background-color: rgba(241, 245, 249, 0.8);
    color: #1e293b;
}

.chess-square.dark {
    background-color: rgba(71, 85, 105, 0.4);
    color: #cbd5e1;
}

/* Coordinates overlay */
.chess-square .coord-label {
    position: absolute;
    font-size: 0.65rem;
    font-weight: bold;
    opacity: 0.6;
    pointer-events: none;
}

.chess-square .coord-file {
    bottom: 2px;
    right: 4px;
}

.chess-square .coord-rank {
    top: 2px;
    left: 4px;
}

/* Piece style */
.chess-piece {
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 5;
    transition: transform 0.1s ease;
}

.chess-piece:active {
    cursor: grabbing;
    transform: scale(1.08);
}

.chess-piece svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Highlights */
.chess-square.selected {
    box-shadow: inset 0 0 12px #eab308, 0 0 8px #eab308;
    background-color: rgba(234, 179, 8, 0.2) !important;
}

.chess-square.last-move {
    background-color: rgba(59, 130, 246, 0.25) !important;
    box-shadow: inset 0 0 8px rgba(59, 130, 246, 0.5);
}

.chess-square.pre-move {
    background-color: rgba(239, 68, 68, 0.2) !important;
    box-shadow: inset 0 0 10px rgba(239, 68, 68, 0.6), 0 0 5px rgba(239, 68, 68, 0.4);
}

/* Legal moves indicators */
.chess-square.legal-move-dot::after {
    content: '';
    width: 12px;
    height: 12px;
    background-color: rgba(16, 185, 129, 0.6);
    border-radius: 50%;
    display: block;
    position: absolute;
    z-index: 10;
    box-shadow: 0 0 5px rgba(16, 185, 129, 0.8);
}

.chess-square.legal-move-capture::after {
    content: '';
    width: 80%;
    height: 80%;
    border: 4px solid rgba(239, 68, 68, 0.6);
    border-radius: 50%;
    display: block;
    position: absolute;
    z-index: 10;
    box-shadow: 0 0 5px rgba(239, 68, 68, 0.4);
}

/* --- SOLITAIRE (TEKLİ KAĞIT) STILLERİ --- */
.solitaire-card-slot {
    width: 45px;
    height: 65px;
    border: 1.5px dashed rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    position: relative;
}
.solitaire-card-slot:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}
.solitaire-card-back {
    width: 45px;
    height: 65px;
    background: linear-gradient(135deg, #ef4444, #991b1b);
    border: 1px solid #7f1d1d;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    transition: transform 0.1s ease;
    user-select: none;
}
.solitaire-card-back:hover {
    transform: translateY(-2px);
}
.solitaire-card {
    width: 45px;
    height: 65px;
    background: white;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-weight: bold;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
    position: relative;
    cursor: pointer;
    user-select: none;
    box-sizing: border-box;
}
.solitaire-card.red-suit {
    color: #ef4444;
}
.solitaire-card.selected {
    box-shadow: 0 0 10px #fbbf24, 0 0 4px #fbbf24;
    border-color: #fbbf24;
    transform: scale(1.05);
    z-index: 100 !important;
}
.tableau-col-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    min-height: 220px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}
.tableau-col-wrapper:hover {
    background: rgba(255, 255, 255, 0.02);
}
.tableau-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 200px;
    position: relative;
}
.tableau-card-wrapper {
    position: relative;
    width: 45px;
    height: 65px;
    margin-bottom: -48px; /* overlap cards */
}
.tableau-card-wrapper:last-child {
    margin-bottom: 0;
}
.solitaire-pile-label {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ==========================================
   TAVLA & OKEY OYUN ALANI TASARIMLARI
   ========================================== */

/* Tavla Tahtası CSS */
.tavla-board-outer {
    width: 100%;
    max-width: 600px;
    background: linear-gradient(135deg, #3e2723 0%, #1b0a00 100%);
    border: 8px solid #5d4037;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6), inset 0 0 20px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}
.tavla-board-half-container {
    display: flex;
    height: 180px;
    position: relative;
}
.tavla-board-half {
    flex: 1;
    display: flex;
    justify-content: space-between;
    position: relative;
}
.tavla-bar-divider {
    width: 30px;
    background: #5d4037;
    border-left: 2px solid rgba(0,0,0,0.4);
    border-right: 2px solid rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}
.tavla-point-col {
    width: 8%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
}
.tavla-point-bg-top {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    z-index: 1;
}
.tavla-point-bg-bottom {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    clip-path: polygon(50% 0, 0 100%, 100% 100%);
    z-index: 1;
}
.tavla-checkers-stack {
    position: absolute;
    left: 0; right: 0;
    display: flex;
    align-items: center;
    z-index: 2;
    pointer-events: none;
}
.tavla-checkers-stack-top {
    top: 5px;
    flex-direction: column;
}
.tavla-checkers-stack-bottom {
    bottom: 5px;
    flex-direction: column-reverse;
}
.tavla-checker {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin: -4px 0;
    box-shadow: 0 3px 6px rgba(0,0,0,0.4), inset 0 2px 4px rgba(255,255,255,0.2);
    border: 1.5px solid rgba(0,0,0,0.6);
    transition: transform 0.2s;
    position: relative;
}
.tavla-checker-white {
    background: radial-gradient(circle at 35% 35%, #f8fafc 0%, #cbd5e1 70%, #94a3b8 100%);
}
.tavla-checker-red {
    background: radial-gradient(circle at 35% 35%, #f87171 0%, #dc2626 70%, #7f1d1d 100%);
}
.tavla-checker.selected {
    outline: 3px solid #fbbf24;
    outline-offset: 1px;
    transform: scale(1.1);
    box-shadow: 0 0 15px #fbbf24;
}
.tavla-point-col.highlighted::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(52, 211, 153, 0.15);
    border: 1px dashed #34d399;
    border-radius: 4px;
    z-index: 3;
}
.tavla-dice-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
}
.tavla-die {
    width: 45px;
    height: 45px;
    background: white;
    color: #1e293b;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 2px solid #cbd5e1;
}

/* Okey Masa ve Istaka Tasarımı */
.okey-table-grid {
    display: grid;
    grid-template-areas:
        ". top ."
        "left center right"
        ". bottom .";
    grid-template-columns: 140px 1fr 140px;
    grid-template-rows: auto 1fr auto;
    gap: 15px;
    width: 100%;
    max-width: 800px;
    background: radial-gradient(circle, #14532d 0%, #064e3b 100%);
    border: 10px solid #78350f;
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.6);
}
.okey-player-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
}
.okey-zone-top { grid-area: top; width: 60%; margin: 0 auto; }
.okey-zone-left { grid-area: left; }
.okey-zone-right { grid-area: right; }
.okey-zone-bottom { grid-area: bottom; display: none; }

.okey-center-zone {
    grid-area: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1.5px dashed rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 15px;
    background: rgba(0,0,0,0.15);
}
.okey-center-row {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}
.okey-rack-container {
    width: 100%;
    max-width: 680px;
    background: linear-gradient(180deg, #451a03 0%, #1c0600 100%);
    border: 4px solid #b45309;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    margin: 15px auto 0;
}
.okey-rack-grid {
    display: grid;
    grid-template-rows: repeat(2, 50px);
    grid-template-columns: repeat(14, 1fr);
    gap: 5px;
}
.okey-rack-cell {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: background-color 0.15s;
    height: 48px;
}
.okey-rack-cell:hover {
    background: rgba(255, 255, 255, 0.05);
}
.okey-rack-cell.selected {
    background: rgba(251, 191, 36, 0.15);
    border-color: #fbbf24;
}
.okey-tile {
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, #fffff0 0%, #f4f2e6 100%);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3), inset 0 1px 2px white;
    user-select: none;
    border: 1px solid #dcdad0;
    transition: transform 0.1s;
}
.okey-tile:hover {
    transform: translateY(-2px);
}
.okey-tile-number {
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1;
}
.okey-tile.color-red { color: #dc2626; }
.okey-tile.color-blue { color: #2563eb; }
.okey-tile.color-black { color: #111827; }
.okey-tile.color-yellow { color: #d97706; }

.okey-tile.fake-okey {
    background: radial-gradient(circle, #fffff0 0%, #f4f2e6 100%);
    color: #e11d48;
}
.okey-tile-indicator {
    font-size: 0.65rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 1px;
}
.okey-tile.selected-tile {
    box-shadow: 0 0 12px #fbbf24;
    border: 2px solid #fbbf24;
}
.okey-discard-pile {
    width: 45px;
    height: 65px;
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    position: relative;
    background: rgba(0,0,0,0.2);
}

/* 101 Okey Ek Stilleri */
.okey101-table-melds {
    width: 100%;
    max-height: 140px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.5);
}
.okey101-meld-row {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 5px;
}
.okey101-meld-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.okey101-meld-owner {
    font-size: 0.75rem;
    font-weight: bold;
    color: #fbbf24;
    min-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.okey101-meld-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}
.okey101-meld-group {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    gap: 1px;
    cursor: pointer;
    transition: background 0.2s;
}
.okey101-meld-group:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fbbf24;
}
.okey101-tile-mini {
    width: 20px;
    height: 28px;
    background: #fffff0;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
    border: 1px solid #dcdad0;
    user-select: none;
}
.okey101-tile-mini-number {
    font-size: 0.7rem;
    font-weight: 900;
    line-height: 1;
}
.okey101-tile-mini.color-red { color: #dc2626; }
.okey101-tile-mini.color-blue { color: #2563eb; }
.okey101-tile-mini.color-black { color: #111827; }
.okey101-tile-mini.color-yellow { color: #d97706; }
.okey101-tile-mini.fake-okey { color: #e11d48; }

.okey101-open-sum-indicator {
    font-size: 0.8rem;
    font-weight: bold;
    color: #fbbf24;
    background: rgba(0,0,0,0.3);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.08);
}

/* --- MOBİL KUSURSUZ UYUMLULUK VE ERİŞİLEBİLİRLİK (RESPONSIVE DESIGN) --- */

@media (max-width: 768px) {
    /* Genel Konteyner ve Ekran Boşlukları */
    body {
        font-size: 14px;
    }
    
    .glass-card {
        padding: 1.25rem 1rem;
        border-radius: 14px;
    }

    .glass-header {
        padding: 0.6rem 0.8rem !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
    }
    .brand-logo {
        flex: 1;
        min-width: 0;
    }
    .brand-logo h1 {
        font-size: 1.15rem !important;
        white-space: nowrap;
    }
    .brand-logo span {
        font-size: 1.4rem !important;
    }
    .time-display {
        align-items: flex-end !important;
        flex-shrink: 0 !important;
        background: rgba(0, 0, 0, 0.25);
        padding: 4px 10px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    #full-date-display {
        font-size: 0.85rem !important;
        letter-spacing: 1px !important;
    }
    #time-phase {
        font-size: 0.75rem !important;
    }

    /* Modal Pencereler */
    .modal-content {
        width: 96% !important;
        max-width: 100% !important;
        margin: 2vh auto !important;
        max-height: 92vh !important;
        overflow-y: auto !important;
        padding: 14px !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
    }

    .modal-content.wide {
        width: 96% !important;
        max-width: 100% !important;
    }

    .close-btn {
        font-size: 1.8rem !important;
        padding: 6px 12px !important;
        line-height: 1 !important;
    }

    /* Sekme (Tabs) Yatırımı & Pürüzsüz Yatay Kaydırma */
    .tabs, .borsa-category-filters, .nav-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 6px !important;
        padding-bottom: 6px !important;
        margin-bottom: 12px !important;
        scrollbar-width: none; /* Firefox */
    }
    .tabs::-webkit-scrollbar, .borsa-category-filters::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .tab-btn, .borsa-filter-btn {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
        min-height: 38px !important;
        touch-action: manipulation;
    }

    /* Grid ve Sütun Yapılarının Mobil Dikey Dizilimi */
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

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

    /* Tablo ve Liste Mobil Uyumluğu */
    .table-responsive, div:has(> table) {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
    }

    table {
        font-size: 0.8rem !important;
    }

    th, td {
        padding: 6px 4px !important;
    }

    /* Dokunmatik Buton ve Form İyileştirmeleri */
    button, input, select, textarea {
        touch-action: manipulation;
    }

    input[type="text"], input[type="number"], input[type="password"], select, textarea {
        font-size: 16px !important; /* iOS Otomatik Zoom Engelleme */
    }

    button {
        min-height: 40px;
    }

    /* Ana Ekran Dashboard ve Profil Kartları */
    .dashboard-layout {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .sidebar {
        width: 100% !important;
        position: static !important;
    }

    .content-area {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .glass-card {
        padding: 1rem 0.75rem;
    }
    
    .modal-content {
        padding: 10px !important;
    }

    h1, .h1-responsive { font-size: 1.4rem !important; }
    h2, .h2-responsive { font-size: 1.2rem !important; }
    h3, .h3-responsive { font-size: 1.05rem !important; }
    h4, .h4-responsive { font-size: 0.95rem !important; }

    .tab-btn, .borsa-filter-btn {
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
    }
}


/* GPU Acceleration & Performance Optimizations (Zero Lag) */
* {
    -webkit-tap-highlight-color: transparent;
}
.glass-card, .modal-content, .card, .wheel-canvas, .carkifelek-container {
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}
.modal.active {
    will-change: opacity, transform;
}
.wheel-canvas {
    will-change: transform;
}

/* ULTRA HIGH PERFORMANCE GPU ACCELERATION & ZERO LAG RULES */
* {
    -webkit-tap-highlight-color: transparent !important;
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeSpeed;
}

.screen, .modal, .modal-content, .glass-card, .action-card, canvas, .btn-primary, .progress-bar {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

/* RETRO SNAKE 60 FPS ULTRA SMOOTH CANVAS & TOUCHPAD */
#snake-canvas {
    image-rendering: pixelated;
    image-rendering: -webkit-optimize-contrast;
    transform: translateZ(0);
    will-change: transform;
}

#snake-touchpad button {
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    transform: translateZ(0);
}
