@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* ═══════════════════════════════════════════════════════════
   BRAND DESIGN SYSTEM — SUNSET ORANGE EDITION
   Primary: Sunset Orange #F2A65A
   Dark:    Charcoal Obsidian #1A1A2E
   Accent:  Emerald #10B981
   ═══════════════════════════════════════════════════════════ */

:root {
    /* ── Brand Core ─────────────────────────────────────────── */
    --brand-primary: #F2A65A;
    /* Sunset Orange — CTAs, highlights */
    --brand-primary-soft: rgba(242, 166, 90, 0.12);
    --brand-primary-mid: rgba(242, 166, 90, 0.25);
    --brand-primary-deep: #D4854A;
    /* Pressed / hover state */

    --brand-secondary: #1A1A2E;
    /* Charcoal Obsidian — hero surfaces */
    --brand-secondary-soft: #F0F0F8;
    /* Very light tint for active states */
    --brand-secondary-light: #2E2E4A;
    /* Lighter obsidian for gradients */

    /* ── Functional Palette ─────────────────────────────────── */
    --brand-teal: #10B981;
    /* Success / connected */
    --brand-teal-soft: rgba(16, 185, 129, 0.10);
    --sky-blue: #3B82F6;
    /* Info / links */

    /* ── Neutrals ──────────────────────────────────────────── */
    --white: #ffffff;
    --chalk: #F7F8FC;
    --bg-main: #F9FAFB;
    --text-main: #1A1A2E;
    --text-muted: #64748B;
    --border: #E8EBF4;
    --border-light: #EEF0F9;
    --border-subtle: #F1F4FB;

    /* ── Semantic ───────────────────────────────────────────── */
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;

    /* ── Shadows ────────────────────────────────────────────── */
    --shadow-xs: 0 1px 3px rgba(26, 26, 46, 0.06);
    --shadow-sm: 0 4px 12px rgba(26, 26, 46, 0.08);
    --shadow-md: 0 8px 24px rgba(26, 26, 46, 0.10);
    --shadow-lg: 0 16px 40px rgba(26, 26, 46, 0.12);
    --shadow-xl: 0 24px 60px rgba(26, 26, 46, 0.15);
    --premium-shadow: 0 8px 30px rgba(26, 26, 46, 0.08);

    /* ── Orange Glow ────────────────────────────────────────── */
    --glow-orange: 0 8px 28px rgba(242, 166, 90, 0.28);
    --glow-teal: 0 8px 28px rgba(16, 185, 129, 0.24);
}

/* ── Reset ──────────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: var(--bg-main);
    height: 100vh;
    max-width: 2000px;
    margin: 0 auto;
}

a {
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════ */
.dashboard-layout {
    display: flex;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

/* ── Sidebar ────────────────────────────────────────────── */
.sidebar {
    width: 250px;
    height: 100%;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--border);
}

.sidebar-top {
    padding: 20px;
    height: 80px;
    border-bottom: 1px solid var(--border);
}

.sidebar-top .sidebar-img {
    height: 70%;
    width: 70%;
}

.sidebar-top .sidebar-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow-y: auto;
}

.nav-group {
    padding: 14px 8px 5px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.navlink {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.navlink i {
    font-size: 1.05rem;
    flex-shrink: 0;
}

.navlink:hover:not(.active) {
    background: var(--bg-main);
    color: var(--text-main);
    transform: translateX(4px);
}

.navlink.active {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-deep));
    color: #fff;
    font-weight: 600;
    box-shadow: var(--glow-orange);
}

.navlink.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    background: var(--brand-secondary);
    border-radius: 0 3px 3px 0;
}

.navlink.logout {
    background-color: rgba(239, 68, 68, 0.08);
    color: #EF4444;
}

.sidebar-bottom {
    padding: 12px 10px;
    border-top: 1px solid var(--border);
}

/* ── Dashboard Content ──────────────────────────────────── */
.dashboard-content {
    flex: 1;
    height: 100%;
    overflow-y: scroll;
}

/* ═══════════════════════════════════════════════════════════
   TOPBAR
   ═══════════════════════════════════════════════════════════ */
.topbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.topbar-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.topbar-center {
    flex: 0 1 340px;
}

.search-wrap {
    position: relative;
}

.search-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

.search-wrap input {
    width: 100%;
    padding: 9px 14px 9px 36px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.825rem;
    color: var(--text-main);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-wrap input::placeholder {
    color: var(--text-muted);
}

.search-wrap input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px var(--brand-primary-soft);
    background: var(--white);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

/* Topbar notification panel */
.topbar-notif-panel {
    position: absolute;
    top: 48px;
    right: 0;
    width: 320px;
    max-height: 420px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    display: none;
    z-index: 1400;
}

.topbar-notif-panel.open {
    display: block;
    animation: slideDown .18s ease both;
}

.notif-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 99px;
    background: var(--brand-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    display: none;
    align-items: center;
    justify-content: center;
}

.tpn-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tpn-header-actions {
    display: flex;
    gap: 8px;
}

.tpn-clear {
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 700;
}

.tpn-clear:hover {
    color: var(--brand-primary);
}

.tpn-item.unread {
    background: var(--bg-main);
}

.tpn-item {
    transition: background .12s;
}

@keyframes slideDown {
    from {
        transform: translateY(-6px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.topbar-notif-panel .tpn-header {
    padding: 12px 14px;
    font-weight: 800;
    color: var(--brand-primary);
    border-bottom: 1px solid var(--border);
}

.tpn-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 320px;
    overflow: auto;
}

.tpn-item {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--bg-main);
    align-items: flex-start;
}

.tpn-item:last-child {
    border-bottom: none;
}

.tpn-type {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 0.9rem;
}

.tpn-body {
    flex: 1;
    min-width: 0;
}

.tpn-text {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 600;
}

.tpn-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.tpn-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-left: 8px;
}

.tpn-footer {
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.tpn-footer a {
    color: var(--brand-primary);
    font-weight: 700;
}

.tpn-type.success {
    background: var(--brand-teal);
}

.tpn-type.info {
    background: var(--brand-primary);
}

.tpn-type.warn {
    background: #EF4444;
}

.tb-icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background 0.15s, box-shadow 0.15s;
    color: var(--text-muted);
}

.tb-icon-btn i {
    font-size: 1.1rem;
}

.tb-icon-btn:hover {
    background: var(--bg-main);
    box-shadow: var(--shadow-xs);
}

.notif-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 6px;
    height: 6px;
    background: var(--brand-primary);
    border-radius: 50%;
    border: 1.5px solid var(--white);
}

.topbar-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 12px;
    border-left: 1px solid var(--border);
    cursor: pointer;
}

.tp-avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    box-shadow: var(--glow-orange);
}

.tp-info {
    text-align: right;
}

.tp-name {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-main);
}

.tp-plan {
    font-size: 0.68rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

/* ── Mobile menu toggle ─────────────────────────────────── */
.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 12px;
}

.menu-toggle:hover {
    background: var(--border);
}

.menu-toggle i {
    font-size: 1rem;
    color: var(--text-main);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 150;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ── Page Content ───────────────────────────────────────── */
.content {
    padding: 24px 28px 48px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ═══════════════════════════════════════════════════════════
   BUTTON SYSTEM
   ═══════════════════════════════════════════════════════════ */
.btn {
    padding: 10px 18px;
    background: none;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.825rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Primary orange — the hero CTA */
.btn.navy,
.btn.primary {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-deep));
    color: #fff;
    box-shadow: var(--glow-orange);
}

.btn.navy:hover,
.btn.primary:hover {
    background: linear-gradient(135deg, var(--brand-primary-deep), #C47340);
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(242, 166, 90, 0.38);
}

/* Teal — success / confirm */
.btn.teal {
    background: linear-gradient(135deg, var(--brand-teal), #0EA572);
    color: #fff;
    box-shadow: var(--glow-teal);
}

.btn.teal:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.38);
}

/* Outline variants */
.btn.outline-teal {
    background: transparent;
    border: 1.5px solid var(--brand-teal);
    color: var(--brand-teal);
}

.btn.outline-teal:hover {
    background: var(--brand-teal);
    color: #fff;
}

.btn.outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-main);
}

.btn.outline:hover {
    background: var(--bg-main);
    border-color: var(--brand-primary);
}

/* Ghost — on dark backgrounds */
.btn.ghost {
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, 0.18);
}

.btn.danger {
    background: #EF4444;
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   FAQ SECTION
   ═══════════════════════════════════════════════════════════ */
.faq-section {
    width: 100%;
}

.faq-container {
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.faq-header h2 {
    color: var(--brand-primary);
    font-size: 1.6rem;
}

.faq-header p {
    color: var(--text-muted);
    max-width: 400px;
    line-height: 1.5;
}

.support-btn {
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--bg-main);
    font-weight: 600;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.18s;
}

.support-btn:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.faq-item {
    display: flex;
    flex-direction: column;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    background: var(--white);
    transition: all 0.25s ease;
}

.faq-item:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--brand-secondary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.faq-item.active .faq-answer {
    max-height: 100px;
    padding-top: 12px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .topbar-left {
        display: flex;
        align-items: center;
        flex: 1;
    }

    .menu-toggle {
        display: flex;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        height: 100%;
        z-index: 200;
        transition: left 0.3s;
    }

    .sidebar.active {
        left: 0;
    }

    .icon-help {
        display: none !important;
    }
}

@media (max-width: 850px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-header {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .topbar {
        padding: 10px 12px;
        height: 70px;
    }

    .topbar-center {
        display: none;
    }

    .tp-info {
        display: none;
    }

    .tp-avatar {
        width: 36px;
        height: 36px;
    }

    .content {
        padding: 16px;
        gap: 14px;
    }

    .faq-container {
        padding: 22px 18px;
    }
}