/*
|--------------------------------------------------------------------------
| Project UI Styles
|--------------------------------------------------------------------------
| Bootstrap handles the base layout. This file adds a unique brand style for
| the URL shortener SaaS website, user panel and admin panel.
*/

:root {
    --brand: #6d5dfc;
    --brand-dark: #4b3fe4;
    --brand-soft: #eef0ff;
    --brand-green: #19b989;
    --ink: #151827;
    --muted: #6b7280;
    --line: #e8eaf3;
    --soft: #f7f8ff;
    --warning-soft: #fff7e6;
}

body {
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #fff;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

.card,
.btn,
.form-control,
.form-select,
.alert,
.badge,
.dropdown-menu,
.modal-content {
    border-radius: 1rem;
}

.btn-brand,
.btn-primary {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-active-bg: var(--brand-dark);
    --bs-btn-active-border-color: var(--brand-dark);
    color: #fff;
    box-shadow: 0 16px 30px rgba(109, 93, 252, .25);
}

.btn-outline-brand {
    color: var(--brand-dark);
    border: 1px solid rgba(109, 93, 252, .35);
    background: #fff;
}

.btn-outline-brand:hover {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

.navbar {
    backdrop-filter: blur(16px);
}

.navbar-brand {
    color: var(--ink) !important;
    letter-spacing: -.03em;
}

.navbar .nav-link {
    color: #4b5563;
    font-weight: 600;
}

.navbar .nav-link:hover {
    color: var(--brand);
}

.hero-section {
    background:
        radial-gradient(circle at 10% 10%, rgba(109, 93, 252, .18), transparent 30%),
        radial-gradient(circle at 90% 20%, rgba(25, 185, 137, .14), transparent 28%),
        linear-gradient(180deg, #fbfcff 0%, #f5f6ff 100%);
    border-bottom: 1px solid var(--line);
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(15px);
    opacity: .55;
    pointer-events: none;
}

.hero-glow-one {
    width: 280px;
    height: 280px;
    background: rgba(109, 93, 252, .18);
    left: -80px;
    top: 120px;
}

.hero-glow-two {
    width: 240px;
    height: 240px;
    background: rgba(25, 185, 137, .16);
    right: -60px;
    bottom: 80px;
}

.hero-badge {
    color: var(--brand-dark);
    background: rgba(255, 255, 255, .8);
    border: 1px solid rgba(109, 93, 252, .16);
    box-shadow: 0 12px 30px rgba(18, 24, 40, .06);
    font-weight: 700;
}

.badge-dot {
    width: .6rem;
    height: .6rem;
    display: inline-block;
    border-radius: 999px;
    background: var(--brand-green);
    box-shadow: 0 0 0 6px rgba(25, 185, 137, .12);
}

.hero-title {
    max-width: 760px;
    font-size: clamp(2.4rem, 6vw, 4.9rem);
    line-height: .96;
    letter-spacing: -.065em;
    font-weight: 900;
}

.hero-subtitle {
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 620px;
}

.shorten-card {
    padding: .55rem;
    border: 1px solid rgba(109, 93, 252, .18);
    border-radius: 1.35rem;
    background: #fff;
    box-shadow: 0 24px 60px rgba(18, 24, 40, .09);
}

.feature-pills span {
    display: inline-flex;
    align-items: center;
    padding: .55rem .85rem;
    color: #374151;
    background: rgba(255, 255, 255, .75);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 700;
}

.dashboard-preview,
.solution-card,
.pricing-card,
.blog-card,
.feature-card,
.cta-card,
.stat-box {
    border: 1px solid rgba(109, 93, 252, .12);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, .88);
}

.dashboard-preview {
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.dashboard-preview:before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(109, 93, 252, .12), transparent 35%);
    pointer-events: none;
}

.dashboard-preview > * { position: relative; }

.status-pill,
.popular-label,
.mini-label {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.status-pill {
    padding: .45rem .7rem;
    color: #067857;
    background: rgba(25, 185, 137, .12);
}

.link-result {
    padding: 1rem;
    border-radius: 1.25rem;
    background: var(--soft);
    border: 1px solid var(--line);
}

.metric-card {
    padding: 1rem;
    border-radius: 1.15rem;
    background: #fff;
    border: 1px solid var(--line);
}

.metric-card span,
.metric-card small {
    display: block;
    color: var(--muted);
    font-size: .85rem;
    font-weight: 700;
}

.metric-card strong {
    display: block;
    margin-top: .25rem;
    font-size: 1.6rem;
    line-height: 1;
}

.analytics-mini {
    height: 150px;
    padding: 1rem;
    display: flex;
    align-items: end;
    gap: .7rem;
    border-radius: 1.15rem;
    background: linear-gradient(180deg, var(--brand-soft), #fff);
    border: 1px solid var(--line);
}

.analytics-bar {
    flex: 1;
    min-height: 24px;
    border-radius: 999px 999px .35rem .35rem;
    background: linear-gradient(180deg, var(--brand), var(--brand-green));
}

.country-list {
    display: grid;
    gap: .75rem;
}

.country-list div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 1rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid var(--line);
}

.country-list.large div {
    padding: 1rem 1.15rem;
}

.stat-box {
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 18px 45px rgba(18, 24, 40, .05);
}

.stat-box strong {
    display: block;
    font-size: 1.9rem;
    letter-spacing: -.04em;
}

.stat-box span {
    color: var(--muted);
    font-weight: 700;
}

.section-heading {
    max-width: 720px;
}

.section-heading h2,
.section-title,
.cta-card h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.06;
    letter-spacing: -.05em;
    font-weight: 900;
}

.section-heading p,
.section-text,
.cta-card p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.section-kicker {
    display: inline-flex;
    margin-bottom: .7rem;
    color: var(--brand-dark);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.soft-section {
    background: linear-gradient(180deg, #fbfcff 0%, var(--soft) 100%);
}

.feature-card,
.solution-card,
.pricing-card,
.blog-card,
.cta-card {
    padding: 1.5rem;
    box-shadow: 0 18px 50px rgba(18, 24, 40, .06);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 1rem;
    background: var(--brand-soft);
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
}

.feature-card p,
.blog-card p {
    color: var(--muted);
    line-height: 1.65;
}

.check-list {
    padding: 0;
    margin: 1.25rem 0 0;
    list-style: none;
    display: grid;
    gap: .85rem;
}

.check-list li {
    position: relative;
    padding-left: 2rem;
    color: #394150;
    font-weight: 700;
}

.check-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -.05rem;
    width: 1.35rem;
    height: 1.35rem;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--brand-green);
    border-radius: 999px;
    font-size: .8rem;
}

.mini-label {
    color: var(--brand-dark);
}

.campaign-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    background: var(--soft);
}

.campaign-row span,
.payment-step small {
    display: block;
    color: var(--muted);
}

.campaign-row strong {
    display: block;
    font-size: 1.3rem;
}

.payment-step {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    background: #fff;
}

.payment-step + .payment-step {
    margin-top: .85rem;
}

.payment-step > span {
    width: 2.4rem;
    height: 2.4rem;
    flex: none;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    border-radius: .85rem;
    background: var(--brand);
}

.pricing-card {
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 70px rgba(18, 24, 40, .10);
}

.pricing-card.popular {
    border-color: rgba(109, 93, 252, .45);
    box-shadow: 0 28px 80px rgba(109, 93, 252, .15);
}

.popular-label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: .4rem .65rem;
    color: #fff;
    background: var(--brand);
}

.price-line {
    display: flex;
    align-items: end;
    gap: .4rem;
    margin: 1.25rem 0;
}

.price-line span {
    font-size: 3rem;
    line-height: .85;
    font-weight: 900;
    letter-spacing: -.05em;
}

.price-line small {
    color: var(--muted);
    font-weight: 800;
}

.pricing-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: grid;
    gap: .7rem;
}

.pricing-list li {
    color: #394150;
    font-weight: 700;
}

.pricing-list li:before {
    content: "✓";
    color: var(--brand-green);
    margin-right: .55rem;
    font-weight: 900;
}

.blog-card {
    background: #fff;
}

.cta-section {
    background: #fff;
}

.cta-card {
    max-width: 840px;
    background:
        radial-gradient(circle at top left, rgba(109, 93, 252, .14), transparent 35%),
        radial-gradient(circle at bottom right, rgba(25, 185, 137, .12), transparent 35%),
        #fff;
}

footer.bg-dark {
    background: #111827 !important;
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: clamp(2.3rem, 11vw, 4rem);
    }

    .dashboard-preview {
        margin-top: 1rem;
    }
}

/* --------------------------------------------------------------------------
   Public demo link creator
   -------------------------------------------------------------------------- */
.link-demo-card {
    padding: 1.75rem;
    border: 1px solid rgba(18, 24, 40, .10);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 28px 80px rgba(18, 24, 40, .14);
}

.demo-input-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .9rem;
    align-items: center;
}

.demo-url-box {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem;
    border: 1px solid rgba(25, 185, 137, .55);
    border-radius: .75rem;
    background: rgba(236, 253, 245, .75);
}

.demo-url-box .form-control {
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: 1rem;
}

.demo-clear,
.demo-paste {
    border: 0;
    border-radius: .7rem;
    padding: .6rem .8rem;
    font-weight: 800;
}

.demo-clear {
    color: #ef4444;
    background: #fff1f2;
    font-size: 1.15rem;
    line-height: 1;
}

.demo-paste {
    color: var(--brand-dark);
    background: #eef2ff;
}

.demo-shorten-btn {
    white-space: nowrap;
    min-height: 3.5rem;
    display: inline-flex;
    align-items: center;
}

.valid-url {
    color: #16a34a;
    font-size: .9rem;
    font-weight: 800;
}

.demo-field .form-label {
    color: #4b5563;
    font-weight: 800;
}

.demo-actions .demo-toggle {
    width: 100%;
    min-height: 92px;
    display: grid;
    place-items: center;
    gap: .35rem;
    padding: .9rem;
    border: 2px solid #e5e7eb;
    border-radius: .9rem;
    background: #fff;
    color: #334155;
    text-align: center;
    transition: .18s ease;
}

.demo-actions .demo-toggle span {
    width: 2.15rem;
    height: 2.15rem;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: .6rem;
    background: var(--brand);
}

.demo-actions .demo-toggle strong {
    font-size: .82rem;
}

.demo-actions .demo-toggle:hover,
.demo-actions .demo-toggle.active {
    transform: translateY(-2px);
    border-color: var(--brand);
    background: #eef4ff;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .12);
}

.demo-actions .demo-toggle[data-target="password"] span { background: #10b981; }
.demo-actions .demo-toggle[data-target="password"]:hover,
.demo-actions .demo-toggle[data-target="password"].active { border-color: #10b981; background: #ecfdf5; }
.demo-actions .demo-toggle[data-target="expiration"] span { background: #a855f7; }
.demo-actions .demo-toggle[data-target="expiration"]:hover,
.demo-actions .demo-toggle[data-target="expiration"].active { border-color: #a855f7; background: #faf5ff; }
.demo-actions .demo-link-action span { background: #f59e0b; }
.demo-actions .demo-link-action:hover { border-color: #f59e0b; background: #fffbeb; }

.demo-note {
    color: var(--muted);
    font-size: .88rem;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Blog pages and footer
   -------------------------------------------------------------------------- */
.blog-hero-section,
.blog-detail-hero {
    padding: 5rem 0;
    background:
        radial-gradient(circle at top left, rgba(109, 93, 252, .16), transparent 34%),
        radial-gradient(circle at bottom right, rgba(25, 185, 137, .12), transparent 30%),
        linear-gradient(180deg, #fbfcff 0%, #f4f7ff 100%);
    border-bottom: 1px solid var(--line);
}

.blog-hero-title,
.blog-detail-heading h1 {
    font-size: clamp(2.4rem, 5vw, 4.25rem);
    line-height: 1;
    letter-spacing: -.06em;
    font-weight: 900;
}

.blog-hero-text,
.blog-detail-heading p {
    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1.75;
    max-width: 680px;
}

.blog-search-card,
.modern-blog-card,
.blog-sidebar .sidebar-widget,
.blog-content-card,
.empty-blog-state {
    border: 1px solid rgba(109, 93, 252, .12);
    border-radius: 1.35rem;
    background: #fff;
    box-shadow: 0 20px 55px rgba(18, 24, 40, .07);
}

.blog-search-card,
.blog-sidebar .sidebar-widget,
.blog-content-card,
.empty-blog-state {
    padding: 1.5rem;
}

.blog-category-strip {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    padding-bottom: .4rem;
}

.blog-category-strip a,
.topic-list a {
    display: inline-flex;
    padding: .65rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #374151;
    background: #fff;
    font-weight: 800;
    white-space: nowrap;
}

.blog-category-strip a.active,
.blog-category-strip a:hover,
.topic-list a:hover {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

.modern-blog-card {
    overflow: hidden;
    transition: .2s ease;
}

.modern-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 70px rgba(18, 24, 40, .11);
}

.blog-thumb,
.blog-detail-thumb {
    min-height: 190px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .55), transparent 26%),
        linear-gradient(135deg, var(--brand), var(--brand-green));
}

.blog-thumb span,
.blog-detail-thumb span {
    width: 4rem;
    height: 4rem;
    display: grid;
    place-items: center;
    border-radius: 1.2rem;
    color: #fff;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.35);
    font-size: 1.4rem;
    font-weight: 900;
}

.blog-badge {
    display: inline-flex;
    align-items: center;
    padding: .45rem .75rem;
    border-radius: 999px;
    color: var(--brand-dark);
    background: var(--brand-soft);
    font-size: .78rem;
    font-weight: 900;
}

.modern-blog-card h4 a {
    color: var(--ink);
}

.modern-blog-card p,
.sidebar-widget p,
.related-blog-item p {
    color: var(--muted);
    line-height: 1.65;
}

.read-more-link {
    font-weight: 900;
}

.blog-sidebar {
    display: grid;
    gap: 1.25rem;
}

.sidebar-widget h5 {
    font-weight: 900;
}

.topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.cta-widget {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark)) !important;
}

.cta-widget p {
    color: rgba(255,255,255,.82);
}

.blog-detail-heading {
    max-width: 880px;
}

.blog-detail-thumb {
    border-radius: 1.2rem;
}

.blog-content {
    color: #374151;
    font-size: 1.08rem;
    line-height: 1.9;
}

.related-blog-item + .related-blog-item {
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--line);
}

.related-blog-item a {
    color: var(--ink);
    font-weight: 900;
}

.sidebar-offset {
    top: 100px;
}

.site-footer {
    margin-top: 0;
    padding: 4.5rem 0 1.5rem;
    color: #fff;
    background:
        radial-gradient(circle at top left, rgba(109, 93, 252, .35), transparent 30%),
        linear-gradient(135deg, #0f172a, #111827 55%, #1e1b4b);
}

.footer-main {
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.footer-brand {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -.04em;
}

.footer-brand:hover { color: #fff; }
.footer-text { color: rgba(255,255,255,.68); line-height: 1.75; }

.site-footer h6 {
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 900;
}

.site-footer a:not(.footer-brand):not(.btn) {
    display: block;
    margin-bottom: .65rem;
    color: rgba(255,255,255,.68);
    font-weight: 700;
}

.site-footer a:hover { color: #fff !important; }

.footer-socials {
    display: flex;
    gap: .6rem;
    margin-top: 1.25rem;
}

.footer-socials span {
    width: 2.25rem;
    height: 2.25rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    color: #fff;
    font-weight: 900;
}

.footer-subscribe {
    display: flex;
    gap: .65rem;
}

.footer-subscribe .form-control {
    border: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    color: rgba(255,255,255,.6);
    font-weight: 700;
    font-size: .9rem;
}

@media (max-width: 991.98px) {
    .demo-input-row,
    .footer-subscribe {
        grid-template-columns: 1fr;
        display: grid;
    }

    .demo-shorten-btn {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .link-demo-card {
        padding: 1rem;
    }

    .demo-url-box {
        flex-wrap: wrap;
    }

    .demo-url-box .form-control {
        width: 100%;
        flex-basis: 100%;
    }
}

/*
|--------------------------------------------------------------------------
| Super Admin Color Theme
|--------------------------------------------------------------------------
| This section changes only the admin panel colors and surface styling.
| The admin layout, routes and page structure remain unchanged.
*/

.admin-body {
    --admin-primary: #2563eb;
    --admin-primary-dark: #1e3a8a;
    --admin-purple: #7c3aed;
    --admin-cyan: #06b6d4;
    --admin-pink: #ec4899;
    --admin-green: #10b981;
    --admin-ink: #111827;
    --admin-muted: #64748b;
    --admin-line: #e2e8f0;
    --admin-soft: #f8fafc;
    min-height: 100vh;
    color: var(--admin-ink);
    background:
        radial-gradient(circle at 15% 20%, rgba(37, 99, 235, .08), transparent 28%),
        radial-gradient(circle at 90% 10%, rgba(124, 58, 237, .08), transparent 28%),
        var(--admin-soft);
}

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

.admin-sidebar {
    width: 270px;
    color: #fff;
    background:
        linear-gradient(180deg, #172554 0%, #1e1b4b 45%, #581c87 100%);
    box-shadow: 18px 0 45px rgba(15, 23, 42, .12);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.admin-brand-mark {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--admin-cyan), var(--admin-purple));
    box-shadow: 0 12px 26px rgba(6, 182, 212, .25);
}

.admin-brand h4 {
    color: #fff;
    font-weight: 900;
    letter-spacing: -.03em;
}

.admin-brand small {
    color: rgba(255, 255, 255, .68);
    font-weight: 700;
}

.admin-nav .nav-link {
    color: rgba(255, 255, 255, .78);
    padding: .75rem .9rem;
    border-radius: .95rem;
    font-weight: 700;
    transition: all .18s ease;
}

.admin-nav .nav-link:hover,
.admin-nav .nav-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, .12);
    transform: translateX(3px);
}

.admin-nav .nav-link.active,
.admin-nav .nav-link[aria-current="page"] {
    color: #fff;
    background: linear-gradient(135deg, var(--admin-primary), var(--admin-purple));
    box-shadow: 0 14px 30px rgba(37, 99, 235, .28);
}

.admin-main {
    background: transparent;
}

.admin-topbar {
    color: var(--admin-ink);
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(16px);
    border-color: var(--admin-line) !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .04);
}

.admin-topbar strong {
    font-size: 1.1rem;
    letter-spacing: -.02em;
}

.admin-topbar-badge {
    color: var(--admin-primary-dark);
    background: rgba(37, 99, 235, .08);
    border: 1px solid rgba(37, 99, 235, .12);
    border-radius: 999px;
    padding: .45rem .75rem;
    font-size: .8rem;
    font-weight: 800;
}

.admin-body .card {
    border: 1px solid rgba(148, 163, 184, .22);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .07);
}

.admin-body .card-header {
    color: var(--admin-ink);
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border-bottom: 1px solid var(--admin-line);
    font-weight: 800;
}

.admin-body .table {
    --bs-table-hover-bg: rgba(37, 99, 235, .045);
    color: var(--admin-ink);
}

.admin-body .table th {
    color: var(--admin-muted);
    background: #f8fafc;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.admin-body .btn-primary {
    --bs-btn-bg: var(--admin-primary);
    --bs-btn-border-color: var(--admin-primary);
    --bs-btn-hover-bg: var(--admin-primary-dark);
    --bs-btn-hover-border-color: var(--admin-primary-dark);
    --bs-btn-active-bg: var(--admin-primary-dark);
    --bs-btn-active-border-color: var(--admin-primary-dark);
    box-shadow: 0 12px 24px rgba(37, 99, 235, .22);
}

.admin-body .btn-outline-primary {
    --bs-btn-color: var(--admin-primary);
    --bs-btn-border-color: rgba(37, 99, 235, .45);
    --bs-btn-hover-bg: var(--admin-primary);
    --bs-btn-hover-border-color: var(--admin-primary);
}

.admin-body .badge.bg-secondary {
    color: #075985 !important;
    background: rgba(14, 165, 233, .14) !important;
    border: 1px solid rgba(14, 165, 233, .18);
}

.admin-body .form-control,
.admin-body .form-select {
    border-color: #cbd5e1;
    background-color: #fff;
}

.admin-body .form-control:focus,
.admin-body .form-select:focus {
    border-color: rgba(37, 99, 235, .55);
    box-shadow: 0 0 0 .25rem rgba(37, 99, 235, .12);
}

@media (max-width: 991.98px) {
    .admin-shell {
        display: block !important;
    }

    .admin-sidebar {
        width: 100%;
        min-height: auto !important;
    }
}

/*
|--------------------------------------------------------------------------
| Shared User/Admin Panel Theme
|--------------------------------------------------------------------------
| User panel and super admin panel intentionally share the same visual system
| so the SaaS looks consistent. The sidebar is hidden on mobile and expands
| with the header toggle button.
*/
.app-panel-body {
    --panel-primary: #3157ff;
    --panel-primary-dark: #183ecf;
    --panel-purple: #8438ff;
    --panel-cyan: #10b7e8;
    --panel-success: #16b878;
    --panel-danger: #ef4444;
    --panel-warning: #f59e0b;
    --panel-ink: #111827;
    --panel-muted: #6b7280;
    --panel-line: #e5e7eb;
    --panel-soft: #f3f6fb;
    --panel-card: #ffffff;
    background: var(--panel-soft);
}

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

.panel-sidebar {
    width: 280px;
    flex: 0 0 280px;
    padding: 1.25rem;
    color: #dbeafe;
    background: linear-gradient(180deg, #10205f 0%, #1b2676 48%, #3d1d8f 100%);
    box-shadow: 20px 0 50px rgba(17, 24, 39, .12);
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 1040;
    overflow-y: auto;
}

.panel-brand {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.panel-brand-mark {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--panel-cyan), var(--panel-purple));
    box-shadow: 0 15px 35px rgba(49, 87, 255, .35);
}

.panel-brand h4 {
    margin: 0;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -.04em;
}

.panel-brand small,
.panel-sidebar-footer small {
    color: rgba(255, 255, 255, .62);
    font-weight: 700;
}

.panel-nav {
    display: grid;
    gap: .35rem;
}

.panel-nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .72rem .9rem;
    color: rgba(255, 255, 255, .78);
    border: 1px solid transparent;
    border-radius: 1rem;
    font-weight: 700;
    transition: .2s ease;
}

.panel-nav-link:hover,
.panel-nav-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, .11);
    border-color: rgba(255, 255, 255, .12);
}

.panel-nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--panel-primary), var(--panel-purple));
    box-shadow: 0 12px 30px rgba(49, 87, 255, .28);
}

.panel-sidebar-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.panel-main {
    min-width: 0;
    flex: 1;
}

.panel-topbar {
    min-height: 82px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, .9);
    border-bottom: 1px solid var(--panel-line);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.panel-topbar h1 {
    margin: 0;
    color: var(--panel-ink);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 900;
    letter-spacing: -.035em;
}

.panel-topbar p {
    color: var(--panel-muted);
    font-size: .9rem;
}

.panel-content {
    padding: 1.5rem;
}

.panel-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    border: 1px solid var(--panel-line);
    background: #fff;
    border-radius: 999px;
    font-weight: 800;
    color: var(--panel-ink);
    box-shadow: 0 10px 25px rgba(17, 24, 39, .06);
}

.panel-avatar {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--panel-primary), var(--panel-purple));
    font-weight: 900;
}

.panel-icon-btn {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    gap: 4px;
    padding: .65rem;
    border: 1px solid var(--panel-line);
    border-radius: .9rem;
    background: #fff;
}

.panel-icon-btn span {
    width: 18px;
    height: 2px;
    display: block;
    background: var(--panel-ink);
    border-radius: 999px;
}

.panel-stat-card,
.panel-chart-card,
.panel-table-card,
.card {
    border: 1px solid rgba(49, 87, 255, .09) !important;
    border-radius: 1.25rem !important;
    box-shadow: 0 18px 45px rgba(17, 24, 39, .07);
}

.panel-stat-card {
    position: relative;
    overflow: hidden;
    padding: 1.25rem;
    background: #fff;
}

.panel-stat-card:before {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    right: -35px;
    top: -35px;
    border-radius: 50%;
    background: rgba(49, 87, 255, .09);
}

.panel-stat-label {
    color: var(--panel-muted);
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.panel-stat-value {
    margin: .35rem 0 0;
    font-size: 2rem;
    line-height: 1;
    font-weight: 900;
    color: var(--panel-ink);
}

.panel-stat-note {
    color: var(--panel-muted);
    font-size: .88rem;
}

.panel-chart-card,
.panel-table-card {
    background: #fff;
    padding: 1.25rem;
}

.panel-section-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -.02em;
}

.panel-muted {
    color: var(--panel-muted);
}

.table > :not(caption) > * > * {
    padding: .9rem 1rem;
}

.table th {
    color: #475569;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.badge-status {
    border-radius: 999px;
    padding: .45rem .7rem;
    font-weight: 800;
}

.badge-status-active,
.badge-status-approved,
.badge-status-paid {
    color: #067857;
    background: rgba(22, 184, 120, .12);
}

.badge-status-pending,
.badge-status-pending_verification {
    color: #8a5a00;
    background: rgba(245, 158, 11, .13);
}

.badge-status-rejected,
.badge-status-blocked,
.badge-status-failed {
    color: #b91c1c;
    background: rgba(239, 68, 68, .12);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(49, 87, 255, .5);
    box-shadow: 0 0 0 .25rem rgba(49, 87, 255, .12);
}

.panel-mobile-overlay {
    display: none;
}

@media (max-width: 991.98px) {
    .panel-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-105%);
        transition: transform .25s ease;
    }

    .sidebar-open .panel-sidebar {
        transform: translateX(0);
    }

    .panel-mobile-overlay {
        position: fixed;
        inset: 0;
        z-index: 1030;
        background: rgba(15, 23, 42, .45);
        backdrop-filter: blur(2px);
    }

    .sidebar-open .panel-mobile-overlay {
        display: block;
    }

    .panel-content {
        padding: 1rem;
    }

    .panel-topbar {
        padding: .85rem 1rem;
    }
}

@media (max-width: 575.98px) {
    .panel-topbar {
        align-items: flex-start;
    }

    .panel-topbar p {
        display: none;
    }

    .panel-stat-value {
        font-size: 1.55rem;
    }
}
