:root {
  --sidebar-w: 280px;
  --bg: #f4f7fb;
  --bg-accent: #eef4ff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-dark: #0f172a;
  --text: #10203a;
  --muted: #60708b;
  --line: rgba(148, 163, 184, 0.22);
  --primary: #0f6fff;
  --primary-2: #25a7ff;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow-lg: 0 24px 80px rgba(15, 23, 42, 0.12);
  --shadow-md: 0 14px 40px rgba(15, 23, 42, 0.10);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

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

body {
  color: var(--text);
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 167, 255, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(15, 111, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 55%, transparent 90%);
}

a {
  color: inherit;
}

.hidden {
  display: none !important;
}

.app-wrapper,
.app-main,
.app-content,
.app-content-header {
  background: transparent;
}

.app-header.navbar {
  margin: 16px 18px 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
  padding: 0.55rem 1rem;
}

.app-header .nav-link {
  color: var(--muted);
  font-weight: 600;
}

.app-header .nav-link:hover {
  color: var(--text);
}

.app-header #userBalance {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  border: 0;
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.22);
}

.app-sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top, rgba(37, 167, 255, 0.24), transparent 26%),
    linear-gradient(180deg, #081225 0%, #0b1731 52%, #101d3a 100%) !important;
  box-shadow: 20px 0 60px rgba(8, 18, 37, 0.28);
}

.sidebar-brand {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.15rem 1.1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: #fff;
  text-decoration: none;
}

.brand-link::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #5ce1e6, #0f6fff);
  box-shadow: 0 0 0 8px rgba(92, 225, 230, 0.12);
}

.brand-text {
  font-size: 1.05rem;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
}

.sidebar-wrapper {
  padding: 1rem 0.9rem 1.4rem;
}

#sideMenu {
  gap: 0.25rem;
}

#sideMenu .nav-item {
  margin-bottom: 0.2rem;
}

#sideMenu .nav-link {
  min-height: 50px;
  border-radius: 16px;
  color: rgba(226, 232, 240, 0.78);
  padding: 0.9rem 1rem;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

#sideMenu .nav-link:hover,
#sideMenu .nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(37, 167, 255, 0.2), rgba(15, 111, 255, 0.34));
  transform: translateX(3px);
}

#sideMenu .nav-icon {
  font-size: 1.05rem;
}

.sidebar-balance-box {
  margin: 1rem 0.4rem 0;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(14px);
}

.app-sidebar #userName {
  display: block;
  margin: 0;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 1rem;
}

.sidebar-balance-box .sidebar-meta {
  margin-top: 0.35rem;
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.82rem;
}

.app-main {
  padding-bottom: 1.4rem;
}

.app-content-header {
  padding: 1.5rem 1.1rem 0.75rem;
}

.app-content {
  padding: 0 1.1rem 1.25rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 1.6rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(37, 167, 255, 0.18), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(244, 248, 255, 0.84));
  box-shadow: var(--shadow-lg);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -52px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 111, 255, 0.18), transparent 70%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: rgba(15, 111, 255, 0.08);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  font-size: clamp(1.7rem, 2.5vw, 2.5rem);
  line-height: 1.05;
  font-weight: 800;
}

.page-subtitle {
  max-width: 760px;
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.hero-actions,
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--muted);
  font-weight: 600;
}

.hero-pill strong {
  color: var(--text);
}

.section-card,
.card {
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
  padding: 0;
}

.card-header {
  padding: 1.1rem 1.25rem 0;
  background: transparent !important;
  border: 0;
}

.card-body {
  padding: 1.2rem 1.25rem 1.25rem;
}

.card-title {
  font-weight: 700;
  color: var(--text);
}

.section-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.stats-row .card,
.metric-card {
  min-height: 160px;
  color: #fff;
  overflow: hidden;
}

.metric-card .card-body,
.stats-row .card .card-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.metric-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1.45rem;
}

.metric-label {
  display: block;
  margin-bottom: 0.55rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  font-weight: 600;
}

.stats-row .value,
.metric-value {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 800;
  line-height: 1;
}

.metric-note {
  margin-top: 0.65rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
}

.bg-gradient-success {
  background: linear-gradient(135deg, #0f9f59, #22c55e) !important;
}

.bg-gradient-warning {
  background: linear-gradient(135deg, #f59e0b, #fbbf24) !important;
}

.bg-gradient-danger {
  background: linear-gradient(135deg, #dc2626, #fb7185) !important;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, #0f6fff, #25a7ff) !important;
}

.surface-grid {
  display: grid;
  gap: 1.25rem;
}

.filter-shell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(15, 111, 255, 0.04);
  border: 1px solid rgba(15, 111, 255, 0.09);
}

.filter-shell .form-label,
.form-label {
  font-weight: 700;
  color: var(--text);
  font-size: 0.92rem;
}

.form-control,
.form-select,
.input-group-text {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  min-height: 50px;
  background: rgba(255, 255, 255, 0.92);
}

.input-group > .form-control,
.input-group > .form-select {
  border-top-left-radius: 16px !important;
  border-bottom-left-radius: 16px !important;
}

.input-group-text {
  color: var(--muted);
  background: rgba(248, 250, 252, 0.96);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(15, 111, 255, 0.36);
  box-shadow: 0 0 0 0.28rem rgba(15, 111, 255, 0.12);
}

.btn {
  border-radius: 15px;
  font-weight: 700;
  min-height: 48px;
  padding-inline: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #0f6fff, #25a7ff);
  border: 0;
  box-shadow: 0 12px 24px rgba(15, 111, 255, 0.18);
}

.btn-success {
  background: linear-gradient(135deg, #159947, #22c55e);
  border: 0;
}

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

.btn-outline-secondary,
.btn-secondary {
  border-color: rgba(148, 163, 184, 0.28);
}

.table-responsive {
  border-radius: 18px;
}

.table {
  margin-bottom: 0;
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
}

.table thead th {
  padding: 1rem 0.9rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table tbody td {
  padding: 1rem 0.9rem;
  border-color: rgba(148, 163, 184, 0.12);
  vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: rgba(248, 250, 252, 0.88);
}

.table-hover > tbody > tr:hover > * {
  --bs-table-accent-bg: rgba(240, 247, 255, 0.96);
}

.badge {
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  font-weight: 700;
}

.chart-box {
  position: relative;
  height: 48vh;
  min-height: 360px;
  max-height: 640px;
  padding: 0.25rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.76), rgba(255, 255, 255, 0.96));
}

.chart-box > canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.panel-stack {
  display: grid;
  gap: 1.25rem;
}

.info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 0.95rem;
  border-radius: 16px;
  background: rgba(15, 111, 255, 0.06);
  color: var(--muted);
  font-weight: 600;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.login-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 460px);
  width: min(1180px, 100%);
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}

.login-showcase {
  position: relative;
  padding: 3rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(92, 225, 230, 0.35), transparent 25%),
    radial-gradient(circle at 80% 20%, rgba(15, 111, 255, 0.35), transparent 28%),
    linear-gradient(145deg, #081225 0%, #0f1e3d 55%, #143066 100%);
  color: #fff;
}

.login-showcase::after {
  content: "";
  position: absolute;
  inset: auto -120px -120px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 167, 255, 0.36), transparent 68%);
}

.login-panel {
  padding: 2.3rem;
  display: flex;
  align-items: center;
}

.login-card {
  width: 100%;
}

.login-kicker,
.showcase-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
}

.showcase-kicker {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

.login-kicker {
  background: rgba(15, 111, 255, 0.08);
  color: var(--primary);
}

.login-title,
.showcase-title {
  margin-top: 1rem;
  font-size: clamp(2rem, 3vw, 3.3rem);
  line-height: 1.02;
  font-weight: 800;
}

.showcase-copy,
.login-copy {
  margin-top: 1rem;
  color: var(--muted);
}

.showcase-copy {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.74);
}

.showcase-points {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
}

.showcase-points span {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.showcase-points i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.drop-zone,
.send-mode-card {
  border-radius: 20px;
}

.drop-zone {
  border: 2px dashed rgba(15, 111, 255, 0.26);
  background: rgba(15, 111, 255, 0.04);
  color: var(--muted);
}

.drop-zone.drag-over {
  border-color: var(--primary);
  background: rgba(15, 111, 255, 0.08);
}

.send-mode-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.76);
}

.send-mode-card.selected {
  border-color: rgba(15, 111, 255, 0.32);
  background: rgba(15, 111, 255, 0.07);
  box-shadow: 0 12px 24px rgba(15, 111, 255, 0.08);
}

.progress {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
}

.progress-bar {
  background: linear-gradient(135deg, #0f6fff, #25a7ff);
}

.modal-content {
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
}

.modal-header,
.modal-footer {
  border-color: rgba(148, 163, 184, 0.16);
}

.settings-placeholder {
  display: grid;
  gap: 1rem;
}

.settings-box {
  padding: 1.35rem;
  border-radius: 20px;
  background: rgba(15, 111, 255, 0.04);
  border: 1px solid rgba(15, 111, 255, 0.08);
}

.app-tabs {
  gap: 0.6rem;
  padding: 0.35rem;
  border-radius: 18px;
  background: rgba(15, 111, 255, 0.05);
}

.app-tabs .nav-link {
  border: 0;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 700;
  padding: 0.8rem 1rem;
}

.app-tabs .nav-link.active,
.app-tabs .show > .nav-link {
  color: #fff;
  background: linear-gradient(135deg, #0f6fff, #25a7ff);
  box-shadow: 0 10px 24px rgba(15, 111, 255, 0.18);
}

.tab-pane-card {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.66);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr);
  gap: 1rem;
}

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

.mini-panel {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(15, 111, 255, 0.05);
  border: 1px solid rgba(15, 111, 255, 0.08);
}

.mini-panel h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 700;
}

.mini-panel p {
  margin: 0;
  color: var(--muted);
}

.list-clean {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-clean li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--muted);
}

.list-clean i {
  color: var(--primary);
  margin-top: 0.1rem;
}

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

.highlight-card {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.highlight-card strong {
  display: block;
  margin-bottom: 0.3rem;
}

@media (min-width: 1200px) {
  .chart-box {
    height: 52vh;
  }
}

@media (min-width: 1400px) {
  .chart-box {
    height: 56vh;
    max-height: 720px;
  }
}

@media (max-width: 991.98px) {
  .app-header.navbar {
    margin-inline: 12px;
  }

  .app-content-header {
    padding-top: 1rem;
  }

  .page-hero,
  .card-body {
    padding-inline: 1rem;
  }

  .login-grid {
    grid-template-columns: 1fr;
  }

  .login-showcase {
    min-height: 280px;
    padding: 2rem;
  }
}

@media (max-width: 767.98px) {
  .page-hero {
    padding: 1.2rem;
  }

  .hero-actions,
  .hero-meta,
  .info-strip,
  .filter-shell {
    flex-direction: column;
    align-items: stretch;
  }

  .stats-row .card,
  .metric-card {
    min-height: 140px;
  }

  .split-layout,
  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .btn,
  .form-control,
  .form-select,
  .input-group-text {
    min-height: 46px;
  }
}
