:root {
    --rnfi-bg: #080b12;
    --rnfi-panel: #111722;
    --rnfi-panel-2: #171f2d;
    --rnfi-text: #f6f7fb;
    --rnfi-muted: #9aa6ba;
    --rnfi-red: #ff3d4f;
    --rnfi-orange: #ff8a00;
    --rnfi-gold: #ffd166;
    --rnfi-cyan: #34d5ff;
    --rnfi-green-gradient: linear-gradient(135deg, #72e387, #28b85f);
    --rnfi-line: rgba(255, 255, 255, 0.1);
}

body {
    color: var(--rnfi-text);
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.site-bg {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 61, 79, 0.24), transparent 28rem),
        radial-gradient(circle at 88% 4%, rgba(52, 213, 255, 0.12), transparent 30rem),
        radial-gradient(circle at 50% 100%, rgba(255, 138, 0, 0.13), transparent 36rem),
        linear-gradient(180deg, #090c14 0%, #070910 46%, #0d111a 100%);
    background-attachment: fixed;
}

.site-bg::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.3;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

.site-main {
    padding: 34px 0 56px;
}

.rnfi-navbar,
.admin-navbar {
    background: rgba(8, 11, 18, 0.84);
    border-bottom: 1px solid var(--rnfi-line);
    backdrop-filter: blur(16px);
}

.brand-logo,
.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 16px;
    padding: 8px 12px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255,255,255,0.4);
}

.brand-copy {
    display: grid;
    line-height: 1.05;
}

.brand-title {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.brand-subtitle {
    color: var(--rnfi-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
}

.nav-meta a {
    color: var(--rnfi-muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-decoration: none;
    text-transform: uppercase;
}

.nav-meta a:hover,
.watch-link:hover {
    color: #fff;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
    border: 1px solid var(--rnfi-line);
    border-radius: 18px;
    color: #fff;
    padding: 8px 12px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--rnfi-green-gradient);
    color: #fff;
}

.user-name {
    font-size: 13px;
    font-weight: 800;
}

.user-meta,
.logout-link {
    color: var(--rnfi-muted);
    font-size: 11px;
    text-decoration: none;
}

.vlogger-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--rnfi-line);
    border-radius: 34px;
    padding: clamp(28px, 5vw, 64px);
    background:
        linear-gradient(120deg, rgba(13, 17, 27, 0.96), rgba(23, 31, 45, 0.82)),
        radial-gradient(circle at 70% 20%, rgba(255, 61, 79, 0.38), transparent 26rem),
        radial-gradient(circle at 20% 80%, rgba(52, 213, 255, 0.13), transparent 22rem);
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.48);
    isolation: isolate;
}

.vlogger-hero::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 33px;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.14), transparent 24%, transparent 72%, rgba(255,61,79,0.12));
    z-index: -1;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(6px);
    opacity: 0.52;
}

.hero-orb-one {
    width: 170px;
    height: 170px;
    right: 12%;
    top: 8%;
    background: radial-gradient(circle, rgba(255, 61, 79, 0.65), transparent 66%);
}

.hero-orb-two {
    width: 210px;
    height: 210px;
    right: -40px;
    bottom: -60px;
    background: radial-gradient(circle, rgba(255, 138, 0, 0.42), transparent 68%);
}

.vlogger-hero h1,
.watch-header h1 {
    max-width: 860px;
    color: #fff;
    font-size: clamp(28px, 4.2vw, 52px);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 0.96;
    margin: 14px 0 18px;
    text-shadow: 0 18px 52px rgba(0, 0, 0, 0.45);
}

.vlogger-hero p,
.watch-header p {
    max-width: 700px;
    color: var(--rnfi-muted);
    font-size: 15px;
    line-height: 1.7;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 61, 79, 0.18), rgba(255, 138, 0, 0.1));
    border: 1px solid rgba(255, 61, 79, 0.38);
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: var(--rnfi-red);
    background: rgba(255, 61, 79, 0.09);
}

.hero-actions,
.hero-stats,
.watch-toolbar,
.share-actions,
.section-heading,
.panel-title,
.comment-author {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-stats {
    margin-top: 28px;
    color: var(--rnfi-muted);
}

.hero-stats strong {
    color: #fff;
}

.btn-rnfi {
    border: 0;
    color: #fff;
    background: var(--rnfi-green-gradient);
    box-shadow: 0 14px 34px rgba(255, 61, 79, 0.28);
    font-weight: 900;
    letter-spacing: 0.2px;
}

.btn-rnfi:hover {
    color: #fff;
    filter: brightness(1.08);
}

.btn-ghost-light,
.btn-dark-soft {
    color: #fff;
    border: 1px solid var(--rnfi-line);
    background: rgba(255, 255, 255, 0.06);
}

.btn-ghost-light:hover,
.btn-dark-soft:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.hero-preview {
    border: 1px solid var(--rnfi-line);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.045));
    padding: 12px;
    transform: rotate(1.5deg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.preview-topbar,
.player-frame-top {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    color: var(--rnfi-muted);
    background: rgba(0, 0, 0, 0.32);
    border-radius: 18px 18px 0 0;
    font-size: 12px;
    font-weight: 800;
}

.preview-topbar span,
.player-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.preview-topbar span:nth-child(1),
.player-dots span:nth-child(1) { background: #ff5f57; }
.preview-topbar span:nth-child(2),
.player-dots span:nth-child(2) { background: #ffbd2e; }
.preview-topbar span:nth-child(3),
.player-dots span:nth-child(3) { background: #28c840; }

.preview-topbar strong {
    margin-left: auto;
    color: #fff;
}

.preview-screen {
    position: relative;
    min-height: 260px;
    border-radius: 0 0 22px 22px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72)),
        url("https://www.rnfiservices.com/images/logo.png") center / 48% no-repeat,
        linear-gradient(135deg, #1d2738, #090b11);
}

.preview-question-card {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 18px;
    background: rgba(8, 11, 18, 0.82);
    backdrop-filter: blur(14px);
}

.preview-question-card small {
    display: block;
    color: var(--rnfi-gold);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.preview-question-card strong {
    display: block;
    margin-top: 4px;
    color: #fff;
}

.preview-screen i,
.video-card-vlogger .play {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--rnfi-green-gradient);
    box-shadow: 0 16px 42px rgba(255, 61, 79, 0.34);
}

.preview-panel {
    padding: 18px 8px 4px;
}

.preview-panel h5,
.section-heading h2,
.video-card-vlogger h5,
.side-panel h5,
.admin-page-title h2 {
    color: #fff;
    font-weight: 900;
}

.video-description-clamp {
    min-height: 52px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.preview-panel p,
.video-card-vlogger p,
.empty-note,
.login-note {
    color: var(--rnfi-muted);
}

.section-heading {
    justify-content: space-between;
    margin-bottom: 18px;
}

.feature-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.video-filter-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.video-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 320px;
    padding: 0 14px;
    border-radius: 16px;
    background: #fff;
}

.video-search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 13px 0;
    color: var(--rnfi-blue);
    font-weight: 700;
}

.video-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.video-category-pills button {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 10px 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 900;
}

.video-category-pills button.active {
    color: #063b1b;
    background: var(--rnfi-green-gradient);
}

.video-empty-state {
    padding: 48px;
    border-radius: 28px;
    text-align: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.video-empty-state i {
    font-size: 36px;
    margin-bottom: 12px;
}

.video-empty-state a {
    color: #72e387;
    font-weight: 900;
}

.feature-strip div {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--rnfi-line);
    border-radius: 18px;
    padding: 15px 16px;
    color: #e8edf7;
    background: rgba(255,255,255,0.055);
}

.feature-strip i {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: var(--rnfi-green-gradient);
}

.video-card-vlogger,
.side-panel,
.watch-player-shell {
    overflow: hidden;
    border: 1px solid var(--rnfi-line);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(25, 34, 49, 0.92), rgba(13, 18, 28, 0.92));
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.video-card-vlogger {
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.video-card-vlogger:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 61, 79, 0.36);
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
}

.video-card-vlogger .thumb {
    position: relative;
    display: block;
    height: 230px;
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.08), transparent 42%),
        linear-gradient(135deg, #111827, #05070b);
}

.video-card-vlogger .thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 28%, rgba(0,0,0,0.78));
}

.video-card-vlogger .thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 46px;
    opacity: 0.72;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.video-card-vlogger:hover .thumb img {
    transform: scale(1.08);
    opacity: 0.95;
}

.video-card-vlogger .play {
    position: absolute;
    left: 22px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    z-index: 2;
}

.duration {
    position: absolute;
    right: 18px;
    bottom: 24px;
    color: #fff;
    background: rgba(0, 0, 0, 0.68);
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 800;
    z-index: 2;
}

.video-card-body,
.side-panel,
.watch-toolbar {
    padding: 22px;
}

.video-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.video-tags span {
    color: #ffd9dc;
    background: rgba(255, 61, 79, 0.12);
    border: 1px solid rgba(255, 61, 79, 0.26);
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 800;
}

.watch-link {
    color: var(--rnfi-red);
    font-weight: 900;
    text-decoration: none;
}

.watch-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.watch-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.watch-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d9e0ec;
    border: 1px solid var(--rnfi-line);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.06);
    font-size: 12px;
    font-weight: 800;
}

.watch-meta-row i {
    color: var(--rnfi-red);
}

.watch-header h1 {
    font-size: clamp(24px, 3.8vw, 42px);
}

.video-player {
    width: 100%;
    min-height: 420px;
    background: #000;
    display: block;
}

.player-video-stage {
    position: relative;
    overflow: hidden;
    background: #000;
}

.player-video-stage:fullscreen,
.player-video-stage:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    display: grid;
    place-items: center;
}

.player-video-stage:fullscreen .video-player,
.player-video-stage:-webkit-full-screen .video-player {
    width: 100vw;
    height: 100vh;
    min-height: 0;
    object-fit: contain;
}

.player-video-stage:fullscreen .mcq-video-overlay,
.player-video-stage:-webkit-full-screen .mcq-video-overlay {
    z-index: 2147483647;
}

.player-fullscreen-btn {
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 4;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    color: #fff;
    background: rgba(5, 12, 24, 0.62);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, background 0.2s ease;
}

.player-fullscreen-btn:hover,
.player-fullscreen-btn.is-active {
    transform: translateY(-1px);
    background: rgba(15, 122, 53, 0.88);
}

.player-video-stage:fullscreen .player-fullscreen-btn,
.player-video-stage:-webkit-full-screen .player-fullscreen-btn {
    z-index: 2147483646;
}

.mcq-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    align-items: center;
    justify-items: end;
    padding: clamp(16px, 3vw, 34px);
}

.mcq-dim-layer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 22%, rgba(44, 174, 79, 0.16), transparent 28rem),
        linear-gradient(90deg, rgba(3, 12, 28, 0.76), rgba(3, 12, 28, 0.34));
    backdrop-filter: blur(2px);
}

.mcq-overlay-card {
    position: relative;
    width: min(560px, 96%);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
    transform: translateY(12px) scale(0.98);
    animation: mcqCardIn 0.28s ease forwards;
}

.mcq-card-topline {
    height: 6px;
    background: var(--rnfi-green-gradient);
}

.mcq-card-header,
.mcq-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
}

.mcq-card-header {
    border-bottom: 1px solid rgba(22, 59, 115, 0.1);
}

.mcq-card-header h3 {
    color: var(--rnfi-blue);
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 900;
    margin: 8px 0 0;
}

.mcq-chip,
.mcq-time-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.7px;
}

.mcq-chip {
    color: #063b1b;
    background: rgba(44, 174, 79, 0.15);
    padding: 7px 11px;
    text-transform: uppercase;
}

.mcq-time-pill {
    color: #fff;
    background: var(--rnfi-blue);
    padding: 10px 12px;
}

.mcq-card-body {
    padding: 22px 24px 16px;
}

.mcq-question-text {
    color: #1e293b;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.45;
    margin-bottom: 16px;
}

.mcq-options-grid {
    display: grid;
    gap: 10px;
}

.mcq-option-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: 1px solid rgba(22, 59, 115, 0.14);
    border-radius: 16px;
    padding: 12px 14px;
    color: var(--rnfi-blue);
    background: #fff;
    text-align: left;
    font-weight: 800;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.mcq-option-card:hover,
.mcq-option-card.selected {
    transform: translateX(6px);
    border-color: rgba(44, 174, 79, 0.5);
    background: linear-gradient(135deg, rgba(44, 174, 79, 0.12), #fff);
    box-shadow: 0 12px 28px rgba(22, 59, 115, 0.1);
}

.mcq-option-index {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: var(--rnfi-green-gradient);
}

.mcq-option-card i {
    opacity: 0.4;
}

.mcq-card-footer {
    border-top: 1px solid rgba(22, 59, 115, 0.1);
    background: #f8fbff;
}

.mcq-skip-status {
    flex: 1;
    color: #64748b;
    font-weight: 700;
}

.mcq-skip-progress {
    overflow: hidden;
    height: 7px;
    margin-top: 8px;
    border-radius: 999px;
    background: rgba(22, 59, 115, 0.1);
}

.mcq-skip-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--rnfi-green-gradient);
    transition: width 0.3s ease;
}

@keyframes mcqCardIn {
    to { transform: translateY(0) scale(1); }
}

.player-frame-top {
    justify-content: space-between;
    border-radius: 26px 26px 0 0;
    border-bottom: 1px solid var(--rnfi-line);
}

.player-dots {
    display: flex;
    gap: 7px;
}

.player-label {
    color: #d8deea;
}

.watch-toolbar {
    justify-content: space-between;
    border-top: 1px solid var(--rnfi-line);
}

.video-description-section {
    border: 1px solid var(--rnfi-line);
    border-radius: 24px;
    padding: 24px;
    background: var(--rnfi-panel);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.video-description-section h4 {
    margin: 14px 0 10px;
    color: #fff;
    font-weight: 900;
}

.video-description-section p {
    color: var(--rnfi-muted);
    line-height: 1.8;
    margin-bottom: 0;
}

.comments-panel {
    position: sticky;
    top: 92px;
}

.watch-side-stack {
    position: sticky;
    top: 92px;
}

.watch-side-stack .comments-panel {
    position: static;
}

.lesson-summary-card,
.video-tabs-card {
    border: 1px solid var(--rnfi-line);
    border-radius: 24px;
    padding: 22px;
    background: var(--rnfi-panel);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.lesson-summary-card h5,
.video-tabs-card h4 {
    color: #fff;
    font-weight: 900;
}

.up-next-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--rnfi-line);
    color: #fff;
    text-decoration: none;
}

.up-next-item img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 50%;
    padding: 8px;
    background: #fff;
    border: 1px solid rgba(11, 39, 79, 0.12);
    box-shadow: 0 10px 24px rgba(11, 39, 79, 0.12);
    flex: 0 0 64px;
}

.up-next-item span,
.up-next-item small {
    display: block;
}

.up-next-copy {
    min-width: 0;
}

.up-next-copy strong {
    display: block;
    color: #0b274f;
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 5px;
}

.up-next-item small {
    color: #66758f;
    font-size: 0.78rem;
    margin-top: 3px;
}

.up-next-item small i {
    color: var(--rnfi-green);
    margin-right: 4px;
}

.lesson-tabs {
    gap: 8px;
}

.lesson-tabs .nav-link {
    border-radius: 999px;
    color: var(--rnfi-muted);
    font-weight: 900;
}

.lesson-tabs .nav-link.active {
    color: #063b1b;
    background: var(--rnfi-green-gradient);
}

.video-tabs-card p {
    color: var(--rnfi-muted);
    line-height: 1.8;
}

.panel-title {
    justify-content: space-between;
    margin-bottom: 18px;
}

.comment-count {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--rnfi-green-gradient);
    font-weight: 900;
}

.comment-box {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--rnfi-line);
    border-radius: 16px;
}

.comment-box:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 61, 79, 0.65);
    box-shadow: 0 0 0 0.2rem rgba(255, 61, 79, 0.12);
}

.login-note {
    border: 1px solid rgba(13, 202, 240, 0.24);
    border-radius: 16px;
    background: rgba(13, 202, 240, 0.08);
    padding: 14px;
    font-size: 13px;
}

.comment-item {
    border-top: 1px solid var(--rnfi-line);
    padding-top: 18px;
    margin-top: 18px;
}

.comment-author span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.1);
}

.comment-item p {
    color: #d8deea;
    margin: 12px 0;
}

.reply-item {
    margin: 14px 0 0 22px;
    padding: 12px;
    color: #d8deea;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
}

.modal-content {
    color: #fff;
    background: #101722;
    border: 1px solid var(--rnfi-line);
}

.modal-header,
.modal-footer {
    border-color: var(--rnfi-line);
}

.auth-bg {
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(255, 61, 79, 0.18), transparent 30rem),
        linear-gradient(135deg, #080b12, #151d2a 52%, #080b12);
}

.auth-shell {
    display: grid;
    align-items: center;
    min-height: 100vh;
}

.auth-card {
    max-width: 480px;
}

.auth-vlogger-card {
    color: #111827;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

.auth-alert {
    max-width: 640px;
}

.otp-input {
    letter-spacing: 10px;
    font-weight: 700;
}

.admin-bg {
    background: #f4f6fb;
    color: #111827;
    overflow: hidden;
}

.admin-navbar {
    color: #fff;
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.admin-shell {
    display: flex;
    height: calc(100vh - 60px);
    padding-top: 60px;
}

.admin-sidebar {
    background: #0f1724;
    bottom: 0;
    flex: none;
    height: calc(100vh - 60px);
    left: 0;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    position: fixed;
    top: 60px;
    width: 260px;
    z-index: 1020;
    scrollbar-color: rgba(255, 255, 255, 0.38) rgba(255, 255, 255, 0.08);
    scrollbar-width: thin;
}

.admin-main {
    flex: 1 1 auto;
    height: calc(100vh - 60px);
    margin-left: 260px;
    min-width: 0;
    overflow-y: auto;
    width: calc(100% - 260px);
}

.admin-sidebar::-webkit-scrollbar {
    width: 7px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.38);
    border-radius: 10px;
}

.sidebar-label {
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
    margin: 8px 0 12px;
    text-transform: uppercase;
}

.sidebar-link {
    display: block;
    color: #cbd5e1;
    border-radius: 12px;
    padding: 11px 12px;
    margin-bottom: 6px;
    text-decoration: none;
}

.sidebar-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-link.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(15, 122, 53, 0.95), rgba(11, 39, 79, 0.55));
    box-shadow: inset 3px 0 0 #72e387;
}

.sidebar-group {
    margin-bottom: 12px;
}

.sidebar-group summary {
    cursor: pointer;
    list-style: none;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
    margin: 8px 0 12px;
    text-transform: uppercase;
}

.sidebar-group summary::-webkit-details-marker {
    display: none;
}

.sidebar-group summary::after {
    content: "+";
    float: right;
    color: #72e387;
}

.sidebar-group[open] summary::after {
    content: "-";
}

.sidebar-logout {
    color: #fecaca;
}

.admin-page-title h2 {
    color: #111827;
    margin-top: 8px;
}

.admin-stat-card,
.admin-content-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 128px;
    border-radius: 24px;
    padding: 24px;
    background: linear-gradient(180deg, #fff, #f8fafc);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.admin-stat-card i {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--rnfi-green-gradient);
}

.admin-stat-card span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-stat-card strong {
    color: #111827;
    font-size: 34px;
    line-height: 1;
}

.admin-table-card,
.admin-form-card {
    border-radius: 24px;
    overflow: hidden;
}

.admin-video-table th {
    color: #64748b;
    font-size: 12px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-video-table td {
    vertical-align: middle;
}

.admin-video-thumb {
    width: 78px;
    height: 54px;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
    border-radius: 14px;
    background: #edf5ff;
}

.admin-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.admin-metric {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--rnfi-blue);
    font-weight: 800;
    white-space: nowrap;
}

.admin-metric i {
    color: var(--rnfi-red);
}

.initial-mcq-panel {
    border: 1px solid rgba(22, 59, 115, 0.12);
    border-radius: 22px;
    padding: 24px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.mcq-summary-card {
    height: 100%;
    border: 1px solid rgba(22, 59, 115, 0.12);
    border-radius: 20px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(22, 59, 115, 0.07);
}

.admin-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-check-card,
.role-card {
    border: 1px solid rgba(22, 59, 115, 0.12);
    border-radius: 18px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(22, 59, 115, 0.06);
}

.admin-check-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.admin-check-card strong,
.admin-check-card small {
    display: block;
}

.admin-check-card strong,
.role-card h5 {
    color: var(--rnfi-blue);
    font-weight: 900;
}

.admin-check-card small,
.role-card p {
    color: #64748b;
    margin-bottom: 0;
}

.profile-summary-card {
    border: 1px solid rgba(22, 59, 115, 0.12);
    border-radius: 24px;
    padding: 24px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(22, 59, 115, 0.08);
    text-align: center;
}

.profile-avatar {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: 26px;
    color: #fff;
    background: var(--rnfi-green-gradient);
    font-size: 30px;
}

.profile-summary-card h4 {
    color: var(--rnfi-blue);
    font-weight: 900;
}

.profile-summary-card p {
    color: #64748b;
    margin-bottom: 0;
}

.profile-meta {
    display: grid;
    gap: 10px;
    text-align: left;
}

.profile-meta div {
    border: 1px solid rgba(22, 59, 115, 0.1);
    border-radius: 14px;
    padding: 12px;
    background: #f8fbff;
}

.profile-meta span,
.profile-meta strong {
    display: block;
}

.profile-meta span {
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.profile-meta strong {
    color: var(--rnfi-blue);
    margin-top: 4px;
}

.response-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.response-summary-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(22, 59, 115, 0.1);
    border-radius: 20px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(22, 59, 115, 0.07);
}

.response-summary-card span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.response-summary-card strong {
    display: block;
    color: var(--rnfi-blue);
    font-size: 28px;
    line-height: 1;
    margin-top: 8px;
}

.response-summary-card i {
    position: absolute;
    right: 14px;
    bottom: 12px;
    color: rgba(15, 122, 53, 0.18);
    font-size: 34px;
}

.response-question-text {
    min-width: 260px;
    max-width: 420px;
}

.admin-card-heading {
    color: var(--rnfi-blue);
    font-weight: 900;
    margin: 10px 0 0;
    font-size: 22px;
}

.admin-inline-code {
    color: #b91c1c;
    background: #fff1f2;
    border-radius: 6px;
    padding: 3px 6px;
}

.file-search-form {
    min-width: min(520px, 100%);
}

.file-link-input {
    min-width: 220px;
    background: #f1f5f9;
    border-radius: 12px;
}

@media (max-width: 1199px) {
    .response-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .response-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .admin-check-grid {
        grid-template-columns: 1fr;
    }
}

.comment-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.comment-filter-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(22, 59, 115, 0.12);
    border-radius: 999px;
    padding: 10px 15px;
    color: var(--rnfi-blue);
    background: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(22, 59, 115, 0.06);
}

.comment-filter-tabs a.active {
    color: #063b1b;
    background: var(--rnfi-green-gradient);
}

.comment-filter-tabs span {
    min-width: 26px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    font-size: 12px;
}

.admin-search-form .form-control,
.admin-search-form .btn {
    min-height: 42px;
}

.comment-moderation-modal .modal-title {
    color: var(--rnfi-blue);
    font-weight: 900;
}

.review-meta,
.review-block {
    border: 1px solid rgba(22, 59, 115, 0.1);
    border-radius: 16px;
    padding: 14px;
    background: #f8fbff;
}

.review-meta span,
.review-block span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.7px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.review-meta strong {
    color: var(--rnfi-blue);
}

.review-block p {
    color: #334155;
    line-height: 1.7;
    margin-bottom: 0;
    white-space: pre-wrap;
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.dashboard-command-center {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    border-radius: 30px;
    color: #fff;
    background: radial-gradient(circle at 10% 20%, rgba(114, 227, 135, 0.25), transparent 22rem), linear-gradient(135deg, #071a38, #0b274f 58%, #0f7a35);
    box-shadow: 0 22px 50px rgba(11, 39, 79, 0.22);
}

.dashboard-ops-header {
    display: grid;
    grid-template-columns: minmax(280px, 1.35fr) minmax(360px, 1fr) auto;
    align-items: stretch;
    padding: 0;
    border: 1px solid rgba(11, 39, 79, 0.08);
    color: var(--rnfi-blue);
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(22, 59, 115, 0.09);
}

.dashboard-ops-header::after {
    display: none;
}

.ops-title-card {
    padding: 24px 26px;
    border-right: 1px solid rgba(11, 39, 79, 0.08);
    background: linear-gradient(135deg, #ffffff, #f7fbff);
}

.ops-title-card h1 {
    margin: 10px 0 8px;
    color: var(--rnfi-blue);
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 900;
    letter-spacing: -1.2px;
}

.ops-title-card p {
    max-width: 620px;
    margin: 0;
    color: #64748b;
    font-weight: 600;
}

.ops-metric-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: rgba(11, 39, 79, 0.08);
}

.ops-metric-strip > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 22px;
    background: #fff;
}

.ops-metric-strip span,
.ops-metric-strip small {
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.ops-metric-strip strong {
    color: var(--rnfi-blue);
    font-size: 34px;
    line-height: 1;
    margin: 8px 0 4px;
}

.ops-metric-strip .needs-attention strong {
    color: #b45309;
}

.ops-action-stack {
    display: grid;
    gap: 10px;
    align-content: center;
    min-width: 190px;
    padding: 18px;
    background: linear-gradient(180deg, #f8fbff, #eef7f2);
}

.ops-action-stack a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border: 1px solid rgba(11, 39, 79, 0.12);
    border-radius: 14px;
    color: var(--rnfi-blue);
    background: #fff;
    font-weight: 900;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.ops-action-stack a:hover {
    transform: translateX(-3px);
    box-shadow: 0 12px 24px rgba(22, 59, 115, 0.12);
}

.ops-action-stack a.primary {
    color: #fff;
    border-color: transparent;
    background: var(--rnfi-green-gradient);
}

.dashboard-command-center::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.28;
    background-image: linear-gradient(135deg, rgba(255,255,255,.14) 1px, transparent 1px);
    background-size: 22px 22px;
}

.dashboard-command-copy,
.command-actions {
    position: relative;
    z-index: 1;
}

.dashboard-command-copy h1 {
    max-width: 760px;
    margin: 10px 0 8px;
    font-size: clamp(28px, 4vw, 54px);
    font-weight: 900;
    letter-spacing: -1.8px;
}

.dashboard-command-copy p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.76);
    margin-bottom: 16px;
}

.dashboard-pulse-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-pulse-row span,
.status-pill-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #eaf7ff;
    background: rgba(255, 255, 255, 0.12);
    font-size: 12px;
    font-weight: 800;
}

.dashboard-pulse-row i {
    color: #72e387;
    font-size: 8px;
    animation: livePulse 1.2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: .45; transform: scale(.8); }
    50% { opacity: 1; transform: scale(1.18); }
}

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-kpi-card,
.dashboard-panel {
    border: 1px solid rgba(22, 59, 115, 0.1);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(22, 59, 115, 0.08);
}

.dashboard-kpi-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.dashboard-kpi-card:hover {
    transform: translateY(-5px);
    border-color: rgba(15, 122, 53, 0.28);
    box-shadow: 0 24px 54px rgba(22, 59, 115, 0.14);
}

.dashboard-kpi-card.kpi-alert::after {
    background: rgba(245, 158, 11, 0.2);
}

.dashboard-kpi-card.kpi-hot::after {
    background: rgba(11, 143, 207, 0.15);
}

.dashboard-kpi-card::after {
    content: "";
    position: absolute;
    right: -26px;
    bottom: -34px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(114, 227, 135, 0.16);
}

.dashboard-kpi-card i {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #063b1b;
    background: var(--rnfi-green-gradient);
    margin-bottom: 14px;
}

.dashboard-kpi-card span,
.dashboard-panel-header p,
.quick-action-grid span,
.activity-row small {
    color: #64748b;
}

.dashboard-kpi-card span {
    display: block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.dashboard-kpi-card strong {
    display: block;
    color: var(--rnfi-blue);
    font-size: 28px;
    line-height: 1;
    margin: 8px 0 6px;
}

.dashboard-kpi-card small {
    color: #64748b;
    font-weight: 600;
}

.dashboard-panel {
    padding: 24px;
}

.dashboard-insight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-insight-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    border: 1px solid rgba(22, 59, 115, .1);
    border-radius: 24px;
    background: linear-gradient(180deg, #fff, #f8fbff);
    box-shadow: 0 18px 44px rgba(22, 59, 115, 0.08);
}

.dashboard-insight-card span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.dashboard-insight-card strong {
    display: block;
    color: var(--rnfi-blue);
    font-size: 28px;
    line-height: 1;
    margin-top: 8px;
}

.dashboard-insight-card small {
    color: #64748b;
    font-weight: 700;
}

.radial-meter {
    --value: 0;
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: conic-gradient(#0f7a35 calc(var(--value) * 1%), #e2e8f0 0);
}

.radial-meter em {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--rnfi-blue);
    background: #fff;
    font-style: normal;
    font-weight: 900;
}

.mini-progress,
.share-stack {
    width: 120px;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.mini-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.share-stack {
    display: flex;
}

.share-stack span:nth-child(1) { background: #0b8fcf; }
.share-stack span:nth-child(2) { background: #0f7a35; }
.share-stack span:nth-child(3) { background: #f59e0b; }

.dashboard-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.dashboard-panel-header h5 {
    color: var(--rnfi-blue);
    font-weight: 900;
    margin-bottom: 4px;
}

.dashboard-panel-header p {
    margin-bottom: 0;
}

.dashboard-panel-header a {
    color: var(--rnfi-green);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.chart-toggle-group,
.feed-tabs {
    display: inline-flex;
    gap: 6px;
    padding: 5px;
    border-radius: 999px;
    background: #eef4fb;
}

.chart-toggle-group button,
.feed-tabs button {
    border: 0;
    padding: 7px 11px;
    border-radius: 999px;
    color: #64748b;
    background: transparent;
    font-size: 12px;
    font-weight: 900;
}

.chart-toggle-group button.active,
.feed-tabs button.active {
    color: #fff;
    background: var(--rnfi-blue);
    box-shadow: 0 8px 18px rgba(11, 39, 79, .18);
}

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.quick-action-grid a {
    display: block;
    min-height: 142px;
    padding: 18px;
    border: 1px solid rgba(22, 59, 115, 0.1);
    border-radius: 20px;
    color: var(--rnfi-blue);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-action-grid a:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(22, 59, 115, 0.12);
}

.quick-action-grid i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #063b1b;
    background: var(--rnfi-green-gradient);
    margin-bottom: 12px;
}

.quick-action-grid strong,
.quick-action-grid span {
    display: block;
}

.top-video-row,
.activity-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid rgba(22, 59, 115, 0.08);
}

.top-video-row.interactive-row {
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
}

.top-video-row.interactive-row:hover {
    transform: translateX(5px);
    background: #f8fbff;
}

.rank-pill,
.activity-row i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 14px;
    color: var(--rnfi-blue);
    background: #edf5ff;
    font-weight: 900;
}

.activity-row {
    align-items: flex-start;
}

.activity-row p {
    color: #334155;
    margin: 4px 0;
}

.activity-row.compact {
    padding: 11px 0;
}

.activity-row.compact p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.learner-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid rgba(22, 59, 115, 0.08);
}

.learner-chip > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 14px;
    color: #063b1b;
    background: var(--rnfi-green-gradient);
    font-weight: 900;
}

.learner-chip strong,
.learner-chip small {
    display: block;
}

.learner-chip small {
    color: #64748b;
    font-weight: 700;
}

@media (max-width: 1199px) {
    .dashboard-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .dashboard-ops-header {
        grid-template-columns: 1fr;
    }

    .ops-title-card {
        border-right: 0;
        border-bottom: 1px solid rgba(11, 39, 79, 0.08);
    }

    .ops-action-stack {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .dashboard-kpi-grid,
    .quick-action-grid,
    .dashboard-insight-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-title,
    .dashboard-command-center,
    .dashboard-panel-header {
        flex-direction: column;
    }

    .ops-metric-strip,
    .ops-action-stack,
    .video-filter-bar {
        grid-template-columns: 1fr;
    }

    .video-filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-actions {
        justify-content: flex-start;
    }

    .admin-navbar .container-fluid {
        align-items: flex-start;
        gap: 10px;
        flex-direction: column;
    }

    .admin-video-thumb {
        width: 58px;
        height: 44px;
    }
}

@media (max-width: 991px) {
    .user-chip-copy,
    .nav-meta,
    .section-admin-link {
        display: none;
    }

    .watch-header,
    .watch-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .video-player {
        min-height: 260px;
    }

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

    .site-main {
        padding: 22px 0 36px;
    }

    .vlogger-hero {
        padding: 26px;
    }

    .admin-sidebar {
        flex: 1 1 100%;
        height: auto;
        max-height: none;
        min-height: auto !important;
        position: static;
        width: 100%;
    }

    .admin-bg {
        overflow: auto;
    }

    .admin-navbar {
        height: auto;
        position: static;
    }

    .admin-shell {
        display: block;
        height: auto;
        padding-top: 0;
    }

    .admin-main {
        height: auto;
        margin-left: 0;
        overflow: visible;
        width: 100%;
    }

    .admin-sidebar .sidebar-link {
        display: inline-flex;
        margin-right: 6px;
    }
}

@media (max-width: 575px) {
    .feature-strip {
        grid-template-columns: 1fr;
    }

    .vlogger-hero {
        border-radius: 24px;
    }

    body {
        font-size: 13px;
    }

    .brand-title {
        font-size: 14px;
    }

    .site-main .container-fluid,
    .rnfi-navbar .container-fluid {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .watch-toolbar,
    .video-card-body,
    .side-panel,
    .dashboard-panel,
    .admin-content-card,
    .admin-stat-card {
        padding: 16px;
    }

    .share-actions,
    .hero-actions,
    .dashboard-actions {
        width: 100%;
    }

    .share-actions .btn,
    .hero-actions .btn,
    .dashboard-actions .btn {
        width: 100%;
    }

    .admin-video-table {
        font-size: 12px;
    }

    .mcq-video-overlay {
        align-items: end;
        justify-items: center;
        padding: 12px;
    }

    .mcq-overlay-card {
        width: 100%;
        border-radius: 20px;
    }

    .mcq-card-header,
    .mcq-card-footer,
    .mcq-card-body {
        padding: 15px;
    }

    .mcq-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .mcq-question-text {
        font-size: 14px;
    }

    .mcq-option-card {
        gap: 9px;
        padding: 10px;
        font-size: 13px;
    }

    .mcq-option-index {
        width: 28px;
        height: 28px;
    }
}

/* RNFI corporate theme override */
:root {
    --rnfi-bg: #f7f9fd;
    --rnfi-panel: #ffffff;
    --rnfi-panel-2: #edf5ff;
    --rnfi-text: #13233a;
    --rnfi-muted: #64748b;
    --rnfi-red: #e31e24;
    --rnfi-orange: #f58220;
    --rnfi-gold: #ffc107;
    --rnfi-cyan: #075f8c;
    --rnfi-blue: #0b274f;
    --rnfi-green: #0f7a35;
    --rnfi-green-gradient: linear-gradient(135deg, #2cae4f, #0f7a35);
    --rnfi-line: rgba(22, 59, 115, 0.12);
}

body {
    color: var(--rnfi-text);
    font-family: Poppins, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 14px;
}

.site-bg {
    background:
        radial-gradient(circle at 8% 10%, rgba(227, 30, 36, 0.09), transparent 24rem),
        radial-gradient(circle at 94% 12%, rgba(11, 143, 207, 0.12), transparent 28rem),
        linear-gradient(180deg, #ffffff 0%, #f7f9fd 48%, #eef5ff 100%);
}

.site-bg::before {
    opacity: 0.42;
    background-image:
        linear-gradient(rgba(22, 59, 115, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 59, 115, 0.05) 1px, transparent 1px);
}

.rnfi-navbar {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(22, 59, 115, 0.1);
    box-shadow: 0 10px 34px rgba(22, 59, 115, 0.08);
    overflow: visible;
}

.rnfi-navbar .container-fluid {
    overflow: visible;
}

.brand-logo,
.auth-logo {
    border-radius: 12px;
    padding: 6px 10px;
    box-shadow: 0 10px 26px rgba(22, 59, 115, 0.1);
}

.brand-title,
.section-heading h2,
.video-card-vlogger h5,
.side-panel h5,
.watch-header h1 {
    color: var(--rnfi-blue);
}

.brand-subtitle,
.nav-meta a,
.user-meta,
.logout-link,
.vlogger-hero p,
.watch-header p,
.preview-panel p,
.video-card-vlogger p,
.empty-note,
.login-note {
    color: var(--rnfi-muted);
}

.nav-meta a:hover,
.watch-link:hover {
    color: var(--rnfi-red);
}

.user-chip {
    color: var(--rnfi-text);
    background: #fff;
    border-color: rgba(22, 59, 115, 0.12);
    box-shadow: 0 12px 30px rgba(22, 59, 115, 0.08);
}

.user-name,
.preview-panel h5 {
    color: var(--rnfi-text);
}

.avatar,
.btn-rnfi,
.feature-strip i,
.comment-count,
.preview-screen i,
.video-card-vlogger .play,
.admin-stat-card i {
    background: var(--rnfi-green-gradient);
}

.vlogger-hero {
    border: 0;
    background:
        linear-gradient(100deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.94) 48%, rgba(232,244,255,0.88) 100%),
        radial-gradient(circle at 82% 26%, rgba(227, 30, 36, 0.2), transparent 18rem);
    box-shadow: 0 28px 80px rgba(22, 59, 115, 0.12);
}

.vlogger-hero::before {
    background: linear-gradient(135deg, rgba(227,30,36,0.12), transparent 28%, transparent 72%, rgba(11,143,207,0.12));
}

.vlogger-hero h1 {
    color: var(--rnfi-blue);
    text-shadow: none;
}

.hero-orb-one {
    background: radial-gradient(circle, rgba(227, 30, 36, 0.22), transparent 66%);
}

.hero-orb-two {
    background: radial-gradient(circle, rgba(11, 143, 207, 0.18), transparent 68%);
}

.eyebrow {
    color: var(--rnfi-red);
    background: #fff5f5;
    border-color: rgba(227, 30, 36, 0.18);
}

.eyebrow.dark {
    color: var(--rnfi-blue);
    background: #edf5ff;
    border-color: rgba(22, 59, 115, 0.14);
}

.btn-rnfi {
    box-shadow: 0 14px 34px rgba(114, 227, 135, 0.28);
}

.btn-ghost-light,
.btn-dark-soft,
.watch-meta-row span {
    color: var(--rnfi-blue);
    border-color: rgba(22, 59, 115, 0.16);
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(22, 59, 115, 0.07);
}

.btn-ghost-light:hover,
.btn-dark-soft:hover,
.btn-dark-soft.active {
    color: #fff;
    background: var(--rnfi-blue);
}

.hero-preview,
.video-card-vlogger,
.side-panel,
.watch-player-shell {
    border-color: rgba(22, 59, 115, 0.12);
    background: #fff;
    box-shadow: 0 22px 60px rgba(22, 59, 115, 0.1);
}

.preview-topbar,
.player-frame-top {
    color: #fff;
    background: linear-gradient(135deg, var(--rnfi-blue), #0b284f);
}

.preview-screen {
    background:
        linear-gradient(rgba(255, 255, 255, 0.08), rgba(22, 59, 115, 0.68)),
        url("https://www.rnfiservices.com/images/relipay-banner.png") center / cover no-repeat;
}

.preview-question-card {
    color: #fff;
    background: rgba(22, 59, 115, 0.86);
}

.feature-strip div {
    color: var(--rnfi-text);
    border-color: rgba(22, 59, 115, 0.12);
    background: #fff;
    box-shadow: 0 14px 34px rgba(22, 59, 115, 0.07);
}

.video-card-vlogger .thumb {
    background: linear-gradient(135deg, #edf5ff, #ffffff);
}

.video-card-vlogger .thumb::after {
    background: linear-gradient(180deg, transparent 24%, rgba(22, 59, 115, 0.5));
}

.video-card-vlogger .thumb img {
    opacity: 0.92;
}

.video-tags span {
    color: var(--rnfi-red);
    background: #fff5f5;
    border-color: rgba(227, 30, 36, 0.18);
}

.watch-link {
    color: var(--rnfi-red);
}

.watch-meta-row i,
.player-label {
    color: var(--rnfi-red);
}

.video-player {
    background: #07152b;
}

.comment-box {
    color: var(--rnfi-text);
    background: #fff;
    border-color: rgba(22, 59, 115, 0.16);
}

.comment-box:focus {
    color: var(--rnfi-text);
    background: #fff;
    border-color: rgba(227, 30, 36, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(227, 30, 36, 0.1);
}

.comment-item,
.modal-header,
.modal-footer {
    border-color: rgba(22, 59, 115, 0.12);
}

.comment-author span,
.reply-item {
    color: var(--rnfi-blue);
    background: #edf5ff;
}

.comment-item p,
.reply-item {
    color: #334155;
}

.modal-content {
    color: var(--rnfi-text);
    background: #fff;
    border-color: rgba(22, 59, 115, 0.12);
}

.video-description-section {
    background: #fff;
    box-shadow: 0 18px 44px rgba(22, 59, 115, 0.08);
}

.video-description-section h4 {
    color: var(--rnfi-blue);
}

.video-description-section p {
    color: #334155;
}

.auth-bg {
    background:
        radial-gradient(circle at top, rgba(227, 30, 36, 0.12), transparent 30rem),
        linear-gradient(135deg, #ffffff, #eef5ff 60%, #ffffff);
}

.admin-navbar,
.admin-sidebar {
    background: var(--rnfi-blue);
}

.api-log-pre {
    max-height: 360px;
    overflow: auto;
    border: 1px solid rgba(22, 59, 115, 0.12);
    border-radius: 14px;
    padding: 12px;
    color: #dbeafe;
    background: #07152b;
    font-size: 12px;
    white-space: pre-wrap;
}

.reward-wallet-chip {
    position: relative;
    display: inline-grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 2px 9px;
    min-width: 0;
    min-height: 0;
    padding: 8px 13px;
    border: 1px solid rgba(15, 122, 53, 0.22);
    border-radius: 18px;
    color: #063b1b;
    background: linear-gradient(135deg, #f2fff5, #fff9df);
    box-shadow: 0 12px 28px rgba(15, 122, 53, 0.1);
    text-decoration: none;
    overflow: visible;
    isolation: isolate;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.reward-wallet-chip::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    border-radius: 18px;
    background: linear-gradient(110deg, transparent 0%, transparent 36%, rgba(255, 255, 255, 0.22) 48%, transparent 60%, transparent 100%);
    background-size: 220% 100%;
    opacity: 0;
}

.reward-wallet-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 122, 53, 0.36);
    box-shadow: 0 20px 48px rgba(15, 122, 53, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.reward-wallet-chip::after {
    content: "";
    position: absolute;
    inset: -4px;
    z-index: -1;
    border-radius: 20px;
    background: linear-gradient(120deg, transparent 10%, rgba(255, 209, 102, 0.95), rgba(44, 174, 79, 0.78), transparent 90%);
    opacity: 0;
    filter: blur(12px);
}

.reward-wallet-pulse {
    animation: rewardWalletPulse 1.45s cubic-bezier(.2, .9, .2, 1.2) both;
}

.reward-wallet-pulse::before {
    animation: rewardWalletCreditShine 1.45s ease both;
}

.reward-wallet-pulse::after {
    animation: rewardWalletGlow 1.55s ease both;
}

.reward-wallet-settle {
    animation: rewardWalletSettle 1.2s cubic-bezier(.2, .9, .2, 1.2) both;
}

.reward-wallet-settle span {
    animation: rewardWalletIconSettle 1.2s ease both;
}

.reward-wallet-settle strong {
    animation: rewardWalletNumberSettle 1.2s ease both;
}

.reward-wallet-number-pop {
    display: inline-block;
    animation: rewardWalletNumberPop 1.3s cubic-bezier(.2, .9, .2, 1.2) both;
}

.reward-point-burst strong,
.available-points-earned-burst strong {
    display: block;
    color: #0f7a35;
    font-size: 22px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: -0.8px;
}

.reward-point-burst small,
.available-points-earned-burst small {
    display: block;
    margin-top: 4px;
    color: var(--rnfi-blue);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .5px;
    text-transform: uppercase;
}

@keyframes rewardWalletPulse {
    0% { transform: scale(1); box-shadow: 0 12px 28px rgba(15, 122, 53, 0.1); }
    18% { transform: scale(1.08) rotate(-1deg); box-shadow: 0 20px 52px rgba(15, 122, 53, 0.3), 0 0 0 8px rgba(255, 209, 102, 0.16); }
    42% { transform: scale(.99) rotate(1deg); box-shadow: 0 18px 44px rgba(255, 209, 102, 0.26), 0 0 0 14px rgba(15, 122, 53, 0.06); }
    70% { transform: scale(1.04); }
    100% { transform: scale(1); box-shadow: 0 12px 28px rgba(15, 122, 53, 0.1); }
}

@keyframes rewardWalletGlow {
    0% { opacity: 0; transform: scale(.92); }
    18% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0; transform: scale(1.24); }
}

@keyframes rewardWalletCreditShine {
    0% { opacity: 0; background-position: 170% 0; }
    15% { opacity: .85; }
    100% { opacity: 0; background-position: -80% 0; }
}

@keyframes rewardWalletSettle {
    0% { transform: scale(1); }
    28% { transform: scale(1.1); box-shadow: 0 22px 54px rgba(15, 122, 53, 0.34), 0 0 0 10px rgba(255, 209, 102, 0.16); }
    52% { transform: scale(.98); }
    100% { transform: scale(1); }
}

@keyframes rewardWalletIconSettle {
    0% { transform: rotate(0deg); }
    28% { transform: rotate(-10deg) scale(1.12); }
    54% { transform: rotate(8deg) scale(.98); }
    100% { transform: rotate(0deg) scale(1); }
}

@keyframes rewardWalletNumberSettle {
    0% { color: #063b1b; }
    30% { color: #0f7a35; text-shadow: 0 12px 26px rgba(15, 122, 53, .28); }
    100% { color: #063b1b; text-shadow: none; }
}

.reward-fly-coin {
    position: fixed;
    left: 50vw;
    top: 50vh;
    z-index: 2147483647;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle at 32% 28%, #fff8ca, #ffd166 55%, #e7a800);
    box-shadow: 0 20px 46px rgba(255, 209, 102, 0.45), inset 0 0 0 5px rgba(99, 61, 0, 0.12);
    transform: translate(-50%, -50%) scale(1);
    animation: rewardCoinToWallet .9s cubic-bezier(.16, .9, .28, 1) forwards;
}

.reward-fly-coin::before {
    content: "₹";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #7a4a00;
    font-size: 24px;
    font-weight: 950;
}

@keyframes rewardCoinToWallet {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(.55) rotate(0deg); }
    18% { opacity: 1; transform: translate(-50%, -58%) scale(1.08) rotate(80deg); }
    100% { opacity: 0; left: var(--wallet-x); top: var(--wallet-y); transform: translate(-50%, -50%) scale(.25) rotate(520deg); }
}

@keyframes rewardWalletNumberPop {
    0% { transform: scale(1); color: #063b1b; }
    22% { transform: scale(1.28); color: #0f7a35; text-shadow: 0 12px 28px rgba(15, 122, 53, .26); }
    54% { transform: scale(.96); color: #e31e24; }
    100% { transform: scale(1); color: #063b1b; }
}

.reward-wallet-chip span {
    grid-row: span 2;
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent),
        var(--rnfi-green-gradient);
    box-shadow: none;
    font-size: 14px;
}

.reward-wallet-chip strong {
    color: #063b1b;
    font-size: 15px;
    font-weight: 950;
    letter-spacing: -1.1px;
    line-height: 1;
    text-shadow: none;
}

.reward-wallet-chip small {
    justify-self: start;
    margin-top: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    color: #64748b;
    background: transparent;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
    line-height: 1;
    text-transform: uppercase;
}

.reward-wallet-chip em {
    display: none;
    position: absolute;
    right: 12px;
    top: -16px;
    z-index: 4;
    padding: 6px 10px;
    border-radius: 999px;
    color: #063b1b;
    background: linear-gradient(135deg, #ffd166, #fff8c8);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
    letter-spacing: .2px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px) scale(.86);
}

.reward-wallet-chip em.is-visible {
    animation: rewardWalletInlineEarned 2.35s ease both;
}

@keyframes rewardWalletInlineEarned {
    0% { opacity: 0; transform: translateY(8px) scale(.86); }
    15% { opacity: 1; transform: translateY(0) scale(1); }
    76% { opacity: 1; transform: translateY(-4px) scale(1); }
    100% { opacity: 0; transform: translateY(-16px) scale(.94); }
}

.reward-dashboard-grid,
.reward-mini-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.reward-stat-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid rgba(22, 59, 115, 0.1);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(22, 59, 115, 0.08);
}

.reward-stat-card.primary {
    color: #063b1b;
    background: linear-gradient(135deg, #ecfff1, #fff7d8);
}

.reward-stat-card span,
.reward-mini-grid span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.reward-stat-card strong {
    display: block;
    margin: 8px 0;
    color: var(--rnfi-blue);
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1;
}

.reward-stat-card small {
    color: #64748b;
    font-weight: 600;
}

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

.reward-mini-grid > div {
    padding: 14px;
    border: 1px solid rgba(22, 59, 115, 0.1);
    border-radius: 16px;
    background: #f8fbff;
}

.reward-mini-grid strong {
    display: block;
    margin-top: 6px;
    color: var(--rnfi-blue);
    font-size: 22px;
}

.reward-ledger-list {
    display: grid;
    gap: 10px;
}

.ledger-filter-card {
    padding: 20px;
    border: 1px solid rgba(22, 59, 115, 0.1);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(22, 59, 115, 0.08);
}

.full-ledger-list {
    gap: 0;
}

.full-ledger-item {
    align-items: flex-start;
    padding: 16px 0;
}

/* Refined watch player */
.watch-player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(22, 59, 115, 0.1);
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 26px 70px rgba(22, 59, 115, 0.14);
}

.watch-player-shell::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    z-index: 3;
    background: linear-gradient(90deg, var(--rnfi-red), var(--rnfi-orange), var(--rnfi-green));
}

.watch-player-shell .player-frame-top {
    min-height: 58px;
    padding: 0 22px;
    border: 0;
    border-radius: 30px 30px 0 0;
    color: #fff;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 209, 102, 0.16), transparent 12rem),
        linear-gradient(135deg, #071b39, #0b274f 66%, #0d3a68);
}

.watch-player-shell .player-dots span {
    width: 10px;
    height: 10px;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
}

.watch-player-shell .player-label {
    margin-left: auto;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #ffd9dc;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    letter-spacing: .2px;
}

.watch-player-shell .player-video-stage {
    padding: 14px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 20rem),
        linear-gradient(180deg, #061426, #030812);
}

.watch-player-shell .video-player {
    width: 100%;
    min-height: 500px;
    border-radius: 22px;
    background: #020617;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
    object-fit: contain;
}

.watch-player-shell .player-fullscreen-btn {
    right: 28px;
    top: 28px;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(7, 21, 43, 0.68);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.watch-player-shell .watch-toolbar {
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px 22px;
    border-top: 1px solid rgba(22, 59, 115, 0.08);
    background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.watch-player-shell .video-tags {
    margin: 0;
}

.watch-player-shell .video-tags span {
    padding: 8px 12px;
    color: #b91c1c;
    background: #fff5f5;
    border-color: rgba(227, 30, 36, 0.16);
    box-shadow: 0 10px 22px rgba(227, 30, 36, 0.06);
}

.watch-player-shell .share-actions {
    justify-content: flex-end;
    gap: 10px;
}

.watch-player-shell .share-actions .btn {
    border-radius: 14px;
    padding: 9px 13px;
    font-weight: 800;
}

@media (max-width: 991px) {
    .watch-player-shell .video-player {
        min-height: 420px;
    }
}

@media (max-width: 575px) {
    .watch-player-shell {
        border-radius: 22px;
    }

    .watch-player-shell .player-frame-top {
        min-height: 52px;
        padding: 0 14px;
        border-radius: 22px 22px 0 0;
    }

    .watch-player-shell .player-label {
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .watch-player-shell .player-video-stage {
        padding: 8px;
    }

    .watch-player-shell .video-player {
        min-height: 300px;
        border-radius: 16px;
    }

    .watch-player-shell .player-fullscreen-btn {
        right: 18px;
        top: 18px;
    }

    .watch-player-shell .watch-toolbar {
        padding: 16px;
    }
}

.reward-ledger-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(22, 59, 115, 0.08);
}

.reward-ledger-item strong,
.reward-ledger-item small {
    display: block;
}

.reward-ledger-item small {
    color: #64748b;
    font-size: 12px;
}

.reward-ledger-item > span {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    font-weight: 900;
}

.reward-ledger-item > span.credit {
    color: #0f7a35;
    background: #ecfff1;
}

.reward-ledger-item > span.debit {
    color: #b91c1c;
    background: #fff1f2;
}

.leaderboard-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border: 1px solid rgba(22, 59, 115, 0.12);
    border-radius: 16px;
    color: var(--rnfi-blue);
    background: #fff;
    box-shadow: 0 12px 28px rgba(22, 59, 115, 0.08);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.content-links-dropdown .leaderboard-chip {
    border: 0;
}

.content-links-dropdown .dropdown-menu {
    min-width: 210px;
    padding: 10px;
    border: 1px solid rgba(22, 59, 115, 0.12);
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(22, 59, 115, 0.14);
}

.content-links-dropdown .dropdown-item {
    border-radius: 12px;
    color: var(--rnfi-blue);
    font-weight: 800;
}

.content-links-dropdown .dropdown-item:hover {
    color: #fff;
    background: var(--rnfi-blue);
}

.frontend-footer {
    padding: 22px 0 28px;
}

.frontend-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.frontend-footer-links a {
    padding: 8px 12px;
    border: 1px solid rgba(22, 59, 115, 0.12);
    border-radius: 999px;
    color: var(--rnfi-blue);
    background: #fff;
    box-shadow: 0 10px 24px rgba(22, 59, 115, 0.06);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.frontend-footer-links a:hover {
    color: #fff;
    background: var(--rnfi-blue);
}

.reward-disbursal-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 14px;
}

.leaderboard-list {
    display: grid;
    gap: 10px;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) repeat(3, minmax(92px, auto));
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(22, 59, 115, 0.1);
    border-radius: 18px;
    background: #fff;
}

.leaderboard-row.current {
    border-color: rgba(15, 122, 53, 0.28);
    background: linear-gradient(135deg, #f2fff5, #ffffff);
}

.leaderboard-rank {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: var(--rnfi-blue);
    font-weight: 900;
}

.leaderboard-retailer {
    min-width: 0;
}

.leaderboard-retailer strong,
.leaderboard-retailer small,
.leaderboard-metric span,
.leaderboard-metric strong {
    display: block;
}

.leaderboard-retailer strong {
    color: var(--rnfi-blue);
}

.leaderboard-retailer small,
.leaderboard-metric span {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.leaderboard-metric strong {
    color: var(--rnfi-blue);
    font-size: 18px;
}

.content-page-shell {
    max-width: 1080px;
    margin: 0 auto;
}

.content-page-card,
.faq-accordion .accordion-item {
    border: 1px solid rgba(22, 59, 115, 0.1);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(22, 59, 115, 0.08);
}

.content-page-card {
    padding: clamp(20px, 4vw, 42px);
}

.quill-content {
    color: #334155;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.quill-content img {
    max-width: 100%;
    height: auto;
}

.quill-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.faq-accordion {
    display: grid;
    gap: 12px;
}

.faq-accordion .accordion-item {
    overflow: hidden;
}

.faq-accordion .accordion-button {
    color: var(--rnfi-blue);
    font-weight: 900;
    background: #fff;
}

.quill-admin-editor {
    min-height: 260px;
    background: #fff;
}

.unlock-video-panel {
    display: grid;
    min-height: 420px;
    place-items: center;
    padding: 24px;
    background: radial-gradient(circle at top, rgba(255, 209, 102, 0.2), transparent 24rem), linear-gradient(135deg, #07152b, #0b274f);
}

.unlock-video-card {
    max-width: 520px;
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    color: #fff;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.unlock-video-card h3 {
    margin: 16px 0 10px;
    font-weight: 900;
}

.unlock-video-card p {
    color: rgba(255, 255, 255, 0.76);
}

.reward-toast-message {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1100;
    max-width: min(360px, calc(100vw - 32px));
    padding: 13px 16px;
    border-radius: 16px;
    color: #063b1b;
    background: linear-gradient(135deg, #ecfff1, #fff7d8);
    box-shadow: 0 18px 44px rgba(22, 59, 115, 0.18);
    font-weight: 900;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease;
}

.reward-toast-message.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reward-number-pop {
    position: relative;
    animation: rewardNumberPop 1.25s cubic-bezier(.2, .9, .2, 1.2) both;
}

.reward-mini-grid > div {
    position: relative;
    overflow: visible;
}

.available-points-earned-burst {
    position: absolute;
    left: 50%;
    top: -16px;
    z-index: 8;
    width: max-content;
    max-width: min(260px, 76vw);
    padding: 8px 12px;
    border: 1px solid rgba(15, 122, 53, 0.18);
    border-radius: 999px;
    color: #063b1b;
    background: linear-gradient(135deg, #fff7d8, #ecfff1);
    box-shadow: 0 18px 40px rgba(15, 122, 53, 0.2);
    font-size: 12px;
    font-weight: 900;
    transform: translate(-50%, 10px) scale(.86);
    animation: availablePointsBurst 2.15s ease both;
}

.reward-celebration-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: grid;
    place-items: center;
    padding: 22px;
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 209, 102, 0.36), transparent 18rem),
        radial-gradient(circle at 18% 22%, rgba(15, 122, 53, 0.25), transparent 20rem),
        radial-gradient(circle at 88% 20%, rgba(227, 30, 36, 0.2), transparent 18rem),
        rgba(7, 21, 43, 0.88);
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(10px);
    transition: opacity .25s ease;
}

.reward-celebration-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.reward-celebration-overlay.is-visible::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 90deg, transparent, rgba(255, 209, 102, 0.22), transparent, rgba(15, 122, 53, 0.18), transparent);
    animation: rewardBackdropSpin 4.2s linear infinite;
}

.reward-celebration-card {
    position: relative;
    width: min(560px, 100%);
    overflow: hidden;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 30px;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 209, 102, 0.42), transparent 13rem),
        radial-gradient(circle at 90% 12%, rgba(227, 30, 36, 0.26), transparent 12rem),
        linear-gradient(135deg, rgba(11, 39, 79, 0.97), rgba(15, 122, 53, 0.93));
    box-shadow: 0 38px 120px rgba(0, 0, 0, 0.52), 0 0 0 10px rgba(255, 255, 255, 0.06);
    transform: scale(.9) translateY(12px);
    animation: rewardCelebrationIn .5s cubic-bezier(.2, .9, .2, 1.2) forwards;
}


.reward-celebration-icon {
    position: relative;
    z-index: 2;
    display: inline-grid;
    width: 104px;
    height: 104px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 50%;
    color: #063b1b;
    background: linear-gradient(135deg, #ffd166, #fff4b8);
    box-shadow: 0 20px 56px rgba(255, 209, 102, 0.44), 0 0 0 12px rgba(255, 209, 102, 0.12);
    font-size: 40px;
    animation: rewardIconBounce 1.05s ease infinite, rewardIconGlow 1.6s ease-in-out infinite;
}

.reward-celebration-card h3 {
    position: relative;
    z-index: 2;
    margin: 14px 0 8px;
    font-size: clamp(32px, 5.4vw, 58px);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
}

.reward-celebration-card h3 span {
    display: inline-block;
    color: #ffd166;
    text-shadow: 0 14px 36px rgba(255, 209, 102, 0.38);
    animation: rewardPointsShine 1.15s ease both;
}

.reward-celebration-card p {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
}

.reward-celebration-card p strong {
    color: #fff;
    font-size: 1.25em;
    font-weight: 900;
}

.reward-celebration-card .btn {
    position: relative;
    z-index: 2;
}

.reward-coin-orbit span {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd166, #fff4b8);
    box-shadow: inset 0 0 0 4px rgba(99, 61, 0, 0.12), 0 12px 28px rgba(255, 209, 102, 0.24);
    opacity: .9;
}

.reward-coin-orbit span:nth-child(1) { left: 11%; top: 20%; animation: rewardCoinFloatOne 2.4s ease-in-out infinite; }
.reward-coin-orbit span:nth-child(2) { right: 13%; top: 16%; animation: rewardCoinFloatTwo 2.8s ease-in-out infinite; }
.reward-coin-orbit span:nth-child(3) { right: 22%; bottom: 18%; animation: rewardCoinFloatThree 2.2s ease-in-out infinite; }
.reward-coin-orbit span:nth-child(4) { left: 20%; bottom: 13%; animation: rewardCoinFloatTwo 2.5s ease-in-out infinite reverse; }
.reward-coin-orbit span:nth-child(5) { left: 46%; top: 8%; width: 30px; height: 30px; animation: rewardCoinFloatThree 2.9s ease-in-out infinite reverse; }

.reward-confetti span {
    position: absolute;
    top: -28px;
    width: 9px;
    height: 18px;
    border-radius: 999px;
    background: #ffd166;
    opacity: 0;
    animation: rewardConfettiFall 1.65s ease-in-out infinite;
}

.reward-confetti span:nth-child(1) { left: 13%; background: #ffd166; animation-delay: .05s; }
.reward-confetti span:nth-child(2) { left: 28%; background: #2cae4f; animation-delay: .22s; }
.reward-confetti span:nth-child(3) { left: 44%; background: #ffffff; animation-delay: .11s; }
.reward-confetti span:nth-child(4) { left: 60%; background: #e31e24; animation-delay: .32s; }
.reward-confetti span:nth-child(5) { left: 76%; background: #ffd166; animation-delay: .16s; }
.reward-confetti span:nth-child(6) { left: 88%; background: #2cae4f; animation-delay: .42s; }

@keyframes rewardBackdropSpin {
    to { transform: rotate(360deg); }
}

@keyframes rewardCelebrationIn {
    to { transform: scale(1) translateY(0); }
}

@keyframes rewardIconBounce {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-10px) rotate(3deg) scale(1.04); }
}

@keyframes rewardIconGlow {
    0%, 100% { box-shadow: 0 20px 56px rgba(255, 209, 102, 0.44), 0 0 0 12px rgba(255, 209, 102, 0.12); }
    50% { box-shadow: 0 24px 68px rgba(255, 209, 102, 0.62), 0 0 0 22px rgba(255, 209, 102, 0.06); }
}

@keyframes rewardNumberPop {
    0% { transform: scale(1); color: var(--rnfi-blue); }
    24% { transform: scale(1.38) rotate(-1deg); color: #0f7a35; text-shadow: 0 14px 30px rgba(15, 122, 53, 0.34); }
    58% { transform: scale(.96) rotate(1deg); color: #0f7a35; }
    100% { transform: scale(1); color: var(--rnfi-blue); }
}

@keyframes availablePointsBurst {
    0% { opacity: 0; transform: translate(-50%, 12px) scale(.84); }
    16% { opacity: 1; transform: translate(-50%, -4px) scale(1); }
    76% { opacity: 1; transform: translate(-50%, -18px) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -34px) scale(.94); }
}

@keyframes rewardPointsShine {
    0% { transform: scale(.78); filter: brightness(.9); }
    52% { transform: scale(1.16); filter: brightness(1.35); }
    100% { transform: scale(1); filter: brightness(1); }
}

@keyframes rewardConfettiFall {
    0% { opacity: 0; transform: translateY(-16px) rotate(0deg); }
    18% { opacity: 1; }
    100% { opacity: 0; transform: translateY(280px) rotate(240deg); }
}

@keyframes rewardCoinFloatOne {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(16px, -18px) rotate(18deg); }
}

@keyframes rewardCoinFloatTwo {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-14px, 20px) rotate(-24deg); }
}

@keyframes rewardCoinFloatThree {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(10px, 16px) rotate(20deg); }
}

@media (max-width: 575px) {
    .reward-celebration-overlay {
        padding: 14px;
    }

    .reward-celebration-card {
        border-radius: 24px;
    }

    .reward-celebration-icon {
        width: 72px;
        height: 72px;
        font-size: 28px;
    }
}

@media (max-width: 991px) {
    .reward-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .leaderboard-chip span {
        display: none;
    }

    .leaderboard-row {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .leaderboard-metric {
        grid-column: span 1;
    }

    .reward-disbursal-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .reward-wallet-chip {
        margin-left: auto !important;
        padding: 7px 10px;
    }

    .reward-wallet-chip small {
        display: none;
    }

    .reward-dashboard-grid,
    .reward-mini-grid {
        grid-template-columns: 1fr;
    }

    .reward-ledger-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .leaderboard-chip {
        display: none;
    }

    .leaderboard-row {
        grid-template-columns: 1fr;
    }

    .leaderboard-rank {
        width: auto;
        height: auto;
        padding: 9px 12px;
        justify-self: start;
    }
}
