/* ===== OAC — Blue / Silver / White Theme ===== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #c0c0c0;
    background: #0b0e14;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---------- Links ---------- */
a {
    color: #1e90ff;
    text-decoration: none;
    transition: color .2s ease;
}
a:hover {
    color: #63b3ed;
}

/* ---------- Header / Navbar ---------- */
.site-header {
    background: linear-gradient(135deg, #0a3d62 0%, #3c6382 100%);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .4);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: .25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
    margin-right: .25rem;
}

.navbar-brand img {
    height: 60px;
    width: auto;
}

.navbar-brand span {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: .5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: .15rem;
    flex-wrap: nowrap;
    white-space: nowrap;
    position: relative;
    z-index: 999;
}

.nav-links a,
.nav-links span {
    color: #c0c0c0;
    padding: .35rem .6rem;
    border-radius: 6px;
    font-size: .82rem;
    font-weight: 500;
    transition: background .2s ease, color .2s ease;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus {
    background: rgba(255, 255, 255, .1);
    color: #ffffff;
}

.nav-links .user-greeting {
    color: #a0a0a0;
    font-weight: 400;
    font-size: .85rem;
}

/* Logout button styled as nav link */
.btn-logout {
    background: transparent;
    border: 1px solid rgba(192, 192, 192, .3);
    color: #c0c0c0;
    padding: .35rem .75rem;
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.btn-logout:hover {
    background: rgba(255, 255, 255, .1);
    color: #ffffff;
}

/* Nav Login / Register buttons */
.btn-nav-login,
.btn-nav-register {
    display: inline-block;
    padding: .45rem 1.1rem;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .3px;
    transition: background .2s ease, box-shadow .2s ease, color .2s ease;
    white-space: nowrap;
}

.btn-nav-login {
    background: #1e90ff;
    color: #ffffff !important;
    border: none;
    box-shadow: 0 2px 8px rgba(30, 144, 255, .35);
}
.btn-nav-login:hover {
    background: #1a7de0;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(30, 144, 255, .5);
}

.btn-nav-register {
    background: transparent;
    color: #c0c0c0 !important;
    border: 1px solid rgba(192, 192, 192, .35);
}
.btn-nav-register:hover {
    background: rgba(255, 255, 255, .08);
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, .4);
}

/* Nav dropdown */
.nav-dropdown {
    position: relative;
    z-index: 1050;
}

.nav-dropdown-btn {
    background: #1e90ff;
    color: #ffffff;
    border: none;
    padding: .4rem .9rem;
    border-radius: 6px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease;
    white-space: nowrap;
    letter-spacing: .3px;
}
.nav-dropdown-btn:hover,
.nav-dropdown.active .nav-dropdown-btn,
.nav-dropdown:hover .nav-dropdown-btn {
    background: #1a7de0;
    box-shadow: 0 2px 10px rgba(30, 144, 255, .4);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + .35rem);
    left: 50%;
    transform: translateX(-50%);
    background: #151a24;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
    min-width: 200px;
    padding: .35rem 0;
    z-index: 1100;
}

/* Show dropdown on active state (for click toggle) */
.nav-dropdown.active .nav-dropdown-menu {
    display: block;
}

/* Also keep hover functionality */
.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

/* Invisible bridge to prevent hover gap between button and menu */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: .35rem;
    display: none;
}
.nav-dropdown:hover::after {
    display: block;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-item {
    display: block;
    padding: .55rem 1rem;
    color: #c0c0c0 !important;
    font-size: .82rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
    white-space: nowrap;
}
.nav-dropdown-item:hover {
    background: rgba(30, 144, 255, .12);
    color: #ffffff !important;
}

/* Nav subscription badge */
.nav-sub-badge {
    display: inline-block;
    padding: .2rem .65rem;
    border-radius: 12px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    line-height: 1.4;
    vertical-align: middle;
}
.nav-sub-badge--free {
    background: rgba(192, 192, 192, .15);
    color: #c0c0c0;
    border: 1px solid rgba(192, 192, 192, .3);
}
.nav-sub-badge--basic {
    background: rgba(30, 144, 255, .15);
    color: #63b3ed;
    border: 1px solid rgba(30, 144, 255, .35);
}
.nav-sub-badge--premium {
    background: rgba(218, 165, 32, .2);
    color: #daa520;
    border: 1px solid rgba(218, 165, 32, .4);
}
.nav-sub-badge--elite {
    background: linear-gradient(135deg, rgba(218, 165, 32, .25), rgba(255, 215, 0, .15));
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, .5);
    text-shadow: 0 0 6px rgba(255, 215, 0, .3);
}

/* ---------- Main Content ---------- */
.site-main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* ---------- Cards & Containers ---------- */
.card {
    background: #1a1e2a;
    border: 1px solid rgba(192, 192, 192, .1);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: .5rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease;
}

.btn-primary {
    background: #1e90ff;
    color: #ffffff;
}
.btn-primary:hover {
    background: #1a7de0;
    box-shadow: 0 4px 14px rgba(30, 144, 255, .4);
}

.btn-secondary {
    background: #3a3f4b;
    color: #c0c0c0;
}
.btn-secondary:hover {
    background: #4a4f5b;
}

.btn-danger {
    background: #e74c3c;
    color: #ffffff;
}
.btn-danger:hover {
    background: #c0392b;
    box-shadow: 0 4px 12px rgba(231, 76, 60, .35);
}

.btn-login {
    display: block;
    width: 100%;
    padding: .85rem 1.5rem;
    margin-top: 1.25rem;
    background: linear-gradient(135deg, #1e90ff 0%, #0a6fd8 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(30, 144, 255, .35);
    transition: background .2s ease, box-shadow .2s ease, transform .1s ease;
}
.btn-login:hover {
    background: linear-gradient(135deg, #3aa3ff 0%, #1e90ff 100%);
    box-shadow: 0 6px 20px rgba(30, 144, 255, .5);
    transform: translateY(-1px);
}
.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(30, 144, 255, .3);
}

/* ---------- Forms ---------- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: .55rem .75rem;
    border: 1px solid rgba(192, 192, 192, .2);
    border-radius: 6px;
    font-size: .9rem;
    color: #e0e0e0;
    background: #1a1e2a;
    transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #1e90ff;
    box-shadow: 0 0 0 3px rgba(30, 144, 255, .25);
}

label {
    display: block;
    margin-bottom: .35rem;
    font-weight: 600;
    font-size: .875rem;
    color: #c0c0c0;
}

.form-group {
    margin-bottom: 1rem;
}

/* ---------- Tables ---------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}
th, td {
    text-align: left;
    padding: .65rem .75rem;
    border-bottom: 1px solid rgba(192, 192, 192, .1);
}
th {
    background: #0a3d62;
    color: #c0c0c0;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}
tr:hover {
    background: rgba(30, 144, 255, .05);
}

.user-col-filters th {
    padding: .35rem .5rem;
    background: #0d1117;
}
.col-filter-input {
    background: #1a1e2a !important;
    border: 1px solid rgba(192, 192, 192, .15) !important;
    color: #e0e0e0 !important;
    padding: .35rem .6rem !important;
    border-radius: 6px !important;
    font-size: .8rem !important;
    width: 100%;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.col-filter-input::placeholder {
    color: #666;
    text-transform: none;
    letter-spacing: normal;
}
.col-filter-input:focus {
    outline: none;
    border-color: #1e90ff !important;
    box-shadow: 0 0 0 2px rgba(30, 144, 255, .2);
}

/* ---------- Validation ---------- */
.text-danger {
    color: #e74c3c;
    font-size: .8rem;
}

.validation-summary-errors ul {
    list-style: none;
    padding: .75rem 1rem;
    background: rgba(231, 76, 60, .1);
    border-left: 4px solid #e74c3c;
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #2f3640;
    color: #c0c0c0;
    text-align: center;
    padding: 1.25rem 1.5rem;
    font-size: .85rem;
    margin-top: auto;
}

.site-footer .footer-brand {
    font-weight: 700;
    color: #e0e0e0;
    font-size: .95rem;
}

.site-footer .build-number {
    font-size: .7rem;
    color: #6b7280;
    margin-top: .25rem;
}

.site-footer a {
    color: #1e90ff;
}
.site-footer a:hover {
    color: #63b3ed;
}

/* ---------- Utility ---------- */
.text-center  { text-align: center; }
.text-muted   { color: #a8b0b8; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* ---------- Hero Section ---------- */
.hero {
    background: linear-gradient(135deg, #0a3d62 0%, #3c6382 100%);
    padding: 4rem 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-banner {
    width: 100%;
    max-width: 900px;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .4);
}

.hero h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: .75rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #c0c0c0;
    max-width: 620px;
    margin: 0 auto 2rem;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    width: 100%;
    text-align: left;
}

.hero-feature h3 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: .35rem;
    font-weight: 700;
}

.hero-feature p {
    font-size: .9rem;
    color: #c0c0c0;
    line-height: 1.5;
}

/* ---------- Features Section ---------- */
.features {
    padding: 2rem 0 2rem;
}

.features h2 {
    font-size: 1.5rem;
    color: #e0e0e0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    transition: transform .2s ease, box-shadow .2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: .75rem;
    line-height: 1;
}

.feature-card h3 {
    font-size: 1.15rem;
    color: #1e90ff;
    margin-bottom: .5rem;
}

.feature-card p {
    font-size: .9rem;
    color: #a0a0a0;
    line-height: 1.5;
}

/* ---------- CTA Section ---------- */
.cta-section {
    background: linear-gradient(135deg, #0a3d62 0%, #3c6382 100%);
    border-radius: 12px;
    padding: 4rem 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.cta-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.cta-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: .5rem;
}

.cta-description {
    font-size: 1rem;
    color: #c0c0c0;
    max-width: 550px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* ---------- Plan Cards ---------- */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.plan-card {
    position: relative;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(192, 192, 192, .15);
    border-radius: 12px;
    padding: 2.5rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}

.plan-card--featured {
    border-color: rgba(30, 144, 255, .5);
    box-shadow: 0 0 20px rgba(30, 144, 255, .15);
}

.plan-badge {
    position: absolute;
    top: -12px;
    background: #1e90ff;
    color: #ffffff;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: .25rem .85rem;
    border-radius: 20px;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: .5rem;
}

.plan-price {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1e90ff;
    margin-bottom: .75rem;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 400;
    color: #a0a0a0;
}

.plan-desc {
    font-size: .9rem;
    color: #c0c0c0;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex: 1;
}

.btn-plan {
    background: #00c851;
    color: #ffffff;
    padding: .6rem 2rem;
    font-size: .95rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.btn-plan:hover {
    background: #00b347;
    box-shadow: 0 6px 18px rgba(0, 200, 81, .4);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-cta {
    background: #00c851;
    color: #ffffff;
    padding: .65rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    display: inline-block;
    transition: box-shadow .2s ease, transform .2s ease;
}

.btn-cta:hover {
    background: #00b347;
    box-shadow: 0 6px 18px rgba(0, 200, 81, .4);
    transform: translateY(-2px);
    color: #ffffff;
}

/* ---------- Hamburger Toggle ---------- */
.navbar-top {
    display: contents;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: transparent;
    border: 1px solid rgba(192, 192, 192, .3);
    border-radius: 6px;
    padding: .45rem .5rem;
    cursor: pointer;
    transition: background .2s ease;
}

.navbar-toggle:hover {
    background: rgba(255, 255, 255, .1);
}

.navbar-toggle-icon {
    display: block;
    width: 20px;
    height: 2px;
    background: #c0c0c0;
    border-radius: 1px;
    transition: transform .25s ease, opacity .2s ease;
}

/* Animate hamburger ? X when open */
.navbar-toggle.open .navbar-toggle-icon:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.navbar-toggle.open .navbar-toggle-icon:nth-child(2) {
    opacity: 0;
}
.navbar-toggle.open .navbar-toggle-icon:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: stretch;
        padding: .5rem 1rem;
    }
    .navbar-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    .navbar-toggle {
        display: flex;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: .15rem;
        margin: 0;
        padding-top: .5rem;
        white-space: normal;
        flex-wrap: wrap;
    }
    .nav-links.open {
        display: flex;
    }

    .nav-links a,
    .nav-links span {
        white-space: normal;
        padding: .5rem .6rem;
    }
    .nav-links .user-greeting {
        padding: .5rem .6rem;
    }
    .nav-dropdown {
        width: 100%;
    }
    .nav-dropdown-btn {
        width: 100%;
        text-align: left;
    }
    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(255, 255, 255, .03);
        border-radius: 6px;
        margin-top: .25rem;
        min-width: 0;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .hero {
        padding: 2.5rem 1rem;
    }
    .hero h1 {
        font-size: 1.5rem;
    }
    .hero-features {
        grid-template-columns: 1fr;
    }
    .plan-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 540px;
        margin: 0 auto;
    }
    .cta-section {
        padding: 2rem 1rem;
    }
    .cta-title {
        font-size: 1.35rem;
    }
    .timeline::before {
        left: 1rem;
    }
    .timeline-item,
    .timeline-item--reverse {
        flex-direction: column;
        gap: 1rem;
    }
    .timeline-img-wrap {
        flex: none;
    }
    .timeline-img {
        height: 180px;
    }
    .about-why {
        padding: 2.5rem 1rem;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .features-grid,
    .plan-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    .feature-card,
    .plan-card {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .feature-card img,
    .plan-card img {
        max-width: 100%;
        height: auto;
    }
}

/* ---------- Admin Modal ---------- */
.admin-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.admin-modal {
    background: #1a1e2a;
    border: 1px solid rgba(192, 192, 192, .15);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
    width: 100%;
    max-width: 460px;
    overflow: hidden;
}

.admin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(192, 192, 192, .1);
}

.admin-modal-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.admin-modal-close {
    background: transparent;
    border: none;
    color: #a0a0a0;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 .25rem;
    transition: color .15s ease;
}

.admin-modal-close:hover {
    color: #ffffff;
}

.admin-modal-body {
    padding: 1.5rem;
}

.admin-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(192, 192, 192, .1);
}

/* ---------- Admin ---------- */
.nav-admin {
    background: rgba(255, 193, 7, .15);
    color: #ffc107 !important;
    font-weight: 600;
    border-radius: 6px;
}
.nav-admin:hover,
.nav-admin:focus {
    background: rgba(255, 193, 7, .25);
    color: #ffda44 !important;
}

.admin-header {
    border-bottom: 1px solid rgba(192, 192, 192, .1);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.admin-header h1 {
    font-size: 1.75rem;
    color: #ffffff;
    margin-bottom: .35rem;
}

.admin-header p {
    color: #b0b8c0;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.admin-actions {
    display: flex;
    gap: .4rem;
}

.btn-sm {
    padding: .3rem .7rem;
    font-size: .8rem;
}

/* Admin filter bar */
.admin-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    margin-bottom: .5rem;
    flex-wrap: wrap;
    border-bottom: 2px solid rgba(192, 192, 192, .1);
    padding-bottom: .75rem;
}

.admin-search-wrap {
    flex-shrink: 0;
    width: 260px;
}

.admin-search-wrap .form-control {
    background: #1a1e2a;
    border: 1px solid rgba(192, 192, 192, .15);
    color: #e0e0e0;
    padding: .5rem .85rem;
    border-radius: 8px;
    font-size: .875rem;
    width: 100%;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.admin-search-wrap .form-control::placeholder {
    color: #666;
}

.admin-search-wrap .form-control:focus {
    outline: none;
    border-color: #1e90ff;
    box-shadow: 0 0 0 2px rgba(30, 144, 255, .2);
}

.admin-filter-count {
    font-size: .82rem;
    color: #808080;
    margin-bottom: .25rem;
}

/* Plan breakdown stats */
.plan-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.plan-stat-card {
    background: #1a1e2a;
    border: 1px solid rgba(192, 192, 192, .1);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    transition: border-color .2s ease;
}

.plan-stat-card:hover {
    border-color: rgba(30, 144, 255, .25);
}

.plan-stat-plan {
    font-size: .95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: .15rem;
}

.plan-stat-total {
    font-size: .82rem;
    color: #1e90ff;
    font-weight: 600;
    margin-bottom: .65rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(192, 192, 192, .08);
}

.plan-stat-breakdown {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.plan-stat-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0 .6rem;
    align-items: center;
    font-size: .8rem;
    color: #a0a0a0;
}

.plan-stat-row strong {
    color: #e0e0e0;
    font-size: .85rem;
    min-width: 1.5rem;
    text-align: right;
}

.plan-stat-row--header {
    font-size: .7rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .15rem;
    border-bottom: 1px solid rgba(192, 192, 192, .08);
    padding-bottom: .25rem;
}

.plan-stat-row--header span {
    text-align: right;
}

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

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

@media (max-width: 768px) {
    .admin-filter-bar { flex-direction: column; align-items: stretch; }
    .admin-search-wrap { width: 100%; }
}

.badge-published {
    background: rgba(0, 200, 81, .15);
    color: #00c851;
    padding: .2rem .6rem;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
}

.badge-draft {
    background: rgba(192, 192, 192, .1);
    color: #a0a0a0;
    padding: .2rem .6rem;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
}

.badge-plan {
    background: rgba(30, 144, 255, .15);
    color: #1e90ff;
    padding: .2rem .6rem;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
    margin-right: .3rem;
    display: inline-block;
}

.plan-checkboxes {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: .35rem;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 400;
    font-size: .9rem;
    color: #c0c0c0;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    accent-color: #1e90ff;
}

/* Content Type Selector */
.content-type-selector {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: .35rem;
}

.content-type-option {
    display: block;
    margin-bottom: 0;
}

.content-type-option input[type="radio"] {
    display: none;
}

.content-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(192, 192, 192, .15);
    border-radius: 10px;
    background: rgba(255, 255, 255, .03);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
    font-size: .85rem;
    font-weight: 600;
    color: #c0c0c0;
    min-width: 110px;
}

.content-type-option input[type="radio"]:checked + .content-type-card {
    border-color: #1e90ff;
    background: rgba(30, 144, 255, .1);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(30, 144, 255, .25);
}

.content-type-card:hover {
    border-color: rgba(30, 144, 255, .4);
    background: rgba(30, 144, 255, .05);
}

.content-type-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.series-create-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(192, 192, 192, .15);
    border-radius: 10px;
    background: rgba(255, 255, 255, .03);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
    font-size: .85rem;
    font-weight: 600;
    color: #c0c0c0;
    min-width: 110px;
}

.series-create-type-btn:hover {
    border-color: rgba(30, 144, 255, .4);
    background: rgba(30, 144, 255, .05);
}

.series-create-type-btn--active {
    border-color: #1e90ff;
    background: rgba(30, 144, 255, .1);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(30, 144, 255, .25);
}

.series-tab-panel {
    display: none;
}

.series-tab-panel.active {
    display: block;
}

/* Content Type Badges */
.badge-type {
    padding: .2rem .6rem;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-type--textlesson {
    background: rgba(30, 144, 255, .15);
    color: #1e90ff;
}

.badge-type--visualcard {
    background: rgba(155, 89, 182, .15);
    color: #9b59b6;
}

.badge-type--book {
    background: rgba(243, 156, 18, .15);
    color: #f39c12;
}

.badge-type--video {
    background: rgba(231, 76, 60, .15);
    color: #e74c3c;
}

.badge-type--course {
    background: rgba(155, 89, 182, .15);
    color: #9b59b6;
}

.detail-row {
    margin-bottom: .75rem;
    overflow-wrap: break-word;
    word-break: break-word;
    color: #d0d8e0;
}

.detail-row strong {
    color: #e0e0e0;
    margin-right: .5rem;
}

.detail-row p {
    color: #d0d8e0;
    margin: 0;
}

.content-body {
    color: #c0c0c0;
    line-height: 1.7;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}
.content-body h1, .content-body h2, .content-body h3 {
    color: #e0e0e0;
    margin: 1rem 0 .5rem;
}
.content-body ul, .content-body ol {
    padding-left: 1.5rem;
    margin: .5rem 0;
}
.content-body blockquote {
    border-left: 3px solid #1e90ff;
    padding-left: 1rem;
    margin: .75rem 0;
    color: #a0b0c0;
}
.content-body img {
    max-width: 100%;
    height: auto;
}
.content-body pre {
    max-width: 100%;
    overflow-x: auto;
}
.content-body table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* ---------- Book Reader ---------- */
.book-reader {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none;
}

.book-page-area {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: 750px;
    min-height: 600px;
    position: relative;
}

.book-spine {
    display: none;
}

.book-page {
    flex: 1;
    background: linear-gradient(135deg, #fdf6e3 0%, #f5eed6 40%, #efe8cc 100%);
    border-radius: 4px 12px 12px 4px;
    box-shadow:
        inset -4px 0 12px rgba(0,0,0,.08),
        inset 0 0 30px rgba(139,119,72,.06),
        6px 6px 20px rgba(0,0,0,.35),
        -2px 0 6px rgba(0,0,0,.15);
    padding: 2.5rem 2.5rem 2rem;
    position: relative;
    overflow-y: auto;
    color: #2c2416;
    font-family: 'Georgia', 'Garamond', 'Times New Roman', serif;
    font-size: 1.05rem;
    line-height: 1.9;
    border-left: 3px solid #c4b896;
}

.book-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent,
            transparent 1.85em,
            rgba(139,119,72,.07) 1.85em,
            rgba(139,119,72,.07) 1.9em
        );
    pointer-events: none;
    border-radius: inherit;
}

.book-page::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 0;
    width: 40px;
    bottom: 10px;
    background: linear-gradient(to left, rgba(0,0,0,.04), transparent);
    pointer-events: none;
    border-radius: 0 12px 12px 0;
}

.book-page-inner {
    position: relative;
    z-index: 1;
}

.book-page-inner h1,
.book-page-inner h2,
.book-page-inner h3 {
    color: #1a120a;
    font-family: 'Georgia', serif;
    margin: 1.2rem 0 .6rem;
    border-bottom: 1px solid rgba(139,119,72,.2);
    padding-bottom: .3rem;
    break-after: avoid;
    page-break-after: avoid;
}

.book-page-inner h1 { font-size: 1.6rem; }
.book-page-inner h2 { font-size: 1.35rem; }
.book-page-inner h3 { font-size: 1.15rem; }

.book-page-inner p {
    margin-bottom: .85rem;
    text-align: justify;
    text-indent: 1.5em;
    hyphens: auto;
    color: #2c2416;
}

.book-page-inner p:first-child {
    text-indent: 0;
}

.book-page-inner p:first-child::first-letter {
    font-size: 2.8em;
    float: left;
    line-height: 1;
    margin-right: .12em;
    margin-top: .05em;
    color: #6b4e2e;
    font-weight: bold;
    font-family: 'Georgia', serif;
}

.book-page-inner ul,
.book-page-inner ol {
    padding-left: 2rem;
    margin: .6rem 0;
    color: #2c2416;
}

.book-page-inner blockquote {
    border-left: 3px solid #b8a67e;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #5c4a32;
    font-style: italic;
}

.book-page-inner a {
    color: #6b4e2e;
    text-decoration: underline;
}

.book-page-inner img {
    max-width: 100%;
    border-radius: 4px;
    margin: .5rem 0;
}

.book-page-inner strong {
    color: #1a120a;
}

.book-page-inner em {
    color: #3d2e1c;
}

.book-nav {
    background: rgba(20,18,14,.75);
    border: 1px solid rgba(180,160,120,.25);
    color: #d4c9a8;
    font-size: 1.6rem;
    padding: 0 .9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
    flex-shrink: 0;
    z-index: 2;
}

.book-nav--prev {
    border-radius: 12px 0 0 12px;
}

.book-nav--next {
    border-radius: 0 12px 12px 0;
}

.book-nav:hover {
    background: rgba(40,35,25,.9);
    color: #f5eed6;
}

.book-footer {
    margin-top: .75rem;
    text-align: center;
    color: #a09880;
    font-family: 'Georgia', serif;
    font-size: .9rem;
    font-style: italic;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.book-bookmark-btn {
    background: rgba(20,18,14,.75);
    border: 1px solid rgba(180,160,120,.3);
    color: #d4c9a8;
    font-family: 'Georgia', serif;
    font-size: .82rem;
    padding: .3rem .7rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
    white-space: nowrap;
}

.book-bookmark-btn:hover {
    background: rgba(40,35,25,.9);
    color: #f5eed6;
    border-color: rgba(180,160,120,.5);
}

.book-bookmark-status {
    font-size: .8rem;
    color: #8aad6e;
    opacity: 0;
    transition: opacity .3s ease;
    white-space: nowrap;
}

.book-bookmark-status--show {
    opacity: 1;
}

.book-progress-bar {
    width: 100%;
    max-width: 750px;
    height: 6px;
    background: rgba(20,18,14,.35);
    border-radius: 3px;
    margin-top: .5rem;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.2);
}

.book-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #b8a67e, #d4c9a8);
    border-radius: 3px;
    transition: width .3s ease;
}

/* Book page-turn animation */
.book-page-area {
    perspective: 2000px;
    position: relative;
}

.book-page {
    position: relative;
}

/* The turning-page overlay: sits on top, pivots from the spine (left edge) */
.book-page-turning {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Clone the same look as .book-page */
    background: linear-gradient(135deg, #fdf6e3 0%, #f5eed6 40%, #efe8cc 100%);
    border-radius: 4px 12px 12px 4px;
    padding: 2.5rem 2.5rem 2rem;
    overflow: hidden;
    color: #2c2416;
    font-family: 'Georgia', 'Garamond', 'Times New Roman', serif;
    font-size: 1.05rem;
    line-height: 1.9;
    border-left: 3px solid #c4b896;
    transform-origin: left center;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    z-index: 5;
    pointer-events: none;
    will-change: transform;
}

/* Lined-paper overlay on the turning page (matches .book-page::before) */
.book-page-turning::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 1.85em,
        rgba(139,119,72,.07) 1.85em,
        rgba(139,119,72,.07) 1.9em
    );
    pointer-events: none;
    border-radius: inherit;
}

/* Dynamic curl shadow that follows the fold */
.book-page-turning::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    right: 0;
    width: 60px;
    background: linear-gradient(to left,
        rgba(0,0,0,.15) 0%,
        rgba(0,0,0,.06) 40%,
        transparent 100%);
    pointer-events: none;
    border-radius: 0 12px 12px 0;
}

/* Shadow cast onto the page underneath as the turning page lifts */
.book-page-shadow {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0);
    z-index: 3;
    pointer-events: none;
    border-radius: 4px 12px 12px 4px;
    transition: background .15s ease;
}

.book-page-turning.flip-next {
    animation: pageFlipNext .55s cubic-bezier(.36,.07,.19,.97) forwards;
}

.book-page-turning.flip-prev {
    transform: rotateY(-180deg);
    animation: pageFlipPrev .55s cubic-bezier(.36,.07,.19,.97) forwards;
}

@keyframes pageFlipNext {
    0% {
        transform: rotateY(0deg) scale(1);
        box-shadow: 0 0 0 rgba(0,0,0,0);
    }
    15% {
        transform: rotateY(-12deg) scale(1.01);
        box-shadow: 10px 0 25px rgba(0,0,0,.2);
    }
    50% {
        transform: rotateY(-90deg) scale(1.02);
        box-shadow: 20px 0 40px rgba(0,0,0,.35);
    }
    85% {
        transform: rotateY(-160deg) scale(1.01);
        box-shadow: 8px 0 20px rgba(0,0,0,.15);
    }
    100% {
        transform: rotateY(-180deg) scale(1);
        box-shadow: 0 0 0 rgba(0,0,0,0);
    }
}

@keyframes pageFlipPrev {
    0% {
        transform: rotateY(-180deg) scale(1);
        box-shadow: 0 0 0 rgba(0,0,0,0);
    }
    15% {
        transform: rotateY(-168deg) scale(1.01);
        box-shadow: -10px 0 25px rgba(0,0,0,.2);
    }
    50% {
        transform: rotateY(-90deg) scale(1.02);
        box-shadow: -20px 0 40px rgba(0,0,0,.35);
    }
    85% {
        transform: rotateY(-20deg) scale(1.01);
        box-shadow: -8px 0 20px rgba(0,0,0,.15);
    }
    100% {
        transform: rotateY(0deg) scale(1);
        box-shadow: 0 0 0 rgba(0,0,0,0);
    }
}

/* Shadow that darkens the underlying page at the midpoint of the flip */
@keyframes pageShadowNext {
    0%   { background: rgba(0,0,0,0); }
    40%  { background: rgba(0,0,0,.12); }
    60%  { background: rgba(0,0,0,.12); }
    100% { background: rgba(0,0,0,0); }
}

@keyframes pageShadowPrev {
    0%   { background: rgba(0,0,0,0); }
    40%  { background: rgba(0,0,0,.12); }
    60%  { background: rgba(0,0,0,.12); }
    100% { background: rgba(0,0,0,0); }
}

.book-page-shadow.shadow-next {
    animation: pageShadowNext .55s cubic-bezier(.36,.07,.19,.97) forwards;
}

.book-page-shadow.shadow-prev {
    animation: pageShadowPrev .55s cubic-bezier(.36,.07,.19,.97) forwards;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .book-page-turning.flip-next,
    .book-page-turning.flip-prev {
        animation: none;
    }
    .book-page-shadow.shadow-next,
    .book-page-shadow.shadow-prev {
        animation: none;
    }
}

/* Responsive turning page */
@media (max-width: 768px) {
    .book-page-turning {
        padding: 1.5rem 1.2rem 1.2rem;
        font-size: .97rem;
    }
}

@media (max-width: 480px) {
    .book-page-turning {
        padding: 1rem .8rem .8rem;
        font-size: .88rem;
        line-height: 1.7;
    }
}

/* Book reader responsive */
@media (max-width: 768px) {
    .book-page-area {
        min-height: max(450px, 55vh);
    }
    .book-page {
        padding: 1.5rem 1.2rem 1.2rem;
        font-size: .97rem;
    }
    .book-page-inner h1 { font-size: 1.35rem; }
    .book-page-inner h2 { font-size: 1.15rem; }
    .book-page-inner h3 { font-size: 1.05rem; }
    .book-page-inner h1,
    .book-page-inner h2,
    .book-page-inner h3 {
        margin: .8rem 0 .4rem;
    }
    .book-page-inner p {
        margin-bottom: .6rem;
    }
    .book-nav {
        padding: 0 .55rem;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .book-page-area {
        min-height: max(380px, 55vh);
    }
    .book-page {
        padding: 1rem .8rem .8rem;
        font-size: .88rem;
        line-height: 1.7;
    }
    .book-page-inner h1 { font-size: 1.2rem; }
    .book-page-inner h2 { font-size: 1.05rem; }
    .book-page-inner h3 { font-size: .95rem; }
    .book-page-inner h1,
    .book-page-inner h2,
    .book-page-inner h3 {
        margin: .6rem 0 .3rem;
        padding-bottom: .2rem;
    }
    .book-page-inner p {
        margin-bottom: .5rem;
        text-indent: 1em;
    }
    .book-page-inner p:first-child::first-letter {
        font-size: 2.2em;
    }
    .book-nav {
        padding: 0 .4rem;
        font-size: 1.1rem;
    }
    .book-footer {
        font-size: .8rem;
        gap: .5rem;
    }
    .book-bookmark-btn {
        font-size: .75rem;
        padding: .25rem .5rem;
    }
}

/* ---------- Quill Dark Theme Overrides ---------- */
.ql-toolbar.ql-snow {
    background: #151a24;
    border-color: rgba(192, 192, 192, .2) !important;
    border-radius: 6px 6px 0 0;
}
.ql-toolbar .ql-stroke { stroke: #c0c0c0 !important; }
.ql-toolbar .ql-fill   { fill: #c0c0c0 !important; }
.ql-toolbar .ql-picker-label { color: #c0c0c0 !important; }
.ql-toolbar .ql-picker-options {
    background: #1a1e2a !important;
    border-color: rgba(192, 192, 192, .2) !important;
}
.ql-toolbar .ql-picker-item { color: #c0c0c0 !important; }
.ql-toolbar button:hover .ql-stroke,
.ql-toolbar .ql-picker-label:hover .ql-stroke { stroke: #1e90ff !important; }
.ql-toolbar button:hover .ql-fill,
.ql-toolbar .ql-picker-label:hover .ql-fill { fill: #1e90ff !important; }
.ql-toolbar button.ql-active .ql-stroke { stroke: #1e90ff !important; }
.ql-toolbar button.ql-active .ql-fill   { fill: #1e90ff !important; }
.ql-container.ql-snow { border-color: rgba(192, 192, 192, .2) !important; }
.ql-editor { font-size: .9rem; }
.ql-editor.ql-blank::before { color: #555 !important; font-style: italic; }

.content-detail-img {
    width: 100%;
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    display: block;
    box-sizing: border-box;
}

/* ---------- Visual Card Detail Side Panel ---------- */
.vc-detail-row {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
}
.vc-detail-row > .vc-carousel-wrap {
    flex: 1;
    min-width: 0;
}
.vc-side-buy-panel {
    flex: 0 0 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vc-side-buy-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    padding: 1.5rem 1rem;
    background: rgba(30,144,255,.06);
    border-radius: 10px;
    border: 1px solid rgba(30,144,255,.15);
    text-align: center;
}
@media (max-width: 768px) {
    .vc-detail-row {
        flex-direction: column;
    }
    .vc-side-buy-panel {
        display: none;
    }
}

/* ---------- Visual Card Carousel ---------- */
.vc-carousel-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vc-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #ffffff;
    font-size: 1.4rem;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
    pointer-events: auto;
    backdrop-filter: blur(4px);
}

.vc-carousel-arrow:hover {
    background: rgba(30, 144, 255, .7);
    box-shadow: 0 4px 16px rgba(30, 144, 255, .4);
    transform: translateY(-50%) scale(1.1);
    color: #ffffff;
}

.vc-carousel-arrow--prev {
    left: .75rem;
}

.vc-carousel-arrow--next {
    right: .75rem;
}

.vc-carousel-counter {
    text-align: center;
    font-size: .82rem;
    color: #808080;
    font-weight: 600;
    margin-top: .4rem;
    letter-spacing: .3px;
}

@media (max-width: 600px) {
    .vc-carousel-arrow {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    .vc-carousel-arrow--prev {
        left: .35rem;
    }
    .vc-carousel-arrow--next {
        right: .35rem;
    }
}

/* ---------- Text Lesson Side Arrows ---------- */
.tl-carousel-arrow {
    top: 50%;
    transform: translateY(-50%);
}
.tl-carousel-arrow.vc-carousel-arrow--prev {
    left: .25rem;
}
.tl-carousel-arrow.vc-carousel-arrow--next {
    right: .25rem;
}
@media (max-width: 600px) {
    .tl-carousel-arrow.vc-carousel-arrow--prev {
        left: .15rem;
    }
    .tl-carousel-arrow.vc-carousel-arrow--next {
        right: .15rem;
    }
}

/* ---------- Mobile Content Detail Fix ---------- */
@media (max-width: 600px) {
    .site-main {
        padding: 0 .75rem;
    }
    .card {
        padding: 1rem;
    }
    .detail-row {
        overflow-x: hidden;
    }
    .admin-header h1 {
        font-size: 1.25rem;
        word-break: break-word;
    }
}

/* ---------- About Page ---------- */
.about-pillars .feature-card {
    text-align: center;
    padding-top: 0;
    overflow: hidden;
}

.about-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    margin-bottom: 1.25rem;
}

.about-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

/* Our Story */
.about-story p {
    color: #c0c0c0;
    font-size: .95rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}
.about-story strong {
    color: #1e90ff;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 1rem 0 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #1e90ff 0%, rgba(30,144,255,.15) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}
.timeline-item--reverse {
    flex-direction: row-reverse;
}

.timeline-img-wrap {
    flex: 0 0 45%;
}
.timeline-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
}

.timeline-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timeline-phase {
    display: inline-block;
    background: rgba(30, 144, 255, .15);
    color: #1e90ff;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: .2rem .7rem;
    border-radius: 20px;
    margin-bottom: .5rem;
    width: fit-content;
}

.timeline-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: .4rem;
}

.timeline-content p {
    font-size: .9rem;
    color: #c0c0c0;
    line-height: 1.6;
}

/* Why We Exist */
.about-why {
    background: linear-gradient(135deg, #0a3d62 0%, #3c6382 100%);
    border-radius: 12px;
    padding: 4rem 1.5rem;
}

.about-why-inner {
    max-width: 750px;
    margin: 0 auto;
}

.about-why-text {
    font-size: 1rem;
    color: #c0c0c0;
    line-height: 1.75;
    margin-bottom: 1rem;
}

/* ---------- Contact Page ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.contact-card {
    padding: 2.5rem 2rem;
}

.contact-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem 1rem;
    border-radius: 8px;
    background: rgba(30, 144, 255, .06);
    border: 1px solid rgba(192, 192, 192, .1);
    color: #c0c0c0;
    font-size: .95rem;
    font-weight: 500;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.contact-link:hover {
    background: rgba(30, 144, 255, .15);
    color: #ffffff;
    border-color: rgba(30, 144, 255, .3);
}

.contact-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}

/* ---------- Free Content Page ---------- */
.content-tabs {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(192, 192, 192, .1);
    padding-bottom: .75rem;
}

.content-tab {
    background: transparent;
    border: 1px solid rgba(192, 192, 192, .15);
    border-radius: 8px;
    padding: .5rem 1.25rem;
    font-size: .875rem;
    font-weight: 600;
    color: #a0a0a0;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.content-tab:hover {
    background: rgba(30, 144, 255, .08);
    color: #ffffff;
    border-color: rgba(30, 144, 255, .3);
}

.content-tab.active {
    background: rgba(30, 144, 255, .15);
    color: #1e90ff;
    border-color: #1e90ff;
    box-shadow: 0 0 10px rgba(30, 144, 255, .2);
}

.free-content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.free-content-card {
    background: #1a1e2a;
    border: 1px solid rgba(192, 192, 192, .1);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    text-decoration: none;
    color: inherit;
}

.free-content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
    border-color: rgba(30, 144, 255, .3);
    color: inherit;
}

.free-content-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.free-content-img-placeholder {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a3d62 0%, #3c6382 100%);
    font-size: 3rem;
}

.free-content-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.free-content-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: .5rem 0 .35rem;
}

.free-content-summary {
    font-size: .875rem;
    color: #a0a0a0;
    line-height: 1.5;
    flex: 1;
}

.free-content-date {
    font-size: .75rem;
    color: #7f8c8d;
    margin-top: .75rem;
}

@media (max-width: 768px) {
    .free-content-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Favourite Button ---------- */
.fav-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: .25rem .35rem;
    line-height: 1;
    border-radius: 50%;
    transition: transform .15s ease, opacity .15s ease;
    opacity: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    color: #a0a0a0;
}
.fav-btn svg {
    display: block;
    width: 20px;
    height: 20px;
}
.fav-btn:hover {
    opacity: 1;
    transform: scale(1.2);
    color: #e05c5c;
}
.fav-btn--active {
    opacity: 1;
    color: #e05c5c;
}

/* Detail page favourite button */
.fav-btn-detail {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: rgba(26, 30, 42, .75);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    padding: .5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
    transition: transform .15s ease, background .15s ease;
}

.fav-btn-detail:hover {
    transform: scale(1.15);
    background: rgba(26, 30, 42, .9);
}

.fav-btn-detail svg {
    width: 24px;
    height: 24px;
}


/* ---------- Email Config ---------- */
.email-config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .email-config-grid { grid-template-columns: 1fr; }
}

.email-config-card {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.email-config-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: .25rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid rgba(192, 192, 192, .1);
}

.email-setting-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .5rem 0;
    border-bottom: 1px solid rgba(192, 192, 192, .06);
    font-size: .9rem;
}

.email-setting-label {
    width: 110px;
    flex-shrink: 0;
    color: #a0a0a0;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.email-setting-value {
    color: #e0e0e0;
    font-family: 'Consolas', monospace;
    word-break: break-all;
}

.email-result-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: .95rem;
}

.email-result-banner--ok {
    background: rgba(0, 200, 81, .1);
    border: 1px solid rgba(0, 200, 81, .25);
    color: #c8f5dc;
}

.email-result-banner--fail {
    background: rgba(231, 76, 60, .1);
    border: 1px solid rgba(231, 76, 60, .25);
    color: #f5c8c4;
}

.email-result-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    line-height: 1.4;
}

.email-result-error {
    margin-top: .4rem;
    font-size: .85rem;
    font-family: 'Consolas', monospace;
    color: #f08070;
    background: rgba(0,0,0,.2);
    padding: .4rem .75rem;
    border-radius: 4px;
    white-space: pre-wrap;
    word-break: break-all;
}

.alert-success-banner {
    background: rgba(0, 200, 81, .1);
    border: 1px solid rgba(0, 200, 81, .25);
    color: #c8f5dc;
    padding: .75rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: .95rem;
}

/* ---------- Email Template Editor ---------- */
.email-template-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: flex-start;
}

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

.email-template-editor {
    width: 100%;
    min-height: 460px;
    background: #0d1117;
    color: #c9d1d9;
    border: 1px solid rgba(192, 192, 192, .15);
    border-radius: 6px;
    padding: .85rem 1rem;
    font-family: 'Consolas', 'Fira Code', monospace;
    font-size: .82rem;
    line-height: 1.6;
    resize: vertical;
    tab-size: 2;
}

.email-template-editor:focus {
    outline: none;
    border-color: #1e90ff;
    box-shadow: 0 0 0 2px rgba(30, 144, 255, .2);
}

.email-preview-toolbar {
    display: flex;
    gap: .5rem;
}

.preview-size-btn {
    background: transparent;
    border: 1px solid rgba(192, 192, 192, .2);
    color: #a0a0a0;
    padding: .3rem .8rem;
    border-radius: 5px;
    font-size: .8rem;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.preview-size-btn.active,
.preview-size-btn:hover {
    background: rgba(30, 144, 255, .15);
    border-color: #1e90ff;
    color: #ffffff;
}

.email-preview-wrap {
    transition: max-width .2s ease;
    max-width: 100%;
}

.email-preview-frame {
    width: 100%;
    min-height: 460px;
    border: 1px solid rgba(192, 192, 192, .15);
    border-radius: 6px;
    background: #ffffff;
}

/* ---------- Auth Pages (Login / Register) ---------- */
.auth-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    padding: 2.5rem 2rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.75rem;
    text-align: center;
}

.auth-remember {
    margin: .75rem 0 .25rem;
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: .875rem;
    color: #a0a0a0;
}

.auth-footer p {
    margin-bottom: .4rem;
}

/* ---------- Coupon Alerts ---------- */
.coupon-alert {
    padding: .85rem 1.25rem;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.coupon-alert--success {
    background: rgba(0, 200, 81, .12);
    border: 1px solid rgba(0, 200, 81, .3);
    color: #00c851;
}

.coupon-alert--error {
    background: rgba(231, 76, 60, .12);
    border: 1px solid rgba(231, 76, 60, .3);
    color: #e74c3c;
}

/* ---------- User Dashboard ---------- */
.dash-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(192, 192, 192, .1);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.dash-header h1 {
    font-size: 1.75rem;
    color: #ffffff;
    margin-bottom: .25rem;
}

.dash-header-actions {
    display: flex;
    gap: .5rem;
    flex-shrink: 0;
}

/* Stat Cards Row */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.dash-stat-card {
    background: #1a1e2a;
    border: 1px solid rgba(192, 192, 192, .1);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.dash-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    cursor: pointer;
}

.dash-stat-card--active {
    border-color: rgba(0, 200, 81, .3);
    background: linear-gradient(135deg, #1a1e2a 0%, rgba(0, 200, 81, .06) 100%);
}

.dash-stat-card--compact {
    padding: 1rem;
}

.dash-stat-icon {
    font-size: 1.75rem;
    display: block;
    margin-bottom: .5rem;
}

.dash-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: .2rem;
}

.dash-stat-card--compact .dash-stat-value {
    font-size: 1.35rem;
}

.dash-stat-label {
    font-size: .8rem;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
}

/* Dashboard Sections */
.dash-section {
    margin-bottom: 2.5rem;
}

.dash-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(192, 192, 192, .08);
}

/* Active Subscription Cards */
.dash-sub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.dash-sub-card {
    background: #1a1e2a;
    border: 1px solid rgba(192, 192, 192, .1);
    border-radius: 10px;
    padding: 1.25rem;
}

.dash-sub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .75rem;
}

.dash-sub-plan {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e90ff;
}

.dash-sub-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .85rem;
    color: #c0c0c0;
    margin-bottom: .4rem;
}

.dash-sub-detail strong {
    color: #e0e0e0;
}

/* Progress bar */
.dash-progress {
    height: 6px;
    background: rgba(192, 192, 192, .1);
    border-radius: 3px;
    margin: .6rem 0;
    overflow: hidden;
}

.dash-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00c851, #1e90ff);
    border-radius: 3px;
    transition: width .4s ease;
}

/* Content Grid */
.dash-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.dash-content-card {
    background: #1a1e2a;
    border: 1px solid rgba(192, 192, 192, .1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.dash-content-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

.dash-content-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.dash-content-img-placeholder {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 144, 255, .05);
    font-size: 2.5rem;
}

.dash-content-body {
    padding: 1rem 1.25rem 1.25rem;
}

.dash-content-body h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin: .5rem 0 .35rem;
}

.dash-content-body p {
    font-size: .85rem;
    color: #a0a0a0;
    line-height: 1.5;
    margin-bottom: .5rem;
}

.dash-content-meta {
    display: flex;
    justify-content: space-between;
    font-size: .75rem;
    color: #7f8c8d;
}

/* Timeline */
.dash-timeline {
    position: relative;
    padding-left: 2rem;
    max-height: 400px;
    overflow-y: auto;
}

.dash-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #1e90ff 0%, rgba(30, 144, 255, .1) 100%);
}

.dash-timeline-item {
    position: relative;
    padding-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.dash-timeline-badge {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: -2rem;
    margin-top: .2rem;
    border: 2px solid #0b0e14;
}

.timeline-badge--success { background: #00c851; }
.timeline-badge--warning { background: #f39c12; }
.timeline-badge--danger  { background: #e74c3c; }
.timeline-badge--info    { background: #1e90ff; }

.dash-timeline-content {
    display: flex;
    flex-direction: column;
    font-size: .88rem;
    color: #c0c0c0;
    line-height: 1.4;
}

.dash-timeline-date {
    font-size: .75rem;
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: .1rem;
}

/* Quick Actions */
.dash-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.dash-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    background: #1a1e2a;
    border: 1px solid rgba(192, 192, 192, .1);
    border-radius: 10px;
    padding: 1.5rem 1rem;
    text-align: center;
    color: #c0c0c0;
    font-size: .9rem;
    font-weight: 600;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.dash-action-card:hover {
    background: rgba(30, 144, 255, .06);
    border-color: rgba(30, 144, 255, .3);
    color: #ffffff;
    transform: translateY(-2px);
}

.dash-action-icon {
    font-size: 1.75rem;
}

/* Dashboard Responsive */
@media (max-width: 768px) {
    .dash-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .dash-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    .dash-header {
        flex-direction: column;
    }
    .dash-content-grid {
        grid-template-columns: 1fr;
    }
}

/* ?? Content Protection ?? */
.protected-content {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.protected-content img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
    -webkit-touch-callout: none;
}

.protected-content video,
.protected-content audio {
    pointer-events: auto;
    -webkit-touch-callout: none;
}

/* Transparent overlay to block mobile long-press on media */
.protected-media-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
}
.protected-media-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 44px); /* leave controls visible */
    z-index: 1;
    -webkit-touch-callout: none;
}
.protected-media-wrap video,
.protected-media-wrap audio {
    position: relative;
    z-index: 0;
}

.content-detail-img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

@media print {
    .protected-content {
        display: none !important;
    }
    body::after {
        content: 'Printing is disabled for protected content.';
        display: block;
        text-align: center;
        font-size: 1.5rem;
        padding: 3rem;
        color: #888;
    }
}

/* ---------- Progress Tracker ---------- */
.progress-overview {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    background: rgba(30, 144, 255, .06);
    border: 1px solid rgba(30, 144, 255, .15);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.progress-circle-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.progress-circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-circle-bg {
    fill: none;
    stroke: rgba(192, 192, 192, .12);
    stroke-width: 8;
}

.progress-circle-fill {
    fill: none;
    stroke: url(#progress-grad);
    stroke: #1e90ff;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset .6s ease;
}

.progress-circle-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.progress-circle-pct {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e0e0e0;
}

.progress-circle-label {
    font-size: .75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.progress-overview-stats {
    display: flex;
    gap: 2rem;
}

.progress-overview-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.progress-overview-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #e0e0e0;
}

.progress-overview-label {
    font-size: .8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Per-plan progress */
.progress-plans {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.progress-plan-row {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 8px;
    padding: .85rem 1rem;
}

.progress-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .4rem;
}

.progress-plan-name {
    font-weight: 600;
    color: #e0e0e0;
}

.progress-plan-fraction {
    font-size: .85rem;
    color: #aaa;
}

.progress-plan-pct {
    color: #1e90ff;
    font-weight: 600;
}

/* Completion history */
.progress-history-details {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 8px;
    overflow: hidden;
}

.progress-history-toggle {
    cursor: pointer;
    padding: .85rem 1rem;
    font-weight: 600;
    color: #e0e0e0;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.progress-history-toggle::-webkit-details-marker { display: none; }

.progress-history-toggle::before {
    content: '\25B6';
    font-size: .7rem;
    transition: transform .2s ease;
}

details[open] > .progress-history-toggle::before {
    transform: rotate(90deg);
}

.progress-history-list {
    padding: 0 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.progress-history-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem .75rem;
    background: rgba(0, 200, 81, .05);
    border: 1px solid rgba(0, 200, 81, .12);
    border-radius: 6px;
    font-size: .88rem;
}

.progress-history-title {
    flex: 1;
    color: #ddd;
}

.progress-history-date {
    color: #999;
    font-size: .8rem;
    white-space: nowrap;
}

/* Complete button on content cards */
.complete-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .6rem;
    padding: .35rem .75rem;
    font-size: .8rem;
    font-weight: 600;
    color: #aaa;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 6px;
    cursor: pointer;
    transition: all .2s ease;
}

.complete-btn:hover {
    color: #00c851;
    border-color: rgba(0, 200, 81, .3);
    background: rgba(0, 200, 81, .08);
}

.complete-btn--done {
    color: #00c851;
    border-color: rgba(0, 200, 81, .25);
    background: rgba(0, 200, 81, .1);
}

@media (max-width: 600px) {
    .progress-overview {
        flex-direction: column;
        gap: 1rem;
    }
    .progress-overview-stats {
        gap: 1.5rem;
    }
}

/* ---------- Payment Pages ---------- */
.payment-page-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2.5rem 1rem;
}

.payment-card {
    width: 100%;
    max-width: 480px;
    background: #1a1e2a;
    border: 1px solid rgba(192, 192, 192, .12);
    border-radius: 14px;
    padding: 2.25rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
}

.payment-plan-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.payment-plan-icon {
    font-size: 2rem;
    line-height: 1;
}

.payment-plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.payment-plan-sub {
    font-size: .85rem;
    color: #a0a0a0;
    margin-top: .1rem;
}

.payment-features {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.payment-features li {
    font-size: .9rem;
    color: #c0c0c0;
}

.payment-check {
    color: #00c851;
    margin-right: .4rem;
    font-weight: 700;
}

.payment-divider {
    height: 1px;
    background: rgba(192, 192, 192, .1);
    margin: 1.1rem 0;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .55rem;
    font-size: .9rem;
}

.payment-label {
    color: #a0a0a0;
}

.payment-value {
    color: #e0e0e0;
    font-weight: 500;
}

.payment-amount {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e90ff;
}

.payment-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: .85rem 1.5rem;
    margin-top: 1.25rem;
    background: linear-gradient(135deg, #1e90ff 0%, #0a6fd8 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .4px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(30, 144, 255, .35);
    transition: background .2s ease, box-shadow .2s ease, transform .1s ease;
}

.payment-submit-btn:hover {
    background: linear-gradient(135deg, #3aa3ff 0%, #1e90ff 100%);
    box-shadow: 0 6px 20px rgba(30, 144, 255, .5);
    transform: translateY(-1px);
}

.payment-submit-btn:active {
    transform: translateY(0);
}

.payment-secure-note {
    margin-top: .85rem;
    font-size: .8rem;
    color: #7f8c8d;
    text-align: center;
}

.payment-back {
    margin-top: 1rem;
    text-align: center;
    font-size: .875rem;
}

/* ---------- Payment Result Pages (Success / Cancel) ---------- */
.payment-result-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 1rem;
}

.payment-result-card {
    width: 100%;
    max-width: 480px;
    background: #1a1e2a;
    border: 1px solid rgba(192, 192, 192, .12);
    border-radius: 14px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
    text-align: center;
}

.payment-result-card--success {
    border-color: rgba(0, 200, 81, .25);
}

.payment-result-card--cancel {
    border-color: rgba(231, 76, 60, .25);
}

.payment-result-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 1rem;
    display: block;
}

.payment-result-icon--success {
    color: #00c851;
}

.payment-result-icon--cancel {
    color: #e74c3c;
}

.payment-result-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: .75rem;
}

.payment-result-msg {
    font-size: .95rem;
    color: #a0a0a0;
    line-height: 1.65;
    margin-bottom: 1.75rem;
}

.payment-result-actions {
    display: flex;
    gap: .75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.payment-result-actions .btn {
    padding: .6rem 1.5rem;
}

/* ---------- Purchase / Plan Selection Page ---------- */
.purchase-page-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 0 2rem;
}

.purchase-header {
    text-align: center;
    margin-bottom: 2rem;
}

.purchase-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: .5rem;
}

.purchase-subtitle {
    font-size: 1rem;
    color: #a0a0a0;
}

.purchase-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 860px) {
    .purchase-plan-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
}

.purchase-plan-card {
    position: relative;
    background: #1a1e2a;
    border: 1px solid rgba(192, 192, 192, .12);
    border-radius: 14px;
    padding: 2.25rem 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.purchase-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .3);
}

.purchase-plan-card--featured {
    border-color: rgba(30, 144, 255, .4);
    box-shadow: 0 0 24px rgba(30, 144, 255, .12);
}

.purchase-plan-card--active {
    border-color: rgba(0, 200, 81, .4);
    box-shadow: 0 0 20px rgba(0, 200, 81, .08);
}

.purchase-plan-badge {
    position: absolute;
    top: -13px;
    background: #1e90ff;
    color: #ffffff;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: .25rem 1rem;
    border-radius: 20px;
}

.purchase-plan-badge--active {
    background: #00c851;
}

.purchase-plan-icon {
    font-size: 2.25rem;
    margin-bottom: .65rem;
    line-height: 1;
}

.purchase-plan-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: .35rem;
}

.purchase-plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: #1e90ff;
    margin-bottom: .6rem;
}

.purchase-plan-price span {
    font-size: .9rem;
    font-weight: 400;
    color: #a0a0a0;
}

.purchase-plan-desc {
    font-size: .875rem;
    color: #a0a0a0;
    line-height: 1.55;
    margin-bottom: 1rem;
    flex: 1;
}

.purchase-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.purchase-plan-features li {
    font-size: .85rem;
    color: #c0c0c0;
}

/* Live content count summary */
.purchase-plan-count-summary {
    display: flex;
    gap: .75rem;
    margin-bottom: .5rem;
    flex-wrap: wrap;
}

.purchase-plan-total-count {
    font-size: .85rem;
    font-weight: 700;
    color: #4a9eff;
}

/* Per-type breakdown table */
.purchase-plan-type-breakdown {
    width: 100%;
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: .5rem 0;
    margin-bottom: 1.1rem;
}

.pptb-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .22rem 0;
    font-size: .82rem;
    color: #c0c0c0;
}

.pptb-row strong {
    min-width: 24px;
    text-align: right;
    color: #e0e0e0;
}

.pptb-row--zero {
    opacity: .35;
}



.purchase-plan-form {
    width: 100%;
}

.purchase-select-btn {
    width: 100%;
    padding: .65rem 1.5rem;
    font-size: .95rem;
}

.purchase-active-label {
    display: block;
    width: 100%;
    text-align: center;
    padding: .6rem;
    border-radius: 8px;
    background: rgba(0, 200, 81, .1);
    border: 1px solid rgba(0, 200, 81, .25);
    color: #00c851;
    font-weight: 700;
    font-size: .9rem;
}

/* Guest registration card */
.purchase-guest-wrap {
    display: flex;
    justify-content: center;
    margin-top: .5rem;
    margin-bottom: 1.5rem;
}

.purchase-guest-card {
    width: 100%;
    max-width: 520px;
    padding: 2rem;
    border: 1px solid rgba(30, 144, 255, .25);
    box-shadow: 0 4px 24px rgba(30, 144, 255, .08);
}

.purchase-guest-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(192, 192, 192, .08);
}

.purchase-guest-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.purchase-guest-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: .25rem;
}

.purchase-guest-sub {
    font-size: .875rem;
    color: #a0a0a0;
}

.purchase-guest-sub strong {
    color: #1e90ff;
}

.purchase-guest-form .form-group {
    margin-bottom: 1rem;
}

.purchase-guest-submit {
    width: 100%;
    padding: .75rem;
    font-size: .95rem;
    margin-top: .5rem;
}

.purchase-guest-login-hint {
    text-align: center;
    margin-top: 1rem;
    font-size: .85rem;
    color: #a0a0a0;
}

/* Not-logged-in info bar */
.purchase-guest-info {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: rgba(30, 144, 255, .06);
    border: 1px solid rgba(30, 144, 255, .18);
    border-radius: 8px;
    padding: .85rem 1.25rem;
    font-size: .9rem;
    color: #c0c0c0;
    margin-bottom: 1.5rem;
}

.purchase-guest-info-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.purchase-manage-link {
    text-align: center;
    font-size: .9rem;
    margin-top: 1rem;
}

/* ---------- Video thumbnail play overlay ---------- */
.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(0, 0, 0, .55);
    border: 2px solid rgba(255, 255, 255, .75);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #ffffff;
    pointer-events: none;
    transition: background .2s ease;
}

.free-content-img-wrap:hover .video-play-overlay,
.free-content-video-thumb-wrap:hover .video-play-overlay,
.dash-content-card:hover .video-play-overlay {
    background: rgba(30, 144, 255, .65);
}


/* ---------- Responsive video player ---------- */
.video-responsive-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-responsive {
    display: block;
    width: 100%;
    max-width: 100%;
    /* Cap height so portrait videos don't overflow the screen */
    max-height: 80vh;
    height: auto;
    border-radius: 8px;
    background: #000;
}

/* 16:9 aspect-ratio box for iframes (YouTube / Vimeo) */
.video-responsive-wrap:has(.video-responsive-iframe) {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    display: block;
}

.video-responsive-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* ---------- Course Content Cards ---------- */
.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.content-card {
    background: #1a1e2a;
    border: 1px solid rgba(192, 192, 192, .1);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
    border-color: rgba(30, 144, 255, .3);
}

.content-card-img-wrap {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.content-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.content-card-type {
    font-size: .75rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.content-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: .35rem 0;
}

.content-card-summary {
    font-size: .85rem;
    color: #a0a0a0;
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-card-meta {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    font-size: .8rem;
    color: #7f8c8d;
    margin-top: .75rem;
}

.content-card-author {
    font-size: .75rem;
    color: #7f8c8d;
    margin-top: .5rem;
}

@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ---------- Shopping Cart Nav Badge ---------- */
.nav-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: .25rem;
    color: #c0c0c0;
    transition: color .2s ease;
}
.nav-cart-link:hover {
    color: #1e90ff;
}
.nav-cart-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #e05c5c;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    min-width: 24px;
    height: 24px;
    border-radius: 12px;
    text-align: center;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- New Content Nav Badge ---------- */
.nav-new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e05c5c;
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    text-align: center;
    padding: 0 5px;
    margin-left: 4px;
    vertical-align: middle;
    animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ---------- Buy Now Button ---------- */
.buy-now-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: .75rem;
    padding-top: .65rem;
    border-top: 1px solid rgba(255,255,255,.06);
}
.buy-now-price {
    font-weight: 700;
    font-size: 1rem;
    color: #1e90ff;
}
.btn-buy-now {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .35rem .9rem;
    font-size: .8rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #1e90ff 0%, #3c6382 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn-buy-now:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30,144,255,.35);
}
.btn-buy-now-lg {
    padding: .55rem 1.4rem;
    font-size: .95rem;
}
.buy-now-detail-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(30,144,255,.06);
    border-radius: 8px;
    border: 1px solid rgba(30,144,255,.15);
}

/* ---------- Cart Confirmation Modal ---------- */
.cart-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cart-modal {
    position: relative;
    background: #1a1e2a;
    border: 1px solid rgba(30, 144, 255, .25);
    border-radius: 16px;
    padding: 2.5rem 2rem 2rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
    animation: cartModalIn .25s ease;
}

@keyframes cartModalIn {
    from { opacity: 0; transform: scale(.92) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.cart-modal-close {
    position: absolute;
    top: .75rem;
    right: .9rem;
    background: none;
    border: none;
    color: #a0a0a0;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    transition: color .2s;
}

.cart-modal-close:hover {
    color: #ffffff;
}

.cart-modal-icon {
    font-size: 2.5rem;
    margin-bottom: .75rem;
}

.cart-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.cart-modal-item,
.cart-modal-price {
    font-size: 1rem;
    color: #c0c0c0;
    margin-bottom: .4rem;
}

.cart-modal-item strong {
    color: #ffffff;
}

.cart-modal-price strong {
    color: #1e90ff;
    font-size: 1.25rem;
}

.cart-modal-note {
    font-size: .85rem;
    color: #808080;
    margin-top: .75rem;
    margin-bottom: 1.5rem;
}

.cart-modal-steps {
    text-align: left;
    margin-top: .75rem;
    margin-bottom: 1.25rem;
}

.cart-modal-steps-heading {
    font-size: .9rem;
    font-weight: 600;
    color: #c0c0c0;
    margin-bottom: .4rem;
}

.cart-modal-steps ol {
    padding-left: 1.25rem;
    margin: 0;
}

.cart-modal-steps li {
    font-size: .85rem;
    color: #a0a0a0;
    margin-bottom: .35rem;
    line-height: 1.45;
}

.cart-modal-steps li strong {
    color: #c0c0c0;
}

.cart-modal-actions {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.cart-modal-confirm {
    width: 100%;
    padding: .7rem 1.5rem;
    font-size: 1rem;
}

.cart-modal-cancel {
    background: none;
    border: 1px solid rgba(192, 192, 192, .2);
    color: #a0a0a0;
    padding: .6rem 1.5rem;
    font-size: .9rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.cart-modal-cancel:hover {
    background: rgba(255, 255, 255, .05);
    color: #ffffff;
}

/* ?? Content showing label ?????????????????????????????????????? */
.content-showing-label {
    font-size: .85rem;
    color: #808080;
    margin-bottom: .75rem;
}

/* ?? Content tab links ????????????????????????????????????????? */
a.content-tab {
    text-decoration: none;
}

/* ?? Pagination ???????????????????????????????????????????????? */
.pagination-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .35rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 .75rem;
    border: 1px solid rgba(192, 192, 192, .15);
    border-radius: 6px;
    background: transparent;
    color: #a0a0a0;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.pagination-btn:hover:not(.active):not(.disabled) {
    background: rgba(30, 144, 255, .08);
    color: #ffffff;
    border-color: rgba(30, 144, 255, .3);
}

.pagination-btn.active {
    background: rgba(30, 144, 255, .15);
    color: #1e90ff;
    border-color: #1e90ff;
    cursor: default;
}

.pagination-btn.disabled {
    opacity: .35;
    cursor: default;
    pointer-events: none;
}

.pagination-ellipsis {
    color: #666;
    font-size: .875rem;
    padding: 0 .25rem;
}

/* ---------- Content Series ---------- */
.series-badge {
    display: inline-block;
    background: rgba(155, 89, 182, .15);
    color: #b07cd8;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: .2rem .65rem;
    border-radius: 20px;
    border: 1px solid rgba(155, 89, 182, .3);
}

.series-info-bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
}

.series-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.series-badge-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .75rem;
    border-radius: 8px;
    background: rgba(155, 89, 182, .08);
    border: 1px solid rgba(155, 89, 182, .15);
    color: #c0c0c0;
    font-size: .85rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.series-badge-link:hover {
    background: rgba(155, 89, 182, .18);
    border-color: rgba(155, 89, 182, .35);
    color: #ffffff;
}

/* Series list — filter bar */
.series-filter-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
    margin-bottom: .5rem;
    flex-wrap: wrap;
    border-bottom: 2px solid rgba(192, 192, 192, .1);
    padding-bottom: .75rem;
}

.series-filter-group {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.series-filter-label {
    font-size: .82rem;
    color: #a0a0a0;
    font-weight: 600;
    white-space: nowrap;
}

.series-filter-select {
    background: #1a1e2a;
    border: 1px solid rgba(192, 192, 192, .15);
    color: #e0e0e0;
    padding: .45rem .7rem;
    border-radius: 8px;
    font-size: .85rem;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.series-filter-select:focus {
    outline: none;
    border-color: #1e90ff;
    box-shadow: 0 0 0 2px rgba(30, 144, 255, .2);
}

.series-filter-date {
    background: #1a1e2a;
    border: 1px solid rgba(192, 192, 192, .15);
    color: #e0e0e0;
    padding: .4rem .6rem;
    border-radius: 8px;
    font-size: .85rem;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
    color-scheme: dark;
}

.series-filter-date:focus {
    outline: none;
    border-color: #1e90ff;
    box-shadow: 0 0 0 2px rgba(30, 144, 255, .2);
}

.series-filter-count {
    font-size: .82rem;
    color: #808080;
    margin-left: auto;
}

/* Series list — status badges */
.series-status-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    padding: .2rem .6rem;
    border-radius: 20px;
    letter-spacing: .3px;
}

.series-status-badge--completed {
    background: rgba(0, 200, 81, .12);
    color: #00c851;
    border: 1px solid rgba(0, 200, 81, .25);
}

.series-status-badge--progress {
    background: rgba(255, 193, 7, .1);
    color: #f0c040;
    border: 1px solid rgba(255, 193, 7, .2);
}

/* Series list — progress bar */
.series-progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, .08);
    border-radius: 4px;
    margin-top: .75rem;
    overflow: hidden;
}

.series-progress-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #1e90ff, #00c851);
    transition: width .3s ease;
}

.series-progress-text {
    font-size: .72rem;
    color: #808080;
    margin-top: .25rem;
}

@media (max-width: 600px) {
    .series-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .series-filter-count {
        margin-left: 0;
        text-align: right;
    }
}

/* Series detail — item list */
.series-items-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.series-item-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .85rem 1rem;
    background: #1a1e2a;
    border: 1px solid rgba(192, 192, 192, .1);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.series-item-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
    border-color: rgba(30, 144, 255, .3);
    color: inherit;
}

.series-item-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 144, 255, .12);
    color: #1e90ff;
    border-radius: 50%;
    font-size: .85rem;
    font-weight: 700;
}

.series-item-img-wrap {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: #0b0e14;
}

.series-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.series-item-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(30, 144, 255, .06);
}

.series-item-body {
    flex: 1;
    min-width: 0;
}

.series-item-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin: .25rem 0 .15rem;
}

.series-item-summary {
    font-size: .82rem;
    color: #a0a0a0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

@media (max-width: 600px) {
    .series-item-card {
        flex-wrap: wrap;
    }
    .series-item-img-wrap {
        width: 60px;
        height: 45px;
    }
}

/* ---------- Social Media Hub ---------- */
.social-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.social-account-card {
    background: #151a24;
    border: 1px solid rgba(192, 192, 192, .12);
    border-radius: 10px;
    padding: 1rem;
    transition: border-color .2s;
}

.social-account-card:hover {
    border-color: rgba(30, 144, 255, .3);
}

.social-account-card--inactive {
    opacity: .55;
}

.social-account-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
}

.social-platform-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.social-account-details {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    margin-bottom: .75rem;
}

.social-account-actions {
    display: flex;
    gap: .5rem;
}

/* Compose Post - Account selection */
.social-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: .75rem;
    margin-top: .5rem;
}

.social-select-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: #151a24;
    border: 1px solid rgba(192, 192, 192, .12);
    border-radius: 8px;
    padding: .75rem 1rem;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.social-select-item:hover {
    border-color: rgba(30, 144, 255, .4);
    background: #1a2030;
}

.social-select-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.social-select-item--manual {
    border-color: rgba(230, 126, 34, .25);
}

.social-select-item--manual:hover {
    border-color: rgba(230, 126, 34, .5);
}

@media (max-width: 600px) {
    .social-accounts-grid {
        grid-template-columns: 1fr;
    }
    .social-select-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- AI Content Studio ---------- */
.ai-studio-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
    align-items: start;
}

.ai-studio-panel {
    display: flex;
    flex-direction: column;
}

.ai-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .75rem;
}

.ai-panel-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.ai-system-prompt-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .5rem;
    flex-wrap: wrap;
}

.ai-chat-messages {
    flex: 1;
    min-height: 350px;
    max-height: 500px;
    overflow-y: auto;
    background: #0d1117;
    border: 1px solid rgba(192,192,192,.1);
    border-radius: 8px;
    padding: .75rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.ai-chat-msg {
    display: flex;
}

.ai-chat-msg--user {
    justify-content: flex-end;
}

.ai-chat-msg--assistant {
    justify-content: flex-start;
}

.ai-chat-bubble {
    max-width: 85%;
    padding: .6rem .9rem;
    border-radius: 12px;
    font-size: .92rem;
    line-height: 1.6;
    word-wrap: break-word;
}

.ai-chat-msg--user .ai-chat-bubble {
    background: #1a3a5c;
    color: #e0e0e0;
    border-bottom-right-radius: 4px;
}

.ai-chat-msg--assistant .ai-chat-bubble {
    background: #1a1e2a;
    color: #c0c0c0;
    border-bottom-left-radius: 4px;
}

.ai-chat-msg--assistant .ai-chat-bubble h1,
.ai-chat-msg--assistant .ai-chat-bubble h2,
.ai-chat-msg--assistant .ai-chat-bubble h3 {
    color: #e0e0e0;
    margin: .75rem 0 .3rem;
    font-size: 1.05rem;
}

.ai-chat-msg--assistant .ai-chat-bubble h2 { font-size: 1.1rem; }
.ai-chat-msg--assistant .ai-chat-bubble h1 { font-size: 1.2rem; }

.ai-chat-msg--assistant .ai-chat-bubble p {
    margin: .3rem 0;
}

.ai-chat-msg--assistant .ai-chat-bubble ul,
.ai-chat-msg--assistant .ai-chat-bubble ol {
    margin: .3rem 0;
    padding-left: 1.2rem;
}

.ai-chat-msg--assistant .ai-chat-bubble blockquote {
    border-left: 3px solid #1e90ff;
    padding-left: .75rem;
    margin: .5rem 0;
    color: #a0b0c0;
    font-style: italic;
}

.ai-chat-input-row {
    display: flex;
    gap: .5rem;
    margin-top: .75rem;
    align-items: flex-end;
}

.ai-chat-input-row textarea {
    flex: 1;
    resize: vertical;
    min-height: 42px;
}

.ai-chat-input-row .btn {
    min-width: 70px;
    align-self: stretch;
}

.ai-chat-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

/* Typing indicator */
.ai-typing {
    display: flex;
    gap: 4px;
    padding: .2rem 0;
}

.ai-typing span {
    width: 8px;
    height: 8px;
    background: #555;
    border-radius: 50%;
    animation: aiTypingBounce .6s ease-in-out infinite;
}

.ai-typing span:nth-child(2) { animation-delay: .1s; }
.ai-typing span:nth-child(3) { animation-delay: .2s; }

@keyframes aiTypingBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Image result area */
.ai-image-result {
    margin-top: 1rem;
}

.ai-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(30,144,255,.2);
    border-top-color: #1e90ff;
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin: 0 auto;
}

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

/* Recent AI images grid */
.ai-recent-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: .5rem;
    margin-top: .5rem;
}

.ai-recent-img {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(192,192,192,.12);
    cursor: pointer;
    aspect-ratio: 1;
}

.ai-recent-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity .2s;
}

.ai-recent-img:hover img {
    opacity: .7;
}

.ai-recent-img-copy {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0,0,0,.7);
    border: none;
    color: #fff;
    font-size: .7rem;
    padding: 2px 5px;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s;
}

.ai-recent-img:hover .ai-recent-img-copy {
    opacity: 1;
}

/* Copilot Web Panel */
.copilot-web-panel {
    margin-top: 1rem;
}

.copilot-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #161b22;
    border: 1px solid rgba(192,192,192,.12);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: .75rem 1rem;
}

.copilot-panel-header h2 {
    margin: 0;
    font-size: 1.15rem;
}

.copilot-iframe-container {
    border: 1px solid rgba(192,192,192,.12);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    background: #0d1117;
}

.copilot-iframe {
    width: 100%;
    height: 75vh;
    border: none;
    display: block;
}

.copilot-fallback {
    padding: 2rem;
    text-align: center;
}

.copilot-fallback p {
    margin: .5rem 0;
}

@media (max-width: 900px) {
    .ai-studio-layout {
        grid-template-columns: 1fr;
    }
    .copilot-iframe {
        height: 60vh;
    }
}

@media (max-width: 480px) {
    .ai-chat-messages {
        min-height: 250px;
        max-height: 350px;
    }
    .ai-chat-bubble {
        max-width: 95%;
        font-size: .85rem;
    }
    .copilot-iframe {
        height: 50vh;
    }
}

/* ---------- Meditation Video Playlist ---------- */
.med-playlist {
    margin-top: .75rem;
}

.med-playlist-player {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.med-playlist-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .5rem;
    padding: 0 .25rem;
}

.med-playlist-list {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    max-height: 400px;
    overflow-y: auto;
}

.med-playlist-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .6rem .75rem;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    text-align: left;
    width: 100%;
    color: #c0c0c0;
    font-size: .9rem;
}

.med-playlist-item:hover {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(30, 144, 255, .2);
}

.med-playlist-item--active {
    background: rgba(30, 144, 255, .08);
    border-color: rgba(30, 144, 255, .3);
    color: #e0e0e0;
}

.med-playlist-num {
    color: #808080;
    font-size: .82rem;
    min-width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}

.med-playlist-thumb {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: #1a1e2a;
}

.med-playlist-thumb-placeholder {
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1e2a;
    border-radius: 4px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.med-playlist-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.med-playlist-playing {
    font-size: .72rem;
    color: #1e90ff;
    font-weight: 600;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: .3px;
}

@media (max-width: 500px) {
    .med-playlist-thumb,
    .med-playlist-thumb-placeholder {
        width: 48px;
        height: 32px;
    }
}

/* ---------- Database Management ---------- */
.db-status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.db-status-card {
    background: #1a1e2a;
    border: 1px solid rgba(192, 192, 192, .1);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    transition: border-color .2s ease;
}

.db-status-card:hover {
    border-color: rgba(30, 144, 255, .25);
}

.db-status-card--ok {
    border-color: rgba(37, 211, 102, .25);
    background: linear-gradient(135deg, #1a1e2a 0%, rgba(37, 211, 102, .04) 100%);
}

.db-status-card--fail {
    border-color: rgba(231, 76, 60, .25);
    background: linear-gradient(135deg, #1a1e2a 0%, rgba(231, 76, 60, .04) 100%);
}

.db-status-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.db-status-label {
    font-size: .75rem;
    color: #808080;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
}

.db-status-value {
    font-size: 1rem;
    font-weight: 700;
    color: #e0e0e0;
}

.db-conn-display {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.db-conn-code {
    flex: 1;
    background: #0d1117;
    border: 1px solid rgba(192, 192, 192, .12);
    border-radius: 6px;
    padding: .65rem .85rem;
    font-family: 'Consolas', monospace;
    font-size: .8rem;
    color: #c9d1d9;
    word-break: break-all;
    line-height: 1.5;
}

.db-conn-actions {
    display: flex;
    gap: .4rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.db-eye-btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .6rem;
}

.db-eye-btn svg {
    display: block;
}

.db-migration-grid {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.db-migration-label {
    font-size: .75rem;
    color: #808080;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
}

.db-migration-value {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Schema validation */
.db-schema-alert {
    padding: .7rem 1rem;
    border-radius: 8px;
    font-size: .9rem;
    line-height: 1.5;
}

.db-schema-alert--ok {
    background: rgba(37, 211, 102, .08);
    border: 1px solid rgba(37, 211, 102, .25);
    color: #a0f0c0;
}

.db-schema-alert--warn {
    background: rgba(231, 76, 60, .08);
    border: 1px solid rgba(231, 76, 60, .25);
    color: #f0c0b8;
}

.db-schema-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: .75rem;
    padding: .75rem 1rem;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 8px;
}

.db-schema-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.db-schema-stat-val {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e0e0e0;
}

.db-schema-stat-lbl {
    font-size: .72rem;
    color: #808080;
    text-transform: uppercase;
    letter-spacing: .4px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .db-status-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .db-conn-display {
        flex-direction: column;
    }
    .db-conn-actions {
        width: 100%;
    }
    .db-schema-stats {
        gap: 1rem;
    }
}

@media (max-width: 500px) {
    .db-status-grid {
        grid-template-columns: 1fr;
    }
}

/* ???????????????????????????????????????????????????????????????
   Aura Chat – WhatsApp-style spiritual AI assistant
   ??????????????????????????????????????????????????????????????? */

.aura-chat-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
    height: calc(100dvh - 80px);
    background: #0b141a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.5);
}

/* Header */
.aura-chat-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    background: #1f2c34;
    border-bottom: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
}

/* Header portrait thumbnail */

/* ?? Voice section boxes (AuraVoice admin page) ??????????????????????????? */
.voice-section-box {
    border: 1px solid rgba(192,192,192,.12);
    border-radius: 10px;
    padding: 1.1rem 1.25rem 1rem;
    background: rgba(255,255,255,.02);
}

.voice-section-header {
    font-size: .8rem;
    font-weight: 700;
    color: #1e90ff;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .85rem;
    padding-bottom: .45rem;
    border-bottom: 1px solid rgba(30,144,255,.18);
}

.voice-section-header--mobile {
    color: #7c3aed;
    border-bottom-color: rgba(124,58,237,.2);
}

.voice-preview-row {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: .85rem;
    padding-top: .85rem;
    border-top: 1px solid rgba(192,192,192,.08);
}

.voice-preview-select {
    flex: 1;
    min-width: 180px;
    font-size: .85rem;
}

.voice-preview-text {
    flex: 2;
    min-width: 200px;
    font-size: .85rem;
}

.voice-preview-btn {
    white-space: nowrap;
    font-size: .85rem;
    padding: .45rem 1rem;
    border: 1px solid rgba(30,144,255,.3);
    color: #c0d8ff;
}

.voice-preview-btn--mobile {
    border-color: rgba(124,58,237,.3);
    color: #d0b8ff;
}

.voice-use-btn {
    white-space: nowrap;
    font-size: .82rem;
    padding: .4rem .75rem;
}

/* Mobile dial thumb colour override */
.voice-dial--mobile::-webkit-slider-thumb {
    background: #7c3aed;
    box-shadow: 0 0 6px rgba(124,58,237,.6);
}
.voice-dial--mobile::-webkit-slider-thumb:hover,
.voice-dial--mobile:active::-webkit-slider-thumb {
    box-shadow: 0 0 12px rgba(124,58,237,.9);
}
.voice-dial--mobile::-moz-range-thumb {
    background: #7c3aed;
    box-shadow: 0 0 6px rgba(124,58,237,.6);
}
.voice-dial--mobile::-moz-range-progress {
    background: #7c3aed;
}

@media (max-width: 600px) {
    .voice-preview-row {
        flex-direction: column;
        align-items: stretch;
    }
    .voice-preview-select,
    .voice-preview-text {
        min-width: 0;
        width: 100%;
    }
    .voice-preview-btn,
    .voice-use-btn {
        width: 100%;
        justify-content: center;
    }
}
/* ??????????????????????????????????????????????????????????????????????????? */

/* ?? Voice dial sliders (AuraVoice admin page) ???????????????????????????? */
.voice-dial-wrap {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: .45rem 0 .3rem;
}

.voice-dial-label {
    font-size: .75rem;
    color: #666;
    white-space: nowrap;
    min-width: 1.8rem;
    text-align: center;
}

.voice-dial {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 5px;
    border-radius: 3px;
    background: linear-gradient(to right, #1e90ff var(--val, 50%), rgba(255,255,255,.12) var(--val, 50%));
    outline: none;
    cursor: pointer;
    transition: background .1s;
}

.voice-dial::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1e90ff;
    border: 2px solid #fff;
    box-shadow: 0 0 6px rgba(30,144,255,.6);
    cursor: pointer;
    transition: box-shadow .15s, transform .15s;
}

.voice-dial::-webkit-slider-thumb:hover,
.voice-dial:active::-webkit-slider-thumb {
    box-shadow: 0 0 12px rgba(30,144,255,.9);
    transform: scale(1.15);
}

.voice-dial::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1e90ff;
    border: 2px solid #fff;
    box-shadow: 0 0 6px rgba(30,144,255,.6);
    cursor: pointer;
}

.voice-dial::-moz-range-track {
    height: 5px;
    border-radius: 3px;
    background: rgba(255,255,255,.12);
}

.voice-dial::-moz-range-progress {
    height: 5px;
    border-radius: 3px;
    background: #1e90ff;
}
/* ??????????????????????????????????????????????????????????????????????????? */
.aura-chat-header-portrait {
    width: 44px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #7c3aed;
    background: #0b141a;
    cursor: pointer;
    transition: box-shadow .2s;
}

.aura-chat-header-portrait:hover {
    box-shadow: 0 0 12px rgba(124,58,237,.7);
}

.aura-portrait-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Aura avatar lightbox */
.aura-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.85);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    backdrop-filter: blur(6px);
    animation: auraLightboxIn .2s ease;
}

@keyframes auraLightboxIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.aura-lightbox-img {
    max-width: min(520px, 90vw);
    max-height: 90vh;
    border-radius: 16px;
    border: 3px solid #7c3aed;
    box-shadow: 0 0 60px rgba(124,58,237,.6), 0 8px 40px rgba(0,0,0,.6);
    object-fit: contain;
    pointer-events: none;
}

/* (intro panel removed) */

.aura-chat-header-info h1 {
    margin: 0;
    font-size: 1.1rem;
    color: #e9edef;
    font-weight: 600;
}

.aura-chat-status {
    font-size: .78rem;
    color: #25d366;
}

/* Aura chat search toggle button */
.aura-chat-search-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(30,144,255,.10);
    border: 1px solid rgba(30,144,255,.25);
    color: rgba(233,237,239,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s, color .2s, box-shadow .2s;
    padding: 0;
}
.aura-chat-search-toggle:hover {
    background: rgba(30,144,255,.22);
    color: #e9edef;
    box-shadow: 0 0 8px rgba(30,144,255,.3);
}

/* Aura chat search panel */
.aura-search-panel {
    background: #1f2c34;
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: .5rem .75rem;
    flex-shrink: 0;
    z-index: 5;
}
.aura-search-input-row {
    display: flex;
    gap: .4rem;
    align-items: center;
}
.aura-search-input {
    flex: 1;
    background: #2a3942;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    color: #e9edef;
    padding: .45rem .7rem;
    font-size: .88rem;
    font-family: inherit;
    outline: none;
    transition: border-color .2s;
}
.aura-search-input:focus {
    border-color: #1e90ff;
}
.aura-search-input::placeholder {
    color: rgba(233,237,239,.35);
}
.aura-search-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #25d366;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s;
}
.aura-search-btn:hover {
    background: #1ebe57;
}
.aura-search-close {
    background: none;
    border: none;
    color: rgba(233,237,239,.5);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 .3rem;
    transition: color .15s;
}
.aura-search-close:hover {
    color: #e9edef;
}

/* Search results */
.aura-search-results {
    max-height: 260px;
    overflow-y: auto;
    margin-top: .4rem;
}
.aura-search-count {
    font-size: .75rem;
    color: rgba(233,237,239,.4);
    padding: .25rem 0;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.aura-search-empty,
.aura-search-loading {
    font-size: .85rem;
    color: rgba(233,237,239,.4);
    padding: .6rem 0;
    text-align: center;
}
.aura-search-result-item {
    padding: .5rem .6rem;
    border-radius: 6px;
    margin-bottom: .3rem;
    transition: background .15s;
    cursor: default;
}
.aura-search-result-item:hover {
    background: rgba(255,255,255,.04);
}
.aura-search-result--user {
    border-left: 3px solid #005c4b;
}
.aura-search-result--aura {
    border-left: 3px solid #1e90ff;
}
.aura-search-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .2rem;
}
.aura-search-result-role {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: rgba(233,237,239,.6);
}
.aura-search-result-date {
    font-size: .7rem;
    color: rgba(233,237,239,.35);
}
.aura-search-result-text {
    font-size: .85rem;
    color: rgba(233,237,239,.8);
    line-height: 1.4;
    word-break: break-word;
}
.aura-search-result-text mark {
    background: rgba(30,144,255,.35);
    color: #fff;
    border-radius: 2px;
    padding: 0 2px;
}

/* Load earlier messages button */
.aura-load-earlier {
    text-align: center;
    padding: .4rem 0 .6rem;
}
.aura-load-earlier button {
    background: rgba(30,144,255,.12);
    border: 1px solid rgba(30,144,255,.25);
    color: rgba(233,237,239,.7);
    font-size: .8rem;
    font-weight: 600;
    padding: .35rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.aura-load-earlier button:hover {
    background: rgba(30,144,255,.25);
    color: #e9edef;
}
.aura-load-earlier button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .aura-search-results {
        max-height: 200px;
    }
}

.aura-chat-clear {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: .6;
    transition: opacity .2s;
    padding: .25rem .5rem;
}
.aura-chat-clear:hover {
    opacity: 1;
}

/* Message area */
.aura-chat-bg {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    background:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
        repeat;
    background-color: #0b141a;
}

.aura-chat-messages {
    height: 100%;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    scroll-behavior: smooth;
}

/* Date divider */
.aura-date-divider {
    text-align: center;
    margin: .5rem 0 .75rem;
}
.aura-date-divider span {
    background: #182229;
    color: rgba(233,237,239,.7);
    font-size: .72rem;
    padding: .3rem .75rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Messages */
.aura-msg {
    display: flex;
    max-width: 85%;
}
.aura-msg--sent {
    align-self: flex-end;
}
.aura-msg--received {
    align-self: flex-start;
}

.aura-msg-bubble {
    padding: .5rem .7rem;
    border-radius: 8px;
    font-size: .92rem;
    line-height: 1.45;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.aura-msg--sent .aura-msg-bubble {
    background: #005c4b;
    color: #e9edef;
    border-top-right-radius: 2px;
}

.aura-msg--received .aura-msg-bubble {
    background: #1f2c34;
    color: #e9edef;
    border-top-left-radius: 2px;
}

.aura-msg-bubble p {
    margin: 0 0 .35rem;
}
.aura-msg-bubble p:last-of-type {
    margin-bottom: .1rem;
}

.aura-msg-time {
    display: block;
    text-align: right;
    font-size: .65rem;
    color: rgba(233,237,239,.45);
    margin-top: .2rem;
}

/* Typing indicator */
.aura-typing-bubble {
    padding: .65rem .9rem !important;
}

.aura-typing {
    display: flex;
    gap: 4px;
    align-items: center;
}
.aura-typing span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(233,237,239,.4);
    animation: auraTypingBounce 1.4s infinite ease-in-out both;
}
.aura-typing span:nth-child(1) { animation-delay: 0s; }
.aura-typing span:nth-child(2) { animation-delay: .2s; }
.aura-typing span:nth-child(3) { animation-delay: .4s; }

@keyframes auraTypingBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: .4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Input area */
.aura-chat-input-area {
    background: #1f2c34;
    padding: .5rem .75rem;
    border-top: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
}

.aura-chat-input-row {
    display: flex;
    align-items: flex-end;
    gap: .5rem;
}

.aura-chat-input {
    flex: 1;
    background: #2a3942;
    border: none;
    border-radius: 8px;
    color: #e9edef;
    padding: .6rem .75rem;
    font-size: .92rem;
    font-family: inherit;
    resize: none;
    outline: none;
    min-height: 42px;
    max-height: 120px;
    line-height: 1.4;
}
.aura-chat-input::placeholder {
    color: rgba(233,237,239,.4);
}

/* Keyboard trigger button — hidden on desktop, shown on mobile */
.aura-kb-btn {
    display: none; /* hidden by default; enabled inside the @media block below */
}

.aura-chat-mic {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2a3942;
    border: none;
    color: rgba(233,237,239,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s, color .2s, transform .1s;
}
.aura-chat-mic:hover {
    background: #3b4d56;
    color: #e9edef;
}
.aura-chat-mic:active {
    transform: scale(.92);
}
.aura-chat-mic:disabled {
    opacity: .3;
    cursor: not-allowed;
}

/* Mic button placed in the header (the red block area) */
.aura-header-mic {
    margin-left: auto;
    width: auto;
    height: 40px;
    padding: 0 14px 0 10px;
    border-radius: 20px;
    background: rgba(30, 144, 255, .12);
    border: 1px solid rgba(30, 144, 255, .3);
    color: rgba(233,237,239,.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s, color .2s, transform .15s, box-shadow .2s;
}
.aura-mic-label {
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .02em;
    white-space: nowrap;
    color: rgba(233,237,239,.65);
    transition: color .2s;
}
.aura-header-mic:hover .aura-mic-label {
    color: #e9edef;
}
.aura-header-mic.aura-header-mic--listening .aura-mic-label {
    color: #fff;
}
.aura-header-mic:hover {
    background: rgba(30, 144, 255, .25);
    color: #e9edef;
    box-shadow: 0 0 10px rgba(30, 144, 255, .3);
}
.aura-header-mic:active {
    transform: scale(.9);
}
.aura-header-mic.aura-header-mic--listening {
    background: #e53935;
    border-color: #e53935;
    color: #fff;
    animation: auraMicPulse 1.1s infinite;
}
@keyframes auraMicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(229,57,53,.5); }
    50%       { box-shadow: 0 0 0 8px rgba(229,57,53,0); }
}

.aura-header-speaker {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(30,144,255,.10);
    border: 1px solid rgba(30,144,255,.25);
    color: rgba(233,237,239,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s, color .2s, box-shadow .2s, transform .15s;
    padding: 0;
}
.aura-header-speaker:hover {
    background: rgba(30,144,255,.22);
    color: #e9edef;
    box-shadow: 0 0 8px rgba(30,144,255,.3);
}
.aura-header-speaker:active {
    transform: scale(.9);
}
.aura-header-speaker.aura-header-speaker--active {
    background: rgba(37,211,102,.15);
    border-color: #25d366;
    color: #25d366;
    animation: auraHeaderSpeakPulse 1.4s ease-in-out infinite;
}
@keyframes auraHeaderSpeakPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,.45); }
    50%       { box-shadow: 0 0 0 7px rgba(37,211,102,0); }
}
.aura-header-speaker.aura-header-speaker--muted {
    background: rgba(255,255,255,.05);
    border-color: rgba(255,255,255,.15);
    color: rgba(233,237,239,.25);
    opacity: .55;
}

/* Voice hint banner */
.aura-voice-banner {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem 1rem;
    background: rgba(30,144,255,.10);
    border-bottom: 1px solid rgba(30,144,255,.20);
    font-size: .8rem;
    color: rgba(224,224,224,.85);
    flex-shrink: 0;
}
.aura-voice-banner-icon {
    font-size: .95rem;
    flex-shrink: 0;
}
.aura-voice-banner-text {
    flex: 1;
    line-height: 1.4;
}
.aura-voice-banner-close {
    background: none;
    border: none;
    color: rgba(224,224,224,.5);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 .25rem;
    flex-shrink: 0;
    transition: color .15s;
}
.aura-voice-banner-close:hover {
    color: #e0e0e0;
}

/* AI request usage bar */
.aura-usage-bar {
    padding: .35rem 1rem .4rem;
    background: rgba(0,0,0,.18);
    border-bottom: 1px solid rgba(255,255,255,.05);
    flex-shrink: 0;
}
.aura-usage-bar__info {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .28rem;
}
.aura-usage-bar__plan {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
    background: rgba(255,255,255,.07);
    border-radius: 10px;
    padding: .1rem .45rem;
    white-space: nowrap;
}
.aura-usage-bar__count {
    font-size: .75rem;
    color: rgba(224,224,224,.55);
    line-height: 1;
}
.aura-usage-bar__count strong {
    color: rgba(224,224,224,.85);
    font-weight: 600;
}
.aura-usage-bar__track {
    height: 4px;
    border-radius: 4px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
}
.aura-usage-bar__fill {
    height: 100%;
    border-radius: 4px;
    transition: width .4s ease, background .4s ease;
    min-width: 3px;
}

.aura-chat-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #25d366;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s, transform .1s;
}
.aura-chat-send:hover {
    background: #1ebe57;
}
.aura-chat-send:active {
    transform: scale(.92);
}
.aura-chat-send:disabled {
    background: #1a3a2a;
    cursor: not-allowed;
}

.aura-chat-disclaimer {
    text-align: center;
    font-size: .68rem;
    color: rgba(233,237,239,.3);
    padding-top: .4rem;
}

/* Speaker / read-aloud button on received messages */
.aura-speak-btn {
    position: absolute;
    bottom: .3rem;
    left: .4rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: rgba(233,237,239,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: color .2s, background .2s, transform .1s;
    flex-shrink: 0;
}
.aura-speak-btn:hover {
    color: rgba(233,237,239,.85);
    background: rgba(255,255,255,.08);
}
.aura-speak-btn:active {
    transform: scale(.88);
}
.aura-speak-btn--active {
    color: #25d366 !important;
    animation: auraSpeakPulse 1.4s ease-in-out infinite;
}
@keyframes auraSpeakPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .45; }
}

/* Share button on received messages */
.aura-share-btn {
    position: absolute;
    bottom: .3rem;
    right: .4rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: rgba(233,237,239,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: color .2s, background .2s, transform .1s;
    flex-shrink: 0;
}
.aura-share-btn:hover {
    color: #25d366;
    background: rgba(37,211,102,.1);
}
.aura-share-btn:active {
    transform: scale(.88);
}

/* Ensure the received bubble has room for the speak + share buttons */
.aura-msg--received .aura-msg-bubble {
    padding-bottom: 1.6rem;
}

/* Responsive */
@media (max-width: 860px) {
    .aura-chat-container {
        border-radius: 0;
        height: calc(100vh - 70px);
        height: calc(100dvh - 70px);
    }
}

/* ---- Mobile chat: full-screen, sticky input, no footer ---- */
@media (max-width: 600px) {
    /* When on the chat page, remove site-main margin/padding so
       the container truly fills edge-to-edge */
    .body--chat .site-main {
        margin: 0;
        padding: 0;
        max-width: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    /* Hide the footer on mobile chat so the input bar reaches the bottom */
    .body--chat .site-footer {
        display: none;
    }

    /* Container fills everything between the header and the bottom of the screen */
    .body--chat .aura-chat-container {
        border-radius: 0;
        height: calc(100vh - 60px);
        height: calc(100dvh - 60px); /* dvh accounts for mobile browser chrome */
        max-width: 100%;
        margin: 0;
        display: flex;
        flex-direction: column;
    }

    /* Message area scrolls freely */
    .body--chat .aura-chat-bg {
        flex: 1;
        overflow: hidden;
        min-height: 0;
    }

    .body--chat .aura-chat-messages {
        height: 100%;
        overflow-y: auto;
    }

    /* Input bar is part of the flex column — always at bottom */
    .body--chat .aura-chat-input-area {
        flex-shrink: 0;
        position: relative; /* not fixed — stays at flex bottom */
        padding: .5rem .6rem calc(.6rem + env(safe-area-inset-bottom, 0px));
    }

    /* Hide the disclaimer text on small screens to save space */
    .body--chat .aura-chat-disclaimer {
        display: none;
    }

    .aura-msg {
        max-width: 92%;
    }
    .aura-msg-bubble {
        font-size: .85rem;
    }

    /* ---- Mobile header voice buttons ---- */
    /* Hide the text label — icon only on small screens */
    .aura-header-mic .aura-mic-label {
        display: none;
    }
    /* Shrink mic button to a square icon button matching the speaker */
    .aura-header-mic {
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
        margin-left: auto;
        flex-shrink: 0;
        justify-content: center;
    }
    /* Make speaker button same size and more visible */
    .aura-header-speaker {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    /* Keyboard trigger button — visible on mobile only */
    .aura-kb-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255,255,255,.07);
        border: 1px solid rgba(255,255,255,.12);
        color: rgba(233,237,239,.6);
        cursor: pointer;
        transition: background .2s, color .2s;
        padding: 0;
    }
    .aura-kb-btn:hover,
    .aura-kb-btn:active {
        background: rgba(30,144,255,.25);
        color: #e9edef;
    }
}

/* ========================================================
   ENHANCED RESPONSIVE & CROSS-DEVICE STYLES
   ======================================================== */

/* ---------- Safe-area insets for notched devices ---------- */
body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}
.site-header {
    padding-top: env(safe-area-inset-top);
}
.site-footer {
    padding-bottom: env(safe-area-inset-bottom);
}

/* ---------- Global touch & interaction ---------- */
a, button, input, select, textarea {
    -webkit-tap-highlight-color: transparent;
}
img, video, iframe {
    max-width: 100%;
    height: auto;
}
table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

/* ---------- Tablet (max-width: 992px) ---------- */
@media (max-width: 992px) {
    .site-main {
        margin: 1.25rem auto;
        padding: 0 1rem;
    }
    .free-content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .dash-sub-grid {
        grid-template-columns: 1fr;
    }
    .dash-action-card {
        padding: 1rem;
    }
}

/* ---------- Small devices (max-width: 576px) ---------- */
@media (max-width: 576px) {
    html {
        font-size: 15px;
    }
    .site-main {
        margin: .75rem auto;
        padding: 0 .75rem;
    }
    .card {
        padding: 1rem;
        border-radius: 8px;
    }
    .dash-stats {
        grid-template-columns: 1fr;
    }
    .dash-actions {
        grid-template-columns: 1fr;
    }
    .dash-stat-card {
        padding: .75rem;
    }
    .content-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        gap: .35rem;
        padding-bottom: .5rem;
        scrollbar-width: none;
    }
    .content-tabs::-webkit-scrollbar {
        display: none;
    }
    .content-tab {
        flex-shrink: 0;
        padding: .4rem .85rem;
        font-size: .8rem;
    }
    .free-content-grid {
        grid-template-columns: 1fr;
        gap: .75rem;
    }
    .free-content-img,
    .content-card-img-wrap {
        height: 150px;
    }
    .pagination-wrap {
        gap: .25rem;
    }
    .pagination-btn {
        min-width: 2rem;
        height: 2rem;
        padding: 0 .5rem;
        font-size: .8rem;
    }
    .btn {
        min-height: 44px;
        padding: .5rem 1rem;
    }
    .hero {
        padding: 2rem .75rem;
    }
    .hero h1 {
        font-size: 1.3rem;
    }
    .hero-subtitle {
        font-size: .9rem;
    }
    .admin-header h1 {
        font-size: 1.3rem;
    }
    .fav-btn-detail svg {
        width: 28px;
        height: 28px;
    }
    .content-card-body {
        padding: .85rem;
    }
    .content-card-title {
        font-size: 1rem;
    }
    .detail-row {
        flex-direction: column;
        gap: .25rem;
    }
    .series-info-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: .5rem;
    }
}

/* ---------- Extra-small (max-width: 360px) ---------- */
@media (max-width: 360px) {
    html {
        font-size: 14px;
    }
    .navbar-brand img {
        height: 44px;
    }
    .navbar-brand span {
        font-size: 1rem;
    }
    .nav-links a,
    .nav-links span {
        font-size: .78rem;
        padding: .45rem .5rem;
    }
    .site-footer {
        font-size: .78rem;
        padding: 1rem .75rem;
    }
}

/* ---------- Touch-friendly targets ---------- */
@media (pointer: coarse) {
    .nav-links a,
    .nav-links button,
    .nav-dropdown-btn,
    .btn-logout {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    .content-tab {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    .pagination-btn {
        min-width: 44px;
        min-height: 44px;
    }
    .fav-btn {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .fav-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* ---------- Landscape phones ---------- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 1.25rem .75rem;
    }
    .hero h1 {
        font-size: 1.2rem;
    }
    .hero-features {
        grid-template-columns: repeat(3, 1fr);
        gap: .75rem;
    }
    .site-main {
        margin: .5rem auto;
    }
}

/* ---------- High-DPI / Retina ---------- */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .content-card,
    .free-content-card,
    .dash-content-card {
        border-width: 0.5px;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Print ---------- */
@media print {
    .site-header,
    .site-footer,
    .navbar-toggle,
    .pagination-wrap,
    .fav-btn,
    .btn {
        display: none !important;
    }
    .site-main {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    body {
        color: #000;
        background: #fff;
    }
}





