/* ===== ANIMATIONS ===== */
@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0.3;
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(216, 29, 47, 0.6);
    }
    50% {
        box-shadow: 0 0 16px rgba(216, 29, 47, 1);
    }
}

@keyframes pulse-badge {
    0%, 100% {
        box-shadow: 0 0 16px rgba(216, 29, 47, 0.5);
    }
    50% {
        box-shadow: 0 0 24px rgba(216, 29, 47, 0.9);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(216, 29, 47, 0.6);
    }
    50% {
        box-shadow: 0 0 30px rgba(216, 29, 47, 1);
    }
}

body.live-show-page {
    font-family: 'Open Sans', Arial, sans-serif;
    background: #f4f6fb;
    color: #1a1f2b;
    overflow-x: hidden;
}

.live-main-content {
    padding-top: 0;
}

.live-section {
    padding: 30px 0;
}

/* ===== MODERN HEADER ===== */
.modern-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 52px;
    background: linear-gradient(90deg, #07101f 0%, #0d2a55 50%, #07101f 100%);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}

.modern-header .header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 52px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    box-sizing: border-box;
}

.modern-header .logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding-right: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    height: 100%;
    min-width: 0;
}

.modern-header .logo-wrap img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(107, 191, 255, 0.5);
    object-fit: cover;
    flex-shrink: 0;
}

.modern-header .logo-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modern-header .logo-text .comp-title {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modern-header .logo-text .comp-dates {
    font-size: 11px;
    color: #6bbfff;
    margin-top: 1px;
    font-weight: 500;
    white-space: nowrap;
}

.modern-header nav.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 100%;
    padding: 0 12px;
}

.modern-header nav.main-nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 13px;
    border-radius: 7px;
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    line-height: 1;
}

.modern-header nav.main-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
}

.modern-header nav.main-nav a i {
    color: #6bbfff;
    font-size: 13px;
}

.modern-header nav.main-nav a:hover i {
    color: #fff;
}

.modern-header .contact-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    height: 100%;
}

.modern-header .contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(107, 191, 255, 0.07);
    border: 1px solid rgba(107, 191, 255, 0.16);
    border-radius: 8px;
    padding: 5px 12px 5px 8px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.modern-header .contact-item:hover {
    background: rgba(107, 191, 255, 0.14);
    border-color: rgba(107, 191, 255, 0.32);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.modern-header .contact-item .c-icon {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    background: rgba(107, 191, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modern-header .contact-item .c-icon i {
    font-size: 12px;
    color: #6bbfff;
}

.modern-header .contact-item .c-text {
    display: flex;
    flex-direction: column;
}

.modern-header .contact-item .c-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1px;
}

.modern-header .contact-item .c-value {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    line-height: 1;
}

.modern-header .burger-btn {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 7px;
    padding: 7px 9px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.modern-header .burger-btn .bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    background: #07101f;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.mobile-nav-overlay.open {
    display: block;
}

.mobile-nav-overlay a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 24px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 14px;
    font-weight: 600;
}

.mobile-nav-overlay .m-nav-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-overlay .m-nav-icon.blue {
    background: rgba(0, 150, 255, 0.2);
    color: #6bbfff;
}

.mobile-nav-overlay .m-nav-icon.green {
    background: rgba(40, 200, 80, 0.2);
    color: #6fdf8a;
}

.mobile-nav-overlay .m-nav-icon.orange {
    background: rgba(255, 140, 0, 0.2);
    color: #ffbe55;
}

/* ===== HERO ===== */
.modern-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 52px;
}

.modern-hero .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.modern-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5, 8, 20, 0.85) 0%, rgba(10, 35, 70, 0.65) 50%, rgba(5, 8, 20, 0.6) 100%);
}

.modern-hero .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    padding: 70px 15px;
}

.hero-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.modern-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 7px 18px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modern-hero .hero-badge.live-badge {
    background: linear-gradient(135deg, rgba(216, 29, 47, 0.9), rgba(160, 16, 32, 0.9));
    border-color: rgba(255, 100, 100, 0.5);
    box-shadow: 0 0 20px rgba(216, 29, 47, 0.6);
    animation: pulse 1.5s ease-in-out infinite;
}

.modern-hero .hero-badge.final-badge {
    background: linear-gradient(135deg, rgba(46, 189, 89, 0.9), rgba(29, 141, 66, 0.9));
    border-color: rgba(100, 255, 150, 0.5);
}

.live-signal-hero {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    animation: blink 1.2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.modern-hero h1 {
    font-size: 54px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.1;
    margin: 0 0 20px;
    text-shadow: 0 3px 30px rgba(0, 0, 0, 0.7), 0 1px 8px rgba(0, 0, 0, 0.5);
}

.modern-hero .hero-dates {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 12px 22px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 20px;
}

.modern-hero .hero-desc-panel {
    max-width: 900px;
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    overflow: hidden;
}

.modern-hero .hero-desc-panel > summary {
    display: flex;
    align-items: center;
    gap: 9px;
    list-style: none;
    cursor: pointer;
    padding: 12px 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.modern-hero .hero-desc-panel > summary::-webkit-details-marker {
    display: none;
}

.modern-hero .hero-desc-panel > summary .toggle-close {
    display: none;
}

.modern-hero .hero-desc-panel[open] {
    background: rgba(255, 255, 255, 0.84);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 24px rgba(5, 12, 30, 0.22);
}

.modern-hero .hero-desc-panel[open] > summary {
    color: #12263f;
    text-shadow: none;
    background: rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(13, 42, 85, 0.15);
}

.modern-hero .hero-desc-panel[open] > summary .toggle-open {
    display: none;
}

.modern-hero .hero-desc-panel[open] > summary .toggle-close {
    display: inline;
}

.modern-hero .hero-desc {
    max-height: 300px;
    overflow: auto;
    padding: 14px 18px 16px;
    color: #111827;
    font-size: 15px;
    line-height: 1.65;
}

.modern-hero .hero-desc p,
.modern-hero .hero-desc span,
.modern-hero .hero-desc li,
.modern-hero .hero-desc strong,
.modern-hero .hero-desc em,
.modern-hero .hero-desc b,
.modern-hero .hero-desc i {
    color: inherit;
}

.modern-hero .hero-desc a {
    color: #0d4a96;
    text-decoration: underline;
}

.modern-hero .hero-desc p:empty {
    display: none;
}

/* ===== RANKING ===== */
.ranking-section {
    padding: 40px 0 30px;
}

.ranking-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.ranking-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.ranking-title-bar h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 900;
    color: #0d2a55;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ranking-title-bar h2 i {
    color: #e5a900;
}

.ranking-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ranking-status-badge.final {
    background: linear-gradient(135deg, #e67e00, #c45500);
    color: #fff;
}

.ranking-status-badge.live {
    background: linear-gradient(135deg, #d81d2f, #a01020);
    color: #fff;
    box-shadow: 0 0 16px rgba(216, 29, 47, 0.5);
    animation: pulse-badge 1.5s ease-in-out infinite;
}

.ranking-status-badge.pending {
    background: linear-gradient(135deg, #1a6fc8, #0d4a96);
    color: #fff;
}

.live-signal {
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff4444;
    animation: blink 1.2s ease-in-out infinite, glow 1.2s ease-in-out infinite;
    display: inline-block;
}

.live-signal::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(216, 29, 47, 0.4);
    animation: pulse-ring 1.5s ease-out infinite;
}

.ranking-update-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f3f7fd;
    border: 1px solid #d7e5f6;
    color: #335a86;
    font-size: 13px;
    font-weight: 700;
}

.ranking-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px 18px;
    border: 1px solid #dce6f3;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 10px rgba(13, 42, 85, 0.06);
}

.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.stat-card .stat-icon.blue {
    background: rgba(26, 111, 200, 0.1);
    color: #1a6fc8;
}

.stat-card .stat-icon.green {
    background: rgba(46, 189, 89, 0.1);
    color: #2ebd59;
}

.stat-card .stat-icon.orange {
    background: rgba(230, 126, 0, 0.1);
    color: #e67e00;
}

.stat-card .stat-icon.red {
    background: rgba(216, 29, 47, 0.1);
    color: #d81d2f;
}

.stat-card .stat-label {
    font-size: 12px;
    color: #7a8fa6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-card .stat-value {
    font-size: 22px;
    font-weight: 900;
    color: #0d2a55;
    line-height: 1;
}

.stat-card .stat-sub {
    font-size: 12px;
    color: #5e7d9f;
    margin-top: 2px;
}

.ranking-table-wrap {
    background: #fff;
    border-radius: 16px;
    overflow: auto;
    box-shadow: 0 4px 24px rgba(13, 42, 85, 0.09);
    border: 1px solid #dce6f3;
}

.ranking-table-wrap table.rtable {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.rtable thead tr {
    background: linear-gradient(90deg, #0a1730 0%, #123c72 100%);
}

.rtable thead th {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 14px 16px;
    border: none;
    white-space: nowrap;
}

.rtable tbody tr {
    border-bottom: 1px solid #eef2f8;
}

.rtable tbody tr:hover {
    background: #f5f9ff;
}

.rtable tbody tr.no-catch {
    opacity: 0.5;
}

.rtable tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    color: #13253c;
}

.rank-cell {
    min-width: 52px;
    text-align: center;
}

.rank-medal {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
}

.rank-medal.gold {
    background: linear-gradient(135deg, #ffd700, #e5a900);
    color: #7a4c00;
}

.rank-medal.silver {
    background: linear-gradient(135deg, #d0d8e4, #a8b4c0);
    color: #3d4a56;
}

.rank-medal.bronze {
    background: linear-gradient(135deg, #d4845a, #b8612e);
    color: #fff;
}

.rank-medal.normal {
    background: #eef2f8;
    color: #5d7a9a;
    font-size: 13px;
}

.team-name-main {
    font-size: 15px;
    font-weight: 800;
    color: #0d2a55;
    display: flex;
    align-items: center;
    gap: 7px;
}

.num-cell {
    text-align: center;
    white-space: nowrap;
    font-weight: 700;
}

.num-cell.blue {
    color: #1a6fc8;
}

.num-cell.green {
    color: #1d8d42;
}

.num-cell.red {
    color: #c02030;
}

.ranking-empty {
    text-align: center;
    padding: 60px 24px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #dce6f3;
}

.ranking-empty i {
    font-size: 48px;
    color: #c8d8ea;
    display: block;
    margin-bottom: 16px;
}

.ranking-empty p {
    color: #7a8fa6;
    font-size: 16px;
    margin: 0;
}

/* ===== DESKTOP REGISTRATION ===== */
.desktop-reg-section {
    padding: 30px 0 50px;
}

.desktop-reg-card {
    max-width: 1170px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(8, 20, 40, 0.12);
    border: 1px solid rgba(13, 42, 85, 0.08);
}

.desktop-reg-head {
    padding: 28px 34px 22px;
    background: linear-gradient(135deg, #0a1730 0%, #123c72 100%);
    color: #fff;
}

.desktop-reg-head h3 {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 800;
}

.desktop-reg-head h3 i {
    margin-right: 12px;
    opacity: 0.85;
}

.desktop-reg-head p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.84);
}

.desktop-reg-body {
    padding: 30px 34px 34px;
}

.desktop-reg-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    margin-bottom: 22px;
    border: 1px solid transparent;
}

.desktop-reg-alert.warning {
    background: #fff7db;
    border-color: #f5dc8c;
    color: #775400;
}

.desktop-reg-alert.danger {
    background: #fff0f0;
    border-color: #f1b7b7;
    color: #8f2424;
}

.desktop-reg-alert strong {
    display: block;
    margin-bottom: 4px;
}

.desktop-reg-alert span {
    display: block;
    line-height: 1.5;
}

.desktop-reg-success {
    text-align: center;
    padding: 18px 10px 8px;
}

.desktop-reg-success-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2ebd59, #1d8d42);
    color: #fff;
    font-size: 32px;
}

.desktop-reg-success h4 {
    margin: 0 0 8px;
    color: #1d8d42;
    font-size: 30px;
    font-weight: 800;
}

.desktop-reg-form .desktop-team-row {
    margin-bottom: 26px;
}

.desktop-reg-form .desktop-input-label {
    display: block;
    margin-bottom: 8px;
    color: #16365f;
    font-size: 18px;
    font-weight: 800;
}

.desktop-reg-form .desktop-input-label .hint {
    font-style: italic;
    font-weight: 600;
    color: #5e7d9f;
    font-size: 13px;
}

.desktop-reg-form .desktop-input-group {
    position: relative;
}

.desktop-reg-form .desktop-input-group i,
.desktop-reg-form .desktop-input-group .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #5d85b3;
    font-size: 16px;
    pointer-events: none;
}

.desktop-reg-form .desktop-input-group input {
    width: 100%;
    height: 52px;
    border: 1px solid #d8e2ee;
    border-radius: 12px;
    padding: 0 16px 0 46px;
    font-size: 15px;
    color: #13253c;
    background: #fdfefe;
}

.desktop-reg-form .desktop-input-group input:focus {
    outline: none;
    border-color: #2a80e8;
    box-shadow: 0 0 0 4px rgba(42, 128, 232, 0.12);
    background: #fff;
}

.desktop-reg-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 22px;
}

.desktop-reg-member {
    border-radius: 16px;
    border: 1px solid #dce6f3;
    background: #f7fbff;
    padding: 22px 22px 18px;
}

.desktop-reg-member.captain {
    background: linear-gradient(180deg, #eaf6ff 0%, #f7fbff 100%);
    border-color: #bed9f5;
}

.desktop-reg-member-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.desktop-reg-member-head h4 {
    margin: 0;
    font-size: 24px;
    font-weight: 300;
    color: #102a46;
}

.desktop-reg-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.desktop-reg-badge.captain {
    background: #d81d2f;
    color: #fff;
}

.desktop-reg-badge.member {
    background: #dbe8f6;
    color: #21486f;
}

.desktop-reg-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.desktop-participant-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.desktop-reg-fields details {
    margin-top: 6px;
}

.desktop-reg-fields summary {
    cursor: pointer;
    color: #1a5fc8;
    font-weight: 700;
}

.desktop-reg-captcha {
    margin: 6px 0 24px;
    display: flex;
    justify-content: center;
}

.desktop-reg-actions {
    display: flex;
    justify-content: center;
}

.desktop-reg-submit {
    min-width: 290px;
    height: 52px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #3cc360, #2d9d4d);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.desktop-reg-submit i {
    margin-right: 10px;
}

.desktop-reg-contact {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #edf2f7;
}

.desktop-reg-contact a,
.desktop-reg-contact .desktop-reg-contact-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border-radius: 12px;
    background: #f7fbff;
    border: 1px solid #d8e2ee;
    color: #16365f;
    text-decoration: none;
    font-weight: 700;
}

.desktop-reg-contact a:hover {
    text-decoration: none;
    background: #eef6ff;
}

.desktop-reg-closed {
    padding-top: 14px;
}

/* ===== MAP + FOOTER ===== */
#map-location .container {
    max-width: 1180px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #dce6f3;
    box-shadow: 0 4px 18px rgba(15, 34, 56, 0.08);
    padding: 22px;
}

#map-location h2,
#map-location .live-section-title {
    margin-top: 0;
    color: #0d2a55;
    font-weight: 800;
}

.live-map-canvas {
    width: 100%;
    height: 380px;
    border-radius: 8px;
    border: 1px solid #dbe5f3;
}

.live-footer {
    margin-top: 30px;
    border-top: 1px solid #dbe2ef;
    background: #fff;
    padding: 18px 0;
}

.live-footer p {
    margin: 0;
    color: #4f5f77;
}

/* ===== FISHING MODAL LOADING STATE ===== */
@keyframes spinner-rotate {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== SHARED FISH MODAL STYLES (desktop + mobile) ===== */

/* --- Modal shell --- */
.fish-modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

/* --- Header --- */
.fish-modal-header {
    background: linear-gradient(135deg, #0a1730 0%, #123c72 100%);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.fish-modal-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.fish-modal-header-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5fd67a;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.fish-modal-header-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}
.fish-modal-header-team {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 320px;
}
.fish-modal-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.2s;
    line-height: 1;
    padding: 0;
}
.fish-modal-close-btn:hover { background: rgba(255, 255, 255, 0.22); }

/* --- Scrollable body --- */
.fish-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
    background: #f7f9fc;
}

/* --- Loading --- */
.fish-modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 52px 20px;
}
.fish-modal-spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #e0e7ef;
    border-top-color: #123c72;
    border-radius: 50%;
    animation: spinner-rotate 0.9s linear infinite;
    margin-bottom: 18px;
}
.fish-modal-loading-text {
    color: #6b7f96;
    font-size: 0.88rem;
    font-weight: 600;
    margin: 0;
}

/* --- Fish icon row (shared) --- */
.mf-fish-weight-row {
    display: flex;
    align-items: baseline;
    gap: 7px;
}
.mf-fish-icon {
    color: #28a745;
    font-size: 1rem;
    flex-shrink: 0;
    position: relative;
    top: 1px;
}

/* --- Desktop modal overrides (scoped to #teamFishingModal only) --- */
#teamFishingModal .fish-modal-header-icon  { width: 48px; height: 48px; font-size: 22px; }
#teamFishingModal .fish-modal-header-title { font-size: 18px; }
#teamFishingModal .fish-modal-header-team  { font-size: 13px; max-width: 420px; }
#teamFishingModal .fish-modal-body         { padding: 20px; }
#teamFishingModal .mf-count-bar            { font-size: 15px; padding: 10px 16px; }
#teamFishingModal .mf-count-bar i          { font-size: 16px; }
#teamFishingModal .mf-fish-card            { padding: 18px 20px; margin-bottom: 12px; }
#teamFishingModal .mf-fish-weight-row      { gap: 10px; align-items: center; }
#teamFishingModal .mf-fish-icon            { font-size: 20px; top: 0; }
#teamFishingModal .mf-weight-num           { font-size: 28px; }
#teamFishingModal .mf-weight-unit          { font-size: 17px; }
#teamFishingModal .mf-fish-num             { font-size: 13px; padding: 4px 10px; }
#teamFishingModal .mf-meta-item            { font-size: 14px; gap: 6px; }
#teamFishingModal .mf-meta-item i          { font-size: 13px; }
#teamFishingModal .fish-modal-loading-text { font-size: 15px; }
#teamFishingModal .mf-empty p              { font-size: 15px; }
#teamFishingModal .mf-error-text           { font-size: 14px; }

/* --- Count bar --- */
.mf-count-bar {
    background: #eef5ff;
    border: 1px solid #c8dff5;
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 0.83rem;
    color: #0d2a55;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mf-count-bar i { color: #2ebd59; }

/* --- Fish card --- */
.mf-fish-card {
    background: #fff;
    border-radius: 14px;
    padding: 15px 18px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(13, 42, 85, 0.07);
    border-left: 4px solid #28a745;
    transition: box-shadow 0.15s;
}
.mf-fish-card:hover { box-shadow: 0 4px 18px rgba(13, 42, 85, 0.12); }
.mf-fish-card:last-child { margin-bottom: 0; }

.mf-fish-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
}
.mf-weight-num {
    font-size: 1.55rem;
    font-weight: 900;
    color: #0d2a55;
    line-height: 1;
}
.mf-weight-unit {
    font-size: 0.88rem;
    color: #7a8fa6;
    font-weight: 600;
    margin-left: 3px;
}
.mf-fish-num {
    font-size: 0.72rem;
    color: #a0b4c8;
    font-weight: 700;
    background: #eef3f8;
    border-radius: 6px;
    padding: 3px 9px;
}
.mf-fish-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.mf-meta-item {
    font-size: 0.8rem;
    color: #5a7693;
    display: flex;
    align-items: center;
    gap: 5px;
}
.mf-meta-item i { color: #2ebd59; font-size: 0.75rem; }

/* --- Empty state --- */
.mf-empty {
    text-align: center;
    padding: 52px 20px;
}
.mf-empty-icon {
    font-size: 2.8rem;
    color: #c8d8ea;
    display: block;
    margin-bottom: 16px;
}
.mf-empty p {
    color: #7a8fa6;
    font-size: 0.93rem;
    margin: 0;
}

/* --- Error state --- */
.mf-error {
    text-align: center;
    padding: 44px 20px;
}
.mf-error-icon {
    font-size: 2.4rem;
    color: #d81d2f;
    display: block;
    margin-bottom: 16px;
}
.mf-error-text {
    color: #7f3030;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0 0 16px;
}

/* --- Footer --- */
.fish-modal-footer {
    padding: 14px 20px;
    background: #fff;
    border-top: 1px solid #e4ecf5;
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.fish-modal-footer-btn {
    height: 42px;
    padding: 0 28px;
    background: linear-gradient(135deg, #0a1730 0%, #123c72 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.93rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.fish-modal-footer-btn:hover {
    opacity: 0.88;
    transition: all 0.2s ease;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fishing-list-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 111, 200, 0.3);
}

.fishing-list-btn:active:not(:disabled) {
    transform: translateY(0);
}

.fishing-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.fishing-modal-loading.hidden {
    display: none;
}

.spinner-container {
    text-align: center;
}

.spinner-ring {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0d2a55;
    border-radius: 50%;
    animation: spinner-rotate 1s linear infinite;
}

.spinner-text {
    color: #7a8fa6;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.3px;
}

.fishing-modal-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    padding: 20px;
}

.fishing-modal-error.hidden {
    display: none;
}

.fishing-modal-error-icon {
    font-size: 48px;
    color: #d81d2f;
    margin-bottom: 16px;
}

.fishing-modal-error-text {
    color: #8f2424;
    font-size: 15px;
    text-align: center;
    line-height: 1.6;
}

.fishing-modal-content {
    display: none;
}

.fishing-modal-content.visible {
    display: block;
}

.fishing-btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.fishing-btn-loading::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spinner-rotate 0.8s linear infinite;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .modern-header nav.main-nav,
    .modern-header .contact-wrap {
        display: none !important;
    }

    .modern-header .burger-btn {
        display: flex;
    }

    .modern-header .header-inner {
        grid-template-columns: 1fr auto;
        padding: 0 16px;
    }

    .modern-header .logo-wrap {
        border-right: none;
        padding-right: 0;
    }

    .modern-hero {
        min-height: 430px;
    }

    .modern-hero h1 {
        font-size: 32px;
    }

    .ranking-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .desktop-reg-grid,
    .desktop-participant-row {
        grid-template-columns: 1fr;
    }

    .desktop-reg-head,
    .desktop-reg-body {
        padding-left: 22px;
        padding-right: 22px;
    }
}

@media (max-width: 767px) {
    .modern-hero {
        min-height: 380px;
    }

    .modern-hero .hero-content {
        padding: 42px 15px;
    }

    .modern-hero h1 {
        font-size: 26px;
    }

    .modern-hero .hero-dates {
        font-size: 14px;
        padding: 9px 14px;
    }

    .modern-hero .hero-desc-panel > summary {
        padding: 10px 12px;
        font-size: 13px;
    }

    .modern-hero .hero-desc {
        max-height: 220px;
        padding: 12px 13px 14px;
        font-size: 14px;
    }

    .ranking-section {
        padding-top: 20px;
    }

    .ranking-meta {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .ranking-title-bar h2 {
        font-size: 24px;
    }

    .ranking-stats {
        grid-template-columns: 1fr;
    }

    .desktop-reg-head h3 {
        font-size: 24px;
    }

    .desktop-reg-submit {
        width: 100%;
        min-width: 0;
    }

    .live-map-canvas {
        height: 300px;
    }

    /* Mobile fishing modal optimizations */
    .fishing-list-btn {
        padding: 8px 14px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
        margin-bottom: 4px;
    }

    .fishing-list-btn i {
        font-size: 12px;
    }

    .spinner-ring {
        width: 40px;
        height: 40px;
        border-width: 4px;
    }

    .spinner-text {
        font-size: 13px;
    }

    .modal-dialog {
        margin: 10px;
    }

    .modal-body {
        padding: 16px;
    }

    .list-group-item {
        padding: 12px 16px !important;
    }
}
