:root {
    --primary-color: #006FFF;
    --secondary-color: #FFFFFF;
    --tertiary-color: #000000;
    --ocean-light: #5E17EB;
    --hover-color: #3F109B;
    --gold: #FFD700;
    --silver: #C0C0C0;
    --bronze: #CD7F32;
    --text-color: #000000;
    --input-bg: #5E17EB;
    --input-color: #FFFFFF;
}

/* --- Global Resets & Box-Sizing --- */
*, *::before, *::after {
    box-sizing: border-box;
}

@font-face {
    font-family: 'Bauhaus';
    src: url('/fonts/BauhausBold.ttf');
    font-weight: normal;
    font-style: normal;
}

/* --- Base Page Layout --- */
html, body {
    font-family: sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

main {
    padding-top: 10px;
}

.hero-container {
    margin: 20px 0;
}

#maintenanceimage {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
}

#container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 10px;
    text-align: center;
    padding: 10px 20px;
}

#container > br {
    display: none;
}

/* --- Typography & Headers --- */
li {
    font-size: 25px;
}

pre {
    font-family: inherit;
    font-size: inherit;
    white-space: pre-wrap;
    margin: 0;
    padding: 0;
}

br {
    user-select: none;
}

#title, #news {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    color: var(--secondary-color);
}

#header {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 20px;
}

#logo {
    border: 3px solid var(--tertiary-color);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

#logo:hover {
    transform: scale(1.05);
}

/* --- Main Content Box & Outer Card Layout --- */
#box,
.countdown-card,
#countdownbox,
.main-box {
    background-color: var(--ocean-light);
    width: 90%;
    max-width: 700px;
    height: auto;
    color: var(--secondary-color);
    text-align: center;
    border-radius: 12px;
    border: 3px solid var(--tertiary-color);
    padding: 24px 20px;
    margin: 20px auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

/* --- User Profile Page Styling --- */
.profile-container {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 20px 15px;
}

.profile-card {
    background-color: var(--ocean-light);
    border: 2px solid var(--tertiary-color);
    border-radius: 12px;
    padding: 28px 24px;
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.profile-header {
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 16px;
}

.profile-header h1 {
    margin: 0;
    font-size: 26px;
    color: var(--secondary-color);
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.stat-box {
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid var(--tertiary-color);
    border-radius: 10px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.stat-box .material-symbols-outlined {
    font-size: 24px;
    opacity: 0.9;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    font-weight: bold;
}

.stat-value {
    font-size: 15px;
    font-weight: bold;
    color: var(--secondary-color);
}

.badges-section {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 20px;
    margin-top: 20px;
}

.badges-section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* --- Active Subscriptions & Settings Cards --- */
.settings-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    margin: 30px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.section-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.empty-subs {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.empty-subs .material-symbols-outlined {
    font-size: 36px;
    opacity: 0.5;
    margin-bottom: 8px;
}

.subscription-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 550px;
    margin: 0 auto;
    text-align: left;
}

.sub-card {
    background: rgba(0, 0, 0, 0.18);
    border: 2px solid var(--tertiary-color);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.sub-card:hover {
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-1px);
}

.sub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
}

.sub-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.sub-status-pill {
    background: rgba(0, 230, 118, 0.15);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.3);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sub-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    align-items: start;
}

.sub-detail-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    text-align: left;
}

.sub-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.sub-value {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: bold;
    color: #e0e0e0;
}

.renew-enabled, 
.renew-enabled .material-symbols-outlined {
    color: #00e5ff !important;
}

.renew-disabled, 
.renew-disabled .material-symbols-outlined {
    color: #ff4d4d !important;
}

.setting-card {
    background: rgba(0, 0, 0, 0.18);
    border: 2px solid var(--tertiary-color);
    border-radius: 10px;
    padding: 16px 20px;
    margin: 12px auto;
    width: 100%;
    max-width: 550px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.setting-card:hover {
    transform: translateY(-2px);
    background-color: var(--hover-color);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.setting-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.setting-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: bold;
    color: var(--secondary-color);
}

.setting-desc {
    font-size: 12px;
    opacity: 0.8;
    margin: 0;
    line-height: 1.4;
}

.plan-card {
    background: rgba(0, 0, 0, 0.18);
    border: 2px solid var(--tertiary-color);
    border-radius: 10px;
    padding: 16px 20px;
    margin: 12px auto;
    width: 100%;
    max-width: 480px;
    text-align: center;
    color: var(--secondary-color);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.plan-card:hover {
    transform: translateY(-2px);
    background-color: var(--hover-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.sub-status {
    color: #00ff80;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.sub-info {
    font-size: 14px;
    opacity: 0.9;
    margin: 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* --- Toggle Switches --- */
.switch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.switch-container:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.switch-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #e0e0e0;
    cursor: pointer;
    user-select: none;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: .25s ease-in-out;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #b0b0b0;
    transition: .25s ease-in-out;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background-color: var(--hover-color);
    border-color: var(--gold);
}

.switch input:checked + .slider:before {
    transform: translateX(24px);
    background-color: var(--gold);
}

.switch input:focus + .slider {
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

input:checked + .slider.breaking-slider {
    background-color: rgba(255, 77, 77, 0.25);
    border-color: #ff4d4d;
}

input:checked + .slider.breaking-slider:before {
    background-color: #ff4d4d;
    transform: translateX(24px);
    box-shadow: 0 0 8px rgba(255, 77, 77, 0.6);
}

input:checked + .slider.school-slider {
    background-color: rgba(0, 229, 255, 0.2);
    border-color: #00e5ff;
}

input:checked + .slider.school-slider:before {
    background-color: #00e5ff;
    transform: translateX(24px);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

input:checked + .slider.combinable-slider {
    background-color: rgba(255, 215, 0, 0.2);
    border-color: var(--gold);
}

input:checked + .slider.combinable-slider:before {
    background-color: var(--gold);
    transform: translateX(24px);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.toggle-row {
    display: flex;
    gap: 16px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.toggle-group {
    flex: 1;
    min-width: 200px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid var(--tertiary-color);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
}

/* --- Notification System Styling --- */
.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #ff4d4d;
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
    pointer-events: none;
    z-index: 2;
}

.notif-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    z-index: 10005;
    justify-content: center;
    align-items: flex-start;
    padding-top: 70px;
    backdrop-filter: blur(3px);
}

.notif-card {
    background-color: var(--ocean-light);
    width: 92%;
    max-width: 460px;
    border-radius: 12px;
    border: 3px solid var(--tertiary-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    color: var(--secondary-color);
    text-align: left;
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 2px solid var(--tertiary-color);
}

.notif-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.notif-mark-read {
    background: transparent;
    border: none;
    color: var(--secondary-color);
    opacity: 0.85;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    font-family: inherit;
    transition: opacity 0.2s ease;
}

.notif-mark-read:hover {
    opacity: 1;
    text-decoration: underline;
}

.notif-close {
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.notif-close:hover {
    opacity: 1;
}

.notif-list {
    max-height: 380px;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-color: var(--tertiary-color) transparent;
}

.notif-item {
    background: rgba(0, 0, 0, 0.15);
    border: 2px solid var(--tertiary-color);
    border-radius: 8px;
    padding: 12px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.notif-item.unread {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 4px 0 0 var(--tertiary-color);
}

.notif-item:hover {
    transform: translateY(-2px);
    background-color: var(--hover-color);
}

.notif-item a {
    text-decoration: none;
    color: var(--secondary-color);
    display: block;
}

.notif-time {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
}

.notif-empty {
    text-align: center;
    padding: 30px 10px;
    font-size: 14px;
    color: var(--secondary-color);
    opacity: 0.75;
}

/* --- Leaderboard & Podium Badges --- */
.winners-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
}

.winner-card {
    background-color: var(--ocean-light);
    border: 2px solid var(--tertiary-color);
    border-radius: 10px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    max-width: 180px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.winner-card:hover {
    transform: translateY(-4px);
    background-color: var(--hover-color);
}

.flag {
    width: 100%;
    max-width: 90px;
    height: 55px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--tertiary-color);
    margin: 8px 0;
}

.winner-card h3 {
    margin: 4px 0 0 0;
    font-size: 16px;
    color: var(--tertiary-color);
}

.rank-badge {
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    white-space: nowrap;
}

.rank-1st {
    border-color: var(--gold);
    min-height: 180px;
}
.rank-1st .rank-badge {
    background-color: var(--gold);
    color: #000;
}

.rank-2nd {
    border-color: var(--silver);
    min-height: 160px;
}
.rank-2nd .rank-badge {
    background-color: var(--silver);
    color: #000;
}

.rank-3rd {
    border-color: var(--bronze);
    min-height: 145px;
}
.rank-3rd .rank-badge {
    background-color: var(--bronze);
    color: #fff;
}

/* --- Mechanical Seamless Split Flip-Clock Styling --- */
.flip-container,
#countdown {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
    margin: 25px auto !important;
}

.flip-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flip-card {
    position: relative;
    width: 72px;
    height: 80px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    background-color: var(--ocean-light);
    perspective: 300px;
}

.flip-card .digit {
    position: absolute;
    left: 0;
    right: 0;
    height: 80px;
    line-height: 80px;
    text-align: center;
    color: var(--secondary-color);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 46px;
    font-weight: bold;
}

.flip-card .top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    overflow: hidden;
    background-color: var(--ocean-light);
    border: 2px solid var(--tertiary-color);
    border-bottom: none;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.flip-card .top .digit {
    top: -2px;
}

.flip-card .bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    overflow: hidden;
    background-color: var(--ocean-light);
    border: 2px solid var(--tertiary-color);
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.flip-card .bottom .digit {
    top: -40px;
}

.flip-card .flip-top {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 50%;
    transform-origin: 50% 100%;
    transform-style: preserve-3d;
    z-index: 10;
}

.flip-card .flip-top .front {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    overflow: hidden;
    background-color: var(--ocean-light);
    border: 2px solid var(--tertiary-color);
    border-bottom: none;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flip-card .flip-top .front .digit {
    top: -2px;
}

.flip-card .flip-top .back {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    overflow: hidden;
    background-color: var(--ocean-light);
    border: 2px solid var(--tertiary-color);
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    transform: rotateX(180deg);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flip-card .flip-top .back .digit {
    top: -40px;
}

.flip-card.play .flip-top {
    animation: flipTopAnim 0.5s ease-in-out forwards;
}

@keyframes flipTopAnim {
    0% { transform: rotateX(0deg); }
    100% { transform: rotateX(-180deg); }
}

.flip-unit .label {
    margin-top: 10px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--secondary-color);
}

/* --- Badge Carousel Container & Items --- */
.badge-carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin: 20px 0;
    user-select: none;
}

.badge-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 10px;
    gap: 16px;
    padding: 12px 10px;
    max-width: 85%;
    scrollbar-width: none;
    user-select: none;
    -webkit-user-select: none;
}

.badge-carousel::-webkit-scrollbar {
    display: none;
}

.badge-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.15);
    border: 2px solid var(--tertiary-color);
    border-radius: 12px;
    padding: 12px 8px;
    min-width: 110px;
    min-height: 125px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.badge-item:hover {
    transform: translateY(-3px);
    background: rgba(0, 0, 0, 0.25);
}

.badge-item img, .profile-badge, #badge, #badge1 {
    width: 70px;
    height: 70px;
    object-fit: contain;
    transition: transform 0.2s ease, filter 0.2s ease;
    pointer-events: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.badge-item img:hover, .profile-badge:hover, #badge:hover, #badge1:hover {
    transform: scale(1.1) rotate(2deg);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.badge-placeholder-wrapper {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.badge-placeholder-wrapper .material-symbols-outlined {
    font-size: 58px;
    color: var(--gold);
    opacity: 0.85;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.badge-item:hover .badge-placeholder-wrapper {
    transform: scale(1.1) rotate(2deg);
}

.badge-item-title {
    font-size: 12px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-top: 8px;
    text-align: center;
    word-break: break-word;
    line-height: 1.3;
}

.carousel-arrow {
    background-color: var(--ocean-light);
    color: var(--secondary-color);
    border: 2px solid var(--tertiary-color);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.carousel-arrow:hover:not(:disabled) {
    transform: scale(1.1);
    background-color: var(--hover-color);
}

.carousel-arrow .material-symbols-outlined {
    font-size: 26px;
    color: var(--secondary-color);
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(100%);
}

.user-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-left: 6px;
    color: var(--gold);
    font-size: 18px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

/* --- Badges Showcase & Upload Styling --- */
.badges-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 15px;
    text-align: center;
}

.badges-header h1 {
    margin: 0 0 8px 0;
    color: var(--secondary-color);
    font-size: 28px;
}

.badges-notice {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--tertiary-color);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--secondary-color);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 25px auto;
}

.badge-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 18px;
    width: 100%;
}

.badge-card {
    background-color: var(--ocean-light);
    border: 2px solid var(--tertiary-color);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    flex: 1 1 220px;
    max-width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.badge-card:hover {
    transform: translateY(-4px);
    background-color: var(--hover-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.badge-img-wrapper {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px 0;
}

.badge-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.4));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.badge-card:hover .badge-img-wrapper img {
    transform: scale(1.12) rotate(3deg);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.6));
}

.badge-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    color: var(--secondary-color);
}

.badge-desc {
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.88;
    margin-top: 8px;
    color: var(--secondary-color);
}

.badge-hidden-label {
    background: rgba(255, 77, 77, 0.2);
    border: 1px solid #ff4d4d;
    color: #ff4d4d;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 12px;
    margin-bottom: 8px;
    display: inline-block;
    letter-spacing: 0.5px;
}

.badge-empty {
    background-color: var(--ocean-light);
    border: 2px dashed var(--tertiary-color);
    border-radius: 12px;
    padding: 40px 20px;
    color: var(--secondary-color);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.badge-upload-card {
    background-color: var(--ocean-light);
    border: 2px solid var(--tertiary-color);
    border-radius: 12px;
    padding: 24px;
    max-width: 480px;
    margin: 30px auto;
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-bottom: 16px;
}

.form-group label {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--secondary-color);
}

.form-group input[type="text"],
.form-group input[type="file"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.checkbox-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.15);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--tertiary-color);
    cursor: pointer;
    user-select: none;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--hover-color);
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.file-drop-area {
    background: rgba(0, 0, 0, 0.15);
    border: 2px dashed var(--tertiary-color);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    transition: background 0.2s ease;
}

.file-drop-area:hover {
    background: rgba(0, 0, 0, 0.25);
}

.error-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 77, 77, 0.15);
    border: 1px solid #ff4d4d;
    color: #ff4d4d;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    text-align: center;
}

.success-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(0, 255, 128, 0.15);
    border: 1px solid #00ff80;
    color: #00ff80;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    text-align: left;
}

.preview-box {
    margin-top: 12px;
    text-align: center;
    display: none;
}

.preview-box img {
    max-width: 90px;
    max-height: 90px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--tertiary-color);
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
}

/* --- News Section & Multi-Item Grid Layout --- */
.news-section {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    text-align: center;
}

.section-title {
    font-size: 2em;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: var(--text-color);
}

.section-subtitle {
    font-size: 0.9em;
    opacity: 0.8;
    margin: 0 0 35px 0;
    color: var(--text-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    width: 100%;
}

#newsbox, .newsbox {
    background-color: var(--ocean-light);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--secondary-color);
    text-align: left;
    border-radius: 12px;
    border: 2px solid var(--tertiary-color);
    padding: 22px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

#newsbox:hover, .newsbox:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.newsbox a {
    color: var(--secondary-color);
}

.news-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.news-title {
    margin: 0;
    font-size: 1.25em;
    font-weight: 600;
    color: var(--secondary-color);
    line-height: 1.3;
}

.news-body {
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 12px;
    color: var(--secondary-color);
    opacity: 0.95;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-entry-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    padding-bottom: 8px;
}

.news-entry-desc {
    font-size: 0.95em;
    line-height: 1.5;
    flex-grow: 1;
}

.news-entry-date {
    font-size: 0.82em;
    opacity: 0.8;
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
    color: var(--secondary-color);
}

.news-separator,
.entry-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin: 10px 0;
    width: 100%;
    height: 0;
}

.news-entry-actions {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.news-entry-actions .button {
    margin: 0;
    padding: 6px 20px;
    font-size: 0.85em;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    height: auto;
}

.news-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    opacity: 0.85;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.news-footer .material-symbols-outlined {
    font-size: 16px;
}

.news-badge {
    align-self: flex-start;
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.badge-breaking {
    background-color: rgba(255, 77, 77, 0.2);
    color: #ff4d4d;
    border: 1px solid #ff4d4d;
}

.badge-school {
    background-color: rgba(0, 255, 255, 0.2);
    color: #00ffff;
    border: 1px solid #00ffff;
}

.news-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.15);
    border: 2px dashed var(--tertiary-color);
    border-radius: 10px;
    padding: 20px;
    max-width: 450px;
    margin: 0 auto;
}

.center-action {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* --- WriteSomething Module Styling --- */
.ws-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.ws-header {
    text-align: center;
    width: 100%;
}

.ws-header h1 {
    margin: 0 0 10px 0;
    color: var(--secondary-color);
    font-size: 28px;
}

.ws-notice-banner {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--tertiary-color);
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--secondary-color);
    text-align: center;
    opacity: 0.9;
    width: 100%;
}

.ws-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
    width: 100%;
}

.ws-card {
    background-color: var(--ocean-light);
    border: 2px solid var(--tertiary-color);
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex: 1 1 300px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: clip;
}

.ws-card img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 12px auto;
    border: 2px solid var(--tertiary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ws-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.ws-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.ws-author {
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-role {
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    display: inline-block;
    white-space: nowrap;
}

.badge-admin {
    background: rgba(255, 77, 77, 0.2);
    border: 1px solid #ff4d4d;
    color: #ff4d4d;
}

.badge-dev {
    background: rgba(0, 255, 128, 0.2);
    border: 1px solid #00ff80;
    color: #00ff80;
}

.badge-custom-red {
    background: rgba(192, 46, 46, 0.25);
    border: 1px solid #c02e2e;
    color: #ff6b6b;
}

.badge-youtube {
    background: rgba(178, 7, 29, 0.2);
    border: 1px solid #B2071D;
    color: #B2071D;
}

.ws-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: var(--secondary-color);
}

.ws-body {
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    opacity: 0.95;
    margin-bottom: 14px;
    flex-grow: 1;
}

.ws-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    opacity: 0.8;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ws-footer .material-symbols-outlined {
    font-size: 16px;
}

.ws-empty-card {
    background-color: var(--ocean-light);
    border: 2px dashed var(--tertiary-color);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    color: var(--secondary-color);
    width: 100%;
}

.ws-empty-card .material-symbols-outlined {
    font-size: 40px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.bottom-actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    width: 100%;
}

/* --- Partnerships Footer --- */
.partners-section {
    width: 100%;
    max-width: 550px;
    margin: 40px auto 20px auto;
    padding: 0 15px;
}

.partners-card {
    background-color: var(--ocean-light);
    border: 2px solid var(--tertiary-color);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    color: var(--secondary-color);
}

.partners-card p {
    margin: 4px 0;
    font-size: 15px;
}

.partners-card .sub-credit {
    font-size: 13px;
    opacity: 0.8;
}

/* --- Tables & Leaderboards --- */
.leaderboard {
    text-align: center;
    border-collapse: separate;
    border-spacing: 4px;
}

.leaderboard td, .leaderboard th {
    padding: 10px;
    border: 3px solid var(--tertiary-color);
    background-color: var(--ocean-light);
    color: var(--tertiary-color);
    border-radius: 10px;
}

.leaderboard th {
    font-weight: 900;
}

#table {
    display: table;
}

/* --- Controls & Icons --- */
#date {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.material-symbols-outlined {
    color: var(--secondary-color);
    user-select: none;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
    font-variation-settings:
        'FILL' 0,
        'wght' 600,
        'GRAD' 0,
        'opsz' 48;
}

/* --- Interactive Buttons, Submits & Keyframe Animations --- */
button,
.button, 
.button2, 
button[type="submit"], 
input[type="submit"] {
    background-color: var(--ocean-light);
    border-radius: 10px;
    border: 2px solid var(--tertiary-color);
    color: var(--secondary-color);
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    font-weight: bold;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
}

.button, 
button[type="submit"], 
input[type="submit"] {
    width: 200px;
    height: 50px;
    word-wrap: break-word;
    color: var(--secondary-color);
    margin: 15px auto;
}

.button .material-symbols-outlined {
    color: var(--secondary-color);
}

.button2 {
    width: 75px;
    height: 50px;
    color: var(--secondary-color);
}

.button2 .material-symbols-outlined {
    color: var(--secondary-color);
}

@keyframes buttonanimation {
    from { transform: scale(1); background-color: var(--ocean-light); }
    to { transform: scale(1.05); background-color: var(--hover-color); }
}

@keyframes buttonanimationreturn {
    from { transform: scale(1.05); background-color: var(--hover-color); }
    to { transform: scale(1); background-color: var(--ocean-light); }
}

.button:hover, 
.button2:hover, 
.button3:hover, 
.logout:hover,
button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    animation-name: buttonanimation;
    animation-fill-mode: forwards;
    animation-duration: 0.4s;
    transition: all 0.2s;
    animation-play-state: running;
}

.button:not(:hover), 
.button2:not(:hover), 
.button3:not(:hover), 
.logout:not(:hover),
button:not(:hover),
button[type="submit"]:hover,
input[type="submit"]:hover {
    animation-name: buttonanimationreturn;
    animation-duration: 0.4s;
    animation-fill-mode: forwards;
    transition: all 0.2s;
    animation-play-state: running;
}

.logout {
    width: 75px;
    height: 50px;
    background-color: var(--ocean-light);
    border-radius: 10px;
    border: 2px solid var(--tertiary-color);
    color: var(--tertiary-color);
    text-align: center;
    position: fixed;
    top: 10px;
    right: 20px;
    line-height: 50px;
    user-select: none;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: top 0.3s ease;
}

/* --- Sidebar Navigation & Fixed Controls --- */
.button3 {
    position: fixed;
    top: 15px;
    left: 10px;
    width: 60px;
    height: 60px;
    background-color: var(--ocean-light);
    border-radius: 10px;
    border: 2px solid var(--tertiary-color);
    color: var(--secondary-color);
    font-size: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-weight: bold;
    z-index: 10005;
    transition: top 0.3s ease, left 0.3s ease;
}

.button3 .material-symbols-outlined {
    color: var(--secondary-color);
}

#sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100%;
    background-color: var(--ocean-light);
    transition: left 0.3s ease;
    padding-top: 20px;
    z-index: 10000000000000;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-color: var(--ocean-light) transparent;
}

#sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
}

#sidebar .button {
    width: 100%;
    margin: 0;
    max-width: 100%;
}

/* --- Alert Banner Styling & Mobile Positioning --- */
#alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    box-sizing: border-box;
    background-color: var(--gold, #FFD700);
    color: #121212;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

body:has(#alert) .button3,
#alert ~ .button3 {
    top: 60px;
}

body:has(#alert) .logout,
#alert ~ .logout {
    top: 50px;
}

body:has(#alert) #notifBtn {
    top: 50px;
}

body:has(#alert) {
    padding-top: 45px;
}

@media screen and (max-width: 600px) {
    .button3 {
        width: 46px;
        height: 46px;
        top: 10px;
        left: 8px;
        font-size: 28px;
    }

    body:has(#alert) .button3,
    #alert ~ .button3 {
        top: 85px; 
    }

    body:has(#alert) .logout,
    #alert ~ .logout {
        top: 80px;
    }
}

/* --- Header Layout & Clearance --- */
#welcome, #login {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 20px 0 20px !important;
    width: 100%;
}

body.page-index #welcome,
body.page-index #login {
    padding-left: 75px !important;
}

#welcomeuser {
    background-color: var(--primary-color);
    color: var(--text-color);
    margin: 0;
    padding-left: 0;
}

#headerbuttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
}

#headerbuttons .button,
#headerbuttons button,
#headerbuttons input[type="submit"] {
    margin: 0;
}

/* --- Forms & Input Fields --- */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
textarea,
select {
    width: 60%;
    max-width: 300px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 2px solid var(--tertiary-color);
    background-color: var(--input-bg);
    color: var(--input-color);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    margin: 6px 0;
}

.option-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.option-row input[type="radio"] {
    margin: 0;
    cursor: pointer;
    transform: scale(1.1);
}

.option-row label {
    font-size: 16px;
    cursor: pointer;
    color: var(--tertiary-color);
}

#loginbox {
    background-color: var(--ocean-light);
    width: 100%;
    max-width: 500px;
    height: auto;
    color: var(--tertiary-color);
    text-align: center;
    border-radius: 10px;
    border: 2px solid var(--tertiary-color);
    padding: 16px;
}

.completed {
    color: lime;
    font-weight: bold;
}

#error {
    color: yellow;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* --- Polls Page Modules --- */
.polls-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 15px;
    text-align: center;
}

.polls-header {
    margin-bottom: 25px;
}

.polls-header h1 {
    margin: 0 0 8px 0;
    color: var(--secondary-color);
    font-size: 28px;
}

.polls-notice {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--tertiary-color);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--secondary-color);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.polls-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 18px;
    width: 100%;
    margin-top: 20px;
}

.poll-card {
    background-color: var(--ocean-light);
    border: 2px solid var(--tertiary-color);
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    flex: 1 1 300px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.poll-card:hover {
    transform: translateY(-3px);
    background-color: var(--hover-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.poll-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 8px;
}

.poll-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    color: var(--secondary-color);
    word-break: break-word;
}

.poll-deadline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    opacity: 0.9;
    margin: 12px 0 18px 0;
    background: rgba(0, 0, 0, 0.15);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.poll-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.poll-actions button {
    width: 100%;
    margin: 0;
    height: 42px;
    font-size: 14px;
}

.poll-empty-state {
    background-color: var(--ocean-light);
    border: 2px dashed var(--tertiary-color);
    border-radius: 12px;
    padding: 40px 20px;
    color: var(--secondary-color);
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    text-align: center;
}

.poll-empty-state .material-symbols-outlined {
    font-size: 48px;
    opacity: 0.75;
    margin-bottom: 8px;
}

.poll-badge-active {
    background: rgba(0, 255, 128, 0.2);
    border: 1px solid #00ff80;
    color: #00ff80;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.poll-vote-container {
    width: 100%;
    max-width: 650px;
    margin: 20px auto;
    padding: 0 15px;
}

.poll-vote-card {
    background-color: var(--ocean-light);
    border: 2px solid var(--tertiary-color);
    border-radius: 12px;
    padding: 28px 24px;
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.poll-vote-header {
    text-align: center;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 16px;
}

.poll-vote-header h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: var(--secondary-color);
}

.poll-vote-header .poll-meta {
    font-size: 13px;
    opacity: 0.85;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.poll-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.poll-option-card {
    background: rgba(0, 0, 0, 0.18);
    border: 2px solid var(--tertiary-color);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
    user-select: none;
}

.poll-option-card:hover {
    background-color: var(--hover-color);
    transform: translateY(-1px);
}

.poll-option-card input[type="radio"] {
    margin: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--gold);
}

.poll-option-card label {
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    flex-grow: 1;
    color: var(--secondary-color);
    margin: 0;
}

.poll-other-input {
    width: 100%;
    max-width: 100% !important;
    margin-top: 8px;
    display: none;
    box-sizing: border-box;
}

.submit-btn-wrapper {
    text-align: center;
}

.submit-btn-wrapper button {
    width: 100%;
    max-width: 240px;
    height: 48px;
    font-size: 16px;
}

/* --- Terms of Service Archive Page --- */
.tos-container {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    padding: 20px 15px;
    text-align: center;
}

.tos-card {
    background-color: var(--ocean-light);
    border: 2px solid var(--tertiary-color);
    border-radius: 12px;
    padding: 28px 24px;
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.tos-header {
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 16px;
}

.tos-header h1 {
    margin: 0 0 8px 0;
    font-size: 26px;
    color: var(--secondary-color);
}

.tos-current-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 255, 128, 0.18);
    border: 1px solid #00ff80;
    color: #00ff80;
    font-size: 13px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 6px;
}

.tos-subtitle {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 20px;
}

.tos-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tos-version-card {
    background: rgba(0, 0, 0, 0.18);
    border: 2px solid var(--tertiary-color);
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--secondary-color);
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.tos-version-card:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

.tos-version-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tos-version-info .material-symbols-outlined {
    font-size: 22px;
    color: var(--gold);
}

.tos-date {
    font-size: 16px;
    font-weight: bold;
}

.tos-badge-active {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
    background: rgba(0, 255, 128, 0.2);
    border: 1px solid #00ff80;
    color: #00ff80;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.5px;
}

.tos-action {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: bold;
    opacity: 0.9;
}

/* --- Document & Legal Content Styling --- */
.tos-document-container {
    width: 100%;
    max-width: 820px;
    margin: 20px auto;
    padding: 0 15px;
}

.tos-document-card {
    background-color: var(--ocean-light);
    border: 2px solid var(--tertiary-color);
    border-radius: 12px;
    padding: 32px 28px;
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    text-align: left;
}

.tos-doc-header {
    text-align: center;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 20px;
}

.tos-doc-header h1 {
    font-size: 26px;
    margin: 0 0 10px 0;
    color: var(--secondary-color);
}

.tos-doc-notice {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--tertiary-color);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 14px;
    opacity: 0.92;
}

.tos-doc-notice p {
    margin: 6px 0;
}

.tos-doc-notice a {
    color: var(--gold);
    text-decoration: underline;
}

.tos-chapter {
    margin-bottom: 28px;
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
}

.tos-chapter h2 {
    font-size: 20px;
    margin: 0 0 14px 0;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
    padding-bottom: 10px;
}

.tos-section-text {
    font-size: 14px;
    line-height: 1.6;
    margin: 8px 0;
    opacity: 0.95;
}

.tos-list-rules {
    list-style: none;
    padding-left: 0;
    margin: 10px 0;
}

.tos-list-rules li {
    font-size: 14px;
    line-height: 1.6;
    padding: 8px 12px;
    margin-bottom: 6px;
    background: rgba(0, 0, 0, 0.15);
    border-left: 3px solid var(--tertiary-color);
    border-radius: 0 6px 6px 0;
}

.tos-warning-box {
    background: rgba(255, 77, 77, 0.15);
    border: 1px solid #ff4d4d;
    color: #ff8080;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Anti-selection protection */
.setting-card,
.sub-card,
.plan-card,
.badge-item,
.badge-card,
.badge-upload-card,
.profile-card,
.stat-box,
.ws-card,
.checkbox-group,
button,
select,
label {
    user-select: none;
    -webkit-user-select: none;
}

/* --- Request a Quote Page Styling --- */
.quote-request-container {
    width: 100%;
    max-width: 580px;
    margin: 30px auto;
    padding: 0 15px;
}

.quote-request-card {
    background-color: var(--ocean-light);
    border: 2px solid var(--tertiary-color);
    border-radius: 12px;
    padding: 28px 24px;
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.quote-request-header {
    text-align: center;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 16px;
}

.quote-request-header h2 {
    margin: 0 0 6px 0;
    font-size: 24px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.quote-subtitle {
    font-size: 13px;
    opacity: 0.85;
    margin: 0;
}

.quote-request-card textarea {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box;
    resize: vertical;
    min-height: 100px;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    line-height: 1.5;
}

/* --- Quests Page Module --- */
.quests-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 15px;
    text-align: center;
}

.quests-header {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.quests-header h1 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quest-timer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--tertiary-color);
    color: var(--gold);
    font-size: 13px;
    font-weight: bold;
    padding: 6px 14px;
    border-radius: 20px;
}

.quests-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 18px;
    width: 100%;
}

.quest-card {
    background-color: var(--ocean-light);
    border: 2px solid var(--tertiary-color);
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex: 1 1 300px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quest-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.quest-card.claimable {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.quest-card.completed {
    opacity: 0.75;
    border-color: #00ff80;
}

.quest-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.quest-title {
    font-size: 17px;
    font-weight: bold;
    margin: 0;
    color: var(--secondary-color);
    line-height: 1.3;
}

.quest-status-badge {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.5px;
}

.badge-progress {
    background: rgba(0, 111, 255, 0.2);
    border: 1px solid #006fff;
    color: #006fff;
}

.badge-ready {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid var(--gold);
    color: var(--gold);
}

.badge-claimed {
    background: rgba(0, 255, 128, 0.2);
    border: 1px solid #00ff80;
    color: #00ff80;
}

.quest-reward {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.quest-progress-wrapper {
    margin-bottom: 18px;
}

.quest-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 6px;
    opacity: 0.9;
}

.quest-progress-track {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quest-progress-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.quest-card.completed .quest-progress-fill {
    background: #00ff80;
}

.quest-card-actions {
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.quest-card-actions button {
    width: 100%;
    margin: 0;
    height: 42px;
    font-size: 14px;
}

.claim-btn {
    background-color: var(--gold) !important;
    color: #000 !important;
    border-color: var(--gold) !important;
}

.completed-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #00ff80;
    font-weight: bold;
    font-size: 14px;
    padding: 8px;
}

.quests-empty-card {
    background-color: var(--ocean-light);
    border: 2px dashed var(--tertiary-color);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    color: var(--secondary-color);
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
}

/* --- Bug Reporting Module --- */
.bug-report-container {
    width: 100%;
    max-width: 600px;
    margin: 30px auto;
    padding: 0 15px;
}

.bug-report-card {
    background-color: var(--ocean-light);
    border: 2px solid var(--tertiary-color);
    border-radius: 12px;
    padding: 28px 24px;
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.bug-report-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 16px;
}

.bug-report-header h2 {
    margin: 0 0 6px 0;
    font-size: 24px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bug-subtitle {
    font-size: 13px;
    opacity: 0.85;
    margin: 0;
}

.bug-reward-banner {
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid var(--gold);
    color: var(--secondary-color);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.bug-report-card textarea {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box;
    resize: vertical;
    min-height: 120px;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.bug-warning-notice {
    background: rgba(255, 77, 77, 0.15);
    border: 1px solid #ff4d4d;
    color: #ff8080;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Admin Insert News Module --- */
.admin-news-container {
    width: 100%;
    max-width: 680px;
    margin: 30px auto;
    padding: 0 15px;
}

.admin-news-card {
    background-color: var(--ocean-light);
    border: 2px solid var(--tertiary-color);
    border-radius: 12px;
    padding: 28px 24px;
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.admin-news-header {
    text-align: center;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 16px;
}

.admin-news-header h2 {
    margin: 0 0 6px 0;
    font-size: 24px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-subtitle {
    font-size: 13px;
    opacity: 0.85;
    margin: 0;
}

.admin-news-card textarea {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box;
    resize: vertical;
    min-height: 110px;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.form-grid-3 .form-group input {
    width: 100%;
    max-width: 100%;
}

.checkbox-row {
    display: flex;
    gap: 12px;
    margin: 18px 0;
    flex-wrap: wrap;
}

.checkbox-row .checkbox-group {
    flex: 1;
    min-width: 160px;
}

.admin-guide-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--tertiary-color);
    border-radius: 10px;
    padding: 16px 20px;
    margin-top: 20px;
    color: var(--secondary-color);
}

.admin-guide-card h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-guide-card ul {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.9;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

input[type="datetime-local"] {
    width: 100%;
    min-width: 220px;
    padding: 10px 10px;
    border-radius: 10px;
    border: 2px solid var(--tertiary-color);
    background-color: var(--input-bg);
    color: var(--input-color);
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.4;
    outline: none;
    box-sizing: border-box;
    color-scheme: dark;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    margin-left: 4px;
    flex-shrink: 0;
}

/* --- Admin Insert Poll Module --- */
.admin-poll-container {
    width: 100%;
    max-width: 580px;
    margin: 30px auto;
    padding: 0 15px;
}

.admin-poll-card {
    background-color: var(--ocean-light);
    border: 2px solid var(--tertiary-color);
    border-radius: 12px;
    padding: 28px 24px;
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.admin-poll-header {
    text-align: center;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 16px;
}

.admin-poll-header h2 {
    margin: 0 0 6px 0;
    font-size: 24px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-poll-card input[type="text"] {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* --- Admin Ban User Module --- */
.admin-ban-container {
    width: 100%;
    max-width: 580px;
    margin: 30px auto;
    padding: 0 15px;
}

.admin-ban-card {
    background-color: var(--ocean-light);
    border: 2px solid var(--tertiary-color);
    border-radius: 12px;
    padding: 28px 24px;
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.admin-ban-header {
    text-align: center;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 16px;
}

.admin-ban-header h2 {
    margin: 0 0 6px 0;
    font-size: 24px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-ban-card input[type="text"],
.admin-ban-card textarea {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box;
}

.admin-ban-card textarea {
    resize: vertical;
    min-height: 100px;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    line-height: 1.5;
}

/* --- Admin Points Module --- */
.admin-points-container {
    width: 100%;
    max-width: 540px;
    margin: 30px auto;
    padding: 0 15px;
}

.admin-points-card {
    background-color: var(--ocean-light);
    border: 2px solid var(--tertiary-color);
    border-radius: 12px;
    padding: 28px 24px;
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.admin-points-header {
    text-align: center;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 16px;
}

.admin-points-header h2 {
    margin: 0 0 6px 0;
    font-size: 24px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-points-card input[type="text"],
.admin-points-card input[type="number"] {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box;
}

.admin-points-card input[type="number"]::-webkit-outer-spin-button,
.admin-points-card input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.admin-points-card input[type="number"] {
    -moz-appearance: textfield;
}

/* --- Admin Impersonation Module --- */
.admin-impersonate-container {
    width: 100%;
    max-width: 520px;
    margin: 30px auto;
    padding: 0 15px;
}

.admin-impersonate-card {
    background-color: var(--ocean-light);
    border: 2px solid var(--tertiary-color);
    border-radius: 12px;
    padding: 28px 24px;
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.admin-impersonate-header {
    text-align: center;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 16px;
}

.admin-impersonate-header h2 {
    margin: 0 0 6px 0;
    font-size: 24px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-impersonate-card input[type="text"] {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box;
}

.impersonate-warning-box {
    background: rgba(0, 111, 255, 0.15);
    border: 1px solid #006fff;
    color: var(--secondary-color);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Impersonation Top Switcher Bar --- */
#impersonation-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10003;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 16px;
    background-color: #ff4d4d;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#impersonation-bar .revert-btn {
    background-color: #ffffff;
    color: #121212;
    padding: 4px 12px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#impersonation-bar .revert-btn:hover {
    background-color: var(--gold);
    transform: scale(1.04);
}

body:has(#impersonation-bar) {
    padding-top: 40px;
}

body:has(#impersonation-bar) .button3 {
    top: 50px;
}

/* --- Admin Countdown Module --- */
.admin-countdown-container {
    width: 100%;
    max-width: 580px;
    margin: 30px auto;
    padding: 0 15px;
}

.admin-countdown-card {
    background-color: var(--ocean-light);
    border: 2px solid var(--tertiary-color);
    border-radius: 12px;
    padding: 28px 24px;
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.admin-countdown-header {
    text-align: center;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 16px;
}

.admin-countdown-header h2 {
    margin: 0 0 6px 0;
    font-size: 24px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-countdown-card input[type="text"] {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* --- Admin Season Timings Module --- */
.admin-season-container {
    width: 100%;
    max-width: 620px;
    margin: 30px auto;
    padding: 0 15px;
}

.admin-season-card {
    background-color: var(--ocean-light);
    border: 2px solid var(--tertiary-color);
    border-radius: 12px;
    padding: 28px 24px;
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.admin-season-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 16px;
}

.admin-season-header h2 {
    margin: 0 0 6px 0;
    font-size: 24px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.season-status-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--tertiary-color);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.admin-season-card input[type="text"],
.admin-season-card input[type="number"] {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* --- Profile Picture (PFP) Avatar & Modal System --- */
.pfp-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 16px auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 3px solid var(--tertiary-color, #333);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.pfp-wrapper.editable {
    cursor: pointer;
}

.pfp-wrapper.editable:hover {
    transform: scale(1.05);
    border-color: var(--gold, #EFBF04);
}

.pfp-img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.pfp-placeholder-icon {
    font-size: 56px;
    color: rgba(255, 255, 255, 0.4);
}

.pfp-edit-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: var(--gold, #EFBF04);
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.pfp-wrapper.editable:hover .pfp-edit-overlay {
    opacity: 1;
}

/* Modal Overlay & Container */
.pfp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.pfp-modal-card {
    background: var(--ocean-light, #1a233a);
    border: 2px solid var(--tertiary-color, #2a3859);
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.pfp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

.pfp-modal-header h3 {
    margin: 0;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold, #EFBF04);
}

/* Modal Badge Selection Grid */
.pfp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 10px;
    overflow-y: auto;
    padding: 6px 2px;
    -webkit-overflow-scrolling: touch;
}

/* PFP Selection Option Box */
.pfp-option {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    user-select: none;
}

.pfp-option:hover:not(.active) {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.pfp-option.active {
    border-color: var(--gold, #EFBF04) !important;
    background: rgba(239, 191, 4, 0.18) !important;
    box-shadow: 0 0 14px rgba(239, 191, 4, 0.4), inset 0 0 8px rgba(239, 191, 4, 0.1);
    transform: scale(1.03);
}

.pfp-option.active::after {
    content: "check_circle";
    font-family: 'Material Symbols Outlined';
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 16px;
    color: var(--gold, #EFBF04);
    font-variation-settings: 'FILL' 1;
}

.pfp-option img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.pfp-option-title {
    font-size: 10.5px;
    font-weight: 600;
    opacity: 0.9;
    line-height: 1.2;
    word-break: break-word;
}

/* Mobile Breakpoint Adjustments */
@media screen and (max-width: 480px) {
    .pfp-wrapper {
        width: 85px;
        height: 85px;
    }

    .pfp-placeholder-icon {
        font-size: 48px;
    }

    .pfp-modal-card {
        padding: 16px;
        max-height: 90vh;
    }

    .pfp-grid {
        grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
        gap: 8px;
    }

    .pfp-option {
        padding: 8px 4px;
    }

    .pfp-option img {
        width: 34px;
        height: 34px;
    }

    .pfp-option-title {
        font-size: 10px;
    }
}