/*
Theme Name: TIP 13
Theme URI: https://tips13.it.com
Description: Tema para mostrar resultados del TIP 13 y descargar plantillas
Version: 1.0.4
Author: Tips13
Text Domain: tip13
*/

:root {
    --primary: #1a5f2a;
    --secondary: #f4c430;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --success: #28a745;
    --danger: #dc3545;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

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

/* Header */
.site-header {
    background: rgba(0,0,0,0.3);
    padding: 20px 0;
    border-bottom: 3px solid var(--secondary);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: #fff;
}

.nav-menu {
    display: flex;
    gap: 8px;
    list-style: none;
    align-items: center;
}

.nav-menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 16px;
    border-radius: 8px;
    transition: background 0.3s, color 0.3s;
    white-space: nowrap;
}

.nav-menu > li > a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--secondary);
}

.nav-menu > li > a i {
    font-size: 0.85em;
}

.nav-menu > li > a.nav-games {
    background: linear-gradient(135deg, #9c27b0 0%, #e91e63 100%);
    padding: 10px 22px;
    border-radius: 25px;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(156,39,176,0.3);
    transition: all 0.3s ease;
}

.nav-menu > li > a.nav-games:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(156,39,176,0.5);
    color: #fff !important;
    background: linear-gradient(135deg, #ab47bc 0%, #ec407a 100%);
}

.nav-menu > li > a.nav-fodbold-i-dag {
    background: rgba(244, 196, 48, 0.15);
    color: var(--secondary);
    font-weight: 600;
}

.nav-menu > li > a.nav-fodbold-i-dag:hover {
    background: rgba(244, 196, 48, 0.25);
    color: #fff;
}

/* Dropdown Megamenu */
.nav-menu .has-submenu {
    position: static;
}

.nav-menu .has-submenu > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 5px;
    font-size: 0.75em;
    transition: transform 0.3s;
}

.nav-menu .has-submenu:hover > a::after {
    transform: rotate(180deg);
}

.nav-menu .mega-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    list-style: none;
    padding: 25px 30px;
    padding-top: 35px;
    margin: 0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    z-index: 1000;
    transition: opacity 0.25s ease, visibility 0s 0.4s;
}

/* Puente invisible para mantener hover entre el link y el megamenu */
.nav-menu .mega-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
}

.nav-menu .has-submenu:hover .mega-menu {
    visibility: visible;
    opacity: 1;
    display: flex;
    gap: 0;
    transition: opacity 0.25s ease, visibility 0s 0s;
    animation: megaFadeIn 0.3s ease;
}

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

.mega-menu .mega-col {
    flex: 1;
    padding: 0 15px;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.mega-menu .mega-col:last-child {
    border-right: none;
}

.mega-menu .mega-col-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--secondary, #f4c430);
    padding: 0 10px 10px;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(244,196,48,0.2);
}

.mega-menu .mega-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu .mega-col li {
    padding: 0;
}

.mega-menu .mega-col a {
    display: block;
    padding: 8px 10px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.mega-menu .mega-col a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--secondary);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Matches Table */
.matches-section {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--secondary);
}

.matches-table {
    width: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    overflow: hidden;
    border-collapse: collapse;
}

.matches-table th {
    background: var(--primary);
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.matches-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.matches-table tr:hover {
    background: rgba(255,255,255,0.05);
}

.match-number {
    background: var(--secondary);
    color: var(--dark);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.team-vs {
    display: flex;
    align-items: center;
    gap: 15px;
}

.vs {
    color: var(--secondary);
    font-weight: bold;
}

.result-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.result-1 { background: #28a745; }
.result-x { background: #ffc107; color: #000; }
.result-2 { background: #dc3545; }
.result-pending { background: #6c757d; }

/* Downloads Section */
.downloads-section {
    padding: 60px 0;
    background: rgba(0,0,0,0.2);
    margin: 40px 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--secondary);
    color: var(--dark);
}

.btn-primary:hover {
    background: #e0b000;
    transform: scale(1.05);
}

.btn-pdf {
    background: #dc3545;
    color: #fff;
}

.btn-excel {
    background: #28a745;
    color: #fff;
}

/* Winners Section */
.winners-section {
    padding: 60px 0;
}

.winners-card {
    background: linear-gradient(135deg, var(--primary), #0d3d17);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    border: 2px solid var(--secondary);
}

.winners-card h2 {
    color: var(--secondary);
    font-size: 2rem;
    margin-bottom: 20px;
}

.prize-amount {
    font-size: 3rem;
    font-weight: bold;
    color: var(--secondary);
    margin: 20px 0;
}

.winners-count {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Footer */
.site-footer {
    background: rgba(0,0,0,0.5);
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 25px;
    padding: 0 20px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.3px;
}

.footer-links a:hover {
    color: var(--secondary);
    background: rgba(244,196,48,0.1);
}

.footer-links a:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background: rgba(255,255,255,0.15);
}

.site-footer p {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    .nav-menu > li > a {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .nav-menu .mega-menu {
        position: static;
        flex-direction: column;
        box-shadow: none;
        padding: 10px;
        border-radius: 6px;
        background: rgba(0,0,0,0.15);
    }

    .nav-menu .has-submenu:hover .mega-menu {
        display: flex;
        flex-direction: column;
        animation: none;
    }

    .mega-menu .mega-col {
        border-right: none;
        padding: 5px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .mega-menu .mega-col:last-child {
        border-bottom: none;
    }

    @keyframes megaFadeIn {
        from { opacity: 1; transform: none; }
        to { opacity: 1; transform: none; }
    }

    .hero h1 {
        font-size: 2rem;
    }

    .matches-table {
        font-size: 0.9rem;
    }

    .matches-table th,
    .matches-table td {
        padding: 10px;
    }
}

/* Update indicator */

.live-indicator {
    background: #dc3545;
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    animation: pulse 2s infinite;
}

.live-indicator i {
    color: #fff;
    margin-right: 5px;
    font-size: 8px;
}

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

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.blink {
    animation: blink 1s infinite;
}

/* Match league info */
.match-league {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.league-country {
    font-size: 0.75rem;
    opacity: 0.7;
    text-transform: uppercase;
}

.league-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--secondary);
}

/* Match time */
.match-time {
    font-weight: 600;
}

.time-live {
    color: #dc3545;
    font-weight: bold;
}

.time-live i {
    font-size: 8px;
    margin-right: 5px;
    color: #dc3545;
}

/* Match score */
.match-score {
    text-align: center;
}

.score-display {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    background: rgba(0,0,0,0.3);
    padding: 5px 12px;
    border-radius: 8px;
}

.score-pending {
    opacity: 0.5;
    font-size: 0.9rem;
}

/* Match row states */
.match-live {
    background: rgba(220, 53, 69, 0.15) !important;
    border-left: 3px solid #dc3545;
}

.match-finished {
    opacity: 0.85;
}

/* Result badges */
.result-badge.result-live {
    background: #dc3545;
    color: #fff;
}

/* Matches legend */
.matches-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    flex-wrap: wrap;
}

.matches-legend span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.matches-legend i {
    font-size: 10px;
}

/* Matches Stats */
.matches-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-box {
    background: rgba(255,255,255,0.1);
    padding: 15px 25px;
    border-radius: 12px;
    text-align: center;
    min-width: 100px;
}

.stat-box i {
    font-size: 1.5rem;
    color: var(--secondary);
    display: block;
    margin-bottom: 5px;
}

.stat-box .stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
}

.stat-box .stat-label {
    font-size: 0.8rem;
    opacity: 0.7;
}

.stat-box.live {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.5);
}

.stat-box.live i {
    color: #dc3545;
    animation: pulse 2s infinite;
}

/* Timezone Notice */
.timezone-notice {
    text-align: center;
    padding: 10px 20px;
    background: rgba(33, 150, 243, 0.2);
    border: 1px solid rgba(33, 150, 243, 0.4);
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #90caf9;
}

.timezone-notice i {
    margin-right: 8px;
    color: #2196f3;
}

/* Day Section */
.day-section {
    margin-bottom: 30px;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--primary), #2d8f3d);
    border-radius: 12px;
    margin-bottom: 15px;
}

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

.day-title i {
    font-size: 1.3rem;
    color: var(--secondary);
}

.day-label {
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
}

.day-date {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
}

.day-stats {
    display: flex;
    gap: 15px;
}

.day-matches-count, .day-leagues-count {
    background: rgba(0,0,0,0.3);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 600;
}

/* Matches Container */
.matches-container {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
}

.matches-container::-webkit-scrollbar {
    width: 8px;
}

.matches-container::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.matches-container::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 4px;
}

/* League Section */
.league-section {
    margin-bottom: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
}

.league-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(0,0,0,0.3);
    border-bottom: 2px solid var(--secondary);
}

.league-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.league-country-flag {
    font-size: 1.3rem;
}

.league-header .league-name {
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
}

.league-header .league-country {
    font-size: 0.8rem;
    opacity: 0.7;
    color: var(--secondary);
}

.league-match-count {
    background: var(--secondary);
    color: var(--dark);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* League Matches */
.league-matches {
    padding: 10px;
}

/* Mini Table for matches */
.matches-table-mini {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.matches-table-mini tr {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.matches-table-mini tr:last-child {
    border-bottom: none;
}

.matches-table-mini tr:hover {
    background: rgba(255,255,255,0.05);
}

.matches-table-mini tr.match-live {
    background: rgba(220, 53, 69, 0.15);
}

.matches-table-mini tr.match-finished {
    opacity: 0.7;
}

.matches-table-mini td {
    padding: 10px 8px;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.matches-table-mini .col-time {
    width: 65px;
    text-align: center;
    font-weight: 600;
}

.matches-table-mini .col-home {
    width: 35%;
    text-align: right;
    font-weight: 500;
    padding-right: 15px;
}

.matches-table-mini .col-score {
    width: 70px;
    text-align: center;
}

.matches-table-mini .col-score .score {
    background: rgba(0,0,0,0.4);
    padding: 4px 10px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    min-width: 50px;
}

.matches-table-mini .col-score .score-vs {
    color: var(--secondary);
    font-weight: bold;
}

.matches-table-mini .col-away {
    width: 35%;
    text-align: left;
    font-weight: 500;
    padding-left: 15px;
}

.matches-table-mini .col-result {
    width: 55px;
    text-align: center;
}

.matches-table-mini .col-result .result-badge {
    padding: 3px 8px;
    font-size: 0.8rem;
    display: inline-block;
    min-width: 32px;
    text-align: center;
}

.match-row {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.2s ease;
}

.match-row:hover {
    background: rgba(255,255,255,0.08);
}

.match-row.match-live {
    background: rgba(220, 53, 69, 0.15);
    border-left: 3px solid #dc3545;
}

.match-row.match-finished {
    opacity: 0.7;
}

.match-time-col {
    width: 70px;
    flex-shrink: 0;
    text-align: center;
}

.time-scheduled {
    font-weight: 600;
    color: #fff;
}

.time-live {
    color: #dc3545;
    font-weight: bold;
    font-size: 0.85rem;
}

.time-live i {
    font-size: 8px;
    margin-right: 3px;
}

.time-finished {
    color: #6c757d;
    font-size: 0.85rem;
}

.match-teams-col {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.team {
    flex: 1;
    display: flex;
    align-items: center;
}

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

.team.away {
    justify-content: flex-start;
    text-align: left;
}

.match-score-center {
    min-width: 60px;
    text-align: center;
}

.match-score-center .score {
    background: rgba(0,0,0,0.4);
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
}

.match-score-center .score-vs {
    color: var(--secondary);
    font-weight: bold;
}

.match-result-col {
    width: 50px;
    flex-shrink: 0;
    text-align: center;
}

.match-result-col .result-badge {
    padding: 4px 10px;
    font-size: 0.8rem;
}

/* No matches */
.no-matches {
    text-align: center;
    padding: 60px 20px;
    opacity: 0.7;
}

.no-matches i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .matches-stats {
        gap: 10px;
    }

    .stat-box {
        padding: 10px 15px;
        min-width: 70px;
    }

    .stat-box i {
        font-size: 1.2rem;
    }

    .stat-box .stat-value {
        font-size: 1.2rem;
    }

    .day-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .day-title {
        flex-direction: column;
        gap: 5px;
    }

    .day-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .league-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .match-row {
        flex-wrap: wrap;
        padding: 10px;
    }

    .match-time-col {
        width: 100%;
        margin-bottom: 5px;
    }

    .match-teams-col {
        flex-direction: column;
        gap: 5px;
    }

    .team.home, .team.away {
        justify-content: center;
        text-align: center;
    }

    .match-result-col {
        width: 100%;
        margin-top: 8px;
    }
}

/* Loading animation */
.loading {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.loading::after {
    content: "";
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== TEMPLATE SELECTOR ========== */
.template-selector {
    background: rgba(255,255,255,0.08);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
}

.template-selector h3 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.template-selector h3 i {
    margin-right: 10px;
}

/* Format Buttons */
.format-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.format-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 40px;
    border: 3px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
}

.format-btn:hover {
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.format-btn.active {
    border-color: var(--secondary);
    background: rgba(244,196,48,0.2);
}

.format-btn .format-icon {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary);
    margin-bottom: 8px;
}

.format-btn .format-name {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Style Grid */
.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.style-card {
    padding: 20px 15px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.style-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.style-card.active {
    border-color: var(--secondary);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(244,196,48,0.4);
}

.style-card .style-name {
    font-weight: 700;
    font-size: 0.95rem;
}

/* Template Actions */
.template-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px 0;
}

.btn-preview {
    background: #6c757d;
    color: #fff;
}

.btn-preview:hover {
    background: #5a6268;
}

.btn-download {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
}

.btn-download:hover {
    background: linear-gradient(135deg, #218838, #1aa179);
}

.btn-print {
    background: linear-gradient(135deg, #007bff, #6610f2);
    color: #fff;
}

.btn-print:hover {
    background: linear-gradient(135deg, #0069d9, #520dc2);
}

/* Quick Downloads */
.quick-downloads {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 25px;
}

.quick-downloads h4 {
    margin-bottom: 15px;
    opacity: 0.7;
    font-weight: 400;
}

.quick-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
    border-radius: 20px;
}

/* Template Modal */
.template-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

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

.modal-content {
    background: #fff;
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 36px;
    color: #333;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #dc3545;
}

.modal-body {
    height: 65vh;
    overflow: auto;
    background: #f5f5f5;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Template Downloads Section */
.template-downloads {
    margin-top: 50px;
    padding: 40px 30px;
    background: linear-gradient(135deg, rgba(26,95,42,0.3) 0%, rgba(244,196,48,0.1) 100%);
    border-radius: 20px;
    border: 2px solid var(--secondary);
}

.template-downloads h3 {
    text-align: center;
    color: var(--secondary);
    margin-bottom: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.template-downloads h3 i {
    margin-right: 12px;
}

.template-desc {
    text-align: center;
    color: #fff;
    opacity: 0.9;
    margin-bottom: 30px;
    font-size: 1rem;
}

.template-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

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

.template-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    padding: 30px 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.template-card:hover {
    background: linear-gradient(180deg, rgba(244,196,48,0.3) 0%, rgba(244,196,48,0.1) 100%);
    border-color: var(--secondary);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.template-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary) 0%, #e0b000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--dark);
    flex-shrink: 0;
    box-shadow: 0 5px 20px rgba(244,196,48,0.4);
}

.template-card:hover .template-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(244,196,48,0.6);
}

.template-info {
    flex: 1;
}

.template-info h4 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.template-info p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.template-action {
    font-size: 1rem;
    color: var(--secondary);
    opacity: 0.8;
    transition: all 0.3s;
    margin-top: 10px;
}

.template-action i {
    margin-left: 5px;
}

.template-card:hover .template-action {
    opacity: 1;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .format-buttons {
        flex-direction: column;
        align-items: center;
    }

    .format-btn {
        width: 100%;
        max-width: 280px;
    }

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

    .template-actions {
        flex-direction: column;
        align-items: center;
    }

    .template-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-body {
        height: 55vh;
    }
}

/* ============================================================
   DANISH GAMES SECTION - Danske Spil
   ============================================================ */

/* Games Hero */
.games-hero {
    text-align: center;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, rgba(156,39,176,0.2) 0%, rgba(244,196,48,0.1) 100%);
}
.games-hero h1 { font-size: 3rem; margin-bottom: 15px; color: #fff; }
.games-hero h1 i { color: var(--secondary); margin-right: 15px; }
.games-hero p { font-size: 1.2rem; opacity: 0.9; max-width: 700px; margin: 0 auto; }

/* Events Section */
.events-section { padding: 50px 0; }
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Event Card */
a.event-card {
    text-decoration: none;
    color: inherit;
    display: block;
}
.event-card {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}
.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.3);
}
.event-card.active {
    border-color: var(--secondary);
    background: rgba(255,255,255,0.15);
}
.event-card .event-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.event-card[data-event="konfirmation"] .event-icon { background: #9c27b0; }
.event-card[data-event="bryllup"] .event-icon { background: #e91e63; }
.event-card[data-event="fodselsdag"] .event-icon { background: #ff9800; }
.event-card[data-event="dab"] .event-icon { background: #03a9f4; }
.event-card h3 { font-size: 1.4rem; margin-bottom: 10px; color: #fff; }
.event-card p { font-size: 0.9rem; opacity: 0.8; color: #fff; }

/* Game Types Section - Hidden by default */
#game-types-section { padding: 50px 0; background: rgba(0,0,0,0.2); display: none; }

/* Game Types Grid */
.game-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.game-type-card {
    background: rgba(255,255,255,0.1);
    border-radius: 18px;
    padding: 35px 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid rgba(255,255,255,0.15);
}
.game-type-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 15px 40px rgba(244,196,48,0.2);
}
.game-type-card.active {
    border-color: var(--secondary);
    background: rgba(244,196,48,0.15);
}
.game-type-card .game-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: var(--primary);
    color: #fff;
}
.game-type-card h3 { font-size: 1.3rem; margin-bottom: 12px; color: var(--secondary); }
.game-type-card p { font-size: 0.95rem; opacity: 0.85; line-height: 1.5; color: #fff; }

/* Customization Section - Hidden by default */
#customization-section { padding: 50px 0; display: none; }

/* Customization Form */
.customization-form {
    max-width: 600px;
    margin: 30px auto 0;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 35px;
}
.form-group { margin-bottom: 25px; }
.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--secondary);
}
.form-group label i { margin-right: 8px; }
.form-group input[type="text"],
.form-group input[type="date"] {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1rem;
}
.form-group input:focus {
    outline: none;
    border-color: var(--secondary);
}
.form-group input::placeholder { color: rgba(255,255,255,0.5); }
.form-group input[type="date"] { color-scheme: dark; }

/* Style Options */
.styles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 15px;
}
.style-option {
    padding: 18px 12px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 3px solid transparent;
    font-weight: 600;
    font-size: 0.9rem;
}
.style-option:hover { transform: scale(1.05); }
.style-option.active {
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
}
.style-option[data-style="klassisk"] { background: #1a5f2a; color: #f4c430; }
.style-option[data-style="moderne"] { background: #2196f3; color: #fff; }
.style-option[data-style="elegant"] { background: #37474f; color: #b8860b; }
.style-option[data-style="festlig"] { background: #e91e63; color: #ffeb3b; }
.style-option[data-style="barnlig"] { background: #4caf50; color: #ff9800; }
.style-option[data-style="sobert"] { background: #455a64; color: #fff; }
.style-option[data-style="gylden"] { background: #8b4513; color: #ffd700; }
.style-option[data-style="blomster"] { background: #8e24aa; color: #f48fb1; }

/* Start Button */
.form-actions {
    text-align: center;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
#btn-start-game {
    padding: 18px 50px;
    font-size: 1.2rem;
    background: var(--secondary);
    color: var(--dark);
}
#btn-empty-template {
    padding: 18px 30px;
    font-size: 1.1rem;
    background: transparent;
    color: #17a2b8;
    border: 2px solid #17a2b8;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}
#btn-empty-template:hover {
    background: #17a2b8;
    color: #fff;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: 700;
}
#btn-start-game:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(244,196,48,0.5);
}

/* Quiz Section - Hidden by default */
#quiz-section { padding: 50px 0; display: none; }

/* Quiz Container */
.quiz-container { max-width: 800px; margin: 0 auto; }
.quiz-header {
    text-align: center;
    padding: 30px;
    background: var(--primary);
    border-radius: 20px;
    margin-bottom: 30px;
}
.quiz-header h2 { font-size: 2rem; margin-bottom: 10px; color: #fff; }
.quiz-header h2 i { margin-right: 12px; }
.quiz-person { font-size: 1.5rem; color: var(--secondary); font-weight: 700; margin: 10px 0; }
.quiz-date { font-size: 1rem; opacity: 0.9; color: #fff; }
.quiz-description { font-style: italic; opacity: 0.9; margin-top: 10px; color: #fff; }

/* Progress Bar */
.quiz-progress {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
}
.progress-bar { flex: 1; height: 12px; background: rgba(255,255,255,0.2); border-radius: 6px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--secondary); transition: width 0.3s ease; border-radius: 6px; }
.progress-bar.complete .progress-fill { background: #28a745; }
.progress-text { font-weight: 600; white-space: nowrap; color: var(--secondary); }

/* Quiz Questions */
.quiz-questions { display: flex; flex-direction: column; gap: 15px; }
.quiz-question {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 25px;
    border-left: 4px solid var(--secondary);
}
.question-header { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 15px; }
.question-number {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.question-text { font-size: 1.1rem; line-height: 1.5; padding-top: 8px; color: #fff; }

/* Quiz Options */
.quiz-options { display: flex; gap: 12px; flex-wrap: wrap; }
.quiz-option {
    padding: 12px 25px;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.quiz-option:hover { border-color: var(--secondary); background: rgba(244,196,48,0.2); }
.quiz-option.active { background: var(--secondary); color: var(--dark); border-color: var(--secondary); }
.quiz-option i { margin-right: 8px; }

/* Text Input */
.quiz-text-input {
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
}
.quiz-text-input:focus { outline: none; border-color: var(--secondary); }
.quiz-text-input::placeholder { color: rgba(255,255,255,0.5); }

/* Quiz Actions */
.quiz-actions { display: flex; justify-content: center; gap: 15px; margin-top: 40px; flex-wrap: wrap; }
.quiz-actions .btn {
    padding: 15px 30px;
    font-size: 1rem;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.quiz-actions .btn-secondary { background: #6c757d; color: #fff; }
.quiz-actions .btn-primary { background: #dc3545; color: #fff; }
.quiz-actions .btn-outline { background: transparent; color: #17a2b8; border: 2px solid #17a2b8; }
.quiz-actions .btn-outline:hover { background: #17a2b8; color: #fff; }
.quiz-actions .btn-success { background: #28a745; color: #fff; }
.quiz-actions .btn:hover { transform: translateY(-2px); }

/* Loading Spinner */
.loading-spinner { text-align: center; padding: 60px; font-size: 1.3rem; color: var(--secondary); }
.loading-spinner i { margin-right: 12px; }

/* Notification */
.game-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    border-radius: 10px;
    color: #fff;
    font-weight: 500;
    z-index: 99999;
    transform: translateX(150%);
    transition: transform 0.3s ease;
}
.game-notification.show { transform: translateX(0); }
.game-notification.success { background: #28a745; }
.game-notification.error { background: #dc3545; }
.game-notification.info { background: #17a2b8; }

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-decoration: none;
}
.back-btn:hover { background: rgba(255,255,255,0.2); border-color: var(--secondary); }

/* Games Promo Section (for index.php) */

/* Games Info Section */
.games-info-section { padding: 60px 0; background: rgba(0,0,0,0.2); }
.info-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.info-step {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
}
.info-step-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--dark);
}
.info-step h3 { margin-bottom: 12px; color: var(--secondary); font-size: 1.2rem; }
.info-step p { opacity: 0.85; line-height: 1.6; font-size: 0.95rem; color: #fff; }

/* Games Page */
.games-page { min-height: 100vh; }
.games-page .section-title i { margin-right: 12px; }

/* Responsive Games */
@media (max-width: 768px) {
    .styles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .games-hero h1 { font-size: 2rem; }
    .quiz-actions { flex-direction: column; }
    .quiz-actions .btn { width: 100%; justify-content: center; }
}

/* Results CTA Button (Homepage) */
.results-cta {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.btn-results {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: linear-gradient(135deg, var(--primary), #247a38);
    color: var(--secondary);
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid rgba(244,196,48,0.3);
    box-shadow: 0 4px 15px rgba(26,95,42,0.4);
}
.btn-results:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26,95,42,0.6);
    background: linear-gradient(135deg, #247a38, #2e9e48);
    border-color: var(--secondary);
    color: #fff;
}
.btn-results i {
    font-size: 1.15rem;
    color: var(--secondary);
    transition: color 0.3s ease;
}
.btn-results:hover i {
    color: #fff;
}

/* ============================================================
   RESULTS PAGE (Resultater)
   ============================================================ */

.results-page { min-height: 100vh; }

.results-hero {
    padding: 40px 0;
    text-align: center;
    background: rgba(0,0,0,0.2);
    border-bottom: 2px solid var(--secondary);
}
.results-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
}
.results-hero h1 i {
    color: var(--secondary);
    margin-right: 10px;
}
.results-hero p {
    opacity: 0.85;
    font-size: 1.1rem;
}

/* Day Navigation Tabs */
.results-day-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 15px 0;
    margin-bottom: 15px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.results-day-tab {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 120px;
}
.results-day-tab:hover {
    background: rgba(244,196,48,0.15);
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-2px);
}
.results-day-tab .tab-label {
    font-weight: 600;
    font-size: 0.9rem;
}
.results-day-tab .tab-date {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 2px;
}

/* Collapsible Day Headers */
.results-day-header {
    cursor: pointer;
    user-select: none;
    transition: filter 0.2s;
}
.results-day-header:hover {
    filter: brightness(1.15);
}

/* Collapse Icon */
.collapse-icon {
    transition: transform 0.3s ease;
    margin-left: 10px;
    font-size: 0.85rem;
    opacity: 0.7;
}
.collapse-icon.collapsed {
    transform: rotate(-90deg);
}

/* Responsive */
@media (max-width: 768px) {
    .results-hero { padding: 25px 0; }
    .results-hero h1 { font-size: 1.6rem; }
    .results-day-nav { gap: 6px; padding: 10px 0; }
    .results-day-tab { padding: 8px 12px; min-width: 100px; }
    .results-day-tab .tab-label { font-size: 0.8rem; }
    .results-day-tab .tab-date { font-size: 0.7rem; }
}

/* ============================================================
   HVAD ER TIPS 13 PAGE
   ============================================================ */
.hvad-er-page {
    min-height: 100vh;
}

.hvad-er-content {
    padding: 50px 0 60px;
}

/* Info Cards - match site pattern: rgba bg, 15px radius */
.info-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 35px 30px;
    margin-bottom: 30px;
}

.info-card h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-card h2 i {
    margin-right: 12px;
}

.info-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: #fff;
    opacity: 0.85;
    margin-bottom: 14px;
}

.info-card p:last-child {
    margin-bottom: 0;
}

.info-card strong {
    color: var(--secondary);
}

/* 1-X-2 Symbols */
.symbols-row {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.symbol-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: rgba(255,255,255,0.08);
    border-radius: 15px;
    min-width: 210px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.symbol-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.symbol-box {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.symbol-box.sym-1 { background: var(--success); }
.symbol-box.sym-x { background: #ffc107; color: #856404; }
.symbol-box.sym-2 { background: var(--danger); }

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

.symbol-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.symbol-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
}

/* Steps Grid - match info-steps pattern */
.hvad-er-page .steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.hvad-er-page .step-card {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hvad-er-page .step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hvad-er-page .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: var(--secondary);
    color: var(--dark);
    border-radius: 50%;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 18px;
}

.hvad-er-page .step-card h3 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.hvad-er-page .step-card p {
    font-size: 0.95rem;
    color: #fff;
    opacity: 0.85;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Prizes Table - match matches-table pattern */
.prizes-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    overflow: hidden;
}

.prizes-table th {
    background: var(--primary);
    color: #fff;
    padding: 15px;
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.prizes-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.95rem;
    color: #fff;
}

.prizes-table tr:hover {
    background: rgba(255,255,255,0.05);
}

.prize-highlight {
    font-weight: 700;
    color: var(--secondary);
}

.table-note {
    margin-top: 16px;
    font-size: 0.85rem !important;
    opacity: 0.5 !important;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 35px;
    margin-top: 25px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--secondary), rgba(244,196,48,0.2));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
    padding-left: 20px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 4px;
    width: 16px;
    height: 16px;
    background: var(--secondary);
    border-radius: 50%;
    border: 3px solid var(--dark);
    box-shadow: 0 0 0 2px var(--secondary);
}

.timeline-year {
    font-size: 1rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 6px;
}

.timeline-text {
    font-size: 0.95rem;
    color: #fff;
    opacity: 0.8;
    line-height: 1.7;
}

/* Tips Grid - match template-cards pattern */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.tip-card {
    padding: 25px;
    background: rgba(255,255,255,0.08);
    border-radius: 15px;
    border-left: 4px solid var(--secondary);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.tip-card h4 {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 10px;
}

.tip-card h4 i {
    color: var(--secondary);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.tip-card p {
    font-size: 0.9rem;
    color: #fff;
    opacity: 0.7;
    line-height: 1.6;
    margin-bottom: 0;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 20px 0;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 12px;
}

.faq-question span {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    transition: color 0.3s;
}

.faq-question:hover span {
    color: var(--secondary);
}

.faq-arrow {
    transition: transform 0.3s;
    color: #2a5298;
    font-size: 0.85rem;
}

.faq-answer {
    font-size: 0.95rem;
    color: #333;
    opacity: 1;
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding-top: 0;
}

.faq-item.open .faq-answer {
    max-height: 1000px;
    padding-top: 14px;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

/* CTA Card - match winners-card / template-downloads pattern */
.cta-card {
    background: linear-gradient(135deg, var(--primary), #0d3d17);
    border: 2px solid var(--secondary);
    border-radius: 15px;
    padding: 50px 30px;
    text-align: center;
    margin-top: 10px;
}

.cta-card h2 {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--secondary);
}

.cta-card p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    color: #fff;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--secondary);
    color: var(--dark);
}

.btn-cta-primary:hover {
    background: #e0b000;
    transform: scale(1.05);
}

.btn-cta-secondary {
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    color: #fff;
}

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

/* Hvad er Tips 13 Responsive */
@media (max-width: 768px) {
    .hvad-er-content {
        padding: 30px 0 40px;
    }
    .info-card {
        padding: 25px 20px;
    }
    .info-card h2 {
        font-size: 1.3rem;
    }
    .symbols-row {
        flex-direction: column;
        align-items: center;
    }
    .symbol-card {
        width: 100%;
        max-width: 320px;
    }
    .hvad-er-page .steps-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .tips-grid {
        grid-template-columns: 1fr;
    }
    .cta-card {
        padding: 35px 20px;
    }
    .cta-card h2 {
        font-size: 1.6rem;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hvad-er-page .steps-grid {
        grid-template-columns: 1fr;
    }
    .cta-card h2 {
        font-size: 1.4rem;
    }
    .info-card h2 {
        font-size: 1.1rem;
    }
}

/* =============================================
   STATIC PAGES (Cookie, Terms, About, Ads, Contact)
   ============================================= */

.static-page {
    min-height: 100vh;
    padding-bottom: 0;
}

/* Hero - matches results-hero pattern */
.static-hero {
    padding: 50px 0 35px;
    text-align: center;
    background: rgba(0,0,0,0.2);
    border-bottom: 2px solid var(--secondary);
}

.static-hero h1 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 8px;
}

.static-hero h1 i {
    color: var(--secondary);
    margin-right: 10px;
}

.static-hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Content area */
.static-content {
    padding: 50px 0 60px;
}

/* Card - matches info-card pattern (dark translucent) */
.static-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 40px 35px;
    line-height: 1.8;
    color: #fff;
}

.static-card h2 {
    font-size: 1.4rem;
    color: var(--secondary);
    margin: 35px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.static-card h2:first-child {
    margin-top: 0;
}

.static-card p {
    margin-bottom: 14px;
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
}

.static-card p:last-child {
    margin-bottom: 0;
}

.static-card strong {
    color: var(--secondary);
}

.static-card ul {
    margin: 10px 0 20px 20px;
    color: rgba(255,255,255,0.85);
}

.static-card ul li {
    margin-bottom: 10px;
    padding-left: 5px;
}

.static-card a {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed rgba(244,196,48,0.4);
    transition: all 0.2s;
}

.static-card a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.static-updated {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4) !important;
    font-style: italic;
}

/* --- Cookie Page --- */
.cookie-category {
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 22px 25px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary);
    transition: background 0.3s;
}

.cookie-category:hover {
    background: rgba(255,255,255,0.07);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category-header h3 {
    font-size: 1.1rem;
    color: #fff;
}

.cookie-category-header h3 i {
    color: var(--secondary);
    margin-right: 8px;
}

.cookie-category p {
    color: rgba(255,255,255,0.7) !important;
    font-size: 0.92rem !important;
    margin-bottom: 0 !important;
}

.cookie-badge {
    font-size: 0.75rem;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 600;
}

.cookie-badge-required {
    background: rgba(26,95,42,0.3);
    color: var(--success);
    border: 1px solid rgba(40,167,69,0.3);
}

/* Cookie toggle switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 26px;
    transition: 0.3s;
}

.cookie-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.cookie-toggle input:checked + .cookie-slider {
    background: var(--primary);
    box-shadow: 0 0 10px rgba(26,95,42,0.4);
}

.cookie-toggle input:checked + .cookie-slider::before {
    transform: translateX(24px);
}

.cookie-actions {
    display: flex;
    gap: 12px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.btn-cookie {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cookie:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.btn-cookie-accept {
    background: var(--primary);
    color: #fff;
}

.btn-cookie-save {
    background: var(--secondary);
    color: var(--dark);
}

.btn-cookie-reject {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.15);
}

.btn-cookie-reject:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* --- Terms Page --- */
.terms-warning {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255,193,7,0.1);
    border: 1px solid rgba(255,193,7,0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.terms-warning > i {
    color: #ffc107;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.terms-warning p {
    margin: 0;
    color: rgba(255,255,255,0.85) !important;
}

.terms-warning a {
    color: #ffc107 !important;
}

/* --- About Page --- */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.about-stat-item {
    text-align: center;
    background: rgba(26,95,42,0.25);
    border: 1px solid rgba(26,95,42,0.3);
    color: #fff;
    padding: 30px 15px;
    border-radius: 15px;
    transition: transform 0.3s, background 0.3s;
}

.about-stat-item:hover {
    transform: translateY(-4px);
    background: rgba(26,95,42,0.35);
}

.about-stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 8px;
}

.about-stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Advertising Page --- */
.ad-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.ad-feature-item {
    text-align: center;
    background: rgba(255,255,255,0.04);
    padding: 35px 20px;
    border-radius: 15px;
    border-top: 3px solid var(--secondary);
    transition: transform 0.3s, background 0.3s;
}

.ad-feature-item:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.08);
}

.ad-feature-item i {
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 15px;
    display: block;
}

.ad-feature-item h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.ad-feature-item p {
    color: rgba(255,255,255,0.7) !important;
    font-size: 0.92rem !important;
    margin: 0 !important;
}

.ad-cta {
    text-align: center;
    margin: 35px 0 10px;
}

.btn-ad-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    background: var(--secondary);
    color: var(--dark) !important;
    border: none;
    border-radius: 25px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s;
}

.btn-ad-contact:hover {
    background: #e0b000;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(244,196,48,0.3);
    border-bottom: none !important;
}

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

.contact-form-wrapper h2,
.contact-info-wrapper h2 {
    color: var(--secondary) !important;
    font-size: 1.3rem !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    border-bottom: none !important;
}

.contact-form .form-group {
    margin-bottom: 18px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.contact-form label i {
    color: var(--secondary);
    margin-right: 6px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s;
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.35);
}

.contact-form select {
    color: rgba(255,255,255,0.8);
}

.contact-form select option {
    background: var(--dark);
    color: #fff;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 3px rgba(244,196,48,0.1);
}

.btn-contact-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    background: var(--secondary);
    color: var(--dark);
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    justify-content: center;
}

.btn-contact-submit:hover {
    background: #e0b000;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(244,196,48,0.3);
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.contact-info-card {
    background: rgba(255,255,255,0.04);
    padding: 18px 20px;
    border-radius: 12px;
    text-align: center;
    border-left: 3px solid var(--secondary);
    transition: background 0.3s;
}

.contact-info-card:hover {
    background: rgba(255,255,255,0.07);
}

.contact-info-card i {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 6px;
    display: block;
}

.contact-info-card h3 {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 4px;
}

.contact-info-card p {
    margin: 0 !important;
    font-size: 0.85rem !important;
    color: rgba(255,255,255,0.7) !important;
}

.contact-info-card a {
    border-bottom: none !important;
}

.contact-links {
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 20px;
}

.contact-links h3 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.contact-links ul {
    list-style: none;
    margin: 0 !important;
    padding: 0;
}

.contact-links ul li {
    margin-bottom: 8px;
}

.contact-links ul li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7) !important;
    border-bottom: none !important;
    transition: color 0.3s;
}

.contact-links ul li a:hover {
    color: var(--secondary) !important;
}

.contact-links ul li a i {
    color: var(--secondary);
    width: 18px;
    text-align: center;
}

/* --- Static Pages Responsive --- */
@media (max-width: 768px) {
    .static-hero {
        padding: 30px 0 25px;
    }

    .static-hero h1 {
        font-size: 1.6rem;
    }

    .static-card {
        padding: 25px 20px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .about-stat-item {
        padding: 20px 15px;
    }

    .about-stat-number {
        font-size: 2.2rem;
    }

    .ad-features {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cookie-actions {
        flex-direction: column;
    }

    .btn-cookie {
        justify-content: center;
    }

    .footer-links a {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Mobile navigation is handled entirely by inline CSS/JS in functions.php */

/* Mobile menu styles are in the inline \3c style id="tip13-mobile-menu"> block (functions.php) */

/* Responsive (non-nav) */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .matches-table {
        font-size: 0.9rem;
    }

    .matches-table th,
    .matches-table td {
        padding: 10px;
    }
}

/* ===== Internal Links Section (Front Page) ===== */
/* ===== Popular Pages Section ===== */
.popular-section {
    padding: 30px 0 20px;
}
.popular-heading {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 18px;
}
.popular-heading i {
    margin-right: 6px;
}
.popular-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.popular-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.popular-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.popular-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #0d3d17);
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--secondary);
}
.popular-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.popular-desc {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.4;
}
@media (max-width: 768px) {
    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .popular-card {
        padding: 16px 10px;
    }
    .popular-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .popular-name {
        font-size: 0.85rem;
    }
}
@media (max-width: 480px) {
    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Section Title Sub (split sections) ===== */
.section-title-sub {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ===== Tidligere Resultater Section (Front Page) ===== */
.tidligere-resultater-section {
    border-top: 2px solid rgba(244,196,48,0.2);
}

.tidligere-resultater-section .day-header {
    cursor: pointer;
}

.tidligere-resultater-section .collapse-icon {
    transition: transform 0.3s;
    margin-left: 10px;
}

.tidligere-resultater-section .collapse-icon.collapsed {
    transform: rotate(-90deg);
}

/* ===== Info Cards Section (Front Page) ===== */
.info-cards-section {
    padding: 50px 0;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.info-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.info-card-link .info-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
}

.info-card-link .info-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--secondary);
    transform: translateY(-3px);
}

.info-card-link .info-card i {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 12px;
    display: block;
}

.info-card-link .info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #fff;
}

.info-card-link .info-card p {
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .info-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .info-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== SEO Text Section (Front Page) ===== */
.seo-text-section {
    padding: 50px 0 60px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.seo-text-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.seo-text-content p {
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.seo-text-content a {
    color: var(--secondary);
    text-decoration: none;
}

.seo-text-content a:hover {
    text-decoration: underline;
}

/* ===== FAQ Section (Front Page) ===== */
.faq-section {
    padding: 40px 30px;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    margin: 0 auto;
    max-width: 960px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.faq-list {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-section .faq-item {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    transition: background 0.25s, border-color 0.25s;
}

.faq-section .faq-item.open {
    background: rgba(255,255,255,0.1);
    border-color: rgba(244,196,48,0.4);
}

.faq-section .faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s;
    border-radius: 10px;
}

.faq-section .faq-question span {
    color: inherit;
    flex: 1;
    text-align: left;
    align-self: center;
}

.faq-section .faq-question:hover {
    color: var(--secondary);
}

.faq-section .faq-question i {
    transition: transform 0.35s ease;
    color: var(--secondary);
    flex-shrink: 0;
    font-size: 0.85rem;
}

.faq-section .faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* CSS Grid trick: nunca corta el texto */
.faq-section .faq-item .faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
    max-height: unset;
    overflow: visible;
    padding: 0;
    opacity: 1;
}

.faq-section .faq-item.open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-section .faq-answer > p {
    overflow: hidden;
    min-height: 0;
    margin: 0;
    padding: 0 20px;
    transition: padding 0.35s ease;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    font-size: 0.95rem;
}

.faq-section .faq-item.open .faq-answer > p {
    padding: 4px 20px 20px;
}

.faq-section .faq-answer a {
    color: var(--secondary);
    text-decoration: none;
}

.faq-section .faq-answer a:hover {
    text-decoration: underline;
}

/* Fix: botón toggle submenu mobile */
.tip13-st {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    padding: 6px 10px;
    cursor: pointer;
    margin-left: auto;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .tip13-st {
        display: flex;
    }
    .tip13-st::before {
        content: '\f107';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
    }
}
