:root {

    --bg-dark: #09090b;
    --bg-card: #18181b;
    --bg-elevated: #27272a;

    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.15);
    --primary-dim: rgba(255, 255, 255, 0.03);

    --text-main: #fafafa;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;

    --border: rgba(255, 255, 255, 0.08);
    --border-bright: rgba(255, 255, 255, 0.15);


    --container-width: 1200px;
    --header-height: 72px;
    --header-height-mobile: 64px;


    --radius: 12px;
    --radius-sm: 6px;
    --radius-lg: 16px;
    --radius-pill: 9999px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);


    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;

    font-weight: 700;
    letter-spacing: -0.025em;

    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}


.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.text-gradient {
    background: linear-gradient(to right, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.text-gradient-primary {
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}



.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-1 {
    flex: 1;
}

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

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

.justify-between {
    justify-content: space-between;
}

.gap-8 {
    gap: 8px;
}

.gap-10 {
    gap: 10px;
}

.gap-12 {
    gap: 12px;
}

.gap-15 {
    gap: 15px;
}

.gap-16 {
    gap: 16px;
}

.gap-20 {
    gap: 20px;
}

.gap-30 {
    gap: 30px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-15 {
    margin-top: 15px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-24 {
    margin-top: 24px;
}

.mt-32 {
    margin-top: 32px;
}

.mb-8 {
    margin-bottom: 8px;
}

.ml-34 {
    margin-left: 34px;
}

.pt-24 {
    padding-top: 24px;
}

.pt-100 {
    padding-top: 100px;
}

.p-16 {
    padding: 16px;
}

.p-20 {
    padding: 20px;
}

.p-40 {
    padding: 40px;
}

.w-full {
    width: 100%;
}

.max-w-600 {
    max-width: 600px;
}

.nowrap {
    white-space: nowrap;
}

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

.text-sm {
    font-size: 0.8rem;
}

.text-xs {
    font-size: 0.75rem;
}

.font-semibold {
    font-weight: 600;
}

.cursor-pointer {
    cursor: pointer;
}

.border-top {
    border-top: 1px solid var(--border);
}


.feature-box {
    margin-top: 20px;
    padding: 16px;
    background: var(--primary-glow);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.feature-box-label {
    font-weight: 600;
    cursor: pointer;
    color: var(--text-main);
}

.feature-box-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
    margin-left: 34px;
}

.checkbox-lg {
    width: 22px;
    height: 22px;
    accent-color: var(--primary);
    cursor: pointer;
    border-radius: 6px;
}


.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    justify-items: center;
}

.grid-3 .card {
    aspect-ratio: 1 / 1;
    max-width: 280px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.grid-3 .card .feature-icon {
    width: 64px;
    height: 64px;
    font-size: 2rem;
    margin-bottom: 20px;
}

.grid-3 .card h3 {
    margin-bottom: 12px;
}

.grid-3 .card p {
    font-size: 0.9rem;
    line-height: 1.5;
}

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

    .grid-3 .card {
        max-width: 320px;
    }
}

@media (max-width: 768px) {

    .flex-responsive,
    .hero-buttons,
    .flex-center,
    .form-group>div[style*="flex"],
    .header-actions {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .flex-responsive>*,
    .hero-buttons .btn,
    .flex-center .btn,
    .form-group .btn,
    .form-group .form-input,
    .modal-content .btn {
        width: 100% !important;
        text-align: center;
    }


    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .leaderboard-table td:first-child {
        font-size: 1rem !important;
        width: 60px !important;
    }
}


.card,
.glass-panel {
    background: rgba(24, 24, 27, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover,
.glass-panel:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-premium);
    border-color: var(--border-bright);
    background: rgba(24, 24, 27, 0.85);
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;

    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    border: 1px solid var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--border-bright);
    color: var(--text-main);
}

.btn-danger-outline {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.btn-danger-outline:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}


.btn:focus-visible,
.form-input:focus-visible,
.search-input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}






.hero-container {
    padding-top: 60px;
    padding-bottom: 40px;
    position: relative;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
    line-height: 1.1;
}


@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
}


.card-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header-lg {
    margin-bottom: 60px;
}

.section-header-lg h2 {
    font-size: 2.25rem;
    margin-bottom: 16px;
}

.section-header-lg p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.footer-flush {
    margin-top: 0;
}

.footer-tagline {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 48px auto;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.hero-buttons .btn {
    padding: 14px 36px;
    font-size: 1.1rem;
    border-radius: 14px;
}

.accent-glow {
    position: relative;
    z-index: 1;
}

.accent-glow::after {
    content: '';
    position: absolute;
    inset: -4px -12px;
    background: var(--primary-glow);
    filter: blur(20px);
    z-index: -1;
    border-radius: 50%;
    opacity: 0.8;
}


.stats-bar {
    margin-top: 80px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 100px;
}

.stat-value-sm {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.stat-label-sm {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}


.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-muted);
}




.section {
    padding: 40px 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.stat-card {
    padding: 32px;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    font-family: 'Space Grotesk', sans-serif;
}

.stat-label {
    color: var(--text-muted);
    font-size: 1rem;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(9, 9, 11, 0.8);

    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}



header .container {
    height: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

header .container .logo {
    justify-self: start;
}

header .container nav {
    justify-self: center;
}

header .container .header-actions {
    justify-self: end;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

.logo img {
    width: 32px;
    height: 32px;

}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}




.btn-header-install {
    padding: 8px 16px;
    font-size: 0.85rem;
}

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

    header .container nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-dark);
        border-bottom: 1px solid var(--border);
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    header .container nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    header .container .header-actions {
        display: none;
    }
}


footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 40px 20px;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}



.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text-muted);
}

.footer-col a:hover {
    color: var(--primary);
}


.table-container {
    margin-top: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

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

th,
td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--bg-elevated);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    background: transparent;
    color: var(--text-muted);
    font-size: 0.95rem;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--text-main);
}

.leaderboard-table tr,
#catalogTable tr {
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}

#catalogTable tbody tr:hover {
    background-color: rgba(99, 102, 241, 0.04) !important;
}


.filters-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.form-input,
.search-input {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-main);
    font-family: inherit;
    width: 100%;
    transition: all 0.3s ease;
}

.form-input:focus,
.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-dim);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}


@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.reveal-init {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-fade-in {
    animation: fade-in-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}


.dataTables_wrapper {
    margin-top: 24px;
    width: 100%;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 24px;
    color: var(--text-muted);
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-main);
    margin-left: 8px;
    outline: none;
    transition: all 0.2s;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-dim);
}


.dataTables_wrapper .dataTables_filter {
    float: right;
}

.dataTables_wrapper .dataTables_length {
    float: left;
}


.dataTables_wrapper::after {
    content: "";
    display: table;
    clear: both;
}


@media (max-width: 768px) {

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        float: none;
        text-align: center;
        margin-bottom: 16px;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
        max-width: 280px;
        margin-left: 0;
        margin-top: 8px;
    }

    .dataTables_wrapper .dataTables_length select {
        margin-left: 0;
        margin-top: 8px;
    }

    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        float: none;
        text-align: center;
        margin-top: 16px;
    }

    .dataTables_wrapper .dataTables_paginate {
        margin-top: 12px;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 8px 12px !important;
        font-size: 0.8rem;
    }
}


.table-container {
    background: transparent;
    border: none;
    box-shadow: none;
}

table.dataTable {
    width: 100% !important;
    border-collapse: collapse !important;
    white-space: normal !important;

    table-layout: auto;

}

table.dataTable.no-footer {
    border-bottom: 1px solid var(--border);
}

table.dataTable thead th,
table.dataTable thead td {
    background: var(--bg-elevated) !important;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 16px 24px !important;
    border-bottom: 1px solid var(--border) !important;
}

table.dataTable tbody th,
table.dataTable tbody td {
    padding: 16px 24px !important;
    background: transparent !important;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border) !important;
}

table.dataTable.display tbody tr.odd>.sorting_1,
table.dataTable.order-column.stripe tbody tr.odd>.sorting_1 {
    background-color: transparent !important;
}

table.dataTable.display tbody tr.even>.sorting_1,
table.dataTable.order-column.stripe tbody tr.even>.sorting_1 {
    background-color: transparent !important;
}

table.dataTable tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

table.dataTable tbody tr:hover>.sorting_1 {
    background-color: transparent !important;
}


table.dataTable tbody td {
    white-space: normal !important;
    max-width: 300px;
    word-wrap: break-word;
}




.episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 8px;
}

.episode-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.2s;
}

.episode-chip:hover {
    border-color: var(--primary);
    color: var(--text-main);
    background: var(--primary-dim);
}

.episode-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
}


.rank-1 {
    color: #f59e0b;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}



.rank-2 {

    color: #94a3b8;
    text-shadow: 0 0 10px rgba(148, 163, 184, 0.3);
}


.rank-3 {
    color: #b45309;
    text-shadow: 0 0 10px rgba(180, 83, 9, 0.3);
}



.tab-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--text-main);
}

.tab-btn.active {
    background: var(--primary-dim);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.user-cell {
    font-family: 'Space Grotesk', 'Space Mono', monospace;
    color: var(--primary);
    opacity: 0.9;
}


.badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(48, 209, 88, 0.2);
    color: #30d158;
}

.badge-danger {
    background: rgba(255, 69, 58, 0.2);
    color: #ff453a;
}


.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-info {
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary-dim);
}

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





.tabs-premium {
    position: relative;
    display: flex;
    gap: 8px;
    padding: 4px;
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border);
    margin-bottom: 40px;
    width: max-content;
}

.tab-btn-premium {
    z-index: 1;
    position: relative;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    outline: none;
}

.tab-btn-premium.active {
    color: var(--text-main);
}

.tab-indicator {
    position: absolute;
    height: calc(100% - 8px);
    background: var(--bg-elevated);
    border: 1px solid var(--border-bright);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.chk-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.chk-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-main);
    font-size: 0.95rem;
}

.chk-item input {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}


.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}



.modal-content {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    width: 95%;
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    position: relative;
    transform: scale(0.95);
    animation: fade-in-up 0.3s ease-out forwards;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.modal-header h3 {
    word-break: break-word;

    max-width: 90%;
    line-height: 1.3;
}

.modal-close {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--primary);
}




.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 10px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    :root {
        --header-height: var(--header-height-mobile);
    }

    .container {
        padding: 0 20px;
    }

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

    .nav-links,
    .header-actions {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }


    #mainNav.open {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        z-index: 1000;
        padding-top: 100px;
    }

    #mainNav.open .nav-links {
        display: flex;
        flex-direction: column;
        gap: 24px;
        text-align: center;
        padding: 0 40px;
    }

    #mainNav.open .nav-links a {
        font-size: 1.5rem;
        display: block;
    }


    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
    }
}


.hero {
    padding: 40px 0 40px;
    text-align: center;
}

.hero-title {
    font-size: 2.25rem !important;
}

.hero-subtitle {
    font-size: 1rem !important;
    margin: 0 auto 30px auto;
}

.hero-buttons {
    justify-content: center;
}

.hero-visual {
    display: none;
}


@media (max-width: 768px) {


    .stats-bar {
        gap: 20px !important;
        flex-direction: column;
        align-items: center;
    }

    #activity-ticker {
        margin-top: var(--header-height-mobile);
        padding: 8px 0;
    }

    #ticker-content {
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}


@media (max-width: 600px) {
    .tabs-premium {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .tabs-premium::-webkit-scrollbar {
        display: none;
    }

    .tab-btn-premium {
        padding: 8px 16px;
        font-size: 0.85rem;
        white-space: nowrap;
    }


    .leaderboard-table th,
    .leaderboard-table td {
        padding: 10px 8px !important;
        font-size: 0.8rem !important;
    }


    .leaderboard-table th:nth-child(4),
    .leaderboard-table td:nth-child(4),
    .leaderboard-table th:nth-child(5),
    .leaderboard-table td:nth-child(5) {
        display: none;
    }

    .leaderboard-table th:nth-child(1),
    .leaderboard-table td:nth-child(1) {
        width: 50px !important;
    }

    .user-cell {
        font-size: 0.75rem;
    }
}


.section-header h2 {
    font-size: 1.75rem !important;
}

.section {
    padding: 60px 0;
}


.filters-bar {
    flex-direction: column;
}


.modal-content {
    padding: 20px;
    width: 90%;
}


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

table.dataTable thead th,
table.dataTable tbody td {
    padding: 12px 16px !important;
    font-size: 0.85rem;
}


.skeleton {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.03) 25%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite ease-in-out;
    border-radius: 4px;
    display: inline-block;
    min-height: 1.25em;
    width: 100%;
}

.skeleton-text {
    width: 80%;
}

.skeleton-title {
    width: 40%;
    height: 1.5rem;
    margin-bottom: 0.5rem;
}

.skeleton-chip {
    width: 60px;
    height: 24px;
    border-radius: 6px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}


#activity-ticker {
    margin-top: var(--header-height);
    padding: 10px 0;
    background: rgba(24, 24, 27, 0.8);
    border-bottom: 1px solid var(--border);
}

.ticker-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.85rem;
}

.ticker-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: pulse 2s infinite;
}

.ticker-label {
    color: #22c55e;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

#ticker-content {
    color: var(--text-muted);
    font-size: 0.85rem;
}


.submit-meta-card {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.03);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.poster-wrapper {
    width: 90px;
    flex-shrink: 0;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-md);
    aspect-ratio: 2/3;
}

.poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.d-none {
    display: none !important;
}


@media (max-width: 600px) {
    .submit-meta-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .poster-wrapper {
        width: 120px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .modal-content {
        padding: 20px;
        width: 95%;
        max-height: none;
        height: auto;
        max-height: calc(100vh - 40px);
        margin: 20px auto;
        overflow-y: auto;
    }

    .modal {
        align-items: flex-start;
        overflow-y: auto;
        padding: 0;
    }

    #episode-inputs {
        justify-content: center;
    }
}


#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    max-width: 380px;
}

.toast-visible {
    transform: translateX(0);
    opacity: 1;
}

.toast-hiding {
    transform: translateX(120%);
    opacity: 0;
}

.toast-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.toast-warning .toast-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.toast-info .toast-icon {
    background: var(--primary-glow);
    color: var(--primary);
}

.toast-message {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.toast-close:hover {
    color: var(--text-main);
}


.btn {
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.97);
}

.btn-loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
}

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


.card:hover,
.glass-panel:hover {
    box-shadow:
        var(--shadow-premium),
        0 0 30px rgba(99, 102, 241, 0.08);
}


.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
}

.rank-badge-1 {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.rank-badge-2 {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    color: #000;
    box-shadow: 0 0 12px rgba(148, 163, 184, 0.4);
}

.rank-badge-3 {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fff;
    box-shadow: 0 0 12px rgba(180, 83, 9, 0.4);
}


.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: 0.9rem;
}


.modal.active {
    display: flex;
}

body.modal-open {
    overflow: hidden;
}


.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content:hover {
    transform: none;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 32px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.15rem;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.legal-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.7;
}

.legal-content ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-content ul li {
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-content strong {
    color: var(--text-main);
}

.legal-content a {
    color: var(--primary);
}

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


.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.profile-info h2 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
}

.profile-info p {
    color: var(--text-muted);
    margin: 4px 0 0;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-grid .stat-card {
    border-radius: 16px;
    padding: 20px;
}

.stat-grid .stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), #a855f7);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-grid .stat-card .label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.badge.earned {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    border-color: var(--primary);
}

.badge.locked {
    opacity: 0.4;
}

.badge-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.badge-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #a855f7);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.contribution-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.breakdown-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.breakdown-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.breakdown-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.breakdown-label {
    min-width: 80px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breakdown-value {
    min-width: 40px;
    text-align: right;
    font-weight: 600;
    font-size: 0.85rem;
}

.stats-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.stats-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.stats-row .label {
    color: var(--text-muted);
}

.stats-row .value {
    font-weight: 600;
}

.submission-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .contribution-breakdown {
        grid-template-columns: 1fr;
    }
}


.status-panel {
    padding: 24px !important;
    background: rgba(24, 24, 27, 0.4) !important;
}

.status-panel-header {
    margin-bottom: 24px;
}

.status-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.status-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s ease;
}

.status-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-bright);
}

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

.status-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #71717a;
}

.status-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.status-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.status-latency {
    font-size: 0.75rem;
    color: var(--text-dim);
}


.status-online .status-indicator {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.status-online .status-label {
    color: #10b981;
}

.status-offline .status-indicator {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.status-offline .status-label {
    color: #ef4444;
}

.status-degraded .status-indicator {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.status-degraded .status-label {
    color: #f59e0b;
}

.status-blocked .status-indicator {
    background: #8b5cf6;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}

.status-blocked .status-label {
    color: #8b5cf6;
}

.status-loading {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-dim);
    padding: 20px;
}

.announcement-banner {
    position: relative;
    padding: 12px 48px 12px 20px;
    border-radius: 0;
    margin-top: var(--header-height);
    border-bottom: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

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

.announcement-banner.hidden {
    display: none;
}

.banner-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.banner-message {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.banner-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
    line-height: 1;
    transition: opacity 0.2s;
}

.banner-close:hover {
    opacity: 1;
}

.banner-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.banner-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.banner-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.banner-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

@media (max-width: 768px) {
    .announcement-banner {
        padding: 10px 40px 10px 16px;
    }

    .banner-message {
        font-size: 0.8rem;
    }
}


.setup-guide-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: modal-fade-in 0.3s ease;
}

.setup-guide-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes modal-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-container {
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    margin: 20px;
    display: flex;
    flex-direction: column;
    animation: modal-slide-up 0.3s ease;
}

@keyframes modal-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: rgba(24, 24, 27, 0.95);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
    line-height: 1;
}

.modal-close:hover {
    background: var(--bg-elevated);
    color: var(--text-main);
}

.modal-body {
    background: rgba(24, 24, 27, 0.95);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 0;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 55vh;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    object-fit: contain;
}

.carousel-caption {
    margin-top: 20px;
    text-align: center;
}

.carousel-caption .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 12px;
}

.carousel-caption .step-text {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 500;
}

.carousel-caption .step-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 6px;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(39, 39, 42, 0.5);
    border-top: 1px solid var(--border);
}

.carousel-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.carousel-btn:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.05);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.carousel-dot:hover:not(.active) {
    background: var(--text-dim);
}

.btn-guide {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
}

.btn-guide:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.25) 100%);
    border-color: var(--primary);
    color: var(--text-main);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .modal-container {
        margin: 10px;
        max-height: 95vh;
    }

    .carousel-slide {
        padding: 16px;
    }

    .carousel-slide img {
        max-height: 45vh;
    }

    .carousel-controls {
        padding: 16px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }
}