:root {
    /* Hyper-Premium Cyber Palette */
    --bg-dark: #020617;
    --sidebar-bg: #0b1120;
    --glass: rgba(15, 23, 42, 0.7);
    --glass-bright: rgba(30, 41, 59, 0.8);
    --accent: #6366f1;
    --accent-glow: #818cf8;
    --accent-secondary: #bc13fe;
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(51, 65, 85, 0.5);
    --border-bright: rgba(99, 102, 241, 0.4);

    /* Rank Colors */
    --rank-Commoner: #64748b;
    --rank-Baron: #10b981;
    --rank-Viscount: #06b6d4;
    --rank-Count: #6366f1;
    --rank-Marquess: #8b5cf6;
    --rank-Duke: #d946ef;
    --rank-Archduke: #f59e0b;

    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.025em;
}

#app {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* Sidebar Navigation - Immersive v3.6 */
.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    border-right: 1px solid var(--border);
    z-index: 1000;
    transition: width 0.3s var(--transition);
}

.sidebar-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.nav-links {
    list-style: none;
    flex-grow: 1;
}

.nav-links li {
    margin-bottom: 0.75rem;
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: 0.2s var(--transition);
    border: 1px solid transparent;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.nav-links a.active {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--border-bright);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
}

@media (max-width: 768px) {
    .sidebar {
        left: -280px;
    }

    .sidebar.active {
        transform: translateX(280px);
    }

    .content-area {
        padding: 1.5rem !important;
        margin-left: 0 !important;
    }
}

/* Toast System */
#toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: var(--sidebar-bg);
    border: 1px solid var(--border);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    animation: toastSlideIn 0.3s ease-out forwards;
    min-width: 250px;
    backdrop-filter: blur(10px);
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.info {
    border-left: 4px solid var(--accent);
}

@keyframes toastSlideIn {
    from {
        transform: translateX(110%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.fade-out {
    animation: toastFadeOut 0.3s ease-in forwards;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    margin-bottom: 2rem;
    text-align: left;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
}

.sidebar-header {
    margin-bottom: 3rem;
}

/* Avatar Glow Frames */
.avatar-frame {
    position: relative;
    padding: 2px;
    border-radius: 50%;
    background: var(--border);
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
}

.avatar-frame.rank-Commoner {
    border: 2px solid var(--rank-Commoner);
}

.avatar-frame.rank-Baron {
    border: 2px solid var(--rank-Baron);
    box-shadow: 0 0 10px var(--rank-Baron);
}

.avatar-frame.rank-Viscount {
    border: 2px solid var(--rank-Viscount);
    box-shadow: 0 0 15px var(--rank-Viscount);
}

.avatar-frame.rank-Count {
    border: 2px solid var(--rank-Count);
    box-shadow: 0 0 20px var(--rank-Count);
}

.avatar-frame.rank-Marquess {
    border: 2px solid var(--rank-Marquess);
    box-shadow: 0 0 25px var(--rank-Marquess);
}

.avatar-frame.rank-Duke {
    border: 3px solid var(--rank-Duke);
    box-shadow: 0 0 30px var(--rank-Duke);
}

.avatar-frame.rank-Archduke {
    border: 3px solid var(--rank-Archduke);
    box-shadow: 0 0 40px var(--rank-Archduke);
    background: linear-gradient(45deg, var(--rank-Archduke), transparent);
}

.avatar-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--sidebar-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
}

.logo {
    font-size: 2.2rem;
    font-weight: 900;
    cursor: pointer;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #6366f1, #bc13fe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.rank-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: white;
    letter-spacing: 1px;
}

/* Content Area */
.content-area {
    margin-left: 280px;
    flex-grow: 1;
    padding: 4rem;
    width: 100%;
    min-height: 100vh;
    background: radial-gradient(circle at 50% -20%, #1e1b4b 0%, #020617 70%);
}

.container-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Challenge Mini Cards */
.challenge-mini {
    padding: 2.5rem 2rem;
    border-radius: 24px;
    background: var(--glass);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.challenge-mini::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: 0.4s;
}

.challenge-mini:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 20px var(--accent-glow);
}

.challenge-mini:hover::before {
    opacity: 1;
}

.category-text {
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    font-family: 'JetBrains Mono', monospace;
}

.points-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin: 1.5rem 0;
}

.points-text span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.8rem;
    transition: 0.3s;
}

.filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Search Container in Filter Bar */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
    min-width: 200px;
    max-width: 280px;
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 0 1rem;
    transition: 0.3s;
}

.search-container:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

#challenge-search {
    background: transparent;
    border: none;
    padding: 0.6rem 0.5rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    width: 100%;
}

#challenge-search:focus {
    outline: none;
    border: none;
}

#challenge-search::placeholder {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.search-icon {
    font-size: 0.85rem;
    opacity: 0.5;
    pointer-events: none;
}

/* Captcha Group */
.captcha-group {
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin: 1.5rem 0;
}

.captcha-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.captcha-question {
    color: var(--accent);
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    letter-spacing: 1px;
}

.captcha-group input[type="text"] {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    color: white;
    font-family: 'JetBrains Mono', monospace;
}

.captcha-group input[type="text"]:focus {
    border-color: var(--accent);
    outline: none;
}

.forgot-pass-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-decoration: none;
    transition: 0.2s;
}

.forgot-pass-link:hover {
    color: var(--accent);
}

.section {
    animation: fadeIn 0.4s ease-out;
    max-width: 1200px;
    margin: 0 auto;
}

#auth-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--glass);
}

.stat-card .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.stat-card h3 {
    font-size: 1.8rem;
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
}

/* Forms */
.auth-box {
    width: 100%;
    max-width: 450px;
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: var(--sidebar-bg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.auth-tabs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.auth-tabs button {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.8rem 0;
    cursor: pointer;
    font-weight: 700;
    font-family: inherit;
}

.auth-tabs button.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

input {
    width: 100%;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    color: white;
    font-family: inherit;
}

input:focus {
    border-color: var(--accent);
    outline: none;
}

/* Centered Modal Dossier */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.modal-content {
    width: 100%;
    max-width: 750px;
    background: #0b1120;
    border: 2px solid var(--border);
    border-radius: 32px;
    padding: 4rem;
    position: relative;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 1);
    animation: modalSlide 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.modal-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.modal-close-btn:hover {
    background: #ef4444;
    border-color: #f87171;
    transform: rotate(90deg);
}

@keyframes modalSlide {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.category-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 99px;
    font-weight: 800;
    font-size: 0.75rem;
    margin-bottom: 2rem;
}

.challenge-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 3rem;
    font-family: 'Inter', sans-serif;
}

.hint-modal-box {
    margin-bottom: 3rem;
}

.hint-text {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    border: 1px dashed var(--border);
    color: var(--accent);
    font-size: 0.95rem;
}

.submission-box {
    display: flex;
    gap: 1rem;
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
}

.w-full {
    width: 100%;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: #4f46e5;
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s var(--transition);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.message {
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.message.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.message.info {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
}

/* Profile Section */
.profile-card {
    padding: 3rem;
    border-radius: 32px;
    margin-top: 2rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
}

.profile-info h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

/* Analytics Dashboard */
.chart-container {
    height: 200px;
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    padding: 1rem 0;
}

.chart-bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.chart-bar {
    width: 100%;
    background: var(--accent);
    border-radius: 4px 4px 0 0;
    transition: height 1s cubic-bezier(0.2, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 0 15px var(--accent-glow);
}

.chart-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    white-space: nowrap;
}

/* Leaderboard 2.0 Enhancements */
.leaderboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.75rem;
    margin-top: 2rem;
}

.leaderboard-table th {
    text-align: left;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.leaderboard-table tr {
    transition: 0.3s;
}

.leaderboard-table td {
    padding: 1.5rem 1rem;
    background: var(--glass);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.leaderboard-table td:first-child {
    border-left: 1px solid var(--border);
    border-radius: 16px 0 0 16px;
}

.leaderboard-table td:last-child {
    border-right: 1px solid var(--border);
    border-radius: 0 16px 16px 0;
}

.leaderboard-table tr:hover td {
    background: rgba(99, 102, 241, 0.05);
    border-color: var(--accent);
}

/* Row Highlights */
.top-1 td {
    border-color: rgba(251, 191, 36, 0.3) !important;
    background: rgba(251, 191, 36, 0.05) !important;
}

.top-2 td {
    border-color: rgba(226, 232, 240, 0.3) !important;
    background: rgba(226, 232, 240, 0.05) !important;
}

.top-3 td {
    border-color: rgba(217, 119, 6, 0.3) !important;
    background: rgba(217, 119, 6, 0.05) !important;
}




/* Admin Tab System v3.7 */
.admin-tabs {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.admin-tab-btn {
    padding: 0.8rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 8px;
    font-family: inherit;
}

.admin-tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.admin-tab-btn.active {
    color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
}

.admin-tab-content {
    animation: fadeIn 0.3s ease-out;
}

.header-with-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

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

.data-table th {
    text-align: left;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-select,
.admin-textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
}

.admin-select:focus,
.admin-textarea:focus {
    border-color: var(--accent);
    outline: none;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.2s;
}

.btn-danger:hover {
    background: #ef4444;
    color: white;
}

.action-btns {
    display: flex;
    gap: 0.5rem;
}

.admin-content-box {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.scroll-table {
    overflow-x: auto;
}

.challenge-mini.solved {
    border-color: var(--rank-Baron);
    background: rgba(16, 185, 129, 0.08);
    overflow: hidden;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
}

.solved-banner {
    background: linear-gradient(90deg, #059669, #10b981, #059669);
    background-size: 200% auto;
    color: #020617;
    font-size: 0.65rem;
    font-weight: 900;
    text-align: center;
    padding: 0.6rem;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    animation: bannerPulse 3s ease infinite, shimmer 2s linear infinite;
    text-transform: uppercase;
}

@keyframes bannerPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.85;
    }
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

.challenge-mini.solved h3 {
    color: #10b981;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
    margin-top: 1.2rem;
}

/* About Section Premium v3.6 */
.about-hero {
    padding: 3rem 2rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), transparent);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    text-align: center;
}

.about-hero .section-title {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    word-break: break-word;
}

.about-hero p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    line-height: 1.7;
}

@media (max-width: 480px) {
    .about-hero {
        padding: 2rem 1.25rem;
    }
}

/* About cards: always 2 columns for balanced 2x2 layout */
#about-section .container-grid {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
    #about-section .container-grid {
        grid-template-columns: 1fr;
    }
}

.about-card-premium {
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 24px;
    transition: 0.4s var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-card-premium:hover {
    transform: translateY(-8px);
    background: rgba(99, 102, 241, 0.05);
    border-color: var(--accent);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.4));
}

.about-card-premium h3 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.about-card-premium p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 320px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Switch Toggle v4.1 */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border: 1px solid var(--border);
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--accent);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--accent);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.status-active {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
}

.activity-log {
    list-style: none;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.activity-log li {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.activity-log li .timestamp {
    color: var(--text-muted);
    margin-right: 0.5rem;
}

/* Challenge Modal v4.2 */
.modal-header-accent {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
}

.category-tag {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.modal-description-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    line-height: 1.6;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.hint-container {
    margin-bottom: 1.5rem;
}

.hint-text {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--rank-Baron);
    padding: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.input-modern {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 1.25rem;
    border-radius: 12px;
    color: white;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    transition: 0.3s;
}

.input-modern:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}