:root {
    --pink-1: #ff4fa3;
    --pink-2: #ff8ac2;
    --pink-3: #fff0f6;
    --ink: #35263b;
    --soft: #7d6576;
    --line: #f0dbe7;
    --gold: #d8b36c;
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(180deg, #fff8fb 0%, #fff 100%);
    color: var(--ink);
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(255,79,163,.22), transparent 30%),
        radial-gradient(circle at bottom right, rgba(216,179,108,.18), transparent 30%),
        #fff8fb;
}

.login-card, .card-soft {
    background: #fff;
    border: 1px solid rgba(255,138,194,.24);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(82, 27, 56, 0.08);
}

.login-card { max-width: 440px; width: 100%; padding: 32px; }
.brand-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--pink-1), var(--pink-2));
    color: #fff;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 12px 24px rgba(255,79,163,.3);
}

.form-control, .form-select {
    border-radius: 14px;
    border-color: #ead3de;
    padding: .85rem 1rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--pink-1);
    box-shadow: 0 0 0 .25rem rgba(255,79,163,.14);
}

.btn-primary {
    --bs-btn-bg: var(--pink-1);
    --bs-btn-border-color: var(--pink-1);
    --bs-btn-hover-bg: #e64091;
    --bs-btn-hover-border-color: #e64091;
    --bs-btn-active-bg: #dd2c83;
    --bs-btn-active-border-color: #dd2c83;
    border-radius: 14px;
    font-weight: 600;
    padding: .85rem 1rem;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 290px;
    background: linear-gradient(180deg, #431f35 0%, #5b2643 55%, #762e57 100%);
    color: white;
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    min-height: 100vh;
    z-index: 1040;
}

.brand-wrap { display: flex; gap: 14px; align-items: center; }
.brand-badge {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--pink-1), var(--gold));
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; color: #fff; letter-spacing: 1px;
}
.brand-title { font-size: 1.2rem; margin: 0; }
.brand-subtitle { margin: 0; color: rgba(255,255,255,.65); font-size: .92rem; }

.side-link {
    color: rgba(255,255,255,.78);
    border-radius: 14px;
    padding: .85rem .95rem;
    display: flex; align-items: center; gap: .7rem;
}
.side-link:hover, .side-link.active {
    color: #fff;
    background: rgba(255,255,255,.1);
}
.menu-section {
    margin: 20px 12px 6px;
    color: rgba(255,255,255,.5);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.main-content {
    flex: 1;
    padding: 28px;
}

.sidebar-mobile-head { display: none; }
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pink-1), var(--pink-2));
    color: #fff;
    box-shadow: 0 12px 24px rgba(82, 27, 56, 0.22);
    z-index: 1060;
}
.mobile-menu-toggle i,
.mobile-menu-close i { font-size: 1.2rem; }
.mobile-menu-close {
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,.12);
    color: #fff;
}
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 14, 22, 0.55);
    backdrop-filter: blur(2px);
    z-index: 1035;
}
.video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 14px;
    background: #f5f0f3;
}
.video-placeholder {
    aspect-ratio: 16/9;
    border-radius: 14px;
    background: #f5f0f3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--soft);
    border: 1px solid var(--line);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.page-title { font-size: 1.8rem; font-weight: 800; margin: 0; }
.page-subtitle { margin: 6px 0 0; color: var(--soft); }

.hero-banner {
    background: linear-gradient(135deg, #fff, #ffe8f3);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px;
}

.quick-grid, .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.metric-card, .module-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(82, 27, 56, 0.05);
}
.metric-value { font-size: 2rem; font-weight: 800; }
.icon-bubble {
    width: 50px; height: 50px; border-radius: 16px;
    background: var(--pink-3);
    color: var(--pink-1);
    display:flex; align-items:center; justify-content:center;
    font-size: 1.25rem;
}

.module-card a { text-decoration: none; }
.badge-soft {
    background: var(--pink-3);
    color: var(--pink-1);
    border-radius: 999px;
    padding: .35rem .7rem;
    font-size: .75rem;
}

.table-card, .content-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px;
}

.table thead th {
    color: var(--soft);
    font-weight: 600;
    font-size: .9rem;
}

.output-box {
    white-space: pre-wrap;
    background: #fff9fc;
    border: 1px dashed #f1bfd7;
    border-radius: 18px;
    padding: 18px;
}

.link-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    background: #fff;
    height: 100%;
}

.video-thumb {
    aspect-ratio: 16/9;
    width: 100%;
    object-fit: cover;
    border-radius: 14px;
    background: #f5f0f3;
}

@media (max-width: 991px) {
    .app-shell { flex-direction: column; }
    .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .sidebar-mobile-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
    }
    .sidebar {
        width: min(86vw, 320px);
        min-height: 100vh;
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        transition: transform .28s ease;
        box-shadow: 0 20px 50px rgba(15, 7, 12, 0.35);
    }
    body.menu-open .sidebar { transform: translateX(0); }
    body.menu-open .sidebar-overlay { display: block; }
    .main-content { padding: 72px 18px 18px; }
}


.action-bar{display:flex;gap:10px;flex-wrap:wrap}.info-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px}.muted{color:var(--soft)}.inline-form{display:inline}.empty-state{padding:30px;border:1px dashed #f1bfd7;background:#fff9fc;border-radius:18px;text-align:center;color:var(--soft)}.table-card .form-control,.table-card .form-select{padding:.6rem .8rem}.login-links{display:flex;justify-content:space-between;gap:10px;font-size:.92rem}.login-links a{text-decoration:none}.thumb-preview{max-width:220px;border-radius:14px;border:1px solid var(--line)}
