/* =========================================================
   Learn.Fidelis — Dashboard Styles (unified)
   ========================================================= */

/* ------------ Layout / Variables ------------- */
:root {
    --sidebar-w: 240px;
    --bg-0: #0d0d0d;
    --bg-1: #111;
    --bg-2: #141414;
    --bg-3: #151515;
    --border-1: #111;
    --border-2: #222;
    --text-0: #fff;
    --text-1: #eee;
    --text-2: #ccc;
    --text-3: #aaa;
    --muted:  #9aa3af;
    --brand:  #00ffd5;
}

.dashboard-main {
    margin-left: var(--sidebar-w);
    padding: 30px;
}
@media (max-width: 992px) {
    .dashboard-main {
        margin-left: 0;
        padding: 20px;
    }
}

/* ------------ Sidebar ------------- */
.dashboard-sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background-color: var(--bg-0);
    border-right: 1px solid var(--border-1);
    padding: 20px 12px;
    display: flex; flex-direction: column;
    z-index: 1000;
}
.dashboard-sidebar .sidebar-logo img {
    height: 40px; margin: 0 auto 30px auto; display: block;
}
.sidebar-links { list-style: none; padding: 0; margin: 0; }
.sidebar-links li { margin-bottom: 18px; }
.sidebar-links a {
    color: #ddd; text-decoration: none; font-size: 17px;
    display: flex; align-items: center; gap: 10px; transition: color .25s;
}
.sidebar-links a:hover { color: var(--brand); }
.sidebar-footer { margin-top: auto; padding-top: 20px; }

/* Mobile sidebar toggle */
.sidebar-toggle {
    position: fixed; top: 15px; left: 15px;
    color: #fff; font-size: 24px; display: none; z-index: 1100; cursor: pointer;
}
@media (max-width: 992px) {
    .dashboard-sidebar { left: -100%; transition: left .3s ease; }
    .dashboard-sidebar.active { left: 0; }
    .sidebar-toggle { display: block; }
    body.sidebar-open { overflow: hidden; }
}

/* ------------ Topnav ------------- */
.dashboard-topnav {
    display: flex; justify-content: space-between; align-items: center;
    background: #121826; padding: 15px 30px;
    border-bottom: 1px solid #1f2a3c; color: #fff;
}
.dashboard-topnav .topnav-title { font-size: 1.3rem; font-weight: 700; margin-left: 10px; }
.dashboard-topnav .topnav-right { display: flex; align-items: center; gap: 15px; }
.dashboard-topnav .topnav-left { display: flex; align-items: center; gap: 15px; margin-left: 10px; }
.dashboard-topnav .icon-btn { color: #ccc; font-size: 18px; cursor: pointer; }
.dashboard-topnav .user-info {
    display: flex; align-items: center; gap: 10px;
    background: #1c2436; padding: 6px 10px; border-radius: 8px;
}
.dashboard-topnav .user-info i { font-size: 22px; color: var(--brand); }
.dashboard-topnav .user-meta strong { display: block; font-size: .9rem; }
.dashboard-topnav .user-meta small { font-size: .75rem; color: #ccc; }

/* ------------ Generic Cards / Sections ------------- */
.welcome-card {
    background: var(--bg-2); color: var(--text-1);
    padding: 25px; border-radius: 10px; margin-bottom: 30px;
}
.notification-box {
    background: #222; color: #ccc; padding: 15px; border-left: 4px solid var(--brand);
    border-radius: 8px; margin-bottom: 15px;
}
.settings-toggle {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 20px; background: #1c1c1c; border-radius: 8px; margin-bottom: 20px; color: #fff;
}

/* ------------ Forms ------------- */
.glow-input, select, textarea {
    width: 100%; padding: 12px 14px; background: #111; color: #fff;
    border: 1px solid #333; border-radius: 8px; margin-bottom: 15px;
    font-size: 15px; outline: none; transition: border-color .3s, box-shadow .3s;
}
.glow-input:focus, textarea:focus, select:focus {
    border-color: var(--brand); box-shadow: 0 0 4px var(--brand);
}

/* ------------ Filters + Page Header ------------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.filters .glow-input, .filters .glow-border { min-height: 40px; }
.header-row { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 16px; }
.header-row h2 { margin: 0; }

/* ------------ Course Grid (User & Admin shared) ------------- */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
@media (max-width: 600px) {
    .course-grid { grid-template-columns: 1fr; }
}

.course-box {
    background: var(--bg-3);
    border: 1px solid var(--border-2);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,.35);
    display: flex; flex-direction: column; min-height: 100%;
}
.course-box img,
.thumb-placeholder {
    width: 100%;
    height: 180px;          /* consistent height; keeps rows aligned */
    object-fit: cover; display: block;
    background: #222;
}
.thumb-placeholder { display: flex; align-items: center; justify-content: center; color: #666; }

.course-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.course-title { font-weight: 700; font-size: 18px; color: #fff; }
.course-meta  { color: #cfcfcf; font-size: 13px; }
.course-desc  { color: #e5e7eb; font-size: 15px; font-weight: 400; line-height: 1.5; }

/* Actions */
.course-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.price-badge {
    padding: 8px 10px; border-radius: 10px;
    background: #0b2830; color: #8ef6ff; font-weight: 600; font-size: 14px;
    display: inline-block;
}

/* ------------ Admin Course List Extras ------------- */
.courses-header { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 16px; }
.courses-header h3 { color: #9ae6ff; margin: 0; }

.course-grid.admin-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.course-stats { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0 12px; color: #bdbdbd; font-size: 13px; }
.panel { margin-top: 18px; padding: 16px; border: 1px solid #222; border-radius: 12px; background: #111; }
.stack-form > * { width: 100%; margin-bottom: 12px; }

/* ------------ Notices ------------- */
.notice { padding: 10px 12px; border-radius: 10px; margin: 10px 0; }
.notice.success { background: #0f5132; color: #d1fae5; }
.notice.error   { background: #5c2b29; color: #ffe2e2; }
.muted { color: var(--muted); }

/* ------------ Modals (Intro Video) ------------- */
.custom-modal {
    position: fixed; inset: 0; z-index: 9999; display: none;
    background: rgba(0,0,0,.8);
}
.custom-modal-content {
    background: #111; color: #fff; margin: 5% auto; padding: 20px;
    border-radius: 12px; width: 92%; max-width: 800px;
    overflow-y: auto; /* allow scrolling */
    max-height: 90vh; /* take most of viewport height */
}
/* Optional: prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}
.custom-modal .close { float: right; font-size: 28px; cursor: pointer; }

/* ------------ Utility ------------- */
.dashboard-header {
    background: var(--bg-1); padding: 20px;
    color: var(--brand); text-align: center; font-size: 1.4rem; font-weight: 700;
    border-bottom: 1px solid var(--border-2);
}
.dashboard-wrapper { max-width: 1100px; margin: 30px auto; padding: 0 20px; }

/* .dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 20px; } */


/* Mobile default: 2 per row */
.dashboard-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Desktop: 4 per row */
@media (min-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.dash-card {
    background: #1b1b1b; padding: 20px; border-radius: 12px; text-align: center;
    color: #eee; text-decoration: none; transition: all .3s;
}
.dash-card:hover { background: #2a2a2a; transform: translateY(-3px); }
.dash-card h3 { margin-top: 15px; font-size: 1.1rem; color: var(--brand); }
.dash-card p { font-size: .9rem; color: #aaa; }
.icon-wrap { font-size: 28px; color: #fff; }

/* Ensure old .main-content areas respect mobile */
.main-content { margin-left: var(--sidebar-w); padding: 40px; }
@media (max-width: 992px) {
    .main-content { margin-left: 0 !important; padding: 20px !important; }
}

/*Course Modules/Lessons**
***/


/* ===== Curriculum Manager ===== */
.curriculum-header{
    display:flex; align-items:center; justify-content:space-between;
    margin-bottom:14px;
}
.curriculum-actions .btn{ margin-left:8px; }

.curriculum {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 18px;
    margin-top: 14px;
}
@media (max-width: 700px){ .curriculum { grid-template-columns: 1fr; } }

.module-card{
    background:#141414; border:1px solid #222; border-radius:14px;
    padding:14px; display:flex; flex-direction:column;
}
.module-head{
    display:flex; align-items:center; justify-content:space-between;
    margin-bottom:8px;
}
.module-title{ font-size:16px; color:#fff; }
.module-actions .btn{ padding:6px 10px; }

.module-note{ color:#cfcfcf; font-size:14px; margin:6px 0 2px; }
.module-video-link{ color:#9ae6ff; font-size:13px; margin-bottom:8px; }

.lesson-list{ border-top:1px dashed #2a2a2a; padding-top:8px; margin-top:6px; }
.lesson-item{
    display:flex; align-items:center; justify-content:space-between;
    padding:8px 0; border-bottom:1px dashed #202020;
}
.lesson-item:last-child{ border-bottom:none; }
.lesson-actions .btn-tiny{ font-size:12px; padding:4px 8px; }

.add-lesson summary{
    margin-top:8px; cursor:pointer; color:#9ae6ff;
}
.add-lesson[open] summary{ color:#fff; }

.two-col{ display:grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width:700px){ .two-col { grid-template-columns:1fr; } }

.chip{
    display:inline-block; font-size:11px; padding:2px 6px;
    border-radius:8px; margin-left:6px; background:#1e293b; color:#cde7ff;
}
.chip.mute{ background:#1f1f1f; color:#bbb; }


/* ===== Course Viewer ===== */
.course-view{
    display:grid;
    grid-template-columns: 340px 1fr;
    gap:18px;
    margin-left: var(--sidebar-w);
    padding: 24px;
}
@media (max-width: 1200px){ .course-view{ grid-template-columns: 300px 1fr; } }
@media (max-width: 992px){
    .course-view{ grid-template-columns: 1fr; margin-left:0; padding: 16px; }
}

.cv-sidebar{
    background:#0f0f11; border:1px solid #1b1b1d; border-radius:12px;
    padding:10px; max-height: calc(100vh - 90px); overflow:auto;
}
.cv-course-head{ padding:8px 10px 6px 10px; border-bottom:1px solid #1d1d20; margin-bottom:6px; }
.cv-course-title{ color:#fff; font-weight:700; font-size:16px; }
.cv-course-sub{ color:#bdbdbd; font-size:13px; }

.cv-module{
    border-bottom:1px dashed #232327; padding:6px 2px;
}
.cv-module:last-child{ border-bottom:none; }
.cv-module > summary{
    list-style:none; cursor:pointer; padding:8px 8px; border-radius:8px; color:#eaeaea;
}
.cv-module[open] > summary{ background:#121218; }
.cv-module-title{ font-weight:600; font-size:14px; }
.cv-module-desc{ color:#a7abb3; font-size:12px; padding:0 10px 8px 34px; }

.cv-empty{ padding:4px 12px 8px 34px; }

.cv-lesson{
    display:flex; align-items:center; gap:10px;
    padding:8px 10px 8px 14px; margin:2px 0 0 6px;
    border-radius:8px; text-decoration:none; color:#d8d8d8;
}
.cv-lesson:hover{ background:#181824; }
.cv-lesson.active{ background:#22263a; color:#fff; }
.cv-lesson-icon{ width:18px; text-align:center; opacity:.9; }
.cv-lesson-text{ flex:1; font-size:14px; }
.cv-lesson-duration{ font-size:12px; color:#9aa3af; }

.cv-main{ display:flex; flex-direction:column; gap:14px; }
.cv-player{
    width:100%; aspect-ratio: 16 / 9; border-radius:12px; overflow:hidden;
    background:#000;
}
.cv-placeholder{ width:100%; height:100%; display:flex; align-items:center; justify-content:center; color:#9aa3af; }

.cv-meta-eyebrow{ color:#9aa3af; font-size:12px; }
.cv-meta-title{ margin:4px 0 0 0; color:#fff; font-size:22px; }
.cv-meta-sub{ color:#bdbdbd; font-size:13px; }

.cv-content{
    background:#111; color:#e9ecef;
    padding:16px; border-radius:12px;
    line-height:1.6; font-size:15px;
}
.cv-content p{ margin: 0 0 10px 0; }
.cv-content h1,.cv-content h2,.cv-content h3{ margin-top:14px; }

/* ========== Admin Index (cards, grids, sections) ========== */

/* Breadcrumb wrapper on admin pages */
.dash-breadcrumb { margin: 6px 0 14px; color: var(--text-3); }

/* Section headers */
.section-head { margin: 8px 0 14px; }
.section-title { font-size: 1.12rem; font-weight: 700; }
.section-subtitle { color: var(--muted); font-size: .92rem; margin-top: 4px; }

/* ---------- Stats Grid ---------- */
.stats-section { margin-top: 10px; }
.stats-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(1, minmax(0,1fr));
}
@media (min-width: 600px) { .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1100px){ .stats-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }

.stat-card {
    display: grid;
    grid-template-columns: 54px 1fr;
    align-items: center;
    gap: 14px;
    background: var(--bg-2);
    border: 1px solid var(--border-2);
    border-radius: 16px;
    padding: 16px 18px;
    text-decoration: none;
    color: var(--text-1);
    box-shadow: 0 8px 26px -12px rgba(0,0,0,.35);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 213, .25);
    box-shadow: 0 12px 34px -14px rgba(0, 255, 213, .18);
}

.stat-icon {
    width: 54px; height: 54px;
    display: grid; place-items: center;
    font-size: 24px;
    border-radius: 14px;
    background: radial-gradient(120px 120px at 30% 20%, rgba(0,255,213,.18), transparent 60%),
    radial-gradient(120px 120px at 70% 80%, rgba(0,168,255,.12), transparent 60%);
    border: 1px solid var(--border-2);
}

.stat-meta { display: grid; gap: 2px; }
.stat-title { font-size: .92rem; color: var(--text-3); }
.stat-value { font-size: 1.55rem; font-weight: 800; letter-spacing: .3px; }
.stat-cta { grid-column: 1 / -1; margin-top: 6px; font-size: .85rem; color: var(--brand); }

/* Highlight variant for special tiles */
.stat-card.stat-accent {
    border-color: rgba(0, 255, 213, .28);
    box-shadow: 0 0 0 2px rgba(0,255,213,.12), 0 0 26px rgba(0,255,213,.12);
}

/* ---------- Quick Links ---------- */
.quicklinks-section { margin-top: 26px; }
.quicklinks-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(1, minmax(0,1fr));
}
@media (min-width: 600px) { .quicklinks-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1100px){ .quicklinks-grid { grid-template-columns: repeat(6, minmax(0,1fr)); } }

.ql-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
    background: var(--bg-2);
    border: 1px solid var(--border-2);
    border-radius: 14px;
    padding: 12px 14px;
    text-decoration: none;
    color: var(--text-1);
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.ql-card:hover {
    transform: translateY(-1px);
    border-color: rgba(0,168,255,.22);
    box-shadow: 0 10px 24px -14px rgba(0,168,255,.22);
}

.ql-icon {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    font-size: 18px;
    border-radius: 12px;
    background: radial-gradient(100px 100px at 50% 50%, rgba(0,168,255,.14), transparent 60%);
    border: 1px solid var(--border-2);
}
.ql-meta { display: grid; gap: 2px; }
.ql-title { font-weight: 700; font-size: .95rem; }
.ql-hint { color: var(--muted); font-size: .85rem; }

/* ---------- System Overview ---------- */
.system-section { margin-top: 28px; }
.sys-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(1, minmax(0,1fr));
}
@media (min-width: 700px) { .sys-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.sys-card {
    background: var(--bg-2);
    border: 1px solid var(--border-2);
    border-radius: 12px;
    padding: 14px 16px;
}
.sys-key { color: var(--text-3); font-size: .9rem; }
.sys-val { font-weight: 700; margin-top: 3px; color: var(--text-1); }

/* Tame default link color inside dashboard main */
.dashboard-main a { color: var(--brand); text-decoration: none; }
.dashboard-main a:hover { text-decoration: none; }


/* admin/enrollments.php table look */
.table-clean th, .table-clean td {
    padding: 10px 12px;
    border-bottom: 1px dashed var(--border-2);
    color: var(--text-1);
}
.table-clean thead th {
    text-align: left;
    font-size: .9rem;
    color: var(--text-3);
    border-bottom: 1px solid var(--border-2);
}
.table-clean tbody tr:hover {
    background: var(--bg-3);
}

/* Pagination */
.pagination { display:flex; gap:8px; flex-wrap:wrap; }
.page-link {
    padding: 8px 12px; border: 1px solid var(--border-2);
    border-radius: 8px; text-decoration: none; color: var(--text-1);
    background: var(--bg-2);
}
.page-link:hover { border-color: var(--brand); }
.page-link.active {
    background: #0b2830; color: #8ef6ff; border-color: #0b2830; font-weight: 700;
}


/* ===== Section/Lecture layout (course_modules) ===== */
.section-list { display: grid; gap: 14px; }
.section-box { padding: 0; }
.section-head, .lecture-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px; border-bottom: 1px dashed var(--border-2);
}
.section-head .left, .lecture-row .left { display: flex; align-items: center; gap: 10px; }
.section-title, .lecture-title { font-weight: 700; color: var(--text-1); }
.muted-link { color: var(--text-3); text-decoration: none; }
.muted-link:hover { color: var(--brand); text-decoration: none; }
.lecture-list { padding: 6px 0; }
.lecture-add { padding: 10px 14px; }
.section-box .panel { border: none; } /* nested panels appear flat */
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--brand); display:inline-block; }
.dot.small { width: 6px; height: 6px; opacity: .8; }

/* Notification tweaks */
.notification-box .chip {
    background: #0b2830;
    color: #8ef6ff;
    border-radius: 10px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
}

.notif-badge {
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
    position: relative;
    top: -10px;
    left: -10px;
}


    /* Layout helpers */
.max-w-720 { max-width: 720px; }
.mb-20 { margin-bottom: 20px; }
.mt-10 { margin-top: 10px; }
.mt-32 { margin-top: 32px; }

/* Hint below the select */
.recipients-hint { margin: 6px 0 14px; }

/* Accordion */
.accordion { display: block; }
.acc-item {
    border: 1px solid #1b1b1b;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #0f0f12;
    overflow: hidden;
}

.acc-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    text-align: left;
    padding: 12px 14px;
    font-weight: 700;
    background: #0f0f12;
    border: none;
    cursor: pointer;
    transition: background .2s ease, filter .2s ease;
    color: #00ffd5; /* neon title color */
}

.acc-toggle:hover { filter: brightness(1.08); }

.acc-num {
    color: #00ffd5;
    font-weight: 800;
    flex: 0 0 auto;
}

.acc-title {
    color: #00ffd5;
    flex: 1 1 auto;
    line-height: 1.3;
}

.acc-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}

.acc-toggle .acc-icon i {
    transition: transform .25s ease;
}
.acc-toggle.open .acc-icon i {
    transform: rotate(180deg);
}

.acc-content {
    display: none;
    padding: 12px 14px;
    background: #101015;
    border-top: 1px solid #1b1b1b;
}
.acc-content.open { display: block; }

/* Rendered email body */
.email-render p { margin: 0 0 10px; }
.email-render a { text-decoration: underline; }


/* Headings */
.section-title { color: #00ffd5; margin-bottom: 6px; }
.section-subtitle { color: #00ffd5; margin-bottom: 10px; }

/* Grid layout for forms (responsive two columns) */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 900px) {
    .settings-grid { grid-template-columns: 1fr 1fr; }
}

.max-w-960 { max-width: 960px; }
.mt-24 { margin-top: 24px; }

/* Profile info key/value look */
.profile-info {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 10px 16px;
    align-items: center;
}
.profile-info .label {
    color: #9aa0a6;
    font-weight: 600;
}


/* Docs page */
.docs-hero { padding: 22px 20px; }
.docs-title { font-size: 1.8rem; font-weight: 800; margin: 0 0 6px; }
.docs-title span { color: #ff2b2b; }
.docs-sub { color: #adb5bd; max-width: 880px; }

.docs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
}
@media (min-width: 980px) { .docs-grid { grid-template-columns: 1fr 1fr; } }

/* Cards / quotes */
.quote-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #1b1b1b;
    border-radius: 10px;
    background: #0f0f12;
    margin-bottom: 10px;
}
.quote-icon { font-size: 28px; color: #9aa0a6; }
.quote-text { margin: 0; color: #cfd3d8; font-style: italic; }
.quote-name { font-weight: 700; color: #eaeaea; margin-top: 4px; }

.stat-card {
    display: flex; align-items: center; gap: 12px;
    padding: 12px;
    border: 1px solid #1b1b1b;
    border-radius: 10px;
    background: #0f0f12;
}
.stat-icon { color: #ffd166; font-size: 18px; }
.stat-text { color: #eaeaea; }
.stat-mini { color: #9aa0a6; font-size: .9rem; }

.section-subtitle { color: #00ffd5; margin-bottom: 10px; }

/* Lists */
.feature-list {
    counter-reset: step;
    list-style: none; padding: 0; margin: 0;
}
.feature-list li {
    counter-increment: step;
    position: relative;
    padding-left: 36px;
    margin: 10px 0;
}
.feature-list li::before {
    content: counter(step);
    position: absolute; left: 0; top: 0;
    width: 26px; height: 26px; line-height: 26px;
    text-align: center; border-radius: 50%;
    background: #ffe8d2; color: #6a4800; font-weight: 800;
}

.check-list { list-style: none; padding: 0; margin: 12px 0 16px; }
.check-list li {
    position: relative;
    padding-left: 28px;
    margin: 10px 0;
    color: #cfd3d8;
}

/* ✅ Corrected: single backslash + FA font stack */
.check-list li::before {
    content: "\f00c"; /* not \\f00c */
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    color: #31d0aa;
}
/* Fallback option */
.check-list li::before { content: "✓"; font-family: inherit; font-weight: 700; }


/* Pricing box */
.price-panel { display: grid; gap: 10px; }
.price-amount { font-size: 2rem; font-weight: 900; color: #ff4a4a; }
.price-note { color: #adb5bd; }
.cta-btn { display: block; width: 100%; text-align: center; }

/* Prose area */
.docs-prose h4 { margin: 14px 0 8px; color: #eaeaea; }
.docs-prose ul { margin: 8px 0 14px 18px; }


/* utilities */
.hidden { display: none; }
.mt-10 { margin-top: 10px; }
.max-w-960 { max-width: 960px; }
.max-w-1200 { max-width: 1200px; }

/* table tweaks */
.table-wrap { overflow-x: auto; }
.products-table code { background: rgba(255,255,255,0.05); padding: 2px 6px; border-radius: 6px; }
.product-thumb { width: 56px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid #1b1b1b; }
.action-links .btn { margin-right: 6px; }
.small { font-size: .85rem; }

/* Products table spacing + row “card” look */
.table.products-table {
    width: 100%;
    border-collapse: separate;     /* allow gaps between rows */
    border-spacing: 0 10px;        /* vertical gap */
}

.table.products-table thead th {
    padding: 14px 18px;
    white-space: nowrap;
}

.table.products-table tbody tr {
    background: rgba(255,255,255,0.03);
}

.table.products-table tbody td {
    padding: 14px 18px;            /* comfy cell padding */
    vertical-align: middle;
}

/* rounded row corners */
.table.products-table tbody td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}
.table.products-table tbody td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* tidy image column width */
.table.products-table tbody td:nth-child(2) {  /* Img column */
    width: 76px;
}

/* extra breathing room for buttons inside cells */
.table.products-table td .btn {
    margin-top: 4px;
}

/* keep compact columns from wrapping awkwardly on small screens */
@media (max-width: 900px) {
    .table.products-table tbody td:nth-child(3), /* Price */
    .table.products-table tbody td:nth-child(5), /* Purchases */
    .table.products-table tbody td:nth-child(6)  /* Pay Link */ {
        white-space: nowrap;
    }
}


/* tiny row for showing current image in edit */
.thumb-row { display: flex; align-items: center; gap: 10px; margin: 6px 0 8px; }


/* Pay page */
.max-w-720 { max-width: 720px; margin: 0 auto; }
.mb-16 { margin-bottom: 16px; }
.pay-card { padding: 18px; }
.pay-public { padding: 24px 16px; }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 6px; }
.method-tile { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid #1b1b1b; border-radius: 10px; }
.pay-sections { margin-top: 14px; }
.wallet-row { display: flex; align-items: center; gap: 10px; }
.wallet { display: inline-block; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.06); }
.bank-lines { list-style: none; padding: 0; margin: 8px 0; }
.bank-lines li { display: grid; grid-template-columns: 160px 1fr; gap: 10px; margin: 6px 0; }
.bank-lines .label { color: #9aa0a6; }
.ref-line { margin-top: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ref-badge { background: rgba(0,255,213,.08); border: 1px solid rgba(0,255,213,.35); padding: 4px 8px; border-radius: 8px; font-weight: 700; }
.btn-tiny { padding: 4px 8px; font-size: 12px; }
.hidden { display: none !important; }
.underline { text-decoration: underline; }
.small { font-size: .9rem; }

/* QR for pay page */
.qr-wrap {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.qr-box {
    width: 180px;
    height: 180px;
    background: #fff;              /* high contrast for scanners */
    border-radius: 12px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px rgba(0,0,0,.12) inset;
}
.qr-box canvas, .qr-box img {
    width: 164px !important;
    height: 164px !important;
}

 .confirm-modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.5);display:none;align-items:center;justify-content:center;z-index:9999}
.confirm-modal{background:#111;border:1px solid #2a2a2a;border-radius:10px;max-width:520px;width:92%;box-shadow:0 10px 30px rgba(0,0,0,.35);overflow:hidden}
.confirm-head{background:#00ffd5;color:#0e0e0e;padding:16px 20px;font-weight:700}
.confirm-body{padding:18px 20px;color:#ddd}
.confirm-actions{display:flex;gap:10px;justify-content:flex-end;padding:16px 20px;background:#0f1115;border-top:1px solid #1e1f25}
.confirm-actions .btn{padding:10px 16px;border-radius:8px}

/* --- Desktop collapsed: icons only --- */
@media (min-width: 1025px) {
    body.sidebar-collapsed .dashboard-sidebar { width: 64px; }
    body.sidebar-collapsed .dashboard-sidebar .sidebar-logo img { opacity: 0; pointer-events: none; }
    body.sidebar-collapsed .dashboard-sidebar .sidebar-links a { justify-content: center; }
    body.sidebar-collapsed .dashboard-sidebar .sidebar-links a .label { display: none; } /* hide text, keep icons */
    /* Optional: hide footer when collapsed */
    body.sidebar-collapsed .dashboard-sidebar .sidebar-footer { display: none; }
}

/* Make links layout predictable for hiding labels */
.dashboard-sidebar .sidebar-links a {
    display: flex; align-items: center; gap: 10px;
    white-space: nowrap;
}

/* --- Mobile drawer behavior --- */
@media (max-width: 1024px) {
    .dashboard-sidebar {
        position: fixed; left: 0; top: 0; bottom: 0;
        width: 280px; max-width: 86vw;
        transform: translateX(-100%);
        transition: transform .25s ease;
        z-index: 1000;
    }
    .dashboard-sidebar.open { transform: translateX(0); }

    /* floating hamburger visible only on mobile */
    .sidebar-toggle { position: fixed; left: 14px; top: 14px; z-index: 1100; display: inline-flex; }

    /* overlay for outside click */
    .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 900; }
    .sidebar-overlay.show { display: block; }
}

/* Hide the floating mobile hamburger on desktop */
@media (min-width: 1025px) {
    .sidebar-toggle { display: none; }
}

/* Head bar aligns toggle + logo nicely */
.dashboard-sidebar .sidebar-head{
    display:flex; align-items:center; gap:10px;
    padding:12px 14px; /* adjusts vertical alignment so it’s not “stuck to top” */
}

/* Desktop toggle look & spacing */
.sidebar-desktop-toggle{
    display:inline-flex; align-items:center; justify-content:center;
    width:36px; height:36px; border-radius:8px; cursor:pointer;
    transition:background .15s ease;
}
.sidebar-desktop-toggle:hover{ background:rgba(255,255,255,0.06); }

/* Hide desktop toggle on mobile; hide mobile toggle on desktop */
@media (max-width:1024px){
    .sidebar-desktop-toggle{ display:none; }
    .sidebar-toggle{ position:fixed; left:14px; top:16px; z-index:1100; }
}
@media (min-width:1025px){
    .sidebar-toggle{ display:none; }
}

/* Keep from earlier: icons-only when collapsed */
@media (min-width:1025px){
    body.sidebar-collapsed .dashboard-sidebar{ width:64px; }
    body.sidebar-collapsed .dashboard-sidebar .sidebar-logo img{ opacity:0; pointer-events:none; }
    body.sidebar-collapsed .dashboard-sidebar .sidebar-links a{ justify-content:center; }
    body.sidebar-collapsed .dashboard-sidebar .sidebar-links a .label{ display:none; }
    body.sidebar-collapsed .dashboard-sidebar .sidebar-footer{ display:none; }
}

/* Ensure links are icon+label so label can hide cleanly */
.dashboard-sidebar .sidebar-links a{
    display:flex; align-items:center; gap:10px; white-space:nowrap;
}

/* Mobile drawer / overlay (from earlier patch, kept for completeness) */
@media (max-width:1024px){
    .dashboard-sidebar{
        position:fixed; left:0; top:0; bottom:0; width:280px; max-width:86vw;
        transform:translateX(-100%); transition:transform .25s ease; z-index:1000;
    }
    .dashboard-sidebar.open{ transform:translateX(0); }
    .sidebar-overlay{ display:none; position:fixed; inset:0; background:rgba(0,0,0,.35); z-index:900; }
    .sidebar-overlay.show{ display:block; }
}


.wa-float{position:fixed;right:18px;bottom:18px;z-index:9999}
.wa-float a{display:flex;align-items:center;gap:8px;padding:10px 14px;
    border-radius:999px;background:#25D366;color:#fff;
    box-shadow:0 6px 20px rgba(0,0,0,.25);text-decoration:none;font-weight:700}
.wa-float a:hover{transform:translateY(-1px)}

.count-badge{
    display:inline-block;
    margin-left:.5rem;
    padding:.18rem .5rem;
    font-size:.85rem;
    font-weight:700;
    border-radius:999px;
    background:#1c1c1c;
    color:#00ffd5;
    border:1px solid #00ffd5;
    line-height:1.1;
    vertical-align:middle;
}

.docs-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:24px;
}
@media (max-width: 900px){
    .docs-grid{ grid-template-columns:1fr; }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 56px;
    height: 56px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease-in-out;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20b358;
}

/* ==== Buttons: Colors + Reveal States ==== */

/* Prev / Next distinct colors */
.btn-prev {
    background: #c0c0c0; /* black-ish */
    border-color: #111827;
    color: #fff;
}
.btn-prev:hover,
.btn-prev:focus { filter: brightness(1.08); }

/* Next = green */
.btn-next {
    background: #22c55e; /* green */
    border-color: #22c55e;
    color: #fff;
}
.btn-next:hover,
.btn-next:focus { filter: brightness(1.08); }

/* Reveal-style mobile toggle:
   aria-expanded="false" => REVEAL (green)
   aria-expanded="true"  => HIDE (red)
*/
.btn-reveal {
    position: relative;
    box-shadow: inset 0 -2px 0 rgba(255,255,255,0.06);
}

/* 👀 Reveal (closed) */
.btn-reveal[aria-expanded="false"] {
    background: #22c55e;   /* green */
    border-color: #22c55e;
    color: #fff;
}

/* 🙈 Hide (open) */
.btn-reveal[aria-expanded="true"] {
    background: #ef4444;   /* red */
    border-color: #ef4444;
    color: #fff;
}

/* Caret indicator (auto-swaps with state) */
.btn-reveal::after {
    content: ' ▼';
    font-size: .9em;
    opacity: .9;
}
.btn-reveal[aria-expanded="true"]::after {
    content: ' ▲';
}

/* ==== Layout helpers (kept) ==== */
.cv-actions { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.cv-hidden { display:none !important; }
.cv-toggle { cursor:pointer; }
.cv-topbar { display:flex; justify-content:space-between; align-items:center; margin:10px 0 14px; }
.cv-desc-controls { display:flex; gap:10px; text-align: center; align-items:center; margin:10px 0; }
.cv-desc-controls .spacer { flex:1; }
.cv-content { margin-top:10px; }

/* Mobile: hide sidebar by default, show toggle button */
@media (max-width: 768px) {
    .cv-sidebar { display:none; }
    .cv-sidebar.open { display:block; }
    .cv-mobile-toggle { display:inline-flex; margin:10px 0 12px; }
}
@media (min-width: 769px) {
    .cv-mobile-toggle { display:none; }
}

/* Keep nav container spacing tidy */
.cv-desc-controls .cv-nav { display:flex; gap:10px; }
.cv-mobile-toggle { margin:10px 0 12px; }

/* Center Prev/Next buttons row */
.cv-desc-controls {
    display: flex;
    justify-content: center;   /* horizontally center */
    align-items: center;
    gap: 12px;                 /* space between buttons */
    margin: 16px 0;
}

.cv-desc-controls .cv-nav {
    display: flex;
    justify-content: center;   /* center inside the nav container */
    gap: 12px;
}

/* --- Music Order helpers --- */
.video-embed { position: relative; width: 100%; }
.video-embed::before { content: ""; display: block; padding-top: 56.25%; } /* 16:9 */
.video-embed__inner, .video-embed iframe {
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

.panel .info-row { display:flex; gap:.5rem; align-items:center; margin:.35rem 0; }
.panel .radio-row { display:flex; gap:1.25rem; align-items:center; }

.sep { border: 0; height: 1px; background: var(--border-color, #2a2a2a); margin: 1rem 0; }


/* Helpers used above */
.thumb { max-width: 240px; height: auto; border-radius: 8px; display: block; }

/* Pricing grid responsive */
.plan-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

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

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

    .price-panel{
        text-align: left;
    }

    .price-panel .price-amount{
        font-size: 24px;
        line-height: 1.15;
        word-break: break-word;
    }

    .price-panel .check-list{
        margin-top: 12px;
    }
}

.method-grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:12px;
    max-width:720px;
    margin:0 auto;
}

.method{
    display:flex;
   /* flex-direction:column;*/
    align-items:center;
    justify-content:center;
}

.method small{
    margin-top:-6px;
    opacity:0.8;
}

.method.local{
    grid-column:1;
}

.method.selar{
    grid-column:2;
}

.method.gumroad{
    grid-column:1 / span 2; /* THIS centers it */
    justify-self:center;
    margin-top:5px;
}

.cv-upgrade-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1c1c1c, #111);
    border: 1px solid #00ffd5;
    color: #eaeaea;
    font-size: 14px;
}

.cv-upgrade-text {
    line-height: 1.5;
}

.cv-upgrade-text a {
    margin-left: 6px;
    font-weight: bold;
}

.cv-upgrade-close {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 16px;
    cursor: pointer;
}

.cv-upgrade-close:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .cv-upgrade-notice {
        flex-direction: column;
        align-items: flex-start;
    }
}


/** SEARCH COURSES **/

/* Course view - lesson search */
.cv-lesson-search{
    margin: 10px 0 10px;
}

.cv-search-form{
    width: 100%;
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.cv-search-input{
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(0,255,213,0.22);
    background: rgba(8,10,16,0.55);
    color: #e9f4ff;
    outline: none;
}

.cv-search-input::placeholder{
    color: rgba(233,244,255,0.55);
}

.cv-search-btn{
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(0,255,213,0.28);
    background: rgba(0,255,213,0.10);
    color: #e9f4ff;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.cv-search-btn:hover{
    background: rgba(0,255,213,0.16);
}

@media (max-width: 560px){
    .cv-search-form{
        flex-direction: column;
    }
    .cv-search-btn{
        width: 100%;
    }
}

/* Search results box */
.cv-search-results{
    margin-top: 10px;
    border: 1px solid rgba(148,163,184,0.18);
    background: rgba(10,12,18,0.72);
    border-radius: 12px;
    padding: 10px;
}

.cv-search-results-head{
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    color: rgba(233,244,255,0.85);
    font-size: 13px;
}

.cv-search-count{
    color: rgba(233,244,255,0.55);
    margin-left: 6px;
}

.cv-search-clear{
    color: #00ffd5;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

.cv-search-clear:hover{
    text-decoration: underline;
}

.cv-search-empty{
    padding: 10px 6px;
    color: rgba(233,244,255,0.65);
    font-size: 13px;
}

.cv-search-list{
    display: grid;
    gap: 8px;
}

.cv-search-item{
    display: block;
    text-decoration: none;
    border: 1px solid rgba(148,163,184,0.14);
    border-radius: 10px;
    padding: 10px;
    background: rgba(0,0,0,0.18);
    color: #e9f4ff;
}

.cv-search-item:hover{
    border-color: rgba(0,255,213,0.25);
    background: rgba(0,255,213,0.06);
}

.cv-search-item-title{
    font-weight: 700;
    font-size: 14px;
    line-height: 1.25;
}

.cv-search-item-module{
    margin-top: 3px;
    font-size: 12px;
    color: rgba(233,244,255,0.70);
}

.cv-search-item-snippet{
    margin-top: 8px;
    font-size: 13px;
    color: rgba(233,244,255,0.70);
    line-height: 1.35;
}

.cv-search-lock{
    margin-left: 8px;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(239,68,68,0.35);
    background: rgba(239,68,68,0.10);
    color: rgba(255,255,255,0.92);
}

.cv-search-lock.ok{
    border: 1px solid rgba(34,197,94,0.28);
    background: rgba(34,197,94,0.10);
}

/* Warning note with close button */
.cv-reveal-note{
    margin: 8px 0 16px;
    border: 1px solid #ef4444;
    background: rgba(190,92,0,0.08);
    color: #fde047;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-content: space-between;
}

.cv-reveal-note-text{
    flex: 1;
    min-width: 0;
}

.cv-reveal-note-close{
    border: 1px solid rgba(239,68,68,0.45);
    background: rgba(239,68,68,0.12);
    color: #ffd6d6;
    border-radius: 10px;
    padding: 6px 10px;
    cursor: pointer;
    line-height: 1;
    font-weight: 700;
}

.cv-reveal-note-close:hover{
    background: rgba(239,68,68,0.18);
}

.ref-page { max-width: 960px; margin: 0 auto; padding: 0 0 60px; }
.ref-hero {
    background: linear-gradient(135deg, #0a1628 0%, #0d2137 50%, #071520 100%);
    border: 1px solid rgba(0,255,213,.18);
    border-radius: 20px;
    padding: 36px 32px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}
.ref-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 50% at 80% 50%, rgba(0,255,213,.07), transparent);
    pointer-events: none;
}
.ref-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px;
    background: rgba(0,255,213,.12); border: 1px solid rgba(0,255,213,.22);
    color: #00ffd5; font-size: 12px; font-weight: 700; letter-spacing: .5px;
    text-transform: uppercase; margin-bottom: 14px;
}
.ref-hero-title { font-size: 28px; font-weight: 900; line-height: 1.15; margin: 0 0 10px; }
.ref-hero-title span { color: #00ffd5; }
.ref-hero-sub { color: #9aa3af; max-width: 520px; line-height: 1.6; }
.ref-commission-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 12px;
    background: rgba(0,255,213,.1); border: 1px solid rgba(0,255,213,.25);
    color: #fff; font-weight: 800; font-size: 22px; margin-top: 16px;
}
.ref-commission-pill small { font-size: 13px; font-weight: 400; color: #9aa3af; }

.join-panel {
    background: #111827;
    border: 1px solid rgba(0,255,213,.15);
    border-radius: 16px; padding: 28px;
    margin-bottom: 28px;
}
.join-panel h3 { color: #00ffd5; margin: 0 0 8px; font-size: 18px; }

.ref-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 14px; margin-bottom: 28px;
}
@media (max-width: 700px) {
    .ref-stats-grid { grid-template-columns: repeat(2,1fr); }
}
.ref-stat-card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 16px; padding: 20px 16px;
    text-align: center;
    transition: border-color .2s;
}
.ref-stat-card:hover { border-color: rgba(0,255,213,.3); }
.ref-stat-icon { font-size: 22px; margin-bottom: 8px; }
.ref-stat-value { font-size: 22px; font-weight: 900; color: #fff; }
.ref-stat-label { font-size: 12px; color: #6b7280; margin-top: 4px; }

.ref-promo-banner {
    background: linear-gradient(135deg, #1a0a2e, #0f1a2e);
    border: 1px solid rgba(168,85,247,.3);
    border-radius: 16px; padding: 20px 24px;
    margin-bottom: 28px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    flex-wrap: wrap;
}
.ref-promo-banner .label {
    color: #a855f7; font-weight: 700; font-size: 12px;
    text-transform: uppercase; letter-spacing: .5px;
}
.ref-promo-banner .link-text {
    color: #e2e8f0; font-size: 14px; word-break: break-all; margin: 4px 0;
}

.ref-panel {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 16px; padding: 24px;
    margin-bottom: 24px;
}
.ref-panel-title {
    font-size: 16px; font-weight: 700; color: #fff;
    margin: 0 0 16px; padding-bottom: 12px;
    border-bottom: 1px solid #1f2937;
    display: flex; align-items: center; gap: 10px;
}
.ref-panel-title .icon { color: #00ffd5; }

.link-builder-result {
    background: rgba(0,255,213,.06);
    border: 1px solid rgba(0,255,213,.18);
    border-radius: 10px; padding: 14px 16px;
    margin-top: 14px; display: none;
}
.link-builder-result .built-url {
    color: #00ffd5; font-size: 13px; word-break: break-all;
    font-family: monospace;
}
.link-builder-result .commission-note {
    color: #9aa3af; font-size: 12px; margin-top: 6px;
}

.ref-filter-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.ref-tab {
    padding: 7px 16px; border-radius: 999px;
    font-size: 13px; font-weight: 600; text-decoration: none;
    border: 1px solid #374151; color: #9aa3af;
    transition: all .18s ease;
}
.ref-tab.active, .ref-tab:hover {
    background: rgba(0,255,213,.12);
    border-color: rgba(0,255,213,.3);
    color: #00ffd5;
}
.ref-badge-status {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 700;
}
.ref-badge-status.confirmed,
.ref-badge-status.approved {
    background: rgba(34,197,94,.12);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,.25);
}
.ref-badge-status.pending {
    background: rgba(251,191,36,.10);
    color: #fbbf24;
    border: 1px solid rgba(251,191,36,.25);
}
.ref-badge-status.rejected,
.ref-badge-status.suspended {
    background: rgba(239,68,68,.12);
    color: #f87171;
    border: 1px solid rgba(239,68,68,.25);
}
.ref-badge-status.paid {
    background: rgba(59,130,246,.12);
    color: #60a5fa;
    border: 1px solid rgba(59,130,246,.25);
}

.payout-tabs { display: flex; gap: 10px; margin-bottom: 16px; }
.payout-tab {
    flex: 1; padding: 12px; border-radius: 10px;
    border: 2px solid #374151; background: transparent;
    color: #9aa3af; cursor: pointer; font-weight: 600;
    transition: all .18s; text-align: center; font-size: 14px;
}
.payout-tab.active {
    border-color: #00ffd5;
    color: #00ffd5;
    background: rgba(0,255,213,.06);
}

.acct-name-hint {
    font-size: 12px; margin-top: 5px; padding: 7px 10px;
    border-radius: 8px; display: none;
}
.acct-name-hint.match {
    background: rgba(34,197,94,.1);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,.25);
    display: block;
}
.acct-name-hint.no-match {
    background: rgba(239,68,68,.1);
    color: #f87171;
    border: 1px solid rgba(239,68,68,.25);
    display: block;
}

.suspension-box {
    background: rgba(239,68,68,.08);
    border: 1px solid rgba(239,68,68,.22);
    border-left: 4px solid #ef4444;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 24px;
    color: #fecaca;
}
.suspension-box a {
    color: #fff;
    text-decoration: underline;
}

.ref-note-box {
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.5;
}


.rp-page { max-width: 1180px; }

.rp-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0,1fr));
    gap: 14px;
    margin-bottom: 28px;
}
@media (max-width: 1000px) {
    .rp-stats-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 700px) {
    .rp-stats-grid { grid-template-columns: repeat(2,1fr); }
}

.rp-stat {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 16px;
    padding: 18px 16px;
    text-align: center;
}
.rp-stat.accent { border-color: rgba(0,255,213,.3); }
.rp-stat-val { font-size: 22px; font-weight: 900; color: #fff; }
.rp-stat-val.brand { color: #00ffd5; }
.rp-stat-val.green { color: #22c55e; }
.rp-stat-val.red   { color: #ef4444; }
.rp-stat-lbl {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.rp-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(251,191,36,.1);
    border: 1px solid rgba(251,191,36,.3);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.rp-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: #0d1117;
    padding: 4px;
    border-radius: 12px;
    flex-wrap: wrap;
}
.rp-tab {
    flex: 1;
    min-width: 120px;
    padding: 10px 16px;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: #9aa3af;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all .18s;
}
.rp-tab.active { background: #1f2937; color: #00ffd5; }
.rp-tab:hover:not(.active) { color: #e2e8f0; }

.rp-section { display: none; }
.rp-section.active { display: block; }

.rp-panel {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}
.rp-panel-title {
    font-size: 15px;
    font-weight: 700;
    color: #00ffd5;
    margin: 0 0 16px;
}

.rp-filter-strip {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.rp-ftab {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #374151;
    color: #9aa3af;
    transition: all .18s;
}
.rp-ftab.active, .rp-ftab:hover {
    background: rgba(0,255,213,.1);
    border-color: rgba(0,255,213,.3);
    color: #00ffd5;
}

.ref-badge-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}
.ref-badge-status.active,
.ref-badge-status.confirmed,
.ref-badge-status.approved {
    background: rgba(34,197,94,.12);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,.25);
}
.ref-badge-status.pending {
    background: rgba(251,191,36,.10);
    color: #fbbf24;
    border: 1px solid rgba(251,191,36,.25);
}
.ref-badge-status.rejected,
.ref-badge-status.suspended {
    background: rgba(239,68,68,.10);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,.25);
}
.ref-badge-status.paid {
    background: rgba(59,130,246,.12);
    color: #60a5fa;
    border: 1px solid rgba(59,130,246,.25);
}

.inline-action {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin-top: 4px;
    flex-wrap: wrap;
}
.inline-action input[type=text] {
    padding: 4px 8px;
    border-radius: 8px;
    background: #0d1117;
    border: 1px solid #374151;
    color: #e2e8f0;
    font-size: 12px;
    width: 160px;
}

.small-note {
    font-size: 12px;
    color: #94a3b8;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.bonus-chip {
    display: inline-block;
    position: relative;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(0, 255, 213, 0.10);
    border: 1px solid rgba(0, 255, 213, 0.25);
    color: #00ffd5;
    font-size: 12px;
    font-weight: 700;
    cursor: default;
    white-space: nowrap;
    margin: 2px 1px;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.bonus-chip:hover {
    background: rgba(0, 255, 213, 0.18);
    border-color: rgba(0, 255, 213, 0.50);
}
.bonus-chip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    color: #e0e0e0;
    border: 1px solid rgba(0, 255, 213, 0.30);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.bonus-chip::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 1px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 255, 213, 0.30);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    z-index: 9999;
}
.bonus-chip:hover::after,
.bonus-chip:hover::before { opacity: 1; visibility: visible; }
.bonus-chip:first-child::after { left: 0; transform: none; }
.bonus-chip:last-child::after  { left: auto; right: 0; transform: none; }

.enrol-bulk-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border: 1px solid rgba(168, 85, 247, 0.40);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
    transition: box-shadow 0.18s ease, transform 0.15s ease;
    white-space: nowrap;
}
.enrol-bulk-btn:hover {
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.50);
    transform: translateY(-1px);
    color: #fff;
}
.enrol-bulk-btn:active { transform: scale(0.97); }

.item-id-link {
    color: #00ffd5;
    font-weight: 700;
}

.date-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.date-main {
    font-size: 13px;
    color: #eaeaea;
    font-weight: 600;
    white-space: nowrap;
}
.date-time {
    font-size: 12px;
    color: #9aa3af;
    white-space: nowrap;
}
.date-ago {
    display: inline-block;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    color: #9aa3af;
    white-space: nowrap;
}
.date-confirmed-label {
    margin-top: 6px;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.date-confirmed-val {
    font-size: 12px;
    color: #22c55e;
    font-weight: 600;
    white-space: nowrap;
}
.date-confirmed-ago {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(34,197,94,0.10);
    border: 1px solid rgba(34,197,94,0.22);
    color: #22c55e;
    white-space: nowrap;
    margin-left: 4px;
}
.date-not-confirmed {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
}

.ref-pill {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(0,255,213,.10);
    border: 1px solid rgba(0,255,213,.24);
    color: #00ffd5;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.ref-none {
    color: #777;
    font-size: 12px;
}

.ref-amount-line {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #fbbf24;
    white-space: nowrap;
}

.net-amount-line {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #22c55e;
    white-space: nowrap;
}

.net-amount-muted {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    color: #777;
    white-space: nowrap;
}

.referral-info-grid,
.referral-stats-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

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

.referral-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 16px;
}

@media (min-width: 992px) {
    .referral-info-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .referral-stats-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}