/* GlobalCalc v3 dashboard, sidebar overrides and responsive layout */
/* ============================================================
   GLOBALCALC v3 CONVERTER DASHBOARD
   ============================================================ */
body.app-shell {
  --sidebar-w: 315px;
  --bg: #080d19;
  --surface: rgba(13, 19, 35, 0.92);
  --card: rgba(14, 21, 39, 0.78);
  --border: rgba(119, 137, 180, 0.24);
  --border-strong: rgba(140, 160, 210, 0.34);
  --text: #f7f9ff;
  --text-secondary: #d7dbea;
  --muted: #9ba5bd;
  --muted2: #65708a;
  --accent: #20d8ff;
  --accent2: #9b5cff;
  --accent-light: rgba(32, 216, 255, 0.1);
  --accent-mid: rgba(32, 216, 255, 0.26);
  background:
    radial-gradient(circle at 76% 0%, rgba(87, 71, 255, 0.18), transparent 32%),
    radial-gradient(circle at 58% 22%, rgba(27, 197, 255, 0.12), transparent 31%),
    linear-gradient(180deg, #0b1222 0%, #070c17 58%, #070b14 100%);
}

body.app-shell::before {
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.26;
}

.app-shell .sidebar {
  width: var(--sidebar-w);
  padding: 30px 24px;
  background:
    linear-gradient(180deg, rgba(14, 20, 36, 0.98), rgba(7, 11, 21, 0.98)),
    radial-gradient(circle at 40% 0%, rgba(32, 216, 255, 0.12), transparent 34%);
  border-right: 1px solid rgba(116, 135, 178, 0.22);
  box-shadow: 22px 0 60px rgba(0,0,0,0.32);
}

.app-shell .app-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 6px 0 34px;
  border-bottom: 0;
}

.app-shell .brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'DM Sans', 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.025em;
  min-width: 0;
  max-width: 232px;
  flex: 0 1 auto;
}

.gc-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  filter: drop-shadow(0 0 15px rgba(32,216,255,0.22));
}

.gc-logo-mark svg {
  width: 36px;
  height: 36px;
  display: block;
}

.gc-logo-mark .logo-face {
  stroke: rgba(255,255,255,0.11);
  stroke-width: 0.35;
  stroke-linejoin: round;
}

.gc-logo-mark .logo-face-top {
  fill: url(#gcLogoCyan);
}

.gc-logo-mark .logo-face-bottom,
.gc-logo-mark .logo-face-right {
  fill: url(#gcLogoBlue);
}

.gc-logo-mark .mobile-grad-top {
  fill: url(#gcLogoCyanMobile);
}

.gc-logo-mark .mobile-grad-bottom {
  fill: url(#gcLogoBlueMobile);
}

.gc-logo-mark .logo-shadow {
  fill: rgba(5, 11, 22, 0.82);
}

.gc-logo-mark .logo-bar {
  fill: #12d7ff;
  filter: drop-shadow(0 0 4px rgba(16,216,255,0.32));
}

.gc-logo-text {
  display: inline-flex;
  align-items: baseline;
  transform: translateY(-1px);
  min-width: 0;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.gc-logo-text,
.gc-logo-text .brand-global {
  color: #ffffff;
  font-weight: 900;
}

.gc-logo-text .brand-calc {
  background: linear-gradient(105deg, #05d7ff 0%, #08b7ff 42%, #7d6cff 78%, #9b5cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
  text-shadow: none;
}

.version-pill {
  margin-left: auto;
  flex: 0 0 auto;
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.13);
  border: 1px solid rgba(139, 92, 246, 0.24);
  color: #a78bfa;
  font-size: 10px;
  font-family: 'DM Mono', monospace;
  transform: translateY(1px);
}

.app-shell .app-nav {
  padding: 0;
  gap: 16px;
}

.app-shell .nav-item {
  min-height: 52px;
  padding: 0 18px;
  border-radius: 12px;
  color: rgba(232,238,255,0.72);
  font-size: 16px;
  font-weight: 700;
}

.app-shell .nav-item.active {
  background: linear-gradient(90deg, rgba(32,216,255,0.18), rgba(255,255,255,0.045));
  border: 1px solid rgba(135, 154, 200, 0.22);
  box-shadow: inset 0 0 28px rgba(32,216,255,0.04), 0 0 22px rgba(32,216,255,0.08);
}

.app-shell .nav-item.active::before {
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: #18d7ff;
}

.app-shell .nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  color: #18d7ff;
  position: relative;
  flex: 0 0 31px;
}

.app-shell .nav-icon svg {
  width: 30px;
  height: 30px;
  display: block;
  overflow: visible;
}

.app-shell .nav-icon svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell .nav-icon-import,
.app-shell .nav-icon-rates {
  color: #9aa1af;
}

.app-shell .nav-icon-converter .corner {
  stroke-width: 3;
}

.app-shell .nav-icon-converter .center-mark {
  stroke-width: 2.4;
}

.app-shell .nav-icon-import .hex {
  stroke-width: 3.1;
}

.app-shell .nav-icon-import .box {
  stroke-width: 2.45;
}

.app-shell .nav-icon-rates svg path {
  stroke: none;
}

.app-shell .nav-icon-rates svg rect {
  fill: currentColor;
}

.app-shell .nav-item.active .nav-icon {
  color: #18d7ff;
  filter: drop-shadow(0 0 8px rgba(24, 215, 255, 0.36));
}

.app-shell .sidebar-footer {
  margin-top: auto;
  padding: 18px 0 0;
  border-top: 1px solid rgba(135,154,200,0.14);
  gap: 18px;
}

.app-shell .lang-grid {
  grid-template-columns: repeat(5, 33px);
}

.app-shell .lang-btn {
  height: 33px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  color: #9aa5bd;
  border-color: rgba(135,154,200,0.16);
}

.app-shell .lang-btn.active {
  background: linear-gradient(135deg, #1fd7ff, #8b5cf6);
  color: #fff;
  box-shadow: 0 8px 22px rgba(77, 119, 255, 0.32);
}

.app-shell .theme-toggle {
  position: relative;
  height: 43px;
  padding: 0 64px 0 42px;
  border-radius: 12px;
  color: #f5f7ff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.app-shell .theme-toggle::before {
  content: '\263E';
  position: absolute;
  left: 16px;
  color: #cfd6ff;
}

.app-shell .theme-toggle::after {
  content: '';
  position: absolute;
  right: 12px;
  width: 39px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6d5dfc, #b45cff);
  box-shadow: inset 16px 0 0 rgba(255,255,255,0.88), 0 0 18px rgba(139,92,246,0.32);
}

.app-shell .sidebar-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
}

.app-shell .sidebar-links a {
  font-family: 'DM Sans', sans-serif;
  color: #8c96ad;
  font-size: 13px;
}

.app-shell .app-main {
  margin-left: var(--sidebar-w);
  padding: 54px 0 80px 52px;
}

.app-shell .main-content > * {
  max-width: min(1440px, calc(100vw - var(--sidebar-w) - 70px));
  margin-left: 0;
  margin-right: 0;
}

.app-hero {
  position: relative;
  min-height: 205px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: #25d8ff;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.app-hero h1 {
  max-width: 720px;
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: #fff;
}

.app-hero h1 span {
  background: linear-gradient(100deg, #20d8ff 0%, #2b8cff 44%, #a855f7 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.app-hero p {
  margin-top: 14px;
  color: #aab2c5;
  font-size: 17px;
}

.import-hero {
  min-height: 180px;
  padding-bottom: 18px;
}

.import-hero h1 {
  max-width: 760px;
}

.import-hero + .trust-strip {
  margin: -4px 0 18px;
  padding-top: 0;
}

.conversion-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
  position: relative;
  z-index: 20;
}

.app-shell .tool-card,
.app-shell .result-box,
.feature-card,
.rates-panel,
.app-shell .faq-section,
.app-shell .history-box {
  background: linear-gradient(180deg, rgba(19, 27, 48, 0.72), rgba(9, 15, 29, 0.72));
  border: 1px solid rgba(135,154,200,0.24);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035), 0 18px 45px rgba(0,0,0,0.18);
  backdrop-filter: blur(18px);
}

.app-shell .tool-card::before {
  display: none;
}

.converter-card {
  padding: 27px 29px 34px;
  margin: 0;
  min-height: 348px;
  overflow: visible;
  position: relative;
  z-index: 30;
}

.app-shell .tool-card:has(.currency-select),
.app-shell .tool-card:has(.country-select) {
  overflow: visible;
}

.app-shell .tool-card:has(.currency-select.open),
.app-shell .tool-card:has(.country-select.open) {
  z-index: 80;
}

.app-shell .card-header {
  margin-bottom: 22px;
}

.app-shell .card-title {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  letter-spacing: 0.14em;
}

.app-shell .card-title::before {
  content: none;
}

.converter-title-icon {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  overflow: visible;
  filter: drop-shadow(0 0 9px rgba(32, 216, 255, 0.42));
}

.converter-title-icon path {
  fill: none;
  stroke: #20d8ff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.converter-title-icon .arrow-bottom {
  stroke: #12cfff;
  opacity: 0.95;
}

.app-shell .rate-status {
  gap: 10px;
  color: #a5aec3;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
}

.status-sep {
  color: #59657f;
}

.converter-form-v3 {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 1fr;
  gap: 22px 42px;
  position: relative;
  z-index: 2;
}

.app-shell .field label {
  color: #b7bed0;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.app-shell .field input,
.app-shell .field select,
.app-shell .cs-display {
  min-height: 50px;
  border-radius: 10px;
  background: rgba(11, 17, 32, 0.76);
  border: 1px solid rgba(118, 136, 180, 0.35);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
}

.app-shell .amount-field input {
  font-size: 20px;
  font-weight: 800;
}

.app-shell .field input:focus,
.app-shell .field select:focus,
.app-shell .currency-select.open .cs-display {
  border-color: rgba(32,216,255,0.72);
  box-shadow: 0 0 0 3px rgba(32,216,255,0.12), 0 0 24px rgba(32,216,255,0.12);
}

.app-shell .cs-dropdown {
  background: rgba(12, 18, 34, 0.98);
  border-color: rgba(118,136,180,0.34);
  box-shadow: 0 22px 48px rgba(0,0,0,0.48);
}

.swap-button {
  position: absolute;
  left: 50%;
  top: 79px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(139,92,246,0.46);
  background: radial-gradient(circle at 35% 25%, rgba(32,216,255,0.28), rgba(139,92,246,0.18) 70%);
  color: #22d3ee;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(139,92,246,0.22);
}

.app-shell .btn-primary {
  position: relative;
  z-index: 1;
  min-height: 54px;
  margin-top: 24px;
  border-radius: 10px;
  background: linear-gradient(100deg, #18cde7 0%, #3b82f6 45%, #a855f7 100%);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.12em;
  box-shadow: 0 14px 30px rgba(32, 116, 255, 0.22), 0 12px 36px rgba(168,85,247,0.16);
}

.app-shell .btn-primary span {
  float: right;
  font-size: 18px;
}

.preview-card {
  display: block;
  margin: 0;
  padding: 28px 25px 22px;
  min-height: 376px;
}

.preview-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
  white-space: nowrap;
}

.preview-kicker::before {
  content: '\223F';
  color: #a855f7;
  font-size: 24px;
  line-height: 1;
  text-shadow: 0 0 16px rgba(168, 85, 247, 0.55);
}

.preview-base {
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 7px;
}

.preview-card .result-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
  white-space: nowrap;
  line-height: 0.96;
}

.preview-card .result-number,
.preview-card .result-code {
  display: inline-block;
  background: linear-gradient(90deg, #20d8ff, #925cff 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.preview-card .result-number {
  font-family: 'Syne', sans-serif;
  font-size: clamp(39px, 3vw, 48px);
  font-weight: 800;
  letter-spacing: -0.055em;
}

.preview-card .result-code {
  font-size: clamp(22px, 1.8vw, 27px);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.preview-rate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #c0c7d9;
  font-size: 13px;
  line-height: 1.2;
}

.preview-rate-row strong {
  color: #3ee49b;
  white-space: nowrap;
  font-size: 13px;
}

.mini-chart {
  margin: 17px 0 11px;
  height: 138px;
}

.mini-chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-scale text,
.chart-dates text {
  fill: #a7b0c4;
  font-size: 12px;
  font-weight: 700;
}

.chart-scale path {
  fill: none;
  stroke: rgba(94, 112, 150, 0.32);
  stroke-width: 1;
}

.chart-dates text {
  fill: #8d97ad;
}

.preview-card .result-breakdown {
  display: none;
}

.preview-card .btn-copy,
.preview-card .compare-grid {
  display: none;
}

.view-chart-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 184px;
  height: 34px;
  margin-top: 8px;
  padding: 0 13px;
  border-radius: 7px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(135,154,200,0.18);
  color: #aeb8ce;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.view-chart-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.chart-link-icon {
  font-size: 15px;
  color: #7f8da8;
}

.preview-updated {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(135,154,200,0.18);
  color: #8791aa;
  font-size: 13px;
}

.refresh-icon {
  color: #8f9bb4;
  font-size: 15px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
  position: relative;
  z-index: 1;
}

.feature-card {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 136px;
  padding: 17px 20px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  color: #21d7ff;
  background:
    radial-gradient(circle at 50% 38%, rgba(32,216,255,0.28), transparent 58%),
    rgba(32,216,255,0.12);
  border: 1px solid rgba(32,216,255,0.32);
  box-shadow:
    0 0 24px rgba(32,216,255,0.16),
    inset 0 0 22px rgba(32,216,255,0.15);
}

.feature-icon svg {
  width: 34px;
  height: 34px;
  display: block;
  overflow: visible;
}

.feature-icon path {
  fill: currentColor;
  filter: drop-shadow(0 0 8px currentColor);
}

.feature-icon .icon-outline {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-icon .icon-cut {
  fill: none;
  stroke: #141830;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: none;
}

.feature-icon.shield,
.feature-icon.clock {
  color: #a855f7;
  background:
    radial-gradient(circle at 50% 38%, rgba(168,85,247,0.32), transparent 58%),
    rgba(168,85,247,0.13);
  border-color: rgba(168,85,247,0.32);
  box-shadow:
    0 0 24px rgba(168,85,247,0.16),
    inset 0 0 22px rgba(168,85,247,0.15);
}

.feature-icon.globe {
  color: #77a2ff;
  background:
    radial-gradient(circle at 50% 38%, rgba(99,102,241,0.32), transparent 58%),
    rgba(99,102,241,0.14);
  border-color: rgba(99,102,241,0.34);
  box-shadow:
    0 0 24px rgba(99,102,241,0.16),
    inset 0 0 22px rgba(99,102,241,0.15);
}

.feature-card h3 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 6px;
}

.feature-card p {
  color: #a8b0c4;
  font-size: 14px;
  line-height: 1.45;
}

.feature-card span {
  display: inline-flex;
  margin-top: 10px;
  padding: 3px 9px;
  border-radius: 7px;
  background: rgba(32,216,255,0.12);
  color: #43e2ff;
  font-size: 12px;
  font-weight: 800;
}

.rates-panel {
  padding: 18px 12px 8px;
  position: relative;
  z-index: 1;
}

.rates-dashboard-panel {
  margin-top: 0;
}

.rates-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px 12px 16px;
}

.rates-live-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #22e7a8;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.rates-live-label span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22e7a8;
  box-shadow: 0 0 12px rgba(34,231,168,0.8);
}

.rates-table-head h2 {
  position: relative;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 23px;
  line-height: 1.1;
  margin: 0;
}

.rates-table-head h2::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 0;
  width: 2px;
  height: 48px;
  border-radius: 2px;
  background: linear-gradient(180deg, #e8eefc, rgba(232,238,252,0));
}

.rates-table-head h2 span {
  background: linear-gradient(100deg, #20d8ff 0%, #2b8cff 45%, #a855f7 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rates-table-head p {
  margin-top: 7px;
  color: #a6afc3;
  font-size: 14px;
}

.rates-source-line {
  margin-top: 5px;
  color: #69758f;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
}

.rates-dashboard-panel .rate-sub-info {
  display: none;
}

.rates-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.rates-actions a {
  color: #48a3ff;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}

.rates-actions button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(135,154,200,0.22);
  background: rgba(255,255,255,0.035);
  color: #dbe6ff;
  cursor: pointer;
  font-size: 18px;
}

.rates-title-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  overflow: visible;
  filter: drop-shadow(0 0 9px rgba(32, 216, 255, 0.42));
}

.rates-title-icon path {
  fill: none;
  stroke: #20d8ff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rates-title-icon .spark {
  stroke: #8b5cf6;
  opacity: 0.92;
}

.rates-feature-row {
  margin: 24px 0 22px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.panel-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-heading a {
  color: #7fb5ff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.app-shell .rates-grid-layout {
  display: block;
  margin-top: 0;
}

.rates-table {
  display: grid;
  gap: 3px;
  overflow-x: auto;
}

.rates-table-row {
  display: grid;
  grid-template-columns: 1.35fr 1.05fr 0.9fr 1fr 1.15fr;
  align-items: center;
  column-gap: 24px;
  min-width: 860px;
  min-height: 52px;
  padding: 0 24px;
}

body[data-page="converter"] .rates-table-row {
  grid-template-columns: 1.35fr 1fr 0.8fr 0.8fr;
  min-width: 680px;
}

.rates-table-header {
  min-height: 42px;
  border: 1px solid rgba(135,154,200,0.16);
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, rgba(24,34,55,0.86), rgba(15,23,39,0.86));
  color: #aeb8cc;
  font-size: 13px;
}

.rates-data-row {
  min-height: 52px;
  border: 1px solid rgba(135,154,200,0.14);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(18,28,47,0.72), rgba(11,18,32,0.76));
  text-decoration: none;
  color: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.rates-data-row:hover {
  border-color: rgba(32,216,255,0.3);
  background: linear-gradient(180deg, rgba(22,34,58,0.86), rgba(11,18,32,0.86));
}

.currency-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}

.currency-cell strong,
.pair-cell,
.rate-cell {
  color: #f3f7ff;
  font-weight: 800;
}

.currency-cell small {
  display: block;
  margin-top: 2px;
  color: #a5aec3;
  font-size: 12px;
}

.rate-cell {
  font-family: 'DM Sans', sans-serif;
}

.change-cell {
  font-weight: 900;
}

.change-cell.positive {
  color: #21e7a0;
}

.change-cell.negative {
  color: #ff4f85;
}

.change-cell.neutral {
  color: #8f99af;
}

.trend-cell svg {
  display: block;
  width: 170px;
  height: 42px;
  overflow: visible;
}

.trend-cell.up {
  color: #16e0a8;
}

.trend-cell.down {
  color: #ff4f85;
}

.trend-cell.flat {
  color: #7f8aa1;
}

.trend-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px currentColor);
}

.currency-flag {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 0 18px rgba(0,0,0,0.28);
}

.flag-usd { background: repeating-linear-gradient(180deg, #e9545e 0 4px, #fff 4px 8px); }
.flag-usd::before { content: ''; position: absolute; inset: 0 46% 48% 0; background: #3154a4; }
.flag-eur { background: #1f5bc4; }
.flag-eur::before { content: '*'; position: absolute; inset: 7px; color: #ffd75a; text-align: center; font-size: 18px; line-height: 18px; }
.flag-gbp { background: linear-gradient(45deg, transparent 42%, #fff 42% 48%, #d83b58 48% 54%, #fff 54% 60%, transparent 60%), linear-gradient(-45deg, transparent 42%, #fff 42% 48%, #d83b58 48% 54%, #fff 54% 60%, transparent 60%), linear-gradient(90deg, transparent 38%, #fff 38% 45%, #d83b58 45% 55%, #fff 55% 62%, transparent 62%), linear-gradient(180deg, transparent 38%, #fff 38% 45%, #d83b58 45% 55%, #fff 55% 62%, transparent 62%), #24489c; }
.flag-jpy { background: #f5f7fb; }
.flag-jpy::before { content: ''; position: absolute; width: 15px; height: 15px; border-radius: 50%; background: #df3e57; left: 9px; top: 9px; }
.flag-brl { background: #22a65a; }
.flag-brl::before { content: ''; position: absolute; width: 21px; height: 21px; background: #f2d64f; transform: rotate(45deg); left: 6px; top: 6px; }
.flag-brl::after { content: ''; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #2266b8; left: 11px; top: 11px; }
.flag-cad { background: linear-gradient(90deg, #df3546 0 28%, #fff 28% 72%, #df3546 72%); }
.flag-aud { background: radial-gradient(circle at 70% 65%, #fff 0 2px, transparent 3px), radial-gradient(circle at 48% 38%, #fff 0 2px, transparent 3px), #1f5ab8; }
.flag-chf { background: #e34242; }
.flag-chf::before { content: ''; position: absolute; width: 18px; height: 6px; background: #fff; left: 8px; top: 14px; }
.flag-chf::after { content: ''; position: absolute; width: 6px; height: 18px; background: #fff; left: 14px; top: 8px; }

.app-shell .history-box,
.app-shell .faq-section,
.app-shell .seo-links,
.app-shell .disclaimer-box,
.app-shell .sources-box,
.app-shell footer {
  margin-top: 18px;
}

.app-shell .faq-section {
  color: #dbe2f6;
}

.app-shell .faq-section h2 {
  color: #fff;
}

.app-shell .faq-section details {
  border-color: rgba(135,154,200,0.16);
}

.app-shell .seo-links a {
  background: rgba(32,216,255,0.08);
  border-color: rgba(32,216,255,0.2);
  color: #54ddff;
}

html[data-theme="light"] body.app-shell {
  --bg: #f3f7fd;
  --surface: rgba(255, 255, 255, 0.94);
  --card: rgba(255, 255, 255, 0.88);
  --border: rgba(127, 144, 178, 0.28);
  --border-strong: rgba(86, 105, 150, 0.36);
  --text: #111827;
  --text-secondary: #334155;
  --muted: #64748b;
  --muted2: #8a96ad;
  background:
    radial-gradient(circle at 78% 0%, rgba(77, 119, 255, 0.14), transparent 31%),
    radial-gradient(circle at 12% 12%, rgba(32, 216, 255, 0.13), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #eff5fc 58%, #e8eff8 100%);
}

html[data-theme="light"] body.app-shell::before {
  background-image:
    linear-gradient(rgba(59, 85, 132, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 85, 132, 0.06) 1px, transparent 1px);
  opacity: 0.38;
}

html[data-theme="light"] .app-shell .sidebar {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(238,245,253,0.97)),
    radial-gradient(circle at 38% 0%, rgba(32,216,255,0.12), transparent 36%);
  border-right-color: rgba(127,144,178,0.28);
  box-shadow: 18px 0 42px rgba(30, 41, 59, 0.08);
}

html[data-theme="light"] .gc-logo-text,
html[data-theme="light"] .gc-logo-text .brand-global {
  color: #102033;
  text-shadow: none;
}

html[data-theme="light"] .app-shell .nav-item {
  color: #5d6b83;
}

html[data-theme="light"] .app-shell .nav-item:hover {
  color: #15263d;
  background: rgba(32,216,255,0.08);
}

html[data-theme="light"] .app-shell .nav-item.active {
  color: #122033;
  background: linear-gradient(90deg, rgba(32,216,255,0.16), rgba(99,102,241,0.08));
  border-color: rgba(73, 96, 148, 0.22);
  box-shadow: inset 0 0 26px rgba(32,216,255,0.08), 0 8px 24px rgba(30,64,175,0.08);
}

html[data-theme="light"] .app-shell .sidebar-footer {
  border-top-color: rgba(127,144,178,0.24);
}

html[data-theme="light"] .app-shell .lang-btn {
  background: rgba(255,255,255,0.8);
  color: #536174;
  border-color: rgba(127,144,178,0.26);
}

html[data-theme="light"] .app-shell .theme-toggle {
  color: #172033;
  background: rgba(255,255,255,0.82);
  border-color: rgba(127,144,178,0.26);
  box-shadow: 0 8px 20px rgba(30,41,59,0.06);
}

html[data-theme="light"] .app-shell .theme-toggle::before {
  content: '\2600';
  color: #f59e0b;
}

html[data-theme="light"] .app-shell .theme-toggle::after {
  background: linear-gradient(135deg, #facc15, #38bdf8);
  box-shadow: inset -16px 0 0 rgba(255,255,255,0.9), 0 0 18px rgba(14,165,233,0.2);
}

html[data-theme="light"] .app-shell .sidebar-links a {
  color: #66758b;
}

html[data-theme="light"] .eyebrow {
  color: #0284c7;
}

html[data-theme="light"] .app-hero h1,
html[data-theme="light"] .app-shell .card-title,
html[data-theme="light"] .preview-kicker,
html[data-theme="light"] .preview-base,
html[data-theme="light"] .feature-card h3,
html[data-theme="light"] .rates-table-head h2,
html[data-theme="light"] .panel-heading,
html[data-theme="light"] .app-shell .faq-section h2 {
  color: #111827;
}

html[data-theme="light"] .app-hero p,
html[data-theme="light"] .feature-card p,
html[data-theme="light"] .preview-rate-row,
html[data-theme="light"] .app-shell .rate-status,
html[data-theme="light"] .rates-table-head p,
html[data-theme="light"] .app-shell .faq-section {
  color: #56657a;
}

html[data-theme="light"] .app-shell .tool-card,
html[data-theme="light"] .app-shell .result-box,
html[data-theme="light"] .feature-card,
html[data-theme="light"] .rates-panel,
html[data-theme="light"] .app-shell .faq-section,
html[data-theme="light"] .app-shell .history-box {
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,251,255,0.9));
  border-color: rgba(127,144,178,0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 18px 45px rgba(30,41,59,0.08);
}

html[data-theme="light"] .app-shell .field label {
  color: #536174;
}

html[data-theme="light"] .app-shell .field input,
html[data-theme="light"] .app-shell .field select,
html[data-theme="light"] .app-shell .cs-display,
html[data-theme="light"] .app-shell .cs-search,
html[data-theme="light"] .country-select .cs-search {
  background: rgba(255,255,255,0.94);
  border-color: rgba(106, 124, 160, 0.3);
  color: #111827;
}

html[data-theme="light"] .app-shell .cs-dropdown {
  background: rgba(255,255,255,0.98);
  border-color: rgba(106,124,160,0.28);
  box-shadow: 0 22px 48px rgba(30,41,59,0.16);
}

html[data-theme="light"] .app-shell .cs-option:hover,
html[data-theme="light"] .app-shell .cs-option.selected {
  background: rgba(32,216,255,0.1);
}

html[data-theme="light"] .swap-button {
  background: radial-gradient(circle at 35% 25%, rgba(32,216,255,0.22), rgba(139,92,246,0.14) 70%), #ffffff;
  color: #0284c7;
  box-shadow: 0 10px 22px rgba(30,64,175,0.12);
}

html[data-theme="light"] .view-chart-btn,
html[data-theme="light"] .rates-actions button {
  background: rgba(255,255,255,0.82);
  border-color: rgba(106,124,160,0.25);
  color: #52627a;
}

html[data-theme="light"] .chart-scale text,
html[data-theme="light"] .chart-dates text,
html[data-theme="light"] .preview-updated,
html[data-theme="light"] .rates-source-line,
html[data-theme="light"] .currency-cell small {
  color: #6b7890;
  fill: #6b7890;
}

html[data-theme="light"] .rates-table-header {
  background: linear-gradient(180deg, rgba(241,246,253,0.96), rgba(232,239,250,0.92));
  border-color: rgba(127,144,178,0.24);
  color: #657287;
}

html[data-theme="light"] .rates-data-row {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(247,250,254,0.88));
  border-color: rgba(127,144,178,0.22);
}

html[data-theme="light"] .rates-data-row:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(236,248,255,0.92));
  border-color: rgba(14,165,233,0.34);
}

html[data-theme="light"] .currency-cell strong,
html[data-theme="light"] .pair-cell,
html[data-theme="light"] .rate-cell {
  color: #162033;
}

html[data-theme="light"] .currency-flag {
  border-color: rgba(71,85,105,0.18);
  box-shadow: 0 8px 16px rgba(30,41,59,0.12);
}

html[data-theme="light"] .app-shell .seo-links a {
  background: rgba(14,165,233,0.08);
  border-color: rgba(14,165,233,0.18);
  color: #0369a1;
}

@media (max-width: 1180px) {
  body.app-shell {
    --sidebar-w: 280px;
  }

  .conversion-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 800px) {
  body.app-shell {
    --sidebar-w: 280px;
  }

  .app-shell .sidebar {
    padding: 24px 20px;
  }

  .app-shell .app-main {
    margin-left: 0;
    padding: 88px 18px 56px;
  }

  .app-shell .main-content > * {
    width: 100%;
    max-width: 100%;
  }

  .app-hero {
    min-height: auto;
    padding: 20px 0 30px;
  }

  .converter-form-v3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .swap-button {
    position: static;
    transform: none;
    margin: -4px auto;
  }

  .feature-grid,
  .app-shell .rates-grid-layout {
    grid-template-columns: 1fr;
  }

  .app-shell .brand-link {
    font-size: 18px;
  }

  .app-shell .mobile-bar {
    height: 56px;
    background: rgba(8, 13, 25, 0.9);
    border-bottom: 1px solid rgba(135,154,200,0.18);
    backdrop-filter: blur(16px);
  }

  .app-shell .mobile-menu-btn,
  .app-shell .theme-toggle-sm {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    font-size: 18px;
  }
}
