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

:root {
  --primary-color: #4f46e5;
  --primary-dark: #3730a3;
  --success-color: #10b981;
  --info-color: #06b6d4;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --dark-color: #1f2937;
  --darker-color: #111827;
  --light-color: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --sidebar-width: 280px;
  --sidebar-mini-width: 84px;
  --topbar-height: 112px;
  --page-radius: 18px;
  --card-radius: 16px;
  --card-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
  --card-shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.08);
  --page-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --panel-bg: rgba(255, 255, 255, 0.96);
  --panel-border: rgba(255, 255, 255, 0.52);
  --text-main: #172033;
  --text-sub: #58657d;
  --text-faint: #6b7280;
  --input-bg: #ffffff;
  --input-border: rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text-main);
  font-family: "Hind Siliguri", "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--page-bg);
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 560px;
  height: 560px;
  transform: translate(-50%, -50%);
  background: url("../../icons/icon.png") center/contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

body[data-theme="dark"] {
  --page-bg: linear-gradient(180deg, #0b1020 0%, #101933 50%, #0a1226 100%);
  --panel-bg: rgba(17, 24, 39, 0.94);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text-main: #f8fafc;
  --text-sub: #c7d2e5;
  --text-faint: #94a3b8;
  --gray-100: #172033;
  --gray-200: #23314d;
  --gray-300: #334466;
  --input-bg: rgba(255, 255, 255, 0.06);
  --input-border: rgba(255, 255, 255, 0.14);
}

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

.app-container {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, var(--gray-900) 0%, var(--darker-color) 100%);
  color: #fff;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.12);
  transition: width 0.28s ease, transform 0.28s ease;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand,
.company-logo {
  display: block;
  width: 100%;
}

.logo-fallback {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.22);
}

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

.sidebar-app-icon img {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

.sidebar-brand-text {
  font-size: 1.15rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
  overflow-y: auto;
}

.nav-item {
  margin: 0.25rem 1rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  border-radius: 0.85rem;
  font-weight: 500;
  transition: all 0.22s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.22), rgba(14, 165, 233, 0.14));
  color: #fff;
  transform: translateX(3px);
}

.nav-link.active::before {
  content: "";
  position: absolute;
  left: -0.25rem;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #8b5cf6, #38bdf8);
}

.nav-icon {
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.nav-label-stack {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nav-label {
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-label-stack small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
}

.sidebar-summary-card {
  margin: 0 1rem 1rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-summary-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 0.85rem;
}

.sidebar-summary-head span,
.sidebar-summary-note,
.sidebar-summary-grid small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.73rem;
}

.sidebar-summary-head strong,
.sidebar-summary-grid strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

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

.sidebar-summary-grid div {
  padding: 0.75rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-summary-grid strong,
.sidebar-summary-grid small {
  display: block;
}

.sidebar-summary-note {
  margin-top: 0.85rem;
  line-height: 1.45;
}

.sidebar-footer {
  padding: 0.9rem 1rem 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-collapse-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.main-content {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  min-height: 100vh;
  padding: 1.5rem;
  transition: margin-left 0.28s ease, width 0.28s ease;
}

.top-header {
  position: sticky;
  top: 0;
  z-index: 900;
  margin-bottom: 1.35rem;
  padding: 1rem 1.2rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(18px);
}

body[data-theme="dark"] .top-header {
  background: rgba(17, 24, 39, 0.9);
}

.top-header-main,
.page-headline,
.topbar-strip,
.section-head,
.workspace-toolbar,
.hero-head,
.editor-actions,
.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.top-header-left {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  min-width: 0;
}

.mobile-sidebar-toggle {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  border: 0;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.crm-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--gray-500);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.crm-page-title,
.page-hero-copy h2,
.workspace-toolbar h3,
.workspace-side-card h3,
.section-head h2 {
  margin: 0;
  font-size: 1.75rem;
  color: var(--text-main);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-note,
.mini-note,
.setting-meta,
.page-footer-copy span {
  margin: 0.4rem 0 0;
  color: var(--text-sub);
  line-height: 1.5;
}

.top-header-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.topbar-signal-card,
.simple-stat,
.hero-stat-card,
.metric-card,
.setting-card,
.profile-card,
.command-card,
.workspace-main-card,
.workspace-side-card,
.page-hero-card,
.notice-card,
.record-shell,
.card-like {
  border-radius: var(--card-radius);
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  box-shadow: var(--card-shadow-soft);
}

.topbar-signal-card {
  padding: 0.95rem 1rem;
}

.topbar-signal-card small,
.page-eyebrow,
.setting-key,
.metric-card span,
.simple-stat span,
.hero-stat-card span,
.command-tag,
.preview-kicker {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--gray-500);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-signal-card strong,
.simple-stat strong,
.hero-stat-card strong,
.setting-value,
.metric-card strong,
.command-title,
.profile-name {
  display: block;
  color: var(--text-main);
  font-weight: 800;
}

.topbar-signal-card-wide strong {
  font-size: 0.95rem;
  word-break: break-word;
}

.page-shell {
  display: grid;
  gap: 1.2rem;
}

.panel-section,
.simple-main-section,
.workspace-main-card,
.workspace-side-card,
.page-hero-card {
  padding: 1.25rem;
}

.simple-main-section {
  display: block;
}

.page-hero-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94));
}

body[data-theme="dark"] .page-hero-card {
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.2), transparent 38%),
    rgba(17, 24, 39, 0.96);
}

.page-hero-copy {
  max-width: 760px;
}

.page-hero-copy p {
  margin: 0.5rem 0 0;
  color: var(--text-sub);
  line-height: 1.6;
}

.page-hero-stats,
.simple-stats-grid {
  display: grid;
  gap: 0.9rem;
}

.page-hero-stats {
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  min-width: 320px;
}

.simple-stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.simple-stat,
.hero-stat-card {
  padding: 1rem 1.05rem;
}

.simple-links-list,
.stack-list,
.timeline-list {
  display: grid;
  gap: 0.9rem;
}

.simple-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--card-shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body[data-theme="dark"] .simple-link-row {
  background: rgba(17, 24, 39, 0.94);
  border-color: rgba(255, 255, 255, 0.08);
}

.simple-link-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}

.simple-link-row span {
  font-weight: 800;
}

.simple-link-row small {
  color: var(--text-sub);
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 1.2rem;
}

.workspace-side-stack {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.workspace-toolbar {
  margin-bottom: 1rem;
}

.toolbar,
.toolbar-wrap,
.brand,
.brand-pills,
.users-filter-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.toggle,
.auth-switch {
  display: inline-flex;
  gap: 0.45rem;
  padding: 0.32rem;
  border-radius: 0.9rem;
  background: rgba(79, 70, 229, 0.06);
  border: 1px solid rgba(79, 70, 229, 0.12);
}

.toggle-btn,
.auth-switch-btn {
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 0.7rem;
  background: transparent;
  color: var(--gray-600);
  font-size: 0.82rem;
  font-weight: 800;
}

.toggle-btn.active,
.auth-switch-btn.active {
  background: #fff;
  color: var(--text-main);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

body[data-theme="dark"] .toggle-btn.active,
body[data-theme="dark"] .auth-switch-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.search-wrap {
  position: relative;
  min-width: 280px;
}

.search-wrap::before {
  content: "⌕";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
}

input[type="text"],
input[type="email"],
input[type="password"],
select.web-select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.8rem 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-main);
  font: inherit;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.search-wrap input[type="text"] {
  padding-left: 2rem;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(79, 70, 229, 0.42);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.field-block,
.auth-field {
  display: grid;
  gap: 0.5rem;
}

.field-block > span,
.auth-field > span,
.field-check span {
  color: var(--gray-600);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-check {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.field-check-stack {
  justify-content: center;
  min-height: 100%;
}

.field-check input[type="checkbox"],
.meta-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
}

.btn,
.mini-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 0.8rem;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  box-shadow: 0 14px 26px rgba(79, 70, 229, 0.2);
}

.btn:hover,
.mini-link:hover {
  transform: translateY(-1px);
}

.btn.ghost,
.mini-link {
  background: rgba(255, 255, 255, 0.98);
  color: var(--text-main);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: var(--card-shadow-soft);
}

body[data-theme="dark"] .btn.ghost,
body[data-theme="dark"] .mini-link {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

.btn.sm,
.mini-link {
  min-height: 38px;
  padding: 0 0.9rem;
  font-size: 0.78rem;
}

.btn.danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}

.command-grid,
.profiles-grid,
.mini-reference-grid,
.summary-grid,
.settings-grid,
.form-grid,
.inline-form-grid,
.edit-row-grid {
  display: grid;
  gap: 0.95rem;
}

.command-grid,
.settings-grid,
.inline-form-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-grid,
.profiles-grid,
.summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profiles-grid-large,
.mini-reference-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.profiles-grid-large .profile-card-rich {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
}

.profiles-grid-large .profile-meta-row {
  justify-self: start;
}

.profiles-grid-large .profile-actions-wide {
  justify-self: end;
  flex-wrap: nowrap;
}

.workspace-grid-tempids .stack-list {
  display: grid;
  gap: 1rem;
}

.workspace-grid-tempids .record-shell {
  display: grid;
  gap: 0.75rem;
}

.workspace-grid-tempids .edit-row-grid {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(220px, 1.2fr) auto;
  align-items: end;
}

.workspace-grid-tempids .row-actions {
  justify-content: flex-end;
  align-self: end;
}

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

.profile-card,
.command-card,
.setting-card,
.record-shell,
.create-card,
.timeline-row,
.log-row {
  padding: 1rem;
}

.profile-card-rich,
.profile-card-compact {
  display: grid;
  gap: 0.8rem;
}

.profile-title-row,
.profile-actions,
.profile-actions-wide,
.row-actions,
.log-top,
.timeline-copy {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.profile-subline,
.setting-key,
.profile-dot,
.command-card .section-note {
  color: var(--text-sub);
}

.profile-copy,
.timeline-content {
  min-width: 0;
}

.profile-meta-row {
  min-width: 0;
}

.profile-name {
  font-size: 1rem;
}

.profile-badge,
.status-chip,
.auth-badge,
.command-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary-dark);
}

.profile-badge.source {
  background: rgba(6, 182, 212, 0.12);
  color: #0f766e;
}

.badge-success {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.badge-warning {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}

.badge-danger {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
}

.notice-card {
  padding: 1rem 1.1rem;
}

.notice-card-error {
  background: rgba(239, 68, 68, 0.08);
  color: #991b1b;
  border-color: rgba(239, 68, 68, 0.2);
}

body[data-theme="dark"] .notice-card-error {
  color: #fecaca;
}

.empty {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px dashed rgba(15, 23, 42, 0.12);
  color: var(--text-sub);
}

body[data-theme="dark"] .empty {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.timeline-item,
.timeline-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-color), var(--info-color));
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th {
  background-color: #000 !important;
  color: #fff !important;
  font-weight: 700;
  padding: 0.9rem 1rem;
  text-align: left;
  border: 0;
}

.data-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  vertical-align: top;
}

.data-table tbody tr {
  background: rgba(255, 255, 255, 0.96);
}

body[data-theme="dark"] .data-table tbody tr {
  background: rgba(17, 24, 39, 0.96);
}

.data-table tbody tr:hover {
  background-color: rgba(79, 70, 229, 0.03);
}

.users-admin-grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

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

.workspace-grid-references,
.workspace-grid-profiles,
.workspace-grid-logs,
.workspace-grid-tempids {
  grid-template-columns: minmax(0, 1fr);
}

.users-admin-grid .workspace-main-card {
  width: auto;
  max-width: none;
  margin: 0;
  justify-self: stretch;
}

.users-filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(2, minmax(140px, 0.7fr)) auto;
  gap: 0.85rem;
  align-items: end;
  width: 100%;
}

.users-table-wrap,
.users-list-wrap {
  margin-top: 1rem;
  overflow-x: auto;
}

.users-list-wrap {
  padding: 0.48rem;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.82), rgba(241, 245, 249, 0.72));
  border: 1px solid rgba(148, 163, 184, 0.12);
}

body[data-theme="dark"] .users-list-wrap {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(8, 15, 30, 0.92));
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.users-table {
  min-width: 1080px;
}

.users-list {
  display: grid;
  gap: 0.62rem;
}

.user-list-card {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(186px, 0.72fr);
  gap: 0.58rem;
  align-items: start;
  padding: 0.62rem;
  border-radius: 0.82rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.07), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 255, 0.9)),
    rgba(255, 255, 255, 0.94);
  box-shadow:
    0 16px 30px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body[data-theme="dark"] .user-list-card {
  border-color: rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.96));
  box-shadow:
    0 18px 34px rgba(2, 8, 23, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.user-list-main {
  display: grid;
  gap: 0.48rem;
  min-width: 0;
}

.user-card-shell {
  display: grid;
  gap: 0.34rem;
  padding: 0.02rem;
}

.user-list-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.46rem;
  align-items: start;
  padding-bottom: 0.34rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

body[data-theme="dark"] .user-list-head {
  border-bottom-color: rgba(148, 163, 184, 0.18);
}

.user-row-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  align-items: center;
  min-width: 0;
}

.user-list-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.user-list-badges {
  justify-content: flex-end;
  align-content: flex-start;
}

.user-meta-chip {
  min-width: 0;
  padding: 0.28rem 0.34rem;
  border-radius: 0.48rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

body[data-theme="dark"] .user-meta-chip {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.user-meta-chip span,
.protected-note {
  display: block;
  color: var(--text-faint);
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.user-meta-chip strong {
  display: block;
  margin-top: 0.06rem;
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.12;
}

.user-list-actions {
  display: grid;
  align-content: start;
}

.protected-note {
  padding: 0.42rem 0.5rem;
  border-radius: 0.62rem;
  border: 1px dashed rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.56);
}

body[data-theme="dark"] .protected-note {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.user-row-main strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.15;
  color: var(--text-main);
}

.user-name-balance {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  flex-wrap: wrap;
}

.user-balance-note {
  margin: 0;
  padding: 0.15rem 0.42rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.18);
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
  font-weight: 700;
  line-height: 1.1;
  font-size: 0.68rem;
}

body[data-theme="dark"] .user-balance-note {
  border-color: rgba(52, 211, 153, 0.2);
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
}

.user-block-reason {
  margin-top: 0.35rem;
  color: #b45309;
}

.user-row-main .mini-note {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.2rem 0.48rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.66);
  font-size: 0.68rem;
  line-height: 1.25;
}

body[data-theme="dark"] .user-row-main .mini-note {
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.user-email-note {
  color: var(--text-main);
  font-weight: 600;
}

.user-mobile-note {
  color: var(--text-sub);
}

.user-list-meta {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.26rem;
}

.user-action-stack,
.compact-inline-form {
  display: grid;
  gap: 0.22rem;
  min-width: 82px;
}

.user-action-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.32rem;
  align-items: start;
}

.user-action-form.compact-inline-form {
  position: relative;
  overflow: hidden;
  gap: 0.22rem;
  padding: 0.24rem;
  border-radius: 0.56rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 255, 0.88)),
    rgba(255, 255, 255, 0.88);
  box-shadow:
    0 14px 28px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body[data-theme="dark"] .user-action-form.compact-inline-form {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.92));
  box-shadow:
    0 18px 34px rgba(2, 8, 23, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.user-action-form.compact-inline-form::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 28%, transparent 76%, rgba(99, 102, 241, 0.08));
  pointer-events: none;
}

.user-action-form.compact-inline-form > * {
  position: relative;
  z-index: 1;
}

.user-action-form.compact-inline-form textarea {
  min-height: 28px;
  padding: 0.24rem 0.34rem;
  border-radius: 0.48rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.96)),
    #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 8px 20px rgba(15, 23, 42, 0.05);
  font-size: 0.62rem;
  line-height: 1.16;
  resize: none;
}

body[data-theme="dark"] .user-action-form.compact-inline-form textarea {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05)),
    rgba(15, 23, 42, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 20px rgba(2, 8, 23, 0.16);
}

.user-action-form.compact-inline-form textarea::placeholder {
  color: var(--text-faint);
}

.user-action-form.compact-inline-form button {
  width: 100%;
  min-height: 22px;
  justify-content: center;
  border-radius: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: 0.6rem;
  padding: 0.14rem 0.3rem;
}

.user-action-form.compact-inline-form .btn.ghost {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(14, 165, 233, 0.08));
  border-color: rgba(79, 70, 229, 0.14);
}

.user-action-form.compact-inline-form .btn.danger {
  box-shadow: 0 14px 24px rgba(239, 68, 68, 0.14);
}

.users-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.is-active-page {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem 0.2rem;
  color: rgba(255, 255, 255, 0.92);
}

.page-footer-copy {
  display: grid;
  gap: 0.2rem;
}

.page-footer-copy strong {
  font-size: 0.9rem;
}

.page-footer-copy span,
.page-footer-meta {
  font-size: 0.78rem;
}

/* Auth shared brand styles */
.web-app,
.auth-body {
  color: var(--text-main);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-mark-lg {
  width: 42px;
  height: 42px;
}

.brand-copy h1 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  margin: 0.25rem 0 0;
  color: var(--text-sub);
}

/* Profile editor compatibility */
.container,
.meta-toolbar,
.editor-hero,
.form-group,
.family-stack {
  color: inherit;
}

/* Responsive */
@media (max-width: 1280px) {
  .workspace-grid,
  .users-admin-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-card {
    flex-direction: column;
  }

  .page-hero-stats {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 1100px) {
  .wide-grid,
  .form-grid,
  .summary-grid,
  .profiles-grid,
  .profiles-grid-large,
  .mini-reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-header-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .sidebar {
    transform: translateX(-100%);
    width: min(84vw, 320px);
  }

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

  .main-content {
    margin-left: 0;
    width: 100%;
  }

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

@media (min-width: 992px) {
  body.sidebar-mini .sidebar {
    width: var(--sidebar-mini-width);
  }

  body.sidebar-mini .main-content {
    margin-left: var(--sidebar-mini-width);
    width: calc(100% - var(--sidebar-mini-width));
  }

  body.sidebar-mini .sidebar-brand-text,
  body.sidebar-mini .nav-label-stack,
  body.sidebar-mini .sidebar-summary-card,
  body.sidebar-mini .collapse-label {
    display: none;
  }

  body.sidebar-mini .sidebar-header {
    padding: 1rem 0.75rem;
  }

  body.sidebar-mini .logo-fallback,
  body.sidebar-mini .nav-link,
  body.sidebar-mini .sidebar-collapse-btn {
    justify-content: center;
  }

  body.sidebar-mini .nav-item {
    margin: 0.25rem 0.6rem;
  }

  body.sidebar-mini .nav-link {
    padding-inline: 0.75rem;
  }
}

@media (max-width: 800px) {
  .main-content {
    padding: 1rem;
  }

  .top-header,
  .workspace-main-card,
  .workspace-side-card,
  .page-hero-card,
  .simple-main-section {
    padding: 1rem;
  }

  .users-filter-form,
  .inline-form-grid,
  .command-grid,
  .settings-grid,
  .page-hero-stats,
  .top-header-strip,
  .simple-stats-grid,
  .profiles-grid,
  .profiles-grid-large,
  .wide-grid,
  .form-grid,
  .summary-grid,
  .mini-reference-grid {
    grid-template-columns: 1fr;
  }

  .profiles-grid-large .profile-card-rich {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .profiles-grid-large .profile-actions-wide,
  .profiles-grid-large .profile-meta-row {
    justify-self: start;
  }

  .workspace-grid-tempids .edit-row-grid {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .workspace-grid-tempids .row-actions {
    justify-content: flex-start;
    align-self: stretch;
  }

  .user-list-card {
    grid-template-columns: 1fr;
  }

  .user-list-head {
    grid-template-columns: 1fr;
  }

  .user-row-main {
    gap: 0.3rem;
  }

  .user-list-badges {
    justify-content: flex-start;
  }

  .user-list-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-list-actions {
    width: 100%;
  }

  .user-action-stack {
    grid-template-columns: 1fr;
  }

  .topbar-actions,
  .users-pagination,
  .users-filter-actions,
  .page-footer {
    flex-direction: column;
    align-items: stretch;
  }
}

.topup-body {
  display: block;
  min-height: 100vh;
  padding: 20px;
}

.topup-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1520px);
  margin: 0 auto;
}

.topup-surface-card {
  padding: 26px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.1), transparent 26%),
    radial-gradient(circle at top right, rgba(34, 195, 255, 0.1), transparent 24%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 255, 0.92)),
    rgba(255, 255, 255, 0.92);
}

.topup-card {
  position: relative;
  overflow: hidden;
}

.topup-card + .topup-card {
  margin-top: 18px;
}

.topup-balance-grid,
.topup-content-grid,
.topup-admin-grid {
  display: grid;
  gap: 18px;
}

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

.topup-content-grid,
.topup-admin-grid {
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.25fr);
  margin-top: 18px;
}

.topup-hero {
  align-items: stretch;
}

.topup-page-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #4338ca;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topup-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.topup-hero-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-width: 280px;
}

.topup-user-note {
  min-width: 0;
}

.topup-page-actions {
  justify-content: flex-end;
}

.topup-panel {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(246, 249, 255, 0.92)),
    rgba(255, 255, 255, 0.88);
  box-shadow:
    0 18px 34px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.topup-request-panel {
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(246, 252, 249, 0.95)),
    rgba(255, 255, 255, 0.92);
}

.topup-history-panel,
.topup-admin-panel {
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 250, 255, 0.95)),
    rgba(255, 255, 255, 0.92);
}

.topup-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.topup-table-meta {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.1);
  color: #4338ca;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.topup-balance-card {
  padding: 20px 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(79, 70, 229, 0.14);
  box-shadow:
    0 18px 32px rgba(79, 70, 229, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.topup-balance-card-primary {
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(6, 182, 212, 0.12));
  border-color: rgba(16, 185, 129, 0.16);
}

.topup-balance-card small {
  display: block;
  color: var(--text-sub);
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.topup-balance-card strong {
  display: block;
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.topup-balance-card span {
  display: block;
  margin-top: 10px;
  color: var(--text-sub);
  font-size: 0.88rem;
  line-height: 1.5;
}

.topup-form .field-block input,
.topup-form .field-block select,
.topup-form .field-block textarea {
  width: 100%;
  margin-top: 8px;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-main);
}

.topup-form .field-block input:focus,
.topup-form .field-block select:focus,
.topup-form .field-block textarea:focus {
  outline: none;
  border-color: rgba(79, 70, 229, 0.28);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.topup-form .field-block textarea {
  min-height: 120px;
  resize: vertical;
}

.topup-form-tip {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px dashed rgba(79, 70, 229, 0.16);
  color: var(--text-sub);
  font-size: 0.92rem;
  line-height: 1.6;
}

.topup-actions,
.topup-inline-actions,
.topup-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.topup-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.topup-badge.pending {
  color: #92400e;
  background: rgba(251, 191, 36, 0.16);
  border-color: rgba(217, 119, 6, 0.18);
}

.topup-badge.approved {
  color: #166534;
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(5, 150, 105, 0.18);
}

.topup-badge.rejected {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(220, 38, 38, 0.18);
}

.topup-table-wrap {
  overflow-x: auto;
}

.topup-table-wrap .data-table {
  min-width: 720px;
}

.topup-admin-row form {
  display: inline-flex;
  gap: 8px;
  margin-right: 8px;
}

.topup-admin-row input[type="text"] {
  min-width: 160px;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-main);
}

@media (max-width: 900px) {
  .topup-balance-grid,
  .topup-content-grid,
  .topup-admin-grid {
    grid-template-columns: 1fr;
  }

  .topup-body {
    padding: 14px;
  }

  .topup-surface-card {
    padding: 18px;
    border-radius: 26px;
  }

  .topup-hero,
  .topup-section-head {
    flex-direction: column;
  }

  .topup-hero-side,
  .topup-page-actions {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
  }

  .topup-table-wrap .data-table {
    min-width: 0;
  }

  .topup-admin-row form,
  .topup-page-actions,
  .topup-actions,
  .topup-inline-actions {
    width: 100%;
  }
}

.page-hero-topup {
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.14), transparent 32%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(247, 250, 255, 0.94));
}

body[data-theme="dark"] .page-hero-topup {
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 28%),
    rgba(17, 24, 39, 0.96);
}

.topup-hero-stats {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  min-width: 480px;
}

.workspace-grid-topup,
.workspace-grid-topup-secondary {
  grid-template-columns: minmax(0, 1fr);
}

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

.topup-summary-card {
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.94));
}

body[data-theme="dark"] .topup-summary-card {
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.16), transparent 34%),
    rgba(17, 24, 39, 0.94);
}

.topup-summary-card-primary {
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(244, 255, 250, 0.96), rgba(248, 250, 252, 0.94));
}

body[data-theme="dark"] .topup-summary-card-primary {
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.22), transparent 34%),
    rgba(15, 23, 42, 0.94);
}

.topup-summary-card .command-title {
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.topup-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 1rem;
  align-items: start;
}

.topup-form-shell,
.topup-info-card,
.topup-mini-check {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 255, 0.94));
}

body[data-theme="dark"] .topup-form-shell,
body[data-theme="dark"] .topup-info-card,
body[data-theme="dark"] .topup-mini-check {
  background: rgba(17, 24, 39, 0.94);
}

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

.topup-bkash-hero,
.topup-note-field,
.topup-inline-note,
.topup-form-actions {
  grid-column: 1 / -1;
}

.topup-bkash-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 1rem;
  padding: 1rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(225, 29, 72, 0.12);
  background:
    radial-gradient(circle at top right, rgba(244, 114, 182, 0.18), transparent 34%),
    radial-gradient(circle at bottom left, rgba(236, 72, 153, 0.14), transparent 36%),
    linear-gradient(135deg, rgba(255, 247, 251, 0.96), rgba(255, 240, 246, 0.94));
  box-shadow: 0 18px 36px rgba(225, 29, 72, 0.08);
}

body[data-theme="dark"] .topup-bkash-hero {
  border-color: rgba(244, 114, 182, 0.16);
  background:
    radial-gradient(circle at top right, rgba(190, 24, 93, 0.3), transparent 34%),
    radial-gradient(circle at bottom left, rgba(157, 23, 77, 0.24), transparent 36%),
    linear-gradient(135deg, rgba(62, 11, 38, 0.96), rgba(35, 8, 24, 0.94));
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.28);
}

.topup-bkash-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 0.7rem;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.1);
  color: #be185d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-theme="dark"] .topup-bkash-kicker {
  background: rgba(244, 114, 182, 0.14);
  color: #f9a8d4;
}

.topup-bkash-copy h4 {
  margin: 0.7rem 0 0.45rem;
  font-size: 1.15rem;
}

.topup-bkash-copy p {
  margin: 0;
  color: var(--text-sub);
  line-height: 1.65;
}

.topup-bkash-number-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(225, 29, 72, 0.12);
  background: linear-gradient(180deg, rgba(225, 29, 72, 0.96), rgba(190, 24, 93, 0.94));
  color: #fff7fb;
  box-shadow: 0 18px 36px rgba(190, 24, 93, 0.22);
}

.topup-bkash-number-card span,
.topup-bkash-number-card small {
  opacity: 0.92;
}

.topup-bkash-number-card strong {
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.topup-method-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.topup-method-pill {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(225, 29, 72, 0.12);
  background: linear-gradient(180deg, rgba(255, 247, 251, 0.96), rgba(255, 240, 246, 0.94));
  color: #9d174d;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body[data-theme="dark"] .topup-method-pill {
  border-color: rgba(244, 114, 182, 0.16);
  background: linear-gradient(180deg, rgba(91, 17, 55, 0.92), rgba(63, 10, 36, 0.94));
  color: #fbcfe8;
}

.topup-note-field textarea {
  min-height: 132px;
}

.topup-inline-note {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px dashed rgba(225, 29, 72, 0.18);
  background: rgba(225, 29, 72, 0.04);
  color: var(--text-sub);
  line-height: 1.6;
}

.topup-form-actions {
  justify-content: flex-start;
}

.topup-info-card .workspace-toolbar {
  margin-bottom: 0.6rem;
}

.topup-mini-check {
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.topup-mini-check strong {
  display: block;
  margin-bottom: 0.45rem;
}

.topup-table-wrap {
  overflow-x: auto;
}

.topup-table-wrap .data-table {
  min-width: 760px;
}

.topup-admin-row form {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 0.5rem;
}

.topup-admin-row input[type="text"] {
  min-width: 180px;
}

@media (max-width: 1100px) {
  .topup-hero-stats,
  .topup-summary-grid,
  .topup-panel-grid {
    grid-template-columns: 1fr;
  }

  .topup-hero-stats {
    min-width: 0;
  }
}

@media (max-width: 800px) {
  .topup-bkash-hero,
  .topup-request-grid {
    grid-template-columns: 1fr;
  }
}
