/* ===== Сумма за период — псевдо-стекло ===== */
.sum-stat {
    text-align: center;
    padding: 10px 8px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.015) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        inset 0 -1px 0 rgba(0,0,0,0.15);
}

.sum-stat-label {
    font-size: 11px;
    font-weight: 500;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.sum-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 8px color-mix(in srgb, var(--accent, #6366f1) 40%, transparent);
}

.sum-stat-value.gold {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 6px rgba(251,191,36,0.35));
}

.sum-stat-value.blue {
    color: var(--accent-light, #60a5fa);
    text-shadow: 0 0 8px color-mix(in srgb, var(--accent, #6366f1) 50%, transparent);
}

/* ===== Строка турнира — стеклянная ===== */
.tournament-row {
    cursor: pointer;
    border-radius: 10px;
    padding: 6px 8px;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.tournament-row:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.02) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        inset 0 -1px 0 rgba(0,0,0,0.15);
}

.tournament-number {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #a1a1aa;
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    border-radius: 50%;
    flex-shrink: 0;
}

.tournament-date {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

.tournament-amount {
    font-size: 14px;
    font-weight: 700;
    color: #fbbf24;
    text-shadow: 0 0 8px rgba(251,191,36,0.35);
}

/* ===== Кнопка редактирования — стеклянная ===== */
.edit-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    border-radius: 8px;
    color: #a1a1aa;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-btn:hover {
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--accent, #6366f1) 18%, transparent) 0%,
        color-mix(in srgb, var(--accent, #6366f1) 8%, transparent) 100%);
    border-color: color-mix(in srgb, var(--accent, #6366f1) 40%, transparent);
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.10),
        0 0 10px color-mix(in srgb, var(--accent, #6366f1) 25%, transparent);
}

/* ===== Пагинация — стеклянная ===== */
.pagination-btn {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #a1a1aa;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    color: #ffffff;
    border-color: rgba(255,255,255,0.14);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 12px;
    color: #71717a;
}

/* ===== Карточки меню — стеклянные ===== */
.menu-card {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.07),
        inset 0 -1px 0 rgba(0,0,0,0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.menu-card:hover {
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--accent, #6366f1) 10%, rgba(255,255,255,0.05)) 0%,
        color-mix(in srgb, var(--accent, #6366f1) 4%, rgba(255,255,255,0.02)) 100%);
    border-color: color-mix(in srgb, var(--accent, #6366f1) 30%, transparent);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.10),
        inset 0 -1px 0 rgba(0,0,0,0.15),
        0 0 16px color-mix(in srgb, var(--accent, #6366f1) 18%, transparent);
    transform: translateX(3px);
}

.menu-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--accent, #6366f1) 20%, transparent) 0%,
        color-mix(in srgb, var(--accent, #6366f1) 8%, transparent) 100%);
    border: 1px solid color-mix(in srgb, var(--accent, #6366f1) 30%, transparent);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.10),
        0 0 8px color-mix(in srgb, var(--accent, #6366f1) 20%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-shadow: 0 0 8px color-mix(in srgb, var(--accent, #6366f1) 40%, transparent);
    letter-spacing: 0.2px;
}

.menu-subtitle {
    font-size: 12px !important;
    color: #d4d4d8 !important;
    margin-top: 2px;
    font-weight: 500 !important;
}

.menu-arrow {
    color: #a1a1aa;
    flex-shrink: 0;
}

/* ===== PWA fix — input короче ===== */
.apple-card input,
.apple-card .flatpickr-input,
.flatpickr-input {
    width: 93% !important;
    max-width: 93% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
}

/* ===== ТЕМЫ: цветной оттенок под каждую ===== */

/* Ocean */
[data-theme="ocean"] .sum-stat {
    background: linear-gradient(180deg, rgba(6,182,212,0.06) 0%, rgba(6,182,212,0.02) 100%);
    border-color: rgba(6,182,212,0.10);
    box-shadow: inset 0 1px 0 rgba(138,240,255,0.08), inset 0 -1px 0 rgba(0,0,0,0.15);
}
[data-theme="ocean"] .sum-stat-value { text-shadow: 0 0 8px rgba(34,211,238,0.4); }
[data-theme="ocean"] .tournament-amount { color: #fbbf24; }
[data-theme="ocean"] .menu-icon {
    background: linear-gradient(180deg, rgba(6,182,212,0.20) 0%, rgba(6,182,212,0.08) 100%);
    border-color: rgba(6,182,212,0.30);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 0 8px rgba(6,182,212,0.20);
}

/* Mars */
[data-theme="mars"] .sum-stat {
    background: linear-gradient(180deg, rgba(245,158,11,0.06) 0%, rgba(245,158,11,0.02) 100%);
    border-color: rgba(245,158,11,0.10);
    box-shadow: inset 0 1px 0 rgba(251,191,36,0.08), inset 0 -1px 0 rgba(0,0,0,0.15);
}
[data-theme="mars"] .sum-stat-value { text-shadow: 0 0 8px rgba(245,158,11,0.4); }
[data-theme="mars"] .menu-icon {
    background: linear-gradient(180deg, rgba(245,158,11,0.20) 0%, rgba(245,158,11,0.08) 100%);
    border-color: rgba(245,158,11,0.30);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 0 8px rgba(245,158,11,0.20);
}

/* Nebula */
[data-theme="nebula"] .sum-stat {
    background: linear-gradient(180deg, rgba(168,85,247,0.06) 0%, rgba(168,85,247,0.02) 100%);
    border-color: rgba(168,85,247,0.12);
    box-shadow: inset 0 1px 0 rgba(192,132,252,0.10), inset 0 -1px 0 rgba(0,0,0,0.18);
}
[data-theme="nebula"] .sum-stat-value { text-shadow: 0 0 8px rgba(168,85,247,0.5); }
[data-theme="nebula"] .menu-icon {
    background: linear-gradient(180deg, rgba(168,85,247,0.22) 0%, rgba(168,85,247,0.08) 100%);
    border-color: rgba(192,132,252,0.35);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 0 10px rgba(168,85,247,0.30);
}