/* ==========================================================================
   WoWS Daily Tracker
   ========================================================================== */

.wows-contenedor-tracker {
    --wows-tool-max-width: 1200px;
}

.wows-tracker-wrap [hidden] {
    display: none !important;
}

.wows-tracker-panel,
.wows-tracker-chart {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0.72)) !important;
    border: 1px solid rgba(51, 65, 85, 0.82);
    border-top: 1px solid rgba(125, 211, 252, 0.42);
    border-left: 3px solid rgba(51, 65, 85, 0.95);
    border-radius: 10px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.wows-tracker-panel::before,
.wows-tracker-chart::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(0, 210, 255, 0.1), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 42%);
    opacity: 0.22;
    pointer-events: none;
}

.wows-tracker-panel {
    padding: 20px;
    margin-bottom: 18px;
}

.wows-tracker-info {
    margin: 0 0 18px;
    padding: 15px 18px;
    background: linear-gradient(120deg, rgba(0, 210, 255, 0.1), rgba(15, 23, 42, 0.78));
    border: 1px solid rgba(0, 210, 255, 0.42);
    border-left: 3px solid #00d2ff;
    border-radius: 8px;
    color: #c8dced;
    font-size: 13px;
    line-height: 1.55;
}

.wows-tracker-info p {
    margin: 0;
}

.wows-tracker-info p + p {
    margin-top: 8px;
}

.wows-tracker-info strong {
    color: #ffffff;
}

.wows-tracker-countdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: -4px 0 18px;
    padding: 13px 15px;
    border: 1px solid rgba(250, 204, 21, 0.48);
    border-left: 3px solid #facc15;
    border-radius: 7px;
    background: linear-gradient(100deg, rgba(250, 204, 21, 0.12), rgba(2, 6, 23, 0.72));
}

.wows-tracker-countdown span {
    color: #fde68a;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.wows-tracker-countdown strong {
    color: #ffffff;
    font-size: 21px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
}

.wows-tracker-panel > *,
.wows-tracker-chart > * {
    position: relative;
    z-index: 1;
}

.wows-tracker-form {
    display: grid;
    grid-template-columns: 160px minmax(220px, 1fr) auto;
    gap: 15px;
    align-items: end;
}

.wows-tracker-field label,
.wows-tracker-section-title {
    display: block;
    margin-bottom: 8px;
    color: #facc15 !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.12);
}

.wows-tracker-section-title {
    position: relative;
    margin: 24px 0 8px;
    padding-bottom: 9px;
    color: #f7fbff !important;
    font-size: 14px;
    text-shadow: 0 0 12px rgba(0, 210, 255, 0.18);
}

.wows-tracker-section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(320px, 72%);
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 210, 255, 0.86), rgba(241, 196, 15, 0.58), transparent);
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.2);
}

.wows-tracker-section-meta {
    margin: 0 0 12px;
    color: #9fb6cc;
    font-size: 12px;
    font-style: italic;
}

.wows-tracker-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    position: relative;
    overflow: hidden;
    padding: 11px 16px;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.22), rgba(2, 6, 23, 0.94));
    border: 1px solid rgba(0, 210, 255, 0.72);
    border-radius: 4px;
    color: #ffffff !important;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 18px rgba(0, 0, 0, 0.28);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.wows-tracker-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    transform: translateX(-120%);
    transition: transform 0.42s ease;
    pointer-events: none;
}

.wows-tracker-btn:hover,
.wows-tracker-btn:focus {
    transform: translateY(-1px);
    background: linear-gradient(180deg, rgba(0, 210, 255, 0.34), rgba(14, 116, 144, 0.42));
    border-color: #7dd3fc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 18px rgba(0, 210, 255, 0.26);
    outline: none;
}

.wows-tracker-btn:hover::before,
.wows-tracker-btn:focus::before {
    transform: translateX(120%);
}

.wows-tracker-btn.secondary {
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.14), rgba(2, 6, 23, 0.94));
    border-color: rgba(0, 210, 255, 0.44);
    color: #d7e8f7 !important;
}

.wows-tracker-btn:disabled {
    cursor: wait;
    opacity: 0.58;
    transform: none;
}

.wows-tracker-alert {
    min-height: 24px;
    margin-bottom: 14px;
    color: #facc15;
    font-size: 13px;
    font-style: italic;
    text-align: center;
}

.wows-tracker-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.wows-tracker-player {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0.72));
    border: 1px solid rgba(51, 65, 85, 0.82);
    border-left: 3px solid rgba(51, 65, 85, 0.95);
    border-radius: 10px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.wows-tracker-player:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 210, 255, 0.76);
    border-left-color: #00d2ff;
    box-shadow: 0 0 18px rgba(0, 210, 255, 0.16);
}

.wows-tracker-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 18px;
    background: rgba(8, 15, 24, 0.58);
    border: 1px solid rgba(51, 65, 85, 0.72);
    border-radius: 10px;
}

.wows-tracker-toolbar strong[data-role="player-name"] {
    color: #f7fbff;
    font-size: 18px;
    text-shadow: 0 0 12px rgba(0, 210, 255, 0.18);
}

.wows-tracker-sync-meta {
    margin-top: 4px;
    color: #9fb6cc;
    font-size: 12px;
}

.wows-tracker-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-width: min(100%, 460px);
}

.wows-tracker-controls select {
    flex: 1 1 180px;
}

.wows-tracker-controls .wows-tracker-btn {
    flex: 0 0 auto;
}

.wows-tracker-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.wows-tracker-kpi {
    position: relative;
    overflow: hidden;
    padding: 14px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.74));
    border: 1px solid rgba(51, 65, 85, 0.78);
    border-left: 3px solid rgba(0, 210, 255, 0.72);
    border-radius: 4px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.wows-tracker-kpi::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0, 210, 255, 0.08), transparent 36%);
    pointer-events: none;
}

.wows-tracker-kpi span,
.wows-tracker-kpi strong {
    position: relative;
    z-index: 1;
}

.wows-tracker-kpi span {
    display: block;
    margin-bottom: 7px;
    color: #9fb6cc;
    font-size: 11px;
    text-transform: uppercase;
}

.wows-tracker-kpi strong {
    display: block;
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    text-shadow: 0 0 12px rgba(0, 210, 255, 0.16);
}

.wows-tracker-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.wows-tracker-chart {
    min-height: 270px;
    padding: 14px;
}

.wows-tracker-chart h3 {
    margin: 0 0 10px;
    color: #f7fbff !important;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(0, 210, 255, 0.18);
}

.wows-tracker-chart canvas {
    display: block;
    width: 100%;
    height: 220px;
}

.wows-tracker-table-wrap {
    margin-top: 14px;
}

.wows-tracker-muted {
    color: #8aa0b7 !important;
    font-style: italic;
}

.wows-contenedor-tracker table.wows-tracker-table thead th {
    position: relative;
    overflow: hidden;
    padding: 18px 14px !important;
    background:
        linear-gradient(180deg, rgba(21, 38, 60, 0.98), rgba(4, 10, 18, 0.98)) !important;
    border-bottom: 1px solid rgba(0, 210, 255, 0.48) !important;
    color: #f7fbff !important;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-shadow:
        0 0 10px rgba(0, 210, 255, 0.22),
        0 8px 16px rgba(0, 0, 0, 0.34);
}

.wows-contenedor-tracker table.wows-tracker-table thead th::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 34%),
        linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.1), transparent);
    opacity: 0.7;
    pointer-events: none;
}

.wows-contenedor-tracker table.wows-tracker-table thead th::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.82), transparent);
    box-shadow: 0 0 14px rgba(0, 210, 255, 0.36);
    pointer-events: none;
}

.wows-contenedor-tracker table.wows-tracker-table thead th:nth-child(1)::after {
    background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.82), transparent);
}

.wows-contenedor-tracker table.wows-tracker-table thead th:nth-child(2)::after {
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.88), transparent);
}

.wows-contenedor-tracker table.wows-tracker-table thead th:nth-child(3)::after,
.wows-contenedor-tracker table.wows-tracker-table thead th:nth-child(8)::after {
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.88), transparent);
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.32);
}

.wows-contenedor-tracker table.wows-tracker-table thead th:nth-child(4)::after,
.wows-contenedor-tracker table.wows-tracker-table thead th:nth-child(5)::after,
.wows-contenedor-tracker table.wows-tracker-table thead th:nth-child(7)::after {
    background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.88), transparent);
    box-shadow: 0 0 14px rgba(250, 204, 21, 0.3);
}

.wows-contenedor-tracker table.wows-tracker-table thead th:nth-child(6)::after {
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.88), transparent);
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.3);
}

@media (max-width: 920px) {
    .wows-tracker-form,
    .wows-tracker-grid,
    .wows-tracker-kpis {
        grid-template-columns: 1fr;
    }

    .wows-tracker-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .wows-tracker-controls {
        width: 100%;
    }

    .wows-tracker-controls .wows-tracker-btn,
    .wows-tracker-controls select {
        flex: 1 1 100%;
    }
}
.wows-public-player-identity {
    display: flex;
    align-items: center;
    gap: 18px;
}

.wows-public-player-identity img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 2px solid #22d3ee;
    box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.09);
}

.wows-public-player-identity h3 {
    margin: 0 0 6px !important;
    color: #fff !important;
    font-size: 22px;
}

.wows-public-player-identity p {
    margin: 0 !important;
    color: #7dd3fc !important;
    font-weight: 800;
}

.wows-profile-privacy-form {
    grid-column: 1 / -1;
    display: grid;
    gap: 16px;
    margin-top: 16px;
    padding: 18px;
    border: 1px solid rgba(34, 211, 238, 0.38);
    border-left: 3px solid #22d3ee;
    border-radius: 6px;
    background: linear-gradient(145deg, rgba(4, 13, 29, 0.94), rgba(3, 10, 23, 0.78));
    box-shadow: inset 0 1px 0 rgba(125, 211, 252, 0.06);
}

.wows-profile-privacy-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 5px;
    background: rgba(8, 20, 39, 0.72);
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease;
}

.wows-profile-privacy-toggle:hover {
    border-color: rgba(34, 211, 238, 0.55);
    background: rgba(11, 29, 52, 0.82);
}

.wows-profile-privacy-toggle input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #22d3ee;
}

.wows-profile-privacy-toggle span,
.wows-profile-privacy-toggle strong,
.wows-profile-privacy-toggle small {
    display: block;
}

.wows-profile-privacy-toggle strong {
    color: #fff !important;
    font-size: 14px;
    line-height: 1.3;
}

.wows-profile-privacy-toggle small {
    margin-top: 4px;
    color: #bdd0e1 !important;
    font-size: 12px;
    line-height: 1.5;
}

.wows-profile-privacy-form .wows-btn-primary {
    width: fit-content;
}

.wows-profile-timezone-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding-top: 2px;
}

.wows-profile-timezone-field > span,
.wows-profile-timezone-field strong,
.wows-profile-timezone-field small {
    display: block;
}

.wows-profile-timezone-field strong {
    color: #ffffff !important;
    font-size: 14px;
    line-height: 1.35;
}

.wows-profile-timezone-field small {
    max-width: 62ch;
    margin-top: 5px;
    color: #b7cadc !important;
    font-size: 12px;
    line-height: 1.55;
}

.wows-profile-timezone-field select {
    width: 100%;
    min-height: 42px;
    color: #f8fafc;
    border-color: rgba(34, 211, 238, 0.52);
    background-color: rgba(2, 8, 23, 0.96);
}

.wows-player-profile .wows-profile-sync-status {
    position: relative;
    display: block;
    min-height: 42px;
    padding: 12px 14px 12px 42px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-left: 3px solid rgba(148, 163, 184, 0.8);
    border-radius: 5px;
    background: rgba(15, 23, 42, 0.78);
}

.wows-player-profile .wows-profile-sync-status::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 16px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #94a3b8;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.12);
    transform: translateY(-50%);
}

.wows-player-profile .wows-profile-sync-status.status-ok {
    border-color: rgba(34, 197, 94, 0.32);
    border-left-color: #22c55e;
    background: linear-gradient(90deg, rgba(20, 83, 45, 0.28), rgba(15, 23, 42, 0.72));
}

.wows-player-profile .wows-profile-sync-status.status-ok::before {
    background: #4ade80;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.13);
}

.wows-profile-link-card {
    border-left: 3px solid #22d3ee;
    background: linear-gradient(135deg, rgba(8, 32, 54, 0.88), rgba(9, 15, 30, 0.94));
}

.wows-profile-link-card__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(34, 211, 238, 0.25);
}

.wows-profile-link-card__header span {
    display: block;
    margin-bottom: 4px;
    color: #22d3ee;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wows-profile-link-card__header h3 {
    margin: 0;
}

.wows-profile-link-card__header p {
    max-width: 540px;
    margin: 0;
    color: #cbd5e1;
}

.wows-profile-link-card .wows-tracker-alert:empty {
    display: none;
}

.wows-profile-link-card .wows-tracker-form {
    display: grid;
    grid-template-columns: minmax(150px, 0.45fr) minmax(220px, 1fr) auto;
    align-items: end;
    gap: 14px;
}

.wows-profile-link-card__nickname {
    min-width: 0;
}

.wows-profile-link-card .wows-profile-note {
    margin: 16px 0 0;
}

@media (max-width: 560px) {
    .wows-profile-link-card__header,
    .wows-profile-link-card .wows-tracker-form {
        display: grid;
        grid-template-columns: 1fr;
    }

    .wows-profile-privacy-form {
        padding: 14px;
    }

    .wows-public-player-identity {
        align-items: flex-start;
    }

    .wows-public-player-identity img {
        width: 72px;
        height: 72px;
    }
}
