:root {
    --bg0: #060b14;
    --bg1: #0a1221;
    --bg2: #0e1a2b;
    --card: rgba(14, 24, 39, 0.72);
    --card-strong: rgba(11, 20, 34, 0.9);
    --card-border: rgba(255, 255, 255, 0.14);
    --text: #eef3fb;
    --muted: #9ba8bf;
    --accent: #f28a2e;
    --accent-2: #ffb366;
    --radius-lg: 22px;
    --radius-md: 14px;
    --shadow-lg: none;
    --shadow-md: none;
    --blur: blur(12px);
}

.glass-card {
    background: linear-gradient(180deg, rgba(14, 24, 39, 0.75), rgba(9, 17, 30, 0.8));
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    backdrop-filter: var(--blur);
    box-shadow: var(--shadow-md);
}

.glass-card--hero {
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-image:
        linear-gradient(180deg, rgba(8, 18, 30, 0.66), rgba(8, 18, 30, 0.52)),
        var(--hero-bg);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    box-shadow: var(--shadow-lg);
}

.section-title {
    color: #f8fbff;
    font-weight: 800;
}

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

body.theme-dark-glass {
    font-family: "Cairo", "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif !important;
    font-weight: 500;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    color: var(--text);
    background:
        radial-gradient(55rem 30rem at 88% -10%, rgba(242, 138, 46, 0.2), transparent 56%),
        radial-gradient(70rem 40rem at 0% 5%, rgba(69, 111, 255, 0.16), transparent 52%),
        linear-gradient(180deg, var(--bg0), var(--bg1) 48%, var(--bg2));
    min-height: 100vh;
}

html[dir="rtl"] body.theme-dark-glass {
    font-family: "Cairo", "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif !important;
}

/* Enforce the same Arabic typography used in dashboard across public UI */
html[dir="rtl"] body.theme-dark-glass,
html[dir="rtl"] body.theme-dark-glass p,
html[dir="rtl"] body.theme-dark-glass a,
html[dir="rtl"] body.theme-dark-glass span,
html[dir="rtl"] body.theme-dark-glass li,
html[dir="rtl"] body.theme-dark-glass label,
html[dir="rtl"] body.theme-dark-glass small,
html[dir="rtl"] body.theme-dark-glass strong,
html[dir="rtl"] body.theme-dark-glass em,
html[dir="rtl"] body.theme-dark-glass button,
html[dir="rtl"] body.theme-dark-glass input,
html[dir="rtl"] body.theme-dark-glass textarea,
html[dir="rtl"] body.theme-dark-glass select,
html[dir="rtl"] body.theme-dark-glass th,
html[dir="rtl"] body.theme-dark-glass td {
    font-family: "Cairo", "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif !important;
}

body.theme-dark-glass h1,
body.theme-dark-glass h2,
body.theme-dark-glass h3,
body.theme-dark-glass h4,
body.theme-dark-glass h5,
body.theme-dark-glass h6,
body.theme-dark-glass .section-title {
    font-family: "Cairo", "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
    font-weight: 800;
    letter-spacing: 0;
}

.theme-dark-glass .public-shell {
    background: transparent;
}

.theme-dark-glass .container {
    max-width: 1240px;
}

.theme-dark-glass .site-header {
    background: rgba(8, 14, 26, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: var(--blur);
}

.theme-dark-glass .site-header__bar {
    margin-inline: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    background: linear-gradient(180deg, rgba(15, 27, 44, 0.7), rgba(9, 18, 30, 0.68));
    box-shadow: var(--shadow-md);
}

.theme-dark-glass .site-brand__name,
.theme-dark-glass .site-nav__link,
.theme-dark-glass .utils-link,
.theme-dark-glass .utils-lang a {
    color: var(--text);
}

.theme-dark-glass .site-nav__link {
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    border: 1px solid transparent;
    opacity: 0.88;
}

.theme-dark-glass .site-nav__link:hover,
.theme-dark-glass .utils-link:hover {
    opacity: 1;
    border-color: rgba(242, 138, 46, 0.3);
    background: rgba(242, 138, 46, 0.1);
}

.theme-dark-glass .utils-pill,
.theme-dark-glass .site-mobile__panel {
    background: rgba(13, 22, 37, 0.72);
    border: 1px solid var(--card-border);
    border-radius: 999px;
    backdrop-filter: var(--blur);
}

.theme-dark-glass .site-mobile__panel {
    border-radius: var(--radius-md);
}

.theme-dark-glass .utils-lang-icons {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.theme-dark-glass .lang-chip {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.theme-dark-glass .lang-chip:hover {
    background: rgba(242, 138, 46, 0.14);
    border-color: rgba(242, 138, 46, 0.45);
}

.theme-dark-glass .lang-chip.is-active {
    background: rgba(242, 138, 46, 0.2);
    border-color: rgba(242, 138, 46, 0.58);
    box-shadow: 0 6px 16px rgba(242, 138, 46, 0.2);
}

.theme-dark-glass .lang-flag {
    font-size: 0.95rem;
}

.theme-dark-glass .hero {
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(8, 18, 30, 0.64);
    box-shadow: var(--shadow-lg);
}

.theme-dark-glass .hero-overlay::before {
    background: linear-gradient(180deg, rgba(6, 12, 20, 0.78) 0%, rgba(6, 12, 20, 0.44) 58%, rgba(6, 12, 20, 0.24) 100%);
}

.theme-dark-glass .hero-title-accent {
    color: var(--accent-2);
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
}

.theme-dark-glass .hero-subtitle,
.theme-dark-glass .muted {
    color: var(--muted);
}

.theme-dark-glass .card,
.theme-dark-glass .step-card,
.theme-dark-glass .modal-card,
.theme-dark-glass .site-footer,
.theme-dark-glass .cookie-banner,
.theme-dark-glass .sponsor-strip {
    background: linear-gradient(180deg, rgba(14, 24, 39, 0.75), rgba(9, 17, 30, 0.8));
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    backdrop-filter: var(--blur);
    box-shadow: var(--shadow-md);
    color: var(--text);
}

.theme-dark-glass .section {
    margin-top: 1.6rem;
}

.theme-dark-glass .section-header h2,
.theme-dark-glass .feed-header h3,
.theme-dark-glass .card h3,
.theme-dark-glass .card h2 {
    color: #f8fbff;
}

.theme-dark-glass .step-icon,
.theme-dark-glass .info-pill,
.theme-dark-glass .chip,
.theme-dark-glass .badge,
.theme-dark-glass .rank-badge,
.theme-dark-glass .result-pill,
.theme-dark-glass .comment-rank {
    background: rgba(242, 138, 46, 0.14);
    border: 1px solid rgba(242, 138, 46, 0.3);
    color: var(--accent-2);
    border-radius: 999px;
}

.theme-dark-glass .steps-strip {
    margin-top: 1.25rem;
}

.theme-dark-glass .steps-grid {
    gap: 0.68rem;
}

.theme-dark-glass .step-card {
    padding: 0.62rem 0.88rem;
    gap: 0.46rem;
}

.theme-dark-glass .step-icon {
    width: 24px;
    height: 24px;
    border-radius: 9px;
}

.theme-dark-glass .step-icon svg {
    width: 12px;
    height: 12px;
}

.theme-dark-glass .step-title {
    font-size: 0.86rem;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0;
}

.theme-dark-glass .step-desc {
    font-size: 0.76rem;
    line-height: 1.55;
    color: rgba(219, 228, 243, 0.82);
}

.theme-dark-glass .btn-accent,
.theme-dark-glass .btn-primary {
    background: linear-gradient(135deg, #ff9a3d, #f07f20);
    color: #101827;
    border: 1px solid rgba(255, 179, 107, 0.35);
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(242, 138, 46, 0.28);
    font-weight: 700;
}

.theme-dark-glass .btn-accent:hover,
.theme-dark-glass .btn-primary:hover {
    filter: brightness(1.06);
}

.theme-dark-glass .btn-primary {
    min-height: 44px;
}

.theme-dark-glass .btn-outline,
.theme-dark-glass .btn-ghost {
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 999px;
}

.theme-dark-glass .btn-outline:hover,
.theme-dark-glass .btn-ghost:hover {
    border-color: rgba(242, 138, 46, 0.4);
    background: rgba(242, 138, 46, 0.09);
}

.theme-dark-glass .pill,
.theme-dark-glass .filter-pills .pill {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

/* Notification preferences checkbox states */
.theme-dark-glass .notify-row {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 0.45rem 0.7rem;
}

.theme-dark-glass .notify-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 0.4rem;
    border: 1.5px solid rgba(255, 255, 255, 0.38);
    background: rgba(7, 18, 30, 0.85);
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
}

.theme-dark-glass .notify-checkbox::before {
    content: "";
    width: 0.6rem;
    height: 0.6rem;
    clip-path: polygon(14% 52%, 0 67%, 39% 100%, 100% 27%, 84% 12%, 38% 67%);
    transform: scale(0);
    transform-origin: center;
    background: #091423;
    transition: transform 0.15s ease;
}

.theme-dark-glass .notify-checkbox:checked {
    background: linear-gradient(135deg, #ffb366, #f28a2e);
    border-color: rgba(255, 187, 117, 0.95);
    box-shadow: 0 0 0 3px rgba(242, 138, 46, 0.25);
}

.theme-dark-glass .notify-checkbox:checked::before {
    transform: scale(1);
}

.theme-dark-glass .notify-checkbox:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(242, 138, 46, 0.3);
}

/* Public member profile enhancements */
.theme-dark-glass .public-member-shell {
    display: grid;
    gap: 1rem;
}

.theme-dark-glass .profile-banner--enhanced {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.theme-dark-glass .profile-banner-inner--enhanced {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
}

.theme-dark-glass .profile-main-id h1 {
    margin: 0;
    font-size: clamp(1.15rem, 2.4vw, 1.7rem);
    color: #f7fbff;
}

.theme-dark-glass .profile-name-row {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.theme-dark-glass .profile-badges-line {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.theme-dark-glass .member-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: #eaf2ff;
    padding: 0.22rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.theme-dark-glass .member-pill--alt {
    border-color: rgba(242, 138, 46, 0.48);
    color: #ffc98f;
    background: rgba(242, 138, 46, 0.12);
}

.theme-dark-glass .member-pill--solid {
    border-color: rgba(242, 138, 46, 0.45);
    color: #fff0dd;
    background: linear-gradient(135deg, rgba(242, 138, 46, 0.35), rgba(242, 138, 46, 0.2));
}

.theme-dark-glass .verified-ball-badge {
    width: 18px;
    height: 18px;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    outline: 0 !important;
    background: radial-gradient(circle at 30% 25%, #4da3ff 0%, #1d9bf0 72%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    isolation: isolate;
    clip-path: polygon(
        50% 0%,
        58% 8%,
        68% 5%,
        72% 14%,
        82% 14%,
        82% 24%,
        92% 28%,
        88% 38%,
        96% 46%,
        88% 54%,
        92% 64%,
        82% 68%,
        82% 78%,
        72% 78%,
        68% 88%,
        58% 84%,
        50% 94%,
        42% 84%,
        32% 88%,
        28% 78%,
        18% 78%,
        18% 68%,
        8% 64%,
        12% 54%,
        4% 46%,
        12% 38%,
        8% 28%,
        18% 24%,
        18% 14%,
        28% 14%,
        32% 5%,
        42% 8%
    );
}

.theme-dark-glass .verified-ball-badge--standard {
    background: radial-gradient(circle at 30% 25%, #5daeff 0%, #1d9bf0 72%);
    border-color: rgba(93, 174, 255, 0.48);
}

.theme-dark-glass .verified-ball-badge--premium {
    background: radial-gradient(circle at 30% 25%, #ffbe75 0%, #f28a2e 72%);
    border-color: rgba(255, 190, 117, 0.52);
}

.theme-dark-glass .verified-ball-badge--official {
    background: radial-gradient(circle at 30% 25%, #7fde84 0%, #22b14c 72%);
    border-color: rgba(127, 222, 132, 0.52);
}

.theme-dark-glass .verified-ball-badge::before {
    content: "\2713";
    color: #fffdf8;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    text-shadow: none;
}

.theme-dark-glass .profile-share-actions {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.theme-dark-glass .public-profile-quick-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.theme-dark-glass .public-profile-quick-meta--with-team {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.theme-dark-glass .quick-meta-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 0.65rem 0.85rem;
}

.theme-dark-glass .quick-meta-card small {
    display: block;
    color: #9ba8bf;
    margin-bottom: 0.2rem;
}

.theme-dark-glass .quick-meta-card strong {
    color: #f7fbff;
    font-size: 0.95rem;
}

.theme-dark-glass .quick-meta-card--team {
    display: grid;
    gap: 0.3rem;
    justify-items: center;
    align-content: center;
    text-align: center;
}

.theme-dark-glass .quick-meta-team-logo-wrap {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.theme-dark-glass .quick-meta-team-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
}

.theme-dark-glass .quick-meta-card--team strong {
    font-size: 0.86rem;
    line-height: 1.25;
}

.theme-dark-glass .social-links--enhanced {
    justify-content: flex-start;
}

.theme-dark-glass .public-profile-badges-wrap {
    padding: 0.9rem;
}

.theme-dark-glass .public-profile-badges-wrap h3 {
    margin: 0 0 0.65rem;
    font-size: 1rem;
}

.theme-dark-glass .public-profile-badges-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.theme-dark-glass .best-prediction-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1rem;
}

.theme-dark-glass .public-profile-mini-footer {
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.9rem 1rem;
}

.theme-dark-glass .public-profile-mini-footer strong {
    color: #f7fbff;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .theme-dark-glass .profile-banner-inner--enhanced {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .theme-dark-glass .profile-avatar {
        margin: 0 auto;
    }

    .theme-dark-glass .profile-share-actions {
        justify-content: center;
    }

    .theme-dark-glass .public-profile-quick-meta {
        grid-template-columns: 1fr;
    }

    .theme-dark-glass .public-profile-mini-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .theme-dark-glass .public-profile-mini-footer .btn-accent {
        text-align: center;
    }
}

.theme-dark-glass .pill.is-active,
.theme-dark-glass .pill--active,
.theme-dark-glass .filter-pills .pill.is-active {
    border-color: rgba(242, 138, 46, 0.45);
    background: rgba(242, 138, 46, 0.15);
    color: #ffd6aa;
    box-shadow: 0 8px 22px rgba(242, 138, 46, 0.2);
}

.theme-dark-glass .stat-card {
    border-radius: 18px;
    border: 1px solid var(--card-border);
    background: linear-gradient(180deg, rgba(18, 30, 46, 0.72), rgba(11, 19, 32, 0.75));
    box-shadow: var(--shadow-md);
}

.theme-dark-glass .match-card {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(180deg, rgba(14, 24, 39, 0.74), rgba(10, 18, 31, 0.84));
}

.theme-dark-glass .table-dark,
.theme-dark-glass .matches-table {
    background: rgba(9, 16, 28, 0.55);
    border-radius: 14px;
    overflow: hidden;
}

.theme-dark-glass input,
.theme-dark-glass textarea,
.theme-dark-glass select {
    background: rgba(6, 12, 22, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--text);
    border-radius: var(--radius-md);
}

.theme-dark-glass input::placeholder,
.theme-dark-glass textarea::placeholder {
    color: rgba(194, 206, 225, 0.72);
}

.theme-dark-glass input:focus,
.theme-dark-glass textarea:focus,
.theme-dark-glass select:focus {
    outline: none;
    border-color: rgba(242, 138, 46, 0.65);
    box-shadow: 0 0 0 4px rgba(242, 138, 46, 0.18);
}

.theme-dark-glass .challenge-card,
.theme-dark-glass .match-card,
.theme-dark-glass .ranking-card,
.theme-dark-glass .activity-highlight,
.theme-dark-glass .activity-list,
.theme-dark-glass .story-card,
.theme-dark-glass .news-card {
    border-radius: 20px;
}

.theme-dark-glass .team-row .vs {
    color: var(--accent-2);
    font-weight: 800;
}

.theme-dark-glass .table,
.theme-dark-glass table,
.theme-dark-glass .table-dark {
    background: rgba(9, 16, 28, 0.55);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.12);
}

.theme-dark-glass th,
.theme-dark-glass td {
    border-color: rgba(255, 255, 255, 0.11) !important;
}

.theme-dark-glass .alert {
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
}

.theme-dark-glass .alert.danger {
    border-color: rgba(248, 113, 113, 0.46);
    background: rgba(248, 113, 113, 0.16);
    color: #ffd7d7;
}

/* Team page: clean legal-safe layout */
.theme-dark-glass .club-hero--clean {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.theme-dark-glass .club-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.theme-dark-glass .club-identity {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.theme-dark-glass .club-logo--identity {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.3rem;
}

.theme-dark-glass .club-identity-copy {
    display: grid;
    gap: 0.25rem;
}

.theme-dark-glass .club-title {
    margin: 0;
    font-size: clamp(1.5rem, 3.2vw, 2rem);
}

.theme-dark-glass .club-stats--hero {
    margin-top: 0.3rem;
}

.theme-dark-glass .club-grid--clean {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: stretch;
}

.theme-dark-glass .club-actions-head h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.theme-dark-glass .club-action-row .fan-action {
    flex: 1 1 160px;
    min-height: 44px;
}

.theme-dark-glass .club-source-note {
    margin-top: 1rem;
    border-style: dashed;
}

.theme-dark-glass .club-source-note p {
    margin: 0;
}

.theme-dark-glass .club-source-note--cta {
    border-style: solid;
    border-color: rgba(242, 138, 46, 0.32);
    background: linear-gradient(90deg, rgba(242, 138, 46, 0.12), rgba(9, 18, 31, 0.86));
}

.theme-dark-glass .club-source-note-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.theme-dark-glass .club-source-note-cta .btn-accent {
    flex: 0 0 auto;
    min-height: 40px;
    padding-inline: 1rem;
}

.theme-dark-glass .club-latest-challenges {
    margin-top: 1rem;
    display: grid;
    gap: 0.9rem;
}

.theme-dark-glass .club-latest-challenges__head h3 {
    margin: 0;
    font-size: 1rem;
}

.theme-dark-glass .club-latest-challenges__list {
    display: grid;
    gap: 0.65rem;
}

.theme-dark-glass .club-latest-challenge-item {
    display: grid;
    gap: 0.45rem;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.theme-dark-glass .club-latest-challenge-item__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.55rem;
}

.theme-dark-glass .club-latest-challenge-item__title {
    font-size: 0.95rem;
    line-height: 1.45;
    color: #f3f7ff;
}

.theme-dark-glass .club-latest-challenge-item .btn-outline {
    justify-self: start;
    min-height: 36px;
    padding-inline: 0.9rem;
}

.theme-dark-glass .club-latest-challenges__foot {
    display: flex;
    justify-content: flex-start;
}

html[dir="rtl"] .theme-dark-glass .club-identity {
    text-align: right;
}

@media (max-width: 900px) {
    .theme-dark-glass .club-grid--clean {
        grid-template-columns: 1fr;
    }

    .theme-dark-glass .club-logo--identity {
        width: 62px;
        height: 62px;
    }

    .theme-dark-glass .club-source-note-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .theme-dark-glass .club-source-note-cta .btn-accent {
        width: 100%;
        text-align: center;
    }

    .theme-dark-glass .club-latest-challenge-item .btn-outline,
    .theme-dark-glass .club-latest-challenges__foot .btn-accent {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

.theme-dark-glass .site-footer {
    margin: 1.5rem 1rem 1rem;
    border-radius: 24px;
    overflow: hidden;
}

.theme-dark-glass .footer-links h4 {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .theme-dark-glass .site-footer {
        margin: 1rem 0.5rem 0.75rem;
        border-radius: 16px;
    }
}

.theme-dark-glass .footer-links a,
.theme-dark-glass .footer-copy,
.theme-dark-glass .footer-rights,
.theme-dark-glass .link {
    color: var(--muted);
}

.theme-dark-glass .footer-links a:hover,
.theme-dark-glass .link:hover {
    color: var(--accent-2);
}

.theme-dark-glass .social-link {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.theme-dark-glass .social-link:hover {
    color: #1f2937;
    background: linear-gradient(135deg, #ffb366, #f28a2e);
    border-color: rgba(242, 138, 46, 0.55);
}

.theme-dark-glass .auth-shell {
    min-height: calc(100vh - 250px);
    display: grid;
    place-items: center;
    padding: 1.2rem 0.25rem;
}

.theme-dark-glass .auth-card {
    width: min(100%, 540px);
    border-radius: 24px;
}

.theme-dark-glass .register-consent {
    padding: 0.9rem 1rem;
    border-radius: 14px;
    margin-top: 0.2rem;
}

.theme-dark-glass .register-consent__check {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.7;
    cursor: pointer;
}

.theme-dark-glass .register-consent__check input[type="checkbox"] {
    width: 1.05rem !important;
    height: 1.05rem !important;
    min-width: 1.05rem;
    min-height: 1.05rem;
    flex: 0 0 1.05rem;
    display: inline-block;
    margin-top: 0.2rem;
    accent-color: var(--accent);
}

.theme-dark-glass .register-consent__check span {
    flex: 1 1 auto;
    display: block;
    word-break: normal;
    overflow-wrap: anywhere;
}

.theme-dark-glass .register-consent__links {
    margin-top: 0.55rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    color: var(--muted);
    font-size: 0.84rem;
}

.theme-dark-glass .register-consent__links a {
    color: var(--accent-2);
}

.theme-dark-glass .register-consent__links a:hover {
    color: #ffd09a;
}

.theme-dark-glass .modal-backdrop {
    background: rgba(2, 6, 16, 0.62);
    backdrop-filter: blur(4px);
}

/* Global no-shadow mode for public dark glass theme */
.theme-dark-glass *,
.theme-dark-glass *::before,
.theme-dark-glass *::after {
    box-shadow: none !important;
    text-shadow: none !important;
}

.theme-dark-glass .pagination,
.theme-dark-glass .pagination nav,
.theme-dark-glass .pagination span,
.theme-dark-glass nav[role="navigation"] span,
.theme-dark-glass nav[role="navigation"] a {
    color: var(--text);
}

.theme-dark-glass .pagination a:hover,
.theme-dark-glass nav[role="navigation"] a:hover {
    background: rgba(242, 138, 46, 0.12);
}

@media (max-width: 1024px) {
    .theme-dark-glass .site-header__bar {
        margin-inline: 10px;
        border-radius: 16px;
    }

    .theme-dark-glass .hero {
        border-radius: 18px;
        padding: 1.4rem;
    }

    .theme-dark-glass .card,
    .theme-dark-glass .step-card,
    .theme-dark-glass .site-footer {
        border-radius: 16px;
    }
}

@media (max-width: 640px) {
    .theme-dark-glass .container {
        padding-inline: 10px;
    }

    .theme-dark-glass .btn-accent,
    .theme-dark-glass .btn-outline {
        min-height: 44px;
    }

    .theme-dark-glass .step-card {
        padding: 0.65rem 0.8rem;
    }

    .theme-dark-glass .step-title {
        font-size: 0.82rem;
    }

    .theme-dark-glass .step-desc {
        font-size: 0.72rem;
    }
}
