/* ========================================================
   Стили карточной игры "Каменские козлы" (style.css)
   ======================================================== */

:root {
    --felt-color: #124d2a;
    --felt-dark: #092e18;
    --wood-border: #3b2210;
    --wood-light: #5d3619;
    --gold: #f5b041;
    --gold-hover: #f39c12;
    --team1: #3498db;
    --team1-dark: #1b4f72;
    --team2: #e74c3c;
    --team2-dark: #78281f;
    --text-light: #f4f6f7;
    --text-muted: #bdc3c7;
    --panel-bg: rgba(20, 24, 30, 0.85);
    --panel-border: rgba(255, 255, 255, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: radial-gradient(circle at center, #1b382b 0%, #0d1a14 100%);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Верхняя панель */
.app-header {
    background: rgba(10, 15, 12, 0.92);
    border-bottom: 2px solid var(--gold);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    font-size: 26px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.brand-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--gold);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.header-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--panel-border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.user-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--gold);
}

.header-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--panel-border);
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* Контейнеры экранов */
.screen-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 15px;
}

.screen {
    display: none;
    width: 100%;
    height: 100%;
    flex-direction: column;
}

.screen.active {
    display: flex;
}

/* ========================================================
   ЭКРАН 1: ЛОББИ
   ======================================================== */
.lobby-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    margin-top: 10px;
}

@media (max-width: 900px) {
    .lobby-layout {
        grid-template-columns: 1fr;
    }
}

.lobby-main, .lobby-sidebar {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.lobby-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.rooms-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 550px;
    overflow-y: auto;
}

.room-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}

.room-card:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.room-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: #fff;
}

.room-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
}

.badge-mode {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

.badge-status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

.badge-status.waiting {
    background: #27ae60;
    color: #fff;
}

.badge-status.playing {
    background: #d35400;
    color: #fff;
}

/* Кнопки */
.btn {
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-hover));
    color: #1a1a2e;
    box-shadow: 0 4px 12px rgba(245, 176, 65, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 176, 65, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid var(--panel-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-success {
    background: #27ae60;
    color: #fff;
}

.btn-success:hover {
    background: #2ecc71;
}

.btn-danger {
    background: #c0392b;
    color: #fff;
}

.btn-danger:hover {
    background: #e74c3c;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Правила и памятка */
.rules-cheat-sheet {
    font-size: 13px;
    line-height: 1.5;
    color: #dcdde1;
}

.rules-cheat-sheet h4 {
    color: var(--gold);
    margin-bottom: 8px;
    font-size: 15px;
}

.rules-cheat-sheet ul {
    list-style: none;
    margin-bottom: 12px;
}

.rules-cheat-sheet li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 14px;
}

.rules-cheat-sheet li::before {
    content: "•";
    color: var(--gold);
    position: absolute;
    left: 0;
}

/* ========================================================
   ЭКРАН 2: ЗАЛ ОЖИДАНИЯ (КОМНАТА)
   ======================================================== */
.room-header {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.room-code-tag {
    background: #2c3e50;
    color: var(--gold);
    font-family: monospace;
    font-size: 18px;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px dashed var(--gold);
}

.waiting-seats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 20px auto;
    width: 100%;
}

@media (max-width: 600px) {
    .waiting-seats-grid {
        grid-template-columns: 1fr;
    }
}

.seat-box {
    background: var(--panel-bg);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    transition: 0.2s;
}

.seat-box.team1 {
    border-color: rgba(52, 152, 219, 0.6);
}

.seat-box.team2 {
    border-color: rgba(231, 76, 60, 0.6);
}

.seat-box.occupied {
    border-style: solid;
    background: rgba(25, 30, 40, 0.95);
}

.seat-badge {
    position: absolute;
    top: 10px;
    left: 12px;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
}

.team1-badge { background: var(--team1-dark); color: #fff; }
.team2-badge { background: var(--team2-dark); color: #fff; }

.seat-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 2px solid var(--panel-border);
}

.seat-name {
    font-size: 16px;
    font-weight: 700;
}

.waiting-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

/* ========================================================
   ЭКРАН 3: ИГРОВОЙ КАРТОЧНЫЙ СТОЛ
   ======================================================== */
.game-table-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: radial-gradient(ellipse at center, var(--felt-color) 0%, var(--felt-dark) 100%);
    border: 12px solid var(--wood-border);
    border-radius: 28px;
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.8), 0 10px 30px rgba(0, 0, 0, 0.7);
    position: relative;
    padding: 15px;
    min-height: 680px;
    justify-content: space-between;
}

/* Табло очков игры */
.game-scoreboard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 15, 12, 0.85);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 8px 16px;
    margin-bottom: 10px;
}

.score-team-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 12px;
    transition: 0.3s;
}

.score-team-box.team1-box {
    border: 1.5px solid rgba(52, 152, 219, 0.7);
    background: linear-gradient(135deg, rgba(27, 79, 114, 0.5), rgba(41, 128, 185, 0.15));
    box-shadow: 0 0 14px rgba(52, 152, 219, 0.25);
}

.score-team-box.team2-box {
    border: 1.5px solid rgba(231, 76, 60, 0.7);
    background: linear-gradient(135deg, rgba(120, 40, 31, 0.5), rgba(231, 76, 60, 0.15));
    box-shadow: 0 0 14px rgba(231, 76, 60, 0.25);
}

.team-pill {
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.3px;
}

.team-pill.team1-pill {
    background: linear-gradient(135deg, #1b4f72, #2980b9);
    color: #fff;
    border: 1px solid #3498db;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.4);
}

.team-pill.team2-pill {
    background: linear-gradient(135deg, #78281f, #c0392b);
    color: #fff;
    border: 1px solid #e74c3c;
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.4);
}

/* Слот для скинутых карт (взяток) команды */
.team-discard-slot {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 8px;
    cursor: default;
    transition: transform 0.2s;
}

.team-discard-slot:hover {
    transform: scale(1.04);
}

.discard-stack {
    display: flex;
    position: relative;
    width: 24px;
    height: 32px;
}

.discard-card-back {
    position: absolute;
    width: 22px;
    height: 30px;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

.discard-card-back:first-child { top: 0; left: 0; }
.discard-card-back:last-child { top: 2px; left: 4px; }

.discard-count-badge {
    font-size: 13px;
    font-weight: 900;
    color: var(--gold);
}

.score-num {
    font-size: 24px;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.round-info-center {
    text-align: center;
}

.trump-indicator-pill {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--gold);
}

/* Посадочные места оппонентов на столе */
.opponents-row {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 10px 0;
    gap: 15px;
}

.player-seat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.45);
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-width: 120px;
    position: relative;
}

.player-seat-card.team-1 {
    border-color: rgba(52, 152, 219, 0.5);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.2);
}

.player-seat-card.team-2 {
    border-color: rgba(231, 76, 60, 0.5);
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.2);
}

/* Яркая пульсирующая подсветка того, кто ходит */
.player-seat-card.turn-active {
    border-color: #f1c40f !important;
    background: rgba(245, 176, 65, 0.25) !important;
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(245, 176, 65, 0.95), inset 0 0 12px rgba(245, 176, 65, 0.4) !important;
    animation: turnPulseOpponent 1.2s infinite alternate ease-in-out;
    z-index: 10;
}

@keyframes turnPulseOpponent {
    0% {
        box-shadow: 0 0 12px rgba(245, 176, 65, 0.6), inset 0 0 6px rgba(245, 176, 65, 0.2);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 32px rgba(245, 176, 65, 1), 0 0 12px #fff, inset 0 0 16px rgba(245, 176, 65, 0.6);
        transform: scale(1.1);
    }
}

.turn-thinking-badge {
    font-size: 10px;
    color: #000;
    background: linear-gradient(135deg, #f5b041, #f39c12);
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 10px;
    margin-top: 2px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245, 176, 65, 0.7);
    animation: badgeBlink 1s infinite alternate;
}

@keyframes badgeBlink {
    0% { opacity: 0.8; }
    100% { opacity: 1; transform: scale(1.06); }
}

/* Сброшенные карты оппонента */
.opp-discard-pile {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2px 7px;
    border-radius: 6px;
    margin-top: 3px;
    font-size: 11px;
    font-weight: bold;
    color: var(--gold);
}

.opp-discard-icon {
    font-size: 13px;
}

.opp-cards-fan {
    display: flex;
    margin-bottom: 4px;
}

.mini-card-back {
    width: 28px;
    height: 40px;
    margin-left: -14px;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    transition: 0.2s;
}

.mini-card-back:first-child {
    margin-left: 0;
}

/* Центр стола: Колода, Козырь, Взятка */
.table-center-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    position: relative;
    min-height: 200px;
}

.deck-and-trump {
    display: flex;
    align-items: center;
    position: relative;
    width: 140px;
    height: 140px;
}

.trump-card-slot {
    position: absolute;
    left: 20px;
    width: 85px;
    height: 120px;
    transform: rotate(90deg);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.6);
    z-index: 1;
}

.deck-stack-slot {
    position: absolute;
    left: 0;
    width: 85px;
    height: 120px;
    border-radius: 8px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.8);
    z-index: 2;
}

.deck-count-badge {
    position: absolute;
    bottom: -10px;
    left: 20px;
    background: #000;
    color: var(--gold);
    font-size: 11px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid var(--gold);
    z-index: 10;
}

/* Зона текущей взятки */
.trick-carpet-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.25);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    min-width: 320px;
    min-height: 150px;
    padding: 15px;
}

/* Карты на столе НЕ дёргаются при поллинге (анимация убрана) */
.trick-play-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.trick-cards-group {
    display: flex;
    gap: 4px;
}

.trick-card-img {
    width: 75px;
    height: 105px;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

/* Сброшенные карты лежат рубашкой вверх */
.trick-card-img.card-facedown {
    border: 1px solid rgba(255, 255, 255, 0.25);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
}

.trick-player-label {
    font-size: 11px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 6px;
    border-radius: 4px;
}

.trick-status-badge {
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: bold;
}
.trick-status-badge.beat { background: #27ae60; color: #fff; }
.trick-status-badge.discard { background: #7f8c8d; color: #fff; }

/* Нижняя зона: рука игрока и кнопки действий */
.player-bottom-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

/* Подсветка когда ход текущего игрока */
.player-bottom-area.my-turn-active {
    background: radial-gradient(ellipse at bottom, rgba(245, 176, 65, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    box-shadow: 0 -4px 20px rgba(245, 176, 65, 0.4);
    animation: myTurnPulse 1.5s infinite alternate ease-in-out;
}

@keyframes myTurnPulse {
    0% {
        box-shadow: 0 -2px 10px rgba(245, 176, 65, 0.3);
    }
    100% {
        box-shadow: 0 -6px 28px rgba(245, 176, 65, 0.8);
    }
}

.player-identity-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-badge-pill {
    font-size: 12px;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 12px;
    letter-spacing: 0.3px;
}

.team-badge-pill.team-1 {
    background: linear-gradient(135deg, #1b4f72, #2980b9);
    color: #fff;
    border: 1px solid #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.4);
}

.team-badge-pill.team-2 {
    background: linear-gradient(135deg, #78281f, #c0392b);
    color: #fff;
    border: 1px solid #e74c3c;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.4);
}

.turn-instruction-box {
    font-size: 14px;
    padding: 6px 18px;
    border-radius: 20px;
    text-shadow: 0 1px 3px #000;
    transition: 0.3s;
}

.player-bottom-area.my-turn-active .turn-instruction-box {
    background: linear-gradient(135deg, rgba(245, 176, 65, 0.35), rgba(243, 156, 18, 0.45));
    border: 1px solid var(--gold);
    color: #fff;
    box-shadow: 0 0 15px rgba(245, 176, 65, 0.7);
    font-weight: 700;
}

.action-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

/* Отдельные стильные кнопки Побить и Сбросить */
.btn-beat {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(46, 204, 113, 0.4);
}

.btn-beat:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(46, 204, 113, 0.6);
}

.btn-discard {
    background: linear-gradient(135deg, #576574, #8395a7);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(131, 149, 167, 0.3);
}

.btn-discard:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(131, 149, 167, 0.5);
}

.btn-special {
    background: linear-gradient(135deg, #8e44ad, #2980b9);
    color: #fff;
    border: 1px solid var(--gold);
    animation: glowBtn 2s infinite alternate;
}

@keyframes glowBtn {
    from { box-shadow: 0 0 5px rgba(245, 176, 65, 0.4); }
    to { box-shadow: 0 0 15px rgba(245, 176, 65, 0.9); }
}

/* Анимация победы взятки */
.player-seat-card.trick-winner-pulse {
    animation: trickWinnerGlow 1.5s ease-out;
}

@keyframes trickWinnerGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.9);
        border-color: #2ecc71;
        transform: scale(1.12);
    }
    50% {
        box-shadow: 0 0 35px 10px rgba(46, 204, 113, 0.8);
        border-color: #2ecc71;
        transform: scale(1.14);
    }
    100% {
        transform: scale(1);
    }
}

/* Карты на руке игрока */
.player-hand {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    padding: 10px 0;
    min-height: 140px;
}

.hand-card {
    width: 90px;
    height: 126px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hand-card:hover {
    transform: translateY(-16px) scale(1.04);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

.hand-card.selected {
    transform: translateY(-24px) scale(1.08);
    box-shadow: 0 12px 24px rgba(245, 176, 65, 0.7);
    outline: 3px solid var(--gold);
}

@media (max-width: 600px) {
    .hand-card {
        width: 70px;
        height: 98px;
        margin-left: -10px;
    }
    .hand-card:first-child {
        margin-left: 0;
    }
}

/* Модальные окна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #19222b;
    border: 2px solid var(--gold);
    border-radius: 16px;
    padding: 26px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
    position: relative;
    animation: modalPop 0.25s ease-out;
}

@keyframes modalPop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-title {
    font-size: 20px;
    color: var(--gold);
    margin-bottom: 16px;
    font-weight: 800;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-size: 15px;
    outline: none;
}

.form-input:focus {
    border-color: var(--gold);
}

/* Уведомления toast */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2000;
}

.toast {
    background: rgba(20, 25, 32, 0.95);
    border-left: 4px solid var(--gold);
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.5);
    animation: toastSlide 0.3s ease-out;
}

.toast.error { border-left-color: #e74c3c; }
.toast.success { border-left-color: #2ecc71; }

@keyframes toastSlide {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
