@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

:root {
    --blue-700: #1d4ed8;
    --blue-600: #2563eb;
    --blue-100: #dbeafe;
    --emerald-600: #059669;
    --emerald-100: #d1fae5;
    --slate-950: #0b1120;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --white: #ffffff;
    --line: #dce7fb;
    --bg: #f8fbff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--slate-700);
    background: var(--bg);
    min-height: 100vh;
}

body.landing-mode {
    background:
        radial-gradient(circle at 2% 0%, rgba(37, 99, 235, 0.1), transparent 32%),
        radial-gradient(circle at 98% 0%, rgba(5, 150, 105, 0.08), transparent 28%),
        linear-gradient(180deg, #f9fbff 0%, #ffffff 36%, #f7fbff 100%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Inter", sans-serif;
    color: var(--slate-900);
    letter-spacing: -0.01em;
}

a {
    color: var(--blue-600);
    text-decoration: none;
}

a:hover {
    color: var(--blue-700);
}

.btn-primary {
    background: linear-gradient(120deg, var(--blue-600), var(--emerald-600));
    border: none;
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.24);
}

.btn-primary:hover {
    background: linear-gradient(120deg, var(--blue-700), #047857);
}

.aff-nav {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #e2e8f0;
}

.aff-nav-sticky {
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.aff-nav-sticky.nav-scrolled {
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.09);
}

.aff-nav .navbar-brand,
.aff-nav .nav-link,
.aff-nav .navbar-text {
    color: var(--slate-700);
}

.aff-nav .nav-link:hover {
    color: var(--blue-600);
}

.aff-nav .navbar-toggler {
    border-color: #d1d5db;
    background: #fff;
}

.aff-nav .navbar-toggler-icon {
    filter: none;
}

.nav-cta-btn {
    font-weight: 600;
}

.app-logo-badge {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: var(--blue-600);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.app-logo-badge img {
    width: 21px;
    height: 21px;
    display: block;
}

.app-credit-text {
    font-weight: 500;
    color: var(--slate-700);
}

.landing-mode .container.pb-5 {
    max-width: 1200px;
    padding-top: 0.3rem;
}

.hero-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 30px 50px rgba(15, 23, 42, 0.09);
    padding: 2.2rem;
    margin-bottom: 1.4rem;
}

.hero-bg-orb {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    z-index: 0;
    filter: blur(12px);
}

.hero-bg-orb-a {
    right: -120px;
    top: -140px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, rgba(37, 99, 235, 0) 72%);
}

.hero-bg-orb-b {
    left: -110px;
    bottom: -150px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.16) 0%, rgba(5, 150, 105, 0) 72%);
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #eff6ff;
    color: var(--blue-700);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.36rem 0.72rem;
    margin-bottom: 0.8rem;
}

.hero-title {
    font-size: clamp(2rem, 4.1vw, 3rem);
    line-height: 1.14;
    margin-bottom: 0.8rem;
    max-width: 18ch;
}

.hero-subtitle {
    color: var(--slate-600);
    font-size: 1.02rem;
    line-height: 1.75;
    margin-bottom: 1.2rem;
    max-width: 58ch;
}

.dashboard-preview {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
    padding: 0.95rem;
}

.dashboard-preview header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.65rem;
}

.dashboard-preview header strong {
    color: var(--slate-900);
    font-size: 0.84rem;
    font-family: "Inter", sans-serif;
}

.dashboard-preview header span {
    font-size: 0.73rem;
    font-weight: 700;
    color: var(--emerald-600);
    background: var(--emerald-100);
    border-radius: 999px;
    padding: 0.2rem 0.54rem;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.preview-grid article {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    padding: 0.72rem;
}

.preview-grid small {
    color: var(--slate-500);
    font-size: 0.73rem;
}

.preview-grid h3 {
    color: var(--slate-900);
    font-size: 0.95rem;
    margin: 0.28rem 0 0.2rem;
    font-family: "Inter", sans-serif;
    font-weight: 700;
}

.preview-grid p {
    margin: 0;
    color: var(--slate-500);
    font-size: 0.78rem;
}

.preview-chart-card {
    grid-column: span 2;
}

.preview-chart {
    height: 72px;
    display: flex;
    align-items: end;
    gap: 0.42rem;
    margin-top: 0.34rem;
}

.preview-chart span {
    flex: 1;
    border-radius: 6px 6px 3px 3px;
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 58%, #059669 100%);
}

.toggle-pill {
    width: 42px;
    height: 23px;
    border-radius: 999px;
    background: var(--emerald-600);
    position: relative;
    flex-shrink: 0;
}

.toggle-pill em {
    position: absolute;
    width: 19px;
    height: 19px;
    background: #fff;
    border-radius: 50%;
    right: 2px;
    top: 2px;
}

.stats-strip {
    margin-bottom: 2rem;
}

.stats-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
    padding: 0.95rem 1rem;
}

.stats-card small {
    color: var(--slate-500);
    font-size: 0.75rem;
}

.stats-card strong {
    display: block;
    color: var(--slate-900);
    font-size: 1.05rem;
    margin-top: 0.22rem;
}

.saas-section {
    margin-bottom: 2.2rem;
}

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 1.35rem;
}

.section-head p {
    margin-bottom: 0.35rem;
    color: var(--blue-700);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-head h2 {
    font-size: clamp(1.55rem, 2.7vw, 2.2rem);
    margin-bottom: 0;
}

.feature-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    padding: 1rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.feature-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--blue-700);
    background: linear-gradient(145deg, #dbeafe 0%, #ccfbf1 100%);
    margin-bottom: 0.72rem;
}

.feature-card h3 {
    font-size: 0.99rem;
    margin-bottom: 0.4rem;
}

.feature-card p {
    color: var(--slate-600);
    font-size: 0.87rem;
    line-height: 1.56;
    margin-bottom: 0;
}

.step-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    padding: 1rem;
    height: 100%;
}

.step-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 700;
    color: var(--blue-700);
    background: #e0eaff;
    padding: 0.2rem 0.56rem;
    margin-bottom: 0.58rem;
}

.step-card h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.step-card p {
    margin-bottom: 0;
    color: var(--slate-600);
    font-size: 0.9rem;
}

.step-illustration {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    margin-bottom: 0.72rem;
    position: relative;
    background: linear-gradient(145deg, #dbeafe 0%, #ccfbf1 100%);
}

.step-illustration::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: var(--blue-700);
    left: 13px;
    top: 13px;
}

.step-key::after {
    border-radius: 50%;
    background: var(--emerald-600);
}

.step-publish::after {
    border-radius: 3px;
    transform: rotate(45deg);
}

.analytics-panel {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
    padding: 1.4rem;
}

.analytics-label {
    color: var(--blue-700);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.analytics-panel h2 {
    margin-bottom: 0.45rem;
}

.analytics-panel p {
    color: var(--slate-600);
}

.analytics-list {
    margin: 0;
    padding-left: 1.2rem;
}

.analytics-list li {
    margin-bottom: 0.4rem;
    color: var(--slate-700);
}

.analytics-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem;
}

.analytics-stats-grid article {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 0.85rem;
}

.analytics-stats-grid small {
    color: var(--slate-500);
    font-size: 0.76rem;
}

.analytics-stats-grid strong {
    display: block;
    color: var(--slate-900);
    font-size: 1.1rem;
}

.pricing-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    padding: 1.2rem;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
}

.pricing-card.popular {
    border-color: #93c5fd;
    box-shadow: 0 22px 36px rgba(37, 99, 235, 0.16);
    transform: translateY(-3px);
}

.popular-badge {
    position: absolute;
    top: -11px;
    right: 14px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    background: linear-gradient(120deg, var(--blue-600), var(--emerald-600));
    border-radius: 999px;
    padding: 0.22rem 0.62rem;
}

.pricing-card h3 {
    font-size: 1.16rem;
    margin-bottom: 0.2rem;
}

.plan-credits {
    margin-bottom: 0.12rem;
    color: var(--blue-700);
    font-size: 0.9rem;
    font-weight: 700;
}

.plan-price {
    color: var(--slate-900);
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.74rem;
}

.pricing-card ul {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.pricing-card li {
    color: var(--slate-700);
    font-size: 0.89rem;
    margin-bottom: 0.44rem;
    padding-left: 1.2rem;
    position: relative;
}

.pricing-card li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--emerald-600);
    font-size: 0.78rem;
}

.testimonial-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    padding: 1rem;
}

.testimonial-quote {
    color: var(--slate-700);
    font-size: 0.93rem;
    line-height: 1.7;
    margin-bottom: 0.95rem;
}

.testimonial-meta {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.testimonial-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(130deg, #dbeafe 0%, #ccfbf1 100%);
    color: var(--blue-700);
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.testimonial-meta h3 {
    font-size: 0.96rem;
    margin: 0;
}

.testimonial-meta small {
    color: var(--slate-500);
}

.faq-wrap {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    padding: 0.25rem;
}

.faq-wrap .accordion-item {
    border: none;
    border-bottom: 1px solid #edf2ff;
}

.faq-wrap .accordion-item:last-child {
    border-bottom: none;
}

.faq-wrap .accordion-button {
    border: none;
    box-shadow: none;
    background: #fff;
    color: var(--slate-900);
    font-weight: 600;
    padding: 1rem;
}

.faq-wrap .accordion-button:not(.collapsed) {
    background: #f8fbff;
    color: var(--blue-700);
}

.faq-wrap .accordion-body {
    color: var(--slate-600);
    font-size: 0.94rem;
    line-height: 1.67;
    padding-top: 0.15rem;
}

.final-cta {
    margin-top: 2rem;
    border-radius: 20px;
    background: linear-gradient(140deg, #0f172a 0%, #1d4ed8 58%, #047857 100%);
    box-shadow: 0 26px 44px rgba(15, 23, 42, 0.3);
    padding: 2.05rem;
}

.final-cta h2 {
    color: #fff;
    margin-bottom: 0.45rem;
}

.final-cta p {
    color: rgba(255, 255, 255, 0.84);
}

.saas-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.saas-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .saas-reveal,
    .saas-reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.soft-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.metric-box {
    padding: 1rem;
    border-radius: 12px;
    background: linear-gradient(140deg, #eff6ff, #ecfeff);
    border: 1px solid #c7d2fe;
    height: 100%;
}

.metric-box h4 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: var(--slate-600);
}

.metric-box strong {
    font-size: 1.35rem;
    line-height: 1.2;
    color: var(--slate-900);
}

.metric-mint {
    background: linear-gradient(160deg, #ecfdf5, #dcfce7);
    border-color: #86efac;
}

.metric-rose {
    background: linear-gradient(160deg, #fff1f2, #ffe4e6);
    border-color: #fda4af;
}

.metric-amber {
    background: linear-gradient(160deg, #fffbeb, #fef3c7);
    border-color: #fcd34d;
}

.summary-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.badge-role-admin {
    background: #dc2626;
    color: #fff;
}

.badge-role-user {
    background: #2563eb;
    color: #fff;
}

.form-help {
    color: var(--slate-500);
    font-size: 0.85rem;
}

.sidebar-links a {
    display: block;
    padding: 0.58rem 0.75rem;
    border-radius: 10px;
    color: var(--slate-900);
    text-decoration: none;
    border: 1px solid transparent;
}

.sidebar-links a.active,
.sidebar-links a:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
}

.table thead th {
    background: #f1f5f9;
}

@media (max-width: 991.98px) {
    .hero-panel {
        padding: 1.4rem;
    }

    .preview-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .preview-chart-card {
        grid-column: auto;
    }

    .pricing-card.popular {
        transform: none;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.72rem;
    }

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

    .final-cta {
        padding: 1.4rem;
    }
}

/* Dashboard UI */
.dash-shell {
    --dash-surface: #ffffff;
    --dash-border: #dce7fb;
    --dash-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.dash-shell h1,
.dash-shell h2,
.dash-shell h3,
.dash-shell h4 {
    font-family: "Inter", sans-serif;
    letter-spacing: -0.01em;
}

.dash-main {
    min-width: 0;
}

.dash-sidebar-card {
    border: 1px solid var(--dash-border);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: var(--dash-shadow);
    padding: 1rem;
    position: sticky;
    top: 86px;
}

.dash-sidebar-admin {
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 70%, #f5fffa 100%);
}

.dash-sidebar-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue-700);
}

.dash-sidebar-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.dash-sidebar-note {
    margin: 0 0 0.9rem;
    color: var(--slate-500);
    font-size: 0.84rem;
    line-height: 1.5;
}

.dash-nav-links {
    display: grid;
    gap: 0.45rem;
}

.dash-nav-links a {
    display: block;
    padding: 0.56rem 0.72rem;
    border-radius: 10px;
    color: var(--slate-800);
    text-decoration: none;
    border: 1px solid transparent;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dash-nav-links a:hover,
.dash-nav-links a.active {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: var(--blue-700);
}

.dash-hero-card {
    border: 1px solid var(--dash-border);
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 58%, #f3faf7 100%);
    box-shadow: var(--dash-shadow);
    padding: 1.1rem 1.15rem;
}

.dash-hero-kicker {
    margin: 0 0 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue-700);
}

.dash-hero-title {
    margin: 0 0 0.25rem;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.dash-hero-sub {
    margin: 0;
    color: var(--slate-600);
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 60ch;
}

.dash-kpi-card {
    border: 1px solid var(--dash-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    padding: 0.9rem;
}

.dash-kpi-card small {
    color: var(--slate-500);
    font-size: 0.75rem;
    display: block;
}

.dash-kpi-card strong {
    display: block;
    color: var(--slate-900);
    font-size: 1.35rem;
    line-height: 1.2;
    margin: 0.2rem 0;
}

.dash-kpi-card p {
    margin: 0;
    color: var(--slate-500);
    font-size: 0.78rem;
    line-height: 1.45;
}

.kpi-blue {
    background: linear-gradient(145deg, #eff6ff 0%, #ffffff 75%);
    border-color: #cfe0ff;
}

.kpi-slate {
    background: linear-gradient(145deg, #f8fafc 0%, #ffffff 75%);
    border-color: #e2e8f0;
}

.kpi-emerald {
    background: linear-gradient(145deg, #ecfdf5 0%, #ffffff 75%);
    border-color: #a7f3d0;
}

.kpi-indigo {
    background: linear-gradient(145deg, #eef2ff 0%, #ffffff 75%);
    border-color: #c7d2fe;
}

.kpi-amber {
    background: linear-gradient(145deg, #fffbeb 0%, #ffffff 75%);
    border-color: #fde68a;
}

.kpi-rose {
    background: linear-gradient(145deg, #fff1f2 0%, #ffffff 75%);
    border-color: #fecdd3;
}

.dash-card {
    border: 1px solid var(--dash-border);
    border-radius: 16px;
    background: var(--dash-surface);
    box-shadow: var(--dash-shadow);
    padding: 1rem;
}

.dash-card-head {
    margin-bottom: 0.8rem;
}

.dash-card-title {
    margin: 0;
    font-size: 1.02rem;
}

.dash-number {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--slate-900);
    margin: 0.2rem 0 0.35rem;
}

.dash-muted {
    color: var(--slate-500);
    font-size: 0.84rem;
}

.dash-plan-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #eaf2ff;
    color: var(--blue-700);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    margin-bottom: 0.55rem;
}

.dash-mini-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.dash-mini-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #edf2ff;
    border-radius: 10px;
    padding: 0.48rem 0.6rem;
}

.dash-mini-list span {
    color: var(--slate-600);
    font-size: 0.82rem;
}

.dash-mini-list strong {
    color: var(--slate-900);
    font-size: 0.9rem;
}

.dash-action-stack {
    display: grid;
    gap: 0.45rem;
}

.dash-table-wrap {
    border: 1px solid #edf2ff;
    border-radius: 12px;
    overflow: hidden;
}

.dash-table thead th {
    background: #f8fbff;
    color: var(--slate-700);
    font-weight: 600;
    border-bottom: 1px solid #e6efff;
}

.dash-table td {
    color: var(--slate-700);
    border-color: #eef2ff;
    vertical-align: middle;
}

.dash-table td a {
    color: var(--blue-600);
}

.dash-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.26rem 0.52rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.dash-badge-success {
    color: #166534;
    background: #dcfce7;
}

.dash-badge-muted {
    color: #475569;
    background: #e2e8f0;
}

.dash-badge-primary {
    color: #1e40af;
    background: #dbeafe;
}

.dash-badge-danger {
    color: #991b1b;
    background: #fee2e2;
}

.dash-badge-info {
    color: #075985;
    background: #e0f2fe;
}

.dash-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.dash-form-span {
    grid-column: span 2;
}

.dash-card .form-control {
    border-color: #dbe7ff;
}

.dash-card .form-control:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 0.18rem rgba(37, 99, 235, 0.15);
}

@media (max-width: 1199.98px) {
    .dash-sidebar-card {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .dash-form-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .dash-form-span {
        grid-column: span 1;
    }
}

/* User Dashboard v2 (design follow: dashboard.html) */
body.dashboard-v2 {
    background: #f8fafc;
}

body.dashboard-v2 .container.pb-5 {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.dashv2 {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
}

.dashv2-sidebar {
    width: 260px;
    background: #fff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.dashv2-brand {
    padding: 1.35rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.dashv2-brand-icon {
    width: 32px;
    height: 32px;
    background: #2563eb;
    color: #fff;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dashv2-brand-icon svg {
    width: 18px;
    height: 18px;
}

.dashv2-brand-text {
    font-size: 1.07rem;
    font-weight: 700;
    color: #0f172a;
}

.dashv2-brand-text em {
    color: #2563eb;
    font-style: normal;
}

.dashv2-nav {
    padding: 0 0.9rem;
    display: grid;
    gap: 0.25rem;
}

.dashv2-nav a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #475569;
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.18s ease;
}

.dashv2-nav a svg {
    width: 17px;
    height: 17px;
}

.dashv2-nav a:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.dashv2-nav a.active {
    background: #eff6ff;
    color: #2563eb;
    border-right: 4px solid #2563eb;
}

.dashv2-credit-card {
    margin-top: auto;
    margin: auto 0.9rem 1rem;
    background: #eff6ff;
    border-radius: 12px;
    padding: 0.8rem;
}

.dashv2-credit-card p {
    margin: 0 0 0.28rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2563eb;
    font-size: 0.68rem;
    font-weight: 700;
}

.dashv2-credit-line {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.dashv2-credit-line strong {
    color: #0f172a;
    font-size: 1.15rem;
}

.dashv2-credit-line span {
    color: #64748b;
    font-size: 0.78rem;
}

.dashv2-credit-progress {
    margin-top: 0.45rem;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #bfdbfe;
    overflow: hidden;
}

.dashv2-credit-progress span {
    height: 100%;
    display: block;
    border-radius: 999px;
    background: #2563eb;
}

.dashv2-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.dashv2-topbar {
    height: 64px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 1.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 9;
}

.dashv2-topbar h1 {
    margin: 0;
    font-size: 1.03rem;
    font-weight: 600;
    color: #1e293b;
    font-family: "Inter", sans-serif;
}

.dashv2-top-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.dashv2-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.2rem 0.45rem 0.2rem 0.6rem;
}

.dashv2-profile p {
    margin: 0;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}

.dashv2-profile small {
    color: #94a3b8;
    font-size: 0.66rem;
}

.dashv2-profile span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.dashv2-content {
    padding: 1.5rem;
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
}

.dashv2-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.dashv2-metric-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    padding: 1.1rem;
}

.dashv2-metric-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.7rem;
}

.dashv2-metric-icon svg {
    width: 18px;
    height: 18px;
}

.icon-blue {
    background: #eff6ff;
    color: #2563eb;
}

.icon-emerald {
    background: #ecfdf5;
    color: #059669;
}

.icon-orange {
    background: #fff7ed;
    color: #ea580c;
}

.dashv2-metric-card small {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
}

.dashv2-metric-card h2 {
    margin: 0.2rem 0;
    font-size: 1.5rem;
    color: #1e293b;
    font-family: "Inter", sans-serif;
    font-weight: 700;
}

.dashv2-metric-card p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.74rem;
}

.dashv2-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.dashv2-panel {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.dashv2-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1rem 1rem 0.8rem;
}

.dashv2-panel-head h3 {
    margin: 0;
    font-size: 0.98rem;
    font-family: "Inter", sans-serif;
    color: #1e293b;
}

.dashv2-panel-head a {
    color: #2563eb;
    font-size: 0.78rem;
    font-weight: 600;
}

.dashv2-table thead th {
    background: #f8fafc;
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 0.67rem;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #eef2f7;
}

.dashv2-table td {
    color: #475569;
    font-size: 0.82rem;
    border-color: #f1f5f9;
}

.dashv2-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.63rem;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 8px;
    padding: 0.2rem 0.4rem;
}

.status-credit {
    background: #dcfce7;
    color: #15803d;
}

.status-debit {
    background: #fee2e2;
    color: #b91c1c;
}

.status-reserve {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-release {
    background: #fef3c7;
    color: #b45309;
}

.dashv2-side-stack {
    display: grid;
    gap: 1rem;
}

.dashv2-cta-card {
    background: #2563eb;
    border-radius: 16px;
    padding: 1.2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.dashv2-cta-card h3 {
    margin: 0 0 0.32rem;
    color: #fff;
    font-size: 1.04rem;
}

.dashv2-cta-card p {
    margin: 0 0 0.85rem;
    color: #dbeafe;
    font-size: 0.8rem;
}

.dashv2-cta-actions {
    display: grid;
    gap: 0.45rem;
}

.dashv2-health-title {
    margin: 0;
    padding: 1rem 1rem 0.65rem;
    font-size: 0.98rem;
    color: #1e293b;
    font-family: "Inter", sans-serif;
}

.dashv2-health-list {
    display: grid;
    gap: 0.68rem;
    padding: 0 1rem 1rem;
}

.dashv2-health-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
}

.dashv2-health-list span {
    color: #64748b;
}

.dashv2-health-list strong {
    color: #1e293b;
    font-weight: 700;
}

.dashv2-health-list strong.ok {
    color: #059669;
}

.dashv2-health-list strong.warn {
    color: #b45309;
}

.dashv2-bottom-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 1199.98px) {
    .dashv2-top-actions .btn.btn-outline-secondary {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .dashv2 {
        display: block;
    }

    .dashv2-sidebar {
        position: static;
        width: auto;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .dashv2-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.35rem;
        padding-bottom: 0.8rem;
    }

    .dashv2-credit-card {
        margin-top: 0.5rem;
    }

    .dashv2-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashv2-grid,
    .dashv2-bottom-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .dashv2-topbar {
        padding: 0 0.8rem;
        height: auto;
        min-height: 58px;
        gap: 0.5rem;
        align-items: flex-start;
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
    }

    .dashv2-topbar h1 {
        font-size: 0.94rem;
    }

    .dashv2-top-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .dashv2-profile {
        order: -1;
    }

    .dashv2-content {
        padding: 1rem;
    }

    .dashv2-metrics {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .dashv2-nav {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

/* Admin Dashboard v2 (design follow: admin.html) */
body.admindash-v2 {
    background: #f1f5f9;
}

body.admindash-v2 .container.pb-5 {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.adm2-shell {
    display: flex;
    min-height: 100vh;
    background: #f1f5f9;
}

.adm2-sidebar {
    width: 260px;
    background: #0f172a;
    color: #cbd5e1;
    border-right: 1px solid #1e293b;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.adm2-brand {
    padding: 1.35rem 1.25rem;
    border-bottom: 1px solid #1e293b;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.adm2-brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #10b981;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.adm2-brand-icon svg {
    width: 18px;
    height: 18px;
}

.adm2-brand-text {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

.adm2-brand-text span {
    color: #10b981;
}

.adm2-nav {
    padding: 1rem 0.85rem;
    display: grid;
    gap: 0.25rem;
}

.adm2-nav p {
    margin: 0.2rem 0 0.2rem;
    color: #64748b;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 0.75rem;
}

.adm2-nav a {
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.62rem 0.75rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.18s ease;
}

.adm2-nav a svg {
    width: 17px;
    height: 17px;
}

.adm2-nav a:hover {
    background: #1e293b;
    color: #fff;
}

.adm2-nav a.active {
    background: #2563eb;
    color: #fff;
}

.adm2-admin-box {
    margin-top: auto;
    border-top: 1px solid #1e293b;
    padding: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.adm2-admin-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #334155;
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.adm2-admin-avatar svg {
    width: 15px;
    height: 15px;
}

.adm2-admin-box p {
    margin: 0;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}

.adm2-logout-link {
    color: #94a3b8;
    font-size: 0.7rem;
    text-decoration: none;
}

.adm2-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.adm2-topbar {
    height: 64px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 1.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.adm2-search {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 0.4rem 0.62rem;
    width: min(420px, 100%);
}

.adm2-search svg {
    width: 15px;
    height: 15px;
    color: #94a3b8;
}

.adm2-search input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 0.82rem;
    color: #334155;
}

.adm2-top-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.adm2-top-right p {
    margin: 0;
    font-size: 0.68rem;
    color: #94a3b8;
    text-align: right;
}

.adm2-top-right strong {
    display: block;
    color: #10b981;
    font-size: 0.72rem;
}

.adm2-content {
    padding: 1.45rem;
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
}

.adm2-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.adm2-metrics article {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
    padding: 1rem;
}

.adm2-metrics p {
    margin: 0;
    color: #64748b;
    font-size: 0.67rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.adm2-metrics h3 {
    margin: 0.25rem 0 0.2rem;
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: "Inter", sans-serif;
}

.adm2-metrics small {
    font-size: 0.7rem;
    font-weight: 700;
}

.adm2-progress {
    margin-top: 0.5rem;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #f1f5f9;
    overflow: hidden;
}

.adm2-progress span {
    display: block;
    height: 100%;
    background: #fb923c;
}

.adm2-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.adm2-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.adm2-panel-wide {
    grid-column: span 2;
}

.adm2-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.adm2-panel-head h3 {
    margin: 0;
    font-size: 0.95rem;
    color: #1e293b;
    font-family: "Inter", sans-serif;
}

.adm2-panel-head a {
    color: #2563eb;
    font-size: 0.73rem;
    font-weight: 700;
}

.adm2-table thead th {
    background: #f8fafc;
    color: #94a3b8;
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid #edf2f7;
}

.adm2-table td {
    color: #475569;
    font-size: 0.81rem;
    border-color: #f1f5f9;
}

.adm2-subtext {
    font-size: 0.67rem;
    color: #94a3b8;
}

.adm2-action-btn {
    border: none;
    background: transparent;
    color: #94a3b8;
    padding: 0;
    display: inline-flex;
}

.adm2-action-btn svg {
    width: 18px;
    height: 18px;
}

.adm2-action-btn:hover {
    color: #2563eb;
}

.adm2-side-stack {
    display: grid;
    gap: 1rem;
}

.adm2-small-head {
    margin: 0;
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.92rem;
    color: #1e293b;
    font-family: "Inter", sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.adm2-small-head svg {
    width: 16px;
    height: 16px;
    color: #2563eb;
}

.adm2-alerts {
    padding: 1rem;
    display: grid;
    gap: 0.8rem;
}

.alert-row {
    border-left: 4px solid #f59e0b;
    padding-left: 0.6rem;
}

.alert-row.success {
    border-left-color: #10b981;
}

.alert-row p {
    margin: 0;
    font-size: 0.78rem;
    color: #334155;
    font-weight: 700;
}

.alert-row span {
    font-size: 0.68rem;
    color: #94a3b8;
}

.adm2-maintenance {
    background: #0f172a;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.22);
    padding: 1rem;
}

.adm2-maintenance h3 {
    margin: 0 0 0.7rem;
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.adm2-maintenance span {
    font-size: 0.72rem;
    color: #94a3b8;
}

.toggle-static {
    width: 40px;
    height: 21px;
    border-radius: 999px;
    background: #334155;
    position: relative;
}

.toggle-static em {
    position: absolute;
    left: 2px;
    top: 2px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #fff;
}

.adm2-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 0.16rem 0.42rem;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-success {
    background: #dcfce7;
    color: #15803d;
}

.badge-muted {
    background: #e2e8f0;
    color: #475569;
}

.adm2-form {
    padding: 0 1rem 1rem;
    display: grid;
    gap: 0.62rem;
}

.adm2-form .form-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.22rem;
}

.adm2-form .form-control {
    border-color: #dbe7ff;
}

.adm2-form .form-control:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 0.16rem rgba(37, 99, 235, 0.16);
}

@media (max-width: 1199.98px) {
    .adm2-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .adm2-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .adm2-panel-wide {
        grid-column: span 1;
    }
}

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

    .adm2-sidebar {
        position: static;
        width: auto;
        height: auto;
    }

    .adm2-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.3rem;
    }
}

@media (max-width: 767.98px) {
    .adm2-topbar {
        height: auto;
        padding: 0.75rem;
        flex-direction: column;
        align-items: stretch;
    }

    .adm2-search {
        width: 100%;
    }

    .adm2-top-right {
        justify-content: space-between;
    }

    .adm2-content {
        padding: 1rem;
    }

    .adm2-metrics {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .adm2-nav {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}


/* User SaaS Dashboard */
body.uxdash-shell {
    background: #fcfcfd;
}

.uxdash-app {
    min-height: 100vh;
}

.uxdash-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 16rem;
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid #f1f5f9;
    z-index: 50;
    display: flex;
    flex-direction: column;
    transition: transform 0.24s ease;
}

.uxdash-brand-wrap {
    padding: 1.35rem 1.25rem 0.8rem;
}

.uxdash-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.uxdash-brand em {
    color: #2563eb;
    font-style: normal;
}

.uxdash-brand-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.62rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 12px 20px rgba(37, 99, 235, 0.22);
}

.uxdash-brand-icon i {
    width: 1rem;
    height: 1rem;
}

.uxdash-brand-icon img {
    width: 1.2rem;
    height: 1.2rem;
    display: block;
}

.uxdash-nav {
    padding: 0.2rem 0.78rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
}

.uxdash-nav a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.72rem;
    border-radius: 0.78rem;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.24s ease;
}

.uxdash-nav a i {
    width: 0.95rem;
    height: 0.95rem;
}

.uxdash-nav a:hover {
    background: #f3f4f6;
    color: #2563eb;
}

.uxdash-nav a.active {
    background: #eff6ff;
    color: #2563eb;
    border-right: 3px solid #2563eb;
}

.uxdash-nav-section {
    margin: 0.95rem 0.42rem 0.3rem;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: #94a3b8;
}

.uxdash-sidebar-foot {
    margin-top: auto;
    padding: 0.9rem 0.78rem 1.1rem;
}

.uxdash-plan-chip {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 0.78rem;
    padding: 0.58rem 0.65rem;
    margin-bottom: 0.68rem;
}

.uxdash-plan-chip small {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.uxdash-plan-chip strong {
    display: block;
    margin-top: 0.18rem;
    color: #0f172a;
    font-size: 0.84rem;
}

.uxdash-logout-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 0.62rem;
    border: 0;
    background: transparent;
    color: #ef4444;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.7rem 0.72rem;
    border-radius: 0.78rem;
}

.uxdash-logout-btn:hover {
    background: #fef2f2;
}

.uxdash-main {
    margin-left: 16rem;
    min-height: 100vh;
}

.uxdash-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #f1f5f9;
    padding: 0.95rem 1.45rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.uxdash-header-left,
.uxdash-header-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.uxdash-menu-btn {
    display: none;
    width: 2.2rem;
    height: 2.2rem;
    border: 0;
    border-radius: 0.62rem;
    color: #64748b;
    background: #f8fafc;
}

.uxdash-page-title {
    margin: 0;
    font-size: 1.06rem;
    font-weight: 700;
    color: #1e293b;
}

.uxdash-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.52rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 0.33rem 0.64rem;
}

.uxdash-dot {
    width: 0.46rem;
    height: 0.46rem;
    border-radius: 50%;
    background: #2563eb;
    position: relative;
}

.uxdash-dot::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.4);
    animation: uxdash-ping 1.8s infinite;
}

@keyframes uxdash-ping {
    0% { transform: scale(0.85); opacity: 0.8; }
    70% { transform: scale(1.8); opacity: 0; }
    100% { opacity: 0; }
}

.uxdash-avatar {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 999px;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    background: #e2e8f0;
}

.uxdash-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uxdash-user-compact strong {
    display: block;
    font-size: 0.82rem;
    line-height: 1.1;
    color: #0f172a;
}

.uxdash-user-compact small {
    display: block;
    font-size: 0.69rem;
    line-height: 1.1;
    color: #94a3b8;
}

.uxdash-content {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1.5rem 1.45rem 2.2rem;
    display: grid;
    gap: 1.35rem;
}

.uxdash-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.uxdash-metric-card,
.uxdash-panel {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.uxdash-metric-card {
    padding: 1.2rem;
    transition: all 0.3s ease;
}

.uxdash-metric-card:hover,
.uxdash-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.uxdash-metric-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.uxdash-metric-label {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.uxdash-metric-value {
    margin: 0.28rem 0 0;
    font-size: 2rem;
    line-height: 1.05;
    font-weight: 800;
    color: #0f172a;
}

.uxdash-mini-btn {
    background: #eff6ff;
    color: #2563eb;
    border-radius: 0.45rem;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.5rem;
}

.uxdash-mini-btn:hover {
    color: #fff;
    background: #2563eb;
}

.uxdash-icon {
    width: 2.05rem;
    height: 2.05rem;
    border-radius: 0.62rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.uxdash-icon i {
    width: 1rem;
    height: 1rem;
}

.uxdash-icon.blue { background: #eff6ff; color: #2563eb; }
.uxdash-icon.emerald { background: #ecfdf5; color: #059669; }
.uxdash-icon.violet { background: #f5f3ff; color: #7c3aed; }
.uxdash-icon.dark { background: rgba(255, 255, 255, 0.1); color: #60a5fa; }

.uxdash-metric-plan {
    background: #0f172a;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.28);
}

.uxdash-metric-plan .uxdash-metric-label {
    color: #94a3b8;
}

.uxdash-metric-plan .uxdash-metric-value {
    color: #fff;
}

.uxdash-panel {
    padding: 1.1rem 1.2rem;
}

.uxdash-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.uxdash-panel-head h2,
.uxdash-panel-head h3 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    color: #0f172a;
}

.uxdash-panel-head p {
    margin: 0.14rem 0 0;
    font-size: 0.8rem;
    color: #94a3b8;
}

.uxdash-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border-radius: 999px;
    border: 1px solid #d1fae5;
    padding: 0.36rem 0.62rem;
}

.uxdash-chip .uxdash-dot,
.uxdash-chip .uxdash-dot::after {
    background: #10b981;
    border-color: rgba(16, 185, 129, 0.35);
}

.uxdash-key-box {
    display: flex;
    align-items: center;
    gap: 0.82rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}

.uxdash-key-input-wrap {
    position: relative;
    flex: 1;
    min-width: 17rem;
}

.uxdash-key-input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 0.78rem;
    background: #ffffff;
    font-size: 0.82rem;
    color: #334155;
    font-family: "Inter", sans-serif;
    padding: 0.72rem 2.3rem 0.72rem 0.8rem;
}

.uxdash-copy-btn {
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.8rem;
    height: 1.8rem;
    border: 0;
    background: transparent;
    color: #94a3b8;
}

.uxdash-copy-btn:hover {
    color: #2563eb;
}

.uxdash-outline-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 0.72rem;
    padding: 0.63rem 0.95rem;
}

.uxdash-outline-btn:hover {
    background: #f8fafc;
}

.uxdash-outline-btn i {
    width: 0.92rem;
    height: 0.92rem;
}

.uxdash-outline-btn.sm {
    padding: 0.53rem 0.72rem;
}

.uxdash-outline-btn.icon-only {
    padding: 0.52rem;
}

.uxdash-alert {
    display: flex;
    gap: 0.68rem;
    align-items: flex-start;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 0.8rem;
    padding: 0.78rem 0.82rem;
}

.uxdash-alert i {
    width: 1rem;
    height: 1rem;
    color: #d97706;
    margin-top: 0.1rem;
}

.uxdash-alert strong,
.uxdash-alert p {
    margin: 0;
    font-size: 0.75rem;
    color: #92400e;
}

.uxdash-alert p {
    margin-top: 0.12rem;
}

.uxdash-table-tools {
    display: flex;
    align-items: center;
    gap: 0.58rem;
}

.uxdash-search-sm {
    position: relative;
}

.uxdash-search-sm i {
    position: absolute;
    left: 0.62rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0.85rem;
    height: 0.85rem;
    color: #94a3b8;
}

.uxdash-search-sm input {
    border: 0;
    border-radius: 0.64rem;
    background: #f1f5f9;
    font-size: 0.8rem;
    padding: 0.5rem 0.72rem 0.5rem 2rem;
    min-width: 11.5rem;
    outline: none;
}

.table.uxdash-table {
    margin: 0;
}

.table.uxdash-table thead th {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
    color: #94a3b8;
    background: #f8fafc;
    border-bottom-color: #f1f5f9;
    padding: 0.78rem 0.78rem;
}

.table.uxdash-table tbody td {
    font-size: 0.82rem;
    color: #475569;
    border-bottom-color: #f8fafc;
    padding: 0.78rem 0.78rem;
}

.uxdash-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.43rem;
}

.uxdash-type-pill .dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #3b82f6;
}

.uxdash-type-pill .dot.violet {
    background: #8b5cf6;
}

.uxdash-type-pill .dot.emerald {
    background: #10b981;
}

.uxdash-status {
    border-radius: 0.42rem;
    padding: 0.22rem 0.48rem;
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.uxdash-status.success,
.uxdash-status.completed,
.uxdash-status.paid,
.uxdash-status.connected,
.uxdash-status.active {
    background: #ecfdf5;
    color: #059669;
}

.uxdash-status.processing,
.uxdash-status.pending,
.uxdash-status.reserve,
.uxdash-status.released {
    background: #fef3c7;
    color: #b45309;
}

.uxdash-status.failed,
.uxdash-status.error,
.uxdash-status.cancelled {
    background: #fee2e2;
    color: #dc2626;
}

.uxdash-status.credited,
.uxdash-status.credit {
    background: #dbeafe;
    color: #1d4ed8;
}

.uxdash-row-link {
    color: #94a3b8;
}

.uxdash-row-link:hover {
    color: #2563eb;
}

.uxdash-row-link i {
    width: 0.9rem;
    height: 0.9rem;
}

.uxdash-panel-foot {
    border-top: 1px solid #f8fafc;
    margin-top: 0.7rem;
    padding-top: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.uxdash-panel-foot p {
    margin: 0;
    font-size: 0.72rem;
    color: #94a3b8;
}

.uxdash-page-arrows {
    display: flex;
    gap: 0.45rem;
}

.uxdash-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.uxdash-pricing-card {
    position: relative;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 1rem;
    padding: 1.1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.uxdash-pricing-card.popular {
    border-color: #bfdbfe;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.16);
}

.uxdash-popular-tag {
    position: absolute;
    top: -0.55rem;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: #fff;
    border-radius: 999px;
    padding: 0.18rem 0.58rem;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    font-weight: 800;
    text-transform: uppercase;
}

.uxdash-pricing-card h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.uxdash-pricing-credit {
    margin: 0.25rem 0 0;
    color: #2563eb;
    font-size: 0.82rem;
    font-weight: 700;
}

.uxdash-pricing-price {
    margin: 0.7rem 0;
    font-size: 1.85rem;
    line-height: 1.1;
    font-weight: 800;
    color: #0f172a;
}

.uxdash-pricing-price small {
    color: #94a3b8;
    font-size: 0.84rem;
    font-weight: 500;
}

.uxdash-feature-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.48rem;
}

.uxdash-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #334155;
    font-size: 0.8rem;
}

.uxdash-feature-list li i {
    width: 0.88rem;
    height: 0.88rem;
    color: #059669;
}

.uxdash-filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 170px 170px auto;
    gap: 0.65rem;
    align-items: center;
}

.uxdash-search-wrap {
    position: relative;
}

.uxdash-search-wrap i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: #94a3b8;
}

.uxdash-search-wrap .form-control {
    padding-left: 2rem;
}

.uxdash-key-grid,
.uxdash-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.uxdash-key-line {
    border: 1px solid #e5ebf7;
    border-radius: 12px;
    padding: 0.6rem 0.7rem;
    background: #f8fbff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    margin-bottom: 0.7rem;
}

.uxdash-key-line code {
    color: #1e293b;
    font-size: 0.8rem;
    margin: 0;
}

.uxdash-key-actions {
    display: flex;
    gap: 0.45rem;
}

.uxdash-security-note {
    border-left: 3px solid #2563eb;
    padding-left: 0.7rem;
    color: #475569;
    font-size: 0.82rem;
}

.uxdash-danger-panel {
    border-color: #fecaca;
    background: #fff7f7;
}

.uxdash-danger-panel h3 {
    color: #991b1b;
}

.uxdash-pagination nav {
    display: inline-flex;
}

.uxdash-pagination .pagination {
    margin: 0;
}

.uxdash-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
}

@media (max-width: 1279px) {
    .uxdash-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .uxdash-pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1023.98px) {
    .uxdash-sidebar {
        transform: translateX(-100%);
    }

    .uxdash-main {
        margin-left: 0;
    }

    .uxdash-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

    .uxdash-app.sidebar-open .uxdash-overlay {
        opacity: 1;
        visibility: visible;
    }

    .uxdash-user-compact {
        display: none;
    }

    .uxdash-filter-bar {
        grid-template-columns: 1fr;
    }

    .uxdash-key-grid,
    .uxdash-settings-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767.98px) {
    .uxdash-header {
        padding: 0.8rem 1rem;
    }

    .uxdash-page-title {
        font-size: 0.95rem;
    }

    .uxdash-content {
        padding: 1rem 1rem 1.8rem;
    }

    .uxdash-card-grid,
    .uxdash-pricing-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .uxdash-panel-head,
    .uxdash-header {
        flex-wrap: wrap;
    }

    .uxdash-header-right,
    .uxdash-table-tools {
        width: 100%;
        justify-content: space-between;
    }

    .uxdash-key-box {
        flex-direction: column;
        align-items: stretch;
    }

    .uxdash-outline-btn {
        justify-content: center;
    }
}

/* Dashboard Page-Specific Blocks */
.uxdash-package-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.uxdash-package-card {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem;
    transition: all 0.25s ease;
    background: #fff;
}

.uxdash-package-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
}

.uxdash-package-card.popular {
    border: 2px solid #2563eb;
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.18);
}

.uxdash-package-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}

.uxdash-package-top h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.uxdash-package-top p {
    margin: 0.15rem 0 0;
    font-size: 0.72rem;
    color: #94a3b8;
}

.uxdash-package-credit {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 0.8rem;
}

.uxdash-package-credit small {
    font-size: 0.76rem;
    font-weight: 600;
    color: #94a3b8;
}

.uxdash-package-price-box {
    background: #f8fafc;
    border-radius: 0.72rem;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.85rem;
}

.uxdash-package-price-box strong {
    display: block;
    font-size: 1.05rem;
    color: #0f172a;
}

.uxdash-package-price-box small {
    display: block;
    margin-top: 0.12rem;
    color: #64748b;
    font-size: 0.68rem;
}

.uxdash-stack {
    display: grid;
    gap: 0.85rem;
}

.uxdash-subcard {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem;
    background: #fff;
}

.uxdash-subcard-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
}

.uxdash-subcard-head h3 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
}

.uxdash-subcard-head p {
    margin: 0.16rem 0 0;
    color: #94a3b8;
    font-size: 0.73rem;
}

.uxdash-eye-btn {
    position: absolute;
    right: 2.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.8rem;
    height: 1.8rem;
    border: 0;
    background: transparent;
    color: #94a3b8;
}

.uxdash-eye-btn:hover {
    color: #334155;
}

.uxdash-inline-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.uxdash-empty-box {
    border: 1px dashed #cbd5e1;
    border-radius: 0.8rem;
    padding: 1rem;
    background: #f8fafc;
}

.uxdash-empty-box h3 {
    margin: 0;
    font-size: 0.95rem;
}

.uxdash-empty-box p {
    margin: 0.25rem 0 0;
    color: #64748b;
    font-size: 0.8rem;
}

.uxdash-alert-card {
    border: 1px solid #fef3c7;
    background: #fffbeb;
    border-radius: 1rem;
    padding: 0.9rem 0.95rem;
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
}

.uxdash-alert-card i {
    width: 1.02rem;
    height: 1.02rem;
    color: #d97706;
    margin-top: 0.06rem;
}

.uxdash-alert-card h3 {
    margin: 0;
    font-size: 0.86rem;
    color: #92400e;
}

.uxdash-alert-card p {
    margin: 0.18rem 0 0;
    color: #92400e;
    font-size: 0.75rem;
}

.uxdash-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.uxdash-guide-panel {
    background: #fff;
}

.uxdash-guide-head {
    display: flex;
    align-items: center;
    gap: 0.62rem;
    margin-bottom: 0.72rem;
}

.uxdash-guide-head h3 {
    margin: 0;
    font-size: 0.93rem;
    font-weight: 700;
}

.uxdash-guide-panel ol,
.uxdash-guide-panel ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #334155;
    font-size: 0.8rem;
    display: grid;
    gap: 0.42rem;
}

.uxdash-profile-wrap {
    display: grid;
    gap: 1rem;
}

.uxdash-profile-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.uxdash-avatar.lg {
    width: 4.5rem;
    height: 4.5rem;
}

.uxdash-profile-head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.uxdash-profile-head p {
    margin: 0.18rem 0 0;
    color: #64748b;
    font-size: 0.82rem;
}

.uxdash-toggle-list {
    display: grid;
    gap: 0.65rem;
}

.uxdash-toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    background: #f8fafc;
    border-radius: 0.8rem;
    padding: 0.8rem 0.88rem;
    border: 1px solid #eef2f7;
}

.uxdash-toggle-item strong {
    display: block;
    font-size: 0.86rem;
    color: #0f172a;
}

.uxdash-toggle-item p {
    margin: 0.14rem 0 0;
    color: #64748b;
    font-size: 0.74rem;
}

.uxdash-toggle-item input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #2563eb;
}

.uxdash-danger-box {
    border: 1px solid #fecaca;
    background: #fef2f2;
    border-radius: 0.8rem;
    padding: 0.85rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.uxdash-danger-box strong {
    display: block;
    font-size: 0.88rem;
    color: #111827;
}

.uxdash-danger-box p {
    margin: 0.2rem 0 0;
    color: #6b7280;
    font-size: 0.75rem;
}

.uxdash-danger-form {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.uxdash-danger-form .form-control {
    min-width: 190px;
}

.uxdash-panel .form-control,
.uxdash-panel .form-select {
    border-color: #e2e8f0;
    border-radius: 0.75rem;
    padding-top: 0.62rem;
    padding-bottom: 0.62rem;
    font-size: 0.84rem;
}

.uxdash-panel .form-control:focus,
.uxdash-panel .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.uxdash-panel .form-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.35rem;
}

/* Keep dashboard action buttons solid brand blue (no gradient). */
body.uxdash-shell .btn.btn-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.2);
}

body.uxdash-shell .btn.btn-primary:hover,
body.uxdash-shell .btn.btn-primary:focus,
body.uxdash-shell .btn.btn-primary:active {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

body.uxdash-shell .btn.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.22);
}

.uxdash-table-tools .form-select {
    min-width: 132px;
    background-color: #f8fafc;
}

.uxdash-panel-foot .uxdash-pagination .pagination {
    margin: 0;
}

@media (max-width: 1279px) {
    .uxdash-package-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .uxdash-guide-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .uxdash-table-tools {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .uxdash-package-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .uxdash-table-tools {
        width: 100%;
    }

    .uxdash-table-tools > * {
        width: 100%;
    }

    .uxdash-search-sm input {
        width: 100%;
        min-width: 0;
    }
}

/* Auth Pages */
.auth-shell {
    padding: 0.8rem 0 1.8rem;
}

.auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.auth-side {
    border-radius: 1.6rem;
    overflow: hidden;
    min-height: 640px;
    background:
        radial-gradient(circle at 10% 10%, rgba(147, 197, 253, 0.24), transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(96, 165, 250, 0.18), transparent 44%),
        linear-gradient(145deg, #1d4ed8 0%, #2563eb 54%, #3b82f6 100%);
    color: #ffffff;
    box-shadow: 0 24px 44px rgba(29, 78, 216, 0.25);
}

.auth-side-inner {
    width: 100%;
    padding: 2.25rem 2.1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.65rem;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.auth-side h1 {
    color: #ffffff;
    margin: 0;
    font-size: clamp(1.55rem, 2.6vw, 2.3rem);
    line-height: 1.2;
    font-weight: 800;
}

.auth-side p {
    margin: 0;
    color: rgba(239, 246, 255, 0.9);
    line-height: 1.7;
    font-size: 0.95rem;
}

.auth-feature-list {
    margin: 0.4rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.auth-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.7rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.auth-feature-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.95);
    color: #1d4ed8;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.auth-feature-list strong {
    display: block;
    font-size: 0.9rem;
    color: #ffffff;
}

.auth-feature-list small {
    display: block;
    margin-top: 0.12rem;
    font-size: 0.79rem;
    color: rgba(239, 246, 255, 0.88);
}

.auth-card-wrap {
    display: flex;
}

.auth-card {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 1.6rem;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    padding: 1.5rem 1.3rem;
}

.auth-card-head {
    text-align: center;
    margin-bottom: 1rem;
}

.auth-card-head h2 {
    margin: 0;
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    font-weight: 800;
    color: #0f172a;
}

.auth-card-head p {
    margin: 0.35rem 0 0;
    color: #64748b;
    font-size: 0.9rem;
}

.auth-form {
    display: grid;
    gap: 0.85rem;
}

.auth-form .form-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.35rem;
}

.auth-form .form-control {
    border-color: #dbe4f3;
    border-radius: 0.85rem;
    padding: 0.72rem 0.88rem;
    font-size: 0.9rem;
}

.auth-form .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.14);
}

.auth-link-sm {
    font-size: 0.76rem;
    font-weight: 700;
    color: #2563eb;
}

.auth-link-sm:hover {
    color: #1d4ed8;
}

.auth-primary-btn {
    width: 100%;
    border: 0;
    border-radius: 0.85rem;
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.8rem 1rem;
    box-shadow: 0 12px 20px rgba(37, 99, 235, 0.2);
    transition: all 0.2s ease;
}

.auth-primary-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-google-btn {
    width: 100%;
    border: 1px solid #dbe4f3;
    border-radius: 0.85rem;
    background: #ffffff;
    color: #334155;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.7rem 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-google-btn svg {
    width: 1rem;
    height: 1rem;
}

.auth-google-btn:disabled {
    opacity: 0.85;
    cursor: not-allowed;
}

.auth-inline-note {
    margin: 0.95rem 0 0;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    border-radius: 0.8rem;
    color: #1e40af;
    font-size: 0.8rem;
    line-height: 1.55;
    padding: 0.75rem 0.85rem;
}

.auth-foot-note {
    margin: 1.05rem 0 0;
    text-align: center;
    color: #64748b;
    font-size: 0.88rem;
}

.auth-foot-note a {
    color: #2563eb;
    font-weight: 700;
}

.auth-foot-note a:hover {
    color: #1d4ed8;
}

@media (min-width: 992px) {
    .auth-grid {
        grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
        gap: 1.05rem;
        align-items: stretch;
    }

    .auth-card-wrap {
        min-height: 640px;
        align-items: center;
    }

    .auth-card {
        padding: 2rem 1.85rem;
    }
}

@media (max-width: 991.98px) {
    .auth-shell {
        padding-top: 0.2rem;
    }
}
