/* ========================================
   OKEY'e 4. ARANIYOR - STYLES
   Mobile-First Design
   ======================================== */

:root {
    --font: 'Outfit', sans-serif;
    --bg-dark: #0a0e17;
    --bg-card: #111827;
    --bg-card-hover: #1a2035;
    --glass-bg: rgba(17, 24, 39, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --green: #00c853;
    --green-glow: rgba(0, 200, 83, 0.25);
    --gold: #ffd700;
    --gold-light: #ffe066;
    --gold-glow: rgba(255, 215, 0, 0.25);
    --red: #ff5252;
    --red-glow: rgba(255, 82, 82, 0.2);
    --text-primary: #f0f0f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.25s ease;
    --sponsor-bg: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 180, 0, 0.04));
    --sponsor-border: rgba(255, 215, 0, 0.3);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.hidden {
    display: none !important;
}

/* ===== BACKGROUND TILES ===== */
.bg-tiles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-tile {
    position: absolute;
    bottom: -50px;
    opacity: 0.04;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.04;
    }

    50% {
        opacity: 0.07;
    }

    100% {
        transform: translateY(-110vh) rotate(360deg);
        opacity: 0;
    }
}

/* ===== SCREENS ===== */
.screen {
    display: none;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.screen.active {
    display: block;
}

/* ===== AUTH ===== */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.logo-section {
    text-align: center;
    margin-bottom: 32px;
}

.logo-icon {
    font-size: 64px;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 30px var(--green-glow));
    display: flex;
    justify-content: center;
}

.logo-text {
    font-size: 36px;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(to right, #fff, var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 6px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* ===== GLASS CARD ===== */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(16px);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 28px;
}

.auth-card h2 {
    font-size: 22px;
    color: var(--gold);
    margin-bottom: 20px;
    text-align: center;
}

/* ===== INPUTS ===== */
.input-group {
    position: relative;
    margin-bottom: 14px;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    z-index: 2;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 14px;
    transition: var(--transition);
    outline: none;
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-glow);
}

.input-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.input-row {
    display: flex;
    gap: 10px;
}

.input-group.half {
    flex: 1;
}

.error-msg {
    color: var(--red);
    font-size: 13px;
    margin-top: 8px;
    min-height: 18px;
}

.switch-auth {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 16px;
}

.switch-auth a {
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
}

/* ===== BUTTONS ===== */
.btn-primary {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--green), #009624);
    color: #fff;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px var(--green-glow);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-full {
    width: 100%;
}

.btn-secondary {
    padding: 10px 18px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: var(--green);
    color: var(--green);
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-close:hover {
    background: rgba(255, 82, 82, 0.2);
    color: var(--red);
}

/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 15px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    margin: 0 15px 25px;
    border-radius: var(--radius);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Isteka Logo Style */
.isteka-logo {
    position: relative;
    width: 48px;
    height: 38px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 5px;
}

.isteka-base {
    position: absolute;
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, #7c2d12, #451a03);
    bottom: 0;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.isteka-tile {
    position: relative;
    z-index: 2;
    background: #fff;
    color: #1e293b;
    font-size: 13px;
    font-weight: 950;
    width: 24px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.5);
    transform: rotate(-6deg) translateY(-2px);
    border: 1.5px solid #e2e8f0;
    font-family: inherit;
}

.nav-title {
    font-size: 22px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-title-small {
    font-size: 14px;
    font-weight: 700;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--green);
}

.nav-username {
    font-size: 13px;
    font-weight: 600;
    display: none;
}

.btn-back {
    padding: 8px 14px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-back:hover {
    border-color: var(--green);
    color: var(--green);
}

/* ===== FILTERS ===== */
.filters-bar {
    padding: 14px;
    margin-bottom: 12px;
}

.filter-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-row select {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 13px;
    outline: none;
}

.filter-row select option {
    background: var(--bg-card);
}

.btn-filter {
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--green);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-filter:hover {
    box-shadow: 0 4px 15px var(--green-glow);
}

/* ===== LOBBY ===== */
.lobby-content {
    padding: 0 12px 130px;
    max-width: 800px;
    margin: 0 auto;
}

.create-section {
    margin-bottom: 16px;
}

.btn-create-table {
    width: 100%;
    padding: 14px;
    border: 2px dashed var(--green);
    border-radius: var(--radius);
    background: rgba(0, 200, 83, 0.06);
    color: var(--green);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-create-table:hover {
    background: rgba(0, 200, 83, 0.12);
    box-shadow: 0 0 25px var(--green-glow);
    transform: translateY(-2px);
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 14px;
    font-weight: 700;
    padding: 8px 0;
    color: var(--text-secondary);
}

.sponsor-title {
    color: var(--gold);
}

.sponsor-section {
    margin-bottom: 20px;
}

/* Sponsor Scroll - Horizontal */
.sponsor-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.sponsor-scroll::-webkit-scrollbar {
    height: 4px;
}

.sponsor-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.sponsor-scroll::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

/* Sponsor Card - Premium Feel */
.sponsor-card {
    min-width: 200px;
    max-width: 220px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.15);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    scroll-snap-align: start;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
}

.sponsor-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius);
    box-shadow: inset 0 0 15px rgba(255, 215, 0, 0.05);
    pointer-events: none;
}

.sponsor-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--gold);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.1);
}

.sponsor-card-img {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    background-color: #0f172a;
    position: relative;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.sponsor-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, var(--gold), #fcd34d);
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
}

.sponsor-card-body {
    padding: 10px 12px;
}

.sponsor-card-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sponsor-card-location {
    font-size: 11px;
    color: var(--text-muted);
}

/* Venue Image Upload */
.venue-image-upload {
    margin-bottom: 14px;
}

.image-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 140px;
    border: 2px dashed rgba(255, 215, 0, 0.3);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    background: rgba(255, 215, 0, 0.03);
    position: relative;
}

.image-upload-label:hover {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.06);
}

.upload-placeholder {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Venue Item with Image */
.venue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
}

.venue-item-img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.venue-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.venue-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.venue-location {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-delete-venue {
    padding: 8px 12px;
    border: 1px solid rgba(255, 82, 82, 0.2);
    border-radius: var(--radius-sm);
    background: rgba(255, 82, 82, 0.06);
    color: var(--red);
    font-family: var(--font);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-delete-venue:hover {
    background: rgba(255, 82, 82, 0.15);
    border-color: var(--red);
}

/* ===== TABLE CARDS ===== */
.tables-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.table-card {
    padding: 16px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
}

.table-card:hover {
    transform: translateY(-2px);
    border-color: var(--green);
    box-shadow: 0 8px 30px rgba(0, 200, 83, 0.1);
}

.table-card:active {
    transform: scale(0.99);
}

/* Sponsor card */
.table-card.sponsor {
    background: var(--sponsor-bg);
    border: 1.5px solid var(--sponsor-border);
    position: relative;
    overflow: hidden;
}

.table-card.sponsor::before {
    content: '⭐ SPONSOR';
    position: absolute;
    top: 8px;
    right: -22px;
    background: var(--gold);
    color: #000;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 28px;
    transform: rotate(45deg);
    letter-spacing: 0.5px;
}

.table-card.sponsor:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 30px var(--gold-glow);
}

.card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--glass-border);
    flex-shrink: 0;
}

.card-info {
    flex: 1;
    min-width: 0;
}

.card-info h3 {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-creator {
    font-size: 12px;
    color: var(--text-muted);
}

.card-venue {
    font-size: 11px;
    color: var(--gold);
    font-weight: 600;
}

.card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

/* card-badge is same as badge */
.card-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.badge-101,
.card-badge.badge-101 {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.badge-duz,
.card-badge.badge-duz {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}

.badge-normal,
.card-badge.badge-normal {
    background: rgba(0, 200, 83, 0.1);
    color: var(--green);
}

.badge-hesabina,
.card-badge.badge-hesabina {
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold);
}

.badge-location,
.card-badge.badge-location {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

.badge-seats,
.card-badge.badge-seats {
    background: rgba(0, 200, 83, 0.08);
    color: var(--green);
}

.badge-count {
    background: rgba(0, 200, 83, 0.1);
    color: var(--green);
}

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.player-dots {
    display: flex;
    gap: 4px;
}

.player-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid var(--glass-border);
}

.player-dot.filled {
    background: var(--green);
    border-color: var(--green);
}

.player-count {
    font-size: 12px;
    color: var(--text-muted);
}

.card-missing {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    text-align: right;
}

/* ===== NO TABLES ===== */
.no-tables {
    text-align: center;
    padding: 60px 20px;
}

.empty-state {
    color: var(--text-muted);
}

.empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.empty-state p {
    font-size: 14px;
}

/* ===== TABLE DETAIL ===== */
.table-detail-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 12px 12px 130px;
}

.table-info-bar {
    padding: 14px;
    margin-bottom: 12px;
}

.table-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.meta-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.badge-101-detail {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.badge-duz-detail {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}

.meta-location {
    font-size: 13px;
    color: var(--text-secondary);
}

.meta-status {
    font-size: 13px;
    color: var(--green);
    font-weight: 600;
    margin-left: auto;
}

/* ===== TABLE LAYOUT ===== */
.table-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===== OKEY TABLE ===== */
.okey-table-area {
    position: relative;
}

.okey-table {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    aspect-ratio: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-surface {
    width: 65%;
    height: 60%;
    background: linear-gradient(135deg, #1a472a, #0d2818);
    border-radius: 50%;
    border: 3px solid rgba(0, 200, 83, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(0, 200, 83, 0.08);
}

.table-center-text {
    text-align: center;
}

.okey-emoji {
    font-size: 28px;
    display: block;
}

.table-center-text span:last-child {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.2);
}

.seat {
    position: absolute;
    text-align: center;
}

.seat-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.seat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.seat-avatar.empty-seat {
    border: 2px dashed var(--text-muted);
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
}

.seat-avatar.empty-seat:hover {
    border-color: var(--green);
    color: var(--green);
}

.seat-avatar.pending-seat {
    border: 2px solid var(--gold);
}

.seat-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seat-1 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.seat-2 {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.seat-3 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.seat-4 {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* ===== PENDING REQUESTS ===== */
.pending-requests {
    padding: 16px;
    margin-top: 12px;
}

.pending-requests h3 {
    font-size: 15px;
    margin-bottom: 10px;
}

.pending-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.pending-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.pending-info {
    flex: 1;
    min-width: 0;
}

.pending-name {
    font-weight: 700;
    font-size: 14px;
}

.pending-detail {
    font-size: 12px;
    color: var(--text-muted);
}

.pending-stars {
    color: var(--gold);
    font-size: 12px;
}

.pending-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.btn-approve,
.btn-reject {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-approve {
    background: rgba(0, 200, 83, 0.15);
    color: var(--green);
}

.btn-approve:hover {
    background: rgba(0, 200, 83, 0.25);
}

.btn-reject {
    background: rgba(255, 82, 82, 0.12);
    color: var(--red);
}

.btn-reject:hover {
    background: rgba(255, 82, 82, 0.25);
}

/* ===== CREATOR CONTROLS ===== */
.creator-controls {
    padding: 16px;
    margin-top: 12px;
}

.creator-controls h3 {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.count-adjuster {
    display: flex;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.btn-adjust {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
}

.btn-adjust:hover {
    background: var(--green);
    color: #fff;
}

.count-value {
    width: 40px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    background: rgba(255, 215, 0, 0.06);
    border-left: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
}

.btn-close-table {
    padding: 8px 16px;
    background: rgba(255, 82, 82, 0.12);
    color: var(--red);
    border: 1px solid rgba(255, 82, 82, 0.25);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-close-table:hover {
    background: rgba(255, 82, 82, 0.25);
}

/* ===== CHAT ===== */
.chat-panel {
    display: flex;
    flex-direction: column;
    max-height: 400px;
}

.chat-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--glass-border);
}

.chat-header h3 {
    font-size: 14px;
}

.chat-messages {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    min-height: 150px;
}

.chat-welcome {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    padding: 20px;
}

.chat-msg {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.chat-msg.mine {
    flex-direction: row-reverse;
}

.chat-msg-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.chat-msg-body {
    max-width: 70%;
}

.chat-msg-name {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.chat-msg.mine .chat-msg-name {
    text-align: right;
}

.chat-msg-text {
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.06);
    word-wrap: break-word;
}

.chat-msg.mine .chat-msg-text {
    background: rgba(0, 200, 83, 0.12);
}

.chat-msg-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

.chat-msg.mine .chat-msg-time {
    text-align: right;
}

.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--glass-border);
}

.chat-input-area input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 13px;
    outline: none;
}

.chat-input-area input:focus {
    border-color: var(--green);
}

.btn-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--green);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-send:hover {
    box-shadow: 0 4px 15px var(--green-glow);
}

/* ===== MODALS ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal {
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    animation: modalIn 0.2s ease;
}

.modal-compact {
    max-width: 360px;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 18px;
    color: var(--gold);
}

.modal-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* ===== GAME TYPE SELECTOR ===== */
.game-type-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.type-option {
    flex: 1;
    cursor: pointer;
}

.type-option input {
    display: none;
}

.type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 10px;
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-align: center;
}

.type-option input:checked+.type-card {
    border-color: var(--green);
    background: rgba(0, 200, 83, 0.08);
    box-shadow: 0 0 15px var(--green-glow);
}

.type-icon {
    font-size: 22px;
}

.type-label {
    font-size: 14px;
    font-weight: 700;
}

/* ===== SEATS SELECTOR ===== */
.seats-selector {
    margin-bottom: 18px;
}

.seats-selector h4 {
    font-size: 14px;
    margin-bottom: 10px;
}

.seats-options {
    display: flex;
    gap: 8px;
}

.seat-option {
    flex: 1;
    cursor: pointer;
}

.seat-option input {
    display: none;
}

.seat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px 8px;
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-align: center;
}

.seat-option input:checked+.seat-card {
    border-color: var(--green);
    background: rgba(0, 200, 83, 0.08);
}

.seat-card span {
    font-size: 20px;
    font-weight: 700;
}

.seat-card small {
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== SEAT CHECKBOXES ===== */
.seat-checkboxes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.seat-checkbox-item {
    flex: 1;
    min-width: 70px;
    cursor: pointer;
}

.seat-checkbox-item input {
    display: none;
}

.seat-checkbox-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 8px;
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-align: center;
}

.seat-checkbox-item input:checked+.seat-checkbox-card {
    border-color: var(--green);
    background: rgba(0, 200, 83, 0.1);
    box-shadow: 0 0 12px var(--green-glow);
}

.seat-checkbox-num {
    font-size: 12px;
    font-weight: 600;
}

.seat-checkbox-icon {
    font-size: 20px;
}

/* ===== PROFILE ===== */
.profile-content {
    text-align: center;
}

.profile-avatar-section {
    margin-bottom: 20px;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 12px;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--green);
}

.btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.profile-info {
    text-align: left;
}

.profile-field {
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
}

.profile-field label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 2px;
}

.profile-field span {
    font-size: 15px;
    font-weight: 500;
}

/* ===== RATING MODAL ===== */
.rating-player {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

.rating-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.rating-info {
    flex: 1;
}

.rating-name {
    font-weight: 700;
    font-size: 14px;
}

.rating-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.rating-stars {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}

.star-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 215, 0, 0.1);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.star-btn:hover {
    background: rgba(255, 215, 0, 0.2);
}

.star-btn.active {
    background: rgba(255, 215, 0, 0.3);
}

.rating-comment {
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 12px;
    resize: none;
    outline: none;
    height: 50px;
}

.rating-comment:focus {
    border-color: var(--green);
}

.btn-rate {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: var(--green);
    color: #fff;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    transition: var(--transition);
}

.btn-rate:hover {
    box-shadow: 0 4px 12px var(--green-glow);
}

.btn-rate:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.already-rated {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

/* ===== ADMIN ===== */
.admin-venue-list {
    margin-top: 20px;
}

.admin-venue-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: rgba(255, 215, 0, 0.04);
    border-radius: 8px;
    margin-bottom: 6px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.admin-venue-info {
    font-size: 13px;
}

.admin-venue-name {
    font-weight: 700;
    color: var(--gold);
}

.admin-venue-loc {
    font-size: 11px;
    color: var(--text-muted);
}

.btn-delete-venue {
    padding: 4px 10px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 82, 82, 0.15);
    color: var(--red);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-delete-venue:hover {
    background: rgba(255, 82, 82, 0.3);
}

/* ===== STAR DISPLAY ===== */
.stars-display {
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 1px;
}

/* ===== FOOTER ===== */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: linear-gradient(180deg, rgba(10, 14, 23, 0.95), rgba(6, 8, 12, 0.99));
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 215, 0, 0.12);
    padding: 12px 16px;
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--green), var(--gold), var(--green), transparent);
    animation: footerGlow 4s ease-in-out infinite;
}

@keyframes footerGlow {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo {
    font-size: 22px;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.footer-title .green {
    color: var(--green);
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.footer-divider {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-credit {
    font-size: 8px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.footer-author {
    font-size: 14px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold), #ffab00, var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    filter: drop-shadow(0 0 6px var(--gold-glow));
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-year {
    font-size: 10px;
    color: var(--text-muted);
}

.instagram-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
    transition: var(--transition);
}

.instagram-link:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.4);
}

.instagram-icon {
    width: 18px;
    height: 18px;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
    .nav-username {
        display: inline;
    }

    .lobby-content {
        padding: 12px 20px 130px;
    }

    .tables-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .table-layout {
        flex-direction: row;
    }

    .okey-table-area {
        flex: 1;
    }

    .chat-panel {
        flex: 1;
        max-height: 500px;
    }
}

@media (min-width: 1024px) {
    .lobby-content {
        max-width: 1000px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
    }

    .footer-left,
    .footer-right {
        flex-basis: 100%;
        justify-content: center;
    }

    .okey-table {
        max-width: 320px;
    }

    .seat-avatar {
        width: 40px;
        height: 40px;
    }

    .pending-item {
        flex-direction: column;
        text-align: center;
    }

    .pending-actions {
        justify-content: center;
    }

    .control-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-close-table {
        text-align: center;
    }
}

/* ==========================================
   ADMIN SCREEN
   ========================================== */

.admin-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px 12px 130px;
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 4px;
    padding: 6px;
    margin-bottom: 20px;
    border-radius: var(--radius);
}

.admin-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.admin-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.admin-tab.active {
    background: linear-gradient(135deg, var(--green), #009624);
    color: #fff;
    box-shadow: 0 4px 15px var(--green-glow);
}

/* Admin Panel */
.admin-panel {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.admin-panel-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-refresh {
    padding: 8px 14px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-refresh:hover {
    border-color: var(--green);
    color: var(--green);
}

/* Stats */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 14px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--green);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 20px;
}

.stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--green);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Search */
.admin-search-bar {
    margin-bottom: 14px;
}

.admin-search-bar input {
    width: 100%;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.admin-search-bar input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-glow);
}

/* Admin Users Grid */
.admin-users-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.admin-user-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(2px);
}

.admin-user-card.is-admin {
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.03);
}

.admin-user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.admin-user-info {
    flex: 1;
    min-width: 0;
}

.admin-user-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.admin-user-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.user-admin-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold);
}

.admin-user-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-user-detail {
    font-size: 12px;
    color: var(--text-muted);
}

.admin-user-actions {
    flex-shrink: 0;
}

.btn-delete-user {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255, 82, 82, 0.2);
    background: rgba(255, 82, 82, 0.06);
    color: var(--red);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete-user:hover {
    background: rgba(255, 82, 82, 0.15);
    border-color: var(--red);
    transform: scale(1.05);
}

/* Admin States */
.admin-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.admin-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.admin-error {
    text-align: center;
    padding: 40px 20px;
    color: var(--red);
    font-size: 14px;
}

/* Admin Venue Form */
.admin-venue-form {
    padding: 20px;
    margin-bottom: 16px;
}

.admin-venue-form h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

/* (venue styles moved to sponsor section above) */

/* Admin nav button */
.btn-admin-nav {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.btn-admin-nav:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--gold);
}

/* Responsive for admin */
@media (max-width: 480px) {
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-user-details {
        flex-direction: column;
        gap: 3px;
    }
}