/* recursos/main.css - Estilos Oficiales Apex Chess */

/* css/theme.css */
/* Sistema de diseño oficial inspirado en Chess.com */

:root {
    /* UI General (Chess.com Signature Warm Dark Theme) */
    --bg-primary: #262421;
    --bg-secondary: #262421;
    --bg-surface: #21201d;
    --bg-surface-hover: #363431;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-prominent: rgba(255, 255, 255, 0.16);

    --text-primary: #ffffff;
    --text-secondary: #c3c1be;
    --text-muted: #8b8987;

    /* Chess.com Brand Accents */
    --accent-green: #81b64c;
    --accent-green-hover: #95c85d;
    --accent-green-shadow: #457524;
    --accent-gold: #e6912c;
    --accent-gold-hover: #f5a642;
    --accent-blue: #3b82f6;
    --accent-red: #cc3b2b;
    --accent-amber: #e6912c;

    /* Botones Secundarios Chess.com */
    --btn-secondary-bg: #3d3b37;
    --btn-secondary-hover: #484540;
    --btn-secondary-shadow: #272522;

    /* Reloj digital estilo Chess.com */
    --clock-bg: #21201d;
    --clock-border: #3d3b37;
    --clock-active-bg: #ffffff;
    --clock-active-border: #ffffff;
    --clock-active-glow: rgba(255, 255, 255, 0.35);
    --clock-text: #ffffff;
    --clock-warn-text: #e6912c;
    --clock-critical-text: #f87171;
    --clock-critical-glow: rgba(204, 59, 43, 0.6);

    /* Casillas resaltadas estilo Chess.com */
    --sq-highlight: rgba(247, 247, 105, 0.5); /* Amarillo translúcido icónico Chess.com */
    --sq-legal-dot: rgba(0, 0, 0, 0.16);
    --sq-legal-capture: rgba(0, 0, 0, 0.18);
    --sq-check: rgba(235, 97, 80, 0.85);

    /* TEMAS DE TABLERO PREDETERMINADO: Verde Clásico Chess.com */
    --board-light: #eeeed2;
    --board-dark: #769656;
    --board-coord-light: #769656;
    --board-coord-dark: #eeeed2;
    --board-border: #364923;
    --theme-name: "Verde Chess.com";
}

/* 1. Verde Clásico Chess.com */
[data-theme="championship"] {
    --board-light: #eeeed2;
    --board-dark: #769656;
    --board-coord-light: #769656;
    --board-coord-dark: #eeeed2;
    --board-border: #364923;
}

/* 2. Madera Noble Nogal y Arce */
[data-theme="wood"] {
    --board-light: #f0d9b5;
    --board-dark: #b58863;
    --board-coord-light: #b58863;
    --board-coord-dark: #f0d9b5;
    --board-border: #805b3e;
}

/* 3. Pizarra Nocturna (Midnight Slate) */
[data-theme="slate"] {
    --board-light: #cbd5e1;
    --board-dark: #475569;
    --board-coord-light: #475569;
    --board-coord-dark: #cbd5e1;
    --board-border: #334155;
}

/* 4. Obsidiana y Oro Real */
[data-theme="obsidian"] {
    --board-light: #e6dfc8;
    --board-dark: #1e1e28;
    --board-coord-light: #1e1e28;
    --board-coord-dark: #d4af37;
    --board-border: #d4af37;
}

/* 5. Amatista Real */
[data-theme="amethyst"] {
    --board-light: #f3e8ff;
    --board-dark: #7e22ce;
    --board-coord-light: #7e22ce;
    --board-coord-dark: #f3e8ff;
    --board-border: #581c87;
}

/* 6. Zafiro Oceánico */
[data-theme="ocean"] {
    --board-light: #e0f2fe;
    --board-dark: #0369a1;
    --board-coord-light: #0369a1;
    --board-coord-dark: #e0f2fe;
    --board-border: #075985;
}


/* css/style.css */
/* Estilos profesionales de alto nivel, 3D hiperrealista, móvil y Centro de Ajustes */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* HEADER SUPERIOR ESTILO CHESS.COM */
.app-header {
    background: #262421;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    z-index: 20;
    position: sticky;
    top: 0;
    width: 100%;
    box-sizing: border-box;
}

.header-left {
    display: flex;
    align-items: center;
    width: 32px;
}

.cellular-bars {
    display: flex;
    align-items: center;
    opacity: 0.9;
}

.logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
}

.header-pawn-logo {
    display: block;
}

.logo-title {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    display: flex;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.logo-title-sub {
    color: #8b8987;
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon {
    background: #3d3b37;
    border: none;
    border-bottom: 2px solid #272522;
    color: #c3c1be;
    padding: 7px 11px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    transition: background 0.1s ease, transform 0.05s ease;
}

.btn-icon:hover {
    background: #484540;
    color: #ffffff;
}

.btn-icon:active {
    transform: translateY(1px);
    border-bottom-width: 1px;
}

.btn-icon.primary-highlight {
    background: #81b64c;
    border-bottom: 3px solid #457524;
    color: #ffffff;
    font-weight: 800;
}

.btn-icon.primary-highlight:hover {
    background: #95c85d;
    color: #ffffff;
}

.btn-icon.qr-header-btn {
    background: #3d3b37;
    border-bottom: 2px solid #272522;
    color: #81b64c;
    font-weight: 700;
}

.btn-icon.qr-header-btn:hover {
    background: #484540;
    color: #95c85d;
}

.btn-icon.sound-active {
    background: #3d3b37;
    border-bottom: 2px solid #272522;
    color: #81b64c;
    font-weight: 700;
}

.btn-icon.sound-active:hover {
    background: #484540;
    color: #95c85d;
}

.btn-icon.sound-muted {
    background: #3d3b37;
    border-bottom: 2px solid #272522;
    color: #f87171;
    font-weight: 700;
}

.btn-icon.sound-muted:hover {
    background: #cc3b2b;
    border-bottom-color: #8f2316;
    color: #ffffff;
}

.btn-icon.lang-header-btn {
    background: #3d3b37;
    border-bottom: 2px solid #272522;
    color: #eab308;
    font-weight: 800;
    padding: 6px 9px;
    gap: 4px;
}

.btn-icon.lang-header-btn:hover {
    background: #484540;
    color: #facc15;
}

.lang-flag {
    font-size: 14px;
    line-height: 1;
}

.lang-code {
    font-size: 11px;
    letter-spacing: 0.5px;
}

.language-card {
    background: var(--bg-surface);
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    padding: 16px 14px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.language-card:hover {
    border-color: rgba(234, 179, 8, 0.6);
    transform: translateY(-2px);
}

.language-card.active {
    border-color: var(--accent-gold) !important;
    background: rgba(234, 179, 8, 0.08) !important;
}

.barcode-svg {
    flex-shrink: 0;
}

/* CONTENEDOR PRINCIPAL */
.main-layout {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    padding: 14px 20px;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    min-height: calc(100vh - 60px);
}

/* ÁREA DE JUEGO CENTRAL */
.game-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 620px;
}

/* TIRA DE NOTACIÓN EN VIVO (ESTILO CHESS.COM MOBILE) */
.live-move-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    min-height: 28px;
    width: 100%;
    max-width: 520px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    box-sizing: border-box;
}

.live-move-strip::-webkit-scrollbar {
    display: none;
}

.strip-move-num {
    color: #8b8987;
    font-size: 14px;
    font-weight: 700;
}

.strip-move-pill {
    padding: 3px 8px;
    border-radius: 4px;
    background: transparent;
    color: #c3c1be;
    font-size: 14px;
    font-weight: 700;
}

.strip-move-pill.active {
    background: #181715;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

/* JUGADORES ESTILO CHESS.COM */
.player-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    background: transparent;
    border: none;
    width: 100%;
    max-width: 520px;
    box-sizing: border-box;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.player-avatar {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e2e2;
    border: none;
    flex-shrink: 0;
}

.player-avatar svg {
    width: 100%;
    height: 100%;
    display: block;
}

.player-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.player-name-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.player-name {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.name-edit-icon {
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
}

/* BANDEJA GRÁFICA DE PIEZAS CAPTURADAS 3D */
.captured-pieces-tray {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 22px;
    margin-top: 2px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}
.captured-pieces-tray::-webkit-scrollbar {
    display: none;
}

.captured-group {
    display: inline-flex;
    align-items: center;
    position: relative;
    background: rgba(0, 0, 0, 0.22);
    padding: 1px 4px 1px 2px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mini-piece-icon {
    width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-piece-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.captured-multiplier {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-secondary);
    margin-left: 2px;
    font-family: -apple-system, monospace;
}

.material-advantage {
    font-size: 11px;
    font-weight: 800;
    background: rgba(234, 179, 8, 0.2);
    border: 1px solid rgba(234, 179, 8, 0.4);
    color: var(--accent-gold);
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 4px;
    font-family: -apple-system, monospace;
}

/* RELOJ DIGITAL ESTILO CHESS.COM MOBILE */
.digital-clock {
    height: 38px;
    min-width: 90px;
    padding: 0 14px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-sizing: border-box;
    transition: background 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.digital-clock.inactive {
    background: #797672;
    color: #3c3935;
    border: none;
}

.digital-clock.active {
    background: #000000;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.digital-clock .clock-icon-svg {
    stroke: #ffffff;
    width: 16px;
    height: 16px;
    display: inline-block;
}

.digital-clock.warning {
    color: #f59e0b;
}

.digital-clock.critical {
    background: #cc3b2b;
    color: #ffffff;
    animation: clock-pulse 1s infinite alternate;
}

@keyframes clock-pulse {
    0% { box-shadow: 0 0 6px rgba(204, 59, 43, 0.6); }
    100% { box-shadow: 0 0 18px rgba(204, 59, 43, 0.8); }
}

/* TABLERO ESTILO CHESS.COM FLUSH BORDERLESS */
.board-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: none;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.board-wrapper.flipped {
    /* El volteo de tablero se gestiona limpiamente a nivel de cuadrícula DOM para preservar coordenadas rectas */
    transform: none;
}

.board-wrapper.flipped .piece-container {
    transform: none;
}

.piece-container.dragging {
    opacity: 0.95;
    transform: scale(1.22);
    filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.7)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    z-index: 100;
    pointer-events: none;
    transition: none !important;
}

.square.drag-target-hover {
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.chessboard {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    width: 100%;
    height: 100%;
}

.square {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.square.light {
    background-color: var(--board-light);
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.05);
}

.square.dark {
    background-color: var(--board-dark);
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.12);
}

/* Coordenadas */
.coord-rank, .coord-file {
    position: absolute;
    font-size: 11px;
    font-weight: 700;
    pointer-events: none;
    font-family: -apple-system, sans-serif;
    line-height: 1;
}

.coord-rank {
    top: 3px;
    left: 4px;
}

.coord-file {
    bottom: 3px;
    right: 4px;
}

.square.light .coord-rank, .square.light .coord-file {
    color: var(--board-coord-light);
    opacity: 0.85;
}

.square.dark .coord-rank, .square.dark .coord-file {
    color: var(--board-coord-dark);
    opacity: 0.85;
}

/* Resaltados */
.square.selected {
    background-color: var(--sq-highlight) !important;
}

.square.last-move {
    background-color: var(--sq-highlight) !important;
}

.square.in-check {
    background-color: var(--sq-check) !important;
    animation: check-beacon 0.8s infinite alternate;
}

@keyframes check-beacon {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.35); }
}

.legal-dot {
    position: absolute;
    width: 26%;
    height: 26%;
    background-color: var(--sq-legal-dot);
    border-radius: 50%;
    pointer-events: none;
}

.legal-capture-ring {
    position: absolute;
    width: 88%;
    height: 88%;
    border: 4px solid var(--sq-legal-capture);
    border-radius: 50%;
    pointer-events: none;
}

/* PIEZAS VOLUMÉTRICAS CON SOMBRA REALISTA DE ESTUDIO */
.piece-container {
    width: 93%;
    height: 93%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
    transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.15s ease;
}

.chess-piece-svg {
    width: 100%;
    height: 100%;
    filter: 
        drop-shadow(2px 7px 5px rgba(0, 0, 0, 0.48)) 
        drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
    pointer-events: none;
    transition: filter 0.15s ease;
}

.square.selected .piece-container,
.piece-container:active {
    transform: translateY(-8px) scale(1.12);
}

.square.selected .chess-piece-svg,
.piece-container:active .chess-piece-svg {
    filter: 
        drop-shadow(4px 16px 12px rgba(0, 0, 0, 0.58)) 
        drop-shadow(0 4px 6px rgba(0, 0, 0, 0.38));
}

/* BARRA LATERAL */
.sidebar-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    width: 360px;
    min-width: 300px;
}

.sidebar-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 15px;
    box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.03);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* IDENTIDAD Y SEPARACIÓN: PANEL RITMO DE COMPETICIÓN */
.card-ritmo-pro {
    border-top: 2px solid var(--accent-gold);
    background: linear-gradient(180deg, rgba(234, 179, 8, 0.03) 0%, rgba(20, 24, 33, 0.7) 100%), var(--bg-secondary);
}

/* IDENTIDAD Y SEPARACIÓN: MARCADOR DE PARTIDA */
.card-marcador-pro {
    border-top: 2px solid #3b82f6;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.04) 0%, rgba(20, 24, 33, 0.7) 100%), var(--bg-secondary);
}

/* CABECERAS PROFESIONALES DE TARJETAS */
.card-header-pro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.card-header-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header-badge-icon {
    font-size: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-header-titles {
    display: flex;
    flex-direction: column;
}

.card-header-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.card-header-subtitle {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 1px;
}

.card-header-status {
    display: flex;
    align-items: center;
    gap: 7px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulse-green 1.8s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.increment-pill {
    background: rgba(234, 179, 8, 0.14);
    border: 1px solid rgba(234, 179, 8, 0.35);
    color: var(--accent-gold);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9999px;
    font-family: "SF Mono", monospace;
    letter-spacing: 0.02em;
}

.ai-mode-pill {
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #93c5fd;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* BOTONES DE RITMOS ESTILO POD PRO (5+3, 7+4, 9+4) */
.time-presets-grid-pro {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
}

.preset-btn-pro {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%), var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 10px 6px;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.preset-btn-pro:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-prominent);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.preset-btn-pro.active {
    background: linear-gradient(180deg, rgba(234, 179, 8, 0.22) 0%, rgba(234, 179, 8, 0.08) 100%), var(--bg-surface);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: 0 0 14px rgba(234, 179, 8, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.preset-time-display {
    font-size: 15px;
    font-weight: 800;
    font-family: "SF Mono", monospace;
    letter-spacing: -0.02em;
}

.preset-name-badge {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
}

.preset-btn-pro.active .preset-name-badge {
    color: #fef08a;
}

.preset-inc-tag {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.3);
    padding: 1px 6px;
    border-radius: 4px;
}

.preset-btn-pro.active .preset-inc-tag {
    background: rgba(234, 179, 8, 0.2);
    color: #fef08a;
}

/* MARCADOR BROADCAST FIDE (CABINAS DE JUGADORES + TERMINAL LED) */
.broadcast-scoreboard {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 10px;
}

.player-score-pod {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 9px;
    overflow: hidden;
    min-width: 0;
}

.player-white-pod {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-left: 3px solid #fef08a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.player-black-pod {
    background: linear-gradient(225deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.4) 100%);
    border-right: 3px solid #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    flex-direction: row-reverse;
    text-align: right;
}

.pod-avatar-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

.player-white-pod .pod-avatar-wrapper {
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.player-black-pod .pod-avatar-wrapper {
    background: #0f172a;
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pod-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.player-white-pod .pod-info {
    align-items: flex-start;
}

.player-black-pod .pod-info {
    align-items: flex-end;
}

.score-pname {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 82px;
}

.color-badge-pill {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.white-badge {
    background: rgba(254, 240, 138, 0.15);
    color: #fef08a;
    border: 1px solid rgba(254, 240, 138, 0.3);
}

.black-badge {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

/* TERMINAL CENTRAL DE PUNTUACIÓN LED */
.score-center-terminal {
    background: #08090d;
    border: 1px solid rgba(234, 179, 8, 0.4);
    border-radius: 10px;
    padding: 5px 9px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 10px rgba(234, 179, 8, 0.12);
    min-width: 72px;
    flex-shrink: 0;
}

.score-terminal-title {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    line-height: 1;
    margin-bottom: 2px;
}

.score-digits-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    line-height: 1;
}

.score-number {
    font-size: 21px;
    font-weight: 900;
    font-family: "SF Mono", monospace;
    color: var(--accent-gold);
    text-shadow: 0 0 8px rgba(234, 179, 8, 0.5);
    min-width: 14px;
    text-align: center;
}

.score-colon {
    font-size: 15px;
    font-weight: 700;
    color: rgba(234, 179, 8, 0.45);
    margin: 0 1px;
}

.score-terminal-live {
    font-size: 8px;
    font-weight: 800;
    color: #10b981;
    letter-spacing: 0.08em;
    margin-top: 2px;
    line-height: 1;
}

/* FOOTER DE ESTADO DE SERIE */
.series-status-footer {
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.series-status-icon {
    font-size: 12px;
}

.round-status-text {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

/* TARJETAS LATERALES ESTILO CHESS.COM */
.card-history-pro,
.card-actions-pro {
    background: #262421;
    border: 1px solid #363431;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.turn-status-badge {
    background: rgba(129, 182, 76, 0.15);
    border: 1px solid rgba(129, 182, 76, 0.4);
    color: #81b64c;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 9999px;
    letter-spacing: 0.02em;
}

/* HISTORIAL PGN ESTILO CHESS.COM */
.history-container {
    height: 220px;
    overflow-y: auto;
    background: #21201d;
    border: 1px solid #363431;
    border-radius: 6px;
    padding: 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
}

.history-container::-webkit-scrollbar {
    width: 6px;
}
.history-container::-webkit-scrollbar-thumb {
    background: #3d3b37;
    border-radius: 3px;
}

.pgn-row {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
}

.pgn-row:nth-child(even) {
    background: #262421;
}

.pgn-num {
    width: 34px;
    color: #8b8987;
    font-weight: 600;
    font-size: 12px;
}

.pgn-move {
    flex: 1;
    color: #c3c1be;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    cursor: default;
}

.pgn-move.current {
    background: #363431;
    color: #ffffff;
    font-weight: 700;
    border-left: 2px solid #81b64c;
}

/* BOTONES DE ACCIÓN 3D TÁCTILES ESTILO CHESS.COM */
.action-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.btn-action {
    background: #3d3b37;
    border: none;
    border-bottom: 3px solid #272522;
    color: #c3c1be;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.1s ease, transform 0.05s ease, border-bottom 0.05s ease;
    user-select: none;
}

.btn-action:hover {
    background: #484540;
    color: #ffffff;
}

.btn-action:active {
    transform: translateY(2px);
    border-bottom-width: 1px;
}

.btn-action.primary {
    background: #81b64c;
    color: #ffffff;
    border: none;
    border-bottom: 4px solid #457524;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.btn-action.primary:hover {
    background: #95c85d;
    color: #ffffff;
}

.btn-action.primary:active {
    transform: translateY(2px);
    border-bottom-width: 2px;
}

.btn-action.danger {
    background: #3d3b37;
    border: none;
    border-bottom: 3px solid #272522;
    color: #f87171;
}

.btn-action.danger:hover {
    background: #cc3b2b;
    border-bottom-color: #8f2316;
    color: #ffffff;
}

/* MODALES */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    padding: 16px;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-prominent);
    border-radius: 16px;
    padding: 22px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.6);
    transform: scale(0.96);
    transition: transform 0.2s ease;
}

.modal-overlay.open .modal-card {
    transform: scale(1);
}

.modal-card.master-settings-card {
    max-width: 540px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.modal-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

.btn-close:hover {
    color: var(--text-primary);
}

/* PESTAÑAS DEL CENTRO DE AJUSTES MAESTRO */
.settings-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.settings-tabs::-webkit-scrollbar {
    display: none;
}

.settings-tab-btn {
    background: #3d3b37;
    border: none;
    border-bottom: 2px solid #272522;
    color: #c3c1be;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.settings-tab-btn:hover {
    background: #484540;
    color: #ffffff;
}

.settings-tab-btn.active {
    background: #81b64c;
    border-bottom: 3px solid #457524;
    color: #ffffff;
    font-weight: 800;
}

.settings-tab-content {
    display: none;
}

.settings-tab-content.active {
    display: block;
}

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

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s;
}

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

/* SELECTOR DE TEMAS EN MODAL */
.themes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.theme-card {
    background: var(--bg-surface);
    border: 2px solid var(--border-subtle);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.15s ease;
}

.theme-card:hover {
    border-color: var(--border-prominent);
}

.theme-card.active {
    border-color: var(--accent-gold);
    background: rgba(234, 179, 8, 0.1);
}

.theme-preview-box {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    overflow: hidden;
    flex-shrink: 0;
}

.theme-name-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* SELECTOR DE TIPOS DE FICHA 3D */
.piece-sets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.piece-set-card {
    background: var(--bg-surface);
    border: 2px solid var(--border-subtle);
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.15s ease;
}

.piece-set-card:hover {
    border-color: var(--border-prominent);
    background: var(--bg-surface-hover);
}

.piece-set-card.active {
    border-color: var(--accent-gold);
    background: rgba(234, 179, 8, 0.1);
}

.piece-preview-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.35);
    padding: 6px;
    border-radius: 6px;
    height: 48px;
}

.piece-preview-item {
    width: 32px;
    height: 32px;
}

.piece-set-info {
    text-align: center;
}

.piece-set-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.piece-set-desc {
    font-size: 11px;
    color: var(--text-muted);
}

/* MODAL DE CORONACIÓN */
.promotion-choices {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 16px 0;
}

.promo-btn {
    width: 64px;
    height: 64px;
    background: var(--bg-surface);
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: all 0.15s ease;
}

.promo-btn:hover {
    background: var(--bg-surface-hover);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

/* MODAL DE CÓDIGO QR PARA CELULAR */
.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin: 14px 0;
}

.qr-code-box {
    background: #ffffff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 214px;
    height: 214px;
    box-sizing: border-box;
}

.qr-code-box svg,
.qr-svg-rendered {
    width: 190px;
    height: 190px;
    display: block;
    border-radius: 4px;
}

.qr-code-img {
    width: 190px;
    height: 190px;
    display: block;
}

.qr-url-pill {
    background: var(--bg-surface);
    border: 1px solid var(--border-prominent);
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--font-mono, monospace);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-gold);
    word-break: break-all;
    letter-spacing: 0.3px;
}

.qr-ip-input {
    padding: 7px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 12px;
    flex: 1;
    font-family: var(--font-mono, monospace);
}

/* BARRA INFERIOR DE ACCIONES (ESTILO CHESS.COM) */
.bottom-nav-bar {
    width: 100%;
    max-width: 520px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 10px 0 16px 0;
    background: #262421;
    box-sizing: border-box;
    margin-top: 6px;
}

.nav-bar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: #8b8987;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: color 0.15s ease, transform 0.1s ease;
    padding: 6px 16px;
    border-radius: 6px;
}

.nav-bar-btn svg {
    display: block;
}

.nav-bar-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-bar-btn:active {
    transform: scale(0.95);
}

/* MODAL DE OPCIONES RÁPIDAS */
.options-modal-card {
    max-width: 360px;
}

.options-actions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.btn-option-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    background: #21201d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.btn-option-row:hover {
    background: #363431;
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-option-row.primary-row {
    background: #81b64c;
    border-bottom: 3px solid #457524;
    color: #ffffff;
}

.btn-option-row.danger-row {
    color: #f87171;
}

.btn-option-row.danger-row:hover {
    background: rgba(204, 59, 43, 0.2);
}

.opt-row-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.opt-row-text {
    flex: 1;
}

/* RESPONSIVE DESIGN PARA MÓVILES (ESTILO NATIVO CHESS.COM) */
@media (max-width: 820px) {
    html, body {
        font-size: 14px;
        background: #262421;
        min-height: 100vh;
        min-height: 100dvh;
        height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .app-header {
        padding: 6px 12px;
        flex-shrink: 0;
    }

    .sidebar-column {
        display: none !important;
    }

    .main-layout {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        gap: 0;
        width: 100vw;
        max-width: 100vw;
        min-height: calc(100vh - 46px);
        min-height: calc(100dvh - 46px);
    }

    .game-column {
        max-width: 100vw;
        width: 100vw;
        gap: 2px;
        justify-content: center;
        align-items: center;
        /* Compensa ópticamente la barra inferior del navegador móvil para centrar el tablero más arriba */
        padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
        margin-top: -8px;
    }

    .live-move-strip {
        padding: 2px 12px;
        min-height: 22px;
    }

    .eval-bar-wrapper {
        padding: 2px 12px 4px 12px;
    }

    .player-strip {
        padding: 5px 12px;
        background: transparent;
        border-radius: 0;
    }

    .player-avatar {
        width: 36px;
        height: 36px;
    }

    .player-name {
        font-size: 15px;
    }

    .digital-clock {
        font-size: 18px;
        padding: 0 12px;
        height: 36px;
        min-width: 86px;
    }

    .board-wrapper {
        border-radius: 0;
        box-shadow: none;
        border: none;
        width: min(100vw, calc(100dvh - 220px));
        max-width: 100vw;
    }

    .bottom-nav-bar {
        padding: 8px 0 8px 0;
        margin-top: 2px;
    }

    .coord-rank, .coord-file {
        font-size: 11px;
    }

    .sidebar-card {
        padding: 12px;
        border-radius: 12px;
    }

    .preset-btn-pro {
        padding: 8px 4px;
    }

    .preset-time-display {
        font-size: 14px;
    }

    .broadcast-scoreboard {
        padding: 8px;
        gap: 6px;
    }

    .player-score-pod {
        padding: 6px;
        gap: 6px;
    }

    .score-pname {
        max-width: 70px;
        font-size: 12px;
    }

    .score-number {
        font-size: 18px;
    }

    .piece-sets-grid {
        grid-template-columns: 1fr;
    }

    .history-container {
        height: 110px;
    }
}

/* ========================================================
   DISEÑO EXPANDIDO PARA COMPUTADORA / MONITOR DE ESCRITORIO
   (Aprovecha el ancho y alto del monitor para mayor presencia)
   ======================================================== */
@media (min-width: 1024px) {
    .main-layout {
        padding: 16px 32px;
        gap: 36px;
        max-width: 1560px;
        align-items: center;
        justify-content: center;
        min-height: calc(100vh - 60px);
    }

    /* Columna del Tablero: hasta 760px de ancho y adaptado a la altura */
    .game-column {
        max-width: min(760px, calc(100vh - 170px));
        gap: 10px;
        align-items: center;
        justify-content: center;
    }

    /* Barras de Jugador más espaciosas y elegantes */
    .player-strip {
        padding: 4px 6px;
        border-radius: 8px;
    }

    .player-avatar {
        width: 44px;
        height: 44px;
        font-size: 22px;
        border-radius: 8px;
    }

    .player-name {
        font-size: 16px;
    }

    .mini-piece-icon {
        width: 20px;
        height: 20px;
    }

    .captured-multiplier {
        font-size: 11px;
    }

    .material-advantage {
        font-size: 12px;
        padding: 2px 7px;
    }

    /* Relojes Digitales estilo Chess.com más grandes */
    .digital-clock {
        font-size: 26px;
        padding: 8px 18px;
        min-width: 115px;
        border-radius: 8px;
    }

    /* Tablero estilo Chess.com */
    .board-wrapper {
        border-radius: 6px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
        border: none;
    }

    .coord-rank, .coord-file {
        font-size: 13px;
    }

    .coord-rank {
        top: 4px;
        left: 5px;
    }

    .coord-file {
        bottom: 4px;
        right: 5px;
    }

    /* Columna Lateral Ampliada a 420px */
    .sidebar-column {
        width: 420px;
        min-width: 380px;
        gap: 16px;
        justify-content: center;
    }

    .sidebar-card {
        padding: 18px;
        border-radius: 16px;
    }

    .card-header-title {
        font-size: 14px;
    }

    .preset-btn-pro {
        padding: 12px 8px;
    }

    .preset-time-display {
        font-size: 17px;
    }

    .preset-name-badge {
        font-size: 11px;
    }

    .score-pname {
        font-size: 14px;
        max-width: 105px;
    }

    .pod-avatar-wrapper {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .score-number {
        font-size: 24px;
        min-width: 18px;
    }

    .score-center-terminal {
        padding: 6px 12px;
        min-width: 82px;
    }

    .history-container {
        height: 380px;
        font-size: 13px;
    }

    .btn-action {
        padding: 11px;
        font-size: 13px;
    }
}

/* PANTALLAS GRANDES Y MONITORES 2K / 4K */
@media (min-width: 1440px) {
    .main-layout {
        max-width: 1680px;
        gap: 48px;
        align-items: center;
        justify-content: center;
        min-height: calc(100vh - 60px);
    }

    .game-column {
        max-width: min(840px, calc(100vh - 160px));
        align-items: center;
        justify-content: center;
    }

    .sidebar-column {
        width: 440px;
        justify-content: center;
    }

    .history-container {
        height: 440px;
    }

    .digital-clock {
        font-size: 28px;
        min-width: 130px;
    }
}

/* ========================================================
   BARRA DE EVALUACIÓN EN VIVO, PISTAS Y NOTIFICACIONES PRO
   ======================================================== */
.eval-bar-wrapper {
    width: 100%;
    max-width: 520px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .eval-bar-wrapper {
        max-width: 100%;
        padding: 0 4px;
    }
}

.eval-bar-track {
    flex: 1;
    height: 8px;
    background: #1c1b19;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    position: relative;
}

.eval-bar-fill {
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, #e2e8f0 0%, #ffffff 100%);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.eval-score-pill {
    font-size: 11px;
    font-weight: 800;
    font-family: "SF Mono", -apple-system, monospace;
    padding: 2px 7px;
    border-radius: 5px;
    background: #181715;
    color: #c3c1be;
    border: 1px solid rgba(255, 255, 255, 0.12);
    min-width: 44px;
    text-align: center;
}

.square.hint-from {
    box-shadow: inset 0 0 0 4px #3b82f6 !important;
    background-color: rgba(59, 130, 246, 0.38) !important;
}

.square.hint-to {
    box-shadow: inset 0 0 0 4px #10b981 !important;
    background-color: rgba(16, 185, 129, 0.42) !important;
    animation: hint-pulse 0.8s infinite alternate;
}

@keyframes hint-pulse {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.25); }
}

.player-rating-badge {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
}

.toast-notification {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #181715;
    color: #ffffff;
    border: 1px solid rgba(129, 182, 76, 0.5);
    border-left: 4px solid #81b64c;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
    z-index: 250;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    max-width: 90vw;
    text-align: center;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

