@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@500;600;700;800&family=Manrope:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&display=swap');

:root {
  --font-title: "Exo 2", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Trebuchet MS", sans-serif;
  --font-crypto: "Sora", "Segoe UI", sans-serif;

  --shell: min(1200px, calc(100% - 2.2rem));

  --blue-950: #020816;
  --blue-900: #041432;
  --blue-850: #071f52;
  --blue-800: #0b2f74;
  --blue-700: #1e56b5;
  --blue-600: #2a67cf;
  --blue-500: #3a87ff;

  --green-600: #1da252;
  --green-500: #2ccf67;
  --green-400: #5be087;

  --ink-900: #132447;
  --ink-700: #2d4369;
  --ink-600: #52698d;
  --ink-500: #6f86a9;

  --panel-bg: #f1f4f8;
  --card-bg: #ffffff;
  --card-border: #dce5f1;

  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;

  --shadow-soft: 0 12px 28px rgba(7, 29, 70, 0.1);
  --shadow-panel: 0 24px 60px rgba(3, 17, 46, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: #f4f6fa;
}

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

img {
  max-width: 100%;
  display: block;
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.btn {
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.62rem 1rem;
  font-size: 0.79rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.1px;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
}

.btn-primary {
  color: #f2fff7;
  background: linear-gradient(132deg, var(--green-400), var(--green-600));
  box-shadow: 0 8px 18px rgba(28, 167, 84, 0.32);
}

.btn-secondary {
  color: #ebf4ff;
  background: linear-gradient(140deg, #214c9f, #102e6f);
  box-shadow: 0 8px 18px rgba(22, 58, 126, 0.35);
}

.btn-ghost {
  color: #d8e7ff;
  border: 1px solid rgba(118, 162, 235, 0.45);
  background: rgba(9, 34, 82, 0.66);
}

.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: riseIn 0.75s ease forwards;
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Auth */
.page-auth {
  background:
    radial-gradient(circle at 12% 12%, rgba(92, 186, 255, 0.23), transparent 35%),
    radial-gradient(circle at 84% 0%, rgba(63, 205, 112, 0.2), transparent 34%),
    linear-gradient(140deg, #01060f 0%, #020d24 46%, #020818 100%);
}

.auth-shell {
  min-height: 100vh;
  width: min(460px, calc(100% - 1.6rem));
  margin-inline: auto;
  display: grid;
  place-items: center;
  padding: 1rem 0;
}

.auth-card {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(94, 139, 214, 0.35);
  background: linear-gradient(165deg, rgba(6, 29, 71, 0.92), rgba(4, 18, 47, 0.95));
  box-shadow: 0 16px 42px rgba(2, 12, 35, 0.5);
  padding: 1.35rem;
}

.auth-logo {
  width: 150px;
  margin-bottom: 0.9rem;
}

.auth-card h1 {
  margin: 0;
  color: #f0f6ff;
  font-family: var(--font-title);
  font-size: 1.4rem;
}

.auth-card p {
  margin: 0.55rem 0 1rem;
  color: #b8ccec;
  font-size: 0.85rem;
}

.auth-field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.auth-field label {
  color: #d8e7ff;
  font-size: 0.78rem;
  font-weight: 700;
}

.auth-field input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #3760a6;
  background: rgba(7, 25, 63, 0.8);
  color: #f1f7ff;
  padding: 0.64rem 0.72rem;
}

.auth-field input:focus {
  outline: 2px solid rgba(86, 166, 255, 0.5);
  border-color: #57a1ff;
}

.auth-alert {
  border-radius: 9px;
  padding: 0.52rem 0.62rem;
  margin-bottom: 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.auth-alert-success {
  color: #0f5132;
  background: #d1fae5;
}

.auth-alert-error {
  color: #991b1b;
  background: #fee2e2;
}

.auth-submit {
  width: 100%;
  margin-top: 0.25rem;
}

/* Landing */
.page-landing {
  background:
    radial-gradient(circle at 8% 0%, rgba(92, 186, 255, 0.24), transparent 35%),
    radial-gradient(circle at 88% 12%, rgba(63, 205, 112, 0.24), transparent 36%),
    radial-gradient(circle at 82% 75%, rgba(30, 103, 228, 0.24), transparent 40%),
    linear-gradient(150deg, #01060f 0%, #020d24 43%, #020818 100%);
  color: #e7f1ff;
  position: relative;
}

.page-landing::before,
.page-landing::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.page-landing::before {
  background-image: radial-gradient(rgba(222, 236, 255, 0.3) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.32;
}

.page-landing::after {
  background:
    radial-gradient(70% 35% at 75% 60%, rgba(41, 203, 122, 0.16), transparent 70%),
    radial-gradient(65% 30% at 56% 42%, rgba(86, 176, 255, 0.18), transparent 75%);
}

.landing-stage {
  padding: 2.25rem 0 2rem;
}

.main-header {
  width: var(--shell);
  margin-inline: auto;
  border-radius: 12px;
  border: 1px solid rgba(93, 142, 225, 0.33);
  background: linear-gradient(180deg, rgba(2, 14, 40, 0.95), rgba(3, 16, 45, 0.88));
  box-shadow: 0 10px 26px rgba(2, 12, 33, 0.52);
}

.main-header-shell {
  min-height: 72px;
  padding: 0 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 172px;
}

.main-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.14rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: #c8daf5;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #f4f9ff;
  background: rgba(39, 102, 214, 0.26);
  box-shadow: inset 0 -2px 0 rgba(76, 228, 146, 0.95);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pill-link {
  color: #ddeaff;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid rgba(113, 156, 232, 0.38);
  background: rgba(8, 36, 86, 0.78);
  border-radius: 9px;
  padding: 0.56rem 0.75rem;
}

.landing-main {
  margin-top: 1.55rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 470px);
  align-items: center;
  gap: 1.6rem;
  padding: 1.2rem 0 1.6rem;
}

.hero-copy h1 {
  margin: 0;
  max-width: 11.2ch;
  font-family: var(--font-title);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.55px;
  color: #f4f8ff;
}

.hero-copy p {
  margin: 1rem 0 0;
  max-width: 50ch;
  font-size: 0.97rem;
  color: #b3c6e7;
  line-height: 1.52;
}

.hero-actions {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.58rem;
}

.hero-visual {
  display: grid;
  place-items: center;
  min-height: 325px;
  position: relative;
}

.hero-logo-art {
  width: min(620px, 95%);
  height: auto;
  filter: drop-shadow(0 26px 28px rgba(6, 21, 56, 0.5));
}

.hero-globe-wrap {
  width: min(420px, 100%);
  display: grid;
  place-items: center;
}

.hero-globe {
  width: min(355px, 92%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle at 35% 24%, #ffffff 0%, #ddedff 22%, #60afff 51%, #1259bb 76%, #072f73 100%);
  box-shadow:
    inset -25px -24px 52px rgba(3, 15, 40, 0.72),
    inset 24px 22px 38px rgba(255, 255, 255, 0.24),
    0 20px 40px rgba(1, 10, 33, 0.56);
  isolation: isolate;
}

.hero-globe::before {
  content: "";
  position: absolute;
  inset: 18% 17% 19% 16%;
  border-radius: 52% 48% 46% 54% / 60% 42% 58% 40%;
  background:
    radial-gradient(circle at 26% 38%, rgba(255, 255, 255, 0.62), transparent 38%),
    linear-gradient(145deg, #f4fbff 0%, #d0e8ff 32%, #3d8dec 100%);
  opacity: 0.58;
  transform: rotate(-6deg);
}

.hero-globe::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 70% 70%, rgba(62, 193, 255, 0.26), transparent 34%),
    radial-gradient(circle at 26% 84%, rgba(72, 236, 135, 0.2), transparent 32%);
}

.hero-globe-value {
  position: absolute;
  top: 47%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  font-family: var(--font-title);
  font-size: clamp(4.3rem, 8vw, 5.8rem);
  color: #f5cc53;
  font-weight: 800;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.hero-globe-ring {
  position: absolute;
  pointer-events: none;
}

.hero-globe-ring-blue {
  inset: auto -28px 18px -34px;
  height: 114px;
  border-radius: 120px;
  border: 16px solid rgba(37, 146, 255, 0.95);
  border-top-color: transparent;
  border-right-color: transparent;
  transform: rotate(-8deg);
  filter: drop-shadow(0 8px 14px rgba(5, 28, 77, 0.55));
  z-index: 4;
}

.hero-globe-ring-white {
  inset: auto -16px 0 -2px;
  height: 75px;
  border-radius: 100px;
  border: 12px solid rgba(247, 252, 255, 0.9);
  border-top-color: transparent;
  border-left-color: transparent;
  transform: rotate(-12deg);
  z-index: 4;
}

.hero-globe-arrow {
  position: absolute;
  width: 244px;
  height: 76px;
  right: -25px;
  top: 64px;
  z-index: 5;
  border-radius: 999px;
  background: linear-gradient(95deg, #38cc67 0%, #73ea86 56%, #3abf54 100%);
  clip-path: polygon(0 28%, 78% 28%, 78% 7%, 100% 50%, 78% 93%, 78% 72%, 0 72%, 8% 50%);
  box-shadow: 0 10px 20px rgba(21, 122, 57, 0.46);
  transform: rotate(-12deg);
}

.landing-services {
  margin-top: 0.35rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.service-card {
  border-radius: 11px;
  border: 1px solid rgba(100, 146, 224, 0.36);
  background: linear-gradient(160deg, rgba(7, 28, 69, 0.86), rgba(3, 17, 45, 0.94));
  box-shadow: 0 12px 26px rgba(3, 14, 36, 0.45);
  padding: 0.8rem 0.78rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.service-card h3 {
  margin: 0.1rem 0 0.22rem;
  font-size: 1.03rem;
  line-height: 1.1;
  color: #eef6ff;
  font-family: var(--font-title);
}

.service-card p {
  margin: 0;
  font-size: 0.74rem;
  color: #9bb4d9;
  line-height: 1.38;
}

.service-icon {
  width: 39px;
  height: 39px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #f4f9ff;
  background: linear-gradient(140deg, #2d6ddb, #24bc6f);
  box-shadow: 0 8px 16px rgba(7, 34, 88, 0.48);
  flex: 0 0 auto;
}

.icon-control::before {
  content: "CO";
}

.icon-manager::before {
  content: "GS";
}

.icon-country::before {
  content: "PA";
}

.icon-rate::before {
  content: "TC";
}

.section {
  padding: 1.2rem 0 0.25rem;
}

.section-title {
  margin: 0 0 0.72rem;
  font-family: var(--font-title);
  color: #f0f7ff;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

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

.module-card {
  border-radius: 11px;
  border: 1px solid rgba(100, 146, 224, 0.36);
  background: linear-gradient(160deg, rgba(7, 28, 69, 0.86), rgba(3, 17, 45, 0.94));
  box-shadow: 0 10px 22px rgba(3, 14, 36, 0.42);
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.module-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.module-card h3 {
  margin: 0;
  color: #eff7ff;
  font-family: var(--font-title);
  font-size: 1.03rem;
}

.module-card p {
  margin: 0;
  color: #a5bce0;
  font-size: 0.74rem;
}

.module-card .btn {
  margin-top: 0.33rem;
  width: fit-content;
  min-width: 82px;
  padding: 0.46rem 1.05rem;
}

.landing-footer {
  margin-top: 1.4rem;
}

.landing-strip {
  border-radius: 12px;
  border: 1px solid rgba(96, 143, 221, 0.36);
  background: linear-gradient(180deg, rgba(3, 16, 45, 0.9), rgba(3, 14, 37, 0.9));
  box-shadow: 0 10px 22px rgba(2, 10, 28, 0.42);
  padding: 0.58rem 0.78rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
}

.strip-brand img {
  width: 150px;
}

.strip-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.33rem;
  flex-wrap: wrap;
}

.strip-links a {
  font-size: 0.71rem;
  font-weight: 700;
  color: #adc4e8;
  border-radius: 999px;
  padding: 0.34rem 0.5rem;
}

.strip-links a:hover {
  color: #f3f8ff;
  background: rgba(45, 107, 214, 0.24);
}

.strip-social {
  display: flex;
  align-items: center;
  gap: 0.32rem;
}

.social-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(103, 157, 238, 0.42);
  background: linear-gradient(145deg, rgba(18, 64, 146, 0.95), rgba(17, 43, 96, 0.95));
  box-shadow: inset 0 0 0 2px rgba(191, 219, 254, 0.14);
}

/* Panel */
.panel-page {
  background: linear-gradient(180deg, #f3f5f9 0%, #eef2f8 100%);
}

.panel-shell {
  width: min(1265px, calc(100% - 2rem));
  margin: 1.5rem auto;
  border-radius: 16px;
  border: 1px solid #d9e1ee;
  background: #f8fafd;
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

.panel-layout {
  min-height: min(910px, calc(100vh - 3rem));
  display: grid;
  grid-template-columns: 212px 1fr;
}

.sidebar {
  border-right: 1px solid rgba(102, 138, 202, 0.32);
  background:
    radial-gradient(circle at 12% 8%, rgba(95, 191, 255, 0.26), transparent 38%),
    linear-gradient(184deg, #04122f 0%, #082160 52%, #04122f 100%);
  padding: 0.9rem 0.58rem 0.72rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.sidebar-logo {
  margin: 0.12rem 0.18rem 0.28rem;
}

.sidebar-logo img {
  width: 152px;
}

.side-links {
  display: grid;
  gap: 0.18rem;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 0.52rem;
  border-radius: 8px;
  border: 1px solid transparent;
  color: #c9defa;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.56rem 0.62rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.side-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(156, 198, 255, 0.74);
  box-shadow: 0 0 0 3px rgba(63, 120, 223, 0.28);
  flex: 0 0 auto;
}

.side-link:hover,
.side-link.active {
  color: #f5fbff;
  border-color: rgba(117, 170, 252, 0.52);
  background: linear-gradient(120deg, rgba(33, 88, 194, 0.54), rgba(23, 159, 77, 0.24));
}

.sidebar-note {
  margin: auto 0.38rem 0.25rem;
  font-size: 0.69rem;
  line-height: 1.42;
  color: #8faad7;
}

.sidebar-footer-logo {
  margin-top: 0.2rem;
  border-radius: 10px;
  border: 1px solid rgba(95, 148, 232, 0.32);
  background: rgba(5, 23, 60, 0.74);
  padding: 0.42rem;
  width: fit-content;
}

.sidebar-footer-logo img {
  width: 120px;
}

.panel-main {
  background: #f4f7fb;
  padding: 1.08rem 1.15rem 1.3rem;
}

.panel-topbar {
  border-radius: 12px;
  border: 1px solid #dce3ef;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(7, 31, 76, 0.08);
  padding: 0.74rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.72rem;
  flex-wrap: wrap;
}

.topbar-left h1 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.45rem, 2.1vw, 1.95rem);
  color: #13264b;
}

.topbar-left p {
  margin: 0.18rem 0 0;
  color: #6c82a5;
  font-size: 0.8rem;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.search-wrap {
  position: relative;
}

.search-wrap input {
  width: 196px;
  max-width: 42vw;
  border-radius: 8px;
  border: 1px solid #d8e1ee;
  background: #f9fbff;
  color: #213a61;
  font-size: 0.79rem;
  padding: 0.52rem 0.7rem;
}

.topbar-icons {
  display: flex;
  gap: 0.32rem;
}

.topbar-icons span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #d3deef;
  background: linear-gradient(145deg, #f9fcff, #eff4fb);
  box-shadow: inset 0 1px 0 #ffffff;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #d7e1ef;
  padding: 0.4rem 0.72rem;
  background: #f2f7ff;
  font-size: 0.72rem;
  font-weight: 700;
  color: #2d4b7d;
}

.section-panel {
  margin-top: 0.85rem;
}

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

.metric-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #dbe4f2;
  background: #ffffff;
  box-shadow: 0 10px 16px rgba(7, 30, 76, 0.07);
  padding: 0.76rem 0.75rem 0.7rem 2.95rem;
  display: grid;
  gap: 0.12rem;
}

.metric-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(59, 120, 221, 0.9), rgba(53, 203, 130, 0.88));
}

.metric-chip {
  position: absolute;
  left: 0.76rem;
  top: 0.86rem;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #edf6ff;
  font-size: 0.66rem;
  font-weight: 800;
  background: linear-gradient(140deg, #2c67d4, #24bb6e);
  box-shadow: 0 6px 10px rgba(15, 57, 131, 0.24);
}

.metric-usd {
  background: linear-gradient(160deg, #ffffff 0%, #f4f8ff 100%);
}

.metric-cup {
  background: linear-gradient(160deg, #ffffff 0%, #fff8ed 100%);
}

.metric-tc {
  background: linear-gradient(160deg, #ffffff 0%, #eefcff 100%);
}

.metric-tp {
  background: linear-gradient(160deg, #ffffff 0%, #fff7ef 100%);
}

.metric-card .label {
  font-size: 0.73rem;
  font-weight: 700;
  color: #607ba5;
}

.metric-card .value {
  font-family: var(--font-title);
  font-size: 1.7rem;
  color: #173773;
  line-height: 1;
}

.metric-card .meta {
  font-size: 0.74rem;
  color: #7288ab;
}

.charts-grid {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.two-col-grid {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 0.7rem;
}

.panel-card {
  border-radius: 12px;
  border: 1px solid #dbe4f1;
  background: #ffffff;
  box-shadow: 0 10px 18px rgba(7, 30, 76, 0.08);
  padding: 0.86rem;
}

.panel-card h3 {
  margin: 0 0 0.72rem;
  color: #1a3159;
  font-family: var(--font-title);
  font-size: 0.98rem;
}

.empty-state {
  margin: 0;
  color: #5f789f;
  font-size: 0.84rem;
}

.country-chart {
  min-height: 186px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(62px, 1fr));
  align-items: end;
  gap: 0.55rem;
}

.country-chart .empty-state {
  grid-column: 1 / -1;
  align-self: center;
}

.country-col {
  display: grid;
  gap: 0.25rem;
  justify-items: center;
}

.country-bar-wrap {
  width: 100%;
  height: 116px;
  border-radius: 8px;
  background: #edf3fc;
  border: 1px solid #dee8f5;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.country-bar {
  width: 100%;
  border-radius: 8px 8px 5px 5px;
  background: linear-gradient(180deg, #2eb4f5 0%, #2bc971 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.country-label {
  display: block;
  font-size: 0.68rem;
  color: #5a7298;
  text-align: center;
  line-height: 1.2;
}

.country-value {
  font-size: 0.72rem;
  color: #1f3c74;
}

.bar-chart {
  display: grid;
  gap: 0.5rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 80px 1fr 42px;
  align-items: center;
  gap: 0.48rem;
  font-size: 0.8rem;
  color: #536b91;
  font-weight: 700;
}

.bar-track {
  height: 7px;
  border-radius: 999px;
  background: #e7eef9;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2ea8e2, #2bc971);
}

.line-chart {
  border-radius: 10px;
  border: 1px solid #e4ebf6;
  background:
    linear-gradient(to top, rgba(84, 169, 255, 0.07), rgba(84, 169, 255, 0.01)),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 26px,
      rgba(175, 197, 229, 0.25) 26px,
      rgba(175, 197, 229, 0.25) 27px
    );
  padding: 0.15rem;
}

.line-chart svg {
  width: 100%;
  height: 168px;
  display: block;
}

.line-chart .chart-bg {
  fill: url(#lineFill);
}

.line-chart .chart-line {
  fill: none;
  stroke: #31a7df;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.donut-wrap {
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  gap: 0.95rem;
}

.donut {
  width: 168px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  position: relative;
  border: 1px solid #d5e1f1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.donut::after {
  content: "";
  position: absolute;
  inset: 23px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #d9e4f3;
}

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

.legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  color: #4d668e;
  font-size: 0.82rem;
}

.legend-item span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

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

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.62rem 0.72rem;
  font-size: 0.81rem;
}

.data-table thead th {
  color: #4d6489;
  font-weight: 700;
  background: #f2f6fc;
  border-bottom: 1px solid #dbe5f3;
  position: sticky;
  top: 0;
}

.data-table thead th:first-child {
  border-top-left-radius: 8px;
}

.data-table thead th:last-child {
  border-top-right-radius: 8px;
}

.data-table tbody td {
  color: #2f4468;
  border-bottom: 1px solid #e3ecf7;
  background: #ffffff;
}

.data-table tbody tr:hover td {
  background: #f8fbff;
}

.manager-summary-table .amount-col {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.manager-summary-table tfoot th {
  background: #edf3fc;
  color: #27497c;
  border-bottom: 1px solid #d3dfef;
  position: static;
}

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

.pagination-meta {
  color: #5a7298;
  font-size: 0.78rem;
  font-weight: 700;
}

.pagination-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 32px;
  padding: 0 0.55rem;
  border-radius: 8px;
  border: 1px solid #d4e0f0;
  background: #ffffff;
  color: #2d4b7d;
  font-size: 0.78rem;
  font-weight: 700;
}

.pagination-btn.active {
  border-color: #2f73d8;
  background: #e9f1ff;
  color: #1a4ca1;
}

.pagination-btn.disabled {
  opacity: 0.55;
  pointer-events: none;
}

.dashboard-table {
  min-width: 100%;
}

.dashboard-table thead th {
  position: static;
}

.crypto-intro {
  margin: 0.08rem 0 0.7rem;
  color: #6882a8;
  font-size: 0.76rem;
  font-weight: 700;
}

.crypto-live-meta {
  margin-bottom: 0.62rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.crypto-live-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1px;
}

.crypto-live-badge.loading {
  color: #854d0e;
  background: #fef3c7;
}

.crypto-live-badge.live {
  color: #166534;
  background: #dcfce7;
}

.crypto-live-badge.error {
  color: #991b1b;
  background: #fee2e2;
}

.crypto-live-updated {
  font-size: 0.74rem;
  color: #607ba5;
  font-weight: 700;
}

.crypto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 228px));
  justify-content: center;
  gap: 0.62rem;
}

.crypto-card {
  border-radius: 12px;
  border: 1px solid #cfdcf1;
  background:
    radial-gradient(circle at 84% 10%, rgba(103, 157, 255, 0.14), transparent 40%),
    linear-gradient(175deg, #ffffff 0%, #f4f9ff 100%);
  padding: 0.58rem 0.58rem 0.54rem;
  box-shadow:
    0 10px 16px rgba(8, 31, 73, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  font-family: var(--font-crypto);
  width: 100%;
  max-width: 228px;
}

.crypto-card.up {
  border-top: 2px solid #22c55e;
}

.crypto-card.down {
  border-top: 2px solid #ef4444;
}

.crypto-card.skeleton {
  opacity: 0.62;
  animation: pulseCrypto 1.8s ease-in-out infinite;
}

@keyframes pulseCrypto {
  0% { opacity: 0.48; }
  50% { opacity: 0.72; }
  100% { opacity: 0.48; }
}

.crypto-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
}

.crypto-coin {
  display: inline-grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
}

.crypto-avatar-wrap,
.crypto-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #d5e2f6;
  background: linear-gradient(140deg, #ffffff, #eaf1ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
}

.crypto-avatar-img {
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.crypto-avatar-fallback {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #86a5d8;
}

.crypto-coin-text {
  min-width: 0;
}

.crypto-coin-text strong {
  display: block;
  color: #103062;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: -0.1px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crypto-coin-text span {
  display: block;
  margin-top: 0.12rem;
  color: #607ea9;
  font-size: 0.58rem;
  font-weight: 700;
}

.crypto-last-update {
  border-radius: 999px;
  padding: 0.17rem 0.38rem;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1px;
  border: 1px solid #dbe4f3;
  color: #5b7296;
  background: #f3f7fd;
  white-space: nowrap;
}

.crypto-price {
  margin-top: 0.43rem;
  color: #102e60;
  font-family: var(--font-crypto);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.05;
}

.crypto-change-inline {
  margin-top: 0.16rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08px;
}

.crypto-change-inline.up {
  color: #0f9f57;
}

.crypto-change-inline.down {
  color: #cf273a;
}

.crypto-sparkline {
  margin-top: 0.34rem;
  border-radius: 8px;
  border: 1px solid #e0e9f7;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(94, 127, 180, 0.14) 0,
      rgba(94, 127, 180, 0.14) 1px,
      transparent 1px,
      transparent 20px
    ),
    linear-gradient(180deg, #ffffff, #f7fbff);
  min-height: 84px;
  padding: 0.2rem;
  display: grid;
  place-items: center;
}

.crypto-sparkline svg {
  width: 100%;
  height: 80px;
  display: block;
}

.crypto-sparkline span {
  font-size: 0.67rem;
  color: #7b91b2;
}

.crypto-stats {
  margin-top: 0.42rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-radius: 8px;
  border: 1px solid #dbe6f6;
  background: #ffffff;
  overflow: hidden;
}

.crypto-stat {
  padding: 0.31rem 0.34rem;
  display: grid;
  gap: 0.08rem;
}

.crypto-stat + .crypto-stat {
  border-left: 1px solid #dbe6f6;
}

.crypto-stat span {
  color: #6a83a8;
  font-size: 0.53rem;
  font-weight: 700;
  letter-spacing: 0.12px;
}

.crypto-stat strong {
  color: #15396d;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.1;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.24rem 0.58rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-pill.active {
  color: #0f5132;
  background: #d1fae5;
}

.status-pill.pending {
  color: #854d0e;
  background: #fef3c7;
}

.status-pill.closed {
  color: #991b1b;
  background: #fee2e2;
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 0.34rem;
  flex-wrap: wrap;
}

.action-btn {
  border: 0;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.32rem 0.5rem;
  cursor: pointer;
}

.action-btn.edit {
  color: #1d4ed8;
  background: #dbeafe;
}

.action-btn.view {
  color: #15803d;
  background: #d1fae5;
}

.action-btn.delete {
  color: #b91c1c;
  background: #fee2e2;
}

.crud-header {
  margin-top: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.crud-header h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.28rem, 2.2vw, 1.62rem);
  color: #17356a;
}

.crud-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.form-card {
  margin-top: 0.75rem;
  border-radius: 12px;
  border: 1px solid #dbe4f2;
  background: #ffffff;
  box-shadow: 0 10px 18px rgba(7, 30, 76, 0.08);
  padding: 0.9rem;
}

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

.form-field {
  display: grid;
  gap: 0.3rem;
}

.form-field label {
  color: #3a5785;
  font-size: 0.8rem;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #d2ddeb;
  background: #fbfdff;
  color: #213a63;
  padding: 0.56rem 0.65rem;
  font-size: 0.82rem;
}

.form-field textarea {
  min-height: 110px;
  resize: vertical;
}

.form-buttons {
  margin-top: 0.86rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.52rem;
}

.page-reports .panel-card {
  min-height: 220px;
}

.demo-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  border-radius: 10px;
  border: 1px solid rgba(130, 186, 255, 0.42);
  background: linear-gradient(130deg, #0e316f, #1aa55b);
  color: #eef8ff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.72rem 0.9rem;
  box-shadow: 0 16px 26px rgba(6, 24, 62, 0.24);
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.demo-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1200px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .hero-visual {
    order: -1;
    min-height: 290px;
  }

  .landing-services,
  .modules-grid,
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .charts-grid,
  .two-col-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1030px) {
  .panel-shell {
    width: calc(100% - 1rem);
    margin: 0.6rem auto;
  }

  .panel-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(102, 138, 202, 0.3);
  }

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

  .sidebar-footer-logo {
    margin-top: 0.4rem;
  }
}

@media (max-width: 860px) {
  .main-header-shell {
    min-height: auto;
    padding: 0.7rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-nav {
    order: 3;
    width: 100%;
  }

  .header-actions {
    width: 100%;
    justify-content: center;
  }

  .landing-strip {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0.6rem;
  }

  .search-wrap input {
    width: 170px;
  }

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

@media (max-width: 740px) {
  :root {
    --shell: min(1200px, calc(100% - 1.2rem));
  }

  .landing-stage {
    padding-top: 0.9rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.76rem, 9.1vw, 2.6rem);
  }

  .hero-copy p {
    font-size: 0.88rem;
  }

  .landing-services,
  .modules-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .donut-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .panel-main {
    padding: 0.8rem;
  }

  .data-table {
    min-width: 620px;
  }

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