:root {
    --brand-primary: #246bfd;
    --brand-accent: #7c3aed;
    --brand-success: #10b981;
    --brand-soft: rgba(36, 107, 253, .09);
    --brand-ink: color-mix(in srgb, var(--brand-primary), #000 18%);
    --brand-ink-strong: color-mix(in srgb, var(--brand-primary), #000 32%);
    --ink: #12233f;
    --muted: #4f5e78;
    --surface: #ffffff;
    --surface-soft: #f6f8fc;
    --line: #e5ebf4;
    --shadow-sm: 0 4px 18px rgba(23, 42, 73, .05);
    --shadow-md: 0 16px 42px rgba(23, 42, 73, .08);
    --radius: 18px;
    --radius-sm: 12px;
    --sidebar-width: 268px;
    --topbar-height: 72px;
}

[data-bs-theme="dark"] {
    --ink: #e9effa;
    --muted: #93a4bf;
    --surface: #111b2c;
    --surface-soft: #0c1524;
    --line: #223149;
    --brand-soft: rgba(96, 149, 255, .14);
    --brand-ink: color-mix(in srgb, var(--brand-primary), #fff 45%);
    --brand-ink-strong: color-mix(in srgb, var(--brand-primary), #fff 62%);
    --shadow-sm: 0 4px 18px rgba(0, 0, 0, .18);
    --shadow-md: 0 16px 42px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--surface-soft);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-ink); text-decoration: none; }
a:hover { color: var(--brand-ink-strong); }
h1, h2, h3, h4, h5, .fw-display { letter-spacing: -.035em; font-weight: 750; }
.text-muted-2 { color: var(--muted) !important; }
.small-label { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.min-w-0 { min-width: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.break-word { overflow-wrap: anywhere; word-break: break-word; }
.cursor-pointer { cursor: pointer; }

/* Buttons */
.btn { border-radius: 11px; font-weight: 650; padding: .62rem 1rem; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { --bs-btn-bg: var(--brand-primary); --bs-btn-border-color: var(--brand-primary); --bs-btn-hover-bg: color-mix(in srgb, var(--brand-primary), #000 12%); --bs-btn-hover-border-color: color-mix(in srgb, var(--brand-primary), #000 12%); --bs-btn-active-bg: color-mix(in srgb, var(--brand-primary), #000 18%); --bs-btn-active-border-color: color-mix(in srgb, var(--brand-primary), #000 18%); box-shadow: 0 8px 20px color-mix(in srgb, var(--brand-primary) 28%, transparent); }
.btn-outline-primary { --bs-btn-color: var(--brand-ink); --bs-btn-border-color: color-mix(in srgb, var(--brand-primary) 60%, var(--line)); --bs-btn-hover-bg: var(--brand-primary); --bs-btn-hover-border-color: var(--brand-primary); }
.btn-soft { background: var(--brand-soft); color: var(--brand-ink); border: 1px solid color-mix(in srgb, var(--brand-primary) 18%, transparent); }
.btn-soft:hover { background: color-mix(in srgb, var(--brand-soft), var(--brand-primary) 12%); color: var(--brand-ink); }
.btn-icon { width: 38px; height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.btn-sm { padding: .38rem .7rem; font-size: .8rem; border-radius: 9px; }
.btn-lg { padding: .82rem 1.35rem; border-radius: 13px; font-size: 1rem; }

/* Forms */
.form-control, .form-select { border-radius: 11px; border-color: var(--line); padding: .63rem .82rem; background: var(--surface); color: var(--ink); }
.form-control:focus, .form-select:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 .22rem color-mix(in srgb, var(--brand-primary) 15%, transparent); background: var(--surface); color: var(--ink); }
.form-label { font-size: .8rem; font-weight: 660; margin-bottom: .42rem; color: color-mix(in srgb, var(--ink) 86%, var(--muted)); }
.form-text { color: var(--muted); font-size: .76rem; }
.form-check-input:checked { background-color: var(--brand-primary); border-color: var(--brand-primary); }
.input-group-text { border-radius: 11px; border-color: var(--line); background: var(--surface-soft); color: var(--muted); font-weight: 600; }
textarea.form-control { min-height: 110px; }
.invalid-feedback { display: none; }
.is-invalid ~ .invalid-feedback { display: block; }

/* Cards and tables */
.card { background: var(--surface); border-color: var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-body { padding: 1.4rem; }
.card-header { background: transparent; border-bottom-color: var(--line); padding: 1.1rem 1.4rem; }
.table { --bs-table-bg: transparent; --bs-table-color: var(--ink); --bs-table-border-color: var(--line); margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .82rem .85rem; vertical-align: middle; }
.table thead th { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; white-space: nowrap; border-bottom-width: 1px; }
.table-hover tbody tr:hover { --bs-table-hover-bg: color-mix(in srgb, var(--brand-primary) 4%, transparent); }
.table-card { overflow: hidden; }
.table-card .table-responsive { border-radius: 0 0 var(--radius) var(--radius); }
.badge { font-weight: 650; letter-spacing: .015em; border-radius: 7px; padding: .4em .58em; }
.status-badge { font-size: .69rem; }
.dropdown-menu { background: var(--surface); border-color: var(--line); border-radius: 13px; box-shadow: var(--shadow-md); padding: .45rem; }
.dropdown-item { border-radius: 8px; padding: .55rem .7rem; font-size: .86rem; color: var(--ink); }
.dropdown-item:hover { background: var(--surface-soft); color: var(--brand-ink); }
.dropdown-divider { border-color: var(--line); }
.alert { border-radius: 12px; border-width: 1px; font-size: .88rem; }
.alert-success { background: #ecfdf3; color: #05603a; border-color: #abefc6; }
.alert-danger { background: #fef3f2; color: #912018; border-color: #fecdca; }
.alert-warning { background: #fffaeb; color: #93370d; border-color: #fedf89; }
.alert-info { background: #eff8ff; color: #175cd3; border-color: #b2ddff; }
[data-bs-theme="dark"] .alert-success { background: #052e1c; color: #a6f4c5; border-color: #085d3a; }
[data-bs-theme="dark"] .alert-danger { background: #3a1110; color: #fda29b; border-color: #7a271a; }
[data-bs-theme="dark"] .alert-warning { background: #35230a; color: #fec84b; border-color: #7a3b0a; }
[data-bs-theme="dark"] .alert-info { background: #10284a; color: #b2ddff; border-color: #194185; }

/* Public navigation */
.public-nav { position: sticky; top: 0; z-index: 1030; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.public-nav .navbar { min-height: 74px; }
.brand-lockup { display: inline-flex; align-items: center; gap: .7rem; font-weight: 800; color: var(--ink); letter-spacing: -.04em; font-size: 1.2rem; }
.brand-lockup:hover { color: var(--ink); }
.brand-lockup img { max-height: 42px; width: auto; display: block; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 850; background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent)); box-shadow: 0 8px 20px color-mix(in srgb, var(--brand-primary) 25%, transparent); }
.nav-public-link { color: var(--muted); font-size: .88rem; font-weight: 600; padding: .55rem .7rem !important; border-radius: 9px; }
.nav-public-link:hover, .nav-public-link.active { color: var(--brand-ink); background: var(--brand-soft); }
.public-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 54px 0 26px; margin-top: 64px; }
.public-footer h6, .public-footer .footer-heading { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.footer-link { display: block; color: var(--muted); font-size: .86rem; padding: .28rem 0; }
.footer-link:hover { color: var(--brand-ink); }

/* Public hero */
.hero { padding: 80px 0 60px; position: relative; overflow: hidden; background:
    radial-gradient(800px 420px at 12% -5%, color-mix(in srgb, var(--brand-primary) 16%, transparent), transparent 58%),
    radial-gradient(700px 380px at 92% 2%, color-mix(in srgb, var(--brand-accent) 13%, transparent), transparent 60%);
}
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.32), transparent 72%); pointer-events: none; }
.hero > .container { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid color-mix(in srgb, var(--brand-primary) 22%, var(--line)); background: color-mix(in srgb, var(--surface) 78%, transparent); color: var(--brand-ink); border-radius: 100px; padding: .38rem .78rem; font-size: .75rem; font-weight: 700; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 4.1rem); line-height: 1.03; letter-spacing: -.055em; margin: 1.1rem 0; }
.hero .lead { font-size: 1.06rem; color: var(--muted); line-height: 1.7; max-width: 620px; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-md); padding: 22px; transform: rotate(1deg); }
.hero-mini-stat { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; align-items: center; gap: 12px; background: var(--surface-soft); }
.hero-mini-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-size: 1.15rem; }
.section-pad { padding: 70px 0; }
.section-heading { max-width: 680px; margin-bottom: 34px; }
.section-heading h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -.045em; }
.feature-card { height: 100%; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-size: 1.25rem; margin-bottom: 16px; }
.category-card { display: block; height: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 20px; color: var(--ink); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.category-card:hover { color: var(--ink); transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand-primary) 38%, var(--line)); box-shadow: var(--shadow-md); }
.category-platform-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-size: 1.2rem; background: var(--platform-color, var(--brand-primary)); }
.price-pill { display: inline-flex; align-items: center; border-radius: 7px; padding: .28rem .5rem; background: var(--surface-soft); border: 1px solid var(--line); color: var(--muted); font-size: .73rem; font-weight: 650; }
.service-card { height: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 20px; transition: transform .18s ease, box-shadow .18s ease; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.service-card .service-name { color: var(--ink); font-weight: 700; font-size: .94rem; line-height: 1.4; display: block; min-height: 2.6rem; }
.stat-strip { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.stat-strip .stat-item { padding: 20px; border-right: 1px solid var(--line); }
.stat-strip .stat-item:last-child { border-right: 0; }
.stat-strip strong { display: block; font-size: 1.45rem; letter-spacing: -.04em; }
.stat-strip span { color: var(--muted); font-size: .76rem; }
.stat-disclosure { border-top: 1px solid var(--line); padding: 10px 16px; text-align: center; font-size: .72rem; color: var(--muted); }
.showcase-live-badge { display: inline-flex; align-items: center; gap: .42rem; background: color-mix(in srgb, var(--brand-success) 12%, var(--surface)); color: color-mix(in srgb, var(--brand-success), #000 34%); border: 1px solid color-mix(in srgb, var(--brand-success) 28%, var(--line)); font-weight: 650; }
.live-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-success); box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-success) 45%, transparent); animation: livePulse 2.4s ease-out infinite; }
[data-bs-theme="dark"] .showcase-live-badge { color: #a6f4c5; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-success) 45%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .live-pulse { animation: none; } }
.faq-accordion .accordion-item { background: var(--surface); border-color: var(--line); border-radius: 13px !important; margin-bottom: 10px; overflow: hidden; }
.faq-accordion .accordion-button { background: var(--surface); color: var(--ink); font-weight: 650; box-shadow: none; }
.faq-accordion .accordion-button:not(.collapsed) { color: var(--brand-ink); background: var(--brand-soft); }
.faq-accordion .accordion-body { color: var(--muted); line-height: 1.7; }

/* Auth */
.auth-body { min-height: 100vh; background: var(--surface-soft); }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-aside { position: relative; overflow: hidden; padding: 52px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background:
    radial-gradient(800px 500px at 20% 0%, rgba(255,255,255,.18), transparent 62%),
    linear-gradient(145deg, #163fa8, var(--brand-primary) 48%, var(--brand-accent)); }
.auth-aside::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.24) 1px, transparent 1px); background-size: 28px 28px; opacity: .38; }
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside .brand-lockup { color: #fff; }
.auth-aside .brand-lockup:hover { color: #fff; }
.auth-quote { font-size: clamp(1.9rem, 3vw, 3rem); line-height: 1.12; letter-spacing: -.055em; font-weight: 750; max-width: 560px; }
.auth-aside p { color: #fff; line-height: 1.7; }
.auth-main { display: grid; place-items: center; padding: 36px 24px; }
.auth-card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-md); padding: 34px; }
.auth-card h1 { font-size: 1.8rem; }
.auth-feature { display: flex; gap: 10px; align-items: center; color: #fff; font-size: .86rem; }
.auth-feature i { color: #a8ffce; }
.auth-mobile-brand { display: none; margin-bottom: 22px; }
@media (max-width: 991.98px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .auth-mobile-brand { display: block; }
}

/* Application shell */
.app-body { min-height: 100vh; background: var(--surface-soft); }
.app-sidebar { width: var(--sidebar-width); background: var(--surface); border-right: 1px solid var(--line); min-height: 100vh; position: fixed; inset: 0 auto 0 0; z-index: 1040; display: flex; flex-direction: column; }
.sidebar-brand { height: var(--topbar-height); display: flex; align-items: center; padding: 0 22px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.sidebar-scroll { overflow-y: auto; flex: 1; padding: 16px 13px 22px; scrollbar-width: thin; }
.sidebar-section { font-size: .65rem; letter-spacing: .1em; font-weight: 750; text-transform: uppercase; color: var(--muted); padding: 18px 12px 7px; }
.sidebar-link { display: flex; align-items: center; gap: 11px; padding: .64rem .78rem; border-radius: 10px; color: color-mix(in srgb, var(--ink) 78%, var(--muted)); font-size: .85rem; font-weight: 600; margin-bottom: 2px; transition: background .15s ease, color .15s ease; }
.sidebar-link i { font-size: 1.03rem; width: 19px; text-align: center; color: var(--muted); transition: color .15s ease; }
.sidebar-link:hover { background: var(--surface-soft); color: var(--brand-ink); }
.sidebar-link:hover i { color: var(--brand-ink); }
.sidebar-link.active { background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
.sidebar-link.active i { color: var(--brand-ink); }
.sidebar-link .badge { margin-left: auto; }
.sidebar-balance { margin: 14px 10px 4px; padding: 14px; border-radius: 13px; background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent)); color: #fff; position: relative; overflow: hidden; }
.sidebar-balance::after { content: ""; position: absolute; width: 100px; height: 100px; border-radius: 50%; background: rgba(255,255,255,.12); right: -30px; top: -40px; }
.sidebar-balance small { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; opacity: 1; font-weight: 700; }
.sidebar-balance strong { display: block; font-size: 1.3rem; letter-spacing: -.03em; margin-top: 3px; }
.sidebar-balance a { color: #fff; font-size: .7rem; font-weight: 700; opacity: .88; display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; }
.app-main { margin-left: var(--sidebar-width); min-height: 100vh; min-width: 0; }
.app-topbar { height: var(--topbar-height); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 1020; }
.app-content { padding: 28px; max-width: 1600px; margin: 0 auto; }
.page-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.page-heading h1 { font-size: 1.6rem; margin: 0; }
.page-heading p { margin: .35rem 0 0; color: var(--muted); font-size: .86rem; }
.breadcrumb { --bs-breadcrumb-divider-color: var(--muted); --bs-breadcrumb-item-active-color: var(--muted); font-size: .76rem; margin-bottom: .3rem; }
.avatar { width: 38px; height: 38px; border-radius: 11px; display: inline-grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-weight: 750; font-size: .8rem; flex-shrink: 0; }
.avatar-lg { width: 58px; height: 58px; border-radius: 16px; font-size: 1.05rem; }
.icon-btn { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--muted); border: 1px solid var(--line); background: var(--surface); }
.icon-btn:hover { color: var(--brand-ink); border-color: color-mix(in srgb, var(--brand-primary) 32%, var(--line)); }
.notification-dot { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: #f04438; border: 2px solid var(--surface); }
.mobile-menu-btn { display: none; }
.stat-card { display: block; color: var(--ink); padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); height: 100%; }
.stat-card:hover { color: var(--ink); border-color: color-mix(in srgb, var(--brand-primary) 32%, var(--line)); }
.stat-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat-card .stat-label { font-size: .74rem; color: var(--muted); font-weight: 650; }
.stat-card .stat-value { font-size: 1.55rem; font-weight: 750; letter-spacing: -.04em; margin-top: 8px; line-height: 1.15; }
.stat-card .stat-sub { font-size: .72rem; color: var(--muted); margin-top: 6px; }
.stat-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 1.05rem; background: var(--brand-soft); color: var(--brand-ink); }
.stat-icon.success { background: rgba(16, 185, 129, .11); color: #059669; }
.stat-icon.warning { background: rgba(245, 158, 11, .12); color: #d97706; }
.stat-icon.danger { background: rgba(239, 68, 68, .11); color: #dc2626; }
.stat-icon.violet { background: rgba(124, 58, 237, .11); color: var(--brand-accent); }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-title-row h5 { font-size: 1rem; margin: 0; }
.empty-state { text-align: center; padding: 46px 20px; }
.empty-state .empty-icon { width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 17px; display: grid; place-items: center; background: var(--surface-soft); color: var(--muted); font-size: 1.4rem; }
.empty-state h5 { font-size: 1rem; }
.empty-state p { color: var(--muted); font-size: .84rem; max-width: 380px; margin: 0 auto 16px; }
.quick-action { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface); transition: border-color .15s ease, transform .15s ease; }
.quick-action:hover { border-color: color-mix(in srgb, var(--brand-primary) 35%, var(--line)); color: var(--ink); transform: translateY(-1px); }
.quick-action .qa-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); flex-shrink: 0; }
.quick-action small { color: var(--muted); font-size: .72rem; display: block; }
.detail-list { display: grid; gap: 0; }
.detail-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 18px; padding: .72rem 0; border-bottom: 1px solid var(--line); font-size: .84rem; }
.detail-row > * { min-width: 0; }
.detail-row strong, .detail-row dd { overflow-wrap: anywhere; }
.detail-row:last-child { border-bottom: 0; }
.detail-row dt, .detail-row .dt { color: var(--muted); font-weight: 600; }
.detail-row dd, .detail-row .dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.detail-hint { flex: 1 0 100%; color: var(--muted); font-weight: 400; line-height: 1.4; }
.info-banner { border: 1px solid color-mix(in srgb, var(--brand-primary) 20%, var(--line)); background: var(--brand-soft); border-radius: 13px; padding: 14px 16px; display: flex; gap: 11px; font-size: .84rem; line-height: 1.55; color: color-mix(in srgb, var(--ink) 88%, var(--brand-primary)); }
.info-banner i { color: var(--brand-ink); font-size: 1.05rem; flex-shrink: 0; }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 5px; bottom: 5px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 18px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -22px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand-primary); }
.timeline-item h6 { font-size: .82rem; margin: 0 0 2px; }
.timeline-item p { font-size: .78rem; color: var(--muted); margin: 0 0 3px; line-height: 1.55; }
.timeline-item time { font-size: .7rem; color: var(--muted); }
.chat-wrap { display: flex; flex-direction: column; gap: 14px; }
.chat-message { display: flex; gap: 11px; max-width: 86%; }
.chat-message.mine { margin-left: auto; flex-direction: row-reverse; }
.chat-bubble { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 12px 14px; font-size: .85rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-message.mine .chat-bubble { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand-primary) 20%, var(--line)); }
.chat-message.internal .chat-bubble { background: #fffaeb; border-color: #fedf89; color: #7a2e0e; }
.chat-meta { font-size: .7rem; color: var(--muted); margin-top: 4px; display: flex; gap: 6px; align-items: center; }
.help-text { font-size: .76rem; color: var(--muted); line-height: 1.6; }
.divider-text { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.divider-text::before, .divider-text::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.qr-panel { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 16px; display: grid; place-items: center; }
.qr-panel svg { width: 100%; max-width: 260px; height: auto; display: block; }

/* Manual UPI / Paytm deposit page */
.pay-method-static .form-select { background-color: var(--surface-soft); font-weight: 600; color: var(--ink); pointer-events: none; }
.pay-instruction { text-align: center; margin: .25rem auto 0; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pay-instruction .pay-hl { display: inline-block; background: #ffe600; color: #111; font-weight: 700; font-size: .88rem; line-height: 1.55; padding: 1px 7px; border-radius: 3px; }
.pay-qr { display: flex; justify-content: center; padding: 14px 0 4px; }
.pay-qr img { width: min(290px, 82vw); height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.pay-qr .qr-panel { width: min(310px, 86vw); }
.pay-upi { text-align: center; font-weight: 650; font-size: .98rem; margin: .5rem 0 .85rem; overflow-wrap: anywhere; }
.pay-check-note { text-align: center; font-weight: 700; color: var(--brand-ink); font-size: .9rem; margin: 0 0 .35rem; }
.pay-help { text-align: center; font-size: .86rem; color: var(--muted); margin: 0 0 1rem; }
.pay-check-btn { width: 100%; background: #ef2b3d; border: 1px solid #ef2b3d; color: #fff; font-weight: 700; letter-spacing: .02em; border-radius: 12px; padding: .85rem 1rem; font-size: 1.02rem; }
.pay-check-btn:hover, .pay-check-btn:focus { background: #d81f31; border-color: #d81f31; color: #fff; }
.pay-check-btn:disabled { background: #f0909a; border-color: #f0909a; }
.whatsapp-float { position: fixed; right: 18px; bottom: 18px; z-index: 1040; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.55rem; box-shadow: 0 12px 26px rgba(0,0,0,.24); transition: transform .15s ease; }
.whatsapp-float:hover, .whatsapp-float:focus { color: #fff; transform: translateY(-2px); }
.pay-status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: 5px; vertical-align: 1px; }
.copy-field { position: relative; }
.copy-field .form-control { padding-right: 48px; font-family: ui-monospace, Consolas, monospace; font-size: .84rem; }
.copy-btn { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); width: 36px; height: 36px; border-radius: 8px; }
.copy-btn:hover { color: var(--brand-ink); background: var(--brand-soft); }

/* Admin */
.admin-sidebar { background: #0c1424; border-right-color: #1c2a42; }
.admin-sidebar .sidebar-brand { border-bottom-color: #1b2941; }
.admin-sidebar .brand-lockup { color: #fff; }
.admin-sidebar .brand-lockup:hover { color: #fff; }
.admin-sidebar .sidebar-section { color: #8492a8; }
.admin-sidebar .sidebar-link { color: #a9b8cf; }
.admin-sidebar .sidebar-link i { color: #657792; }
.admin-sidebar .sidebar-link:hover { background: #152238; color: #fff; }
.admin-sidebar .sidebar-link:hover i { color: #8ab1ff; }
.admin-sidebar .sidebar-link.active { background: rgba(54, 118, 255, .16); color: #cfe0ff; }
.admin-sidebar .sidebar-link.active i { color: #8ab1ff; }
.admin-sidebar .sidebar-scroll { scrollbar-color: #2a3850 transparent; }
.admin-badge { font-size: .62rem; padding: .3em .45em; border: 1px solid #33435e; color: #8da2c0; border-radius: 5px; }
.topbar-search { max-width: 380px; width: 100%; }
.topbar-search input { background: var(--surface-soft); }
.admin-table .table { font-size: .82rem; }
.report-kpi { border-left: 3px solid var(--brand-primary); }

/* Data visual helpers */
.progress { height: 7px; background: var(--surface-soft); border-radius: 100px; }
.progress-bar { border-radius: 100px; }
.soft-divider { height: 1px; background: var(--line); margin: 18px 0; }
.code-block { background: #0d1728; color: #d6e3f7; border-radius: 13px; padding: 18px; font-family: ui-monospace, Consolas, monospace; font-size: .8rem; line-height: 1.65; overflow-x: auto; }
.code-block .tok-key { color: #93c5fd; }
.code-block .tok-string { color: #a7f3d0; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; padding: .3rem .58rem; font-size: .72rem; font-weight: 650; background: var(--surface-soft); border: 1px solid var(--line); color: var(--muted); }
.chart-wrap { position: relative; height: 280px; width: 100%; }
.chart-wrap-sm { position: relative; height: 230px; width: 100%; }

/* Floating social rail + platform marquee */
[data-theme-mode-locked="1"] [data-theme-toggle] { display: none !important; }
.social-rail { display: none; }
@media (min-width: 992px) {
    .social-rail { display: block; position: fixed; left: 16px; top: 50%; transform: translateY(-50%); z-index: 1025; }
}
.social-rail-title { display: block; font-size: .6rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 10px; }
.social-rail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.social-rail-item { animation: rail-float 4.6s ease-in-out infinite; animation-delay: var(--float-delay, 0s); }
.social-orb { position: relative; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: var(--brand-ink); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 1.1rem; transition: transform .16s ease, color .16s ease, border-color .16s ease; }
.social-orb:hover, .social-orb:focus-visible { color: #fff; background: var(--brand-primary); border-color: var(--brand-primary); transform: translateY(-2px) scale(1.06); outline: none; }
.social-orb-label { position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%) scale(.9); white-space: nowrap; font-size: .68rem; font-weight: 700; padding: .22rem .5rem; border-radius: 7px; background: var(--ink); color: var(--surface); opacity: 0; pointer-events: none; transition: opacity .14s ease, transform .14s ease; }
.social-orb:hover .social-orb-label, .social-orb:focus-visible .social-orb-label { opacity: 1; transform: translateY(-50%) scale(1); }
@keyframes rail-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}
.marquee { position: relative; overflow: hidden; }
.marquee-track { display: flex; align-items: center; gap: 26px; width: max-content; animation: marquee-scroll 26s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-chip { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 650; color: var(--muted); white-space: nowrap; }
.marquee-chip i { font-size: 1.15rem; color: var(--brand-ink); }
@keyframes marquee-scroll {
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .social-rail-item, .marquee-track { animation: none; }
    .marquee { overflow-x: auto; }
}

/* Responsive */
@media (max-width: 1199.98px) {
    .app-content { padding: 22px; }
    .app-topbar { padding: 0 22px; }
}
@media (max-width: 991.98px) {
    .app-sidebar { position: fixed; transform: translateX(-100%); transition: transform .2s ease; }
    .app-sidebar.show { transform: translateX(0); }
    .app-main { margin-left: 0; }
    .mobile-menu-btn { display: inline-flex; }
    .sidebar-backdrop { position: fixed; inset: 0; background: rgba(10, 20, 35, .48); z-index: 1035; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
    .sidebar-backdrop.show { opacity: 1; pointer-events: auto; }
    .topbar-search { display: none; }
}
@media (max-width: 767.98px) {
    .app-content { padding: 16px; }
    .app-topbar { height: 64px; padding: 0 14px; }
    .page-heading h1 { font-size: 1.35rem; }
    .hero { padding: 54px 0 38px; }
    .section-pad { padding: 46px 0; }
    .stat-strip .stat-item { border-right: 0; border-bottom: 1px solid var(--line); }
    .stat-strip .stat-item:last-child { border-bottom: 0; }
    .auth-card { padding: 26px 20px; }
    .card-body { padding: 1.1rem; }
    .table > :not(caption) > * > * { padding: .7rem .6rem; }
    .public-footer { margin-top: 40px; padding: 38px 0 20px; }
    .chat-message { max-width: 95%; }
}
@media print {
    .app-sidebar, .app-topbar, .public-nav, .public-footer, .btn, .no-print, .social-rail { display: none !important; }
    .app-main { margin-left: 0; }
    .app-content { padding: 0; }
    .card { box-shadow: none; border: 1px solid #ddd; }
}
