@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');
/* Base */:root
{
    --bg: #0b1220;
    --panel: rgba(255, 255, 255, 0.06);
    --panel2: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.10);
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.65);
    --accent: #7c5cff;
    --accent2: #22c55e;
    --warn: #f59e0b;
    --danger: #ef4444;
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.40);
    --radius: 16px;
}

body.light {
    --bg: #f4f6fb;
    --panel: rgba(0, 0, 0, 0.04);
    --panel2: rgba(0, 0, 0, 0.06);
    --border: rgba(0, 0, 0, 0.10);
    --text: rgba(10, 15, 25, 0.92);
    --muted: rgba(10, 15, 25, 0.62);
    --shadow: 0 18px 60px rgba(10, 15, 25, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Poppins";
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(1000px 600px at 15% 10%, rgba(124, 92, 255, 0.25), transparent 60%),
        radial-gradient(900px 600px at 80% 20%, rgba(34, 197, 94, 0.18), transparent 55%),
        radial-gradient(900px 700px at 60% 90%, rgba(245, 158, 11, 0.10), transparent 60%),
        var(--bg);
    background-repeat: no-repeat;
    background-size: cover;
    transform: translateZ(0);
}

a {
    color: inherit;
    text-decoration: none;
}

/* Layout */
.dashboard {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    transition: all 0.4s ease;
}

.dashboard > * {
    min-width: 0;
}

body.sidebar-collapsed .dashboard {
    grid-template-columns: 92px 1fr;
}

body.sidebar-collapsed .sidebar-header {
    padding: 14px;
    border: none !important;
    border-radius: var(--radius);
    background: transparent !important;
    box-shadow: none !important;
}

body.sidebar-collapsed .sidebar-collapse-btn{
    transform: rotate(-180deg) !important;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    max-height: 100vh;
    padding: 18px;
    padding-bottom: 30px;
    border-right: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(14px);
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Custom scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sidebar-header {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.sidebar-header h2 {
    margin: 0 0 6px;
    font-size: 18px;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
}

.sidebar-header p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-wrap: break-word;
}

body.sidebar-collapsed .sidebar-header h2,
body.sidebar-collapsed .sidebar-header p {
    display: none;
}

.sidebar-collapse-btn {
    width: 40px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--panel2);
    color: var(--text);
    cursor: pointer;
    float: right;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    overflow: visible;
}

.sidebar-menu li {
    margin: 8px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: var(--muted);
    transition: all 140ms ease;
}

.nav-emoji {
    width: 28px;
    display: inline-flex;
    justify-content: center;
}

body.sidebar-collapsed .nav-text {
    display: none;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.10);
    color: var(--text);
}

.sidebar-menu a.active {
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.28), rgba(124, 92, 255, 0.12));
    border-color: rgba(124, 92, 255, 0.35);
    color: var(--text);
}

.main-content {
    padding: 26px;
    max-width: 100%;
}

.top-actions {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 55;
    display: inline-flex;
    gap: 10px;
}

/* Announcement Marquee Bar */
.announcement-marquee-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.95), rgba(34, 197, 94, 0.85));
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-content {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 10px 20px;
    animation: marquee 10s linear infinite;
    white-space: nowrap;
    will-change: transform;
}

.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-item {
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.marquee-separator {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    margin: 0 10px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.page-header h1 {
    margin: 0;
    font-size: 35px;
}

.page-header p {
    margin: 6px 0 0;
    color: var(--muted);
}

.dashboard-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
}

.card {
    grid-column: span 12;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 16px;
    margin: 10px 0;
}

.summary-card {
    grid-column: span 12;
    padding: 14px;
}

.summary-card .label {
    color: var(--muted);
    font-size: 16px;
}

.summary-card .value {
    font-size: 30px;
    margin-top: 6px;
    font-weight: 700;
}

.summary-card .sub {
    color: var(--muted);
    font-size: 16px;
    margin-top: 4px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 13px;
}

.badge.ok {
    border-color: rgb(34 197 94);
    background: rgb(34 197 94 / 35%);
    color: rgba(255, 255, 255, 0.88);
}

.badge.warn {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.10);
    color: rgba(255, 255, 255, 0.88);
}

.badge.danger {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.10);
    color: rgba(255, 255, 255, 0.88);
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.kv {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.kv .k {
    color: var(--muted);
    font-size: 12px;
}

.kv .v {
    font-weight: 650;
}

.progress {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.progress > div {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(124, 92, 255, 0.95), rgba(34, 197, 94, 0.85));
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    cursor: pointer;
    transition: transform 120ms ease, background 120ms ease;
}

.btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.10);
}

.btn.primary {
    border-color: rgb(124 92 255);
    background: rgb(124 92 255 / 42%);
}

.btn.success {
    border-color: rgba(34, 197, 94, 0.40);
    background: rgba(34, 197, 94, 0.14);
}

.btn.danger {
    border-color: rgba(239, 68, 68, 0.40);
    background: rgba(239, 68, 68, 0.12);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.table-wrap {
    overflow: auto;
    max-width: 100%;
}

.grid > * {
    min-width: 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

.table th {
    color: var(--muted);
    font-weight: 600;
    font-size: 12px;
}

.input,
select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.18);
    color: var(--text);
    outline: none;
    font-family: 'Poppins';
}

.label {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.link {
    color: rgba(124, 92, 255, 0.95);
    text-decoration: none;
}

.alert {
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 13px;
}

.alert.ok {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.10);
}

.alert.danger {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.10);
}

/* Mobile sidebar */
.sidebar-toggle {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 50;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text);
    display: none;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 40;
    display: none;
}

/* Ad viewer */
.ad-shell {
    max-width: 920px;
    margin: 0 auto;
}

.ad-media {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.25);
    min-height: 280px;
    overflow: hidden;
}

/* Video container - override grid for video */
.ad-media > div:first-child {
    display: block !important;
}

.ad-media iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    min-width: 260px;
    max-width: 360px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(45, 190, 23, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    display: none;
}

.toast.show {
    display: block;
}

.toast.success,
.toast.show.success {
    background: rgba(16, 185, 129, 0.95) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
    color: white !important;
}

body.light .toast.success,
body.light .toast.show.success {
    background: rgba(16, 185, 129, 0.95) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
    color: white !important;
}

.toast.success .t,
.toast.show.success .t {
    color: white !important;
    font-weight: 700;
    margin: 0 0 4px;
}

.toast.success .d,
.toast.show.success .d {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 13px;
}

.toast .t {
    font-weight: 700;
    margin: 0 0 4px;
}

.toast .d {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

@media(min-width: 700px) {
    .summary-card {
        grid-column: span 6;
    }
}

@media(min-width: 1100px) {
    .summary-card {
        grid-column: span 4;
    }
}

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

    .sidebar {
        position: fixed;
        left: -320px;
        top: 0;
        width: 300px;
        z-index: 60;
        transition: left 160ms ease;
    }

    body.menu-open .sidebar {
        left: 0;
    }

    body.menu-open .mobile-overlay {
        display: block;
    }

    .sidebar-toggle {
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }

    .main-content {
        padding-top: 70px;
    }

    body.sidebar-collapsed .dashboard {
        grid-template-columns: 1fr;
    }
}

/* Landing */
.landing {
    min-height: 100vh;
    padding: 26px;
    display: grid;
    place-items: center;
}

.landing-shell {
    width: 100%;
    max-width: 1100px;
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.landing-links {
    display: flex;
    gap: 14px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
}

.landing-links a {
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid transparent;
}

.landing-links a:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.trust-strip {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trust-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 13px;
}

.stats {
    border-radius: calc(var(--radius) + 6px);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow);
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.stat {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.12);
    padding: 12px;
}

body.light .stat {
    background: rgba(255, 255, 255, 0.55);
}

.stat-v {
    font-weight: 900;
    font-size: 22px;
}

.stat-k {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

.testimonials {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
}

.quote {
    padding: 16px;
}

.quote-top {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: start;
}

.quote-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    background: rgba(124, 92, 255, 0.12);
    font-size: 18px;
    font-weight: 900;
}

.quote-text {
    color: var(--text);
    line-height: 1.6;
}

.quote-foot {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
}

.quote-meta {
    color: var(--muted);
    font-size: 13px;
}

.cta {
    border-radius: calc(var(--radius) + 10px);
    border: 1px solid rgba(124, 92, 255, 0.35);
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(34, 197, 94, 0.10));
    box-shadow: var(--shadow);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: space-between;
}

.cta-title {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
}

.cta-sub {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.cta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.section {
    margin-top: 18px;
}

.section-title {
    margin: 0;
    font-size: 20px;
}

.section-sub {
    margin: 8px 0 0;
    color: var(--muted);
}

.cards-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
}

.plan-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
}

.plan {
    position: relative;
    padding: 18px;
}

.plan.popular {
    border-color: rgba(124, 92, 255, 0.40);
    background: linear-gradient(180deg, rgba(124, 92, 255, 0.18), rgba(255, 255, 255, 0.04));
}

.plan .price {
    font-size: 30px;
    font-weight: 900;
    margin-top: 10px;
}

.plan ul {
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--muted);
}

.plan li {
    margin: 8px 0;
}

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
}

.step-num {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    font-weight: 800;
}

.faq {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.faq details {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 10px 12px;
}

.faq summary {
    cursor: pointer;
    font-weight: 700;
}

.faq p {
    margin: 8px 0 0;
    color: var(--muted);
}

.landing-footer {
    margin-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
    display: grid;
    gap: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.footer-col h4 {
    margin: 0 0 8px;
}

.footer-col a {
    color: var(--muted);
    font-size: 13px;
}

.footer-col a:hover {
    color: var(--text);
}

/* Auth */
.auth {
    min-height: 100vh;
    padding: 26px;
    display: grid;
    place-items: center;
}

.auth-shell {
    width: 100%;
    max-width: 520px;
}

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

.auth-card {
    border-radius: calc(var(--radius) + 6px);
    border: 1px solid var(--border);
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 18px;
}

.auth-head h1 {
    margin: 0;
    font-size: 22px;
}

.auth-head p {
    margin: 8px 0 0;
    color: var(--muted);
}

.auth-form {
    margin-top: 14px;
    display: grid;
    gap: 12px;
}

.auth-foot {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.auth-note {
    margin-top: 12px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

@media(min-width: 980px) {
    .cards-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .plan-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr 1fr;
    }

    .stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .testimonials {
        grid-template-columns: repeat(3, 1fr);
    }

    .cta {
        flex-direction: row;
        align-items: center;
    }
}

.hero {
    border-radius: calc(var(--radius) + 6px);
    border: 1px solid var(--border);
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 22px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.hero h1 {
    margin: 0;
    font-size: 34px;
    letter-spacing: -0.5px;
}

.hero p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 16px;
}

@media(min-width: 980px) {
    .hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: center;
    }

    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


.sub-heading{
    font-size: 20px;
    font-weight: 700;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn svg {
    width: 32px;
    height: 32px;
    display: block;
}

.whatsapp-btn svg path {
    fill: #ffffff;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive WhatsApp Button */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-btn {
        width: 56px;
        height: 56px;
    }
    
    .whatsapp-btn svg {
        width: 28px;
        height: 28px;
    }
}