/* ============================================
   Reparo Codex — Unified Design System v2
   Blackbox-inspired: violet + cyan glass
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=IBM+Plex+Mono:wght@400;500;600&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --rcx-bg: #0a0a0c;
    --rcx-bg-2: #111114;
    --rcx-elevated: #141418;
    --rcx-surface: rgba(20, 20, 24, 0.55);
    --rcx-text: #f4f4f5;
    --rcx-muted: #a1a1aa;
    --rcx-dim: #71717a;
    --rcx-border: rgba(255, 255, 255, 0.06);
    --rcx-border-strong: rgba(255, 255, 255, 0.1);
    --rcx-violet: #8b5cf6;
    --rcx-cyan: #22d3ee;
    --rcx-glow: rgba(139, 92, 246, 0.35);
    --rcx-glow-c: rgba(34, 211, 238, 0.2);
    --rcx-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    --rcx-radius: 20px;
    --rcx-radius-sm: 14px;
    --rcx-blur: blur(16px) saturate(145%);
    --rcx-blur-sm: blur(12px) saturate(140%);
    --rcx-space: 20px;
    --rcx-font: "Inter", system-ui, -apple-system, sans-serif;
    --rcx-mono: "IBM Plex Mono", ui-monospace, monospace;

    /* Map to existing tokens */
    --primary: #0a0a0c;
    --primary-light: #141418;
    --primary-dark: #030305;
    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    --accent-dark: #7c3aed;
    --accent-glow: rgba(139, 92, 246, 0.4);
    --secondary: #22d3ee;
    --secondary-light: #67e8f9;
    --secondary-dark: #06b6d4;
    --tertiary: #ec4899;
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --text-inverse: #09090b;
    --bg-primary: #0a0a0c;
    --bg-secondary: #111114;
    --bg-tertiary: #1a1a1f;
    --bg-card: rgba(20, 20, 24, 0.65);
    --border-light: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);
    --border-dark: rgba(255, 255, 255, 0.14);
    --gradient-hero: linear-gradient(180deg, #0a0a0c 0%, #111114 50%, #0a0a0c 100%);
    --gradient-accent: linear-gradient(135deg, #fafafa 0%, #e4e4e7 100%);
    --gradient-mesh:
        radial-gradient(ellipse 100% 60% at 50% -30%, rgba(139, 92, 246, 0.22), transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 0%, rgba(34, 211, 238, 0.12), transparent 45%);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.25);
    --shadow-colored: 0 8px 32px rgba(139, 92, 246, 0.2), 0 4px 16px rgba(34, 211, 238, 0.1);
}

html[data-theme="dark"],
html:not([data-theme]) {
    color-scheme: dark;
}

[data-theme="default"] {
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --bg-primary: #0a0a0c;
    --bg-secondary: #111114;
    --bg-tertiary: #1a1a1f;
    --bg-card: rgba(20, 20, 24, 0.65);
    --border-light: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);
}

[data-theme="black"] {
    --bg-primary: #030305;
    --bg-secondary: #0a0a0e;
    --bg-tertiary: #0f0f14;
    --bg-card: rgba(15, 15, 20, 0.7);
}

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--rcx-font) !important;
    background-color: var(--rcx-bg) !important;
    color: var(--rcx-text) !important;
    background-image:
        radial-gradient(ellipse 100% 60% at 50% -30%, rgba(139, 92, 246, 0.22), transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 0%, rgba(34, 211, 238, 0.12), transparent 45%),
        linear-gradient(180deg, var(--rcx-bg) 0%, var(--rcx-bg-2) 55%, var(--rcx-bg) 100%) !important;
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
}

#root {
    position: relative;
    z-index: 1;
}

.newgen-shell {
    background:
        radial-gradient(ellipse 100% 60% at 50% -30%, rgba(139, 92, 246, 0.18), transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 0%, rgba(34, 211, 238, 0.1), transparent 45%),
        linear-gradient(180deg, rgba(10, 10, 12, 0.98) 0%, rgba(17, 17, 20, 0.99) 100%) !important;
}

/* ═══════════════════════════════════════════
   Navigation — sidebar, mobile sheet, bottom bar
   ═══════════════════════════════════════════ */

.main-sidebar {
    width: 288px !important;
    padding: 16px 14px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    background:
        radial-gradient(circle at 12% 8%, rgba(139, 92, 246, 0.2), transparent 48%),
        radial-gradient(circle at 88% 18%, rgba(34, 211, 238, 0.14), transparent 52%),
        linear-gradient(180deg, rgba(10, 10, 12, 0.97) 0%, rgba(14, 14, 18, 0.94) 100%) !important;
    border-right: 1px solid var(--rcx-border) !important;
    box-shadow: 4px 0 48px rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.main-sidebar::before {
    opacity: 0.5 !important;
    animation: none !important;
}

.sidebar-header {
    margin-bottom: 14px !important;
    padding: 12px 14px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--rcx-border) !important;
    border-radius: 16px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.sidebar-logo {
    color: var(--rcx-text) !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
}

.sidebar-logo img {
    height: 38px !important;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.25);
}

.sidebar-logo span {
    background: linear-gradient(105deg, #fafafa 0%, #c4b5fd 50%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sidebar-logo--mark-only {
    justify-content: center;
    gap: 0;
    padding: 2px 0 8px;
}

.sidebar-logo--mark-only img {
    height: 46px !important;
    width: 46px;
    object-fit: contain;
}

.mobile-phone-menu-sheet-brand--mark-only {
    gap: 0;
}

.mobile-phone-menu-sheet-brand--mark-only img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.25);
}

.sidebar-brand-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.rcx-nav-density-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 12px;
    border: 1px solid var(--rcx-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--rcx-muted);
    font-size: 0.62rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.rcx-nav-density-btn:hover,
.rcx-nav-density-btn[aria-pressed="true"] {
    border-color: rgba(139, 92, 246, 0.35);
    background: rgba(139, 92, 246, 0.12);
    color: #e9d5ff;
}

/* Compact sidebar — icons only */
@media (min-width: 769px) {
    body.rcx-nav-compact .rcx-nav-v2.newgen-shell {
        margin-left: 88px !important;
        width: calc(100% - 88px) !important;
    }

    html[dir="rtl"] body.rcx-nav-compact .rcx-nav-v2.newgen-shell {
        margin-left: 0 !important;
        margin-right: 88px !important;
        width: calc(100% - 88px) !important;
    }
}

.main-sidebar.rcx-nav-sidebar--compact {
    width: 88px !important;
    padding: 12px 8px 16px !important;
}

.main-sidebar.rcx-nav-sidebar--compact .rcx-nav-hide-compact {
    display: none !important;
}

.main-sidebar.rcx-nav-sidebar--compact .sidebar-brand-row {
    flex-direction: column;
    align-items: center;
}

.main-sidebar.rcx-nav-sidebar--compact .rcx-nav-density-btn {
    width: 100%;
    padding: 0;
}

.main-sidebar.rcx-nav-sidebar--compact .sidebar-logo--mark-only img {
    height: 40px !important;
    width: 40px;
}

.main-sidebar.rcx-nav-sidebar--compact .rcx-sidebar-quicknav {
    grid-template-columns: 1fr;
    gap: 4px;
}

.main-sidebar.rcx-nav-sidebar--compact .rcx-sidebar-user-panel {
    width: 100%;
}

.main-sidebar.rcx-nav-sidebar--compact .rcx-sidebar-user-panel__profile {
    justify-content: center;
    padding: 8px;
    margin-bottom: 0;
}

.main-sidebar.rcx-nav-sidebar--compact .rcx-sidebar-quicknav__pill {
    min-height: 44px;
    padding: 8px;
}

.main-sidebar.rcx-nav-sidebar--compact .sidebar-search {
    display: none;
}

.main-sidebar.rcx-nav-sidebar--compact .rcx-nav-label {
    display: none;
}

.main-sidebar.rcx-nav-sidebar--compact .rcx-nav-link {
    justify-content: center;
    padding: 8px !important;
}

.main-sidebar.rcx-nav-sidebar--compact .rcx-nav-link-label,
.main-sidebar.rcx-nav-sidebar--compact .rcx-nav-badge {
    display: none !important;
}

.main-sidebar.rcx-nav-sidebar--compact .rcx-nav-link:hover {
    transform: none !important;
}

.main-sidebar.rcx-nav-sidebar--compact .rcx-sidebar-profile-card {
    justify-content: center;
    padding: 8px;
}

.main-sidebar.rcx-nav-sidebar--compact .rcx-nav-sub-card,
.main-sidebar.rcx-nav-sidebar--compact .rcx-lang-switch {
    display: none;
}

.rcx-sidebar-quicknav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 4px;
}

.rcx-sidebar-user-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.rcx-sidebar-user-panel__profile {
    margin-bottom: 0 !important;
}

.rcx-sidebar-user-panel .rcx-rank-badge {
    margin-bottom: 0;
}

.rcx-sidebar-user-panel .rcx-nav-points {
    margin-bottom: 0;
}

.rcx-sidebar-user-panel__guest-avatar {
    display: grid;
    place-items: center;
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    font-size: 1rem;
    border-radius: 50%;
}

.rcx-sidebar-quicknav__pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 58px;
    padding: 8px 4px;
    border-radius: 14px;
    border: 1px solid var(--rcx-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--rcx-muted);
    text-decoration: none;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.rcx-sidebar-quicknav__pill i {
    font-size: 0.95rem;
    color: #c4b5fd;
}

.rcx-sidebar-quicknav__pill:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.28);
    color: var(--rcx-text);
    transform: translateY(-1px);
}

.rcx-sidebar-quicknav__pill--learn {
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.14), rgba(139, 92, 246, 0.12));
    border-color: rgba(34, 197, 94, 0.32);
    color: #ecfccb;
}

.rcx-sidebar-quicknav__pill--learn i {
    color: #4ade80;
}

.rcx-sidebar-quicknav__pill--live i {
    color: #f87171;
}

.mobile-phone-menu-brand-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 44px;
}

/* Spotify now playing — dark animated mini-player (stays dark on any theme) */
.rcx-spotify-now {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px 9px 9px;
    border-radius: 16px;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(29, 185, 84, 0.22), transparent 55%),
        linear-gradient(145deg, #121212 0%, #0a0a0a 55%, #141414 100%) !important;
    border: 1px solid rgba(29, 185, 84, 0.35) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    min-width: 0;
    overflow: hidden;
    color: #f4f4f5 !important;
    animation: rcx-spotify-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.rcx-spotify-now.is-playing {
    animation:
        rcx-spotify-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        rcx-spotify-breathe 2.4s ease-in-out infinite 0.55s;
}

@keyframes rcx-spotify-enter {
    from { opacity: 0; transform: translateY(8px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes rcx-spotify-breathe {
    0%, 100% { box-shadow: 0 10px 28px rgba(0,0,0,0.45), 0 0 0 0 rgba(29,185,84,0); border-color: rgba(29,185,84,0.35); }
    50% { box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 24px 2px rgba(29,185,84,0.35); border-color: rgba(74,222,128,0.7); }
}

.rcx-spotify-now__glow {
    position: absolute;
    inset: -40% -20% auto auto;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(29, 185, 84, 0.45), transparent 70%);
    pointer-events: none;
    animation: rcx-spotify-glow 2.2s ease-in-out infinite;
    z-index: 0;
}

.rcx-spotify-now__glow--2 {
    inset: auto auto -50% -30%;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.3), transparent 70%);
    animation-delay: 1s;
}

.rcx-spotify-now.is-paused .rcx-spotify-now__glow {
    animation: none;
    opacity: 0.25;
}

@keyframes rcx-spotify-glow {
    0%, 100% { opacity: 0.4; transform: translate(0, 0) scale(1); }
    50% { opacity: 1; transform: translate(-10px, 8px) scale(1.25); }
}

.rcx-spotify-now__notes {
    position: absolute;
    right: 54px;
    top: 2px;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 0;
}

.rcx-spotify-now.is-paused .rcx-spotify-now__notes { display: none; }

.rcx-spotify-now__notes i {
    position: absolute;
    color: #1db954;
    font-size: 0.55rem;
    opacity: 0;
    animation: rcx-spotify-note 2s ease-out infinite;
}

.rcx-spotify-now__notes i:nth-child(1) { left: 4px; animation-delay: 0s; }
.rcx-spotify-now__notes i:nth-child(2) { left: 14px; animation-delay: 0.65s; font-size: 0.48rem; }
.rcx-spotify-now__notes i:nth-child(3) { left: 24px; animation-delay: 1.2s; font-size: 0.62rem; }

@keyframes rcx-spotify-note {
    0% { opacity: 0; transform: translateY(12px) scale(0.5) rotate(-12deg); }
    30% { opacity: 0.95; }
    100% { opacity: 0; transform: translateY(-20px) scale(1.05) rotate(14deg); }
}

.rcx-spotify-now:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.5),
        0 0 28px rgba(29, 185, 84, 0.25) !important;
}

.rcx-spotify-now__art {
    position: relative;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #1db954, #191414);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.15rem;
    z-index: 1;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(29, 185, 84, 0.4);
}

.rcx-spotify-now.is-playing .rcx-spotify-now__art {
    animation: rcx-spotify-art-bob 1s ease-in-out infinite;
}

@keyframes rcx-spotify-art-bob {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.05); }
}

.rcx-spotify-now__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.rcx-spotify-now.is-playing .rcx-spotify-now__art img {
    animation: rcx-spotify-spin 5.5s linear infinite;
}

.rcx-spotify-now__vinyl {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at 50% 50%, rgba(0,0,0,0.55) 0 8%, transparent 9%),
        radial-gradient(circle at 50% 50%, transparent 28%, rgba(0, 0, 0, 0.28) 29%, transparent 42%);
    pointer-events: none;
    opacity: 0.9;
}

@keyframes rcx-spotify-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rcx-spotify-now__pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(29, 185, 84, 0.75);
    animation: rcx-spotify-pulse 1.3s ease-out infinite;
    pointer-events: none;
}

.rcx-spotify-now__pulse--delayed { animation-delay: 0.65s; }

@keyframes rcx-spotify-pulse {
    0% { opacity: 0.9; transform: scale(0.9); }
    100% { opacity: 0; transform: scale(1.35); }
}

.rcx-spotify-now__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1;
}

.rcx-spotify-now__meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rcx-spotify-now__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1db954 !important;
}

.rcx-spotify-now__live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1db954;
    animation: rcx-spotify-dot 1.1s ease-out infinite;
}

.rcx-spotify-now.is-paused .rcx-spotify-now__live-dot {
    background: #737373;
    animation: none;
}

@keyframes rcx-spotify-dot {
    0% { box-shadow: 0 0 0 0 rgba(29, 185, 84, 0.75); }
    70% { box-shadow: 0 0 0 8px rgba(29, 185, 84, 0); }
    100% { box-shadow: 0 0 0 0 rgba(29, 185, 84, 0); }
}

.rcx-spotify-now__label i {
    font-size: 0.78rem;
    animation: rcx-spotify-logo-pulse 1.2s ease-in-out infinite;
}

.rcx-spotify-now.is-paused .rcx-spotify-now__label i {
    animation: none;
    opacity: 0.7;
}

@keyframes rcx-spotify-logo-pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); }
    50% { transform: scale(1.18); filter: drop-shadow(0 0 8px rgba(29, 185, 84, 0.9)); }
}

.rcx-spotify-now__marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 88%, transparent 100%);
}

.rcx-spotify-now__marquee-track {
    display: inline-flex;
    gap: 2.5rem;
    white-space: nowrap;
    will-change: transform;
}

.rcx-spotify-now__track {
    display: inline-block;
    font-size: 0.84rem;
    font-weight: 700;
    color: #fafafa !important;
    white-space: nowrap;
}

.rcx-spotify-now.is-playing .rcx-spotify-now__marquee-track {
    animation: rcx-spotify-marquee 7s linear infinite;
}

.rcx-spotify-now.is-paused .rcx-spotify-now__marquee-track { animation: none; }
.rcx-spotify-now.is-paused .rcx-spotify-now__track:not(:first-child) { display: none; }
.rcx-spotify-now.is-paused .rcx-spotify-now__track:first-child {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes rcx-spotify-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-33.333% - 0.833rem)); }
}

.rcx-spotify-now__artist {
    font-size: 0.72rem;
    color: #a3a3a3 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rcx-spotify-now__progress {
    height: 3px;
    width: 100%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.rcx-spotify-now__progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #065f46, #1db954, #4ade80, #1db954);
    background-size: 220% 100%;
    animation: rcx-spotify-progress-shine 1s linear infinite;
    transition: width 0.9s linear;
    box-shadow: 0 0 10px rgba(29, 185, 84, 0.7);
}

.rcx-spotify-now.is-paused .rcx-spotify-now__progress span {
    animation: none;
    background: #525252;
    box-shadow: none;
}

@keyframes rcx-spotify-progress-shine {
    from { background-position: 100% 0; }
    to { background-position: -100% 0; }
}

.rcx-spotify-now__eq {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 22px;
    flex: 0 0 auto;
    z-index: 1;
}

.rcx-spotify-now__eq span {
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, #86efac, #1db954);
    transform-origin: bottom center;
    animation: rcx-eq-bounce 0.48s ease-in-out infinite;
}

.rcx-spotify-now__eq span:nth-child(1) { height: 8px; animation-delay: 0s; }
.rcx-spotify-now__eq span:nth-child(2) { height: 16px; animation-delay: 0.07s; }
.rcx-spotify-now__eq span:nth-child(3) { height: 11px; animation-delay: 0.14s; }
.rcx-spotify-now__eq span:nth-child(4) { height: 20px; animation-delay: 0.03s; }
.rcx-spotify-now__eq span:nth-child(5) { height: 9px; animation-delay: 0.18s; }
.rcx-spotify-now__eq span:nth-child(6) { height: 15px; animation-delay: 0.1s; }
.rcx-spotify-now__eq span:nth-child(7) { height: 7px; animation-delay: 0.22s; }

.rcx-spotify-now__eq.is-paused span {
    animation: none !important;
    height: 4px !important;
    background: #525252;
    opacity: 0.7;
}

@keyframes rcx-eq-bounce {
    0%, 100% { transform: scaleY(0.25); opacity: 0.5; }
    50% { transform: scaleY(1.1); opacity: 1; }
}

.rcx-spotify-now-float {
    position: fixed;
    top: 14px;
    left: 68px;
    right: 14px;
    z-index: 10040;
    pointer-events: none;
}

.rcx-spotify-now-float .rcx-spotify-now {
    pointer-events: auto;
    max-width: 100%;
}

.rcx-spotify-now--mobile { padding: 7px 10px 7px 7px; }
.rcx-spotify-now--mobile .rcx-spotify-now__art { flex: 0 0 40px; width: 40px; height: 40px; }
.rcx-spotify-now--mobile .rcx-spotify-now__track { font-size: 0.78rem; }
.rcx-spotify-now--mobile .rcx-spotify-now__artist { font-size: 0.68rem; }


/* Search */
.sidebar-search {
    padding: 0 2px 12px !important;
}

.sidebar-search-input {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--rcx-border) !important;
    border-radius: 12px !important;
    color: var(--rcx-text) !important;
    font-size: 0.88rem !important;
}

.sidebar-search-input::placeholder {
    color: var(--rcx-dim) !important;
}

.sidebar-search-input:focus {
    border-color: rgba(139, 92, 246, 0.45) !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12) !important;
}

.sidebar-search-icon,
.sidebar-search-spinner {
    color: var(--rcx-dim) !important;
}

.sidebar-search-results {
    background: rgba(10, 10, 12, 0.96) !important;
    border: 1px solid var(--rcx-border) !important;
    border-radius: 14px !important;
    box-shadow: var(--rcx-shadow) !important;
}

.sidebar-search-result:hover {
    background: rgba(139, 92, 246, 0.08) !important;
}

.sidebar-search-result-row i {
    color: var(--rcx-cyan) !important;
}

.sidebar-search-result-badge.badge-video {
    border-color: rgba(239, 68, 68, 0.3) !important;
    background: rgba(239, 68, 68, 0.12) !important;
}

.sidebar-search-result-badge.badge-file {
    border-color: rgba(245, 158, 11, 0.3) !important;
    background: rgba(245, 158, 11, 0.12) !important;
}

.sidebar-search-result-badge.badge-ebook {
    border-color: rgba(139, 92, 246, 0.3) !important;
    background: rgba(139, 92, 246, 0.12) !important;
}

/* Sidebar nav structure */
.rcx-sidebar-nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.35) transparent;
}

.rcx-sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.rcx-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.35);
    border-radius: 999px;
}

.rcx-nav-section {
    margin-bottom: 6px;
}

.rcx-nav-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rcx-nav-section li {
    margin: 3px 0;
}

.rcx-nav-label {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rcx-dim);
    padding: 10px 10px 6px;
    font-family: var(--rcx-mono);
}

/* Nav links */
.rcx-nav-link,
.sidebar-nav a.rcx-nav-link {
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
    padding: 9px 11px !important;
    border-radius: 13px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: var(--rcx-muted) !important;
    text-decoration: none !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease !important;
    position: relative;
    transform: none !important;
    backdrop-filter: none !important;
}

.rcx-nav-link::before,
.sidebar-nav a.rcx-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, var(--rcx-violet), var(--rcx-cyan));
    box-shadow: 0 0 10px var(--rcx-glow);
    transition: height 0.18s ease;
}

.rcx-nav-icon-pill {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--rcx-border);
    color: var(--rcx-muted);
    font-size: 0.92rem;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.rcx-nav-link-label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rcx-nav-link:hover,
.sidebar-nav a.rcx-nav-link:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--rcx-border) !important;
    color: var(--rcx-text) !important;
    transform: translateX(2px) !important;
}

.rcx-nav-link:hover .rcx-nav-icon-pill {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.28);
    color: #c4b5fd;
}

.rcx-nav-link:hover::before {
    height: 40%;
}

.rcx-nav-link.active,
.sidebar-nav a.rcx-nav-link.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.14) 0%, rgba(34, 211, 238, 0.08) 100%) !important;
    border-color: rgba(139, 92, 246, 0.22) !important;
    color: var(--rcx-text) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}

.rcx-nav-link.active .rcx-nav-icon-pill,
.sidebar-nav a.rcx-nav-link.active .rcx-nav-icon-pill {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(34, 211, 238, 0.18));
    border-color: rgba(139, 92, 246, 0.35);
    color: #e9d5ff;
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.2);
}

.rcx-nav-link.active::before {
    height: 55%;
}

/* Featured / special links */
.rcx-nav-link--featured {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.06) 100%) !important;
    border-color: rgba(139, 92, 246, 0.2) !important;
}

.rcx-nav-link--featured .rcx-nav-icon-pill {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(34, 211, 238, 0.14));
    border-color: rgba(139, 92, 246, 0.3);
    color: #e9d5ff;
}

.rcx-nav-badge {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.rcx-nav-badge--hot {
    background: linear-gradient(135deg, #f97316, #ef4444);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.rcx-nav-badge--missed {
    background: #ef4444;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    min-width: 20px;
    text-align: center;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: 0 0 0 2px rgba(10, 10, 12, 0.65);
}

.rcx-nav-badge--count {
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #bbf7d0;
    min-width: 22px;
    text-align: center;
}

.rcx-nav-link--subscriptions {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(16, 185, 129, 0.08) 100%) !important;
    border-color: rgba(34, 197, 94, 0.22) !important;
}

.rcx-nav-link--subscriptions .rcx-nav-icon-pill {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.28);
    padding: 0;
    overflow: hidden;
}

.rcx-nav-link--login {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(34, 211, 238, 0.08) 100%) !important;
    border-color: rgba(139, 92, 246, 0.22) !important;
}

.rcx-nav-link--logout {
    color: #fca5a5 !important;
    border-color: rgba(248, 113, 113, 0.18) !important;
    background: rgba(239, 68, 68, 0.06) !important;
}

.rcx-nav-link--logout .rcx-nav-icon-pill {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(248, 113, 113, 0.22);
    color: #fca5a5;
}

.rcx-nav-link--admin .rcx-nav-icon-pill {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(251, 191, 36, 0.28);
    color: #fcd34d;
}

/* Sidebar footer widgets */
.rcx-sidebar-footer {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--rcx-border);
}

.rcx-lang-switch {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.rcx-lang-switch--tn {
    background:
        linear-gradient(145deg, rgba(231, 0, 19, 0.08) 0%, rgba(0, 98, 51, 0.06) 55%, rgba(255, 255, 255, 0.03) 100%);
    border-color: rgba(231, 0, 19, 0.22);
}

.rcx-lang-switch__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.rcx-lang-switch__globe {
    font-size: 1rem;
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.rcx-lang-switch__label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(244, 244, 245, 0.72);
}

.rcx-lang-switch__hint {
    width: 100%;
    font-size: 0.72rem;
    color: rgba(244, 244, 245, 0.48);
    line-height: 1.4;
    margin-top: -2px;
}

.rcx-lang-switch--compact .rcx-lang-switch__hint {
    display: none;
}

.rcx-lang-switch__btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.rcx-lang-switch__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.22);
    color: #e4e4e7;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
    text-align: left;
    position: relative;
    min-height: 44px;
}

.rcx-lang-switch__btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.rcx-lang-switch__btn--active {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.rcx-lang-switch__btn--en.rcx-lang-switch__btn--active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(99, 102, 241, 0.2));
    border-color: rgba(96, 165, 250, 0.45);
}

.rcx-lang-switch__btn--tn.rcx-lang-switch__btn--active {
    background: linear-gradient(135deg, rgba(231, 0, 19, 0.22), rgba(0, 98, 51, 0.18));
    border-color: rgba(231, 0, 19, 0.38);
}

.rcx-lang-switch__flag {
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
    width: 32px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.rcx-lang-switch__flag-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 5px;
}

.rcx-lang-switch__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    min-width: 0;
    flex: 1;
}

.rcx-lang-switch__name {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.rcx-lang-switch__code {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    opacity: 0.55;
    text-transform: uppercase;
}

.rcx-lang-switch__check {
    position: absolute;
    top: 6px;
    right: 7px;
    font-size: 0.62rem;
    font-weight: 800;
    color: #86efac;
    opacity: 0.95;
}

/* ═══════════════════════════════════════════
   Arabic / RTL layout (Tunisian)
   ═══════════════════════════════════════════ */

html[dir="rtl"],
html.rcx-lang-tn {
    --rcx-font-ui: 'Cairo', 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
}

html[dir="rtl"] body,
html[dir="rtl"] .main-sidebar,
html[dir="rtl"] .mobile-phone-menu-sheet,
html[dir="rtl"] .rcx-standalone-main,
html[dir="rtl"] .hero,
html[dir="rtl"] .categories,
html[dir="rtl"] .content-section,
html[dir="rtl"] .rcx-dashboard-shell,
body.rcx-lang-tn {
    font-family: var(--rcx-font-ui, 'Cairo', 'Segoe UI', 'Tahoma', sans-serif);
    letter-spacing: 0;
}

html[dir="rtl"] body {
    text-align: right;
}

/* Sidebar flips to the right in RTL */
html[dir="rtl"] .main-sidebar {
    left: auto !important;
    right: 0 !important;
    border-right: none !important;
    border-left: 1px solid var(--rcx-border) !important;
    box-shadow: -4px 0 48px rgba(0, 0, 0, 0.45) !important;
}

html[dir="rtl"] #root > div:first-child {
    margin-left: 0 !important;
    margin-right: 280px !important;
    width: calc(100% - 280px);
}

html[dir="rtl"] .rcx-standalone-main {
    margin-left: 0 !important;
    margin-right: 280px !important;
}

html[dir="rtl"] .main-sidebar,
html[dir="rtl"] .rcx-sidebar-nav,
html[dir="rtl"] .mobile-phone-menu-sheet {
    text-align: right;
}

html[dir="rtl"] .rcx-nav-link,
html[dir="rtl"] .mobile-phone-menu-row,
html[dir="rtl"] .sidebar-nav a.rcx-nav-link {
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .rcx-nav-link-label,
html[dir="rtl"] .mobile-phone-menu-row-text {
    text-align: right;
}

html[dir="rtl"] .rcx-nav-label,
html[dir="rtl"] .mobile-phone-menu-section-title {
    text-align: right;
    letter-spacing: 0;
}

html[dir="rtl"] .sidebar-search-inner {
    direction: rtl;
}

html[dir="rtl"] .sidebar-search-icon,
html[dir="rtl"] .sidebar-search-spinner {
    left: 12px;
    right: auto;
}

html[dir="rtl"] .sidebar-search-input {
    padding-left: 36px;
    padding-right: 14px;
    text-align: right;
}

html[dir="rtl"] .mobile-phone-menu-row-chev,
html[dir="rtl"] .fa-chevron-right,
html[dir="rtl"] .rcx-lp-card__action .fa-arrow-right,
html[dir="rtl"] .glass-tile-btn .fa-arrow-right {
    transform: scaleX(-1);
}

html[dir="rtl"] .rcx-glass-home-back .fa-arrow-left {
    transform: scaleX(-1);
}

html[dir="rtl"] .rcx-lang-switch__btn {
    text-align: right;
    flex-direction: row-reverse;
}

html[dir="rtl"] .rcx-lang-switch__text {
    align-items: flex-end;
}

html[dir="rtl"] .rcx-lang-switch__check {
    right: auto;
    left: 7px;
}

html[dir="rtl"] .rcx-lang-switch__head {
    flex-direction: row-reverse;
}

html[dir="rtl"] .hero,
html[dir="rtl"] .hero .container,
html[dir="rtl"] .modern-section-header,
html[dir="rtl"] .study-materials-header,
html[dir="rtl"] .rcx-courses-header {
    text-align: right;
}

html[dir="rtl"] .modern-section-title,
html[dir="rtl"] .modern-section-subtitle,
html[dir="rtl"] .study-tab-label,
html[dir="rtl"] .rcx-lp-card__title,
html[dir="rtl"] .rcx-lp-card__hint {
    text-align: right;
}

html[dir="rtl"] .rcx-view-toggle,
html[dir="rtl"] .study-trimester-row,
html[dir="rtl"] .rcx-courses-meta {
    direction: rtl;
}

html[dir="rtl"] .study-tab {
    direction: rtl;
}

html[dir="rtl"] .study-tab .study-tab-label,
html[dir="rtl"] .study-tab .study-tab-count {
    text-align: right;
}

html[dir="rtl"] .category-card h3,
html[dir="rtl"] .category-card p {
    text-align: center;
}

html[dir="rtl"] .rcx-nav-points,
html[dir="rtl"] .mobile-phone-menu-points {
    flex-direction: row-reverse;
}

html[dir="rtl"] .rcx-nav-badge {
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] .rcx-bottom-nav-item {
    direction: rtl;
}

@media (max-width: 768px) {
    html[dir="rtl"] #root > div:first-child,
    html[dir="rtl"] .newgen-shell > div[style*="marginLeft"],
    html[dir="rtl"] .rcx-standalone-main {
        margin-right: 0 !important;
    }

    html[dir="rtl"] .main-sidebar.mobile-open {
        left: auto !important;
        right: 0 !important;
    }
}

.rcx-nav-points {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    margin-bottom: 8px;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(234, 88, 12, 0.08) 100%);
    border: 1px solid rgba(251, 191, 36, 0.22);
    color: #fef3c7;
    font-weight: 700;
    font-size: 0.88rem;
}

.rcx-nav-points i {
    color: #fbbf24;
    font-size: 1rem;
}

.rcx-nav-sub-card {
    padding: 13px;
    margin-bottom: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--rcx-border);
}

.rcx-nav-sub-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.rcx-nav-sub-card-title {
    font-weight: 800;
    font-size: 0.88rem;
    color: var(--rcx-text);
}

.rcx-nav-sub-card-sub {
    font-size: 0.74rem;
    color: var(--rcx-dim);
}

.rcx-nav-sub-item {
    margin-top: 8px;
    padding: 9px 10px;
    border-radius: 11px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--rcx-border);
}

.rcx-nav-sub-view-all {
    display: block;
    margin-top: 8px;
    padding: 9px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--rcx-border);
    text-align: center;
    font-size: 0.78rem;
    color: var(--rcx-muted);
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.rcx-nav-sub-view-all:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--rcx-text);
}

/* Legacy sidebar-nav fallback */
.sidebar-nav a:not(.rcx-nav-link) {
    border: 1px solid var(--rcx-border) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    color: var(--rcx-muted) !important;
}

.sidebar-nav a:not(.rcx-nav-link):hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: var(--rcx-border-strong) !important;
    color: var(--rcx-text) !important;
}

.sidebar-nav a:not(.rcx-nav-link).active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.14) 0%, rgba(34, 211, 238, 0.1) 100%) !important;
    border-color: rgba(139, 92, 246, 0.25) !important;
    color: var(--rcx-text) !important;
}

/* Hero */
.hero {
    background: transparent !important;
    border: 1px solid var(--rcx-border) !important;
    border-radius: var(--rcx-radius) !important;
    margin: 20px 20px 0 !important;
    padding: clamp(32px, 5vw, 56px) 24px !important;
    box-shadow: var(--rcx-shadow) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero::before,
.hero::after {
    display: none !important;
}

/* Categories */
.categories {
    background: transparent !important;
    padding: var(--space-12, 48px) 0 !important;
}

.categories::before {
    display: none !important;
}

#root #categories.categories,
.categories {
    background: var(--rcx-surface) !important;
    border: 1px solid var(--rcx-border) !important;
    border-radius: var(--rcx-radius) !important;
    margin: 0 20px;
    padding: 28px 0 !important;
    box-shadow: var(--rcx-shadow) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.category-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--rcx-border) !important;
    border-radius: var(--rcx-radius-sm) !important;
    box-shadow: none !important;
    color: var(--rcx-text) !important;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}

.category-card::before {
    background: linear-gradient(90deg, var(--rcx-violet) 0%, var(--rcx-cyan) 100%) !important;
    height: 2px !important;
}

.category-card::after {
    background: radial-gradient(circle at 0% 0%, rgba(139, 92, 246, 0.1) 0%, transparent 56%),
                radial-gradient(circle at 100% 100%, rgba(34, 211, 238, 0.08) 0%, transparent 60%) !important;
}

.category-card:hover {
    border-color: rgba(139, 92, 246, 0.3) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(139, 92, 246, 0.12) !important;
}

.category-card h3 {
    color: var(--rcx-text) !important;
}

.category-card p {
    color: var(--rcx-muted) !important;
}

.category-icon {
    background: linear-gradient(135deg, var(--rcx-violet) 0%, var(--rcx-cyan) 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.3)) !important;
}

.section-title {
    color: var(--rcx-text) !important;
}

.section-title::after {
    background: linear-gradient(135deg, var(--rcx-violet) 0%, var(--rcx-cyan) 100%) !important;
}

/* Cards */
.modern-card,
.modern-content-card,
.card,
.content-card {
    background: var(--rcx-surface) !important;
    border: 1px solid var(--rcx-border) !important;
    border-radius: var(--rcx-radius-sm) !important;
    color: var(--rcx-text) !important;
    box-shadow: var(--rcx-shadow) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modern-card:hover,
.modern-content-card:hover,
.card:hover {
    border-color: rgba(139, 92, 246, 0.25) !important;
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    background: linear-gradient(135deg, #fafafa 0%, #e4e4e7 100%) !important;
    color: #09090b !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    box-shadow: 0 0 32px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.35) !important;
    animation: none !important;
    font-weight: 600 !important;
}

.btn::before {
    display: none !important;
}

.btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px) !important;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.2), 0 12px 32px rgba(0, 0, 0, 0.4) !important;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--rcx-border-strong) !important;
    color: var(--rcx-text) !important;
    box-shadow: none !important;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
    color: var(--rcx-text) !important;
}

/* Learning progress card — redesigned */
.rcx-lp-card {
    position: relative;
    max-width: none;
    width: 100%;
    padding: 18px 18px 16px;
    border-radius: var(--rcx-radius);
    border: 1px solid var(--rcx-border-strong);
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(139, 92, 246, 0.14), transparent 55%),
        radial-gradient(90% 70% at 100% 100%, rgba(34, 211, 238, 0.1), transparent 50%),
        var(--rcx-elevated);
    box-shadow: var(--rcx-shadow);
    overflow: hidden;
}

.rcx-lp-card__glow {
    position: absolute;
    inset: -40% auto auto -20%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.22), transparent 68%);
    pointer-events: none;
}

.rcx-lp-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.rcx-lp-card__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.28);
    background: rgba(139, 92, 246, 0.1);
    color: #ddd6fe;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rcx-lp-card__eyebrow i {
    color: var(--rcx-cyan);
    font-size: 0.78rem;
}

.rcx-lp-card__action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--rcx-muted);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.rcx-lp-card__action:hover {
    color: var(--rcx-text);
}

.rcx-lp-card__action i {
    font-size: 0.68rem;
    transition: transform 0.2s ease;
}

.rcx-lp-card__action:hover i {
    transform: translateX(2px);
}

.rcx-lp-card__hero {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.rcx-lp-card__copy {
    min-width: 0;
}

.rcx-lp-card__title {
    margin: 0 0 6px;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--rcx-text);
    letter-spacing: -0.02em;
}

.rcx-lp-card__hint {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--rcx-muted);
}

.rcx-lp-ring {
    position: relative;
    flex-shrink: 0;
}

.rcx-lp-ring__track {
    stroke: rgba(255, 255, 255, 0.08);
}

.rcx-lp-ring__fill {
    stroke: url(#rcx-lp-gradient);
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease;
}

.rcx-lp-ring__label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    color: var(--rcx-text);
    font-family: var(--rcx-mono);
}

.rcx-lp-ring__label strong {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
}

.rcx-lp-ring__label span {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--rcx-muted);
    margin-top: 4px;
}

.rcx-lp-card__bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--rcx-border);
    overflow: hidden;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.rcx-lp-card__bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--rcx-violet), var(--rcx-cyan));
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.35);
    transition: width 0.6s ease;
}

.rcx-lp-card__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    position: relative;
    z-index: 1;
}

.rcx-lp-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--rcx-border);
    background: rgba(255, 255, 255, 0.03);
}

.rcx-lp-stat__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 0.82rem;
}

.rcx-lp-stat__icon--violet {
    background: rgba(139, 92, 246, 0.14);
    color: #c4b5fd;
}

.rcx-lp-stat__icon--cyan {
    background: rgba(34, 211, 238, 0.12);
    color: #67e8f9;
}

.rcx-lp-stat__icon--amber {
    background: rgba(251, 191, 36, 0.12);
    color: #fcd34d;
}

.rcx-lp-stat__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rcx-lp-stat__value {
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--rcx-text);
    font-family: var(--rcx-mono);
}

.rcx-lp-stat__label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--rcx-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rcx-lp-card--skeleton {
    background: var(--rcx-elevated);
}

@media (max-width: 480px) {
    .rcx-lp-card__hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .rcx-lp-card__stats {
        grid-template-columns: 1fr;
    }

    .rcx-lp-stat {
        padding: 12px;
    }
}

/* Learning progress — legacy (override educational-ux light theme) */
[data-theme="default"] .learning-progress-container,
.learning-progress-container {
    background: var(--rcx-surface) !important;
    border: 1px solid var(--rcx-border) !important;
    border-radius: var(--rcx-radius-sm) !important;
    box-shadow: var(--rcx-shadow) !important;
    backdrop-filter: blur(14px);
}

[data-theme="default"] .learning-progress-title,
[data-theme="default"] .learning-progress-percentage,
.learning-progress-title,
.learning-progress-percentage {
    color: var(--rcx-text) !important;
    text-shadow: none !important;
}

[data-theme="default"] .learning-progress-bar,
.learning-progress-bar {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid var(--rcx-border) !important;
}

.learning-progress-fill {
    background: linear-gradient(90deg, var(--rcx-violet), var(--rcx-cyan)) !important;
}

[data-theme="default"] .learning-progress-count-card,
.learning-progress-count-card {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--rcx-border) !important;
    border-radius: 12px !important;
}

[data-theme="default"] .learning-progress-count-label,
.learning-progress-count-label {
    color: var(--rcx-muted) !important;
}

.learning-progress-count-value {
    color: var(--rcx-text) !important;
    font-weight: 800 !important;
}

/* Dashboard shell */
.rcx-dashboard-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
}

.rcx-dashboard-focus {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 1.5rem;
    align-items: stretch;
}

.rcx-dashboard-focus.has-my-live {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

@media (max-width: 900px) {
    .rcx-dashboard-focus.has-my-live {
        grid-template-columns: 1fr;
    }
}

.rcx-my-live {
    position: relative;
    width: 100%;
    min-height: 100%;
    padding: 18px 18px 16px;
    border-radius: var(--rcx-radius);
    border: 1px solid rgba(34, 211, 238, 0.28);
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(34, 211, 238, 0.16), transparent 55%),
        radial-gradient(90% 70% at 0% 100%, rgba(139, 92, 246, 0.1), transparent 50%),
        rgba(20, 20, 24, 0.72);
    box-shadow: var(--rcx-shadow);
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
}

.rcx-my-live.is-live {
    border-color: rgba(239, 68, 68, 0.45);
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(239, 68, 68, 0.2), transparent 55%),
        radial-gradient(90% 70% at 0% 100%, rgba(34, 211, 238, 0.08), transparent 50%),
        rgba(20, 20, 24, 0.78);
}

.rcx-my-live__glow {
    position: absolute;
    inset: auto -20% -40% auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 68%);
    pointer-events: none;
}

.rcx-my-live.is-live .rcx-my-live__glow {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.28), transparent 68%);
}

.rcx-my-live__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.rcx-my-live__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.28);
    background: rgba(34, 211, 238, 0.1);
    color: #a5f3fc;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rcx-my-live.is-live .rcx-my-live__eyebrow {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.14);
    color: #fecaca;
}

.rcx-my-live__badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--rcx-text);
}

.rcx-my-live__badge--live {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fecaca;
}

.rcx-my-live__badge--soon {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fde68a;
}

.rcx-my-live__badge--scheduled {
    background: rgba(34, 211, 238, 0.12);
    border-color: rgba(34, 211, 238, 0.28);
    color: #a5f3fc;
}

.rcx-my-live__title {
    margin: 0 0 10px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--rcx-text);
    line-height: 1.3;
    position: relative;
    z-index: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rcx-my-live__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 0 0 16px;
    color: var(--rcx-muted);
    font-size: 0.84rem;
    position: relative;
    z-index: 1;
}

.rcx-my-live__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rcx-my-live__actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.rcx-my-live__join {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    border-radius: 999px !important;
    padding: 10px 16px !important;
}

.rcx-my-live__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 0;
    color: #a5f3fc;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    padding: 8px 4px;
}

.rcx-my-live__link:hover {
    color: #ecfeff;
}

.rcx-my-live__empty {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-height: 120px;
}

.rcx-my-live__empty p {
    margin: 0;
    color: var(--rcx-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.rcx-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.85fr);
    gap: 16px;
    align-items: start;
    margin-bottom: 1.5rem;
}

.rcx-dashboard-grid--quick {
    grid-template-columns: 1fr;
}

@media (max-width: 1024px) {
    .rcx-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

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

/* Dashboard course-style quick tiles */
.rcx-dash-course-grid.lb-course-grid {
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 12px;
}

.rcx-dash-course-card.lb-course-card {
    text-decoration: none !important;
    color: inherit !important;
    min-height: 118px;
}

.rcx-dash-course-card.lb-course-card strong {
    font-size: 0.92rem;
    color: var(--rcx-text);
}

.rcx-dash-course-card.lb-course-card > span:last-of-type {
    display: block;
    margin-top: 2px;
}

.lb-course-grid {
    display: grid;
    gap: 12px;
}

.lb-course-card {
    text-align: left;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: inherit;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    width: 100%;
    font: inherit;
    touch-action: manipulation;
}

.lb-course-card:hover {
    border-color: rgba(139, 92, 246, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.lb-course-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.lb-course-card strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.lb-course-card > span {
    font-size: 0.78rem;
    color: #71717a;
}

/* Dashboard top ranking (below timetable) */
.rcx-dash-ranking {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(251, 191, 36, 0.22);
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(251, 191, 36, 0.1), transparent 60%),
        rgba(255, 255, 255, 0.03);
}

.rcx-dash-ranking__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.rcx-dash-ranking__head i {
    color: #fcd34d;
    font-size: 1rem;
}

.rcx-dash-ranking__head h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--rcx-text);
}

.rcx-dash-ranking__empty {
    margin: 0;
    text-align: center;
    font-size: 0.82rem;
    color: var(--rcx-dim);
    padding: 8px 0;
}

.rcx-dash-ranking__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rcx-dash-ranking__item {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
}

.rcx-dash-ranking__item--1 {
    border-color: rgba(251, 191, 36, 0.35);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(245, 158, 11, 0.05));
}

.rcx-dash-ranking__item--2 {
    border-color: rgba(203, 213, 225, 0.25);
}

.rcx-dash-ranking__item--3 {
    border-color: rgba(180, 83, 9, 0.28);
}

.rcx-dash-ranking__rank {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 38px;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--rcx-dim);
    font-family: var(--rcx-mono);
}

.rcx-dash-ranking__item--1 .rcx-dash-ranking__rank { color: #fcd34d; }
.rcx-dash-ranking__item--2 .rcx-dash-ranking__rank { color: #cbd5e1; }
.rcx-dash-ranking__item--3 .rcx-dash-ranking__rank { color: #fdba74; }

.rcx-dash-ranking__avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(139, 92, 246, 0.35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.rcx-dash-ranking__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rcx-dash-ranking__meta strong {
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rcx-dash-ranking__meta span {
    font-size: 0.72rem;
    color: var(--rcx-dim);
    font-family: var(--rcx-mono);
}

.rcx-quick-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none !important;
    color: inherit !important;
    padding: 14px 14px 13px;
    border-radius: 14px;
    background: rgba(20, 20, 24, 0.72);
    border: 1px solid var(--rcx-border);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 118px;
}

.rcx-quick-tile:hover {
    border-color: rgba(139, 92, 246, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38), 0 0 24px rgba(139, 92, 246, 0.1);
}

.rcx-quick-tile-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #09090b;
    font-size: 1.1rem;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.rcx-quick-tile-icon--materials { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.rcx-quick-tile-icon--live { background: linear-gradient(135deg, #f472b6, #ec4899); }
.rcx-quick-tile-icon--code { background: linear-gradient(135deg, #22d3ee, #06b6d4); }
.rcx-quick-tile-icon--notes { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.rcx-quick-tile-icon--videos { background: linear-gradient(135deg, #a78bfa, #f472b6); }
.rcx-quick-tile-icon--reels { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.rcx-quick-tile-icon--ai { background: linear-gradient(135deg, #22c55e, #0ea5e9); }

.rcx-quick-tile-title {
    margin: 0 0 4px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--rcx-text);
    line-height: 1.3;
}

.rcx-quick-tile-sub {
    margin: 0;
    font-size: 0.74rem;
    color: var(--rcx-muted);
    line-height: 1.35;
}

.rcx-stats-panel {
    margin-bottom: 2rem;
}

.rcx-stats-curve__empty {
    margin: 0;
    padding: 28px 12px;
    text-align: center;
    color: var(--rcx-dim);
    font-size: 0.88rem;
}

.rcx-stats-curve__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 14px;
}

.rcx-stats-curve__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--rcx-muted);
}

.rcx-stats-curve__legend-item i {
    font-size: 0.55rem;
}

.rcx-stats-curve__chart-wrap {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--rcx-border);
    background: rgba(0, 0, 0, 0.22);
    padding: 8px 6px 4px;
    margin-bottom: 14px;
    overflow: hidden;
}

.rcx-stats-curve__chart {
    width: 100%;
    height: 200px;
    display: block;
}

.rcx-stats-curve__grid {
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 1;
}

.rcx-stats-curve__axis-label {
    fill: var(--rcx-dim);
    font-size: 9px;
    font-family: var(--rcx-mono);
}

.rcx-stats-curve__totals {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.rcx-stats-curve__total {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--rcx-border);
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
}

.rcx-stats-curve__total-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--rcx-dim);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.rcx-stats-curve__total strong {
    display: block;
    font-size: 1.05rem;
    color: var(--rcx-text);
}

@media (max-width: 640px) {
    .rcx-stats-curve__totals {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.rcx-stats-panel .modern-section-header h2 {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: var(--rcx-text) !important;
    margin: 0 0 0.5rem !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rcx-stats-accent {
    width: 4px;
    height: 22px;
    background: linear-gradient(135deg, var(--rcx-violet), var(--rcx-cyan));
    border-radius: 2px;
    flex-shrink: 0;
}

.modern-stat-card {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--rcx-border) !important;
    border-radius: 14px !important;
    backdrop-filter: blur(10px);
}

.modern-stat-value {
    background: linear-gradient(135deg, #fafafa, #a78bfa) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.modern-stat-label {
    color: var(--rcx-muted) !important;
}

.modern-stat-card.rcx-stat-live {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(34, 211, 238, 0.12)) !important;
    border-color: rgba(139, 92, 246, 0.35) !important;
}

/* Courses / subjects */
.rcx-courses-header {
    background: var(--rcx-surface);
    border-radius: var(--rcx-radius-sm);
    padding: 18px 20px;
    margin-bottom: 18px;
    border: 1px solid var(--rcx-border);
    box-shadow: var(--rcx-shadow);
    backdrop-filter: blur(12px);
}

.rcx-courses-header__row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.rcx-courses-header h2 {
    margin: 0;
    color: var(--rcx-text);
    font-size: 1.45rem;
    font-weight: 800;
}

.rcx-courses-header p {
    margin: 6px 0 0;
    color: var(--rcx-muted);
    font-size: 0.9rem;
}

.rcx-courses-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rcx-course-pill {
    background: rgba(139, 92, 246, 0.12);
    color: var(--rcx-text);
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
}

.rcx-course-pill--class {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(34, 211, 238, 0.12));
    border-color: rgba(139, 92, 246, 0.35);
    font-size: 0.88rem;
    padding: 8px 14px;
}

.rcx-course-pill--class i {
    color: var(--rcx-cyan, #22d3ee);
}

.rcx-class-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.rcx-class-banner__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--rcx-muted);
    margin-bottom: 2px;
}

.rcx-class-banner__name {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--rcx-text);
    line-height: 1.25;
}

.rcx-class-banner__desc {
    margin: 4px 0 0;
    font-size: 0.84rem;
    color: var(--rcx-muted);
    line-height: 1.45;
}

.rcx-courses-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.rcx-courses-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rcx-view-toggle {
    display: flex;
    gap: 6px;
    padding: 5px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--rcx-border);
}

.rcx-view-toggle button {
    padding: 8px 14px !important;
    font-size: 0.85rem !important;
    border-radius: 9px !important;
    background: transparent !important;
    color: var(--rcx-muted) !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

.rcx-view-toggle button.is-active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(34, 211, 238, 0.12)) !important;
    color: var(--rcx-text) !important;
    border-color: rgba(139, 92, 246, 0.35) !important;
}

.rcx-course-accordion,
.rcx-course-panel {
    background: rgba(20, 20, 24, 0.72);
    border-radius: 14px;
    padding: 4px 6px;
    border: 1px solid var(--rcx-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rcx-course-panel {
    padding: 16px;
}

.rcx-course-accordion.is-selected,
.rcx-course-panel.is-selected {
    border-color: rgba(139, 92, 246, 0.45);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.12);
}

.rcx-course-accordion-head {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 14px 12px;
    margin: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    font: inherit;
}

.rcx-course-accordion-head--static {
    cursor: default;
}

.rcx-course-accordion-head__main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.rcx-course-accordion-head__text {
    min-width: 0;
}

.rcx-course-accordion-head h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--rcx-text);
}

.rcx-course-accordion-head p {
    margin: 4px 0 0;
    color: var(--rcx-muted);
    font-size: 0.84rem;
}

.rcx-course-accordion-head__count {
    margin-top: 6px !important;
    font-weight: 600;
}

.rcx-course-accordion-head__chevron {
    color: var(--rcx-muted);
    flex-shrink: 0;
}

.rcx-course-accordion-body {
    padding: 0 12px 16px;
    margin-top: 2px;
    border-top: 1px dashed rgba(148, 163, 184, 0.28);
    padding-top: 16px;
}

.rcx-course-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--rcx-violet), var(--rcx-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #09090b;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.rcx-course-icon--muted {
    background: rgba(148, 163, 184, 0.18);
    color: var(--rcx-muted);
}

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

button.rcx-subject-card,
.rcx-subject-card {
    position: relative;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
    width: 100%;
    text-align: left !important;
    cursor: pointer;
    padding: 16px !important;
    min-height: 118px;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.rcx-subject-card__icon {
    font-size: 1.45rem;
    line-height: 1;
}

.rcx-subject-card__body {
    display: block;
    width: 100%;
}

.rcx-subject-card__body h3 {
    margin: 0 0 4px;
    font-size: 0.98rem;
}

.rcx-subject-card__body p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.35;
}

.rcx-subject-card__done {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 222, 128, 0.18);
    color: #4ade80;
    font-size: 0.7rem;
}

html[dir="rtl"] .rcx-course-accordion-head,
html[dir="rtl"] .rcx-subject-card,
html[dir="rtl"] button.rcx-subject-card {
    text-align: right;
}

html[dir="rtl"] .rcx-subject-card__done {
    left: auto;
    right: 10px;
}

@media (max-width: 640px) {
    .rcx-class-banner {
        align-items: flex-start;
    }

    .rcx-class-banner__name {
        font-size: 1.08rem;
    }

    .rcx-subjects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    button.rcx-subject-card,
    .rcx-subject-card {
        min-height: 108px;
        padding: 14px 12px !important;
    }
}

.category-card.is-selected {
    border-color: rgba(139, 92, 246, 0.5) !important;
    background: rgba(139, 92, 246, 0.1) !important;
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.15) !important;
}

.categories-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: 12px !important;
}

.category-progress-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #09090b;
    background: linear-gradient(135deg, var(--rcx-cyan), #67e8f9);
}

.category-progress-badge.is-complete {
    background: linear-gradient(135deg, #22c55e, #4ade80);
}

/* Live sessions */
.content-section#live,
.live-sessions-section {
    background: transparent !important;
}

.section-subtitle {
    color: var(--rcx-muted) !important;
}

.rcx-live-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.rcx-live-search-wrap {
    position: relative;
    flex: 1;
    min-width: 220px;
}

.rcx-live-search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rcx-dim);
    pointer-events: none;
}

.rcx-live-search,
.rcx-live-filter {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border-radius: 12px;
    border: 1px solid var(--rcx-border-strong);
    font-size: 0.9rem;
    outline: none;
    background: rgba(255, 255, 255, 0.04);
    color: var(--rcx-text);
}

.rcx-live-filter {
    padding-left: 14px;
    min-width: 160px;
    width: auto;
    cursor: pointer;
}

.rcx-live-group-title {
    margin: 0 0 14px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--rcx-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-session-tile {
    background: rgba(20, 20, 24, 0.78);
    border: 1px solid var(--rcx-border);
    border-radius: 14px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.live-session-tile:hover {
    border-color: rgba(139, 92, 246, 0.32);
    transform: translateY(-2px);
}

.live-session-tile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--rcx-border);
    font-size: 0.85rem;
}

.live-session-tile-head i {
    font-size: 1rem;
}

.live-session-tile.is-live .live-session-tile-head {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

.live-session-tile.is-soon .live-session-tile-head {
    background: rgba(245, 158, 11, 0.12);
    color: #fcd34d;
}

.live-session-tile.is-scheduled .live-session-tile-head {
    background: rgba(34, 211, 238, 0.1);
    color: #67e8f9;
}

.live-session-tile.is-done .live-session-tile-head {
    background: rgba(255, 255, 255, 0.04);
    color: var(--rcx-muted);
}

.live-session-tile-body {
    padding: 11px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.live-session-tile-body h4 {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--rcx-text);
    line-height: 1.35;
}

.live-session-tile-meta {
    font-size: 0.72rem;
    color: var(--rcx-muted);
    line-height: 1.4;
}

.live-session-level {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--rcx-violet);
    font-size: 0.68rem;
    font-weight: 700;
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.status-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.68rem;
    font-weight: 700;
}

.status-live { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.status-soon { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.status-scheduled { background: rgba(34, 211, 238, 0.12); color: #67e8f9; }
.status-done { background: rgba(255, 255, 255, 0.06); color: var(--rcx-muted); }

.live-session-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
    padding-top: 8px;
}

.live-session-actions .glass-tile-btn,
.live-session-actions .btn {
    width: 100%;
    margin-top: 0 !important;
    font-size: 0.72rem !important;
    padding: 7px 8px !important;
}

.live-session-actions .btn-live {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #fff !important;
    border: none !important;
}

.live-session-actions .btn-soon {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #09090b !important;
    border: none !important;
}

.live-session-actions .btn-participate {
    background: rgba(139, 92, 246, 0.18) !important;
    color: var(--rcx-text) !important;
    border: 1px solid rgba(139, 92, 246, 0.35) !important;
}

.live-session-actions .btn-participating {
    background: rgba(34, 197, 94, 0.15) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
}

/* Live season calendar */
.rcx-live-calendar {
    margin-bottom: 28px;
    border-radius: 16px;
    border: 1px solid var(--rcx-border-strong);
    background: linear-gradient(160deg, rgba(12, 14, 22, 0.92) 0%, rgba(8, 10, 18, 0.96) 100%);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.rcx-live-calendar__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 20px;
    border-bottom: 1px solid var(--rcx-border-strong);
    background: rgba(255, 255, 255, 0.02);
}

.rcx-live-calendar__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.28);
    color: #67e8f9;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.rcx-live-calendar__head h3 {
    margin: 0 0 4px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--rcx-text);
    letter-spacing: 0.01em;
}

.rcx-live-calendar__head p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--rcx-muted);
}

.rcx-live-calendar__head-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.rcx-live-calendar__nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.rcx-live-calendar__nav-btn,
.rcx-live-calendar__today-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--rcx-border-strong);
    background: rgba(255, 255, 255, 0.04);
    color: var(--rcx-text);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.rcx-live-calendar__nav-btn {
    width: 36px;
    height: 36px;
    padding: 0;
}

.rcx-live-calendar__nav-btn:hover:not(:disabled),
.rcx-live-calendar__today-btn:hover {
    background: rgba(139, 92, 246, 0.14);
    border-color: rgba(139, 92, 246, 0.35);
}

.rcx-live-calendar__nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.rcx-live-calendar__range {
    min-width: 148px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--rcx-text);
    padding: 0 4px;
}

.rcx-live-calendar__today-btn {
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.3);
    color: #7dd3fc;
}

.rcx-live-calendar__stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.24);
    color: var(--rcx-text);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.rcx-live-calendar__stat strong {
    font-size: 1.1rem;
    color: var(--rcx-violet);
}

.rcx-live-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    padding: 16px;
}

.rcx-live-calendar__day {
    display: flex;
    flex-direction: column;
    min-height: 220px;
    border-radius: 14px;
    border: 1px solid var(--rcx-border);
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.rcx-live-calendar__day.has-sessions {
    cursor: pointer;
}

.rcx-live-calendar__day.has-sessions:hover {
    border-color: rgba(139, 92, 246, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.rcx-live-calendar__day.is-today {
    border-color: rgba(56, 189, 248, 0.55);
    background: linear-gradient(180deg, rgba(14, 116, 144, 0.22) 0%, rgba(255, 255, 255, 0.04) 100%);
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.12);
}

.rcx-live-calendar__day-head {
    padding: 12px 10px 10px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.rcx-live-calendar__day.is-today .rcx-live-calendar__day-head {
    border-bottom-color: rgba(56, 189, 248, 0.2);
}

.rcx-live-calendar__today-pill {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
}

.rcx-live-calendar__weekday {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rcx-dim);
    margin-bottom: 6px;
}

.rcx-live-calendar__day.is-today .rcx-live-calendar__weekday {
    color: #7dd3fc;
}

.rcx-live-calendar__date-num {
    display: block;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1;
    color: var(--rcx-text);
    margin-bottom: 4px;
}

.rcx-live-calendar__month {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--rcx-muted);
}

.rcx-live-calendar__count {
    padding: 8px 10px 0;
    text-align: center;
}

.rcx-live-calendar__count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    background: rgba(99, 102, 241, 0.18);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #c7d2fe;
}

.rcx-live-calendar__day.is-today .rcx-live-calendar__count-badge {
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.35);
    color: #bae6fd;
}

.rcx-live-calendar__empty {
    padding: 10px;
    text-align: center;
    font-size: 0.72rem;
    font-style: italic;
    color: var(--rcx-dim);
}

.rcx-live-calendar__events {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    flex: 1;
    overflow-y: auto;
    max-height: 150px;
}

.rcx-live-calendar__event {
    padding: 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    text-align: left;
}

.rcx-live-calendar__event.is-live {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.08);
}

.rcx-live-calendar__event.is-joinable {
    cursor: pointer;
}

.rcx-live-calendar__event.is-joinable:hover {
    border-color: rgba(239, 68, 68, 0.55);
    box-shadow: 0 8px 22px rgba(239, 68, 68, 0.16);
}

.rcx-live-calendar__event-actions--top {
    margin-top: 0;
    margin-bottom: 8px;
}

.rcx-live-calendar__event-actions--top .rcx-live-calendar__join-btn {
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.28);
}

.rcx-live-calendar__waiting {
    display: block;
    margin-top: 8px;
    font-size: 0.68rem;
    font-style: italic;
    color: #fca5a5;
}

.rcx-live-calendar__event.is-soon {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.08);
}

.rcx-live-calendar__event.is-scheduled {
    border-color: rgba(34, 211, 238, 0.28);
    background: rgba(34, 211, 238, 0.06);
}

.rcx-live-calendar__event.is-done {
    opacity: 0.7;
}

.rcx-live-calendar__event-time {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--rcx-muted);
    margin-bottom: 3px;
}

.rcx-live-calendar__event-title {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--rcx-text);
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 5px;
}

.rcx-live-calendar__event .status-badge {
    font-size: 0.62rem;
    padding: 2px 6px;
}

.rcx-live-calendar__event-actions {
    margin-top: 8px;
}

.rcx-live-calendar__join-btn {
    width: 100% !important;
    margin: 0 !important;
    padding: 7px 8px !important;
    font-size: 0.68rem !important;
    border-radius: 999px !important;
}

.rcx-live-calendar__join-btn.btn-live {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #fff !important;
    border: none !important;
}

.rcx-live-calendar__join-btn.btn-soon {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #09090b !important;
    border: none !important;
}

.rcx-live-now-banner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.rcx-live-now-banner__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.14) 0%, rgba(127, 29, 29, 0.18) 100%);
    box-shadow: 0 10px 28px rgba(239, 68, 68, 0.12);
}

.rcx-live-now-banner__copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.rcx-live-now-banner__copy strong {
    font-size: 0.95rem;
    color: var(--rcx-text);
}

.rcx-live-now-banner__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rcx-live-now-banner__badge .fa-circle {
    font-size: 0.45rem;
}

.rcx-live-now-banner__meta {
    font-size: 0.76rem;
    color: var(--rcx-muted);
}

.rcx-live-now-banner__join {
    width: auto !important;
    min-width: 132px;
    padding: 10px 16px !important;
    font-size: 0.82rem !important;
}

.rcx-live-calendar__more {
    padding: 0 10px 10px;
    text-align: center;
    font-size: 0.68rem;
    color: var(--rcx-muted);
    font-style: italic;
}

@media (max-width: 1100px) {
    .rcx-live-calendar__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .rcx-live-calendar__head {
        padding: 16px;
    }

    .rcx-live-calendar__head-side {
        width: 100%;
        align-items: stretch;
    }

    .rcx-live-calendar__nav {
        justify-content: space-between;
        width: 100%;
    }

    .rcx-live-calendar__stat {
        justify-content: center;
    }

    .rcx-live-calendar__grid {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding: 14px 16px 16px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .rcx-live-calendar__day {
        flex: 0 0 148px;
        min-height: 210px;
        scroll-snap-align: start;
    }
}

/* Live sessions — schedule table */
.rcx-live-table-wrap {
    margin-top: 8px;
    border-radius: 16px;
    border: 1px solid var(--rcx-border-strong);
    background: linear-gradient(160deg, rgba(12, 14, 22, 0.92) 0%, rgba(8, 10, 18, 0.96) 100%);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.rcx-live-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.rcx-live-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.rcx-live-table thead {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--rcx-border-strong);
}

.rcx-live-table th {
    padding: 12px 14px;
    text-align: start;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rcx-dim);
    white-space: nowrap;
}

.rcx-live-table .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.rcx-live-table td {
    padding: 14px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--rcx-text);
}

.rcx-live-table tbody tr:last-child td {
    border-bottom: none;
}

.rcx-live-table__row {
    transition: background 0.18s ease;
}

.rcx-live-table__row:hover {
    background: rgba(139, 92, 246, 0.06);
}

.rcx-live-table__row--live {
    background: rgba(239, 68, 68, 0.05);
    box-shadow: inset 3px 0 0 #ef4444;
}

.rcx-live-table__row--soon {
    background: rgba(245, 158, 11, 0.04);
    box-shadow: inset 3px 0 0 #f59e0b;
}

.rcx-live-table__row--scheduled {
    box-shadow: inset 3px 0 0 rgba(34, 211, 238, 0.55);
}

.rcx-live-table__row--done {
    opacity: 0.72;
    box-shadow: inset 3px 0 0 rgba(148, 163, 184, 0.35);
}

.rcx-live-table__session {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 180px;
}

.rcx-live-table__session strong {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--rcx-text);
}

.rcx-live-table__session-desc,
.rcx-live-table__session-meta {
    font-size: 0.72rem;
    color: var(--rcx-muted);
    line-height: 1.4;
}

.rcx-live-table__session-meta {
    display: none;
}

.rcx-live-table__subject {
    font-weight: 600;
    color: var(--rcx-text);
}

.rcx-live-table__schedule {
    display: flex;
    flex-direction: column;
    gap: 2px;
    white-space: nowrap;
}

.rcx-live-table__schedule-date {
    font-weight: 700;
    color: var(--rcx-text);
}

.rcx-live-table__schedule-time {
    font-size: 0.76rem;
    color: var(--rcx-muted);
}

.rcx-live-table__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 200px;
}

.rcx-live-table__actions .btn,
.rcx-live-table__actions .glass-tile-btn {
    width: auto !important;
    margin: 0 !important;
    padding: 7px 10px !important;
    font-size: 0.72rem !important;
    border-radius: 999px !important;
    white-space: nowrap;
}

.rcx-live-table-skeleton {
    padding: 6px 0;
}

.rcx-live-table-skeleton__row {
    display: grid;
    grid-template-columns: 100px 1.6fr 1fr 0.8fr 1fr 1.4fr;
    gap: 14px;
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
}

.rcx-live-table-skeleton__row:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .rcx-live-table .rcx-live-table__col-subject,
    .rcx-live-table .rcx-live-table__col-level {
        display: none;
    }

    .rcx-live-table__session-meta {
        display: block;
    }

    .rcx-live-table-skeleton__row {
        grid-template-columns: 90px 1fr 1fr 1.2fr;
    }

    .rcx-live-table-skeleton__row > :nth-child(3),
    .rcx-live-table-skeleton__row > :nth-child(4) {
        display: none;
    }
}

.empty-state {
    background: var(--rcx-surface) !important;
    border: 1px dashed var(--rcx-border-strong) !important;
    border-radius: var(--rcx-radius-sm) !important;
    color: var(--rcx-muted) !important;
}

.empty-state i {
    color: var(--rcx-violet) !important;
}

/* Tabs */
.tab-btn,
.content-tab {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--rcx-border) !important;
    color: var(--rcx-muted) !important;
    border-radius: 12px !important;
}

.tab-btn.active,
.content-tab.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.16) 0%, rgba(34, 211, 238, 0.1) 100%) !important;
    border-color: rgba(139, 92, 246, 0.25) !important;
    color: var(--rcx-text) !important;
}

/* Modals */
.modal-content,
.modal-box {
    background: var(--rcx-elevated) !important;
    border: 1px solid var(--rcx-border) !important;
    border-radius: var(--rcx-radius) !important;
    color: var(--rcx-text) !important;
    box-shadow: var(--rcx-shadow) !important;
}

.modal {
    background: rgba(3, 3, 5, 0.75) !important;
    backdrop-filter: blur(8px);
}

/* Forms */
input,
textarea,
select,
.form-control {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--rcx-border-strong) !important;
    color: var(--rcx-text) !important;
    border-radius: 12px !important;
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus {
    border-color: rgba(139, 92, 246, 0.45) !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15) !important;
    outline: none !important;
}

input::placeholder,
textarea::placeholder {
    color: var(--rcx-dim) !important;
}

/* Mobile sheet menu */
.mobile-phone-menu-backdrop {
    background: rgba(3, 3, 5, 0.78) !important;
    backdrop-filter: blur(12px) !important;
}

.mobile-phone-menu-sheet {
    background:
        radial-gradient(ellipse 80% 40% at 50% 0%, rgba(139, 92, 246, 0.18), transparent 55%),
        linear-gradient(180deg, #12121a 0%, #0a0a0c 100%) !important;
    border: 1px solid var(--rcx-border) !important;
    border-bottom: none !important;
    box-shadow: 0 -24px 80px rgba(0, 0, 0, 0.6) !important;
}

.mobile-phone-menu-drag {
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), rgba(34, 211, 238, 0.5), transparent) !important;
}

.mobile-phone-menu-sheet-brand span {
    background: linear-gradient(105deg, #fafafa 0%, #c4b5fd 50%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mobile-phone-menu-close {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: var(--rcx-border) !important;
    color: var(--rcx-text) !important;
}

.mobile-phone-menu-search input {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: var(--rcx-border) !important;
    color: var(--rcx-text) !important;
}

.mobile-phone-menu-search input:focus {
    border-color: rgba(139, 92, 246, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12) !important;
}

.mobile-phone-menu-section-title {
    color: var(--rcx-dim) !important;
    font-family: var(--rcx-mono);
}

.mobile-phone-menu-row {
    border-color: var(--rcx-border) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--rcx-text) !important;
}

.mobile-phone-menu-row:active {
    background: rgba(139, 92, 246, 0.1) !important;
}

.mobile-phone-menu-row-icon {
    background: rgba(139, 92, 246, 0.12) !important;
    border-color: rgba(139, 92, 246, 0.22) !important;
    color: #c4b5fd !important;
}

.mobile-phone-menu-row--active {
    background: rgba(139, 92, 246, 0.14) !important;
    border-color: rgba(139, 92, 246, 0.28) !important;
    color: var(--rcx-text) !important;
}

.mobile-phone-menu-row--hot {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.14) 0%, rgba(236, 72, 153, 0.08) 100%) !important;
    border-color: rgba(139, 92, 246, 0.28) !important;
}

.mobile-phone-menu-points {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(234, 88, 12, 0.08) 100%) !important;
    border-color: rgba(251, 191, 36, 0.22) !important;
}

.mobile-phone-menu-badge {
    background: rgba(34, 197, 94, 0.18) !important;
    border: 1px solid rgba(34, 197, 94, 0.35) !important;
}

/* Bottom navigation bar — floating dock */
.bottom-nav.rcx-bottom-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    left: 10px;
    right: 10px;
    width: auto;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
    border-radius: 22px !important;
    border: 1px solid rgba(139, 92, 246, 0.22) !important;
    border-top: 1px solid rgba(139, 92, 246, 0.22) !important;
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(139, 92, 246, 0.12), transparent 55%),
        rgba(10, 10, 12, 0.92) !important;
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset !important;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    padding: 0 10px 10px;
}

.bottom-nav.rcx-bottom-nav.rcx-bottom-nav--dock {
    overflow: visible;
}

.bottom-nav.rcx-bottom-nav::before {
    display: none !important;
}

.rcx-bottom-nav-handle {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 6px 14px 2px;
    margin: 0 -8px;
    touch-action: none;
    cursor: pointer;
    background: transparent;
    border-radius: 18px 18px 0 0;
    border-top: none;
}

.rcx-bottom-nav-handle:active {
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.18) 0%, transparent 60%);
}

.rcx-bottom-nav-swipe-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    line-height: 0.55;
    color: var(--rcx-cyan);
    font-size: 0.58rem;
    animation: rcxSwipeNudge 1.75s ease-in-out infinite;
}

.rcx-bottom-nav-swipe-row i {
    display: block;
    filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.5));
}

.rcx-bottom-nav-swipe-row i:nth-child(2),
.rcx-bottom-nav-swipe-row i:nth-child(3) {
    margin-top: -3px;
    opacity: 0.92;
}

@keyframes rcxSwipeNudge {
    0%, 100% { transform: translateY(4px); opacity: 0.65; }
    50% { transform: translateY(-5px); opacity: 1; }
}

.rcx-bottom-nav-pill {
    width: 56px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.4), rgba(34, 211, 238, 0.9), rgba(139, 92, 246, 0.4));
    animation: rcxPillGlow 2.2s ease-in-out infinite;
}

@keyframes rcxPillGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(139, 92, 246, 0.25); opacity: 0.88; }
    50% { box-shadow: 0 0 18px rgba(34, 211, 238, 0.4); opacity: 1; }
}

.rcx-bottom-nav-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rcx-muted);
    font-family: var(--rcx-mono);
}

.rcx-bottom-nav-hint::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rcx-violet), var(--rcx-cyan));
    box-shadow: 0 0 8px var(--rcx-glow);
}

.rcx-bottom-nav-items {
    display: flex;
    gap: 6px;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none;
    flex: 1;
    min-height: 0;
    padding-bottom: 2px;
}

.rcx-bottom-nav-items::-webkit-scrollbar {
    display: none;
}

.rcx-bottom-nav-item {
    flex: 0 0 auto;
    min-width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 8px 10px;
    color: var(--rcx-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--rcx-border);
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.rcx-bottom-nav-item i {
    font-size: 1rem;
    margin-bottom: 4px;
}

.rcx-bottom-nav-item span {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.rcx-bottom-nav-item.active {
    color: var(--rcx-text);
    border-color: rgba(139, 92, 246, 0.45);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22) 0%, rgba(34, 211, 238, 0.12) 100%);
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.2);
}

.rcx-bottom-nav-item.active i {
    color: var(--rcx-cyan);
}

/* Dock-style bottom nav (6 equal slots) */
.rcx-bottom-nav-items--dock {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2px;
    overflow: visible;
    padding: 4px 2px 2px;
    justify-content: stretch;
}

.rcx-bottom-nav-items--dock .rcx-bottom-nav-item {
    min-width: 0;
    width: 100%;
    padding: 4px 2px 6px;
    border-radius: 14px;
    background: transparent;
    border-color: transparent;
}

.rcx-bottom-nav-items--dock .rcx-bottom-nav-item span:last-child {
    font-size: 0.62rem;
    line-height: 1.1;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rcx-bottom-nav-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    margin-bottom: 2px;
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.rcx-bottom-nav-item__icon i {
    font-size: 1.05rem;
    margin-bottom: 0;
}

.rcx-bottom-nav-item__icon--avatar {
    padding: 0;
    overflow: hidden;
    background: rgba(139, 92, 246, 0.12);
}

.rcx-bottom-nav-item.active .rcx-bottom-nav-item__icon {
    background: rgba(139, 92, 246, 0.22);
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.22);
}

.rcx-bottom-nav-item--learn .rcx-bottom-nav-item__icon {
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.28), rgba(139, 92, 246, 0.22));
    border: 1px solid rgba(34, 197, 94, 0.42);
    box-shadow: 0 8px 22px rgba(34, 197, 94, 0.22);
}

.rcx-bottom-nav--dock .rcx-bottom-nav-item--learn {
    transform: translateY(-8px);
}

.rcx-bottom-nav--dock .rcx-bottom-nav-item--learn .rcx-bottom-nav-item__icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
}

.rcx-bottom-nav-item--learn.active .rcx-bottom-nav-item__icon {
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.32), rgba(139, 92, 246, 0.24));
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.28);
}

.rcx-bottom-nav-item--learn.active .rcx-bottom-nav-item__icon i {
    color: #4ade80;
}

.rcx-bottom-nav-item--live .rcx-bottom-nav-item__icon {
    background: linear-gradient(145deg, rgba(248, 113, 113, 0.28), rgba(239, 68, 68, 0.16));
    border: 1px solid rgba(248, 113, 113, 0.42);
}

.rcx-bottom-nav-item--live .rcx-bottom-nav-item__icon i {
    color: #fca5a5;
}

.rcx-bottom-nav-item--live.active .rcx-bottom-nav-item__icon {
    background: linear-gradient(145deg, rgba(248, 113, 113, 0.38), rgba(239, 68, 68, 0.2));
    box-shadow: 0 0 16px rgba(248, 113, 113, 0.32);
}

.rcx-bottom-nav-item--live.active .rcx-bottom-nav-item__icon i {
    color: #fecaca;
}

.rcx-bottom-nav-item--menu {
    cursor: pointer;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
    color: inherit;
}

.rcx-bottom-nav-item--menu .rcx-bottom-nav-item__icon {
    background: rgba(139, 92, 246, 0.1);
    border: 1px dashed rgba(139, 92, 246, 0.28);
}

.rcx-bottom-nav-item--menu:active .rcx-bottom-nav-item__icon,
.rcx-bottom-nav-item:active .rcx-bottom-nav-item__icon {
    transform: scale(0.94);
}

.rcx-bottom-nav-items--dock .rcx-bottom-nav-item.active {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
    .rcx-bottom-nav-swipe-row,
    .rcx-bottom-nav-pill {
        animation: none !important;
    }
}

.main-mobile-menu-toggle {
    background: linear-gradient(135deg, var(--rcx-violet), var(--rcx-cyan)) !important;
    animation: none !important;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35) !important;
}

/* Theme toggle */
.theme-toggle-btn {
    background: var(--rcx-surface) !important;
    border-color: var(--rcx-border) !important;
    color: var(--rcx-text) !important;
}

/* Loader — unified app boot (index.html + React) */
.rcx-app-boot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rcx-bg, #0a0a0c);
    color: var(--rcx-text, #f4f4f5);
    overflow: hidden;
}

.rcx-app-boot--fullscreen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    min-height: 100vh;
    min-height: 100dvh;
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.rcx-app-boot--overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.newgen-shell.rcx-app-ready .rcx-app-boot--fullscreen,
.newgen-shell.rcx-app-ready .rcx-app-boot--overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.newgen-shell:not(.rcx-app-ready) {
    overflow: hidden;
    max-height: 100vh;
    max-height: 100dvh;
}

.rcx-app-boot__ocean {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 45% at 50% 108%, rgba(56, 189, 248, 0.18), transparent 58%),
        radial-gradient(circle at 18% 22%, rgba(139, 92, 246, 0.22), transparent 42%),
        radial-gradient(circle at 82% 12%, rgba(34, 211, 238, 0.12), transparent 36%),
        radial-gradient(ellipse 90% 55% at 50% -15%, rgba(14, 116, 144, 0.2), transparent 58%),
        linear-gradient(180deg, #00010a 0%, #050816 42%, #02040c 100%);
    pointer-events: none;
}

.rcx-app-boot__grid {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(34, 211, 238, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
    opacity: 0.85;
    pointer-events: none;
}

.rcx-app-boot__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 32px 24px;
    max-width: 440px;
    width: 100%;
}

.rcx-app-boot__logo-wrap {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 20px;
}

/* Space boost, then hacker terminal */
.rcx-boot-stage {
    --rcx-boot-loop: 8s;
    position: relative;
    height: 268px;
    margin: 0 auto 16px;
    max-width: 400px;
}

.rcx-boot-space,
.rcx-boot-hack {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 18px;
}

.rcx-boot-space {
    z-index: 2;
    background:
        radial-gradient(ellipse 80% 50% at 50% 120%, rgba(14, 165, 233, 0.22), transparent 55%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.55));
    animation: rcxBootSpacePhase var(--rcx-boot-loop) ease-in-out infinite;
}

.rcx-boot-hack {
    z-index: 1;
    opacity: 0;
    animation: rcxBootHackPhase var(--rcx-boot-loop) ease-in-out infinite;
}

.rcx-boot-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.rcx-boot-stars--a,
.rcx-boot-stars--b {
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
}

.rcx-boot-stars--a {
    box-shadow:
        18px 22px #fff, 42px 90px #cbd5e1, 70px 40px #fff, 110px 16px #a5f3fc,
        148px 78px #fff, 190px 34px #e0f2fe, 230px 120px #fff, 28px 150px #67e8f9,
        88px 170px #fff, 168px 148px #c4b5fd, 250px 64px #fff, 310px 28px #fff,
        340px 110px #a78bfa, 300px 180px #fff, 12px 70px #fff, 200px 200px #67e8f9,
        260px 8px #fff, 120px 210px #fff, 56px 118px #e2e8f0, 330px 200px #22d3ee;
    animation: rcxBootStarDrift var(--rcx-boot-loop) linear infinite;
}

.rcx-boot-stars--b {
    width: 1px;
    height: 1px;
    box-shadow:
        8px 48px #fff, 54px 12px #fff, 96px 88px #94a3b8, 132px 50px #fff,
        176px 18px #fff, 214px 96px #c4b5fd, 268px 44px #fff, 318px 76px #fff,
        36px 200px #fff, 78px 228px #67e8f9, 154px 190px #fff, 292px 148px #fff,
        348px 220px #a5f3fc, 188px 130px #fff, 244px 210px #fff;
    animation: rcxBootStarDrift var(--rcx-boot-loop) linear infinite reverse;
}

.rcx-boot-warp {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.rcx-boot-warp span {
    position: absolute;
    top: -30%;
    width: 2px;
    height: 28%;
    border-radius: 99px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.95), #67e8f9);
    opacity: 0;
    animation: rcxBootWarp var(--rcx-boot-loop) ease-in infinite;
}

.rcx-boot-warp span:nth-child(1) { left: 8%; animation-delay: 0.05s; }
.rcx-boot-warp span:nth-child(2) { left: 18%; height: 42%; animation-delay: 0.12s; }
.rcx-boot-warp span:nth-child(3) { left: 28%; animation-delay: 0.02s; }
.rcx-boot-warp span:nth-child(4) { left: 38%; height: 50%; animation-delay: 0.18s; }
.rcx-boot-warp span:nth-child(5) { left: 48%; height: 36%; animation-delay: 0.08s; }
.rcx-boot-warp span:nth-child(6) { left: 58%; animation-delay: 0.22s; }
.rcx-boot-warp span:nth-child(7) { left: 68%; height: 44%; animation-delay: 0.1s; }
.rcx-boot-warp span:nth-child(8) { left: 78%; animation-delay: 0.16s; }
.rcx-boot-warp span:nth-child(9) { left: 88%; height: 38%; animation-delay: 0.04s; }
.rcx-boot-warp span:nth-child(10) { left: 94%; animation-delay: 0.2s; }

.rcx-boot-planet {
    position: absolute;
    left: 50%;
    top: 58%;
    width: 168px;
    height: 168px;
    margin-left: -84px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, #7dd3fc 0%, #0284c7 32%, #0f766e 52%, #0f172a 78%, #020617 100%);
    box-shadow:
        inset -22px -14px 36px rgba(0, 0, 0, 0.55),
        0 0 48px rgba(34, 211, 238, 0.28),
        0 0 0 10px rgba(125, 211, 252, 0.06);
    animation: rcxBootPlanet var(--rcx-boot-loop) cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.rcx-boot-planet::after {
    content: '';
    position: absolute;
    inset: 18% -18% auto;
    height: 22%;
    border-radius: 50%;
    border: 2px solid rgba(196, 181, 253, 0.45);
    transform: rotate(-18deg);
    opacity: 0.7;
}

.rcx-boot-rocket {
    position: absolute;
    left: 50%;
    bottom: -40%;
    width: 72px;
    margin-left: -36px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: rcxBootRocket var(--rcx-boot-loop) cubic-bezier(0.33, 1, 0.68, 1) infinite;
}

.rcx-boot-rocket__body {
    position: relative;
    z-index: 2;
    width: 64px;
    height: 64px;
    border-radius: 22px 22px 16px 16px;
    background: rgba(8, 10, 18, 0.88);
    border: 1px solid rgba(167, 139, 250, 0.45);
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.45), 0 12px 28px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rcx-boot-rocket__mark {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 12px;
}

.rcx-boot-rocket__fin {
    position: absolute;
    bottom: 10px;
    width: 14px;
    height: 22px;
    background: linear-gradient(180deg, #a78bfa, #6366f1);
    z-index: 1;
}

.rcx-boot-rocket__fin--l {
    left: 2px;
    clip-path: polygon(100% 0, 100% 100%, 0 80%);
}

.rcx-boot-rocket__fin--r {
    right: 2px;
    clip-path: polygon(0 0, 100% 80%, 0 100%);
}

.rcx-boot-rocket__flame,
.rcx-boot-rocket__flame--core {
    position: absolute;
    top: 58px;
    left: 50%;
    width: 16px;
    height: 42px;
    margin-left: -8px;
    border-radius: 40% 40% 50% 50%;
    background: linear-gradient(180deg, #fff 0%, #fbbf24 28%, #f97316 62%, transparent);
    filter: blur(0.4px);
    animation: rcxBootFlame 0.18s ease-in-out infinite alternate;
}

.rcx-boot-rocket__flame--core {
    width: 8px;
    margin-left: -4px;
    height: 52px;
    background: linear-gradient(180deg, #fff, #67e8f9 40%, transparent);
    animation-duration: 0.12s;
}

.rcx-boot-space__tag {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    z-index: 4;
    font-family: var(--rcx-mono, ui-monospace, monospace);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: #a5f3fc;
    text-shadow: 0 0 16px rgba(34, 211, 238, 0.55);
}

.rcx-boot-rain {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
    overflow: hidden;
    mask-image: linear-gradient(180deg, transparent, #000 12%, #000 78%, transparent);
}

.rcx-boot-rain span {
    font-family: var(--rcx-mono, ui-monospace, monospace);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    color: rgba(52, 211, 153, 0.55);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    animation: rcxBootRainFall 4.6s linear infinite;
}

.rcx-boot-rain span:nth-child(odd) { color: rgba(34, 211, 238, 0.42); }
.rcx-boot-rain span:nth-child(1) { animation-duration: 5.2s; animation-delay: 0s; }
.rcx-boot-rain span:nth-child(2) { animation-duration: 4s; animation-delay: -1.2s; }
.rcx-boot-rain span:nth-child(3) { animation-duration: 5.8s; animation-delay: -0.6s; }
.rcx-boot-rain span:nth-child(4) { animation-duration: 3.6s; animation-delay: -2s; }
.rcx-boot-rain span:nth-child(5) { animation-duration: 4.9s; animation-delay: -0.3s; }
.rcx-boot-rain span:nth-child(6) { animation-duration: 4.4s; animation-delay: -1.8s; }
.rcx-boot-rain span:nth-child(7) { animation-duration: 5.6s; animation-delay: -0.9s; }
.rcx-boot-rain span:nth-child(8) { animation-duration: 3.9s; animation-delay: -2.4s; }

.rcx-boot-code {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 28px;
    z-index: 2;
    text-align: start;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(2, 10, 6, 0.82);
    border: 1px solid rgba(52, 211, 153, 0.28);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 24px rgba(16, 185, 129, 0.12);
}

.rcx-boot-code__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(16, 185, 129, 0.08);
    border-bottom: 1px solid rgba(52, 211, 153, 0.14);
}

.rcx-boot-code__bar em {
    margin-inline-start: 8px;
    font-style: normal;
    font-family: var(--rcx-mono, ui-monospace, monospace);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: #6ee7b7;
}

.rcx-boot-code__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.rcx-boot-code__dot--r { background: #f87171; }
.rcx-boot-code__dot--y { background: #fbbf24; }
.rcx-boot-code__dot--g { background: #34d399; }

.rcx-boot-code__body {
    margin: 0;
    padding: 12px 14px 14px;
    font-family: var(--rcx-mono, ui-monospace, monospace);
    font-size: 0.7rem;
    line-height: 1.7;
    color: #d1fae5;
}

.rcx-boot-code__line {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    border-right: 2px solid transparent;
}

.rcx-boot-code__line--1 { animation: rcxBootType1 var(--rcx-boot-loop) steps(24, end) infinite; }
.rcx-boot-code__line--2 { animation: rcxBootType2 var(--rcx-boot-loop) steps(32, end) infinite; }
.rcx-boot-code__line--3 { animation: rcxBootType3 var(--rcx-boot-loop) steps(28, end) infinite; }
.rcx-boot-code__line--4 { animation: rcxBootType4 var(--rcx-boot-loop) steps(22, end) infinite; }
.rcx-boot-code__line--5 { animation: rcxBootType5 var(--rcx-boot-loop) steps(12, end) infinite; }

.rcx-boot-code__prompt { color: #34d399; margin-inline-end: 6px; }
.rcx-boot-code__k { color: #c4b5fd; }
.rcx-boot-code__f { color: #67e8f9; }
.rcx-boot-code__s { color: #fde68a; }
.rcx-boot-code__c { color: #64748b; }
.rcx-boot-code__ok { color: #34d399; font-weight: 700; }
.rcx-boot-code__hex { color: #fb7185; }

.rcx-boot-code__caret {
    display: inline-block;
    width: 7px;
    height: 0.9em;
    margin-inline-start: 4px;
    background: #34d399;
    vertical-align: -2px;
    opacity: 0;
    animation: rcxBootCaret 0.7s steps(1) infinite;
}

@keyframes rcxBootSpacePhase {
    0%, 34% { opacity: 1; visibility: visible; }
    42%, 100% { opacity: 0; visibility: hidden; }
}

@keyframes rcxBootHackPhase {
    0%, 34% { opacity: 0; }
    42%, 92% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes rcxBootRocket {
    0% { bottom: -42%; transform: scale(0.72) rotate(-6deg); }
    8% { bottom: 18%; transform: scale(1) rotate(0deg); }
    22% { bottom: 38%; transform: scale(0.92) rotate(2deg); }
    34% { bottom: 118%; transform: scale(0.45) rotate(0deg); }
    100% { bottom: 118%; transform: scale(0.45); }
}

@keyframes rcxBootPlanet {
    0% { transform: translateY(42%) scale(1.35); opacity: 0.55; }
    18% { transform: translateY(0) scale(1); opacity: 1; }
    34% { transform: translateY(-18%) scale(0.72); opacity: 0.35; }
    42%, 100% { transform: translateY(-40%) scale(0.5); opacity: 0; }
}

@keyframes rcxBootWarp {
    0%, 6% { transform: translateY(-20%) scaleY(0.4); opacity: 0; }
    12% { transform: translateY(20%) scaleY(1.6); opacity: 0.95; }
    28% { transform: translateY(140%) scaleY(2.4); opacity: 0.15; }
    34%, 100% { transform: translateY(180%) scaleY(2.6); opacity: 0; }
}

@keyframes rcxBootStarDrift {
    0% { transform: translateY(0); }
    35% { transform: translateY(28px); }
    100% { transform: translateY(0); }
}

@keyframes rcxBootFlame {
    from { transform: scaleY(0.85) translateY(-2px); opacity: 0.85; }
    to { transform: scaleY(1.15) translateY(3px); opacity: 1; }
}

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

@keyframes rcxBootType1 {
    0%, 40% { width: 0; border-right-color: #34d399; }
    48%, 92% { width: 100%; border-right-color: transparent; }
    100% { width: 0; }
}

@keyframes rcxBootType2 {
    0%, 46% { width: 0; border-right-color: #34d399; }
    56%, 92% { width: 100%; border-right-color: transparent; }
    100% { width: 0; }
}

@keyframes rcxBootType3 {
    0%, 54% { width: 0; border-right-color: #34d399; }
    64%, 92% { width: 100%; border-right-color: transparent; }
    100% { width: 0; }
}

@keyframes rcxBootType4 {
    0%, 62% { width: 0; border-right-color: #34d399; }
    72%, 92% { width: 100%; border-right-color: transparent; }
    100% { width: 0; }
}

@keyframes rcxBootType5 {
    0%, 70% { width: 0; border-right-color: #34d399; }
    78%, 92% { width: 100%; border-right-color: transparent; }
    100% { width: 0; }
}

@keyframes rcxBootCaret {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes rcxBootRainFall {
    0% { transform: translateY(-22%); opacity: 0; }
    12% { opacity: 0.9; }
    100% { transform: translateY(36%); opacity: 0.12; }
}

.rcx-app-boot__logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.rcx-app-boot__ring {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 1px solid rgba(139, 92, 246, 0.35);
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.22), rgba(34, 211, 238, 0.12));
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.25);
    animation: rcxAppBootPulse 2.2s ease-in-out infinite;
}

.rcx-app-boot__ring::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 26px;
    border: 1px solid rgba(34, 211, 238, 0.2);
    animation: rcxAppBootRing 2.8s ease-in-out infinite;
}

.rcx-app-boot__brand {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: linear-gradient(105deg, #fafafa 0%, #c4b5fd 45%, #67e8f9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 6px;
}

.rcx-app-boot:not(.rcx-app-boot--offline) .rcx-app-boot__brand,
.rcx-app-boot:not(.rcx-app-boot--offline) .rcx-brand-dua--boot,
.rcx-app-boot:not(.rcx-app-boot--offline) .rcx-app-boot__text,
.rcx-app-boot:not(.rcx-app-boot--offline) .rcx-app-boot__bar {
    opacity: 0;
    animation: rcxBootCodeIn 0.5s ease forwards;
}

.rcx-app-boot:not(.rcx-app-boot--offline) .rcx-app-boot__brand { animation-delay: 0.35s; }
.rcx-app-boot:not(.rcx-app-boot--offline) .rcx-brand-dua--boot { animation-delay: 0.5s; }
.rcx-app-boot:not(.rcx-app-boot--offline) .rcx-app-boot__text { animation-delay: 0.62s; }
.rcx-app-boot:not(.rcx-app-boot--offline) .rcx-app-boot__bar { animation-delay: 0.72s; }

.rcx-brand-dua {
    margin: 0;
    color: rgba(196, 181, 253, 0.92);
    font-family: "Amiri", "Noto Naskh Arabic", "Traditional Arabic", serif;
    font-weight: 700;
    line-height: 1.55;
    text-align: center;
}

.rcx-brand-dua__ar {
    display: block;
    font-size: 1.05rem;
}

.rcx-brand-dua--boot {
    margin: 0 0 14px;
    color: rgba(226, 232, 240, 0.88);
}

.rcx-brand-dua--boot .rcx-brand-dua__ar {
    font-size: 1.2rem;
}

.rcx-hero__brand-wrap,
.rcx-welcome-screen__brand-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.rcx-brand-dua--hero,
.rcx-brand-dua--welcome {
    text-align: start;
    color: rgba(196, 181, 253, 0.9);
}

.rcx-brand-dua--hero .rcx-brand-dua__ar,
.rcx-brand-dua--welcome .rcx-brand-dua__ar {
    font-size: 0.95rem;
    letter-spacing: 0;
}

.rcx-app-boot__text {
    position: relative;
    margin: 0 0 22px;
    min-height: 1.2em;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rcx-muted, #94a3b8);
}

.rcx-app-boot__phase {
    display: block;
}

.rcx-app-boot__phase--space,
.rcx-app-boot__phase--hack {
    animation: rcxBootTextSpace 8s ease-in-out infinite;
}

.rcx-app-boot__phase--hack {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    animation-name: rcxBootTextHack;
}

@keyframes rcxBootTextSpace {
    0%, 34% { opacity: 1; }
    42%, 100% { opacity: 0; }
}

@keyframes rcxBootTextHack {
    0%, 34% { opacity: 0; }
    42%, 92% { opacity: 1; }
    100% { opacity: 0; }
}

.rcx-app-boot__text--slow .rcx-app-boot__phase--space,
.rcx-app-boot__text--slow .rcx-app-boot__phase--hack {
    animation: none;
}

.rcx-app-boot__text--slow .rcx-app-boot__phase--space { display: none; }
.rcx-app-boot__text--slow .rcx-app-boot__phase--hack { position: static; opacity: 1; }

.rcx-app-boot__bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 99px;
    margin-bottom: 22px;
    overflow: hidden;
}

.rcx-app-boot__bar-fill {
    display: block;
    height: 100%;
    width: 38%;
    border-radius: 99px;
    background: linear-gradient(90deg, #8b5cf6, #22d3ee, #8b5cf6);
    background-size: 200% 100%;
    animation: rcxAppBootBar 1.4s ease-in-out infinite;
}

.rcx-app-boot__nav-preview {
    display: grid;
    grid-template-columns: 52px 1fr;
    grid-template-rows: 1fr auto;
    gap: 8px;
    height: 100px;
    margin-bottom: 18px;
    opacity: 0.55;
}

.rcx-app-boot__nav-preview-side {
    grid-row: 1 / 3;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.15), rgba(34, 211, 238, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.2);
    animation: rcxAppBootShimmer 1.6s ease-in-out infinite;
}

.rcx-app-boot__nav-preview-main {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    animation: rcxAppBootShimmer 1.6s ease-in-out infinite 0.2s;
}

.rcx-app-boot__nav-preview-dock {
    grid-column: 1 / -1;
    height: 22px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.12), rgba(34, 211, 238, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.18);
    animation: rcxAppBootShimmer 1.6s ease-in-out infinite 0.35s;
}

.rcx-app-boot__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.rcx-app-boot__dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22d3ee;
    opacity: 0.35;
    animation: rcxAppBootDot 1.2s ease-in-out infinite;
}

.rcx-app-boot__dots span:nth-child(2) { animation-delay: 0.15s; background: #a78bfa; }
.rcx-app-boot__dots span:nth-child(3) { animation-delay: 0.3s; background: #67e8f9; }

/* Offline / lost connection boot state */
.rcx-app-boot--offline {
    background: linear-gradient(180deg, #0a0a0c 0%, #140818 50%, #0a0a0c 100%);
}

.rcx-app-boot__inner--offline {
    max-width: 420px;
}

.rcx-app-boot__offline-art {
    position: relative;
    width: 176px;
    height: 176px;
    margin: 0 auto 20px;
}

.rcx-app-boot__offline-art-ring {
    position: relative;
    z-index: 1;
    width: 168px;
    height: 168px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 35%, rgba(239, 68, 68, 0.12), transparent 58%),
        rgba(15, 15, 20, 0.92);
    border: 2px solid rgba(239, 68, 68, 0.42);
    box-shadow: 0 18px 42px rgba(239, 68, 68, 0.18);
    overflow: hidden;
}

.rcx-app-boot__offline-wifi {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5.6rem;
    color: rgba(148, 163, 184, 0.32);
    pointer-events: none;
}

.rcx-app-boot__offline-logo {
    position: relative;
    z-index: 2;
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 14px;
    background: rgba(10, 10, 12, 0.85);
    padding: 6px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.rcx-app-boot__offline-cross {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.rcx-app-boot__offline-cross-line {
    position: absolute;
    width: 78%;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #ef4444 18%, #dc2626 50%, #ef4444 82%, transparent);
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.55);
    transform: rotate(45deg);
}

.rcx-app-boot__offline-cross-line--reverse {
    transform: rotate(-45deg);
}

.rcx-app-boot__offline-art-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(239, 68, 68, 0.35);
    animation: rcxBootOfflinePulse 2s ease-out infinite;
}

.rcx-app-boot__offline-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.rcx-app-boot__offline-title {
    margin: 0 0 10px;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f8fafc;
}

.rcx-app-boot__text--offline {
    margin-bottom: 22px;
    line-height: 1.65;
    color: rgba(244, 244, 245, 0.82);
}

.rcx-app-boot__retry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rcx-app-boot__retry:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(99, 102, 241, 0.42);
}

@keyframes rcxBootOfflinePulse {
    0% { transform: scale(0.92); opacity: 0.7; }
    100% { transform: scale(1.15); opacity: 0; }
}

@keyframes rcxAppBootPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

@keyframes rcxAppBootRing {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
}

@keyframes rcxAppBootBar {
    0% { transform: translateX(-120%); background-position: 0% 50%; }
    100% { transform: translateX(280%); background-position: 100% 50%; }
}

@keyframes rcxAppBootDot {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
    40% { transform: translateY(-6px); opacity: 1; }
}

@keyframes rcxAppBootShimmer {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
    .rcx-boot-space,
    .rcx-boot-hack,
    .rcx-boot-stars--a,
    .rcx-boot-stars--b,
    .rcx-boot-warp span,
    .rcx-boot-planet,
    .rcx-boot-rocket,
    .rcx-boot-rocket__flame,
    .rcx-boot-rocket__flame--core,
    .rcx-boot-code,
    .rcx-boot-code__line,
    .rcx-boot-code__caret,
    .rcx-boot-rain,
    .rcx-boot-rain span,
    .rcx-app-boot__phase--space,
    .rcx-app-boot__phase--hack,
    .rcx-app-boot:not(.rcx-app-boot--offline) .rcx-app-boot__brand,
    .rcx-app-boot:not(.rcx-app-boot--offline) .rcx-brand-dua--boot,
    .rcx-app-boot:not(.rcx-app-boot--offline) .rcx-app-boot__text,
    .rcx-app-boot:not(.rcx-app-boot--offline) .rcx-app-boot__bar,
    .rcx-app-boot__bar-fill,
    .rcx-app-boot__ring,
    .rcx-app-boot__dots span,
    .rcx-app-boot__nav-preview-side,
    .rcx-app-boot__nav-preview-main,
    .rcx-app-boot__nav-preview-dock,
    .rcx-app-boot__offline-art-pulse {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        width: auto !important;
        visibility: visible !important;
    }

    .rcx-boot-space { position: relative; height: 140px; }
    .rcx-boot-hack { position: relative; }
    .rcx-boot-rocket { bottom: 28%; }
    .rcx-app-boot__phase--hack { position: static; }
    .rcx-boot-stage { height: auto; }
}

/* Subscriptions & content sections */
.subscriptions-section,
.content-section,
.live-sessions-section {
    color: var(--rcx-text);
}

.subscription-card,
.live-session-card,
.video-card,
.file-card {
    background: var(--rcx-surface) !important;
    border: 1px solid var(--rcx-border) !important;
    border-radius: var(--rcx-radius-sm) !important;
}

.subscription-card:hover,
.live-session-card:hover,
.video-card:hover,
.file-card:hover {
    border-color: rgba(139, 92, 246, 0.25) !important;
}

/* Study materials — header, tabs, trimester */
.study-materials-header {
    margin-bottom: 1rem;
    text-align: left;
    background: var(--rcx-surface);
    border-radius: var(--rcx-radius-sm);
    border: 1px solid var(--rcx-border);
    padding: 16px 18px;
    backdrop-filter: blur(12px);
}

.study-materials-header .modern-section-title {
    color: var(--rcx-text) !important;
}

.study-materials-header .modern-section-subtitle {
    color: var(--rcx-muted) !important;
}

.study-trimester-row {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.study-trimester-label {
    font-weight: 700;
    color: var(--rcx-text);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.study-trimester-label i {
    color: var(--rcx-violet);
}

/* 3D Trimester menu */
.trimester-3d-menu {
    width: 100%;
}

.trimester-3d-stage {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    perspective: 1000px;
    padding: 6px 2px 14px;
}

.trimester-3d-item {
    position: relative;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    animation: trimesterFloatIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: calc(var(--tri-index, 0) * 0.1s);
    outline: none;
}

.trimester-3d-item:focus-visible .trimester-3d-face-front {
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.35), 0 16px 40px rgba(0, 0, 0, 0.35);
}

@keyframes trimesterFloatIn {
    from {
        opacity: 0;
        transform: translateY(22px) rotateX(28deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0) scale(1);
    }
}

.trimester-3d-face-front {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 96px;
    padding: 14px 10px;
    border-radius: 16px;
    background: rgba(20, 20, 24, 0.78);
    border: 1px solid var(--rcx-border);
    backdrop-filter: blur(14px);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateZ(0) rotateX(8deg);
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.25s ease,
        box-shadow 0.35s ease,
        background 0.35s ease;
}

.trimester-3d-shadow {
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: -6px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.28), transparent 70%);
    filter: blur(6px);
    opacity: 0.35;
    transform: translateZ(-20px) scale(0.85);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.trimester-3d-item:hover {
    transform: translateY(-4px);
}

.trimester-3d-item:hover .trimester-3d-face-front {
    transform: translateZ(18px) rotateX(0deg);
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow:
        0 18px 36px rgba(0, 0, 0, 0.42),
        0 0 24px rgba(139, 92, 246, 0.12);
}

.trimester-3d-item:hover .trimester-3d-shadow {
    opacity: 0.65;
    transform: translateZ(-10px) scale(1);
}

.trimester-3d-item.is-active {
    transform: translateY(-8px) scale(1.02);
}

.trimester-3d-item.is-active .trimester-3d-face-front {
    background: linear-gradient(155deg, rgba(139, 92, 246, 0.24) 0%, rgba(34, 211, 238, 0.12) 100%);
    border-color: rgba(139, 92, 246, 0.55);
    box-shadow:
        0 20px 44px rgba(0, 0, 0, 0.45),
        0 0 36px rgba(139, 92, 246, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateZ(28px) rotateX(0deg);
}

.trimester-3d-item.is-active .trimester-3d-shadow {
    opacity: 0.85;
    transform: translateZ(-6px) scale(1.05);
}

.trimester-3d-item:active .trimester-3d-face-front {
    transform: translateZ(10px) rotateX(4deg) scale(0.98);
}

.trimester-3d-num {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    background: rgba(139, 92, 246, 0.14);
    color: var(--rcx-violet);
    border: 1px solid rgba(139, 92, 246, 0.28);
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15);
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.trimester-3d-item.is-active .trimester-3d-num {
    background: linear-gradient(135deg, var(--rcx-violet), var(--rcx-cyan));
    color: #09090b;
    transform: scale(1.08);
    border-color: transparent;
}

.trimester-3d-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--rcx-text);
    text-align: center;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.trimester-3d-item.is-active .trimester-3d-label {
    color: #fafafa;
}

@media (max-width: 520px) {
    .trimester-3d-stage {
        gap: 8px;
    }

    .trimester-3d-face-front {
        min-height: 84px;
        padding: 12px 6px;
    }

    .trimester-3d-num {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .trimester-3d-label {
        font-size: 0.72rem;
    }
}

.study-tab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

.study-tab {
    border-radius: 12px;
    border: 1px solid var(--rcx-border);
    background: rgba(255, 255, 255, 0.03);
    padding: 11px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    color: var(--rcx-text);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(8px);
}

.study-tab:hover {
    border-color: rgba(139, 92, 246, 0.25);
    background: rgba(139, 92, 246, 0.06);
}

.study-tab.is-active {
    border-color: rgba(139, 92, 246, 0.45);
    background: rgba(139, 92, 246, 0.12);
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.1);
}

.study-tab-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(139, 92, 246, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rcx-violet);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.study-tab.is-active .study-tab-icon {
    background: linear-gradient(135deg, var(--rcx-violet), var(--rcx-cyan));
    color: #09090b;
}

.study-tab-label {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--rcx-text);
    line-height: 1.2;
}

.study-tab-count {
    font-size: 0.76rem;
    color: var(--rcx-muted);
    margin-top: 2px;
}

.study-tab-check {
    color: var(--rcx-cyan);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.glass-chapter-block {
    margin-bottom: 28px;
}

.glass-chapter-title {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rcx-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.glass-chapter-title h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--rcx-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.02em;
}

.glass-chapter-title h3 i {
    color: var(--rcx-cyan);
    font-size: 0.85rem;
}

.glass-chapter-title span {
    font-size: 0.78rem;
    color: var(--rcx-muted);
}

/* Compact glass content tiles */
.glass-tile-grid,
.content-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)) !important;
    gap: 12px !important;
}

.glass-tile,
.content-item {
    background: rgba(20, 20, 24, 0.72) !important;
    border: 1px solid var(--rcx-border) !important;
    border-radius: 14px !important;
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    min-height: 0;
    color: var(--rcx-text);
}

.glass-tile::before,
.content-item::before {
    display: none !important;
}

.glass-tile.is-clickable,
.content-item[style*="cursor: pointer"] {
    cursor: pointer;
}

.glass-tile:hover,
.content-item:hover {
    border-color: rgba(139, 92, 246, 0.32) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 24px rgba(139, 92, 246, 0.08) !important;
}

.glass-tile.is-locked {
    opacity: 0.88;
}

.glass-tile-icon {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(34, 211, 238, 0.08));
    border-bottom: 1px solid var(--rcx-border);
    color: var(--rcx-cyan);
    font-size: 1.35rem;
}

.glass-tile.is-locked .glass-tile-icon {
    background: rgba(255, 255, 255, 0.04);
    color: var(--rcx-muted);
}

.glass-tile-thumb {
    position: relative;
    height: 88px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--rcx-border);
}

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

.glass-tile-thumb-fallback {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(34, 211, 238, 0.12));
    color: var(--rcx-text);
    font-size: 1.4rem;
}

.glass-tile-thumb.is-fallback .glass-tile-thumb-fallback {
    display: flex;
}

.glass-tile-thumb.is-fallback img {
    display: none;
}

.glass-tile-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.2s ease;
    color: #fff;
    font-size: 1.1rem;
}

.glass-tile:hover .glass-tile-play {
    opacity: 1;
}

.glass-tile-body,
.content-item-body {
    padding: 10px 11px 11px !important;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 4px;
}

.glass-tile-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(34, 211, 238, 0.12);
    color: var(--rcx-cyan);
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.glass-tile-title,
.content-item h4 {
    margin: 0 !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: var(--rcx-text) !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.glass-tile-sub,
.content-item p {
    margin: 0 !important;
    font-size: 0.74rem !important;
    line-height: 1.4 !important;
    color: var(--rcx-muted) !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.glass-tile-footer,
.content-meta {
    margin-top: auto !important;
    padding-top: 8px !important;
    border-top: 1px solid var(--rcx-border) !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
}

.glass-tile-meta {
    font-size: 0.7rem;
    color: var(--rcx-dim);
    line-height: 1.3;
}

.glass-tile-btn,
.content-meta .btn {
    width: 100%;
    padding: 6px 8px !important;
    border-radius: 8px !important;
    border: 1px solid var(--rcx-border-strong) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--rcx-text) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.glass-tile-btn:hover,
.content-meta .btn:hover {
    background: rgba(139, 92, 246, 0.14) !important;
    border-color: rgba(139, 92, 246, 0.35) !important;
    color: var(--rcx-text) !important;
}

.glass-difficulty {
    display: inline-flex;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: capitalize;
}

.glass-difficulty.easy { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.glass-difficulty.medium { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.glass-difficulty.hard { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.empty-state-modern {
    grid-column: 1 / -1;
    background: var(--rcx-surface) !important;
    border: 1px dashed var(--rcx-border-strong) !important;
    border-radius: var(--rcx-radius-sm) !important;
    color: var(--rcx-muted) !important;
}

.empty-state-modern h3 {
    color: var(--rcx-text) !important;
}

.empty-state-modern i {
    color: var(--rcx-violet) !important;
}

@media (max-width: 640px) {
    .glass-tile-grid,
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 10px !important;
    }

    .study-tab-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ═══════════════════════════════════════════
   Glass futuristic alerts (SweetAlert + toasts)
   ═══════════════════════════════════════════ */

@keyframes rcxGlassAlertIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.96);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes rcxGlassToastIn {
    from {
        opacity: 0;
        transform: translateX(28px) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes rcxGlassToastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(28px);
    }
}

@keyframes rcxGlassScan {
    0% { transform: translateY(-120%); opacity: 0; }
    20% { opacity: 0.35; }
    100% { transform: translateY(220%); opacity: 0; }
}

@keyframes rcxGlassGlow {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 0.85; }
}

.swal2-container.swal2-backdrop-show {
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    background: rgba(2, 6, 23, 0.55) !important;
}

.swal2-popup,
.rcx-glass-popup {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.03) 42%, rgba(139, 92, 246, 0.06) 100%) !important;
    color: var(--rcx-text) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 22px !important;
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(139, 92, 246, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    animation: rcxGlassAlertIn 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.swal2-popup::before,
.rcx-glass-popup::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.55), rgba(34, 211, 238, 0.35), rgba(139, 92, 246, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.65;
}

.swal2-popup::after,
.rcx-glass-popup::after {
    content: '';
    position: absolute;
    top: -40%;
    left: -20%;
    width: 140%;
    height: 45%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent);
    pointer-events: none;
    animation: rcxGlassScan 4.5s linear infinite;
}

.alert-popup,
.notification-permission-popup {
    max-width: min(92vw, 560px) !important;
}

.alert-popup__actions {
    display: flex !important;
    flex-direction: column-reverse !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 10px !important;
    margin-top: 1.25rem !important;
}

.alert-popup__actions .swal2-confirm,
.alert-popup__actions .swal2-cancel {
    width: 100% !important;
    margin: 0 !important;
}

@media (min-width: 480px) {
    .alert-popup__actions {
        flex-direction: row !important;
        justify-content: flex-end !important;
        align-items: center !important;
    }

    .alert-popup__actions .swal2-confirm,
    .alert-popup__actions .swal2-cancel {
        width: auto !important;
    }
}

.rcx-glass-popup__close {
    color: rgba(244, 244, 245, 0.72) !important;
    transition: color 0.15s, transform 0.15s !important;
}

.rcx-glass-popup__close:hover {
    color: #fff !important;
    transform: scale(1.08);
}

.swal2-title,
.alert-title,
.rcx-glass-popup__title {
    color: #f8fafc !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    text-shadow: 0 0 24px rgba(139, 92, 246, 0.25);
}

.swal2-html-container,
.alert-content,
.rcx-glass-popup__body {
    color: rgba(244, 244, 245, 0.88) !important;
    line-height: 1.65 !important;
}

.swal2-icon {
    border-color: rgba(139, 92, 246, 0.35) !important;
    color: #c4b5fd !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #34d399 !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(52, 211, 153, 0.35) !important;
}

.swal2-icon.swal2-error {
    border-color: rgba(248, 113, 113, 0.4) !important;
}

.swal2-icon.swal2-warning {
    border-color: rgba(251, 191, 36, 0.45) !important;
    color: #fbbf24 !important;
}

.swal2-icon.swal2-info {
    border-color: rgba(34, 211, 238, 0.4) !important;
    color: #22d3ee !important;
}

.swal2-actions {
    gap: 10px !important;
    margin-top: 1.25rem !important;
}

.swal2-confirm,
.swal2-cancel,
.swal2-deny,
.rcx-glass-btn {
    border-radius: 999px !important;
    padding: 10px 22px !important;
    font-weight: 700 !important;
    font-size: 0.86rem !important;
    letter-spacing: 0.03em !important;
    border: 1px solid transparent !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s !important;
}

.swal2-confirm:hover,
.rcx-glass-btn--primary:hover {
    transform: translateY(-1px);
}

.swal2-confirm,
.rcx-glass-btn--primary {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(99, 102, 241, 0.9)) !important;
    color: #fff !important;
    border-color: rgba(196, 181, 253, 0.35) !important;
}

.swal2-cancel,
.rcx-glass-btn--ghost {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #e4e4e7 !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

.swal2-deny,
.rcx-glass-btn--muted {
    background: rgba(239, 68, 68, 0.14) !important;
    color: #fecaca !important;
    border-color: rgba(248, 113, 113, 0.35) !important;
}

/* Toast alerts */
.swal2-popup.swal2-toast {
    border-radius: 16px !important;
    padding: 12px 16px !important;
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(34, 211, 238, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    animation: rcxGlassToastIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.swal2-popup.swal2-toast .swal2-title {
    font-size: 0.92rem !important;
    margin: 0 !important;
}

/* Admin alert card body */
.rcx-alert-card {
    position: relative;
    text-align: left;
    margin: 12px 0 0;
    padding: 16px 16px 14px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.rcx-alert-card__scan {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.06), transparent);
    animation: rcxGlassScan 5s linear infinite;
    pointer-events: none;
}

.rcx-alert-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

.rcx-alert-card__message {
    margin: 0;
    color: rgba(244, 244, 245, 0.92);
    line-height: 1.65;
    font-size: 0.94rem;
}

.rcx-alert-card--info .rcx-alert-card__badge { color: #67e8f9; border-color: rgba(34, 211, 238, 0.3); }
.rcx-alert-card--success .rcx-alert-card__badge { color: #86efac; border-color: rgba(52, 211, 153, 0.3); }
.rcx-alert-card--warning .rcx-alert-card__badge { color: #fcd34d; border-color: rgba(251, 191, 36, 0.3); }
.rcx-alert-card--error .rcx-alert-card__badge { color: #fca5a5; border-color: rgba(248, 113, 113, 0.3); }

.rcx-alert-card--info { border-color: rgba(34, 211, 238, 0.22); }
.rcx-alert-card--success { border-color: rgba(52, 211, 153, 0.22); }
.rcx-alert-card--warning { border-color: rgba(251, 191, 36, 0.22); }
.rcx-alert-card--error { border-color: rgba(248, 113, 113, 0.22); }

.rcx-alert-media {
    margin: 14px 0;
    text-align: center;
}

.rcx-alert-media img {
    max-width: 100%;
    max-height: 360px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.rcx-alert-media__video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.rcx-alert-media__video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.rcx-alert-media__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    color: #e0f2fe;
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.35);
    font-weight: 700;
    font-size: 0.86rem;
}

.rcx-alert-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rcx-alert-head__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.rcx-alert-head__icon--info { color: #22d3ee; }
.rcx-alert-head__icon--success { color: #4ade80; }
.rcx-alert-head__icon--warning { color: #fbbf24; }
.rcx-alert-head__icon--error { color: #f87171; }

.rcx-countdown-banner-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px 0;
}

.rcx-countdown-banner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    margin-bottom: 12px;
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.35);
    background:
        radial-gradient(600px 200px at 0% 0%, rgba(139, 92, 246, 0.18), transparent 60%),
        radial-gradient(500px 180px at 100% 100%, rgba(34, 211, 238, 0.1), transparent 55%),
        rgba(15, 15, 25, 0.92);
    overflow: hidden;
}

.rcx-countdown-banner__glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.08), transparent);
    pointer-events: none;
}

.rcx-countdown-banner__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    font-size: 1.2rem;
    flex-shrink: 0;
    z-index: 1;
}

.rcx-countdown-banner__body {
    flex: 1;
    min-width: 0;
    z-index: 1;
}

.rcx-countdown-banner__body strong {
    display: block;
    color: #f4f4f5;
    font-size: 1rem;
    margin-bottom: 4px;
}

.rcx-countdown-banner__body p {
    margin: 0 0 10px;
    font-size: 0.88rem;
    color: var(--rcx-muted);
    line-height: 1.45;
}

.rcx-countdown-banner__timer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rcx-countdown-unit {
    min-width: 58px;
    padding: 8px 10px;
    border-radius: 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rcx-countdown-unit__value {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: #e9d5ff;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.rcx-countdown-unit__label {
    display: block;
    margin-top: 2px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(196, 181, 253, 0.75);
}

.rcx-countdown-banner__close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    flex-shrink: 0;
    z-index: 1;
    transition: background 0.15s ease, color 0.15s ease;
}

.rcx-countdown-banner__close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

@media (max-width: 640px) {
    .rcx-countdown-banner {
        flex-wrap: wrap;
        padding-right: 14px;
    }

    .rcx-countdown-banner__close {
        position: absolute;
        top: 10px;
        right: 10px;
    }
}

/* Floating notification toasts */
.rcx-glass-alert-stack {
    position: fixed;
    top: calc(76px + env(safe-area-inset-top, 0px));
    right: 16px;
    z-index: 99990;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(92vw, 400px);
    pointer-events: none;
}

.rcx-glass-alert-stack .rcx-glass-alert {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    pointer-events: auto;
}

.rcx-glass-alert {
    position: fixed;
    top: 80px;
    right: 16px;
    max-width: min(92vw, 400px);
    width: 100%;
    z-index: 99999;
    cursor: pointer;
    padding: 14px 14px 16px 16px;
    border-radius: 18px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(18, 14, 10, 0.94), rgba(26, 18, 12, 0.88));
    border: 1px solid rgba(232, 197, 71, 0.18);
    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(139, 92, 246, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    animation: rcxGlassToastIn 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.rcx-glass-alert__accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 18px 0 0 18px;
    background: linear-gradient(180deg, #22d3ee, #8b5cf6);
}

.rcx-glass-alert--info .rcx-glass-alert__accent { background: linear-gradient(180deg, #22d3ee, #0891b2); }
.rcx-glass-alert--success .rcx-glass-alert__accent { background: linear-gradient(180deg, #4ade80, #16a34a); }
.rcx-glass-alert--warning .rcx-glass-alert__accent { background: linear-gradient(180deg, #fbbf24, #d97706); }
.rcx-glass-alert--error .rcx-glass-alert__accent { background: linear-gradient(180deg, #f87171, #dc2626); }

.rcx-glass-alert__progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    transform-origin: left center;
    background: linear-gradient(90deg, rgba(232, 197, 71, 0.95), rgba(34, 211, 238, 0.95));
    animation: rcxAlertProgress 6s linear forwards;
}

.rcx-glass-alert--paused .rcx-glass-alert__progress {
    animation-play-state: paused;
}

.rcx-glass-alert:hover {
    transform: translateX(-4px);
    box-shadow:
        0 26px 70px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(232, 197, 71, 0.22);
}

.rcx-glass-alert--closing {
    animation: rcxGlassToastOut 0.32s ease-in forwards;
}

.rcx-glass-alert__row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.rcx-glass-alert__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.05rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.rcx-glass-alert--info .rcx-glass-alert__icon { background: rgba(34, 211, 238, 0.22); color: #67e8f9; }
.rcx-glass-alert--success .rcx-glass-alert__icon { background: rgba(52, 211, 153, 0.22); color: #86efac; }
.rcx-glass-alert--warning .rcx-glass-alert__icon { background: rgba(251, 191, 36, 0.22); color: #fcd34d; }
.rcx-glass-alert--error .rcx-glass-alert__icon { background: rgba(248, 113, 113, 0.22); color: #fca5a5; }

.rcx-glass-alert__body {
    flex: 1;
    min-width: 0;
}

.rcx-glass-alert__label {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(232, 197, 71, 0.85);
    margin-bottom: 2px;
}

.rcx-glass-alert__title {
    color: #fef9ef;
    font-weight: 700;
    font-size: 0.94rem;
    margin-bottom: 4px;
}

.rcx-glass-alert__msg {
    color: rgba(244, 234, 220, 0.78);
    font-size: 0.84rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rcx-glass-alert__close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
    border-radius: 8px;
}

.rcx-glass-alert__close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* Notification bell + panel */
.rcx-notif-bell {
    position: fixed;
    top: calc(16px + env(safe-area-inset-top, 0px));
    right: 16px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.rcx-notif-bell__btn {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(232, 197, 71, 0.28);
    background:
        linear-gradient(145deg, rgba(42, 24, 16, 0.96), rgba(18, 14, 10, 0.92));
    color: #f4ead8;
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.rcx-notif-bell__btn:hover,
.rcx-notif-bell__btn--active {
    transform: translateY(-1px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(232, 197, 71, 0.18);
}

.rcx-notif-bell__badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(18, 14, 10, 0.95);
    animation: rcxNotifPulse 2s ease-in-out infinite;
}

.rcx-notif-bell__panel {
    margin-top: 10px;
    width: min(92vw, 380px);
    max-height: min(70vh, 520px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(160deg, rgba(18, 14, 10, 0.96), rgba(26, 18, 12, 0.92));
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    animation: rcxGlassToastIn 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.rcx-notif-bell__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rcx-notif-bell__head h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fef9ef;
    font-size: 1rem;
    font-weight: 700;
}

.rcx-notif-bell__count {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fecaca;
}

.rcx-notif-bell__view-all {
    border: 1px solid rgba(232, 197, 71, 0.28);
    background: rgba(232, 197, 71, 0.1);
    color: #f4ead8;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.rcx-notif-bell__list {
    max-height: 380px;
    overflow-y: auto;
    padding: 10px;
}

.rcx-notif-bell__empty {
    text-align: center;
    padding: 36px 16px;
    color: rgba(244, 234, 220, 0.65);
}

.rcx-notif-bell__empty i {
    font-size: 2rem;
    opacity: 0.45;
    margin-bottom: 10px;
}

.rcx-notif-bell__item {
    width: 100%;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-align: left;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: inherit;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.rcx-notif-bell__item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(2px);
}

.rcx-notif-bell__item.is-read { opacity: 0.72; }

.rcx-notif-bell__item-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
    color: #f4ead8;
}

.rcx-notif-bell__item-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.rcx-notif-bell__item-body strong {
    color: #fef9ef;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rcx-notif-bell__item-body span {
    color: rgba(244, 234, 220, 0.76);
    font-size: 0.78rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rcx-notif-bell__item-body em {
    font-style: normal;
    font-size: 0.68rem;
    color: rgba(244, 234, 220, 0.45);
}

/* Notifications modal */
.rcx-notif-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(2, 6, 23, 0.62);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.rcx-notif-modal__dialog {
    width: min(96vw, 640px);
    max-height: min(86vh, 760px);
    display: flex;
    flex-direction: column;
    padding: 0 !important;
}

.rcx-notif-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rcx-notif-modal__head h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fef9ef;
    font-size: 1.15rem;
}

.rcx-notif-modal__badge {
    font-size: 0.72rem;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fecaca;
}

.rcx-notif-modal__close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.rcx-notif-modal__body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
}

.rcx-notif-modal__mark-all {
    width: 100%;
    margin-bottom: 14px;
}

.rcx-notif-modal__empty {
    text-align: center;
    padding: 48px 16px;
    color: rgba(244, 234, 220, 0.65);
}

.rcx-notif-modal__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rcx-notif-card {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.22);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.rcx-notif-card:hover { background: rgba(255, 255, 255, 0.05); }
.rcx-notif-card.is-read { opacity: 0.72; cursor: default; }

.rcx-notif-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rcx-notif-card--info .rcx-notif-card__icon { background: rgba(34, 211, 238, 0.18); color: #67e8f9; }
.rcx-notif-card--success .rcx-notif-card__icon { background: rgba(52, 211, 153, 0.18); color: #86efac; }
.rcx-notif-card--warning .rcx-notif-card__icon { background: rgba(251, 191, 36, 0.18); color: #fcd34d; }
.rcx-notif-card--error .rcx-notif-card__icon { background: rgba(248, 113, 113, 0.18); color: #fca5a5; }

.rcx-notif-card__content h4 {
    margin: 0 0 6px;
    color: #fef9ef;
    font-size: 0.95rem;
}

.rcx-notif-card__content p {
    margin: 0 0 6px;
    color: rgba(244, 234, 220, 0.78);
    font-size: 0.86rem;
    line-height: 1.45;
}

.rcx-notif-card__content time {
    font-size: 0.72rem;
    color: rgba(244, 234, 220, 0.45);
}

.rcx-notif-card__dot {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.75);
}

.rcx-notif-modal__foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.swal2-title .rcx-alert-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    text-align: left;
    width: 100%;
}

.swal2-title .rcx-alert-head span:last-child {
    flex: 1;
    min-width: 0;
    font-size: 1.12rem;
    line-height: 1.35;
    color: #fef9ef;
}

.rcx-glass-popup__actions {
    gap: 10px !important;
    flex-wrap: wrap;
}

@keyframes rcxAlertProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@keyframes rcxNotifPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@media (max-width: 768px) {
    .rcx-notif-bell {
        top: calc(12px + env(safe-area-inset-top, 0px));
        right: 12px;
    }

    .rcx-glass-alert-stack {
        top: calc(68px + env(safe-area-inset-top, 0px));
        right: 12px;
        max-width: min(94vw, 400px);
    }

    .rcx-notif-modal {
        padding: 12px;
    }

    .rcx-notif-modal__dialog {
        width: 100%;
        max-height: 90vh;
    }
}

/* Login + slow network banners */
.rcx-login-banner {
    max-width: 900px;
    margin: 0 auto 16px;
    padding: 12px 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.86rem;
    color: #e5e7eb;
    background:
        linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(34, 211, 238, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.28);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.rcx-login-banner i {
    color: #fbbf24;
    font-size: 1rem;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.45));
}

.rcx-slow-banner {
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #e0f2fe;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(30, 27, 75, 0.78));
    border: 1px solid rgba(34, 211, 238, 0.35);
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.4),
        0 0 24px rgba(34, 211, 238, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    animation: rcxGlassAlertIn 0.4s ease;
}

.rcx-slow-banner i {
    color: #22d3ee;
    animation: rcxGlassGlow 2s ease-in-out infinite;
}

html[dir="rtl"] .rcx-glass-alert {
    right: auto;
    left: 16px;
    animation-name: rcxGlassToastIn;
}

html[dir="rtl"] .rcx-glass-alert:hover {
    transform: translateX(4px);
}

html[dir="rtl"] .rcx-glass-alert-stack {
    right: auto;
    left: 16px;
}

html[dir="rtl"] .rcx-notif-bell {
    right: auto;
    left: 16px;
}

.trimester-welcome-popup {
    border: 1px solid rgba(139, 92, 246, 0.35) !important;
    border-radius: 22px !important;
}

@media (max-width: 768px) {
    .hero {
        margin: 12px 12px 0 !important;
        border-radius: var(--rcx-radius-sm) !important;
    }

    #root #categories.categories,
    .categories {
        margin: 0 12px;
        border-radius: var(--rcx-radius-sm) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn:hover,
    .category-card:hover,
    .modern-card:hover {
        transform: none !important;
    }
}

/* ============================================
   Admin Panel — Light White Theme
   ============================================ */
body.admin-panel {
    --rcx-bg: #ffffff;
    --rcx-bg-2: #fafafa;
    --rcx-elevated: #ffffff;
    --rcx-surface: #ffffff;
    --rcx-text: #09090b;
    --rcx-muted: #71717a;
    --rcx-dim: #a1a1aa;
    --rcx-border: #e4e4e7;
    --rcx-border-strong: #d4d4d8;
    --text-primary: #09090b;
    --text-secondary: #3f3f46;
    --text-muted: #71717a;
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-card: #ffffff;
    --border-light: #e4e4e7;
    background-color: #ffffff !important;
    background-image: none !important;
    color: #09090b !important;
}

body.admin-panel::before {
    display: none !important;
}

body.admin-panel .admin-container {
    background: #ffffff !important;
}

body.admin-panel .admin-main-content-modern {
    background: #ffffff !important;
}

body.admin-panel .admin-header-modern {
    border-bottom-color: #e4e4e7 !important;
}

body.admin-panel .admin-header-title {
    color: #09090b !important;
}

body.admin-panel .admin-card-modern,
body.admin-panel .card {
    background: #ffffff !important;
    border: 1px solid #e4e4e7 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
    backdrop-filter: none;
    color: #09090b !important;
}

body.admin-panel .card h3,
body.admin-panel .admin-card-title {
    color: #09090b !important;
    border-bottom-color: #e4e4e7 !important;
}

body.admin-panel .card h3 i,
body.admin-panel .admin-card-title i {
    color: #09090b !important;
}

body.admin-panel .file-item,
body.admin-panel .video-item,
body.admin-panel .session-item,
body.admin-panel .list-item {
    background: #fafafa !important;
    border: 1px solid #e4e4e7 !important;
    color: #09090b !important;
}

body.admin-panel .file-item:hover,
body.admin-panel .video-item:hover,
body.admin-panel .session-item:hover,
body.admin-panel .list-item:hover {
    border-color: #d4d4d8 !important;
    background: #f4f4f5 !important;
}

body.admin-panel .admin-sidebar-modern {
    background: #fafafa !important;
    border-right: 1px solid #e4e4e7 !important;
}

body.admin-panel .admin-sidebar-nav-link.active {
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

body.admin-panel .admin-sidebar-nav-link.active::before,
body.admin-panel .admin-sidebar-nav-link:hover::before {
    background: #09090b !important;
}

body.admin-panel .admin-sidebar-nav-link i {
    color: #71717a !important;
}

body.admin-panel .admin-sidebar-nav-link.active i {
    color: #09090b !important;
}

body.admin-panel .admin-table-modern {
    background: #ffffff !important;
    border: 1px solid #e4e4e7 !important;
}

body.admin-panel .admin-table-modern td {
    color: #09090b !important;
    border-bottom-color: #f4f4f5 !important;
}

body.admin-panel .admin-table-modern tbody tr:hover {
    background: #fafafa !important;
}

body.admin-panel .admin-form-input,
body.admin-panel .admin-form-select,
body.admin-panel .todo-input {
    background: #ffffff !important;
    border-color: #d4d4d8 !important;
    color: #09090b !important;
}

body.admin-panel .admin-form-label,
body.admin-panel .form-group label,
body.admin-panel .modal-header h3 {
    color: #3f3f46 !important;
}

body.admin-panel .modal .form-group p,
body.admin-panel .admin-container .form-group p,
body.admin-panel .form-hint {
    color: #71717a !important;
}

body.admin-panel .rcx-preview-panel {
    padding: 12px 14px;
    border-radius: 12px;
    background: #fafafa !important;
    border: 1px solid #e4e4e7 !important;
}

body.admin-panel .rcx-preview-panel label {
    margin-bottom: 8px;
    display: block;
    color: #09090b;
}

body.admin-panel .rcx-preview-panel p {
    margin: 0 0 6px;
    font-size: 0.9rem;
    color: #71717a !important;
}

body.admin-panel .rcx-preview-panel p strong {
    color: #09090b;
}

body.admin-panel .btn,
body.admin-panel .admin-btn-modern {
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #09090b !important;
    border: 1px solid #d4d4d8 !important;
}

body.admin-panel .admin-btn-primary,
body.admin-panel .btn-primary {
    background: #ffffff !important;
    color: #09090b !important;
    border: 1px solid #09090b !important;
}

/* Subscription plan cards — light style */
body.admin-panel .subscription-card-glass {
    position: relative;
    background: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden;
    border: 1px solid #e4e4e7 !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #09090b;
    backdrop-filter: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

body.admin-panel .subscription-card-glass:hover {
    transform: translateY(-2px);
    border-color: #d4d4d8 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

body.admin-panel .subscription-card-glass.featured {
    border: 2px solid #09090b !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
}

body.admin-panel .subscription-card-glass.featured:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
}

.subscription-card-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--rcx-violet), var(--rcx-cyan));
    color: #09090b;
    padding: 8px 24px;
    border-radius: 0 0 10px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.subscription-card-cta {
    width: 100%;
    padding: 16px 24px;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

body.admin-panel .subscription-card-cta.active {
    background: #f4f4f5 !important;
    color: #a1a1aa !important;
    cursor: not-allowed;
    opacity: 0.7;
    border: 1px solid #e4e4e7 !important;
}

body.admin-panel .subscription-card-cta.primary {
    background: #ffffff !important;
    color: #09090b !important;
    border: 1px solid #09090b !important;
}

body.admin-panel .subscription-card-cta.primary:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transform: scale(1.01);
}

/* Subscription access gate — animated plan train */
.rcx-access-gate {
    position: relative;
    overflow: hidden;
    padding: clamp(2.5rem, 6vw, 4rem) 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(139, 92, 246, 0.18), transparent 55%),
        radial-gradient(ellipse 60% 50% at 100% 100%, rgba(6, 182, 212, 0.12), transparent 50%),
        var(--rcx-bg, #0a0a0f);
    border-top: 1px solid var(--rcx-border);
    border-bottom: 1px solid var(--rcx-border);
}

.rcx-access-gate::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
    pointer-events: none;
}

.rcx-access-gate__inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.rcx-access-gate__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.28);
    margin-bottom: 1rem;
}

.rcx-access-gate__title {
    font-size: clamp(1.6rem, 4vw, 2.35rem);
    font-weight: 800;
    color: var(--rcx-text, #f8fafc);
    margin: 0 0 0.65rem;
    line-height: 1.15;
}

.rcx-access-gate__subtitle {
    color: var(--rcx-muted, #94a3b8);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 1.75rem;
    text-align: center;
}

.rcx-access-gate__header {
    text-align: center;
    margin-bottom: 2rem;
}

.rcx-access-gate__lock {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.1rem;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fbbf24;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(239, 68, 68, 0.12));
    border: 1px solid rgba(251, 191, 36, 0.25);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.rcx-plan-train-wrap {
    position: relative;
    margin-bottom: 1.5rem;
}

.rcx-plan-train-wrap::before,
.rcx-plan-train-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.rcx-plan-train-wrap::before {
    left: 0;
    background: linear-gradient(90deg, var(--rcx-bg, #0a0a0f), transparent);
}

.rcx-plan-train-wrap::after {
    right: 0;
    background: linear-gradient(270deg, var(--rcx-bg, #0a0a0f), transparent);
}

.rcx-plan-train {
    overflow: hidden;
    padding: 8px 0 16px;
}

.rcx-plan-train__track {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: rcx-plan-train-scroll 38s linear infinite;
    will-change: transform;
}

.rcx-plan-train:hover .rcx-plan-train__track {
    animation-play-state: paused;
}

@keyframes rcx-plan-train-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.rcx-plan-card {
    flex: 0 0 240px;
    width: 240px;
    border: none;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: var(--rcx-surface, #14141a);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-align: left;
}

.rcx-plan-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(139, 92, 246, 0.45);
    box-shadow: 0 22px 48px rgba(139, 92, 246, 0.2);
}

.rcx-plan-card__img-wrap {
    position: relative;
    height: 150px;
    background: linear-gradient(135deg, #1f1f23 0%, #111114 100%);
}

.rcx-plan-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rcx-plan-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.35);
    background: linear-gradient(135deg, #312e81 0%, #0e7490 100%);
}

.rcx-plan-card__body {
    padding: 14px 16px 16px;
}

.rcx-plan-card__name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--rcx-text, #f8fafc);
    margin: 0 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rcx-plan-card__price {
    font-size: 0.82rem;
    color: #fbbf24;
    font-weight: 600;
}

.rcx-plan-card__tap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--rcx-muted, #94a3b8);
}

.rcx-access-gate__hint {
    text-align: center;
    color: var(--rcx-muted, #94a3b8);
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
}

.rcx-access-gate__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.rcx-access-gate__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rcx-access-gate__btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}

.rcx-access-gate__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(139, 92, 246, 0.45);
}

.rcx-access-gate__btn--ghost {
    color: var(--rcx-text, #f8fafc);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.rcx-access-gate__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.rcx-plan-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(4, 6, 12, 0.82);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: rcx-fade-in 0.2s ease;
}

@keyframes rcx-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.rcx-plan-modal {
    width: min(480px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(180deg, #16161d 0%, #0f0f14 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
    animation: rcx-slide-up 0.28s ease;
}

@keyframes rcx-slide-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.rcx-plan-modal__hero {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #1f1f23, #111114);
}

.rcx-plan-modal__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rcx-plan-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s;
}

.rcx-plan-modal__close:hover {
    background: rgba(0, 0, 0, 0.75);
}

.rcx-plan-modal__content {
    padding: 22px 24px 24px;
}

.rcx-plan-modal__title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 8px;
}

.rcx-plan-modal__desc {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0 0 16px;
}

.rcx-plan-modal__features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.rcx-plan-modal__feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: #cbd5e1;
}

.rcx-plan-modal__feature i {
    color: #22c55e;
    width: 16px;
}

.rcx-plan-modal__price-box {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.rcx-plan-modal__price-label {
    font-size: 0.78rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.rcx-plan-modal__price-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fbbf24;
}

.rcx-plan-modal__balance {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 6px;
}

.rcx-plan-modal__balance--low {
    color: #f87171;
}

.rcx-plan-modal__actions {
    display: flex;
    gap: 10px;
}

.rcx-plan-modal__actions .rcx-access-gate__btn {
    flex: 1;
    justify-content: center;
}

@media (max-width: 640px) {
    .rcx-plan-card {
        flex: 0 0 200px;
        width: 200px;
    }

    .rcx-plan-card__img-wrap {
        height: 120px;
    }
}

.rcx-access-gate--inline {
    padding: 1.75rem 0 2rem;
    border: 1px solid var(--rcx-border);
    border-radius: var(--rcx-radius-sm, 12px);
    margin-top: 8px;
}

.rcx-access-gate--inline .rcx-access-gate__inner {
    padding: 0 16px;
}

.rcx-access-gate--inline .rcx-access-gate__header {
    margin-bottom: 1.25rem;
}

.rcx-access-gate--inline .rcx-access-gate__lock {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
    margin-bottom: 0.85rem;
}

.rcx-access-gate--inline .rcx-access-gate__title {
    font-size: clamp(1.25rem, 3vw, 1.6rem);
}

.rcx-access-gate--inline .rcx-access-gate__subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.subscription-card-check {
    color: var(--rcx-cyan) !important;
}

/* ═══ Subscriptions section — premium pricing redesign ═══ */
.subscriptions-section.rcx-subscriptions {
    position: relative;
    overflow: hidden;
    padding: clamp(3.5rem, 8vw, 5.5rem) 0;
    background:
        radial-gradient(ellipse 100% 60% at 50% -15%, rgba(139, 92, 246, 0.28), transparent 55%),
        radial-gradient(ellipse 55% 40% at 0% 100%, rgba(34, 211, 238, 0.14), transparent 50%),
        radial-gradient(ellipse 45% 35% at 100% 60%, rgba(251, 191, 36, 0.1), transparent 45%),
        linear-gradient(180deg, rgba(6, 10, 20, 0.65) 0%, var(--rcx-bg, #0a0a0c) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--rcx-text);
}

.rcx-subscriptions__orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.rcx-subscriptions__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.45;
}

.rcx-subscriptions__orb--1 {
    width: min(420px, 55vw);
    height: min(420px, 55vw);
    top: -8%;
    left: -6%;
    background: rgba(139, 92, 246, 0.35);
}

.rcx-subscriptions__orb--2 {
    width: min(360px, 48vw);
    height: min(360px, 48vw);
    bottom: -10%;
    right: -4%;
    background: rgba(34, 211, 238, 0.22);
}

.rcx-subscriptions__orb--3 {
    width: min(280px, 38vw);
    height: min(280px, 38vw);
    top: 35%;
    right: 18%;
    background: rgba(251, 191, 36, 0.18);
}

.rcx-subscriptions__glass-panel {
    position: relative;
    padding: clamp(22px, 4vw, 42px);
    border-radius: 28px;
    background: rgba(10, 12, 22, 0.42);
    backdrop-filter: blur(22px) saturate(1.35);
    -webkit-backdrop-filter: blur(22px) saturate(1.35);
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.09),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.rcx-subscriptions__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(139, 92, 246, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 85% 65% at 50% 25%, #000 10%, transparent 72%);
    opacity: 0.85;
}

.rcx-subscriptions__inner {
    position: relative;
    z-index: 1;
}

.rcx-subscriptions__head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 2rem;
}

.rcx-subscriptions__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    margin-bottom: 14px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fde68a;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.14), rgba(139, 92, 246, 0.12));
    border: 1px solid rgba(251, 191, 36, 0.28);
    box-shadow: 0 8px 28px rgba(251, 191, 36, 0.08);
}

.rcx-subscriptions__title {
    margin: 0 0 12px;
    font-size: clamp(1.85rem, 4.2vw, 2.65rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
    background: linear-gradient(135deg, #fff 0%, #e9d5ff 45%, #67e8f9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rcx-subscriptions__subtitle {
    margin: 0;
    color: var(--rcx-muted);
    font-size: 1.02rem;
    line-height: 1.65;
}

.rcx-subscriptions__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.rcx-subscriptions__balance {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fde68a;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.rcx-subscriptions__balance i {
    color: #fbbf24;
}

.rcx-subscriptions__balance strong {
    color: #fff;
    font-weight: 800;
}

.rcx-subscriptions__pay-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #a5f3fc;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.25);
}

.rcx-subscriptions__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 2.25rem;
}

.rcx-sub-billing {
    display: inline-flex;
    gap: 6px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(8, 12, 24, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.rcx-sub-billing__btn {
    position: relative;
    border: none;
    background: transparent;
    color: var(--rcx-muted);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 11px 22px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.22s, color 0.22s, box-shadow 0.22s, transform 0.18s;
    min-width: 118px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rcx-sub-billing__btn.is-active {
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.38);
}

.rcx-sub-billing__btn--annual.is-active {
    background: linear-gradient(135deg, #d97706, #ea580c);
    box-shadow: 0 10px 28px rgba(234, 88, 12, 0.32);
}

.rcx-sub-billing__save {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.rcx-sub-billing__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.rcx-subscriptions__filter,
.rcx-subscriptions__toggle {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 16, 28, 0.75);
    color: var(--rcx-text);
    border-radius: 999px;
    padding: 11px 18px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.18s;
    backdrop-filter: blur(12px);
}

.rcx-subscriptions__filter {
    min-width: 200px;
}

.rcx-subscriptions__toggle.is-active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(99, 102, 241, 0.28));
    border-color: rgba(167, 139, 250, 0.5);
    color: #fff;
}

.rcx-subscriptions__category {
    margin-bottom: 2.75rem;
}

.rcx-subscriptions__category-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 1.35rem;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--rcx-text);
}

.rcx-subscriptions__category-count {
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.14);
    border: 1px solid rgba(139, 92, 246, 0.28);
}

.rcx-subscriptions .subscriptions-grid,
.rcx-sub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
    gap: 28px;
    align-items: stretch;
}

/* ── Plan ticket cards ── */
.subscriptions-section.rcx-subscriptions .subscription-card-glass,
.rcx-sub-card,
.rcx-plan-ticket {
    --plan-accent: hsl(var(--plan-hue, 262) 72% 62%);
    --ticket-paper: #f6efe2;
    --ticket-ink: #1a1523;
    --ticket-muted: #6b5e52;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    height: 100%;
    border-radius: 18px;
    background: var(--ticket-paper);
    color: var(--ticket-ink);
    border: 1px solid rgba(58, 36, 18, 0.18);
    box-shadow:
        0 22px 48px rgba(28, 16, 8, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: visible;
}

.rcx-plan-ticket::before,
.rcx-plan-ticket::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--rcx-bg, #0b1020);
    z-index: 3;
    box-shadow: inset 0 0 0 1px rgba(58, 36, 18, 0.12);
}

.rcx-plan-ticket::before {
    top: -11px;
    right: 121px;
}

.rcx-plan-ticket::after {
    bottom: -11px;
    right: 121px;
}

.rcx-plan-ticket__main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px 20px;
    background:
        repeating-linear-gradient(
            90deg,
            transparent 0 18px,
            rgba(180, 40, 40, 0.08) 18px 20px
        ),
        linear-gradient(180deg, #fffaf1 0%, var(--ticket-paper) 100%);
    border-radius: 18px 0 0 18px;
}

.rcx-plan-ticket__stub {
    position: relative;
    display: flex;
    flex-direction: column;
    border-left: 2px dashed rgba(90, 62, 40, 0.35);
    background: linear-gradient(180deg, hsl(var(--plan-hue, 262) 42% 22%), hsl(var(--plan-hue, 262) 48% 12%));
    color: #fff;
    border-radius: 0 18px 18px 0;
    overflow: hidden;
}

.rcx-plan-ticket .rcx-sub-card__cover {
    position: relative;
    width: 100%;
    height: 88px;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(145deg, hsl(var(--plan-hue, 262) 58% 42%), hsl(var(--plan-hue, 262) 72% 24%));
}

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

.rcx-sub-card__cover-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.rcx-sub-card__cover-fallback span {
    font-size: 1.6rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.92);
}

.rcx-sub-card__cover-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.45) 100%);
}

.rcx-plan-ticket__stub-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px 16px;
    text-align: center;
}

.rcx-plan-ticket__stub .rcx-plan-ticket__kicker {
    color: rgba(255, 255, 255, 0.62);
}

.rcx-plan-ticket__stub-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92rem;
    letter-spacing: 0.08em;
}

.rcx-plan-ticket__stub-price {
    font-size: 0.78rem;
    font-weight: 800;
    color: #fde68a;
}

.rcx-plan-ticket__barcode {
    width: 78%;
    height: 42px;
    margin: 4px 0;
    background: repeating-linear-gradient(
        90deg,
        #111 0 2px,
        transparent 2px 4px,
        #111 4px 5px,
        transparent 5px 8px,
        #111 8px 11px,
        transparent 11px 13px
    );
    border-radius: 2px;
    filter: contrast(1.2);
}

.rcx-plan-ticket__stub-cycle {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.subscriptions-section.rcx-subscriptions .subscription-card-glass:hover,
.rcx-sub-card:hover,
.rcx-plan-ticket:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 56px rgba(28, 16, 8, 0.34);
}

.rcx-plan-ticket.featured {
    box-shadow:
        0 22px 48px rgba(180, 120, 20, 0.28),
        0 0 0 2px #d4a017;
}

.rcx-plan-ticket.is-owned,
.rcx-sub-owned.rcx-plan-ticket {
    box-shadow:
        0 22px 48px rgba(16, 80, 40, 0.22),
        0 0 0 2px #2f9e5b;
}

.rcx-sub-owned.is-expired {
    box-shadow:
        0 22px 48px rgba(120, 20, 20, 0.22),
        0 0 0 2px #c24141;
}

.rcx-plan-ticket__brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.rcx-plan-ticket__carrier {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8a3b2a;
}

.rcx-plan-ticket__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rcx-plan-ticket__stamp {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border: 2px solid currentColor;
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transform: rotate(-6deg);
}

.rcx-plan-ticket__stamp.is-featured {
    color: #b45309;
}

.rcx-plan-ticket__stamp.is-active {
    color: #15803d;
}

.rcx-plan-ticket__stamp.is-expired {
    color: #b91c1c;
}

.rcx-plan-ticket__route {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: end;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(90, 62, 40, 0.28);
}

.rcx-plan-ticket__kicker {
    display: block;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ticket-muted);
    margin-bottom: 3px;
}

.rcx-plan-ticket__title {
    margin: 0;
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--ticket-ink);
}

.rcx-plan-ticket__arrive {
    text-align: end;
}

.rcx-plan-ticket__arrive strong {
    display: block;
    font-size: 1.05rem;
}

.rcx-plan-ticket__arrive em {
    display: block;
    font-style: normal;
    font-size: 0.75rem;
    color: var(--ticket-muted);
}

.rcx-plan-ticket__flight {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #8a3b2a;
    padding-bottom: 8px;
}

.rcx-plan-ticket__flight span {
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.45;
}

.rcx-plan-ticket__desc {
    margin: 0;
    color: var(--ticket-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.rcx-plan-ticket__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px 12px;
}

.rcx-plan-ticket__meta strong {
    display: block;
    font-size: 0.86rem;
    line-height: 1.3;
    word-break: break-word;
}

.rcx-plan-ticket__fare {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(138, 59, 42, 0.06);
    border: 1px solid rgba(138, 59, 42, 0.12);
}

.rcx-sub-card__save-badge {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #166534;
    background: rgba(34, 197, 94, 0.16);
}

.rcx-sub-card__price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.rcx-sub-card__price {
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--ticket-ink);
}

.rcx-sub-card__price.is-discounted {
    color: #15803d;
}

.rcx-sub-card__price-old {
    font-size: 1.05rem;
    color: rgba(107, 94, 82, 0.65);
    text-decoration: line-through;
}

.rcx-sub-card__price-unit {
    font-size: 0.84rem;
    color: var(--ticket-muted);
    font-weight: 700;
}

.rcx-sub-card__price-period {
    display: block;
    font-size: 0.74rem;
    font-weight: 600;
    margin-top: 2px;
}

.rcx-sub-card__coupon-note,
.rcx-sub-card__price-equiv {
    margin: 8px 0 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #7c3aed;
    line-height: 1.45;
}

.rcx-sub-card__price-equiv {
    color: #166534;
}

.rcx-plan-ticket__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rcx-plan-ticket__features li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ticket-ink);
    line-height: 1.3;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(90, 62, 40, 0.12);
}

.rcx-plan-ticket__features i {
    color: var(--feat-color, #15803d);
    font-size: 0.72rem;
}

.rcx-plan-ticket__progress {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(21, 128, 61, 0.08);
    border: 1px solid rgba(21, 128, 61, 0.16);
}

.rcx-plan-ticket__progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--ticket-muted);
}

.rcx-plan-ticket__progress-meta strong {
    color: var(--ticket-ink);
}

.rcx-sub-card__footer,
.rcx-plan-ticket__actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rcx-sub-card__status {
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
}

.rcx-sub-card__status.is-ok {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(21, 128, 61, 0.22);
    color: #166534;
}

.rcx-sub-card__status.is-warn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(185, 28, 28, 0.22);
    color: #b91c1c;
}

.subscriptions-section.rcx-subscriptions .subscription-card-cta,
.rcx-sub-card__cta {
    width: 100%;
    padding: 13px 18px;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.18s ease, box-shadow 0.22s ease, opacity 0.18s ease;
}

.subscriptions-section.rcx-subscriptions .subscription-card-cta.primary,
.rcx-sub-card__cta.primary {
    color: #fff;
    background: linear-gradient(135deg, #8a3b2a, #c2410c);
    box-shadow: 0 10px 24px rgba(138, 59, 42, 0.28);
}

.rcx-sub-card.featured .rcx-sub-card__cta.primary,
.rcx-sub-card__cta.is-featured-cta {
    background: linear-gradient(135deg, #d4a017, #b45309);
    box-shadow: 0 10px 24px rgba(180, 83, 9, 0.28);
}

.subscriptions-section.rcx-subscriptions .subscription-card-cta.primary:hover:not(:disabled),
.rcx-sub-card__cta.primary:hover:not(:disabled) {
    transform: translateY(-1px);
}

.subscriptions-section.rcx-subscriptions .subscription-card-cta.active,
.rcx-sub-card__cta.active {
    background: rgba(90, 62, 40, 0.08);
    color: var(--ticket-muted);
    cursor: not-allowed;
    border: 1px solid rgba(90, 62, 40, 0.16);
}

.rcx-sub-card__cta:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.rcx-sub-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1.5rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    color: var(--rcx-muted);
}

.rcx-sub-empty i {
    display: block;
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.4;
    color: #c4b5fd;
}

.rcx-sub-empty p {
    margin: 0 0 6px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rcx-text);
}

.rcx-sub-owned__progress-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(90, 62, 40, 0.14);
    overflow: hidden;
    margin-top: 8px;
}

.rcx-sub-owned__progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #15803d, #4ade80);
    transition: width 0.3s ease;
}

.rcx-sub-owned.is-expired .rcx-sub-owned__progress-fill {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.rcx-sub-owned__alert {
    margin: 8px 0 0;
    font-size: 0.8rem;
    font-weight: 700;
}

.rcx-sub-owned__alert--danger {
    color: #b91c1c;
}

.rcx-sub-owned__alert--warn {
    color: #b45309;
}

.rcx-sub-owned__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.rcx-sub-owned__btn {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: none;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rcx-sub-owned__btn--renew {
    background: linear-gradient(135deg, #d4a017, #b45309);
    color: #fff;
}

.rcx-sub-owned__btn--view {
    background: rgba(90, 62, 40, 0.08);
    color: var(--ticket-ink);
    border: 1px solid rgba(90, 62, 40, 0.16);
}

@media (max-width: 720px) {
    .rcx-plan-ticket,
    .rcx-sub-card,
    .rcx-sub-owned.rcx-plan-ticket {
        grid-template-columns: 1fr;
    }

    .rcx-plan-ticket::before,
    .rcx-plan-ticket::after {
        top: auto;
        bottom: 147px;
        right: auto;
    }

    .rcx-plan-ticket::before {
        left: -11px;
    }

    .rcx-plan-ticket::after {
        right: -11px;
        left: auto;
    }

    .rcx-plan-ticket__main {
        border-radius: 18px 18px 0 0;
    }

    .rcx-plan-ticket__stub {
        flex-direction: row;
        border-left: none;
        border-top: 2px dashed rgba(255, 255, 255, 0.28);
        border-radius: 0 0 18px 18px;
        min-height: 136px;
    }

    .rcx-plan-ticket .rcx-sub-card__cover {
        width: 136px;
        height: auto;
        min-height: 136px;
    }

    .rcx-plan-ticket__stub-body {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        width: 100%;
    }

    .rcx-plan-ticket__route {
        grid-template-columns: 1fr;
    }

    .rcx-plan-ticket__arrive {
        text-align: start;
    }

    .rcx-plan-ticket__flight {
        display: none;
    }
}

@media (max-width: 640px) {
    .rcx-subscriptions__toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .rcx-sub-billing,
    .rcx-subscriptions__filter,
    .rcx-subscriptions__toggle {
        width: 100%;
    }

    .rcx-sub-billing {
        justify-content: center;
    }

    .rcx-subscriptions__stats {
        flex-direction: column;
    }

    .rcx-sub-card__price {
        font-size: 1.85rem;
    }
}

/* ── Section skeleton loaders ── */
@keyframes rcx-shimmer {
    0% { background-position: -480px 0; }
    100% { background-position: 480px 0; }
}

.rcx-skeleton {
    background: linear-gradient(
        90deg,
        rgba(148, 163, 184, 0.12) 25%,
        rgba(148, 163, 184, 0.22) 37%,
        rgba(148, 163, 184, 0.12) 63%
    );
    background-size: 960px 100%;
    animation: rcx-shimmer 1.4s ease-in-out infinite;
    border-radius: 8px;
}

.rcx-skeleton-tile,
.rcx-skeleton-card {
    pointer-events: none;
    border-color: rgba(148, 163, 184, 0.15) !important;
    background: rgba(15, 23, 42, 0.45) !important;
}

[data-performance-mode="simple"] .rcx-skeleton {
    animation: none;
    background: rgba(148, 163, 184, 0.18);
}

/* ═══ Best price subscription promo ad ═══ */
@keyframes rcxSubPromoSlideIn {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes rcxGoldShimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes rcxSubBtnPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.45), 0 8px 24px rgba(245, 158, 11, 0.35);
        transform: translateY(0);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(251, 191, 36, 0), 0 12px 32px rgba(245, 158, 11, 0.45);
        transform: translateY(-1px);
    }
}

@keyframes rcxBtnShine {
    0% { left: -120%; }
    55%, 100% { left: 140%; }
}

@keyframes rcxPromoSparkle {
    0%, 100% { opacity: 0.25; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.1); }
}

.rcx-sub-promo-ad {
    position: fixed;
    bottom: clamp(16px, 4vw, 28px);
    right: clamp(12px, 3vw, 24px);
    left: auto;
    z-index: 9990;
    width: min(400px, calc(100vw - 24px));
    padding: 22px 22px 20px;
    border-radius: 22px;
    border: 1px solid rgba(251, 191, 36, 0.35);
    background:
        radial-gradient(420px 180px at 0% 0%, rgba(251, 191, 36, 0.16), transparent 58%),
        radial-gradient(360px 160px at 100% 100%, rgba(139, 92, 246, 0.18), transparent 55%),
        linear-gradient(165deg, rgba(20, 16, 8, 0.97) 0%, rgba(12, 10, 22, 0.98) 100%);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    overflow: hidden;
    animation: rcxSubPromoSlideIn 0.65s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

.rcx-sub-promo-ad__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 30%, rgba(251, 191, 36, 0.06) 50%, transparent 70%);
}

.rcx-sub-promo-ad__sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.rcx-sub-promo-ad__sparkles span {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fde68a;
    box-shadow: 0 0 12px #fbbf24;
    animation: rcxPromoSparkle 2.4s ease-in-out infinite;
}

.rcx-sub-promo-ad__sparkles span:nth-child(1) { top: 18%; right: 14%; animation-delay: 0s; }
.rcx-sub-promo-ad__sparkles span:nth-child(2) { top: 62%; right: 8%; animation-delay: 0.8s; }
.rcx-sub-promo-ad__sparkles span:nth-child(3) { top: 38%; left: 10%; animation-delay: 1.4s; }

.rcx-sub-promo-ad__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(226, 232, 240, 0.75);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.rcx-sub-promo-ad__close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.rcx-sub-promo-ad__badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fde68a;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
}

.rcx-sub-promo-ad__title {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    padding-right: 28px;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
}

.rcx-sub-promo-ad__lead {
    position: relative;
    z-index: 1;
    margin: 0 0 16px;
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--rcx-muted);
}

.rcx-sub-promo-ad__plan {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.rcx-sub-promo-ad__plan-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(139, 92, 246, 0.2));
    color: #fde68a;
    font-size: 1.1rem;
}

.rcx-sub-promo-ad__plan-body strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.98rem;
    color: #f8fafc;
}

.rcx-sub-promo-ad__plan-body p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--rcx-muted);
}

.rcx-sub-promo-ad__features {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
}

.rcx-sub-promo-ad__features li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    color: rgba(241, 245, 249, 0.9);
}

.rcx-sub-promo-ad__features i {
    color: #4ade80;
    font-size: 0.72rem;
}

.rcx-sub-promo-ad__price-row {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    margin-bottom: 16px;
}

.rcx-sub-promo-ad__price-label {
    width: 100%;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.55);
}

.rcx-sub-promo-ad__price-gold {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    background: linear-gradient(135deg, #fde68a 0%, #fbbf24 22%, #fff7ed 45%, #f59e0b 68%, #d97706 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rcxGoldShimmer 3.5s linear infinite;
    filter: drop-shadow(0 2px 8px rgba(251, 191, 36, 0.35));
}

.rcx-sub-promo-ad__price-value {
    font-size: clamp(1.85rem, 5vw, 2.25rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
}

.rcx-sub-promo-ad__price-unit {
    font-size: 0.88rem;
    font-weight: 700;
    -webkit-text-fill-color: rgba(253, 230, 138, 0.85);
    color: rgba(253, 230, 138, 0.85);
}

.rcx-sub-promo-ad__popular {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.rcx-sub-promo-ad__btn {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #1c1408;
    background: linear-gradient(135deg, #fde68a 0%, #fbbf24 40%, #f59e0b 100%);
    overflow: hidden;
    animation: rcxSubBtnPulse 2.2s ease-in-out infinite;
    transition: transform 0.2s ease;
}

.rcx-sub-promo-ad__btn:hover {
    transform: translateY(-2px);
}

.rcx-sub-promo-ad__btn-shine {
    position: absolute;
    top: 0;
    left: -120%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    animation: rcxBtnShine 2.8s ease-in-out infinite;
    pointer-events: none;
}

.rcx-sub-promo-ad__btn--inline {
    width: auto;
    min-width: 180px;
    white-space: nowrap;
}

.rcx-sub-promo-inline {
    position: relative;
    margin: 0 auto 1.75rem;
    max-width: 920px;
    padding: clamp(18px, 3vw, 26px);
    border-radius: 22px;
    border: 1px solid rgba(251, 191, 36, 0.28);
    background:
        radial-gradient(600px 220px at 0% 0%, rgba(251, 191, 36, 0.12), transparent 60%),
        radial-gradient(500px 200px at 100% 100%, rgba(139, 92, 246, 0.14), transparent 55%),
        rgba(12, 10, 20, 0.55);
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    overflow: hidden;
    box-shadow:
        0 24px 56px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.rcx-sub-promo-inline--glass {
    display: grid;
    grid-template-columns: minmax(140px, 240px) 1fr;
    gap: clamp(16px, 3vw, 24px);
    padding: 0;
    overflow: hidden;
}

.rcx-sub-promo-inline--glass .rcx-sub-promo-inline__glow {
    z-index: 0;
}

.rcx-sub-promo-inline__media {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background: linear-gradient(145deg, hsl(var(--plan-hue, 262) 58% 42%), hsl(var(--plan-hue, 262) 72% 24%));
}

.rcx-sub-promo-inline__media img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
}

.rcx-sub-promo-inline__media-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.65) 100%);
    pointer-events: none;
}

.rcx-sub-promo-inline__media-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1c1917;
    background: linear-gradient(135deg, #fde68a, #fbbf24);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
}

.rcx-sub-promo-inline--glass .rcx-sub-promo-inline__content {
    padding: clamp(18px, 3vw, 26px);
    padding-left: 0;
    align-content: center;
}

@media (max-width: 720px) {
    .rcx-sub-promo-inline--glass {
        grid-template-columns: 1fr;
    }

    .rcx-sub-promo-inline__media img {
        min-height: 160px;
        max-height: 200px;
    }

    .rcx-sub-promo-inline--glass .rcx-sub-promo-inline__content {
        padding: 18px 20px 22px;
    }
}

.rcx-sub-promo-inline__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.05), transparent);
}

.rcx-sub-promo-inline__content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 16px;
}

.rcx-sub-promo-inline__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.14);
    border: 1px solid rgba(139, 92, 246, 0.28);
}

.rcx-sub-promo-inline__title {
    margin: 0 0 6px;
    font-size: clamp(1.25rem, 3vw, 1.55rem);
    font-weight: 800;
    color: #fff;
}

.rcx-sub-promo-inline__desc {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--rcx-muted);
}

.rcx-sub-promo-inline__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.rcx-sub-promo-inline__features li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    color: rgba(241, 245, 249, 0.92);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.rcx-sub-promo-inline__features i {
    color: #4ade80;
    font-size: 0.72rem;
}

.rcx-sub-promo-inline__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 4px;
}

.rcx-sub-promo-inline__price-label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.55);
}

@media (max-width: 640px) {
    .rcx-sub-promo-ad {
        right: 12px;
        left: 12px;
        width: auto;
    }

    .rcx-sub-promo-ad__features {
        grid-template-columns: 1fr;
    }

    .rcx-sub-promo-inline__cta {
        flex-direction: column;
        align-items: stretch;
    }

    .rcx-sub-promo-ad__btn--inline {
        width: 100%;
    }
}

[data-performance-mode="simple"] .rcx-sub-promo-ad,
[data-performance-mode="simple"] .rcx-sub-promo-ad__btn,
[data-performance-mode="simple"] .rcx-sub-promo-ad__price-gold {
    animation: none;
}

[data-performance-mode="simple"] .rcx-sub-promo-ad__btn-shine,
[data-performance-mode="simple"] .rcx-sub-promo-ad__sparkles {
    display: none;
}

/* ═══ Exams page ═══ */

/* Exams boot / loading screen */
.rcx-exams-boot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rcx-bg);
    color: var(--rcx-text);
    overflow: hidden;
}

.rcx-exams-boot--fullscreen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    min-height: 100vh;
    min-height: 100dvh;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(139, 92, 246, 0.22), transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 20%, rgba(34, 211, 238, 0.12), transparent 50%),
        var(--rcx-bg);
}

.rcx-exams-boot__glow {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(139, 92, 246, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.7;
    pointer-events: none;
}

.rcx-exams-boot__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 32px 24px;
    max-width: 340px;
}

.rcx-exams-boot__icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(34, 211, 238, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.35);
    font-size: 1.75rem;
    color: #c4b5fd;
    box-shadow: 0 16px 48px rgba(139, 92, 246, 0.2);
    animation: rcxExamsBootPulse 2s ease-in-out infinite;
}

.rcx-exams-boot__brand {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: linear-gradient(105deg, #fafafa 0%, #c4b5fd 55%, #67e8f9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}

.rcx-exams-boot__text {
    margin: 0 0 24px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--rcx-muted);
}

.rcx-exams-boot__bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    margin-bottom: 18px;
    overflow: hidden;
}

.rcx-exams-boot__bar-fill {
    display: block;
    height: 100%;
    width: 42%;
    border-radius: 99px;
    background: linear-gradient(90deg, #8b5cf6, #22d3ee);
    animation: rcxExamsBootBar 1.25s ease-in-out infinite;
}

.rcx-exams-boot__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.rcx-exams-boot__dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8b5cf6;
    opacity: 0.35;
    animation: rcxExamsBootDot 1.2s ease-in-out infinite;
}

.rcx-exams-boot__dots span:nth-child(2) { animation-delay: 0.15s; background: #a78bfa; }
.rcx-exams-boot__dots span:nth-child(3) { animation-delay: 0.3s; background: #22d3ee; }

@keyframes rcxExamsBootPulse {
    0%, 100% { transform: translateY(0); box-shadow: 0 16px 48px rgba(139, 92, 246, 0.2); }
    50% { transform: translateY(-5px); box-shadow: 0 22px 56px rgba(139, 92, 246, 0.32); }
}

@keyframes rcxExamsBootBar {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}

@keyframes rcxExamsBootDot {
    0%, 100% { opacity: 0.25; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1); }
}

.rcx-exams-shell--ready {
    animation: rcxExamsFadeIn 0.45s ease-out both;
}

@keyframes rcxExamsFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.rcx-exams-shell {
    min-height: 100vh;
    background:
        radial-gradient(ellipse 90% 50% at 50% -20%, rgba(139, 92, 246, 0.14), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(34, 211, 238, 0.08), transparent 45%),
        var(--rcx-bg);
    color: var(--rcx-text);
    padding-bottom: 48px;
}

.rcx-exams-hero {
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--rcx-border);
    background: rgba(20, 20, 24, 0.72);
    backdrop-filter: blur(16px);
}

.rcx-exams-hero__top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 18px;
    min-height: 0;
}

.rcx-exams-back {
    color: var(--rcx-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.rcx-exams-back:hover { color: var(--rcx-cyan); }

.rcx-exams-user {
    font-size: 0.85rem;
    color: var(--rcx-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.rcx-exams-hero__body {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.rcx-exams-hero__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(34, 211, 238, 0.16));
    color: #c4b5fd;
    font-size: 1.35rem;
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.rcx-exams-hero h1 {
    margin: 0;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
}

.rcx-exams-hero p {
    margin: 6px 0 0;
    font-size: 0.88rem;
    color: var(--rcx-dim);
    max-width: 520px;
}

.rcx-exams-hero__stats {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.rcx-exams-stat {
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--rcx-border);
    min-width: 88px;
}

.rcx-exams-stat span {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--rcx-text);
    line-height: 1.1;
}

.rcx-exams-stat small {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rcx-dim);
}

.rcx-exams-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px;
}

.rcx-exams-rules {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px !important;
    margin-bottom: 20px;
    border-color: rgba(239, 68, 68, 0.2) !important;
    background: rgba(239, 68, 68, 0.06) !important;
}

.rcx-exams-rules > i {
    color: #fca5a5;
    font-size: 1.2rem;
    margin-top: 2px;
}

.rcx-exams-rules strong {
    display: block;
    margin-bottom: 4px;
    color: #fecaca;
}

.rcx-exams-rules p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--rcx-muted);
    line-height: 1.5;
}

.rcx-exam-ban-banner {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.rcx-exam-ban-banner__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    flex-shrink: 0;
}

.rcx-exam-ban-banner strong {
    color: #fecaca;
    display: block;
    margin-bottom: 4px;
}

.rcx-exam-ban-banner p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--rcx-muted);
    line-height: 1.5;
}

.rcx-site-ban-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(8px);
}

.rcx-site-ban-card {
    width: min(480px, 100%);
    padding: 32px 28px;
    border-radius: 20px;
    background: linear-gradient(165deg, rgba(30, 27, 46, 0.98), rgba(15, 15, 25, 0.98));
    border: 1px solid rgba(239, 68, 68, 0.35);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(239, 68, 68, 0.08);
    text-align: center;
}

.rcx-site-ban-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
    font-size: 1.6rem;
}

.rcx-site-ban-card h2 {
    margin: 0 0 10px;
    font-size: 1.35rem;
    color: #fecaca;
}

.rcx-site-ban-card__lead {
    margin: 0 0 20px;
    font-size: 0.9rem;
    color: var(--rcx-muted);
    line-height: 1.55;
}

.rcx-site-ban-reason {
    text-align: left;
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.rcx-site-ban-reason strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fca5a5;
}

.rcx-site-ban-reason p {
    margin: 0;
    font-size: 0.95rem;
    color: #f4f4f5;
    line-height: 1.5;
    white-space: pre-wrap;
}

.rcx-site-ban-expiry {
    margin: 0 0 22px;
    font-size: 0.85rem;
    color: var(--rcx-muted);
}

.rcx-site-ban-expiry strong {
    color: #fcd34d;
}

.rcx-site-ban-logout {
    width: 100%;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
}

.rcx-restriction-banner-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.rcx-exams-loader-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px;
    color: var(--rcx-muted);
}

.rcx-exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.rcx-exam-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px !important;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.rcx-exam-card:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.28) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 32px rgba(139, 92, 246, 0.08);
}

.rcx-exam-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), rgba(34, 211, 238, 0.4), transparent);
    opacity: 0.6;
}

.rcx-exam-card-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.rcx-exam-card-titles { flex: 1; min-width: 0; }

.rcx-exam-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(34, 211, 238, 0.14));
    color: #c4b5fd;
    flex-shrink: 0;
}

.rcx-exam-card-head h3 {
    margin: 0;
    font-size: 1rem;
    flex: 1;
}

.rcx-exam-meta { font-size: 0.75rem; color: var(--rcx-dim); }

.rcx-exam-status {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid var(--rcx-border);
    flex-shrink: 0;
}

.rcx-exam-status--active { border-color: rgba(34, 211, 238, 0.4); color: #67e8f9; }
.rcx-exam-status--warning { border-color: rgba(245, 158, 11, 0.4); color: #fcd34d; }
.rcx-exam-status--pending { border-color: rgba(139, 92, 246, 0.4); color: #c4b5fd; }
.rcx-exam-status--done { border-color: rgba(34, 197, 94, 0.4); color: #86efac; }
.rcx-exam-status--muted { color: var(--rcx-dim); }
.rcx-exam-status--cheat { border-color: rgba(239, 68, 68, 0.45); color: #fca5a5; background: rgba(239, 68, 68, 0.08); }

.rcx-exam-cheat-notice {
    font-size: 0.85rem;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.28);
    color: #fca5a5;
}

.rcx-exam-card-desc { font-size: 0.85rem; color: var(--rcx-muted); margin: 0; }

.rcx-exam-card-meta {
    display: flex;
    gap: 14px;
    font-size: 0.8rem;
    color: var(--rcx-dim);
}

.rcx-exam-score, .rcx-exam-wait {
    font-size: 0.88rem;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--rcx-border);
}

.rcx-exam-btn-start, .rcx-exam-btn-primary {
    background: linear-gradient(135deg, var(--rcx-violet), #7c3aed) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    margin-top: auto;
}

.rcx-exam-btn-skip {
    background: transparent !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    color: #fca5a5 !important;
}

.rcx-exams-empty, .rcx-exams-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--rcx-muted);
}

.rcx-exams-empty__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--rcx-border);
    font-size: 1.6rem;
    opacity: 0.55;
}

/* Exam lock screen */
.rcx-exam-lock {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: var(--rcx-bg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.rcx-exam-lock-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    background: rgba(20, 20, 24, 0.95);
    border-bottom: 1px solid var(--rcx-border);
    flex-shrink: 0;
    backdrop-filter: blur(12px);
}

.rcx-exam-lock-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--rcx-text);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.rcx-exam-lock-title span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rcx-exam-lock-title i { color: var(--rcx-violet); flex-shrink: 0; }

.rcx-exam-lock-warning {
    flex-shrink: 0;
    padding: 10px 20px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fecaca;
    background: rgba(239, 68, 68, 0.14);
    border-bottom: 1px solid rgba(239, 68, 68, 0.25);
}

.rcx-exam-lock-warning i { margin-right: 8px; }

.rcx-exam-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--rcx-mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--rcx-cyan);
}

.rcx-exam-timer--urgent {
    color: #f87171;
    animation: rcx-exam-pulse 1s ease-in-out infinite;
}

@keyframes rcx-exam-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}

.rcx-exam-lock-content {
    flex: 1;
    display: flex;
    min-height: 0;
    overflow: hidden;
}

.rcx-exam-lock-sidebar {
    width: 280px;
    flex-shrink: 0;
    padding: 16px;
    border-right: 1px solid var(--rcx-border);
    background: rgba(20, 20, 24, 0.6);
    overflow-y: auto;
}

.rcx-exam-lock-sidebar h3 {
    margin: 0 0 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--rcx-muted);
}

.rcx-exam-instructions-body {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--rcx-text);
}

.rcx-exam-lock-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.rcx-exam-lock-main--full {
    padding: 20px;
}

.rcx-exam-doc-viewer {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--rcx-border);
    background: var(--rcx-surface);
}

.rcx-exam-doc-frame {
    flex: 1;
    width: 100%;
    min-height: 0;
    border: none;
    background: #fff;
}

.rcx-exam-doc-fallback {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 40px 24px;
    text-align: center;
    color: var(--rcx-muted);
}

.rcx-exam-doc-fallback i {
    font-size: 2.5rem;
    color: var(--rcx-violet);
    opacity: 0.7;
}

.rcx-exam-doc-fallback--text p {
    max-width: 420px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .rcx-exam-lock-content { flex-direction: column; }
    .rcx-exam-lock-sidebar {
        width: 100%;
        max-height: 28vh;
        border-right: none;
        border-bottom: 1px solid var(--rcx-border);
    }
}

/* Upload modal */
.rcx-exam-upload-overlay {
    position: fixed;
    inset: 0;
    z-index: 100001;
    background: rgba(3, 3, 5, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(8px);
}

.rcx-exam-upload-card {
    width: 100%;
    max-width: 440px;
    padding: 28px;
    border-radius: 20px;
    background: var(--rcx-elevated);
    border: 1px solid var(--rcx-border);
    box-shadow: var(--rcx-shadow);
}

.rcx-exam-upload-badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.rcx-exam-upload-card h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.rcx-exam-upload-exam {
    margin: 0 0 8px;
    font-size: 0.9rem;
    color: var(--rcx-muted);
}

.rcx-exam-upload-hint {
    font-size: 0.88rem;
    color: var(--rcx-muted);
    margin-bottom: 16px;
}

.rcx-exam-upload-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px;
    border: 2px dashed rgba(139, 92, 246, 0.35);
    border-radius: 14px;
    cursor: pointer;
    margin-bottom: 16px;
}

.rcx-exam-upload-drop input { display: none; }

.rcx-exam-upload-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Standalone page shell (exams.html, etc.) */
body.rcx-standalone-body #root > div:first-child {
    margin-left: 0 !important;
    width: 100% !important;
}

html[dir="rtl"] body.rcx-standalone-body #root > div:first-child {
    margin-right: 0 !important;
    width: 100% !important;
}

.rcx-standalone-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.rcx-standalone-main {
    flex: 1;
    min-width: 0;
    margin-left: 288px;
    padding-bottom: 88px;
}

.rcx-standalone-fullscreen {
    min-height: 100vh;
    width: 100%;
}

.rcx-standalone-sidebar {
    position: fixed !important;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1001;
}

.rcx-standalone-bottom-nav {
    z-index: 1002;
}

.rcx-nav-link--active {
    background: rgba(139, 92, 246, 0.12) !important;
    border-color: rgba(139, 92, 246, 0.28) !important;
    color: var(--rcx-text) !important;
}

@media (max-width: 900px) {
    .rcx-standalone-main {
        margin-left: 0;
        padding-bottom: 120px;
    }

    .rcx-standalone-sidebar {
        transform: translateX(-100%);
    }

    .rcx-standalone-sidebar.mobile-open {
        transform: translateX(0);
    }

    .rcx-standalone-menu-toggle {
        display: flex !important;
    }

    .bottom-nav.rcx-standalone-bottom-nav {
        display: flex !important;
    }
}

@media (min-width: 901px) {
    .rcx-standalone-bottom-nav {
        display: none !important;
    }

    .rcx-standalone-menu-toggle {
        display: none !important;
    }
}

/* Focus pages: mobile = glass back only (try code, coding AI, videos) */
.rcx-glass-home-back {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top, 0px));
    left: calc(12px + env(safe-area-inset-left, 0px));
    z-index: 1200;
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 14px 10px 12px;
    border-radius: 999px;
    text-decoration: none;
    color: #f1f5f9;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: rgba(15, 23, 42, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.rcx-glass-home-back:active {
    transform: scale(0.96);
    background: rgba(15, 23, 42, 0.62);
    border-color: rgba(255, 255, 255, 0.22);
}

.rcx-glass-home-back i {
    font-size: 0.88rem;
    opacity: 0.92;
}

@media (max-width: 768px) {
    .rcx-glass-home-back {
        display: inline-flex;
    }

    .rcx-focus-shell .main-sidebar,
    .rcx-focus-shell .main-mobile-menu-toggle,
    .rcx-focus-shell .main-mobile-menu-overlay,
    .rcx-focus-shell .bottom-nav,
    .rcx-focus-shell .rcx-standalone-bottom-nav {
        display: none !important;
    }

    .rcx-focus-shell.rcx-focus-shell--with-mobile-nav .bottom-nav,
    .rcx-focus-shell.rcx-focus-shell--with-mobile-nav .rcx-standalone-bottom-nav {
        display: flex !important;
    }

    .rcx-focus-shell .cai-shell--with-nav,
    .rcx-focus-shell .vp-shell--with-nav,
    .rcx-focus-shell .ht-shell--with-nav,
    .rcx-focus-shell.tc-shell,
    .rcx-focus-shell .lsc-shell {
        margin-left: 0 !important;
        width: 100% !important;
        padding-bottom: 0 !important;
    }

    .rcx-focus-shell .cai-shell--with-nav,
    .rcx-focus-shell .vp-shell--with-nav,
    .rcx-focus-shell .ht-shell--with-nav,
    .rcx-focus-shell.tc-shell,
    .rcx-focus-shell .lsc-shell {
        padding-top: calc(52px + env(safe-area-inset-top, 0px));
    }

    .rcx-focus-shell .cai-shell--with-nav .cai-app,
    .rcx-focus-shell .cai-shell--with-nav .cai-main {
        max-height: 100vh;
    }
}

/* Exam results (student view) */
.rcx-exam-results {
    margin-top: 4px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--rcx-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rcx-exam-results__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.rcx-exam-results__badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rcx-exam-results__badge i {
    font-size: 1.5rem;
    color: var(--rcx-violet);
}

.rcx-exam-results__badge--pass i {
    color: #86efac;
}

.rcx-exam-results__score {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--rcx-text);
    line-height: 1;
}

.rcx-exam-results__max {
    font-size: 0.9rem;
    color: var(--rcx-dim);
    margin-left: 2px;
}

.rcx-exam-results__date {
    font-size: 0.75rem;
    color: var(--rcx-dim);
}

.rcx-exam-results__bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.rcx-exam-results__bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--rcx-violet), var(--rcx-cyan));
}

.rcx-exam-results__feedback h4 {
    margin: 0 0 6px;
    font-size: 0.82rem;
    color: var(--rcx-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rcx-exam-results__feedback p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--rcx-text);
    white-space: pre-wrap;
}

.rcx-exam-results__download {
    width: 100%;
    justify-content: center;
}

.rcx-exam-results__label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rcx-cyan);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rcx-exam-results__correction {
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--rcx-border);
}

.rcx-exam-results__correction h4 {
    margin: 0 0 10px;
    font-size: 0.85rem;
    color: var(--rcx-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rcx-exam-results__preview-link {
    display: block;
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--rcx-border);
}

.rcx-exam-results__preview-img {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.35);
}

.rcx-exam-results__preview-pdf {
    width: 100%;
    height: 280px;
    border: 1px solid var(--rcx-border);
    border-radius: 10px;
    margin-bottom: 10px;
    background: #fff;
}

.rcx-exam-results__file-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    margin-bottom: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--rcx-muted);
}

.rcx-exam-results__file-icon i {
    font-size: 1.5rem;
    color: var(--rcx-violet);
}

.rcx-exam-results__empty-note {
    margin: 0;
    font-size: 0.85rem;
    color: var(--rcx-dim);
}

/* ===== Glass Subjects & Courses (class pictures) ===== */
.rcx-courses-header {
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    backdrop-filter: blur(16px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
}
.rcx-courses-header__cover {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.rcx-courses-header__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
}
.rcx-courses-header__cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(9, 9, 11, 0.82) 0%, rgba(15, 23, 42, 0.72) 55%, rgba(9, 9, 11, 0.88) 100%),
        linear-gradient(180deg, transparent 30%, rgba(9, 9, 11, 0.55) 100%);
}
.rcx-courses-header__content {
    position: relative;
    z-index: 1;
    padding: 18px 20px;
}
.rcx-glass-panel {
    background: rgba(20, 20, 24, 0.52) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28) !important;
    backdrop-filter: blur(18px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(150%) !important;
}
.rcx-glass-banner {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.rcx-course-pill {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}
.rcx-course-pill--class {
    padding: 6px 12px 6px 6px !important;
}
.rcx-course-media {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--rcx-violet), var(--rcx-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #09090b;
    font-size: 1.1rem;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.rcx-course-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.rcx-course-media__fallback {
    position: relative;
    z-index: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.rcx-course-media.is-lg {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    font-size: 1.35rem;
}
.rcx-course-media.is-pill,
.rcx-course-pill--class .rcx-course-media {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    font-size: 0.75rem;
    box-shadow: none;
}
.rcx-course-media--muted {
    background: rgba(148, 163, 184, 0.18);
    color: var(--rcx-muted);
    box-shadow: none;
}
.rcx-course-accordion,
.rcx-course-panel {
    border-radius: 16px !important;
    background: rgba(20, 20, 24, 0.55) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(16px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
}
button.rcx-subject-card.glass-tile,
.rcx-subject-card.glass-tile {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    min-height: 118px;
    padding: 16px !important;
}

/* ── Home Hero Redesign ── */
.hero.rcx-hero--home {
    padding: 28px 0 36px !important;
    text-align: left !important;
    min-height: auto !important;
}

.hero.rcx-hero--home .container,
.hero.rcx-hero--home .rcx-hero__inner {
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.newgen-shell--welcome .hero,
.newgen-shell--welcome .rcx-dashboard-shell,
.newgen-shell--welcome .subscriptions-section {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

body.rcx-welcome-active {
    overflow: hidden;
}

.rcx-sidebar-profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    cursor: pointer;
    color: inherit;
    text-align: left;
    transition: border-color 0.2s, background 0.2s;
}

.rcx-sidebar-profile-card:hover {
    background: rgba(139, 92, 246, 0.16);
    border-color: rgba(139, 92, 246, 0.4);
}

.rcx-sidebar-profile-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(139, 92, 246, 0.45);
    flex-shrink: 0;
}

.rcx-sidebar-profile-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.rcx-sidebar-profile-card__body strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fafafa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rcx-sidebar-profile-card__body span {
    font-size: 0.75rem;
    color: #a78bfa;
}

.rcx-sidebar-profile-card__chevron {
    color: #71717a;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.mobile-phone-menu-sheet .rcx-sidebar-profile-card {
    margin: 0 0 12px;
}

.rcx-hero__top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.rcx-hero__brand {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(196, 181, 253, 0.85);
    margin: 0;
}

.rcx-weather-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.82rem;
    color: #e4e4e7;
    backdrop-filter: blur(8px);
}

.rcx-weather-badge i {
    color: #fbbf24;
}

.rcx-weather-badge__desc {
    color: #a1a1aa;
    font-size: 0.75rem;
}

.rcx-weather-badge--loading {
    min-width: 48px;
    justify-content: center;
}

/* Weather widget with hot/cold alerts */
.rcx-weather-widget {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.rcx-weather-widget--compact {
    width: auto;
    max-width: 100%;
}

.rcx-weather-widget--compact .rcx-weather-widget__main {
    padding: 8px 12px;
}

.rcx-weather-widget--card .rcx-weather-widget__main {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.rcx-weather-widget__main {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    position: relative;
}

.rcx-weather-widget--loading .rcx-weather-widget__main {
    color: #a1a1aa;
    font-size: 0.82rem;
    padding: 8px 12px;
}

.rcx-weather-widget--rain .rcx-weather-widget__main,
.rcx-weather-widget--storm .rcx-weather-widget__main {
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.35));
    border-color: rgba(125, 211, 252, 0.22);
}

.rcx-weather-widget--sun .rcx-weather-widget__main {
    background:
        radial-gradient(circle at 18% 40%, rgba(251, 191, 36, 0.18), transparent 55%),
        rgba(255, 255, 255, 0.04);
}

.rcx-weather-widget--night .rcx-weather-widget__main {
    background:
        radial-gradient(circle at 22% 28%, rgba(99, 102, 241, 0.22), transparent 52%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.75), rgba(2, 6, 23, 0.45));
    border-color: rgba(165, 180, 252, 0.22);
}

.rcx-weather-widget__readout {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.rcx-weather-widget__temp {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fafafa;
    line-height: 1.1;
}

.rcx-weather-widget__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 0.76rem;
    color: #a1a1aa;
}

.rcx-weather-widget__desc {
    color: #d4d4d8;
}

.rcx-weather-widget__loc {
    font-family: var(--rcx-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.rcx-weather-widget__alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid transparent;
    animation: rcxWeatherAlertIn 0.35s ease;
}

@keyframes rcxWeatherAlertIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.rcx-weather-widget__alert--danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.16), rgba(220, 38, 38, 0.1));
    border-color: rgba(239, 68, 68, 0.38);
    box-shadow: 0 0 24px rgba(239, 68, 68, 0.12);
}

.rcx-weather-widget__alert--warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(251, 191, 36, 0.08));
    border-color: rgba(245, 158, 11, 0.32);
}

.rcx-weather-widget--hot.rcx-weather-widget--danger .rcx-weather-widget__alert--danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(249, 115, 22, 0.12));
}

.rcx-weather-widget--cold.rcx-weather-widget--danger .rcx-weather-widget__alert--danger {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(99, 102, 241, 0.12));
    border-color: rgba(56, 189, 248, 0.38);
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.12);
}

.rcx-weather-widget--cold .rcx-weather-widget__alert--danger,
.rcx-weather-widget--cold .rcx-weather-widget__alert--warning {
    border-color: rgba(56, 189, 248, 0.32);
}

.rcx-weather-widget__alert-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.2);
    color: #fecaca;
    font-size: 0.95rem;
}

.rcx-weather-widget--cold .rcx-weather-widget__alert-icon {
    color: #bae6fd;
}

.rcx-weather-widget__alert-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.rcx-weather-widget__alert-body strong {
    font-size: 0.82rem;
    font-weight: 800;
    color: #fef2f2;
    letter-spacing: 0.01em;
}

.rcx-weather-widget--cold .rcx-weather-widget__alert-body strong {
    color: #e0f2fe;
}

.rcx-weather-widget__alert-body span {
    font-size: 0.78rem;
    line-height: 1.45;
    color: rgba(254, 226, 226, 0.92);
}

.rcx-weather-widget--cold .rcx-weather-widget__alert-body span {
    color: rgba(224, 242, 254, 0.92);
}

.rcx-welcome-screen__top .rcx-weather-widget {
    width: 100%;
    margin-bottom: 4px;
}

.rcx-hero__inner > .rcx-weather-widget {
    margin-bottom: 4px;
}

/* App footer — override generic footer styles */
footer.rcx-footer {
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(139, 92, 246, 0.14), transparent 60%),
        linear-gradient(180deg, rgba(14, 14, 18, 0.98) 0%, rgba(8, 8, 10, 1) 100%) !important;
    color: var(--rcx-text) !important;
    text-align: left !important;
    padding: 0 0 calc(env(safe-area-inset-bottom, 0px) + 88px) !important;
    margin-top: 48px !important;
}

footer.rcx-footer::before {
    display: none !important;
}

footer.rcx-footer p {
    opacity: 1 !important;
}

footer.rcx-footer {
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--rcx-border);
}

.rcx-footer__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(34, 211, 238, 0.06), transparent 45%);
    pointer-events: none;
}

.rcx-footer__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(200px, 1.1fr) minmax(0, 2fr);
    gap: 32px 40px;
    padding: 40px 16px 28px;
}

.rcx-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rcx-footer__logo img {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: contain;
    box-shadow: 0 8px 28px rgba(139, 92, 246, 0.28);
}

.rcx-footer__tagline {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--rcx-muted);
    max-width: 28ch;
}

.rcx-footer__motto {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(34, 211, 238, 0.12));
    border: 1px solid rgba(139, 92, 246, 0.28);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e9d5ff;
    font-family: var(--rcx-mono);
}

.rcx-footer__columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.rcx-footer__col h3 {
    margin: 0 0 12px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rcx-dim);
    font-family: var(--rcx-mono);
}

.rcx-footer__col a {
    display: block;
    padding: 5px 0;
    color: var(--rcx-muted);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
    transition: color 0.18s ease, transform 0.18s ease;
}

.rcx-footer__col a:hover {
    color: #e9d5ff;
    transform: translateX(3px);
}

.rcx-footer__bar {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.25);
}

.rcx-footer__bar-inner {
    padding: 14px 16px;
}

.rcx-footer__copy {
    margin: 0;
    text-align: center;
    font-size: 0.78rem;
    color: var(--rcx-dim);
}

@media (max-width: 900px) {
    .rcx-footer__inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 32px;
    }

    .rcx-footer__columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .rcx-footer__columns {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (min-width: 901px) {
    .rcx-footer {
        padding-bottom: 32px;
    }
}

.rcx-hero-home {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rcx-hero-profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    cursor: pointer;
    text-align: left;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}

.rcx-hero-profile-card:hover {
    border-color: rgba(139, 92, 246, 0.45);
    transform: translateY(-1px);
}

.rcx-hero-profile-card__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(139, 92, 246, 0.5);
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.rcx-hero-profile-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rcx-hero-profile-card__greeting {
    font-size: 0.82rem;
    color: #a1a1aa;
}

.rcx-hero-profile-card__name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fafafa;
}

.rcx-hero-profile-card__username {
    font-size: 0.85rem;
    color: #8b5cf6;
    font-weight: 500;
}

.rcx-hero-profile-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
    font-size: 0.78rem;
    color: #a1a1aa;
}

.rcx-hero-profile-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.rcx-hero-profile-card__chevron {
    color: #71717a;
    flex-shrink: 0;
}

.rcx-hero-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (min-width: 640px) {
    .rcx-hero-shortcuts {
        grid-template-columns: repeat(6, 1fr);
    }
}

.rcx-hero-shortcut {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: #e4e4e7;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.rcx-hero-shortcut:hover {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.08);
    transform: translateY(-2px);
}

.rcx-hero-shortcut__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.rcx-hero-shortcut--profile .rcx-hero-shortcut__icon { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
.rcx-hero-shortcut--videos .rcx-hero-shortcut__icon { background: rgba(34, 211, 238, 0.15); color: #22d3ee; }
.rcx-hero-shortcut--code .rcx-hero-shortcut__icon { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.rcx-hero-shortcut--notes .rcx-hero-shortcut__icon { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.rcx-hero-shortcut--ai .rcx-hero-shortcut__icon { background: rgba(244, 114, 182, 0.15); color: #f472b6; }
.rcx-hero-shortcut--revision .rcx-hero-shortcut__icon { background: rgba(96, 165, 250, 0.15); color: #60a5fa; }
.rcx-hero-shortcut--learn .rcx-hero-shortcut__icon { background: rgba(34, 197, 94, 0.18); color: #4ade80; }

/* ── Learn start block + typewriter ── */
.rcx-learn-start {
    padding: 8px 0 28px;
}

.rcx-learn-start__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 22px 22px 20px;
    border-radius: 22px;
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(251, 191, 36, 0.08), transparent 42%),
        linear-gradient(135deg, rgba(24, 20, 36, 0.95), rgba(12, 10, 18, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.rcx-learn-start__copy {
    flex: 1;
    min-width: 240px;
}

.rcx-learn-start__hello {
    margin: 0 0 4px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fbbf24;
}

.rcx-learn-start__type {
    margin: 0 0 12px;
    font-size: clamp(1.28rem, 3.6vw, 1.72rem);
    font-weight: 800;
    color: #fafafa;
    min-height: 1.4em;
    letter-spacing: -0.02em;
}

.rcx-typewriter-cursor {
    color: #8b5cf6;
    animation: rcx-cursor-blink 0.9s step-end infinite;
    font-weight: 400;
}

@keyframes rcx-cursor-blink {
    50% { opacity: 0; }
}

.rcx-learn-start__sub {
    margin: 0 0 18px;
    max-width: 540px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rcx-learn-start__kicker {
    display: inline-flex;
    align-self: flex-start;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.28);
    color: #fcd34d;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.rcx-learn-start__sub-ar {
    color: #e4e4e7;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.45;
}

.rcx-learn-start__sub-en {
    display: block;
    margin-top: 2px;
    font-size: 0.8rem;
    color: #71717a;
    line-height: 1.45;
}

.rcx-learn-start__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.rcx-learn-start__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.rcx-learn-start__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(139, 92, 246, 0.45);
}

.rcx-learn-start__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a78bfa;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
}

.rcx-learn-start__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(139, 92, 246, 0.45);
}

.rcx-learn-start__rank {
    margin-top: 14px;
    font-size: 0.78rem;
    color: #71717a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rcx-learn-buddy {
    position: relative;
    flex-shrink: 0;
}

.rcx-learn-mark {
    position: relative;
    width: 92px;
    height: 92px;
    flex-shrink: 0;
}

.rcx-learn-mark__glow {
    position: absolute;
    inset: 8px;
    border-radius: 22px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.28), transparent 70%);
    filter: blur(8px);
}

.rcx-learn-mark__page {
    position: absolute;
    left: 14px;
    top: 10px;
    width: 58px;
    height: 72px;
    border-radius: 8px 18px 8px 8px;
    background:
        linear-gradient(180deg, #fff8e8 0%, #f3e6c8 100%);
    box-shadow:
        6px 8px 0 rgba(15, 10, 6, 0.35),
        0 14px 28px rgba(0, 0, 0, 0.35);
    transform: rotate(-8deg);
}

.rcx-learn-mark__fold {
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #e8d5a3 0 50%, transparent 50%);
    border-radius: 0 16px 0 0;
}

.rcx-learn-mark__pdf {
    position: absolute;
    left: 8px;
    top: 10px;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: #b45309;
}

.rcx-learn-mark__lines {
    position: absolute;
    left: 8px;
    right: 10px;
    top: 28px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.rcx-learn-mark__lines i {
    display: block;
    height: 3px;
    border-radius: 99px;
    background: rgba(120, 53, 15, 0.22);
}

.rcx-learn-mark__lines i:nth-child(2) { width: 78%; }
.rcx-learn-mark__lines i:nth-child(3) { width: 54%; }

.rcx-learn-mark__play {
    position: absolute;
    right: 2px;
    bottom: 6px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f59e0b, #d97706);
    color: #1c1006;
    font-size: 0.72rem;
    box-shadow: 0 8px 18px rgba(217, 119, 6, 0.45);
    z-index: 2;
}

.rcx-learn-mark__play i {
    margin-left: 2px;
}

.rcx-learn-buddy__ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.25);
    animation: rcx-buddy-pulse 2.2s ease-in-out infinite;
}

@keyframes rcx-buddy-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.06); opacity: 1; }
}

.rcx-learn-buddy__face {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(145deg, #8b5cf6, #6366f1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 40px rgba(139, 92, 246, 0.35);
    position: relative;
    z-index: 1;
}

.rcx-learn-buddy--wave .rcx-learn-buddy__face {
    animation: rcx-buddy-wave 2s ease-in-out infinite;
}

@keyframes rcx-buddy-wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-4deg); }
    75% { transform: rotate(4deg); }
}

.rcx-learn-buddy__eyes {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.rcx-learn-buddy__eyes span {
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    animation: rcx-buddy-blink 4s infinite;
}

@keyframes rcx-buddy-blink {
    0%, 96%, 100% { transform: scaleY(1); }
    98% { transform: scaleY(0.15); }
}

.rcx-learn-buddy__mouth {
    width: 26px;
    height: 13px;
    border-bottom: 3px solid #fff;
    border-radius: 0 0 14px 14px;
}

@media (max-width: 640px) {
    .rcx-learn-start__inner {
        flex-direction: column;
        text-align: center;
    }
    .rcx-learn-start__kicker {
        align-self: center;
    }
    .rcx-learn-start__sub-ar,
    .rcx-learn-start__sub-en {
        text-align: center;
    }
    .rcx-learn-start__actions {
        justify-content: center;
    }
    .rcx-learn-start__rank {
        justify-content: center;
    }
}

.rcx-hero-shortcut__label {
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
}

/* ── Welcome Class Screen ── */
.rcx-welcome-screen {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rcx-welcome-screen__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 8, 0.88);
    backdrop-filter: blur(12px);
}

.rcx-welcome-screen__panel {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px 24px 24px;
    border-radius: 24px;
    background: linear-gradient(165deg, rgba(24, 24, 32, 0.98) 0%, rgba(14, 14, 18, 0.98) 100%);
    border: 1px solid rgba(139, 92, 246, 0.25);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
}

.rcx-welcome-screen__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.rcx-welcome-screen__brand {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #a78bfa;
}

.rcx-welcome-screen__avatar-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.rcx-welcome-screen__avatar-btn {
    position: relative;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
}

.rcx-welcome-screen__avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(139, 92, 246, 0.6);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.25);
}

.rcx-welcome-screen__avatar-edit {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #8b5cf6;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border: 2px solid #18181b;
}

.rcx-welcome-screen__greeting {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fafafa;
    margin: 0 0 8px;
}

.rcx-welcome-screen__subtitle {
    text-align: center;
    color: #a1a1aa;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0 0 24px;
}

.rcx-welcome-screen__classes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 480px) {
    .rcx-welcome-screen__classes {
        grid-template-columns: repeat(3, 1fr);
    }
}

.rcx-welcome-class-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    color: #e4e4e7;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.rcx-welcome-class-card:hover:not(:disabled) {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.08);
    transform: translateY(-2px);
}

.rcx-welcome-class-card.is-selected {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.15);
}

.rcx-welcome-class-card.is-saving {
    opacity: 0.7;
}

.rcx-welcome-class-card__media {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    font-size: 1.2rem;
}

.rcx-welcome-class-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rcx-welcome-class-card__name {
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
}

.rcx-welcome-class-card__status {
    font-size: 0.75rem;
    color: #a78bfa;
}

.rcx-welcome-screen__footer {
    margin-top: 20px;
    text-align: center;
}

.rcx-welcome-screen__profile-link {
    background: none;
    border: none;
    color: #71717a;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rcx-welcome-screen__profile-link:hover {
    color: #a78bfa;
}

/* Bottom nav avatar */
.rcx-bottom-nav-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(139, 92, 246, 0.5);
}

.rcx-bottom-nav-item--avatar.active .rcx-bottom-nav-avatar {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

/* Inline weather (hero top row) */
.rcx-weather-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

.rcx-weather-inline__main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.82rem;
    color: #e4e4e7;
    backdrop-filter: blur(8px);
    overflow: hidden;
    position: relative;
}

.rcx-weather-inline--rain .rcx-weather-inline__main,
.rcx-weather-inline--storm .rcx-weather-inline__main {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.55));
    border-color: rgba(125, 211, 252, 0.28);
}

.rcx-weather-inline--sun .rcx-weather-inline__main {
    background:
        radial-gradient(circle at 12% 50%, rgba(251, 191, 36, 0.22), transparent 48%),
        rgba(255, 255, 255, 0.06);
}

.rcx-weather-inline--night .rcx-weather-inline__main {
    background:
        radial-gradient(circle at 16% 45%, rgba(129, 140, 248, 0.28), transparent 50%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.85), rgba(2, 6, 23, 0.6));
    border-color: rgba(165, 180, 252, 0.28);
}

.rcx-weather-inline__temp {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.rcx-weather-inline__desc {
    color: #a1a1aa;
    font-size: 0.75rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rcx-weather-inline__alert {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.rcx-weather-inline__alert--danger {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #fecaca;
    animation: rcxWeatherPulse 1.8s ease-in-out infinite;
}

.rcx-weather-inline__alert--warning {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fde68a;
}

@keyframes rcxWeatherPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.35); }
    50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

/* 3D weather scene */
.rcx-wx-scene {
    --wx-size: 42px;
    width: var(--wx-size);
    height: var(--wx-size);
    flex-shrink: 0;
    position: relative;
    perspective: 140px;
    transform-style: preserve-3d;
    overflow: hidden;
    border-radius: 14px;
}

.rcx-weather-inline .rcx-wx-scene {
    --wx-size: 38px;
    border-radius: 50%;
}

.rcx-weather-widget--card .rcx-wx-scene {
    --wx-size: 56px;
}

.rcx-wx-sun,
.rcx-wx-cloud {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
}

.rcx-wx-sun__core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58%;
    height: 58%;
    border-radius: 50%;
    transform: translate(-50%, -50%) translateZ(10px);
    background:
        radial-gradient(circle at 32% 28%, #fff7c2 0%, #ffe566 28%, #fbbf24 62%, #f59e0b 100%);
    box-shadow:
        inset -4px -6px 10px rgba(180, 83, 9, 0.45),
        inset 3px 4px 8px rgba(255, 255, 255, 0.55),
        0 0 10px rgba(251, 191, 36, 0.75),
        0 0 22px rgba(245, 158, 11, 0.45);
    animation: rcxWxSunPulse 4.2s ease-in-out infinite;
}

.rcx-wx-sun__spec {
    position: absolute;
    left: 36%;
    top: 30%;
    width: 18%;
    height: 14%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    filter: blur(0.4px);
    transform: translateZ(14px);
    pointer-events: none;
}

.rcx-wx-sun__halo {
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(253, 224, 71, 0.55) 0%, rgba(251, 191, 36, 0.12) 55%, transparent 72%);
    filter: blur(2px);
    animation: rcxWxHalo 5s ease-in-out infinite;
}

.rcx-wx-sun__rays {
    position: absolute;
    inset: 4%;
    border-radius: 50%;
    background:
        conic-gradient(from 12deg, rgba(253, 224, 71, 0.0) 0 12deg, rgba(253, 224, 71, 0.55) 12deg 16deg, transparent 16deg 42deg, rgba(253, 224, 71, 0.45) 42deg 46deg, transparent 46deg 100%);
    filter: blur(0.6px);
    animation: rcxWxRays 12s linear infinite;
    transform: translateZ(2px);
}

.rcx-wx-scene--partly .rcx-wx-sun {
    transform: translate(-18%, -16%) scale(0.78);
}

.rcx-wx-scene--night {
    background: radial-gradient(circle at 30% 18%, rgba(67, 56, 202, 0.35), rgba(2, 6, 23, 0.2) 62%);
}

.rcx-wx-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.rcx-wx-star {
    position: absolute;
    border-radius: 50%;
    background: #f8fafc;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.85);
    animation: rcxWxTwinkle 2.4s ease-in-out infinite;
}

.rcx-wx-moon {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
}

.rcx-wx-moon--small {
    transform: translate(-16%, -18%) scale(0.72);
}

.rcx-wx-moon__disk {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 56%;
    height: 56%;
    border-radius: 50%;
    transform: translate(-50%, -50%) translateZ(10px);
    background:
        radial-gradient(circle at 34% 30%, #f8fafc 0%, #e2e8f0 38%, #cbd5e1 72%, #94a3b8 100%);
    box-shadow:
        inset -5px -6px 10px rgba(15, 23, 42, 0.35),
        inset 3px 4px 7px rgba(255, 255, 255, 0.55),
        0 0 12px rgba(226, 232, 240, 0.45);
}

.rcx-wx-moon__shade {
    position: absolute;
    left: 58%;
    top: 28%;
    width: 42%;
    height: 52%;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.22);
    filter: blur(1px);
    transform: translateZ(12px);
    pointer-events: none;
}

.rcx-wx-moon__crater {
    position: absolute;
    border-radius: 50%;
    background: rgba(100, 116, 139, 0.35);
    transform: translateZ(14px);
}

.rcx-wx-moon__crater--a {
    width: 12%;
    height: 12%;
    left: 42%;
    top: 40%;
}

.rcx-wx-moon__crater--b {
    width: 8%;
    height: 8%;
    left: 54%;
    top: 52%;
}

@keyframes rcxWxTwinkle {
    0%, 100% { opacity: 0.35; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.15); }
}

.rcx-wx-cloud__puff {
    position: absolute;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, #ffffff 0%, #e5e7eb 42%, #94a3b8 100%);
    box-shadow:
        inset -6px -8px 12px rgba(51, 65, 85, 0.28),
        inset 4px 5px 8px rgba(255, 255, 255, 0.75),
        0 6px 10px rgba(15, 23, 42, 0.28);
}

.rcx-wx-cloud__puff--a {
    width: 58%;
    height: 44%;
    left: 6%;
    top: 38%;
    transform: translateZ(6px);
}

.rcx-wx-cloud__puff--b {
    width: 48%;
    height: 48%;
    left: 28%;
    top: 18%;
    transform: translateZ(12px);
}

.rcx-wx-cloud__puff--c {
    width: 46%;
    height: 40%;
    right: 4%;
    top: 36%;
    transform: translateZ(8px);
}

.rcx-wx-cloud__puff--d {
    width: 70%;
    height: 36%;
    left: 14%;
    bottom: 10%;
    border-radius: 40px;
    transform: translateZ(4px);
}

.rcx-wx-cloud__lit {
    position: absolute;
    left: 22%;
    top: 22%;
    width: 34%;
    height: 18%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    filter: blur(2px);
    transform: translateZ(16px);
    pointer-events: none;
}

.rcx-wx-cloud {
    animation: rcxWxCloudDrift 6.5s ease-in-out infinite;
}

.rcx-wx-scene--rain .rcx-wx-cloud__puff,
.rcx-wx-scene--storm .rcx-wx-cloud__puff {
    background:
        radial-gradient(circle at 30% 26%, #cbd5e1 0%, #64748b 48%, #334155 100%);
    box-shadow:
        inset -6px -8px 12px rgba(15, 23, 42, 0.5),
        inset 3px 4px 8px rgba(226, 232, 240, 0.35),
        0 6px 10px rgba(2, 6, 23, 0.4);
}

.rcx-wx-rain {
    position: absolute;
    inset: 42% 6% 0;
    overflow: hidden;
    pointer-events: none;
}

.rcx-wx-rain__drop {
    position: absolute;
    top: -12px;
    width: 1.5px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(186, 230, 253, 0), rgba(125, 211, 252, 0.95) 40%, rgba(14, 165, 233, 0.15));
    transform: rotate(12deg) translateZ(18px);
    animation-name: rcxWxRainFall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    box-shadow: 0 0 4px rgba(125, 211, 252, 0.45);
}

.rcx-wx-flash {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 60% 30%, rgba(255, 255, 255, 0.55), transparent 46%);
    opacity: 0;
    animation: rcxWxFlash 2.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes rcxWxSunPulse {
    0%, 100% { transform: translate(-50%, -50%) translateZ(10px) scale(1); }
    50% { transform: translate(-50%, -50%) translateZ(10px) scale(1.06); }
}

@keyframes rcxWxHalo {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

@keyframes rcxWxRays {
    from { transform: translateZ(2px) rotate(0deg); }
    to { transform: translateZ(2px) rotate(360deg); }
}

@keyframes rcxWxCloudDrift {
    0%, 100% { transform: translateX(0) translateZ(0); }
    50% { transform: translateX(2px) translateZ(2px); }
}

@keyframes rcxWxRainFall {
    0% { transform: translateY(-8px) rotate(12deg); opacity: 0; }
    12% { opacity: 1; }
    100% { transform: translateY(38px) rotate(12deg); opacity: 0; }
}

@keyframes rcxWxFlash {
    0%, 86%, 100% { opacity: 0; }
    88% { opacity: 0.85; }
    91% { opacity: 0.1; }
    93% { opacity: 0.55; }
}

.rcx-wx-sun--spin .rcx-wx-sun__core {
    animation: rcxWxSunPulse 1.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .rcx-wx-sun__core,
    .rcx-wx-sun__halo,
    .rcx-wx-sun__rays,
    .rcx-wx-cloud,
    .rcx-wx-rain__drop,
    .rcx-wx-flash,
    .rcx-wx-star {
        animation: none !important;
    }
}

/* Study hub */
.rcx-study-hub {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.rcx-streak-hub {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

.rcx-streak-card--compact {
    padding: 22px;
    border-radius: 24px;
    border: 1px solid var(--rcx-border);
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(249, 115, 22, 0.14), transparent 52%),
        radial-gradient(80% 60% at 100% 0%, rgba(139, 92, 246, 0.1), transparent 50%),
        rgba(255, 255, 255, 0.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.rcx-streak-card__top {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.rcx-streak-card__link--inline {
    margin-left: auto;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    background: rgba(139, 92, 246, 0.16);
    border: 1px solid rgba(139, 92, 246, 0.32);
    color: #e9d5ff;
    white-space: nowrap;
}

.rcx-streak-table {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rcx-streak-table__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.rcx-streak-table__title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rcx-dim);
    font-family: var(--rcx-mono);
}

.rcx-streak-table__auto {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: #a78bfa;
}

.rcx-streak-table__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.rcx-streak-table__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 4px;
    border-radius: 14px;
    border: 1px solid var(--rcx-border);
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.rcx-streak-table__cell.is-done {
    border-color: rgba(249, 115, 22, 0.45);
    background: linear-gradient(180deg, rgba(249, 115, 22, 0.16), rgba(249, 115, 22, 0.06));
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.12);
}

.rcx-streak-table__cell.is-missed {
    opacity: 0.72;
}

.rcx-streak-table__cell.is-today {
    outline: 2px solid rgba(34, 211, 238, 0.45);
    outline-offset: 1px;
}

.rcx-streak-table__day {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--rcx-muted);
    font-family: var(--rcx-mono);
}

.rcx-streak-table__icon {
    font-size: 1rem;
    line-height: 1;
}

.rcx-streak-table__cell.is-done .rcx-streak-table__icon { color: #fb923c; }
.rcx-streak-table__cell.is-missed .rcx-streak-table__icon { color: #52525b; }

.rcx-streak-table__loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 16px;
    color: var(--rcx-muted);
}

@media (max-width: 900px) {
    .rcx-study-hub { grid-template-columns: 1fr; }
    .rcx-streak-table__auto { width: 100%; }
}

@media (max-width: 520px) {
    .rcx-streak-table__grid { gap: 4px; }
    .rcx-streak-table__cell { padding: 8px 2px; border-radius: 10px; }
    .rcx-streak-card__link--inline { width: 100%; justify-content: center; margin-left: 0; }
}

.rcx-streak-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid var(--rcx-border);
    background: radial-gradient(120% 80% at 0% 0%, rgba(249, 115, 22, 0.12), transparent 55%), rgba(255, 255, 255, 0.03);
}

.rcx-streak-card--safe { border-color: rgba(34, 197, 94, 0.35); }
.rcx-streak-card--risk { border-color: rgba(245, 158, 11, 0.4); }
.rcx-streak-card--lost { border-color: rgba(239, 68, 68, 0.35); }

.rcx-streak-card__flame {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.35);
    color: #fb923c;
    font-size: 1.4rem;
}

.rcx-streak-card__count { font-size: 1.55rem; font-weight: 800; color: #fafafa; }
.rcx-streak-card__status { margin: 0; font-size: 0.82rem; color: #d4d4d8; }
.rcx-streak-card__actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }

.rcx-streak-card__btn, .rcx-streak-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.rcx-streak-card__btn {
    border: 1px solid rgba(34, 197, 94, 0.35);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(139, 92, 246, 0.2));
    color: #ecfccb;
    cursor: pointer;
}

.rcx-streak-card__link {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--rcx-border);
    color: var(--rcx-text);
}

.rcx-timetable-panel {
    padding: 20px;
    border-radius: 22px;
    border: 1px solid var(--rcx-border);
    background: rgba(255, 255, 255, 0.03);
}

.rcx-timetable-panel__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.rcx-timetable-panel__save {
    padding: 9px 14px;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.35);
    background: rgba(139, 92, 246, 0.18);
    color: #e9d5ff;
    font-weight: 700;
    cursor: pointer;
}

.rcx-timetable-panel__days { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

.rcx-timetable-panel__day {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--rcx-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--rcx-muted);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.rcx-timetable-panel__day.is-active {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    color: #e9d5ff;
}

.rcx-timetable-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.rcx-timetable-table th {
    text-align: left;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--rcx-dim);
    padding: 0 8px 4px;
}

.rcx-timetable-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--rcx-border);
    background: rgba(0, 0, 0, 0.25);
    color: var(--rcx-text);
}

.rcx-timetable-panel__add {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px dashed rgba(139, 92, 246, 0.35);
    background: rgba(139, 92, 246, 0.08);
    color: #c4b5fd;
    font-weight: 700;
    cursor: pointer;
}

.rcx-welcome-screen__alert {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(239, 68, 68, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.38);
}

.rcx-welcome-screen__alert-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.rcx-welcome-screen__alert strong { display: block; color: #fef3c7; margin-bottom: 4px; }
.rcx-welcome-screen__alert span { font-size: 0.8rem; color: rgba(254, 243, 199, 0.9); }

body.rcx-welcome-active { overflow: hidden; }

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

/* ═══ Desktop nav — deep ocean command sidebar ═══ */

@media (min-width: 769px) {
    .rcx-nav-v2.newgen-shell {
        margin-left: 288px !important;
        width: calc(100% - 288px) !important;
    }

    html[dir="rtl"] .rcx-nav-v2.newgen-shell {
        margin-left: 0 !important;
        margin-right: 288px !important;
        width: calc(100% - 288px) !important;
    }
}

.rcx-nav-v2.newgen-shell {
    animation: rcxAppFadeIn 0.45s ease-out both;
}

@keyframes rcxAppFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Sidebar shell */
.rcx-desktop-nav.main-sidebar {
    width: 312px !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    border-right: 1px solid rgba(34, 211, 238, 0.14) !important;
    background:
        radial-gradient(ellipse 120% 80% at 0% 0%, rgba(139, 92, 246, 0.18), transparent 52%),
        radial-gradient(ellipse 90% 60% at 100% 30%, rgba(6, 78, 120, 0.35), transparent 55%),
        linear-gradient(180deg, rgba(4, 8, 16, 0.98) 0%, rgba(8, 14, 26, 0.96) 100%) !important;
    box-shadow:
        8px 0 48px rgba(0, 0, 0, 0.55),
        inset -1px 0 0 rgba(139, 92, 246, 0.12) !important;
    overflow: hidden !important;
}

.rcx-desktop-nav .rcx-dnav__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 15%, rgba(34, 211, 238, 0.12), transparent 42%),
        radial-gradient(circle at 85% 75%, rgba(139, 92, 246, 0.15), transparent 45%);
    pointer-events: none;
    z-index: 0;
}

.rcx-desktop-nav .rcx-dnav__scan {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(34, 211, 238, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.025) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.rcx-desktop-nav .rcx-dnav__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    padding: 16px 14px 14px;
}

/* Brand header */
.rcx-dnav__head {
    flex-shrink: 0;
    margin-bottom: 14px;
}

.rcx-dnav__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 18px;
    border: 1px solid rgba(34, 211, 238, 0.16);
    background:
        radial-gradient(120% 100% at 0% 0%, rgba(139, 92, 246, 0.14), transparent 55%),
        rgba(255, 255, 255, 0.03);
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.rcx-dnav__brand:hover {
    border-color: rgba(34, 211, 238, 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
}

.rcx-dnav__brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.35), rgba(34, 211, 238, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.35);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.25);
    flex-shrink: 0;
}

.rcx-dnav__brand-mark img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.rcx-dnav__brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.rcx-dnav__brand-text strong {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: linear-gradient(105deg, #fafafa 0%, #c4b5fd 45%, #67e8f9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rcx-dnav__brand-text small {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--rcx-dim);
}

/* Quick command rail */
.rcx-dnav__rail {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.rcx-dnav__rail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 72px;
    padding: 10px 6px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    color: var(--rcx-muted);
    text-decoration: none;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.rcx-dnav__rail-item i {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.rcx-dnav__rail-item:hover {
    color: var(--rcx-text);
    border-color: rgba(34, 211, 238, 0.28);
    background: rgba(34, 211, 238, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.rcx-dnav__rail-item--learn {
    border-color: rgba(34, 197, 94, 0.28);
    background: linear-gradient(160deg, rgba(34, 197, 94, 0.12), rgba(139, 92, 246, 0.08));
    color: #ecfccb;
}

.rcx-dnav__rail-item--learn i {
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.35), rgba(16, 185, 129, 0.2));
    border-color: rgba(34, 197, 94, 0.4);
    color: #bbf7d0;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

.rcx-dnav__rail-item--live i { color: #fca5a5; border-color: rgba(248, 113, 113, 0.35); }
.rcx-dnav__rail-item--subjects i { color: #c4b5fd; }

/* Search */
.rcx-dnav__search {
    flex-shrink: 0;
    margin-bottom: 12px;
}

.rcx-dnav__search-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rcx-dim);
    margin-bottom: 6px;
    padding-left: 4px;
    font-family: var(--rcx-mono);
}

.rcx-dnav__search-inner {
    border-radius: 14px !important;
    border: 1px solid rgba(34, 211, 238, 0.18) !important;
    background: rgba(0, 0, 0, 0.35) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.rcx-dnav__search-results {
    border-radius: 14px !important;
    border: 1px solid rgba(34, 211, 238, 0.2) !important;
    margin-top: 6px;
}

/* Scrollable menu */
.rcx-dnav__scroll {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.rcx-dnav__menu.rcx-sidebar-nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(34, 211, 238, 0.35) transparent;
}

.rcx-dnav__group {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.22);
}

.rcx-dnav__group-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 8px !important;
}

.rcx-dnav__group-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.35), transparent);
}

.rcx-dnav__group-label span {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: rgba(34, 211, 238, 0.75);
}

.rcx-dnav__group-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Nav links — desktop polish */
.rcx-desktop-nav .rcx-nav-link {
    padding: 10px 12px !important;
    border-radius: 12px !important;
    margin-bottom: 3px;
}

.rcx-desktop-nav .rcx-nav-icon-pill {
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

.rcx-desktop-nav .rcx-nav-link:hover {
    background: rgba(34, 211, 238, 0.06) !important;
    border-color: rgba(34, 211, 238, 0.15) !important;
    transform: translateX(3px) !important;
}

.rcx-desktop-nav .rcx-nav-link--featured {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(236, 72, 153, 0.08)) !important;
    border-color: rgba(139, 92, 246, 0.25) !important;
}

/* Sticky footer dock */
.rcx-dnav__foot {
    flex-shrink: 0;
    padding: 12px 10px 10px;
    border-radius: 18px;
    border: 1px solid rgba(34, 211, 238, 0.14);
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(139, 92, 246, 0.12), transparent 55%),
        rgba(0, 0, 0, 0.45);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

.rcx-dnav__foot .rcx-sidebar-profile-card {
    margin-bottom: 10px;
    border-radius: 14px;
    border: 1px solid rgba(139, 92, 246, 0.25);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(34, 211, 238, 0.06));
}

/* Top zone — profile + podium */
.rcx-dnav__top {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(34, 211, 238, 0.1);
}

.rcx-dnav__top-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rcx-dnav__brand--mini {
    flex: 1;
    min-width: 0;
    margin-bottom: 0 !important;
    padding: 8px 10px !important;
}

.rcx-dnav__brand--mini .rcx-dnav__brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.rcx-dnav__brand--mini .rcx-dnav__brand-mark img {
    width: 28px;
    height: 28px;
}

.rcx-dnav__density {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 12px;
    border: 1px solid rgba(34, 211, 238, 0.2);
    background: rgba(0, 0, 0, 0.35);
    color: rgba(34, 211, 238, 0.9);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.rcx-dnav__density:hover,
.rcx-dnav__density[aria-pressed="true"] {
    border-color: rgba(34, 211, 238, 0.45);
    background: rgba(34, 211, 238, 0.1);
    color: #e0f2fe;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
}

.rcx-dnav__profile-top {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.28);
    background:
        radial-gradient(120% 100% at 0% 0%, rgba(139, 92, 246, 0.16), transparent 55%),
        rgba(255, 255, 255, 0.03);
    color: var(--rcx-text);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.rcx-dnav__profile-top:hover {
    border-color: rgba(139, 92, 246, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.rcx-dnav__profile-top-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(139, 92, 246, 0.45);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.25);
}

.rcx-dnav__profile-top-avatar--guest {
    display: grid;
    place-items: center;
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    font-size: 1rem;
}

.rcx-dnav__profile-top-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rcx-dnav__profile-top-body strong {
    font-size: 0.88rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rcx-dnav__profile-top-body > span {
    font-size: 0.68rem;
    color: var(--rcx-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rcx-dnav__profile-top-rank {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    font-size: 0.62rem;
    font-weight: 700;
    color: #fcd34d;
}

.rcx-dnav__profile-top .fa-chevron-right {
    color: var(--rcx-dim);
    font-size: 0.72rem;
}

/* Top 3 podium */
.rcx-dnav__podium {
    padding: 10px 10px 8px;
    border-radius: 16px;
    border: 1px solid rgba(251, 191, 36, 0.22);
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(251, 191, 36, 0.12), transparent 60%),
        rgba(0, 0, 0, 0.28);
}

.rcx-dnav__podium-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(251, 191, 36, 0.9);
    font-family: var(--rcx-mono);
}

.rcx-dnav__podium-head i {
    font-size: 0.85rem;
}

.rcx-dnav__podium-loading,
.rcx-dnav__podium-empty {
    margin: 0;
    padding: 8px 4px;
    font-size: 0.72rem;
    color: var(--rcx-dim);
    text-align: center;
}

.rcx-dnav__podium-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rcx-dnav__podium-item {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.rcx-dnav__podium-item--1 {
    border-color: rgba(251, 191, 36, 0.35);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.14), rgba(245, 158, 11, 0.06));
}

.rcx-dnav__podium-item--2 {
    border-color: rgba(203, 213, 225, 0.25);
    background: linear-gradient(135deg, rgba(203, 213, 225, 0.1), rgba(148, 163, 184, 0.05));
}

.rcx-dnav__podium-item--3 {
    border-color: rgba(180, 83, 9, 0.28);
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.12), rgba(146, 64, 14, 0.05));
}

.rcx-dnav__podium-rank {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 36px;
    font-size: 0.62rem;
    font-weight: 800;
    color: var(--rcx-dim);
    font-family: var(--rcx-mono);
}

.rcx-dnav__podium-item--1 .rcx-dnav__podium-rank { color: #fcd34d; }
.rcx-dnav__podium-item--2 .rcx-dnav__podium-rank { color: #cbd5e1; }
.rcx-dnav__podium-item--3 .rcx-dnav__podium-rank { color: #fdba74; }

.rcx-dnav__podium-avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    font-weight: 800;
    color: #e9d5ff;
}

.rcx-dnav__podium-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rcx-dnav__podium-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.rcx-dnav__podium-name {
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rcx-dnav__podium-xp {
    font-size: 0.62rem;
    color: var(--rcx-dim);
    font-family: var(--rcx-mono);
}

/* Quick nav in desktop shell */
.rcx-dnav__quicknav.rcx-sidebar-quicknav {
    flex-shrink: 0;
    margin-bottom: 12px;
}

/* Timetable footer mini */
.rcx-dnav__timetable {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(34, 211, 238, 0.1);
}

.rcx-dnav__timetable-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(34, 211, 238, 0.85);
    font-family: var(--rcx-mono);
}

.rcx-dnav__timetable-link {
    margin-left: auto;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: none;
    color: #67e8f9;
    text-decoration: none;
}

.rcx-dnav__timetable-link:hover {
    text-decoration: underline;
}

.rcx-dnav__timetable-empty {
    margin: 0;
    font-size: 0.72rem;
    color: var(--rcx-dim);
    text-align: center;
    padding: 4px 0;
}

.rcx-dnav__timetable-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rcx-dnav__timetable-slot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.72rem;
}

.rcx-dnav__timetable-time {
    flex-shrink: 0;
    min-width: 42px;
    font-family: var(--rcx-mono);
    font-weight: 700;
    color: #67e8f9;
    font-size: 0.65rem;
}

.rcx-dnav__timetable-subject {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--rcx-muted);
}

/* Mobile dock (unchanged shell tweaks) */
.rcx-nav-v2 .bottom-nav.rcx-nav-dock,
.rcx-nav-v2 .bottom-nav.rcx-standalone-bottom-nav {
    left: 12px;
    right: 12px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
    border-radius: 24px !important;
    border-color: rgba(34, 211, 238, 0.18) !important;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(34, 211, 238, 0.1), transparent 55%),
        radial-gradient(80% 60% at 0% 100%, rgba(139, 92, 246, 0.12), transparent 50%),
        rgba(6, 10, 18, 0.94) !important;
    padding: 0 12px 12px;
}

.rcx-nav-v2 .rcx-bottom-nav-pill {
    width: 64px;
    height: 5px;
}

.rcx-nav-v2 .rcx-bottom-nav-item--learn .rcx-bottom-nav-item__icon {
    transform: translateY(-10px);
}

.rcx-nav-v2 .mobile-phone-menu-sheet {
    border: 1px solid rgba(34, 211, 238, 0.15);
    background:
        radial-gradient(ellipse 80% 40% at 50% 0%, rgba(139, 92, 246, 0.18), transparent 55%),
        rgba(8, 12, 20, 0.98) !important;
}

@media (max-width: 768px) {
    .rcx-desktop-nav .rcx-dnav__rail,
    .rcx-desktop-nav .rcx-dnav__brand-text,
    .rcx-dnav__search-label {
        /* mobile sheet uses different layout; desktop-only blocks hidden via !isMobileLayout */
    }
}

@media (prefers-reduced-motion: reduce) {
    .rcx-nav-v2.newgen-shell { animation: none; }
    .rcx-dnav__brand:hover,
    .rcx-dnav__rail-item:hover,
    .rcx-desktop-nav .rcx-nav-link:hover {
        transform: none !important;
    }
}

/* ═══ Connect (community) section ═══ */
.rcx-connect {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 7vw, 5rem) 0;
    background:
        radial-gradient(ellipse 85% 50% at 50% -15%, rgba(99, 102, 241, 0.22), transparent 58%),
        radial-gradient(ellipse 55% 40% at 100% 90%, rgba(34, 211, 238, 0.12), transparent 52%),
        linear-gradient(180deg, rgba(4, 8, 18, 0.35) 0%, var(--rcx-bg, #0a0a0c) 100%);
    border-top: 1px solid var(--rcx-border);
    color: var(--rcx-text);
}

.rcx-connect__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 25%, #000 12%, transparent 72%);
    opacity: 0.65;
}

.rcx-connect__inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }

.rcx-connect__head { text-align: center; margin-bottom: 1.75rem; }

.rcx-connect__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.28);
}

.rcx-connect__title {
    margin: 0 0 10px;
    font-size: clamp(1.65rem, 3.8vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.rcx-connect__subtitle {
    margin: 0;
    color: var(--rcx-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.rcx-connect-gate {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.22);
    background: rgba(15, 23, 42, 0.55);
}

.rcx-connect-gate__icon {
    font-size: 2rem;
    color: #818cf8;
    margin-bottom: 12px;
}

.rcx-connect-gate p {
    margin: 0 0 18px;
    color: var(--rcx-muted);
    line-height: 1.55;
}

.rcx-connect-gate__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.35);
}

.rcx-connect-composer {
    display: flex;
    gap: 14px;
    margin-bottom: 1.75rem;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.65);
}

.rcx-connect-composer__ava {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(99, 102, 241, 0.35);
}

.rcx-connect-composer__box { flex: 1; min-width: 0; }

.rcx-connect-composer__input {
    width: 100%;
    min-height: 88px;
    resize: vertical;
    border: none;
    background: transparent;
    color: var(--rcx-text);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.55;
    outline: none;
}

.rcx-connect-composer__input::placeholder { color: var(--rcx-muted); opacity: 0.85; }

.rcx-connect-composer__preview {
    position: relative;
    display: inline-block;
    margin: 8px 0;
}

.rcx-connect-composer__preview img {
    max-width: 220px;
    max-height: 180px;
    border-radius: 12px;
    object-fit: cover;
}

.rcx-connect-composer__remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    cursor: pointer;
}

.rcx-connect-composer__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.rcx-connect-composer__attach {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--rcx-muted);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.rcx-connect-composer__attach:hover {
    background: rgba(99, 102, 241, 0.12);
    color: #c7d2fe;
}

.rcx-connect-composer__post {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.32);
    transition: opacity 0.2s, transform 0.2s;
}

.rcx-connect-composer__post:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.rcx-connect-composer__post:not(:disabled):hover { transform: translateY(-1px); }

.rcx-connect-loading,
.rcx-connect-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 3rem 1rem;
    color: var(--rcx-muted);
    text-align: center;
}

.rcx-connect-loading__ring {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(99, 102, 241, 0.15);
    border-top-color: #6366f1;
    animation: frSpin 0.85s linear infinite;
}

.rcx-connect-empty i { font-size: 2.2rem; opacity: 0.35; color: #818cf8; }

.rcx-connect-feed { display: flex; flex-direction: column; gap: 16px; }

.rcx-connect-post {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.55);
}

.rcx-connect-post__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.rcx-connect-post__ava {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.rcx-connect-post__head strong {
    display: block;
    font-size: 0.95rem;
}

.rcx-connect-post__head span {
    font-size: 0.78rem;
    color: var(--rcx-muted);
}

.rcx-connect-post__body {
    margin: 0 0 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.rcx-connect-post__media {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
}

.rcx-connect-post__reactions {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--rcx-muted);
    margin-bottom: 8px;
}

.rcx-connect-post__actions {
    display: flex;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.rcx-connect-post__actions button {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--rcx-muted);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.rcx-connect-post__actions button:hover,
.rcx-connect-post__actions button.is-active {
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
}

.rcx-connect-post__comments {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.rcx-connect-comment {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.rcx-connect-comment img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.rcx-connect-comment strong {
    display: block;
    font-size: 0.82rem;
    margin-bottom: 2px;
}

.rcx-connect-comment p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--rcx-text);
}

.rcx-connect-comment-input {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.rcx-connect-comment-input input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(8, 12, 20, 0.6);
    color: var(--rcx-text);
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
}

.rcx-connect-comment-input button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: #fff;
    cursor: pointer;
}

@media (max-width: 640px) {
    .rcx-connect-composer { flex-direction: column; }
    .rcx-connect-composer__ava { width: 36px; height: 36px; }
}

/* Image loading shimmer — see also assets/css/rcx-img-loading.css */
@keyframes rcx-img-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

img.rcx-img-pending {
    background-color: rgba(24, 24, 32, 0.92);
    background-image: linear-gradient(
        105deg,
        rgba(24, 24, 32, 0.92) 0%,
        rgba(139, 92, 246, 0.18) 42%,
        rgba(34, 211, 238, 0.16) 52%,
        rgba(24, 24, 32, 0.92) 100%
    );
    background-size: 220% 100%;
    animation: rcx-img-shimmer 1.15s ease-in-out infinite;
    opacity: 0.42;
    filter: saturate(0.35) blur(6px);
}

img.rcx-img-ready {
    animation: none;
    background: none;
    opacity: 1;
    filter: none;
    transition: opacity 0.28s ease, filter 0.28s ease;
}

img.rcx-img-error {
    animation: none;
    background: rgba(24, 24, 32, 0.65);
    opacity: 0.35;
    filter: grayscale(0.8);
}

@media (prefers-reduced-motion: reduce) {
    img.rcx-img-pending {
        animation: none;
        filter: none;
        opacity: 0.7;
        background: rgba(24, 24, 32, 0.85);
    }

    img.rcx-img-ready {
        transition: none;
    }
}
