:root {
    --en-sky: #cae9ff;
    --en-deep-sky: #84c8ff;
    --en-yellow: #ffd449;
    --en-pink: #ff7b8f;
    --en-green: #59c85c;
    --en-blue: #5c8dff;
    --en-card: rgba(255, 255, 255, 0.88);
    --en-ink: #23314f;
    --en-muted: #6f7b94;
    --en-border: rgba(113, 158, 214, 0.18);
    --en-shadow: 0 24px 50px rgba(78, 123, 182, 0.18);
    --en-radius-xl: 28px;
}

body {
    font-family: "Nunito", sans-serif;
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 212, 73, 0.55), transparent 18%),
        radial-gradient(circle at 80% 20%, rgba(255, 123, 143, 0.28), transparent 18%),
        radial-gradient(circle at 85% 75%, rgba(89, 200, 92, 0.2), transparent 20%),
        linear-gradient(180deg, #dff3ff 0%, #c8e8ff 48%, #edf7ff 100%);
    color: var(--en-ink);
    min-height: 100vh;
}

a {
    text-decoration: none;
}

.auth-shell,
.admin-shell {
    min-height: 100vh;
}

.floating-cloud {
    position: absolute;
    width: 160px;
    height: 64px;
    background: rgba(255, 255, 255, 0.65);
    filter: blur(3px);
    border-radius: 999px;
}

.floating-cloud::before,
.floating-cloud::after {
    content: "";
    position: absolute;
    background: inherit;
    border-radius: 50%;
}

.floating-cloud::before {
    width: 74px;
    height: 74px;
    left: 18px;
    top: -24px;
}

.floating-cloud::after {
    width: 92px;
    height: 92px;
    right: 18px;
    top: -36px;
}

.auth-card,
.en-panel,
.metric-card,
.content-card {
    background: var(--en-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--en-border);
    border-radius: var(--en-radius-xl);
    box-shadow: var(--en-shadow);
}

.auth-card {
    max-width: 460px;
}

.illustration-frame {
    background: linear-gradient(180deg, #7cc7ff 0%, #b8e4ff 100%);
    border: 4px solid rgba(52, 145, 255, 0.55);
    border-radius: 28px;
    overflow: hidden;
}

.illustration-frame img,
.banner-preview img,
.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-en-primary {
    border: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffd95d 0%, #ffc72d 100%);
    color: #243252;
    font-weight: 800;
    box-shadow: 0 14px 24px rgba(255, 204, 51, 0.35);
}

.btn-en-outline {
    border-radius: 18px;
    border: 2px solid rgba(246, 107, 107, 0.55);
    color: #d85151;
    background: rgba(255, 255, 255, 0.85);
    font-weight: 700;
}

.btn-en-soft {
    border-radius: 14px;
    background: rgba(123, 191, 255, 0.16);
    color: var(--en-blue);
    font-weight: 700;
}

.admin-shell .sidebar {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 252, 239, 0.92) 0%, rgba(247, 251, 255, 0.9) 48%, rgba(233, 246, 255, 0.92) 100%);
    border-right: 1px solid rgba(124, 184, 255, 0.18);
}

.brand-badge {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(145deg, #ffe894, #ffc830);
    color: #38415a;
    font-size: 1.35rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
}

.sidebar-backdrop {
    position: absolute;
    inset: -16% -28% auto auto;
    width: 320px;
    height: 320px;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.52) 34%, rgba(255, 255, 255, 0) 68%);
    pointer-events: none;
}

.sidebar-brand,
.sidebar-profile,
.sidebar-section-label,
.nav-pill,
.sidebar form {
    position: relative;
    z-index: 1;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-brand-mark {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    display: grid;
    place-items: center;
    padding: 0.45rem;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffe99d 0%, #ffc93c 100%);
    box-shadow: 0 18px 30px rgba(255, 205, 64, 0.28);
}

.sidebar-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sidebar-brand-copy {
    min-width: 0;
}

.sidebar-brand-kicker {
    font-size: 0.95rem;
    font-weight: 800;
    color: rgba(35, 49, 79, 0.28);
    letter-spacing: 0.01em;
}

.sidebar-brand-title {
    font-size: 2rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #2c4474;
}

.sidebar-brand-text {
    margin-top: 0.45rem;
    max-width: 180px;
    font-size: 1rem;
    color: #627189;
}

.sidebar-profile {
    border-radius: 26px;
}

.sidebar-profile-badge {
    background: linear-gradient(180deg, #ffe8a8 0%, #ffc83c 100%);
}

.sidebar-section-label {
    margin: 0.75rem 0 0.25rem;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(84, 103, 141, 0.7);
}

.nav-pill {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    padding: 0.9rem 1rem;
    border-radius: 22px;
    color: var(--en-ink);
    transition: all .24s ease;
}

.nav-pill-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    color: #304777;
    box-shadow: 0 14px 24px rgba(146, 174, 214, 0.18);
    font-size: 1.1rem;
}

.nav-pill-label {
    flex: 1;
    font-size: 1.02rem;
    font-weight: 800;
}

.nav-pill-arrow {
    color: rgba(48, 71, 119, 0.6);
    transition: transform .24s ease, color .24s ease;
}

.nav-pill:hover,
.nav-pill.active {
    background: linear-gradient(135deg, rgba(198, 225, 255, 0.72), rgba(255, 255, 255, 0.92));
    color: #1e2d52;
    transform: translateX(6px);
    box-shadow: 0 18px 36px rgba(127, 170, 223, 0.18);
}

.nav-pill:hover .nav-pill-arrow,
.nav-pill.active .nav-pill-arrow {
    transform: translateX(2px);
    color: #2f64d6;
}

.nav-pill.active .nav-pill-icon {
    background: linear-gradient(180deg, #ffe7a0 0%, #ffcb3d 100%);
    color: #2f3d63;
}

.main-area {
    flex: 1;
}

.page-topbar {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(124, 184, 255, 0.18);
    border-radius: 24px;
}

.metric-card {
    padding: 1.35rem;
    position: relative;
    overflow: hidden;
}

.metric-card::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    right: -18px;
    bottom: -20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.26);
}

.metric-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #fff;
}

.content-card {
    padding: 1.4rem;
}

.table-en {
    --bs-table-bg: transparent;
    --bs-table-color: var(--en-ink);
}

.table-en tbody tr {
    border-color: rgba(92, 141, 255, 0.08);
}

.table-en tbody tr:hover {
    background: rgba(255, 255, 255, .5);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font-weight: 700;
    font-size: 0.82rem;
}

.chip-free {
    background: rgba(89, 200, 92, 0.14);
    color: #2e9d31;
}

.chip-premium {
    background: rgba(255, 123, 143, 0.14);
    color: #df4d67;
}

.chip-draft {
    background: rgba(111, 123, 148, 0.14);
    color: #566176;
}

.chip-published {
    background: rgba(92, 141, 255, 0.14);
    color: #325fe0;
}

.gradient-panel {
    background: linear-gradient(180deg, rgba(130, 199, 255, 0.24), rgba(255, 255, 255, 0.94));
}

.section-title {
    font-weight: 900;
    letter-spacing: -0.02em;
}

.banner-preview {
    width: 132px;
    height: 82px;
    border-radius: 18px;
    overflow: hidden;
}

.video-thumb {
    width: 72px;
    height: 72px;
    border-radius: 18px;
}

.feature-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.feature-list li {
    padding: 0.45rem 0 0.45rem 1.8rem;
    position: relative;
}

.feature-list li::before {
    content: "\F26A";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 0.45rem;
    color: var(--en-green);
}

@media (max-width: 991px) {
    .admin-shell {
        flex-direction: column;
    }

    .admin-shell .sidebar {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid rgba(124, 184, 255, 0.18);
    }

    .sidebar-brand-title {
        font-size: 1.6rem;
    }

    .sidebar-brand-text {
        max-width: none;
    }

    /* Slim sidebar improvements */

    .sidebar {
        width: 260px;
    }

    .sidebar-brand {
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .sidebar-user {
        padding: 6px 4px;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: #f1f4ff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
    }

    .nav-pill {
        padding: 10px 12px;
        border-radius: 10px;
        font-size: 14px;
    }

    .nav-pill-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}