/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #f0f0f5;
    --bg-secondary: #fff;
    --bg-card: #fff;
    --bg-card-hover: #f3f4f6;
    --surface: #f9fafb;
    --border: #e5e7eb;
    --border-hover: #d1d5db;

    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;

    --accent-purple: #7c3aed;
    --accent-purple-glow: rgba(124, 58, 237, 0.2);
    --accent-orange: #f59e0b;
    --accent-orange-glow: rgba(245, 158, 11, 0.2);
    --accent-green: #10b981;

    --accent-solid: #7c3aed;
    --accent-orange-solid: #f59e0b;
    --reward-color: #f59e0b;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --font: 'Outfit', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== ANA MENÃœ ===== */
.main-menu {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Header */
.header {
    text-align: center;
    padding: 50px 0 36px;
    position: relative;
}

.header-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    background: var(--accent-purple-glow);
    pointer-events: none;
    opacity: 0.15;
    border-radius: 50%;
    filter: blur(80px);
}

.header-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.header-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
}

.header-title .accent {
    color: var(--accent-purple);
}

/* ===== GAMES SECTION ===== */
.games-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.game-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.game-card:hover {
    transform: translateY(-3px) scale(1.01);
}

.game-card:active {
    transform: translateY(0) scale(0.99);
}

.game-card:hover .game-card-inner {
    border-color: var(--border-hover);
}

.game-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Oyun 1 â€” mor tema */
#game1 .game-card-bg {
    background: #ede9fe;
}

#game1:hover .game-card-bg {
    background: #ddd6fe;
}

#game1 .game-card-inner {
    background: #fff;
}

#game1:hover .game-card-inner {
    border-color: var(--border-hover);
}

/* Oyun 2 â€” turuncu tema */
#game2 .game-card-bg {
    background: #fef3c7;
}

#game2:hover .game-card-bg {
    background: #fde68a;
}

#game2 .game-card-inner {
    background: #fff;
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.08);
}

#game2:hover .game-card-inner {
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}

.game-card-full-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    border-radius: var(--radius-lg);
}

.game-card-logo {
    position: relative;
    z-index: 2;
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.game-card-name {
    position: relative;
    z-index: 2;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.game-card-inner {
    position: relative;
    padding: 0;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color var(--transition);
}

/* Disabled / YakÄ±nda card */
.game-card.disabled {
    cursor: default;
    pointer-events: none;
}

.game-card.disabled .game-card-inner {
    opacity: 0.4;
}

.game-card.disabled .game-card-bg {
    background: var(--bg-card) !important;
}

.game-card-locked {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.game-card-locked span {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Ã–dÃ¼llÃ¼ Badge */
.badge-rewarded {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
    background: var(--reward-color);
    border-radius: 50px;
    box-shadow: 0 2px 16px rgba(245, 158, 11, 0.35);
    animation: badge-pulse 2.5s ease-in-out infinite;
}

@keyframes badge-pulse {

    0%,
    100% {
        box-shadow: 0 2px 16px rgba(245, 158, 11, 0.35);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 4px 24px rgba(245, 158, 11, 0.55);
        transform: scale(1.04);
    }
}

/* ===== YAKINDA ===== */
.coming-soon-section {
    margin-bottom: 40px;
}

.coming-soon-card {
    position: relative;
    height: 90px;
    border-radius: var(--radius-lg);
    border: 2px dashed #9ca3af;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #afafaf;
    transition: border-color var(--transition), background var(--transition);
}

.coming-soon-card:hover {
    border-color: #6b7280;
    background: #9ca3af;
}

.coming-soon-dots {
    display: flex;
    gap: 6px;
}

.coming-soon-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: dot-blink 1.8s ease-in-out infinite;
}

.coming-soon-dots span:nth-child(2) {
    animation-delay: 0.3s;
}

.coming-soon-dots span:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes dot-blink {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

.coming-soon-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===== FOOTER ===== */
.footer {
    margin-top: auto;
    padding-top: 24px;
    text-align: center;
}

.footer-divider {
    width: 60px;
    height: 2px;
    margin: 0 auto 24px;
    background: var(--border);
    opacity: 0.5;
}

.footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-logo-img {
    width: 36px;
    height: 36px;
    opacity: 0.8;
}

.footer-brand {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.footer-copy {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.footer-about-link {
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color var(--transition);
}

.footer-about-link:hover {
    color: var(--accent-purple);
}

/* ===== SHORTCUT HINT ===== */
.shortcut-hint {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    animation: hint-fade 6s ease-in-out 2s forwards;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 50;
}

.shortcut-hint kbd {
    display: inline-block;
    padding: 2px 7px;
    font-family: var(--font);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

@keyframes hint-fade {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    15% {
        opacity: 1;
        transform: translateY(0);
    }

    85% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* ===== LOGIN SCREEN (Full Page â€” dashboard.html) ===== */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: overlay-in 0.35s ease-out;
}

.login-screen.hidden {
    display: none;
}

@keyframes overlay-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    padding: 40px 30px 36px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    animation: card-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
    overflow: hidden;
}

.login-card-glow {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: var(--accent-purple-glow);
    opacity: 0.15;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(60px);
}

@keyframes card-in {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.login-logo-img {
    width: 52px;
    height: 52px;
}

.login-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.login-subtitle {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

.input-group input {
    width: 100%;
    padding: 13px 16px;
    font-family: var(--font);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.input-group input:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px var(--accent-purple-glow);
}

.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    margin-top: 6px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent-purple);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--accent-purple-glow);
}

.btn-login:active {
    transform: translateY(1px);
    opacity: 0.9;
}

/* Back button (login & dashboard) */
.login-back,
.dash-back {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    padding: 8px 0;
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
    justify-content: center;
}

.login-back:hover,
.dash-back:hover {
    color: var(--text-primary);
}

.dash-back {
    margin-top: 0;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    transition: background var(--transition), color var(--transition);
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: #f0f0f5;
    animation: content-in 0.4s ease-out;
}

.dashboard-layout.hidden {
    display: none;
}

@keyframes content-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SIDEBAR (Light) ===== */
.dash-sidebar {
    width: 220px;
    min-height: 100vh;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.dash-sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 22px 18px;
    border-bottom: 1px solid #e5e7eb;
}

.dash-sidebar-logo {
    width: 30px;
    height: 30px;
}

.dash-sidebar-brand {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
}

.dash-sidebar-sub {
    display: block;
    font-size: 0.6rem;
    color: #9ca3af;
    margin-top: 1px;
}

.dash-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 10px;
    flex: 1;
}

.dash-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}

.dash-sidebar-link svg {
    flex-shrink: 0;
    color: #9ca3af;
    transition: color 0.2s ease;
    width: 18px;
    height: 18px;
}

.dash-sidebar-link:hover {
    background: #f3f0ff;
    color: #7c3aed;
}

.dash-sidebar-link:hover svg {
    color: #7c3aed;
}

.dash-sidebar-link.active {
    background: #7c3aed;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}

.dash-sidebar-link.active svg {
    color: #fff;
}

.dash-sidebar-bottom {
    padding: 10px;
    border-top: 1px solid #e5e7eb;
}

/* ===== MAIN CONTENT ===== */
.dash-main {
    flex: 1;
    margin-left: 220px;
    padding: 24px 28px 40px;
    min-height: 100vh;
    overflow-x: hidden;
    background: #f0f0f5;
}

/* Mobile header */
.dash-mobile-header {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.dash-mobile-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
}

.sidebar-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #374151;
    cursor: pointer;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== SECTIONS ===== */
.dash-section {
    display: none;
}

.dash-section.active {
    display: block;
    animation: content-in 0.3s ease-out;
}

.dash-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.dash-section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0;
}

.dash-section-subtitle {
    font-size: 0.78rem;
    color: #9ca3af;
    margin: 3px 0 0;
}

/* ===== LIVE BADGE ===== */
.dash-live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #059669;
}

.live-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* ===== STATS GRID — Bubble Cards ===== */
.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.dash-stats-grid.four-col {
    grid-template-columns: repeat(3, 1fr);
}

.dash-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.dash-stat-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.dash-stat-card.compact {
    align-items: center;
    text-align: center;
    padding: 18px 14px;
    gap: 6px;
}

.dash-stat-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.dash-stat-icon svg {
    width: 28px;
    height: 28px;
}

.dash-stat-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.dash-stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1f2937;
}

.dash-stat-label {
    font-size: 0.72rem;
    color: #9ca3af;
    font-weight: 500;
}

.dash-stat-trend {
    font-size: 0.65rem;
    font-weight: 600;
}

.dash-stat-trend.up {
    color: #10b981;
}

/* ===== CHART CARDS ===== */
.dash-charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.dash-chart-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 20px;
}

.dash-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 14px;
}

/* Line chart placeholder */
.dash-chart-placeholder-area {
    position: relative;
    height: 160px;
}

.dash-line-chart {
    position: relative;
    width: 100%;
    height: 140px;
}

.line-point {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #7c3aed;
    border-radius: 50%;
    transform: translate(-50%, 50%);
}

.chart-x-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    color: #9ca3af;
    margin-top: 8px;
}

/* ===== BAR CHART (Overview Popular Games) ===== */
.dash-bar-chart {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 4px 0;
}

.bar-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bar-label {
    font-size: 0.78rem;
    color: #4b5563;
    font-weight: 500;
}

.bar-fill {
    width: var(--bar-h, 50%);
    height: 6px;
    max-width: 100%;
    background: var(--bar-color, #7c3aed);
    border-radius: 20px;
    animation: bar-grow-h 0.8s ease-out backwards;
}

@keyframes bar-grow-h {
    from {
        width: 0%;
    }
}

@keyframes bar-grow {
    from {
        height: 0%;
    }
}

/* ===== DONUT CHART ===== */
.donut-chart-area {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    min-height: 160px;
}

.donut-chart {
    width: 120px;
    height: 120px;
}

.donut-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.75rem;
    color: #6b7280;
}

.donut-legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

/* ===== DATA TABLE ===== */
.dash-table-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 20px;
}

.dash-table-wrapper {
    overflow-x: auto;
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.dash-table th {
    text-align: left;
    padding: 10px 14px;
    font-weight: 600;
    color: #9ca3af;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dash-table td {
    padding: 10px 14px;
    color: #6b7280;
    border-bottom: 1px solid #f3f4f6;
}

.code-cell {
    color: #7c3aed;
    font-weight: 600;
    font-family: monospace;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.status-badge.used {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.status-badge.pending {
    background: rgba(234, 179, 8, 0.12);
    color: #b45309;
}

.status-badge.expired {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

/* ===== OPERATIONS PAGE ===== */
.op-filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.op-filter {
    padding: 8px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
    color: #6b7280;
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.op-filter.active {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
}

.op-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
}

.op-tables-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.op-table-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
}

.op-table-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.op-table-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1f2937;
}

.op-status-dot {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
}

.op-status-dot.playing {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.op-status-dot.full {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.op-status-dot.empty {
    background: #f3f4f6;
    color: #9ca3af;
}

.op-table-detail {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 4px 0;
}

.op-table-game {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 2px 0;
}

/* ===== NOTIFICATIONS ===== */
.op-notifications-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    max-height: 500px;
    overflow-y: auto;
}

.op-notif-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.op-notif {
    padding: 12px 14px;
    background: #f9fafb;
    border-radius: 10px;
    border-left: 3px solid #10b981;
}

.op-notif.warning {
    border-left-color: #f59e0b;
}

.op-notif-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.op-notif-table {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0891b2;
}

.op-notif p {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 4px 0;
}

.op-notif-time {
    font-size: 0.68rem;
    color: #9ca3af;
}

/* ===== REWARDS PAGE (Dashboard) ===== */
.reward-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.reward-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
}

.reward-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.reward-emoji {
    font-size: 1.8rem;
}

.reward-points {
    font-size: 0.78rem;
    font-weight: 700;
    color: #7c3aed;
}

.reward-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1f2937;
}

.reward-desc {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0 0 12px;
}

.reward-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #9ca3af;
    margin-bottom: 8px;
}

.reward-stock-bar {
    width: 100%;
    height: 4px;
    background: #f3f4f6;
    border-radius: 2px;
    overflow: hidden;
}

.reward-stock-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.6s ease;
}

/* ===== ANALYTICS — BEHAVIOR STATS ===== */
.behavior-stats {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Chart canvas wrapper */
.chart-canvas-wrap {
    position: relative;
    height: 200px;
}

.chart-canvas-wrap.donut {
    height: 220px;
}

.behavior-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.82rem;
    color: #6b7280;
}

.behavior-row:last-child {
    border-bottom: none;
}

.behavior-value {
    font-weight: 700;
    color: #7c3aed;
}

/* ===== SETTINGS PAGE ===== */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.settings-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 24px;
}

.settings-card.full-width {
    grid-column: 1 / -1;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.settings-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.settings-field input {
    width: 100%;
    padding: 10px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #1f2937;
    font-family: var(--font);
    font-size: 0.85rem;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.settings-field input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.settings-field.inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.settings-field.inline label {
    margin-bottom: 0;
    flex-shrink: 0;
}

.settings-field.inline input {
    width: 100px;
    text-align: center;
}

.color-options {
    display: flex;
    gap: 10px;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.color-option:hover {
    transform: scale(1.15);
}

.color-option.active {
    border-color: #1f2937;
    transform: scale(1.15);
}

.settings-save-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    margin-top: 16px;
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.settings-save-btn:hover {
    background: #6d28d9;
    transform: translateY(-1px);
}

/* ===== RESPONSIVE — MOBILE DASHBOARD ===== */
@media (max-width: 768px) {
    .dash-sidebar {
        transform: translateX(-100%);
    }

    .dash-sidebar.mobile-open {
        transform: translateX(0);
    }

    .dash-main {
        margin-left: 0;
        padding: 16px;
    }

    .dash-mobile-header {
        display: flex;
    }

    .dash-stats-grid,
    .dash-stats-grid.four-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-charts-row {
        grid-template-columns: 1fr;
    }

    .op-layout {
        grid-template-columns: 1fr;
    }

    .op-tables-grid {
        grid-template-columns: 1fr;
    }

    .reward-cards-grid {
        grid-template-columns: 1fr;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .donut-chart-area {
        flex-direction: column;
    }
}



/* ===== HAKKINDA PAGE ===== */
.about-page {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.about-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 0 20px;
}

.about-back {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.about-back:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.about-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* Logo & Identity */
.about-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 0 36px;
}

.about-logo-img {
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
}

.about-company-name {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    margin-bottom: 4px;
}

.about-company-tag {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-purple);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Content */
.about-content {
    padding-bottom: 28px;
}

.about-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    margin-top: 28px;
    padding-left: 12px;
    border-left: 3px solid var(--accent-purple);
}

.about-section-title:first-child {
    margin-top: 0;
}

.about-content p {
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.8;
    letter-spacing: 0.1px;
    margin-bottom: 6px;
}

/* Action Buttons */
.about-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 20px;
}

.about-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.about-action-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.about-action-btn svg {
    color: var(--accent-purple);
    flex-shrink: 0;
}

.about-footer {
    margin-top: auto;
    padding-top: 40px;
    text-align: center;
}

@media (min-width: 600px) {
    .about-page {
        max-width: 560px;
        padding: 0 30px 50px;
    }

    .about-actions {
        flex-direction: row;
    }

    .about-action-btn {
        flex: 1;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .about-page {
        max-width: 640px;
        padding: 0 40px 60px;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== SELECTION ===== */
::selection {
    background: var(--accent-purple);
    color: white;
}