/* Custom user overrides for the modern frontend will live here. */

.input-with-toggle {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-toggle .password-toggle {
    position: absolute;
    right: 12px;
    border: none;
    background: transparent;
    color: var(--text-light, #e8e8e8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.input-with-toggle .password-toggle i {
    pointer-events: none;
}

.download-grid-modern {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 2rem;
}

.download-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    background: rgba(15, 16, 19, 0.6);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.download-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-gold);
}

.download-card__icon img {
    width: 48px;
    height: 48px;
}

.download-card__cta {
    font-weight: 700;
    color: var(--primary-gold);
}

.download-extra {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.download-extra__card {
    background: rgba(15, 16, 19, 0.65);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
    padding: 1.5rem;
}

.rank-tabs {
    display: inline-flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rank-tab {
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s ease;
}

.rank-tab--active {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

.rank-table-wrapper {
    overflow-x: auto;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    background: rgba(15, 16, 19, 0.6);
}

.rank-table-modern {
    width: 100%;
    border-collapse: collapse;
}

.rank-table-modern th,
.rank-table-modern td {
    padding: 0.85rem;
    text-align: left;
}

.rank-table-modern thead {
    background: rgba(212, 175, 55, 0.1);
}

.rank-table-modern tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.vote-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.vote-card {
    position: relative;
    padding: 1.75rem;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: rgba(15, 16, 19, 0.65);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.vote-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-gold);
}

.vote-card__badge {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.vote-card__cta {
    font-weight: 700;
    color: var(--primary-gold);
}

.vote-instructions {
    margin-top: 2rem;
    background: rgba(15, 16, 19, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
}

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

.account-card {
    padding: 1.75rem;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: rgba(15, 16, 19, 0.65);
}

.account-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--primary-gold);
}

.btn-secondary {
    padding: 0.75rem 1.25rem;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 8px;
    background: transparent;
    color: var(--primary-gold);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.15);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
}

.progress-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

.btn-pill {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    background: transparent;
    color: var(--primary-gold);
    cursor: pointer;
}

.status-pill {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
}

.status-pill--done {
    border-color: rgba(74, 222, 128, 0.4);
    color: #4ade80;
}

.terms-article,
.news-article {
    background: rgba(15, 16, 19, 0.65);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 2rem;
    line-height: 1.8;
}

.terms-article h2,
.terms-article h3 {
    margin-top: 1.5rem;
    color: var(--primary-gold);
}

@media (max-width: 768px) {
    .download-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

}

.store-layout {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(280px, 360px) 1fr;
}

.store-cart {
    background: rgba(15, 16, 19, 0.65);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
}

.store-cart__items.hidden {
    display: none;
}

.store-cart__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.store-items__grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.store-item {
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    background: rgba(15, 16, 19, 0.6);
    text-align: center;
}

.store-item figure img {
    width: 96px;
    height: 96px;
    object-fit: contain;
}

.news-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light, #e8e8e8);
}

.news-empty__icon {
    font-size: 4rem;
    color: var(--primary-gold, #d4af37);
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.news-empty h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-light, #e8e8e8);
}

.news-empty p {
    font-size: 1rem;
    opacity: 0.7;
    max-width: 500px;
    margin: 0 auto;
}

.gallery-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(42, 31, 26, 0.4);
    border-radius: 15px;
    border: 2px solid rgba(212, 175, 55, 0.2);
}

.gallery-empty__icon {
    font-size: 4rem;
    color: var(--primary-gold, #d4af37);
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.gallery-empty h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-gold, #d4af37);
}

.gallery-empty p {
    font-size: 1rem;
    opacity: 0.7;
    max-width: 500px;
    margin: 0 auto;
    color: var(--text-light, #e8e8e8);
}

.gallery-pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.news-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.news-pagination nav {
    display: flex;
    justify-content: center;
}

.news-pagination .pagination {
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: rgba(15, 16, 19, 0.65);
    color: var(--text-light, #e8e8e8);
    text-decoration: none;
    transition: all 0.2s ease;
}

.news-pagination .page-item.active .page-link,
.news-pagination .page-link:hover {
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(212, 175, 55, 0.15);
    color: #fff;
}

.news-article {
    background: rgba(15, 16, 19, 0.65);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.news-cover {
    margin: 0 0 2rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.news-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.news-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.news-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(15, 16, 19, 0.65);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    color: var(--text-light, #e8e8e8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-nav-link:hover:not(.disabled) {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.news-nav-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.news-nav-prev {
    justify-content: flex-start;
}

.news-nav-next {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.news-nav-all {
    justify-content: center;
    min-width: 120px;
}

.news-nav-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.news-nav-label {
    font-size: 0.75rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-nav-title {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-nav-link i {
    font-size: 1.2rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .news-navigation {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .news-nav-prev,
    .news-nav-next {
        justify-content: center;
    }
    
    .news-nav-title {
        max-width: none;
    }
}

.news-article .news-cover {
    margin: 0 0 2rem;
}

.news-article .news-cover img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    object-fit: cover;
}

.events-table-wrapper {
    overflow-x: auto;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    background: rgba(15, 16, 19, 0.6);
}

.events-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.events-table th,
.events-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    vertical-align: middle;
}

.events-table thead {
    background: rgba(212, 175, 55, 0.15);
    position: sticky;
    top: 0;
    z-index: 10;
}

.events-table th {
    color: var(--primary-gold, #d4af37);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.4);
    padding: 1.25rem 1.25rem;
    background: rgba(212, 175, 55, 0.15);
}

.events-table tbody tr {
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: background 0.3s ease;
}

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

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

.events-table td {
    color: var(--text-light, #e8e8e8);
}

.events-table td:first-child {
    color: var(--primary-gold, #d4af37);
    font-weight: 600;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
}

.events-table td:nth-child(2) {
    font-weight: 500;
    font-size: 1rem;
}

.events-table td:last-child {
    color: rgba(232, 232, 232, 0.7);
    font-size: 0.9rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .events-table-wrapper {
        padding: 0;
    }
    
    .events-table th,
    .events-table td {
        padding: 0.85rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .events-table th {
        font-size: 0.8rem;
        padding: 1rem 0.75rem;
    }
    
    .events-table td:first-child {
        font-size: 0.9rem;
    }
    
    .events-table td:nth-child(2) {
        font-size: 0.9rem;
    }
    
    .events-table td:last-child {
        font-size: 0.85rem;
    }
}

