/* ============================================================
   BEACH SOCCER TOURNAMENT - CHAMPIONS LEAGUE THEME
   Município de Vieira do Minho - Desporto Municipal
   ============================================================ */

/* ============================================================
   1. RESET & BASE
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #060d1f;
    color: #e0e7ef;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Star pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 20% 35%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 30% 60%, rgba(212,175,55,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 40% 10%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 50% 80%, rgba(255,255,255,0.2) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 60% 25%, rgba(212,175,55,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 45%, rgba(255,255,255,0.35) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 70%, rgba(255,255,255,0.25) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 90% 5%, rgba(212,175,55,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 15% 85%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 25% 50%, rgba(255,255,255,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 35% 20%, rgba(255,255,255,0.35) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 45% 90%, rgba(212,175,55,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 55% 40%, rgba(255,255,255,0.25) 0%, transparent 100%),
        radial-gradient(1px 1px at 65% 75%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 75% 15%, rgba(212,175,55,0.45) 0%, transparent 100%),
        radial-gradient(1px 1px at 85% 55%, rgba(255,255,255,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 95% 30%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 5% 65%, rgba(255,255,255,0.25) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 48% 48%, rgba(212,175,55,0.35) 0%, transparent 100%);
    opacity: 0.7;
}

body > * {
    position: relative;
    z-index: 1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

a {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #f0c850;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ============================================================
   2. SCROLLBAR STYLING
   ============================================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0a1628;
}

::-webkit-scrollbar-thumb {
    background: #2a3a54;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a4a64;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #2a3a54 #0a1628;
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 0.75rem;
    color: #e0e7ef;
}

p:last-child {
    margin-bottom: 0;
}

strong {
    font-weight: 600;
    color: #ffffff;
}

small {
    font-size: 0.8rem;
    color: #8899b0;
}

.text-muted {
    color: #4a5a74 !important;
}

/* ============================================================
   4. LAYOUT
   ============================================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 2rem 0;
}

.site-main {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 200px);
}

.content-grid {
    display: grid;
    gap: 1.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* ============================================================
   5. HEADER
   ============================================================ */

.site-header {
    background: linear-gradient(135deg, #0a1628 0%, #0f1d33 50%, #0a1628 100%);
    border-bottom: 2px solid rgba(212,175,55,0.3);
    padding: 1rem 0;
    position: relative;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(212,175,55,0.4);
    object-fit: cover;
    box-shadow: 0 0 20px rgba(212,175,55,0.15);
}

.header-titles {
    text-align: center;
}

.header-titles h1 {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.header-subtitle {
    font-size: 0.8rem;
    color: #8899b0;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0;
}

/* ============================================================
   6. NAVIGATION
   ============================================================ */

.main-nav {
    background: #0a1628;
    border-bottom: 1px solid #2a3a54;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(10, 22, 40, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0;
}

.main-nav li a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: #8899b0;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.main-nav li a:hover {
    color: #ffffff;
    background: rgba(212,175,55,0.08);
}

.main-nav li a.active {
    color: #d4af37;
    background: rgba(212,175,55,0.12);
    font-weight: 600;
}

/* ============================================================
   7. HERO SECTION
   ============================================================ */

.hero-section {
    background: linear-gradient(180deg, #0f1d33 0%, #060d1f 100%);
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212,175,55,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 0.75rem;
    border: 3px solid rgba(212,175,55,0.4);
    box-shadow: 0 0 40px rgba(212,175,55,0.2);
    object-fit: cover;
}

.hero-title {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #d4af37 50%, #f0c850 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
    letter-spacing: -0.03em;
}

.hero-date {
    font-size: 1.1rem;
    color: #8899b0;
    margin-bottom: 2rem;
    font-weight: 300;
    text-transform: capitalize;
}

/* ============================================================
   LIVE MATCH
   ============================================================ */

.live-section {
    padding-top: 0;
}

.live-badge-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}

.live-label {
    color: #ef4444;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.live-match-card {
    background: linear-gradient(135deg, #1a2744 0%, #162035 100%);
    border: 1px solid rgba(239,68,68,0.25);
    border-radius: 16px;
    padding: 24px 32px;
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 0 30px rgba(239,68,68,0.08);
}

/* ============================================================
   8. COUNTDOWN
   ============================================================ */

.countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.countdown-item {
    background: rgba(26,39,68,0.8);
    border: 1px solid #2a3a54;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    min-width: 80px;
    text-align: center;
    transition: all 0.3s ease;
}

.countdown-item:hover {
    border-color: rgba(212,175,55,0.3);
    box-shadow: 0 0 20px rgba(212,175,55,0.1);
}

.countdown-item span {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #d4af37;
    line-height: 1;
}

.countdown-item small {
    display: block;
    font-size: 0.7rem;
    color: #8899b0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.35rem;
}

/* ============================================================
   9. BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37, #b8962e);
    color: #060d1f;
    box-shadow: 0 4px 15px rgba(212,175,55,0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f0c850, #d4af37);
    box-shadow: 0 6px 25px rgba(212,175,55,0.35);
    transform: translateY(-1px);
    color: #060d1f;
}

.btn-secondary {
    background: #1a2744;
    color: #e0e7ef;
    border: 1px solid #2a3a54;
}

.btn-secondary:hover {
    background: #1e3050;
    border-color: #3a4a64;
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    color: #d4af37;
    border: 1px solid rgba(212,175,55,0.4);
}

.btn-outline:hover {
    background: rgba(212,175,55,0.1);
    border-color: #d4af37;
    color: #f0c850;
}

.btn-danger {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.3);
}

.btn-danger:hover {
    background: rgba(239,68,68,0.25);
    border-color: #ef4444;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    border-radius: 8px;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #1a2744;
    color: #8899b0;
    border: 1px solid #2a3a54;
    font-size: 1rem;
    transition: all 0.2s ease;
    padding: 0;
}

.btn-icon:hover {
    background: #1e3050;
    color: #d4af37;
    border-color: rgba(212,175,55,0.3);
}

.btn-icon.btn-danger {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
    border-color: rgba(239,68,68,0.2);
}

.btn-icon.btn-danger:hover {
    background: rgba(239,68,68,0.2);
    border-color: #ef4444;
}

.btn-login {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    width: 100%;
}

/* ============================================================
   10. CARDS
   ============================================================ */

.card {
    background: #1a2744;
    border: 1px solid #2a3a54;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(212,175,55,0.15);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #2a3a54;
}

.card-header h2 {
    font-size: 1rem;
    font-weight: 700;
}

.card-header .badge {
    font-size: 0.75rem;
}

/* ============================================================
   11. TABLES
   ============================================================ */

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.table thead {
    background: rgba(212,175,55,0.06);
}

.table thead th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8899b0;
    border-bottom: 1px solid #2a3a54;
    white-space: nowrap;
}

.table tbody td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(42,58,84,0.5);
    color: #e0e7ef;
    vertical-align: middle;
}

.table tbody tr {
    transition: background 0.15s ease;
}

.table tbody tr:hover {
    background: rgba(212,175,55,0.04);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Standings Table */
.standings-table {
    font-size: 0.85rem;
}

.standings-table tbody td,
.standings-table thead th {
    text-align: center;
    padding: 0.6rem 0.75rem;
}

.standings-table thead th:first-child,
.standings-table tbody td:first-child {
    width: 36px;
    text-align: center;
}

.standings-table thead th:nth-child(2),
.standings-table tbody td:nth-child(2) {
    text-align: left;
}

.pts-cell {
    font-weight: 800;
    color: var(--accent-gold);
}

/* Scorers Table */
.scorers-table thead th:first-child {
    width: 40px;
    text-align: center;
}

.scorers-table tbody td:first-child {
    text-align: center;
    color: #8899b0;
    font-weight: 600;
}

.scorers-table .goals-cell {
    text-align: center;
    font-weight: 700;
    color: #d4af37;
    font-size: 1rem;
}

.scorers-table .scorer-name-cell {
    font-weight: 600;
    color: #ffffff;
}

/* ============================================================
   12. MATCH CARDS
   ============================================================ */

.matches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.match-card {
    background: #1a2744;
    border: 1px solid #2a3a54;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.match-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    border-radius: 12px 0 0 12px;
}

.match-card:hover {
    border-color: rgba(212,175,55,0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.match-card.completed::before {
    background: #22c55e;
}

.match-card.upcoming::before {
    background: #3b82f6;
}

.match-card.live::before {
    background: #ef4444;
    animation: pulse-bar 2s infinite;
}

.match-card.live {
    border-color: rgba(239,68,68,0.3);
}

.match-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.match-score {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    min-width: 70px;
    justify-content: center;
}

.match-score .score {
    color: #ffffff;
    min-width: 22px;
    text-align: center;
}

.match-score .score-sep {
    color: #4a5a74;
    font-weight: 400;
}

.match-vs {
    font-size: 0.85rem;
    font-weight: 700;
    color: #4a5a74;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.match-scorers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 1.25rem;
    border-top: 1px solid rgba(42,58,84,0.5);
}

.scorer-line {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #8899b0;
    background: rgba(255,255,255,0.04);
    padding: 3px 8px;
    border-radius: 6px;
}

.scorer-minute-badge {
    font-weight: 700;
    color: #d4af37;
    font-size: 0.7rem;
}

.scorer-team-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.match-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(42,58,84,0.5);
    font-size: 0.78rem;
    color: #8899b0;
    flex-wrap: wrap;
}

.match-status {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.match-status.live {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
    animation: pulse 1.5s infinite;
}

.match-group {
    font-weight: 600;
    color: #d4af37;
}

.match-jornada {
    color: #8899b0;
}

.match-date,
.match-time,
.match-field,
.match-datetime,
.match-time-only {
    color: #8899b0;
}

.match-time {
    font-weight: 500;
}

.match-time-only {
    font-weight: 700;
    color: #d4af37;
    font-size: 0.85rem;
}

/* ============================================================
   13. TEAM ELEMENTS
   ============================================================ */

.team {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.team:last-child {
    justify-content: flex-end;
    text-align: right;
}

.team-badge {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(0,0,0,0.3);
}

.team-badge-sm {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.4rem;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.team-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-cell {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 6px rgba(0,0,0,0.3);
}

.color-dot.small {
    width: 10px;
    height: 10px;
    border-width: 1px;
}

/* ============================================================
   14. GROUPS
   ============================================================ */

.groups-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.group-block {
    background: #1a2744;
    border: 1px solid #2a3a54;
    border-radius: 14px;
    overflow: visible;
}

.group-title {
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    background: rgba(212,175,55,0.08);
    border-bottom: 1px solid #2a3a54;
    color: #d4af37;
}

.group-block .table {
    margin-bottom: 0;
}

/* ============================================================
   15. SCORERS
   ============================================================ */

.scorers-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.page-header {
    margin-bottom: 1.5rem;
}

.page-header .page-title {
    margin-bottom: 0;
}

.app-download-card {
    background: #1a2744;
    border: 1px solid #2a3a54;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}
.app-download-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}
.app-download-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 0.3rem;
}
.app-download-desc {
    color: #8899b0;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.app-download-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    text-align: left;
}
.app-option {
    background: #0f1a2e;
    border: 1px solid #2a3a54;
    border-radius: 10px;
    padding: 1rem;
}
.app-option h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 0.4rem;
}
.app-option p {
    font-size: 0.78rem;
    color: #8899b0;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}
.app-option p strong { color: #e0e7ef; }
.btn-gold {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, #d4af37, #b8960f);
    color: #060d1f;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.15s;
}
.btn-gold:active { transform: scale(0.97); }

@media (max-width: 768px) {
    .app-download-options { grid-template-columns: 1fr; }
}

.scorer-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #1a2744;
    border: 1px solid #2a3a54;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.scorer-item:hover {
    border-color: rgba(212,175,55,0.2);
    background: #1e3050;
}

.scorer-rank {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #8899b0;
    background: rgba(42,58,84,0.5);
    border-radius: 8px;
    flex-shrink: 0;
}

.scorer-item:first-child .scorer-rank {
    background: rgba(212,175,55,0.15);
    color: #d4af37;
}

.scorer-badge {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.scorer-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.scorer-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

.scorer-team {
    font-size: 0.75rem;
    color: #8899b0;
}

.scorer-goals {
    font-size: 0.85rem;
    font-weight: 700;
    color: #d4af37;
    white-space: nowrap;
}

.goals-cell {
    font-weight: 700;
    color: #d4af37;
}

.scorer-name-cell {
    font-weight: 600;
}

/* ============================================================
   15b. PODIUM
   ============================================================ */

.podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #1a2744;
    border: 1px solid #2a3a54;
    border-radius: 14px;
    padding: 1.25rem 1rem 1rem;
    min-width: 120px;
    flex: 1;
    max-width: 180px;
    position: relative;
}

.podium-first {
    order: 0;
    transform: translateY(-1rem);
    border-color: rgba(212,175,55,0.4);
    box-shadow: 0 0 20px rgba(212,175,55,0.1);
}

.podium-gold .podium-rank { background: rgba(212,175,55,0.15); color: #d4af37; }
.podium-silver .podium-rank { background: rgba(192,192,192,0.15); color: #c0c0c0; }
.podium-bronze .podium-rank { background: rgba(205,127,50,0.15); color: #cd7f32; }

.podium-rank {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.podium-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(42,58,84,0.6);
    border: 3px solid #2a3a54;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.65rem;
}

.podium-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.podium-team {
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.podium-goals {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.podium-goals-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #d4af37;
    line-height: 1;
}

.podium-goals-label {
    font-size: 0.7rem;
    color: #8899b0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================================
   15c. TABS
   ============================================================ */

.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tab {
    padding: 0.6rem 1.25rem;
    background: #1a2744;
    border: 1px solid #2a3a54;
    border-radius: 8px;
    color: #8899b0;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tab:hover {
    background: rgba(212,175,55,0.08);
    color: #d4af37;
    border-color: rgba(212,175,55,0.3);
}

.tab-active {
    background: rgba(212,175,55,0.12);
    color: #d4af37;
    border-color: rgba(212,175,55,0.4);
}

/* ============================================================
   15d. TABLE CONTAINER & LEGEND
   ============================================================ */

.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

.table-container .standings-table {
    width: 100%;
    min-width: 450px;
}

.legend {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.75rem 0;
    font-size: 0.8rem;
    color: #8899b0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.qualified-dot {
    background: rgba(34,197,94,0.6);
}

.tiebreaker-rules {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    font-size: 0.82rem;
    color: #8899b0;
    line-height: 1.6;
}

.tiebreaker-rules h4 {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    color: #c0c8d8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tiebreaker-rules p {
    margin: 0 0 0.5rem;
}

.tiebreaker-rules ul,
.tiebreaker-rules ol {
    margin: 0 0 0.5rem;
    padding-left: 1.2rem;
}

.tiebreaker-rules li {
    margin-bottom: 0.2rem;
}

.tiebreaker-note {
    margin-top: 0.5rem;
    font-style: italic;
    opacity: 0.7;
}

.qualified {
    background: rgba(34,197,94,0.04);
}

.team-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.4rem;
    flex-shrink: 0;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.col-pos {
    width: 36px;
    text-align: center;
}

.col-team {
    text-align: left;
    min-width: 120px;
}

.col-pts {
    font-weight: 700;
    color: #d4af37;
}

.empty-state-card {
    background: #1a2744;
    border: 1px solid #2a3a54;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: #8899b0;
}

.scorers-table {
    width: 100%;
}

.scorers-table thead th {
    text-align: left;
    padding: 0.6rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #8899b0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #2a3a54;
}

.scorers-table tbody td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid rgba(42,58,84,0.5);
    color: #e0e7ef;
    font-size: 0.85rem;
}

.scorers-table tbody tr:hover {
    background: rgba(212,175,55,0.04);
}

.scorers-table tbody tr:last-child td {
    border-bottom: none;
}

.scorers-table .col-player {
    font-weight: 600;
}

.scorers-table .col-team {
    white-space: nowrap;
}

.scorers-table .col-goals {
    text-align: center;
    font-weight: 700;
    color: #d4af37;
}

/* ============================================================
   16. FILTERS
   ============================================================ */

.filters-bar {
    margin-bottom: 1.5rem;
}

.filters-form {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    background: #1a2744;
    border: 1px solid #2a3a54;
    border-radius: 12px;
}

.filters-form select {
    min-width: 150px;
}

.filters-form .btn {
    flex-shrink: 0;
}

/* ============================================================
   17. CALENDAR
   ============================================================ */

.calendar-day {
    margin-bottom: 2rem;
}

.calendar-date {
    font-size: 1.1rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(212,175,55,0.2);
    text-transform: capitalize;
}

/* ============================================================
   18. FOOTER
   ============================================================ */

.site-footer {
    background: #0a1628;
    border-top: 1px solid #2a3a54;
    margin-top: 3rem;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.3), transparent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.15rem;
}

.footer-subtitle {
    font-size: 0.8rem;
    color: #8899b0;
}

.footer-info {
    text-align: right;
    font-size: 0.8rem;
    color: #8899b0;
    flex-shrink: 0;
}

.footer-info p {
    color: #8899b0;
    font-size: 0.8rem;
}

.footer-logos {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.footer-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.footer-logo-large {
    height: 94px;
}

.footer-logo + .footer-logo {
    margin-left: 25px;
}

.footer-logos .footer-logo-braga {
    margin-left: 50px;
}

/* ============================================================
   BRACKET / APURAÇÃO
   ============================================================ */

.champion-banner {
    text-align: center;
    padding: 2.5rem 1.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.05));
    border: 2px solid #d4af37;
    border-radius: 16px;
}

.champion-trophy {
    font-size: 4rem;
    animation: champion-bounce 1.5s ease-in-out infinite;
}

@keyframes champion-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.champion-title {
    font-size: 2rem;
    color: #f0c850;
    font-weight: 800;
    margin: 0.5rem 0 0.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.champion-subtitle {
    color: #8899b0;
    font-size: 1.1rem;
    margin: 0;
}

.bracket {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
}

.bracket-round {
    min-width: 220px;
    flex-shrink: 0;
}

.bracket-round-title {
    font-size: 0.85rem;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-align: center;
}

.bracket-match {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.75rem;
}

.bracket-match-final {
    border-color: rgba(212,175,55,0.3);
    background: rgba(212,175,55,0.05);
}

.bracket-team {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    color: #8899b0;
    font-size: 0.85rem;
}

.bracket-winner {
    color: #ffffff;
    font-weight: 600;
}

.bracket-team .team-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bracket-team .team-name {
    flex: 1;
}

.bracket-score {
    font-weight: 700;
    min-width: 20px;
    text-align: right;
    color: #ffffff;
}

.bracket-extra {
    font-size: 0.7rem;
    color: #d4af37;
    text-align: center;
    margin-top: 0.3rem;
    font-style: italic;
}

.bracket-winner-label {
    font-size: 0.75rem;
    color: #22c55e;
    text-align: center;
    margin-top: 0.4rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    background: rgba(34,197,94,0.1);
    border-radius: 4px;
    border-top: 1px solid rgba(34,197,94,0.2);
}

.bracket-connector {
    width: 2rem;
    min-width: 1rem;
    flex-shrink: 0;
}

/* Admin fase badges */
.fase-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.fase-label {
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.fase-quartos {
    background: rgba(59,130,246,0.15);
    color: #60a5fa;
}

.fase-meias {
    background: rgba(168,85,247,0.15);
    color: #c084fc;
}

.fase-final {
    background: rgba(212,175,55,0.2);
    color: #d4af37;
}

.fase-terceiro_lugar {
    background: rgba(34,197,94,0.15);
    color: #4ade80;
}

/* ============================================================
   19. SECTION TITLES
   ============================================================ */

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
    position: relative;
    padding-left: 1rem;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: linear-gradient(180deg, #d4af37, transparent);
    border-radius: 2px;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-more {
    text-align: center;
    margin-top: 1.5rem;
}

/* ============================================================
   20. BADGES
   ============================================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(212,175,55,0.12);
    color: #d4af37;
    border-radius: 20px;
    border: 1px solid rgba(212,175,55,0.2);
}

/* Tombola Badges */
.tombola-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 24px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.tombola-A {
    background: rgba(59,130,246,0.15);
    color: #3b82f6;
    border: 1px solid rgba(59,130,246,0.3);
}

.tombola-B {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,0.3);
}

.tombola-C {
    background: rgba(249,115,22,0.15);
    color: #f97316;
    border: 1px solid rgba(249,115,22,0.3);
}

.tombola-D {
    background: rgba(168,85,247,0.15);
    color: #a855f7;
    border: 1px solid rgba(168,85,247,0.3);
}

/* Grupo Badges */
.grupo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
}

.grupo-A {
    background: rgba(59,130,246,0.12);
    color: #3b82f6;
}

.grupo-B {
    background: rgba(34,197,94,0.12);
    color: #22c55e;
}

.grupo-C {
    background: rgba(249,115,22,0.12);
    color: #f97316;
}

.grupo-D {
    background: rgba(168,85,247,0.12);
    color: #a855f7;
}

/* Estado Badges */
.estado-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.estado-success {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,0.3);
}

.estado-warning {
    background: rgba(249,115,22,0.15);
    color: #f97316;
    border: 1px solid rgba(249,115,22,0.3);
}

.estado-muted {
    background: rgba(136,153,176,0.15);
    color: #8899b0;
    border: 1px solid rgba(136,153,176,0.3);
}

/* ============================================================
   21. ALERTS
   ============================================================ */

.alert {
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    animation: fadeIn 0.3s ease;
}

.alert-success {
    background: rgba(34,197,94,0.1);
    color: #22c55e;
    border-color: rgba(34,197,94,0.3);
}

.alert-error {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
    border-color: rgba(239,68,68,0.3);
}

/* ============================================================
   22. FORMS
   ============================================================ */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #8899b0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.form-inline {
    padding: 1rem 1.25rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid #2a3a54;
}

.form-action {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.flex-1 {
    flex: 1;
}

.flex-2 {
    flex: 2;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
input[type="date"],
input[type="time"],
select,
textarea {
    width: 100%;
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    font-family: inherit;
    color: #e0e7ef;
    background: #0f1d33;
    border: 1px solid #2a3a54;
    border-radius: 8px;
    transition: all 0.2s ease;
    outline: none;
    color-scheme: dark;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(212,175,55,0.5);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}

input::placeholder,
textarea::placeholder {
    color: #4a5a74;
}

select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238899b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.color-input {
    width: 48px;
    height: 38px;
    padding: 3px;
    cursor: pointer;
    border-radius: 8px;
}

.select-tombola {
    width: 100%;
}

/* ============================================================
   23. MODALS
   ============================================================ */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

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

.modal {
    background: #1a2744;
    border: 1px solid #2a3a54;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    animation: slideDown 0.3s ease;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #2a3a54;
}

.modal-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #8899b0;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    background: none;
    border: none;
}

.modal-close:hover {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
}

.modal form .form-group {
    padding: 0 1.5rem;
    margin-bottom: 1rem;
}

.modal form .form-group:first-of-type {
    margin-top: 1.25rem;
}

/* ============================================================
   24. STATS GRID
   ============================================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: #1a2744;
    border: 1px solid #2a3a54;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(212,175,55,0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    color: #8899b0;
    margin-top: 0.2rem;
}

/* ============================================================
   25. ADMIN LAYOUT
   ============================================================ */

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sorteio-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid #2a3a54;
    margin-bottom: 1.5rem;
}

.sorteio-controls {
    display: flex;
    gap: 0.5rem;
}

.admin-sidebar {
    background: #0f1d33;
    border-right: 1px solid #2a3a54;
    width: 240px;
    padding: 1rem 0;
    flex-shrink: 0;
}

.admin-layout {
    display: flex;
    min-height: calc(100vh - 60px);
}

.admin-content {
    flex: 1;
    padding: 1.5rem 2rem;
    overflow-x: auto;
}

/* ============================================================
   26. SORTEIO / TOMBOLA
   ============================================================ */

.sorteio-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.sorteio-teams-panel {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    position: sticky;
    top: 80px;
}

.sorteio-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.group-column {
    background: #0f1d33;
    border: 1px solid #2a3a54;
    border-radius: 14px;
    overflow: hidden;
}

.group-column.group-A {
    border-top: 3px solid #3b82f6;
}

.group-column.group-B {
    border-top: 3px solid #22c55e;
}

.group-column.group-C {
    border-top: 3px solid #f97316;
}

.group-column.group-D {
    border-top: 3px solid #a855f7;
}

.group-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(212,175,55,0.06);
    border-bottom: 1px solid #2a3a54;
}

.group-letter {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 8px;
}

.group-A .group-letter {
    background: rgba(59,130,246,0.15);
    color: #3b82f6;
}

.group-B .group-letter {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
}

.group-C .group-letter {
    background: rgba(249,115,22,0.15);
    color: #f97316;
}

.group-D .group-letter {
    background: rgba(168,85,247,0.15);
    color: #a855f7;
}

.group-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e0e7ef;
}

.slot {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(42,58,84,0.5);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 56px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.slot:last-child {
    border-bottom: none;
}

.slot:hover {
    background: rgba(212,175,55,0.04);
}

.slot-filled {
    cursor: default;
}

.slot-empty {
    cursor: pointer;
}

.slot-empty:hover {
    background: rgba(212,175,55,0.06);
}

.slot.drag-over {
    background: rgba(212,175,55,0.1);
    border-color: rgba(212,175,55,0.4);
    box-shadow: inset 0 0 0 2px rgba(212,175,55,0.2);
}

.slot-position {
    width: 32px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #4a5a74;
    background: rgba(42,58,84,0.5);
    border-radius: 4px;
    flex-shrink: 0;
}

.slot-team {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.slot-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.slot-team-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slot-team-full {
    display: none;
    font-size: 0.78rem;
    color: #8899b0;
}

.slot-remove {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #4a5a74;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    opacity: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.slot:hover .slot-remove {
    opacity: 1;
}

.slot-remove:hover {
    color: #ef4444;
    background: rgba(239,68,68,0.1);
}

.slot-empty-label {
    font-size: 0.78rem;
    color: #4a5a74;
    font-style: italic;
}

/* Selected Team Bar */
.selected-team-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 12px;
    margin-top: 1rem;
    animation: slideDown 0.3s ease;
}

.selected-team-bar strong {
    color: #d4af37;
}

.selected-hint {
    flex: 1;
    font-size: 0.82rem;
    color: #8899b0;
}

/* Team Drag Items */
.team-drag-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: grab;
    transition: all 0.2s ease;
    user-select: none;
}

.team-drag-item:hover {
    background: rgba(212,175,55,0.06);
    border-color: rgba(212,175,55,0.15);
}

.team-drag-item.selected {
    background: rgba(212,175,55,0.1);
    border-color: rgba(212,175,55,0.4);
    box-shadow: 0 0 15px rgba(212,175,55,0.1);
}

.team-drag-item:active {
    cursor: grabbing;
}

.team-drag-name {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-drag-short {
    font-size: 0.75rem;
    color: #4a5a74;
    font-weight: 500;
}

.team-list {
    padding: 0.5rem;
}

/* ============================================================
   27. PROGRESS BARS
   ============================================================ */

.progress-bar-container {
    height: 8px;
    background: #0f1d33;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-bar-container.large {
    height: 12px;
    border-radius: 6px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #f0c850);
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: shimmer 2s infinite;
}

.sorteio-bar {
    background: linear-gradient(90deg, #d4af37, #f0c850);
}

.sorteio-progress-container {
    margin-bottom: 1.5rem;
}

.sorteio-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.sorteio-progress-info span:first-child {
    color: #8899b0;
    font-weight: 500;
}

.sorteio-progress-info span:last-child {
    color: #d4af37;
    font-weight: 600;
}

.tombola-progress {
    font-size: 0.82rem;
    font-weight: 600;
    color: #8899b0;
}

.dashboard-progress {
    background: #1a2744;
    border: 1px solid #2a3a54;
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.progress-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
}

.progress-header span {
    font-size: 0.82rem;
    color: #8899b0;
}

/* ============================================================
   28. QUICK LINKS
   ============================================================ */

.quick-links {
    background: #1a2744;
    border: 1px solid #2a3a54;
    border-radius: 14px;
    padding: 1.25rem;
}

.quick-links h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
    text-decoration: none;
}

.quick-link:last-child {
    margin-bottom: 0;
}

.quick-link:hover {
    background: rgba(212,175,55,0.06);
}

.quick-link strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

.quick-link small {
    display: block;
    font-size: 0.75rem;
    color: #8899b0;
    margin-top: 0.1rem;
}

.ql-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ============================================================
   29. RECENT ACTIVITY
   ============================================================ */

.recent-activity {
    background: #1a2744;
    border: 1px solid #2a3a54;
    border-radius: 14px;
    padding: 1.25rem;
}

.recent-activity h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.activity-item:hover {
    background: rgba(212,175,55,0.04);
}

.activity-badge {
    width: 42px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 6px;
    flex-shrink: 0;
}

.activity-terminado {
    background: rgba(34,197,94,0.12);
    color: #22c55e;
}

.activity-agendado {
    background: rgba(59,130,246,0.12);
    color: #3b82f6;
}

.activity-ao_vivo,
.activity-em_curso {
    background: rgba(239,68,68,0.12);
    color: #ef4444;
}

.activity-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.activity-teams {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-meta {
    font-size: 0.72rem;
    color: #8899b0;
}

/* ============================================================
   30. EMPTY STATES
   ============================================================ */

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #4a5a74;
    font-size: 1rem;
}

.empty-state-small {
    text-align: center;
    padding: 2rem 1rem;
    color: #4a5a74;
    font-size: 0.88rem;
}

.empty-cell {
    text-align: center;
    color: #4a5a74;
    font-style: italic;
    padding: 2rem 1rem !important;
}

/* ============================================================
   31. CURRENT TEAM DISPLAY
   ============================================================ */

.current-team-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1rem;
    background: rgba(212,175,55,0.06);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 10px;
}

.current-team-display .team-name {
    font-size: 1rem;
    font-weight: 700;
    color: #d4af37;
}

.current-pos {
    font-size: 0.82rem;
    color: #8899b0;
}

/* ============================================================
   32. SCORER ITEM IN TEAM LIST
   ============================================================ */

.team-name strong {
    color: #ffffff;
    font-weight: 700;
}

/* ============================================================
   33. UTILITY CLASSES
   ============================================================ */

.action-buttons {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.empty-msg {
    text-align: center;
    padding: 2rem 1rem;
    color: #4a5a74;
    font-size: 0.88rem;
}

.team-list {
    padding: 0.5rem;
}

/* ============================================================
   34. ANIMATIONS
   ============================================================ */

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(212,175,55,0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(212,175,55,0.4);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes pulse-bar {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* ============================================================
   35. PRINT STYLES
   ============================================================ */

@media print {
    body {
        background: #fff;
        color: #000;
    }

    body::before {
        display: none;
    }

    .main-nav,
    .site-footer,
    .hero-section,
    .countdown,
    .section-more,
    .filters-bar,
    .action-buttons,
    .btn,
    .modal-overlay,
    .selected-team-bar,
    .sorteio-teams-panel,
    .sorteio-board,
    .quick-links,
    .admin-header,
    .sorteio-header {
        display: none !important;
    }

    .site-header {
        background: none;
        border-bottom: 2px solid #000;
    }

    .header-titles h1 {
        -webkit-text-fill-color: #000;
        color: #000;
    }

    .match-card,
    .card,
    .group-block,
    .stat-card {
        border: 1px solid #ccc;
        background: #fff;
        break-inside: avoid;
    }

    .table thead {
        background: #eee;
    }

    .table thead th,
    .table tbody td {
        color: #000;
        border-color: #ccc;
    }

    .team-name,
    .scorer-name,
    .match-score .score {
        color: #000;
    }

    .matches-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================================
   36. MEDIA QUERIES - RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }

    .logo-img {
        width: 42px;
        height: 42px;
    }

    .header-titles h1 {
        font-size: 1.1rem;
    }

    .header-subtitle {
        font-size: 0.7rem;
    }

    .main-nav ul {
        gap: 0.15rem;
        padding: 0.35rem 0;
    }

    .main-nav li a {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-date {
        font-size: 0.95rem;
    }

    .hero-logo {
        width: 72px;
        height: 72px;
    }

    .countdown {
        gap: 0.75rem;
    }

    .countdown-item {
        padding: 0.75rem 0.85rem;
        min-width: 65px;
    }

    .countdown-item span {
        font-size: 1.5rem;
    }

    .page-title {
        font-size: 1.4rem;
    }

    .matches-grid {
        grid-template-columns: 1fr;
    }

    .groups-container {
        grid-template-columns: 1fr;
    }

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

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .sorteio-layout {
        grid-template-columns: 1fr;
    }

    .sorteio-teams-panel {
        position: static;
        max-height: none;
    }

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

    .filters-form {
        flex-direction: column;
        align-items: stretch;
    }

    .filters-form select {
        min-width: 100%;
    }

    .form-row {
        flex-direction: column;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .footer-logos {
        flex-direction: column;
        gap: 1rem;
        flex: none;
        flex-wrap: wrap;
    }

    .footer-logo {
        height: 50px;
    }

    .footer-logo-large {
        height: 80px;
    }

    .footer-logo-braga {
        margin-left: 0;
    }

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

    .content-grid {
        grid-template-columns: 1fr;
    }

    .admin-content {
        padding: 1rem;
    }

    .section {
        padding: 1.5rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .match-card {
        padding: 0.85rem 1rem;
    }

    .match-teams {
        gap: 0.5rem;
    }

    .match-score {
        font-size: 1.1rem;
    }

    .table-container .standings-table {
        min-width: 420px;
    }

    .standings-table th:nth-child(6),
    .standings-table td:nth-child(6),
    .standings-table th:nth-child(7),
    .standings-table td:nth-child(7),
    .standings-table th:nth-child(8),
    .standings-table td:nth-child(8) {
        display: none;
    }

    .standings-table th,
    .standings-table td {
        padding: 0.5rem 0.5rem;
        font-size: 0.78rem;
    }

    .scorers-table .col-team {
        display: none;
    }

    .podium {
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 0.5rem 1rem;
        gap: 0.75rem;
    }

    .podium-item {
        min-width: 0;
        max-width: 240px;
        width: 100%;
        padding: 1rem 0.6rem 0.75rem;
    }

    .podium-first {
        transform: none;
        order: -1;
    }

    .podium-avatar {
        width: 42px;
        height: 42px;
        font-size: 0.9rem;
    }

    .podium-name {
        font-size: 0.8rem;
    }

    .podium-goals-number {
        font-size: 1.25rem;
    }

    .tabs {
        gap: 0.35rem;
    }

    .tab {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .bracket {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .bracket-round {
        min-width: 0;
    }

    .bracket-connector {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-titles h1 {
        font-size: 0.95rem;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .hero-logo {
        width: 60px;
        height: 60px;
    }

    .countdown {
        gap: 0.5rem;
    }

    .countdown-item {
        padding: 0.6rem 0.6rem;
        min-width: 58px;
    }

    .countdown-item span {
        font-size: 1.25rem;
    }

    .countdown-item small {
        font-size: 0.65rem;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav li a {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

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

    .sorteio-board {
        grid-template-columns: 1fr;
    }

    .modal {
        max-width: 95%;
        margin: 1rem;
    }

    .page-title {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.05rem;
    }

    .match-header {
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .btn {
        padding: 0.55rem 1.1rem;
        font-size: 0.85rem;
    }

    .scorer-item {
        padding: 0.6rem 0.75rem;
    }

    .scorer-rank {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }

    .selected-team-bar {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .selected-hint {
        width: 100%;
    }

    .team-drag-item {
        padding: 0.5rem 0.65rem;
    }

    .group-column {
        min-height: auto;
    }

    .slot {
        padding: 0.5rem 0.75rem;
        min-height: 48px;
    }

    .slot-position {
        width: 28px;
        height: 20px;
        font-size: 0.65rem;
    }

    .slot-team-name {
        font-size: 0.75rem;
    }

    .quick-link {
        padding: 0.6rem 0.65rem;
    }

    .ql-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .tabs {
        justify-content: center;
    }
}

.autogolo-badge {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 6px;
    vertical-align: middle;
}
