* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background: #000000;
    color: #D9D9D9;
    min-height: 100vh;
    padding: 0.5rem;
}

a {
    color: #8EC9FF;
    text-decoration: underline;
}

a:hover,
a:focus {
    color: #B5DCFF;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}
p {
    margin-bottom:1em !important;
}
strong {
    color: #EBC76E;
}

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

/* Origin Popup Styles */
.origin-popup {
    background: linear-gradient(135deg, #CCAB67 0%, #EBC76E 50%, #CCAB67 100%);
    padding: 0.75rem 1rem;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(204, 171, 103, 0.3);
}

.origin-popup-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.origin-popup-text {
    color: #000000;
    font-size: 0.95rem;
    font-weight: 500;
}

.origin-popup-text strong {
    color: #000000;
    font-weight: 700;
}

.origin-popup-link {
    color: #000000;
    font-weight: 700;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.origin-popup-link:hover {
    opacity: 0.8;
}

.origin-popup-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #000000;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.origin-popup-close:hover {
    opacity: 1;
}
.list-disc {
    list-style-type: disc;
    margin-left: 1.5rem;ก
}
@media (max-width: 600px) {
    .origin-popup {
        padding: 0.5rem 2.5rem 0.5rem 0.5rem;
    }

    .origin-popup-content {
        flex-direction: column;
        gap: 0.25rem;
    }

    .origin-popup-text {
        font-size: 0.85rem;
    }

    .origin-popup-close {
        right: 0.5rem;
    }
}

/* Header Styles */
.header {
    background: #000000;
    border-bottom: 1px solid #CCAB67;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.header-logo a {
    display: block;
    line-height: 0;
}

.header-logo img {
    height: 50px;
    width: auto;
    transition: opacity 0.3s ease;
}

.header-logo img:hover {
    opacity: 0.8;
}

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

.register-button {
    background: linear-gradient(227deg, #8B6832 12.69%, #FCDD9A 51.04%, #966B2A 87.06%);
    color: #000000;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: 0 1px 1px rgba(255, 246, 219, 0.80);
    border: none;
}

.register-button:hover {
    transform: translateY(-2px) scale(1.05);
}

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

    .header-logo img {
        height: 40px;
    }

    .register-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    color: #EBC76E;
}

h2 {
    color: #EBC76E;
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

h2::before {
    content: '';
    width: 5px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 2px;
    background: linear-gradient(180deg, #EBC76E 0%, #85713E 100%);
    display: inline-block;
}

h3,
h4,
h5,
h6 {
    color: #EBC76E;
}

/* Updated unfold components with gradient fade effect and bottom arrow */
.unfold {
    background: transparent;
    border-radius: 12px;
    position: relative;
    padding: 1.5rem;
}

.unfold input[type="checkbox"] {
    display: none;
}

.unfold h3 {
    color: #EBC76E;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.unfold-text {
    position: relative;
    max-height: 120px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.unfold input[type="checkbox"]:checked~.unfold-text {
    max-height: none;
}

.unfold-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, #000000);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.unfold input[type="checkbox"]:checked~.unfold-text::after {
    opacity: 0;
}

.unfold-arrow {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #EBC76E;
    font-size: 1.2rem;
    opacity: 1;
}

/* Fixed: Remove the opacity: 0 and keep the arrow visible with rotation */
.unfold input[type="checkbox"]:checked~.unfold-arrow {
    transform: translateX(-50%) rotate(180deg);
    bottom: 1rem;
}

/* New gold accent bar */
.gold-thing {
    width: 5px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 2px;
    background: linear-gradient(180deg, #EBC76E 0%, #85713E 100%);
    display: inline-block;
    margin-right: 12px;
}

/* Login panel glass-morphism */
.login-panel {
    width: 100%;
    max-width: 358px;
    border-radius: 13px;
    border: 1px solid rgba(247, 199, 151, 0.30);
    background: linear-gradient(0deg, rgba(128, 126, 117, 0.75) -0.04%, rgba(23, 21, 22, 0.75) -0.04%, rgba(97, 97, 95, 0.75) 97.15%);
    backdrop-filter: blur(7px);
    padding: 1.5rem 2rem;
    margin: 2rem auto;
}

.login-panel input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #EBC76E;
    color: #D9D9D9;
    margin-bottom: 1rem;
}

.login-panel input:focus {
    outline: none;
    border-color: #FCDD9A;
}

.login-panel label {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #D9D9D9;
}

.login-panel .login-btn {
    width: 100%;
    background: linear-gradient(227deg, #8B6832 12.69%, #FCDD9A 51.04%, #966B2A 87.06%);
    color: #000000;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    text-shadow: 0 1px 1px rgba(255, 246, 219, 0.80);
    transition: transform 0.2s ease;
    margin-top: 0.5rem;
}

.login-panel .login-btn:hover {
    transform: scale(1.02);
}

.login-panel .login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.75rem;
}

.login-panel .login-links a {
    color: #EBC76E;
    text-decoration: none;
}

.login-panel .login-links a:hover {
    text-decoration: underline;
}

/* Game card styles */
.game-card {
    width: 267px;
    min-height: 369px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(90deg, #2B2B32 0%, #484141 100%);
    backdrop-filter: blur(6px);
    overflow: hidden;
}

.game-card img {
    width: 100%;
    height: 192px;
    object-fit: cover;
}

.game-card-body {
    padding: 1rem;
}

/* Fade content for new theme (app.html style) */
.fade-content {
    max-height: 4.8em;
    overflow: hidden;
    position: relative;
    line-height: 1.5;
    transition: max-height 0.35s ease;
    padding-bottom: 30px;
}

.fade-content::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2em;
    max-height: 4.8em;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000000);
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.fade-content.expanded::after {
    opacity: 0;
}

.fade-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    margin-left: 8px;
    padding: 12px 20px;
    transition: transform 0.2s ease;
}

.fade-toggle-btn span.arrow {
    display: inline-block;
    transition: transform 0.25s ease;
    color: #EBC76E;
}

/* Updated horizontal tabs with dark theme */
.tabs {
    margin: 4rem 0;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
}

.tabs input[type="radio"] {
    display: none;
}

.tab-labels {
    display: flex;
    background: transparent;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #EBC76E #3A2E1A;
    border-bottom: 1px solid #3A2E1A;
}

.tab-labels::-webkit-scrollbar {
    height: 4px;
}

.tab-labels::-webkit-scrollbar-track {
    background: #3A2E1A;
}

.tab-labels::-webkit-scrollbar-thumb {
    background: #EBC76E;
    border-radius: 2px;
}

.tab-label {
    flex-shrink: 0;
    padding: 1rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: #D9D9D9;
    border-bottom: 2px solid transparent;
    min-width: 150px;
    white-space: nowrap;
    font-weight: 500;
}

.tab-label:hover {
    color: #EBC76E;
}

.tabs input[type="radio"]:nth-of-type(1):checked~.tab-labels .tab-label:nth-of-type(1),
.tabs input[type="radio"]:nth-of-type(2):checked~.tab-labels .tab-label:nth-of-type(2),
.tabs input[type="radio"]:nth-of-type(3):checked~.tab-labels .tab-label:nth-of-type(3),
.tabs input[type="radio"]:nth-of-type(4):checked~.tab-labels .tab-label:nth-of-type(4),
.tabs input[type="radio"]:nth-of-type(5):checked~.tab-labels .tab-label:nth-of-type(5),
.tabs input[type="radio"]:nth-of-type(6):checked~.tab-labels .tab-label:nth-of-type(6),
.tabs input[type="radio"]:nth-of-type(7):checked~.tab-labels .tab-label:nth-of-type(7),
.tabs input[type="radio"]:nth-of-type(8):checked~.tab-labels .tab-label:nth-of-type(8),
.tabs input[type="radio"]:nth-of-type(9):checked~.tab-labels .tab-label:nth-of-type(9),
.tabs input[type="radio"]:nth-of-type(10):checked~.tab-labels .tab-label:nth-of-type(10),
.tabs input[type="radio"]:nth-of-type(11):checked~.tab-labels .tab-label:nth-of-type(11),
.tabs input[type="radio"]:nth-of-type(12):checked~.tab-labels .tab-label:nth-of-type(12),
.tabs input[type="radio"]:nth-of-type(13):checked~.tab-labels .tab-label:nth-of-type(13),
.tabs input[type="radio"]:nth-of-type(14):checked~.tab-labels .tab-label:nth-of-type(14),
.tabs input[type="radio"]:nth-of-type(15):checked~.tab-labels .tab-label:nth-of-type(15),
.tabs input[type="radio"]:nth-of-type(16):checked~.tab-labels .tab-label:nth-of-type(16) {
    background: transparent;
    border-bottom-color: #EBC76E;
    color: #EBC76E;
    font-weight: 600;
}

.tab-content {
    display: none;
    background: transparent;
}

.tabs input[type="radio"]:nth-of-type(1):checked~.tab-contents .tab-content:nth-of-type(1),
.tabs input[type="radio"]:nth-of-type(2):checked~.tab-contents .tab-content:nth-of-type(2),
.tabs input[type="radio"]:nth-of-type(3):checked~.tab-contents .tab-content:nth-of-type(3),
.tabs input[type="radio"]:nth-of-type(4):checked~.tab-contents .tab-content:nth-of-type(4),
.tabs input[type="radio"]:nth-of-type(5):checked~.tab-contents .tab-content:nth-of-type(5),
.tabs input[type="radio"]:nth-of-type(6):checked~.tab-contents .tab-content:nth-of-type(6),
.tabs input[type="radio"]:nth-of-type(7):checked~.tab-contents .tab-content:nth-of-type(7),
.tabs input[type="radio"]:nth-of-type(8):checked~.tab-contents .tab-content:nth-of-type(8),
.tabs input[type="radio"]:nth-of-type(9):checked~.tab-contents .tab-content:nth-of-type(9),
.tabs input[type="radio"]:nth-of-type(10):checked~.tab-contents .tab-content:nth-of-type(10),
.tabs input[type="radio"]:nth-of-type(11):checked~.tab-contents .tab-content:nth-of-type(11),
.tabs input[type="radio"]:nth-of-type(12):checked~.tab-contents .tab-content:nth-of-type(12),
.tabs input[type="radio"]:nth-of-type(13):checked~.tab-contents .tab-content:nth-of-type(13),
.tabs input[type="radio"]:nth-of-type(14):checked~.tab-contents .tab-content:nth-of-type(14),
.tabs input[type="radio"]:nth-of-type(15):checked~.tab-contents .tab-content:nth-of-type(15),
.tabs input[type="radio"]:nth-of-type(16):checked~.tab-contents .tab-content:nth-of-type(16) {
    display: block;
}

/* Added vertical tabs section - New Theme */
.vertical-tabs {
    margin: 1rem 0;
    display: flex;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    min-height: 400px;
    gap: 1.5rem;
}

.vertical-tabs input[type="radio"] {
    display: none;
}

.vertical-tab-labels-wrapper {
    width: 280px;
    position: sticky;
    top: 1rem;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
}

.vertical-tab-labels {
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #CCAB67 transparent;
}

.scroll-indicator {
    text-align: center;
    padding: 12px 10px;
    color: #CCAB67;
    font-size: 0.85em;
    font-style: italic;
    margin-top: 10px;
    background: rgba(235, 199, 110, 0.1);
    border-radius: 6px;
    animation: bounce 2s infinite;
}

.vertical-tab-labels::-webkit-scrollbar {
    width: 6px;
}

.vertical-tab-labels::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.vertical-tab-labels::-webkit-scrollbar-thumb {
    background: #CCAB67;
    border-radius: 3px;
}

.vertical-tab-labels::-webkit-scrollbar-thumb:hover {
    background: #EBC76E;
}

.vertical-tab-label {
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: #D9D9D9;
    border: 1px solid #CCAB67;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vertical-tab-label:hover {
    background: rgba(235, 199, 110, 0.1);
}

.vertical-tabs input[type="radio"]:nth-of-type(1):checked~.vertical-tab-labels-wrapper .vertical-tab-labels .vertical-tab-label:nth-of-type(1),
.vertical-tabs input[type="radio"]:nth-of-type(2):checked~.vertical-tab-labels-wrapper .vertical-tab-labels .vertical-tab-label:nth-of-type(2),
.vertical-tabs input[type="radio"]:nth-of-type(3):checked~.vertical-tab-labels-wrapper .vertical-tab-labels .vertical-tab-label:nth-of-type(3),
.vertical-tabs input[type="radio"]:nth-of-type(4):checked~.vertical-tab-labels-wrapper .vertical-tab-labels .vertical-tab-label:nth-of-type(4),
.vertical-tabs input[type="radio"]:nth-of-type(5):checked~.vertical-tab-labels-wrapper .vertical-tab-labels .vertical-tab-label:nth-of-type(5),
.vertical-tabs input[type="radio"]:nth-of-type(6):checked~.vertical-tab-labels-wrapper .vertical-tab-labels .vertical-tab-label:nth-of-type(6),
.vertical-tabs input[type="radio"]:nth-of-type(7):checked~.vertical-tab-labels-wrapper .vertical-tab-labels .vertical-tab-label:nth-of-type(7),
.vertical-tabs input[type="radio"]:nth-of-type(8):checked~.vertical-tab-labels-wrapper .vertical-tab-labels .vertical-tab-label:nth-of-type(8),
.vertical-tabs input[type="radio"]:nth-of-type(9):checked~.vertical-tab-labels-wrapper .vertical-tab-labels .vertical-tab-label:nth-of-type(9),
.vertical-tabs input[type="radio"]:nth-of-type(10):checked~.vertical-tab-labels-wrapper .vertical-tab-labels .vertical-tab-label:nth-of-type(10),
.vertical-tabs input[type="radio"]:nth-of-type(11):checked~.vertical-tab-labels-wrapper .vertical-tab-labels .vertical-tab-label:nth-of-type(11),
.vertical-tabs input[type="radio"]:nth-of-type(12):checked~.vertical-tab-labels-wrapper .vertical-tab-labels .vertical-tab-label:nth-of-type(12),
.vertical-tabs input[type="radio"]:nth-of-type(13):checked~.vertical-tab-labels-wrapper .vertical-tab-labels .vertical-tab-label:nth-of-type(13),
.vertical-tabs input[type="radio"]:nth-of-type(14):checked~.vertical-tab-labels-wrapper .vertical-tab-labels .vertical-tab-label:nth-of-type(14),
.vertical-tabs input[type="radio"]:nth-of-type(15):checked~.vertical-tab-labels-wrapper .vertical-tab-labels .vertical-tab-label:nth-of-type(15),
.vertical-tabs input[type="radio"]:nth-of-type(16):checked~.vertical-tab-labels-wrapper .vertical-tab-labels .vertical-tab-label:nth-of-type(16),
.vertical-tabs input[type="radio"]:nth-of-type(17):checked~.vertical-tab-labels-wrapper .vertical-tab-labels .vertical-tab-label:nth-of-type(17),
.vertical-tabs input[type="radio"]:nth-of-type(18):checked~.vertical-tab-labels-wrapper .vertical-tab-labels .vertical-tab-label:nth-of-type(18),
.vertical-tabs input[type="radio"]:nth-of-type(19):checked~.vertical-tab-labels-wrapper .vertical-tab-labels .vertical-tab-label:nth-of-type(19),
.vertical-tabs input[type="radio"]:nth-of-type(20):checked~.vertical-tab-labels-wrapper .vertical-tab-labels .vertical-tab-label:nth-of-type(20),
.vertical-tabs input[type="radio"]:nth-of-type(21):checked~.vertical-tab-labels-wrapper .vertical-tab-labels .vertical-tab-label:nth-of-type(21),
.vertical-tabs input[type="radio"]:nth-of-type(22):checked~.vertical-tab-labels-wrapper .vertical-tab-labels .vertical-tab-label:nth-of-type(22),
.vertical-tabs input[type="radio"]:nth-of-type(23):checked~.vertical-tab-labels-wrapper .vertical-tab-labels .vertical-tab-label:nth-of-type(23),
.vertical-tabs input[type="radio"]:nth-of-type(24):checked~.vertical-tab-labels-wrapper .vertical-tab-labels .vertical-tab-label:nth-of-type(24),
.vertical-tabs input[type="radio"]:nth-of-type(25):checked~.vertical-tab-labels-wrapper .vertical-tab-labels .vertical-tab-label:nth-of-type(25),
.vertical-tabs input[type="radio"]:nth-of-type(26):checked~.vertical-tab-labels-wrapper .vertical-tab-labels .vertical-tab-label:nth-of-type(26),
.vertical-tabs input[type="radio"]:nth-of-type(27):checked~.vertical-tab-labels-wrapper .vertical-tab-labels .vertical-tab-label:nth-of-type(27),
.vertical-tabs input[type="radio"]:nth-of-type(28):checked~.vertical-tab-labels-wrapper .vertical-tab-labels .vertical-tab-label:nth-of-type(28),
.vertical-tabs input[type="radio"]:nth-of-type(29):checked~.vertical-tab-labels-wrapper .vertical-tab-labels .vertical-tab-label:nth-of-type(29),
.vertical-tabs input[type="radio"]:nth-of-type(30):checked~.vertical-tab-labels-wrapper .vertical-tab-labels .vertical-tab-label:nth-of-type(30) {
    background: #EBC76E;
    border-color: #EBC76E;
    color: #000000;
    font-weight: 600;
}

.vertical-tab-contents {
    flex: 1;
    padding: 0.5rem;
}

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

.vertical-tabs input[type="radio"]:nth-of-type(1):checked~.vertical-tab-contents .vertical-tab-content:nth-of-type(1),
.vertical-tabs input[type="radio"]:nth-of-type(2):checked~.vertical-tab-contents .vertical-tab-content:nth-of-type(2),
.vertical-tabs input[type="radio"]:nth-of-type(3):checked~.vertical-tab-contents .vertical-tab-content:nth-of-type(3),
.vertical-tabs input[type="radio"]:nth-of-type(4):checked~.vertical-tab-contents .vertical-tab-content:nth-of-type(4),
.vertical-tabs input[type="radio"]:nth-of-type(5):checked~.vertical-tab-contents .vertical-tab-content:nth-of-type(5),
.vertical-tabs input[type="radio"]:nth-of-type(6):checked~.vertical-tab-contents .vertical-tab-content:nth-of-type(6),
.vertical-tabs input[type="radio"]:nth-of-type(7):checked~.vertical-tab-contents .vertical-tab-content:nth-of-type(7),
.vertical-tabs input[type="radio"]:nth-of-type(8):checked~.vertical-tab-contents .vertical-tab-content:nth-of-type(8),
.vertical-tabs input[type="radio"]:nth-of-type(9):checked~.vertical-tab-contents .vertical-tab-content:nth-of-type(9),
.vertical-tabs input[type="radio"]:nth-of-type(10):checked~.vertical-tab-contents .vertical-tab-content:nth-of-type(10),
.vertical-tabs input[type="radio"]:nth-of-type(11):checked~.vertical-tab-contents .vertical-tab-content:nth-of-type(11),
.vertical-tabs input[type="radio"]:nth-of-type(12):checked~.vertical-tab-contents .vertical-tab-content:nth-of-type(12),
.vertical-tabs input[type="radio"]:nth-of-type(13):checked~.vertical-tab-contents .vertical-tab-content:nth-of-type(13),
.vertical-tabs input[type="radio"]:nth-of-type(14):checked~.vertical-tab-contents .vertical-tab-content:nth-of-type(14),
.vertical-tabs input[type="radio"]:nth-of-type(15):checked~.vertical-tab-contents .vertical-tab-content:nth-of-type(15),
.vertical-tabs input[type="radio"]:nth-of-type(16):checked~.vertical-tab-contents .vertical-tab-content:nth-of-type(16),
.vertical-tabs input[type="radio"]:nth-of-type(17):checked~.vertical-tab-contents .vertical-tab-content:nth-of-type(17),
.vertical-tabs input[type="radio"]:nth-of-type(18):checked~.vertical-tab-contents .vertical-tab-content:nth-of-type(18),
.vertical-tabs input[type="radio"]:nth-of-type(19):checked~.vertical-tab-contents .vertical-tab-content:nth-of-type(19),
.vertical-tabs input[type="radio"]:nth-of-type(20):checked~.vertical-tab-contents .vertical-tab-content:nth-of-type(20),
.vertical-tabs input[type="radio"]:nth-of-type(21):checked~.vertical-tab-contents .vertical-tab-content:nth-of-type(21),
.vertical-tabs input[type="radio"]:nth-of-type(22):checked~.vertical-tab-contents .vertical-tab-content:nth-of-type(22),
.vertical-tabs input[type="radio"]:nth-of-type(23):checked~.vertical-tab-contents .vertical-tab-content:nth-of-type(23),
.vertical-tabs input[type="radio"]:nth-of-type(24):checked~.vertical-tab-contents .vertical-tab-content:nth-of-type(24),
.vertical-tabs input[type="radio"]:nth-of-type(25):checked~.vertical-tab-contents .vertical-tab-content:nth-of-type(25),
.vertical-tabs input[type="radio"]:nth-of-type(26):checked~.vertical-tab-contents .vertical-tab-content:nth-of-type(26),
.vertical-tabs input[type="radio"]:nth-of-type(27):checked~.vertical-tab-contents .vertical-tab-content:nth-of-type(27),
.vertical-tabs input[type="radio"]:nth-of-type(28):checked~.vertical-tab-contents .vertical-tab-content:nth-of-type(28),
.vertical-tabs input[type="radio"]:nth-of-type(29):checked~.vertical-tab-contents .vertical-tab-content:nth-of-type(29),
.vertical-tabs input[type="radio"]:nth-of-type(30):checked~.vertical-tab-contents .vertical-tab-content:nth-of-type(30) {
    display: block;
}

/* New vertical tab styles (vtab- prefix from app.html) */
.vtab-input {
    display: none;
}

.vtab-labels-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 238px;
}

.vtab-label {
    width: 238px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    border: 1px solid #CCAB67;
    background: transparent;
    cursor: pointer;
    color: #D9D9D9;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 500;
}

.vtab-label:hover {
    background: rgba(235, 199, 110, 0.1);
}

.vtab-input:checked+.vtab-label {
    background: #EBC76E;
    color: #000;
}

.vtab-content {
    display: none;
}

.vtab-panels {
    flex: 1;
    padding: 0.5rem;
}

/* Updated accordion with dark theme */
.accordion {
    margin: 1rem 0;
}

.accordion-item {
    margin-bottom: 0.5rem;
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(204, 171, 103, 0.3);
}

.accordion input[type="checkbox"] {
    display: none;
}

.accordion-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    cursor: pointer;
    background: transparent;
    transition: all 0.3s ease;
    color: #EBC76E;
    font-weight: 500;
    gap: 12px;
}

.accordion-header:hover {
    color: #FCDD9A;
}

.accordion-header::before {
    content: '►';
    font-size: 0.75rem;
    color: #EBC76E;
    transition: transform 0.3s ease;
    background: linear-gradient(227deg, #8B6832 12.69%, #FCDD9A 51.04%, #966B2A 87.06%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accordion-header::after {
    content: none;
}

.accordion input[type="checkbox"]:checked+.accordion-header::before {
    transform: rotate(90deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    background: transparent;
    padding: 0 1.25rem;
}

.accordion input[type="checkbox"]:checked~.accordion-content {
    max-height: 3000px;
    opacity: 1;
    padding: 0 1.25rem 1rem 1.25rem;
}

/* New accordion item styles (from app.html) */
.accordion-item-new {
    border-bottom: 1px solid rgba(204, 171, 103, 0.3);
    margin-bottom: 8px;
}

.accordion-header-new {
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    color: #EBC76E;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    font-size: 1.125rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.accordion-header-new:hover {
    color: #FCDD9A;
}

.accordion-arrow {
    width: 10.747px;
    height: 12px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.accordion-item-new.active .accordion-arrow {
    transform: rotate(90deg);
}

.accordion-content-new {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.accordion-item-new.active .accordion-content-new {
    max-height: 500px;
    padding: 0 20px 16px 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-item {
    background: linear-gradient(90deg, #2B2B32 0%, #484141 100%);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #EBC76E;
}

.tag {
    display: inline-block;
    background: #EBC76E;
    color: #000000;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin: 0.25rem;
}

.league-card:hover {
    transform: translateY(-5px);
}

.league-card button:hover {
    background: #9d8c66;
}

/* Football leagues styles (moved from inline attributes) */
.football-leagues-section {
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: transparent;
    border-radius: 12px;
}

.football-leagues-section h2 {
    text-align: center;
    color: #EBC76E;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.leagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.league-card {
    background: linear-gradient(90deg, #2B2B32 0%, #484141 100%);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.league-image {
    height: 200px;
    background: #666;
    position: relative;
}

.league-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1rem;
}

.league-image-overlay h3 {
    color: #EBC76E;
    margin: 0;
    font-size: 1.3rem;
}

.league-card-body {
    padding: 1.5rem;
    color: #D9D9D9;
}

.league-card-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.league-card-button {
    background: linear-gradient(227deg, #8B6832 12.69%, #FCDD9A 51.04%, #966B2A 87.06%);
    color: #000000;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    text-shadow: 0 1px 1px rgba(255, 246, 219, 0.80);
}

.w-100 {
    width: 100%;
    margin: 0 auto;
    display: block;
}

.w-50 {
    width: 50%;
    margin: 0 auto;
    display: block;
}

.hero-cta {
    margin-top: 1.25rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Ensure the primary CTA matches the site's dark/gold theme and is accessible */
.hero-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    /* center the CTA buttons */
    margin-bottom: 90px;
}

.hero-cta .btn-primary,
.hero-cta .cta-button.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.6rem;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(227deg, #8B6832 12.69%, #FCDD9A 51.04%, #966B2A 87.06%);
    color: #000000;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    text-shadow: 0 1px 1px rgba(255, 246, 219, 0.80);
}

.hero-cta .btn-primary:hover,
.hero-cta .btn-primary:focus {
    transform: translateY(-2px) scale(1.05);
    outline: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.hero-cta .btn-primary:focus-visible {
    box-shadow: 0 0 0 4px rgba(187, 161, 117, 0.18);
}

/* Disabled state */
.hero-cta .btn-primary[aria-disabled="true"],
.hero-cta .btn-primary.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Secondary button (outline gold) */
.hero-cta .btn-secondary,
.hero-cta .cta-button.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.6rem;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    color: #EBC76E;
    border: 2px solid #EBC76E;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta .btn-secondary:hover,
.hero-cta .btn-secondary:focus {
    background: rgba(235, 199, 110, 0.1);
    transform: translateY(-2px) scale(1.05);
    outline: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-cta {
        justify-content: center;
        gap: 0.6rem;
    }

    .hero-cta .btn-primary,
    .hero-cta .cta-button.btn-primary,
    .hero-cta .btn-secondary,
    .hero-cta .cta-button.btn-secondary {
        min-width: 160px;
        width: auto;
    }
}

@media (max-width: 768px) {
    .w-50 {
        width: 90%;
    }
}

.center {
    text-align: center;
}

.tag-container {
    margin: 1rem 0;
}

.section-title {
    color: #EBC76E;
    margin-bottom: 1rem;
}

.cta-button {
    background: linear-gradient(227deg, #8B6832 12.69%, #FCDD9A 51.04%, #966B2A 87.06%);
    color: #000000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 1px 1px rgba(255, 246, 219, 0.80);
    transition: transform 0.2s ease;
}

.cta-button:hover {
    transform: scale(1.05);
}

/* Related Section Styles */
.related-section {
    background: transparent;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border-top: 3px solid #CCAB67;
}

.related-section h2 {
    color: #EBC76E;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.related-section p {
    color: #D9D9D9;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.related-section nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.related-section nav li {
    background: linear-gradient(90deg, #2B2B32 0%, #484141 100%);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.related-section nav li:hover {
    transform: translateY(-2px);
}

.related-section nav a {
    display: block;
    padding: 0.8rem 1.2rem;
    color: #D9D9D9;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.3s ease;
}

.related-section nav a:hover {
    color: #EBC76E;
}

@media (max-width: 768px) {
    .related-section nav ul {
        flex-direction: column;
    }
}

/* Footer Styles */
.footer {
    background: linear-gradient(90deg, #2B2B32 0%, #484141 100%);
    color: #D9D9D9;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    border-top: 1px solid #CCAB67;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
    /* center the footer area within the container when there's extra space */
    justify-content: center;
}

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

.footer-description {
    grid-column: 1 / -1;
    margin-bottom: 2rem;
}

.footer-title {
    color: #EBC76E;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.footer-text {
    text-align: center;
    line-height: 1.6;
    color: #D9D9D9;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h3 {
    color: #EBC76E;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-link {
    color: #D9D9D9;
    text-decoration: none;
    padding: 0.4rem 0;
    transition: color 0.3s ease;
    position: relative;
    padding-left: 1rem;
}

.footer-link::before {
    content: '»';
    position: absolute;
    left: 0;
    color: #EBC76E;
}

.footer-link:hover {
    color: #EBC76E;
}

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



/* Make footer more centered on narrow screens and ensure columns behave responsively */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        justify-items: center;
        /* center items horizontally */
        text-align: center;
    }

    .footer-main {
        grid-template-columns: 1fr;
        /* stack footer columns vertically on small screens */
    }

    .footer-description {
        grid-column: 1 / -1;
    }
}

.footer-social h3 {
    color: #EBC76E;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

.social-facebook {
    background: #1877f2;
}

.social-twitter {
    background: #1da1f2;
}

.social-youtube {
    background: #ff0000;
}

.footer-sitemap {
    margin-top: 1rem;
}

.sitemap-link {
    color: #EBC76E;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.sitemap-link:hover {
    color: #FCDD9A;
}

/* Responsive Design for Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-title {
        font-size: 1.5rem;
    }

    .social-links {
        gap: 0.8rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }
}

/* Table Styles with Gold Borders */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: transparent;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border: 2px solid #CCAB67;
    color: #D9D9D9;
}

table th {
    background: linear-gradient(90deg, #2B2B32 0%, #484141 100%);
    color: #EBC76E;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

table tbody tr {
    background: transparent;
    transition: background-color 0.3s ease;
}

table tbody tr:hover {
    background: rgba(235, 199, 110, 0.1);
}

table tbody tr:nth-child(even) {
    background: rgba(43, 43, 50, 0.5);
}

table tbody tr:nth-child(even):hover {
    background: rgba(235, 199, 110, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .vertical-tabs {
        flex-direction: column;
    }

    .vertical-tab-labels {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #EBC76E #3A2E1A;
        padding-bottom: 12px;
        gap: 12px;
    }

    .vertical-tab-labels::-webkit-scrollbar {
        height: 4px;
    }

    .vertical-tab-labels::-webkit-scrollbar-track {
        background: #3A2E1A;
        border-radius: 2px;
    }

    .vertical-tab-labels::-webkit-scrollbar-thumb {
        background: #EBC76E;
        border-radius: 2px;
    }

    .vertical-tab-label {
        white-space: nowrap;
        min-width: 160px;
        width: auto;
        padding: 0 20px;
        margin-bottom: 0;
    }

    /* vtab mobile styles */
    .vtab-labels-container {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #EBC76E #3A2E1A;
        padding-bottom: 12px;
        gap: 12px;
    }

    .vtab-labels-container::-webkit-scrollbar {
        height: 4px;
    }

    .vtab-labels-container::-webkit-scrollbar-track {
        background: #3A2E1A;
        border-radius: 2px;
    }

    .vtab-labels-container::-webkit-scrollbar-thumb {
        background: #EBC76E;
        border-radius: 2px;
    }

    .vtab-label {
        min-width: 160px;
        width: auto;
        padding: 0 20px;
        margin-bottom: 0;
    }

    /* Responsive table styles */
    table {
        font-size: 0.9rem;
    }

    table th,
    table td {
        padding: 0.75rem 0.5rem;
    }
}

/* ============================================
   FAQ Tabs & Accordion Styles
   ============================================ */

.faq-container {
    width: 100%;
    background: linear-gradient(180deg, #1a1a1f 0%, #2a2a32 100%);
    border-radius: 12px;
    padding: 40px;
    box-sizing: border-box;
}

.faq-main-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: #EBC76E;
    margin: 0 0 40px 0;
}

/* FAQ Tab Navigation */
.faq-tabs {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid rgba(204, 171, 103, 0.3);
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 8px;
}

.faq-tab-link {
    font-size: 1rem;
    font-weight: 600;
    color: #999;
    background: none;
    border: none;
    padding: 15px 24px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    border-bottom: 4px solid transparent;
    margin-bottom: -2px;
}

.faq-tab-link:hover {
    color: #EBC76E;
}

.faq-tab-link.active {
    color: #EBC76E;
    border-bottom-color: #EBC76E;
}

/* FAQ Tab Content Panels */
.faq-tab-content {
    display: none;
    animation: faqFadeIn 0.5s ease;
}

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

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

/* FAQ Accordion Styling */
.faq-accordion-item {
    border-bottom: 1px solid rgba(204, 171, 103, 0.2);
}

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

.faq-accordion-header {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 10px;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.faq-accordion-header:hover {
    background-color: rgba(235, 199, 110, 0.05);
    color: #EBC76E;
}

.faq-accordion-header h3,
.faq-accordion-header h4 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.faq-accordion-icon {
    font-size: 1.5rem;
    font-weight: 400;
    color: #EBC76E;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    line-height: 1;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-accordion-header.active .faq-accordion-icon {
    transform: rotate(45deg);
}

.faq-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 15px;
}

.faq-accordion-content.active {
    padding: 5px 15px 25px 15px;
}

.faq-accordion-content p {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #ccc;
}

.faq-accordion-content ol,
.faq-accordion-content ul {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
    color: #ccc;
    line-height: 1.7;
}

.faq-accordion-content li {
    margin-bottom: 0.75rem;
}

.faq-accordion-content li strong {
    color: #EBC76E;
}

/* FAQ Responsive Adjustments */
@media (max-width: 900px) {
    .faq-container {
        padding: 30px 20px;
    }
    .faq-main-title {
        font-size: 1.75rem;
    }
    .faq-tab-link {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    .faq-accordion-header {
        font-size: 1rem;
        padding: 16px 5px;
    }
}

@media (max-width: 600px) {
    .faq-container {
        padding: 20px 15px;
    }
    .faq-main-title {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }
    .faq-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
        flex-wrap: nowrap;
        gap: 0;
    }
    .faq-tabs::-webkit-scrollbar {
        display: none;
    }
    .faq-tab-link {
        white-space: nowrap;
        padding: 12px 16px;
        font-size: 0.85rem;
    }
    .faq-accordion-header {
        font-size: 0.95rem;
        padding: 14px 5px;
    }
    .faq-accordion-content p,
    .faq-accordion-content ol,
    .faq-accordion-content ul {
        font-size: 0.9rem;
    }
}

/* Scroll indicator animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}