:root {
    --gold: #fecb00;
    --gold-glow: rgba(254, 203, 0, 0.4);
    --white: #ffffff;
    --grey-text: #999999;
    --panel-bg: linear-gradient(to bottom, #2b2b2b 0%, #000000 100%);
    --box-gradient: linear-gradient(to bottom, #fceb8d 0%, #d89f02 100%);
    --font-main: 'Roboto', sans-serif;
    --font-nums: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
}

input, textarea, [contenteditable="true"] {
    user-select: text;
}

body {
    font-family: var(--font-main);
    background-color: #000;
    color: var(--white);
    overflow: hidden; /* Disabled scroll for the game panel */
    display: flex;
    height: 100vh;
}

/* Menu Toggle Button */
.menu-toggle {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    background: transparent;
    border: none;
    color: var(--grey-text);
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: var(--gold);
}

.menu-toggle svg {
    width: 32px;
    height: 32px;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background-color: #111;
    border-right: 1px solid #333;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
    padding-top: 80px;
    will-change: transform;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
}

.sidebar-header h2 {
    color: var(--gold);
    font-size: 1.2rem;
}

.menu-items {
    list-style: none;
    padding: 0 10px;
}

.menu-item {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--grey-text);
    font-size: 1.1rem;
    padding: 15px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.menu-item:hover {
    background: #222;
    color: var(--white);
}

.menu-item.active {
    background: rgba(254, 203, 0, 0.1);
    color: var(--gold);
    border-left: 3px solid var(--gold);
}

/* Main Content & Page Switching */
#main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    position: relative;
    padding: 0;
    will-change: transform;
}

.page-view {
    display: none;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    scrollbar-gutter: stable;
    padding: 30px 20px;
    opacity: 0;
}

.page-view.active {
    display: flex;
    animation: pageFadeIn 0.5s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pageFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.page-title {
    color: var(--gold);
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 20px; /* Reduced gap */
    letter-spacing: 2px;
}

.compact-title {
    margin-bottom: 10px;
}

.compact-section {
    margin-top: -10px !important;
}

.seating-panel {
    max-width: 1600px !important;
}

/* Poker Tables Visuals */
.tables-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
    width: 100%;
}

.table-wrap {
    padding: 60px 40px;
}

.poker-table {
    width: 380px;
    height: 220px;
    background: radial-gradient(circle, #0a7c2e 0%, #054d1c 100%);
    border: 14px solid #3d2b1f; /* Thicker wood rim */
    border-radius: 110px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7), inset 0 0 30px rgba(0,0,0,0.5);
}

.table-number {
    font-family: var(--font-nums);
    font-size: 5rem;
    color: rgba(255,255,255,0.15);
    user-select: none;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.05));
}

.dealer-spot {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 46px;
    height: 46px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: 0 6px 15px rgba(0,0,0,0.6);
    z-index: 10;
    border: 4px solid #222;
}

.seats-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.seat {
    position: absolute;
    width: 34px;
    height: 34px;
    background: #1a1a1a;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    transition: all 0.2s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    z-index: 8;
}

/* Positioning 10 seats exactly ON THE RIM clockwise from dealer */
.s1  { top: 5%;   left: 70%;  transform: translate(-50%, -50%); }
.s2  { top: 25%;  left: 93%;  transform: translate(-50%, -50%); }
.s3  { top: 50%;  left: 100%; transform: translate(-50%, -50%); }
.s4  { top: 75%;  left: 93%;  transform: translate(-50%, -50%); }
.s5  { top: 95%;  left: 70%;  transform: translate(-50%, -50%); }
.s6  { top: 95%;  left: 30%;  transform: translate(-50%, -50%); }
.s7  { top: 75%;  left: 7%;   transform: translate(-50%, -50%); }
.s8  { top: 50%;  left: 0%;   transform: translate(-50%, -50%); }
.s9  { top: 25%;  left: 7%;   transform: translate(-50%, -50%); }
.s10 { top: 5%;   left: 30%;  transform: translate(-50%, -50%); }

/* Players List Section */
.players-list-section {
    margin-top: 80px;
    width: 100%;
    max-width: 900px;
}

.section-title {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.players-table-container {
    background: rgba(255,255,255,0.03);
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
}

.players-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.players-table th {
    background: #222;
    color: var(--gold);
    text-align: left;
    padding: 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.players-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #222;
    color: #ccc;
}

.seating-grid td, .seating-grid th {
    text-align: center;
}

.seating-grid th:first-child, .seating-grid td:first-child {
    width: 80px;
    color: var(--gold);
    font-weight: bold;
    background: rgba(0,0,0,0.2);
}

/* Waiting List Styles */
.waiting-list-section {
    margin-top: 30px;
    width: 100%;
    max-width: 900px;
}

.waiting-list-container {
    background: rgba(255,255,255,0.03);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
}

/* Add Player Form */
.add-player-form-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #222;
    width: 100%;
    max-width: 900px;
}

.form-row {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    background: rgba(255,255,255,0.02);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.input-group label {
    font-size: 0.75rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.styled-input {
    background: #111;
    border: 1px solid #444;
    padding: 12px 15px;
    border-radius: 4px;
    color: var(--white);
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.styled-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 8px rgba(254, 203, 0, 0.2);
}

.styled-input::placeholder {
    color: #666;
    font-style: italic;
    opacity: 0.6;
}

.compact-input {
    max-width: 100px;
}

.add-btn-premium {
    background: linear-gradient(135deg, var(--gold) 0%, #b8860b 100%);
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
    height: 45px;
}

.add-btn-premium:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Rebuy / Addon Buttons and Badges */
.registration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

/* Hide number arrows */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cal-nav-btn {
    background: rgba(254, 203, 0, 0.1);
    border: 1.5px solid #333;
    color: var(--gold);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.cal-nav-btn:hover {
    background: var(--gold);
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(254, 203, 0, 0.4);
}

.calendar-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #0a0a0a;
    border: 1.5px solid #333;
    border-radius: 8px;
    padding: 0 20px;
    transition: all 0.3s;
    justify-content: center;
}

.calendar-wrapper:hover {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(254, 203, 0, 0.2);
}

.registration-date-input {
    background: transparent;
    border: none;
    color: var(--gold);
    padding: 10px 0;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    min-width: 130px;
    text-align: center;
}

.registration-date-input:hover, .registration-date-input:focus {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
}



.registration-date-input::-webkit-calendar-picker-indicator {
    display: none !important;
}

/* Custom Calendar Popup - REDESIGNED FOR PREMIUM LOOK */
.calendar-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: linear-gradient(145deg, #1a1a1a 0%, #050505 100%);
    border: 1px solid rgba(254, 203, 0, 0.3);
    border-radius: 24px;
    padding: 30px;
    z-index: 2500;
    width: 360px;
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.8), 
        0 0 20px rgba(254, 203, 0, 0.1),
        inset 0 0 1px 1px rgba(255,255,255,0.05);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    backdrop-filter: blur(20px);
    user-select: none;
}

.calendar-popup.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

#cal-month-year {
    color: var(--gold);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1.1rem;
    text-shadow: 0 0 15px rgba(254, 203, 0, 0.5);
    font-family: var(--font-nums);
}

.cal-nav {
    background: rgba(254, 203, 0, 0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--gold);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.cal-nav:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 15px var(--gold-glow);
    border-color: #fff;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #999;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    border: 1px solid transparent;
    font-family: var(--font-nums);
}

.cal-day:hover:not(.prev-month):not(.next-month) {
    background: rgba(254, 203, 0, 0.15);
    color: var(--gold);
    border-color: rgba(254, 203, 0, 0.4);
    transform: scale(1.1);
}

.cal-day.today {
    border: 1px solid rgba(254, 203, 0, 0.5);
    color: var(--gold);
    background: rgba(254, 203, 0, 0.05);
}

.cal-day.selected {
    background: linear-gradient(135deg, var(--gold) 0%, #b8860b 100%);
    color: #000;
    box-shadow: 0 0 20px var(--gold-glow);
    font-weight: 900;
    transform: scale(1.1);
}

.cal-day.prev-month, .cal-day.next-month {
    color: #2a2a2a;
    cursor: default;
}

.calendar-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
}

#cal-today-btn {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--gold);
    font-size: 0.8rem;
    padding: 10px 30px;
    border-radius: 10px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 1.5px;
    transition: all 0.3s;
}

#cal-today-btn:hover {
    background: rgba(254, 203, 0, 0.1);
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(254, 203, 0, 0.2);
}

.bar-services-section {
    border-bottom: 1px solid #222;
    padding-bottom: 30px;
}

.bar-btn {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%) !important;
}

#tour-date-wrapper:hover .styled-input {
    border-color: var(--gold);
    box-shadow: 0 0 12px rgba(254, 203, 0, 0.3);
}

.badge-bar {
    background: #27ae60;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.player-info-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-badges {
    display: flex;
    gap: 5px;
}

.badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.badge-rebuy { background: #0088ff; }
.badge-addon { background: #fecb00; color: #000; }

.badge-count {
    background: rgba(0,0,0,0.3);
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 0.6rem;
}

.reset-action {
    min-width: 32px !important;
    border-color: rgba(255,255,255,0.2) !important;
    color: rgba(255,255,255,0.5) !important;
}

.reset-action:hover {
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
}

.action-btns {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    padding-left: 0; /* Removed to align with cell padding */
}

.btn-ra {
    min-width: 55px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Quicksand', sans-serif; /* Extremely soft and smooth font */
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
}

.btn-ra:hover {
    transform: translateY(-2px);
    color: #fff;
}

/* Rebuy - Neon Blue */
.rebuy-action {
    border-color: #0088ff;
    color: #0088ff;
    box-shadow: inset 0 0 8px rgba(0, 136, 255, 0.1);
}

.rebuy-action:hover {
    background: #0088ff;
    box-shadow: 0 0 20px rgba(0, 136, 255, 0.4);
    border-color: #00d4ff;
    color: #fff;
}

/* Addon - Neon Gold */
.addon-action {
    border-color: #fecb00;
    color: #fecb00;
    box-shadow: inset 0 0 8px rgba(254, 203, 0, 0.1);
}

.addon-action:hover {
    background: #fecb00;
    box-shadow: 0 0 20px rgba(254, 203, 0, 0.4);
    border-color: #fff700;
    color: #000;
}

/* Out - Neon Red */
.out-action {
    border-color: #ff4444;
    color: #ff4444;
    box-shadow: inset 0 0 8px rgba(255, 68, 68, 0.1);
}

.out-action:hover {
    background: #ff4444;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.4);
    border-color: #ff8888;
    color: #fff;
}

/* Player Out Styling */
.player-out {
    opacity: 0.55;
    filter: grayscale(0.7);
    transition: all 0.5s ease;
    background: rgba(255, 255, 255, 0.01);
}

.player-out .btn-ra {
    pointer-events: none;
    border-color: #555;
    color: #666;
}

.player-out .out-action {
    pointer-events: auto; /* Allow undo */
    opacity: 1;
    filter: none;
}

.delete-player-btn {
    background: none;
    border: none;
    color: #ff4444;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 10px;
    transition: transform 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-player-btn:hover {
    color: #ff0000;
    transform: scale(1.2);
}

.waiting-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, auto); /* Max 5 items per column */
    grid-auto-flow: column; /* Fill columns first */
    gap: 0 40px;
    padding-left: 25px;
    color: #ccc;
}

.waiting-list li {
    padding: 5px 0;
    border-bottom: 1px solid #222;
}

.waiting-list li::marker {
    color: var(--gold);
    font-weight: bold;
}

.content-shifted {
    transform: translateX(280px);
}

.app-background {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at bottom left, #3a2e05 0%, #000000 60%);
}

.light-rays {
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 140%;
    height: 150%;
    background: repeating-conic-gradient(from -20deg at 0% 100%, 
        rgba(254, 203, 0, 0.04) 0deg 8deg, 
        transparent 8deg 24deg);
    pointer-events: none;
    z-index: 1;
}

.bwin-panel {
    z-index: 2;
    width: 98%;
    max-width: 1100px;
    background: var(--panel-bg);
    border-radius: 15px;
    border: 1px solid #333;
    padding: 40px 50px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.9), inset 0 2px 10px rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 3-Column Base Grid for all rows */
.grid-row {
    display: grid;
    grid-template-columns: 1fr 340px 1fr;
    width: 100%;
    align-items: flex-start;
}

/* Top Row */
.top-row {
    margin-bottom: 40px;
}

.top-item {
    display: flex;
    flex-direction: column;
}

.top-item:nth-child(1) { align-items: flex-start; }
.top-item:nth-child(2) { align-items: center; }
.top-item:nth-child(3) { align-items: flex-end; }

.top-item .label {
    font-size: 0.85rem;
    color: var(--grey-text);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.top-item .value {
    color: var(--gold);
    font-size: 1.8rem;
    text-shadow: 0 0 12px var(--gold-glow);
    font-variant-numeric: tabular-nums;
}

.level-item .value {
    font-size: 2.3rem;
    font-weight: 900;
}

/* Main Timer Row */
.main-timer-row {
    margin-bottom: 30px;
}

.stats-side-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.blinds-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Aligns right edge with Top Row's right edge */
}

.circular-progress {
    width: 340px;
    height: 340px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}



.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg) scaleY(-1);
}

.progress-ring__circle {
    transition: stroke-dashoffset 1s linear;
    filter: drop-shadow(0 0 12px rgba(254, 203, 0, 0.7));
}

.timer-large {
    font-size: 5.5rem;
    color: var(--gold);
    text-shadow: 0 0 20px var(--gold-glow);
    line-height: 1;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    width: 100%;
    align-items: center;
}

.t-part { 
    font-variant-numeric: tabular-nums; 
    letter-spacing: 0;
}
.t-min { text-align: right; }
.t-sec { text-align: left; }
.t-sep { 
    display: flex;
    justify-content: center;
    width: 26px;
    text-align: center;
}

/* Controls Grid - Specifically tight center */
.center-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-controls-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    width: 100%;
}

.ctrl-center { display: flex; justify-content: center; }

.control-btn {
    background: rgba(254, 203, 0, 0.05);
    border: 2px solid var(--gold);
    color: var(--gold);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 10px rgba(254, 203, 0, 0.2);
}

.control-btn:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 20px var(--gold-glow);
    transform: translateY(-2px);
}

.play-btn {
    box-shadow: 0 0 20px var(--gold-glow);
}

.play-btn:hover {
    box-shadow: 0 0 30px var(--gold-glow);
}

.blinds-box .box-header {
    background: rgba(0, 136, 255, 0.1);
    color: #00d4ff;
    border-bottom: 1px solid #004488;
}

.blinds-box .row-value {
    color: #00d4ff;
    text-shadow: 0 0 8px rgba(0, 136, 255, 0.5);
    font-size: 0.85rem;
}

.timer-jump {
    font-family: 'Outfit', sans-serif;
}

.control-btn svg {
    width: 22px;
    height: 22px;
}

.play-btn svg {
    width: 30px;
    height: 30px;
}

/* Seating & Waiting Unified Grid */
.seating-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
    margin-top: 20px !important;
}

#waiting-tables {
    grid-template-columns: repeat(3, 1fr) !important;
}

.table-card {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(254, 203, 0, 0.1) !important;
    border-radius: 12px !important;
    width: 100% !important;
    padding: 15px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
    transition: transform 0.3s !important;
}

.seating-card {
    min-height: auto !important;
}

.waiting-card {
    min-height: 500px !important;
}

.table-card:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(254, 203, 0, 0.5) !important;
}

.table-title {
    color: var(--gold) !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    text-align: center !important;
    margin-bottom: 15px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

.table-seats {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.seat-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 6px 12px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    transition: background 0.2s;
}

.seat-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

.seat-num {
    color: var(--gold) !important;
    font-weight: 800 !important;
    min-width: 25px !important;
}

.seat-name {
    color: #eee !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.hidden {
    display: none !important;
}

/* Custom Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Above sidebar */
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--panel-bg);
    border: 1px solid var(--gold);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 0 50px rgba(254, 203, 0, 0.3), inset 0 0 20px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.2s ease-out;
    position: relative;
}

/* Custom Scrollbar for Modal */
.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--gold-glow);
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-content h2 {
    color: var(--gold);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1.5rem;
    text-shadow: 0 0 15px var(--gold-glow);
}

.modal-content p {
    color: #eee;
    margin-bottom: 35px;
    font-size: 1.15rem;
    line-height: 1.6;
    font-weight: 500;
}

.modal-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.modal-btn {
    padding: 14px 40px;
    border-radius: 10px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.modal-btn.confirm {
    background: linear-gradient(135deg, var(--gold) 0%, #b8860b 100%);
    color: #000;
    box-shadow: 0 10px 20px rgba(254, 203, 0, 0.2);
}

.modal-btn.confirm:hover {
    box-shadow: 0 0 25px var(--gold-glow);
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.modal-btn.cancel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    color: #aaa;
}

.modal-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #888;
}

/* Bottom Boxes */
.bottom-boxes {
    display: flex;
    gap: 30px;
    justify-content: center;
    width: 100%;
}

.info-box {
    width: 230px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    overflow: hidden;
}

.box-header {
    font-weight: 900;
    font-size: 0.9rem;
    padding: 10px 15px;
    background: rgba(254, 203, 0, 0.1);
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #333;
}

.box-content {
    padding: 15px;
}

.box-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
}

.row-label {
    color: rgba(255,255,255,0.6);
}

.row-value {
    color: var(--gold);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

.box-row:last-child {
    margin-bottom: 0;
}

.day-check {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.day-check input {
    display: none;
}

.day-check span {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid #333;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #666;
    transition: all 0.2s;
}

.day-check input:checked + span {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    box-shadow: 0 0 10px var(--gold-glow);
}

.styled-select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23fecb00%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><polyline points=%226 9 12 15 18 9%22></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
    background-color: rgba(0,0,0,0.3) !important;
    color: #fff !important;
    border: 1px solid #333 !important;
    cursor: pointer;
}

.styled-select option {
    background-color: #111;
    color: #fff;
    padding: 10px;
}

.tournament-title-header {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 2.2rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 25px;
    text-shadow: 0 0 15px rgba(254, 203, 0, 0.4);
    border-bottom: 1px solid rgba(254, 203, 0, 0.1);
    padding-bottom: 15px;
}

.game-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

/* TV Compact mode */
.bwin-panel {
    padding: 20px !important;
}

.circular-progress {
    transform: scale(0.9);
    margin: -20px 0 !important;
}

.controls-grid {
    margin-top: 10px !important;
    gap: 15px !important;
}

.main-timer-row {
    margin-bottom: 0 !important;
}

.fullscreen-btn {
    position: absolute;
    right: 20px;
    bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    color: #666;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-btn:hover {
    background: rgba(254, 203, 0, 0.1);
    color: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(254, 203, 0, 0.2);
}

.break-overlay {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: #ff3b30;
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 0 0 20px rgba(255, 59, 48, 0.6);
    animation: pulseBreak 2s infinite ease-in-out;
    z-index: 10;
    white-space: nowrap;
}

@keyframes pulseBreak {
    0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

.add-btn-premium {
    background: linear-gradient(135deg, var(--gold) 0%, #b8860b 100%);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    box-shadow: 0 0 10px rgba(254, 203, 0, 0.2);
}

.add-btn-premium:hover {
    background: var(--gold);
    box-shadow: 0 0 25px var(--gold-glow);
    transform: translateY(-2px);
}

.clear-btn-premium {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #444;
    color: #888;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.clear-btn-premium:hover {
    background: #555;
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: #777;
}

/* Fullscreen Mode Improvements - COMMAND CENTER */
/* Fullscreen Mode - Universal Scaling (Cinema Perfect) */
.bwin-panel:fullscreen {
    width: 1000px !important; /* Lock to stable base width */
    height: 750px !important; /* Lock to stable base height */
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #000 !important;
    border: none !important;
    border-radius: 0 !important;
    
    /* Center the locked container in the middle of the screen */
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    
    /* Mathematically scale to fit any screen proportionally */
    /* Fits both width and height while maintaining aspect ratio */
    transform: translate(-50%, -50%) scale(min(calc(100vw / 1050), calc(100vh / 800))) !important;
    transform-origin: center center !important;
    
    display: block !important;
    overflow: visible !important;
}

/* Hide elements that shouldn't be scaled or visible in cinema */
.bwin-panel:fullscreen .fullscreen-btn {
    display: none !important;
}

/* Cleanup for internal elements to ensure they use the base scale correctly */
.bwin-panel:fullscreen .main-timer-row {
    display: grid !important;
    grid-template-columns: 1fr 340px 1fr !important;
    gap: 30px !important;
}

.bwin-panel:fullscreen .timer-large { font-size: 3.5rem !important; }
.bwin-panel:fullscreen .level-indicator .value { font-size: 2.5rem !important; }


/* End of file */

#game-prizes {
    font-family: var(--font-nums);
    font-weight: 700;
    font-size: 1rem;
    color: var(--gold);
    text-align: left;
    white-space: pre-line;
    min-height: 50px;
    letter-spacing: 0.5px;
}

/* --- CUSTOM DROPDOWN --- */
.custom-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #111;
    border: 1px solid var(--gold);
    border-radius: 8px;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    scrollbar-width: thin;
    scrollbar-color: var(--gold) #111;
}

.custom-dropdown.hidden {
    display: none;
}

.dropdown-item {
    padding: 12px 15px;
    color: #eee;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    border-bottom: 1px solid #222;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--gold);
    color: #000;
    font-weight: 700;
}

.custom-dropdown::-webkit-scrollbar {
    width: 6px;
}

.custom-dropdown::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

.comment-mirror-card {
    border-color: rgba(0, 136, 204, 0.3) !important;
    background: rgba(0, 136, 204, 0.05) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* --- COMMENTS IN REGISTRATION --- */
.comments-list-section {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 900px;
}

.comment-item {
    background: rgba(254, 203, 0, 0.05);
    border: 1px solid rgba(254, 203, 0, 0.2);
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.comment-text {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.4;
}

.btn-delete-comment {
    background: transparent;
    border: none;
    color: #ff4444;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.btn-delete-comment:hover {
    transform: scale(1.2);
    color: #ff6666;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- GALLERY SECTION --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #1a1a1a;
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px var(--gold-glow);
    border-color: var(--gold);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.gallery-item:hover img {
    filter: brightness(0.7);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 700;
}

/* --- TELEGRAM SECTION --- */
.telegram-integration {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 0;
}

.tg-card {
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border: 1px solid #333;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.tg-card:hover {
    border-color: #0088cc;
    transform: translateY(-5px);
}

.tg-icon {
    width: 80px;
    height: 80px;
    background: #0088cc;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px;
    box-shadow: 0 0 25px rgba(0, 136, 204, 0.4);
}

.tg-icon svg {
    width: 45px;
    height: 45px;
}

.tg-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #fff;
}

.tg-card p {
    color: var(--grey-text);
    line-height: 1.6;
    margin-bottom: 30px;
}

.tg-link-btn {
    display: inline-block;
    background: #0088cc;
    color: #fff;
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 136, 204, 0.2);
}

.tg-link-btn:hover {
    background: #00aaff;
    box-shadow: 0 15px 30px rgba(0, 136, 204, 0.4);
    transform: translateY(-2px);
}

/* --- NOTES SECTION --- */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.note-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.note-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gold);
    transform: translateY(-3px);
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.note-title {
    font-weight: 700;
    color: var(--gold);
    font-size: 1.1rem;
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
}

.note-content {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
    min-height: 100px;
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    resize: none;
    font-family: inherit;
}

/* Скрыть скроллбар везде для textarea */
textarea {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
textarea::-webkit-scrollbar {
    display: none;
}

.note-date {
    font-size: 0.8rem;
    color: #bbb;
}

.btn-delete-note {
    background: transparent;
    border: none;
    color: #555;
    cursor: pointer;
    transition: color 0.2s;
    padding: 5px;
}

.btn-delete-note:hover {
    color: #ff4444;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 0;
    color: var(--grey-text);
    font-style: italic;
    opacity: 0.5;
}
/* --- LOGIN PAGE --- */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.login-box {
    background: linear-gradient(145deg, #1a1a1a 0%, #050505 100%);
    border: 1px solid rgba(254, 203, 0, 0.2);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8), 0 0 30px rgba(254, 203, 0, 0.1);
    backdrop-filter: blur(20px);
    text-align: center;
    animation: loginBoxAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loginBoxAppear {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-header {
    margin-bottom: 35px;
}

.login-logo {
    width: 70px;
    height: 70px;
    background: rgba(254, 203, 0, 0.05);
    border: 1px solid rgba(254, 203, 0, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(254, 203, 0, 0.1);
}

.login-logo svg {
    width: 35px;
    height: 35px;
}

.login-header h2 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.login-header p {
    color: var(--grey-text);
    font-size: 0.9rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-form .input-group {
    text-align: left;
}

.login-form .styled-input {
    width: 100%;
    background: rgba(255,255,255,0.02);
}

.login-btn-premium {
    background: linear-gradient(135deg, var(--gold) 0%, #b8860b 100%);
    color: #000 !important;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 10px;
    box-shadow: 0 10px 20px rgba(254, 203, 0, 0.2);
}

.login-btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(254, 203, 0, 0.4);
    filter: brightness(1.1);
}

.login-footer {
    margin-top: 20px;
}

.login-footer a {
    color: var(--grey-text);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.login-footer a:hover {
    color: var(--gold);
}
/* --- COMMENTS SECTION --- */
.comments-list-section {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-item {
    background: rgba(254, 203, 0, 0.05);
    border: 1px solid rgba(254, 203, 0, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s, border-color 0.2s;
}

.comment-item:hover {
    border-color: rgba(254, 203, 0, 0.3);
    background: rgba(254, 203, 0, 0.08);
}

.comment-text {
    color: #eee;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
}

.btn-delete-comment {
    background: transparent;
    border: none;
    color: #ff4444;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
    line-height: 1;
    padding: 5px;
}

.btn-delete-comment:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* OUT MODAL PREMIUM STYLES */
.modal-header-premium {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(254, 203, 0, 0.2);
}

.modal-subtitle {
    color: var(--grey-text);
    font-size: 0.9rem;
    margin-top: 5px;
}

.out-calculation-section {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 25px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #ccc;
}

.calc-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

.total-row {
    font-weight: 900;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0;
}

.gold-text {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(254, 203, 0, 0.3);
}

.section-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--gold);
    letter-spacing: 1px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.prizes-grid, .earn-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.bonus-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.bonus-row:hover {
    border-color: rgba(254, 203, 0, 0.3);
    background: rgba(254, 203, 0, 0.05);
}

.bonus-label {
    font-size: 0.9rem;
    color: #eee;
}

.bonus-label span {
    color: var(--gold);
    font-weight: 900;
    margin-left: 5px;
}

.bonus-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #000;
    border-radius: 8px;
    padding: 2px;
    border: 1px solid #333;
}

.bonus-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--gold);
    font-size: 1.2rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.bonus-btn:hover {
    background: var(--gold);
    color: #000;
}

.bonus-input {
    width: 40px;
    background: transparent;
    border: none;
    color: #fff;
    text-align: center;
    font-family: var(--font-nums);
    font-weight: 700;
    font-size: 1rem;
    outline: none;
}

.earn-prize-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.earn-prize-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #666;
}

.earn-prize-btn.active {
    background: #27ae60;
    border-color: #2ecc71;
}

.earned-prizes-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    min-height: 20px;
}

.prize-tag {
    background: rgba(39, 174, 96, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(39, 174, 96, 0.4);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.prize-tag .remove-prize {
    cursor: pointer;
    font-weight: 900;
    font-size: 0.9rem;
}

.prize-tag .remove-prize:hover {
    color: #fff;
}

/* PLAYERS PAGE STYLES */
.players-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.player-db-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.player-db-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.player-db-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(254, 203, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.player-db-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.player-db-id {
    font-family: var(--font-nums);
    font-weight: 900;
    color: var(--gold);
    font-size: 1.2rem;
    background: rgba(254, 203, 0, 0.1);
    padding: 2px 10px;
    border-radius: 6px;
}

.player-db-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-top: 5px;
}

.player-db-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat-box {
    background: rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-nums);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
}

.stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--grey-text);
    letter-spacing: 1px;
}

.player-db-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gold);
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 8px;
}

.player-db-history {
    max-height: 150px;
    overflow-y: auto;
    padding-right: 5px;
}

.history-item {
    display: grid;
    grid-template-columns: 80px 1fr 100px;
    align-items: center;
    font-size: 0.8rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    gap: 15px;
}

.history-date { 
    color: #888; 
    font-family: var(--font-nums);
}

.history-name { 
    color: #ccc; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-place {
    font-weight: 700;
    text-align: right;
}

.history-place.top-rank {
    color: var(--gold);
}

.history-place.other-rank {
    color: #666;
    font-weight: 400;
}

.player-db-history {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 10px;
    scroll-behavior: auto;
}

.player-db-history::-webkit-scrollbar {
    width: 6px;
}
.player-db-history::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}
.player-db-history::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold), #b38f00);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(254, 203, 0, 0.3);
}
.player-db-history::-webkit-scrollbar-thumb:hover {
    background: #fecb00;
}

.player-db-prizes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.player-prize-tag {
    background: rgba(254, 203, 0, 0.1);
    border: 1px solid rgba(254, 203, 0, 0.2);
    color: var(--gold);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
}

.player-db-history::-webkit-scrollbar {
    width: 4px;
}
.player-db-history::-webkit-scrollbar-thumb {
    background: rgba(254, 203, 0, 0.2);
    border-radius: 2px;
}
.player-db-history::-webkit-scrollbar-track {
    background: transparent;
}

/* INTERACTIVE TABLE ROWS */
.clickable-row {
    transition: background-color 0.2s;
}

.clickable-row:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.clickable-row:hover td {
    color: #fff !important;
}

.global-players-section .players-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
}

.delete-player-btn {
    background: transparent;
    border: none;
    color: #ff4444;
    font-size: 1.4rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: transform 0.2s, color 0.2s;
}

.delete-player-btn:hover {
    color: #ff6666;
    transform: scale(1.2);
}

#btn-close-details-x:hover {
    color: var(--gold) !important;
    transform: scale(1.1);
}

/* Стили аватарки */
.player-avatar-container {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 15px rgba(254, 203, 0, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.player-avatar-container:hover {
    box-shadow: 0 0 25px rgba(254, 203, 0, 0.4);
    border-color: #fff;
}

.player-avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* TOUR DETAILS MODAL STYLING */
.tournament-status-badge {
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.status-planned {
    background: rgba(254, 203, 0, 0.1) !important;
    color: var(--gold) !important;
    border: 1px solid rgba(254, 203, 0, 0.3) !important;
}
.status-active {
    background: rgba(39, 174, 96, 0.1) !important;
    color: #27ae60 !important;
    border: 1px solid rgba(39, 174, 96, 0.3) !important;
}
.status-completed {
    background: rgba(231, 76, 60, 0.1) !important;
    color: #e74c3c !important;
    border: 1px solid rgba(231, 76, 60, 0.3) !important;
}

.tour-details-grid .detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tour-details-grid .detail-label {
    font-size: 0.75rem;
    color: var(--grey-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tour-details-grid .detail-value {
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
}

.rank-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 85px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%) !important;
    color: #000 !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4) !important;
}

.rank-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #708090 100%) !important;
    color: #000 !important;
    box-shadow: 0 0 8px rgba(192, 192, 192, 0.3) !important;
}

.rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #8b4513 100%) !important;
    color: #fff !important;
    box-shadow: 0 0 8px rgba(205, 127, 50, 0.3) !important;
}

.rank-other {
    background: rgba(255,255,255,0.05) !important;
    color: #ccc !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

.rank-in-game {
    background: rgba(39, 174, 96, 0.15) !important;
    color: #2ecc71 !important;
    border: 1px solid rgba(39, 174, 96, 0.4) !important;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.2) !important;
}
