/* =========================================================
   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; }
}
