:root {
    --brand-bg: #f4f6fb;
    --brand-surface: #ffffff;
    --brand-surface-soft: rgba(255, 255, 255, 0.76);
    --brand-sidebar: #0f172a;
    --brand-accent: #5b6cff;
    --brand-accent-strong: #3346ff;
    --brand-success: #16a34a;
    --brand-warning: #d97706;
    --brand-danger: #dc2626;
    --brand-ink: #0f172a;
    --brand-muted: #5b6476;
    --brand-border: #dbe3f0;
    --brand-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
}

* {
    box-sizing: border-box;
}

body {
    position: relative;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--brand-ink);
    background:
        radial-gradient(circle at top right, rgba(91, 108, 255, 0.18) 0%, rgba(91, 108, 255, 0) 24%),
        radial-gradient(circle at bottom left, rgba(20, 184, 166, 0.14) 0%, rgba(20, 184, 166, 0) 26%),
        linear-gradient(180deg, #f9fbff 0%, var(--brand-bg) 56%, #eef3fb 100%);
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.26) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.18;
    mix-blend-mode: soft-light;
    z-index: -1;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: "Space Grotesk", "Manrope", sans-serif;
    letter-spacing: -0.02em;
}

p, small, .small, .form-label, .nav-link, .btn, .table, .alert, .badge {
    letter-spacing: 0.01em;
}

a {
    text-decoration: none;
}

.card,
.login-card,
.metric-card,
.modal-content,
.table-responsive,
.dropdown-menu,
.alert {
    border: 1px solid var(--brand-border);
    box-shadow: var(--brand-shadow);
}

.card,
.login-card,
.metric-card,
.modal-content {
    border-radius: 1rem;
    overflow: hidden;
}

.btn {
    border-radius: 0.8rem;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary,
.btn-dark,
.btn-success,
.btn-info,
.btn-warning,
.btn-danger,
.btn-outline-primary:hover,
.btn-outline-dark:hover,
.btn-outline-success:hover,
.btn-outline-info:hover,
.btn-outline-warning:hover,
.btn-outline-danger:hover {
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
}

.btn-primary {
    background: linear-gradient(120deg, var(--brand-accent) 0%, var(--brand-accent-strong) 100%);
    border: 0;
}

.btn-dark {
    background: linear-gradient(120deg, #111827 0%, #1f2937 100%);
    border: 0;
}

.form-control,
.form-select {
    border: 1px solid #c8d2e2;
    border-radius: 0.82rem;
    padding: 0.68rem 0.9rem;
    background-color: rgba(255, 255, 255, 0.9);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 0.22rem rgba(91, 108, 255, 0.14);
}

.table {
    color: #253047;
}

.table thead th {
    background: rgba(248, 250, 252, 0.92);
    color: #334155;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--brand-border);
}

.table tbody tr:hover {
    background: rgba(91, 108, 255, 0.035);
}

.alert {
    border-radius: 0.95rem;
}

.badge {
    border-radius: 999px;
    font-weight: 700;
}

.sidebar {
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    min-height: 100vh;
    box-shadow: 18px 0 42px rgba(15, 23, 42, 0.16);
}

.login-wrap {
    min-height: 100vh;
}

.login-card {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(16px);
}

.sidebar .nav-link {
    color: #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.72rem 0.9rem;
    font-weight: 600;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    background: linear-gradient(120deg, rgba(91, 108, 255, 0.2), rgba(20, 184, 166, 0.14));
    color: #ffffff;
}

.metric-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
}

.metric-value {
    font-size: 1.7rem;
    font-weight: 700;
}

.bg-soft-success { background-color: rgba(22, 163, 74, 0.12); }
.bg-soft-warning { background-color: rgba(217, 119, 6, 0.12); }
.bg-soft-danger { background-color: rgba(220, 38, 38, 0.12); }
.bg-soft-info { background-color: rgba(14, 165, 233, 0.12); }

.content-scroll {
    max-height: 370px;
    overflow-y: auto;
}

.nav-tabs .nav-link {
    border-radius: 0.8rem 0.8rem 0 0;
    font-weight: 700;
}

.nav-tabs .nav-link.active {
    background: #ffffff;
    border-color: var(--brand-border) var(--brand-border) #ffffff;
}

.dropdown-menu {
    border-radius: 0.9rem;
}

.modal-backdrop.show {
    opacity: 0.55;
}

.modal-header,
.modal-footer {
    border-color: var(--brand-border);
}

@media (max-width: 991px) {
    .sidebar {
        min-height: auto;
    }
}

/* Landing page visual system */
.landing-page {
    min-height: 100vh;
}

.landing-hero {
    padding: 5.5rem 0 6rem;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(91, 108, 255, 0.2), transparent 30%),
                radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.16), transparent 25%),
                linear-gradient(180deg, #f8fbff 0%, #eef4ff 55%, #f6f8fb 100%);
}

.landing-shape {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.55;
    animation: float 9s ease-in-out infinite;
}

.landing-shape--top {
    top: -110px;
    left: -90px;
    background: rgba(91, 108, 255, 0.34);
}

.landing-shape--bottom {
    bottom: -120px;
    right: -90px;
    background: rgba(16, 185, 129, 0.28);
    animation-duration: 11s;
}

.landing-shape--accent {
    top: 22%;
    right: 14%;
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 70px rgba(255, 255, 255, 0.3);
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
}

.hero-copy {
    max-width: 680px;
    line-height: 1.85;
}

.hero-metrics {
    margin-top: 2.5rem;
}

.hero-metric-card {
    min-width: 170px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.06);
}

.hero-metric-card .metric-value {
    display: block;
    font-size: 1.85rem;
    font-weight: 700;
    color: #0f172a;
}

.hero-preview {
    border-radius: 2rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.95), #f8fbff 99%);
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.hero-preview-header {
    padding: 1.6rem 1.7rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.hero-preview-body {
    padding: 1.6rem 1.7rem 2rem;
}

.hero-preview-header .badge {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-preview-body p {
    color: #475569;
}

.hero-stat {
    border-radius: 1.8rem;
    background: #f8fafc;
}

.hero-stat {
    border-radius: 1.5rem;
    background: #f8fafc;
}

.hero-stat h4,
.hero-stat .text-muted {
    margin: 0;
}

.landing-overview {
    padding-top: 4.3rem;
    padding-bottom: 4rem;
}

.feature-card {
    border-radius: 1.75rem;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(16, 185, 129, 0.18));
    color: #334155;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.landing-summary {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.feature-list li {
    position: relative;
    padding-left: 2.3rem;
    margin-bottom: 1rem;
    color: #334155;
    font-size: 1rem;
}

.feature-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: #2563eb;
    font-weight: 900;
}

.section-heading {
    max-width: 540px;
    margin: 0 auto;
}

.section-label {
    display: inline-flex;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #3b82f6;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-card,
.benefit-card {
    border-radius: 1.8rem;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover,
.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 55px rgba(15, 23, 42, 0.09);
}

.step-badge {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
    font-weight: 700;
}

.step-card h6 {
    margin-top: 1rem;
    font-size: 1rem;
}

.benefit-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.16);
    color: #047857;
    font-size: 1.4rem;
}

.benefit-card h5 {
    margin-top: 1rem;
    margin-bottom: 0.8rem;
}

.landing-cta {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(16, 185, 129, 0.1));
}

.landing-cta h2 {
    font-size: 2.3rem;
}

@media (max-width: 991px) {
    .hero-copy {
        max-width: 100%;
    }
    .hero-panel,
    .hero-preview {
        margin-top: 1rem;
    }
    .landing-cta h2 {
        font-size: 1.9rem;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-14px) scale(1.03); }
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-14px) scale(1.03); }
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Videos page visual system */
.video-page-shell {
    --vp-ink: #101828;
    --vp-muted: #5b6578;
    --vp-surface: #ffffff;
    --vp-surface-soft: #f4f8ff;
    --vp-line: #d8e0ef;
    --vp-brand: #0a84ff;
    --vp-brand-deep: #0059c9;
    --vp-accent: #18b2a3;
    --vp-glow: rgba(10, 132, 255, 0.15);
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    color: var(--vp-ink);
}

.video-hero {
    background:
        radial-gradient(circle at 85% 15%, rgba(24, 178, 163, 0.35) 0%, rgba(24, 178, 163, 0) 48%),
        linear-gradient(125deg, #e7f0ff 0%, #f2fffc 52%, #fff8ec 100%);
    border: 1px solid var(--vp-line);
    border-radius: 1rem;
    padding: 1.25rem 1.4rem;
    margin-bottom: 1rem;
    box-shadow: 0 20px 42px rgba(12, 25, 64, 0.09);
}

.video-hero-kicker {
    color: var(--vp-brand-deep);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 700;
}

.video-hero-title {
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    font-weight: 700;
}

.video-hero-subtitle {
    color: var(--vp-muted);
    max-width: 760px;
}

.video-stat-card,
.video-filter-card,
.video-table-card {
    background: var(--vp-surface);
    border: 1px solid var(--vp-line);
    border-radius: 1rem;
    box-shadow: 0 14px 28px rgba(17, 24, 39, 0.08);
}

.video-stat-card {
    padding: 1rem 1.1rem;
    background: linear-gradient(150deg, #ffffff 0%, #f8fbff 75%);
}

.video-stat-label {
    color: var(--vp-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.3rem;
}

.video-stat-value {
    font-size: 1.35rem;
    font-weight: 700;
}

.video-filter-card {
    padding: 1rem;
    margin-bottom: 1rem;
    background:
        linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.video-filter-card .form-label {
    color: #334155;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.3rem;
}

.video-filter-card .form-control,
.video-filter-card .form-select {
    border-radius: 0.72rem;
    border-color: #c6d2e8;
}

.video-filter-card .form-control:focus,
.video-filter-card .form-select:focus {
    border-color: var(--vp-brand);
    box-shadow: 0 0 0 0.22rem var(--vp-glow);
}

.video-go-btn {
    border: 0;
    border-radius: 0.72rem;
    background: linear-gradient(120deg, var(--vp-brand) 0%, var(--vp-brand-deep) 100%);
    color: #fff;
    font-weight: 600;
}

.video-table-card {
    padding: 1rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.9rem;
}

.video-grid-card {
    border: 1px solid #d8e2f2;
    border-radius: 0.92rem;
    background: linear-gradient(160deg, #ffffff 0%, #f6f9ff 100%);
    padding: 0.9rem;
    box-shadow: 0 10px 18px rgba(2, 18, 43, 0.07);
}

.video-grid-session {
    font-size: 0.82rem;
    color: #3f4c62;
}

.video-grid-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.2rem;
    font-size: 0.78rem;
    color: #5b6578;
}

.video-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid #b9f0e7;
    background: #e9fff9;
    color: #0a7f6f;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.1rem 0.5rem;
}

.video-empty-state {
    grid-column: 1 / -1;
    border: 1px dashed #c8d4ea;
    border-radius: 0.9rem;
    background: #f8fbff;
}

.video-table-count {
    color: var(--vp-muted);
    font-size: 0.85rem;
}

.video-table thead th {
    border-bottom: 1px solid #d6e0f2;
    color: #364152;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.video-table tbody td {
    border-color: #e8edf7;
}

.video-order-pill {
    display: inline-block;
    padding: 0.2rem 0.62rem;
    border-radius: 999px;
    font-weight: 600;
    background: #e9f3ff;
    color: #0b63cf;
}

.video-view-btn,
.video-download-btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.28rem 0.72rem;
}

.video-view-btn {
    background: #e7f1ff;
    border: 1px solid #bfd8ff;
    color: #0b63cf;
}

.video-download-btn {
    background: #ebfff9;
    border: 1px solid #b7ecdf;
    color: #0a7f6f;
}

.reveal-up {
    opacity: 0;
    transform: translateY(14px);
    animation: reveal-up 0.52s ease forwards;
}

@keyframes reveal-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .video-hero {
        padding: 1rem;
    }

    .video-table-card,
    .video-filter-card,
    .video-stat-card {
        border-radius: 0.88rem;
    }
}

/* Vendor users page visual system */
.vendor-users-shell {
    --vu-ink: #0f172a;
    --vu-muted: #5b6476;
    --vu-surface: #ffffff;
    --vu-line: #d9e1ef;
    --vu-brand: #7c3aed;
    --vu-brand-deep: #5b21b6;
    --vu-accent: #14b8a6;
    --vu-success: #16a34a;
    --vu-danger: #dc2626;
}

.vendor-users-hero,
.vendor-user-form-card,
.vendor-user-table-card,
.vendor-user-stat-card {
    background: var(--vu-surface);
    border: 1px solid var(--vu-line);
    border-radius: 1rem;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.vendor-users-hero {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1.2rem 1.3rem;
    margin-bottom: 1rem;
    background:
        radial-gradient(circle at 90% 18%, rgba(20, 184, 166, 0.28) 0%, rgba(20, 184, 166, 0) 44%),
        linear-gradient(135deg, #f6efff 0%, #effaf7 100%);
}

.vendor-users-kicker {
    color: var(--vu-brand-deep);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 700;
}

.vendor-users-title {
    font-weight: 800;
    color: var(--vu-ink);
}

.vendor-users-subtitle {
    color: var(--vu-muted);
    max-width: 720px;
}

.vendor-users-hero-badge {
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e8dfff;
    color: var(--vu-brand-deep);
    font-weight: 700;
    white-space: nowrap;
}

.vendor-user-stat-card {
    padding: 1rem 1.1rem;
    background: linear-gradient(160deg, #ffffff 0%, #fbfaff 100%);
}

.vendor-user-stat-label {
    color: var(--vu-muted);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.vendor-user-stat-value {
    font-size: 1.4rem;
    font-weight: 800;
}

.vendor-user-form-card,
.vendor-user-table-card {
    padding: 1rem;
    margin-bottom: 1rem;
}

.vendor-user-form-note,
.vendor-user-table-count {
    color: var(--vu-muted);
    font-size: 0.84rem;
}

.vendor-user-form-card .form-label {
    color: #374151;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.3rem;
}

.vendor-user-form-card .form-control,
.vendor-user-form-card .form-select,
.vendor-user-edit-form .form-control,
.vendor-user-edit-form .form-select {
    border-radius: 0.72rem;
    border-color: #c7d2e4;
}

.vendor-user-add-btn,
.vendor-user-save-btn {
    border: 0;
    border-radius: 0.72rem;
    font-weight: 700;
    color: #ffffff;
}

.vendor-user-add-btn {
    background: linear-gradient(120deg, var(--vu-brand) 0%, var(--vu-brand-deep) 100%);
}

.vendor-user-save-btn {
    background: linear-gradient(120deg, var(--vu-accent) 0%, #0f766e 100%);
}

.vendor-user-edit-btn,
.vendor-user-delete-btn {
    border-radius: 999px;
    font-weight: 700;
}

.vendor-user-edit-btn {
    background: #eef2ff;
    border: 1px solid #d5ddff;
    color: var(--vu-brand-deep);
}

.vendor-user-delete-btn {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: var(--vu-danger);
}

.vendor-user-table thead th {
    border-bottom: 1px solid #d8e2f0;
    color: #334155;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.vendor-user-table tbody td {
    border-color: #edf2fb;
}

.vendor-user-id-pill,
.vendor-user-chip,
.vendor-user-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.18rem 0.55rem;
}

.vendor-user-id-pill {
    background: #eff6ff;
    color: #0b63cf;
}

.vendor-user-chip {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.vendor-user-chip-soft {
    background: #ecfeff;
    color: #0f766e;
    border-color: #b8f3ef;
}

.vendor-user-status.is-active {
    background: #ecfdf3;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.vendor-user-status.is-inactive {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

@media (max-width: 991px) {
    .vendor-users-hero {
        flex-direction: column;
        align-items: flex-start;
    }
}
