:root {
  --bg-main: #020617;
  --bg-card: #0f172a;
  --bg-soft: #111827;
  --bg-glass: rgba(15, 23, 42, 0.82);

  --primary: #22c55e;
  --primary-hover: #16a34a;
  --primary-soft: rgba(34, 197, 94, 0.14);

  --secondary: #38bdf8;
  --danger: #f87171;
  --warning: #facc15;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-soft: #cbd5e1;

  --border-soft: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 20px 45px rgba(0, 0, 0, 0.35);

  --radius-md: 12px;
  --radius-lg: 18px;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at top left,
      rgba(34, 197, 94, 0.13),
      transparent 34%
    ),
    radial-gradient(
      circle at top right,
      rgba(56, 189, 248, 0.12),
      transparent 32%
    ),
    var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

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

button,
a {
  transition: 0.25s ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(34, 197, 94, 0.35);
  outline-offset: 3px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1006;
  width: 100%;
  min-height: 74px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(2, 6, 23, 0.88);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(16px);
  transition: 0.3s ease;
}

header.shrink {
  min-height: 64px;
  box-shadow: var(--shadow-soft);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo-img {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.35))
    drop-shadow(0 0 14px rgba(250, 204, 21, 0.18));
  animation: zuramLogoGlow 2.6s ease-in-out infinite;
}

.site-logo span {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

nav {
  z-index: 1010;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
}

nav ul li a {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--primary);
  background: var(--primary-soft);
}

.menu-toggle {
  display: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 1200;
  transition: transform 0.25s ease;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--text-main);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.menu-toggle:active {
  transform: scale(0.94);
}

body.menu-open {
  overflow: hidden;
}

/* Common */
section {
  padding: 90px 20px;
  border-bottom: 1px solid var(--border-soft);
}

.container {
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

h1 {
  font-size: 40px;
  line-height: 1.15;
}

h2 {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 28px;
}

p {
  color: var(--text-soft);
  line-height: 1.7;
}

.pdfBtn {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: white;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.25);
}

.pdfBtn:hover {
  transform: translateY(-2px);
}

/* Loader */
.app-loader {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: none;
  place-items: center;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
}

.app-loader.active {
  display: grid;
}

.loader-spinner {
  width: 46px;
  height: 46px;
  border: 4px solid rgba(59, 130, 246, 0.18);
  border-top-color: #0ea5ff;
  border-right-color: #08c7dc;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(14, 165, 233, 0.18);
  animation: spin 0.8s linear infinite;
}

/* Toast */
.toast-container {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 21000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  min-width: 260px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 14px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  animation: toastIn 0.3s ease;
}

.toast.success {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.toast.error {
  background: linear-gradient(135deg, #dc2626, #f87171);
}

.toast.info {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
}

.home-header {
  background: rgba(2, 6, 23, 0.88);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(14px);
}

/* Animations */
@keyframes zuramLogoGlow {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  header {
    padding: 0 24px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 0 16px;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    display: none;
    padding: 14px;
    background: rgba(2, 6, 23, 0.96);
    border-bottom: 1px solid var(--border-soft);
  }

  nav.active,
  nav.open {
    display: block;
  }

  nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  nav ul li a {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .site-logo-img {
    width: 34px;
    height: 34px;
  }

  .site-logo span {
    font-size: 21px;
  }

  .toast-container {
    top: 84px;
    left: 14px;
    right: 14px;
  }

  .toast {
    min-width: 100%;
    max-width: 100%;
  }
}

/* App header network status */
header.zrm-app-header {
  gap: 16px;
}

header.zrm-app-header .site-logo {
  flex: 0 0 auto;
  min-width: 0;
}

.zrm-header-network-status {
  width: max-content;
  max-width: calc(100vw - 150px);
  min-height: 34px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 1 auto;
  box-sizing: border-box;
  border: 1px solid rgba(0, 255, 190, 0.5);
  border-radius: 999px;
  color: #19ffbd;
  background: rgba(2, 13, 24, 0.78);
  box-shadow:
    inset 0 0 16px rgba(16, 185, 129, 0.06),
    0 0 18px rgba(16, 185, 129, 0.12);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.zrm-header-network-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background: #19ff8f;
  box-shadow: 0 0 10px rgba(25, 255, 143, 0.85);
}

.zrm-header-network-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zrm-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex: 0 0 auto;
}

header.zrm-app-header .menu-toggle {
  display: block;
  flex: 0 0 34px;
}

header.zrm-app-header nav {
  position: fixed;
  top: 74px;
  left: 0;
  right: 0;
  display: none;
  padding: 14px;
  background: rgba(2, 6, 23, 0.96);
  border-bottom: 1px solid var(--border-soft);
}

header.zrm-app-header.shrink nav {
  top: 64px;
}

header.zrm-app-header nav.active,
header.zrm-app-header nav.open {
  display: block;
}

header.zrm-app-header nav ul {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

header.zrm-app-header nav ul li a {
  width: 100%;
  justify-content: center;
}

@media (max-width: 640px) {
  header.zrm-app-header {
    padding: 0 18px;
    gap: 10px;
  }

  .zrm-header-network-status {
    max-width: calc(100vw - 145px);
    min-height: 32px;
    padding: 0 14px;
    gap: 7px;
    font-size: 12px;
    letter-spacing: 0;
  }

  .zrm-header-actions {
    gap: 10px;
  }
}

@media (max-width: 420px) {
  header.zrm-app-header {
    padding: 0 10px;
    gap: 6px;
  }

  header.zrm-app-header .site-logo {
    gap: 5px;
  }

  header.zrm-app-header .site-logo-img {
    width: 30px;
    height: 30px;
  }

  header.zrm-app-header .site-logo span {
    font-size: 18px;
  }

  .zrm-header-network-status {
    max-width: calc(100vw - 138px);
    min-height: 30px;
    padding: 0 12px;
    gap: 6px;
    font-size: 10px;
  }

  .zrm-header-network-dot {
    width: 7px;
    height: 7px;
    flex-basis: 7px;
  }

  .zrm-header-actions {
    gap: 6px;
  }

  header.zrm-app-header .menu-toggle {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
}

/* ZURAM ZRM CALCULATOR */
.zrm-price-calculator-card #fractionInrAmount,
.zrm-price-calculator-card #fractionCoinAmount,
.zrm-price-calculator-card #fractionAmountLabel,
.zrm-price-calculator-card #fractionCurrencyHint,
.zrm-price-calculator-card label[for="fractionCoinAmount"] {
  display: block !important;
}

.zrm-price-calculator-card .zrm-buy-input-wrap {
  display: flex !important;
}

.zrm-calculator-price {
  margin: 14px 0 6px;
  color: #38bdf8;
  font-weight: 800;
  line-height: 1.5;
}

.zrm-price-calculator-card .buy-note {
  display: block !important;
}

/* ZURAM CALCULATOR CACHE*/
.zrm-price-calculator-card #fractionInrAmount,
.zrm-price-calculator-card #fractionCoinAmount,
.zrm-price-calculator-card #fractionCurrencyHint,
.zrm-price-calculator-card #fractionCurrencySymbol,
.zrm-price-calculator-card label[for="fractionInrAmount"],
.zrm-price-calculator-card label[for="fractionCoinAmount"],
.zrm-price-calculator-card .buy-note,
.zrm-price-calculator-card .zrm-calculator-price {
  display: block !important;
}

.zrm-price-calculator-card .zrm-buy-input-wrap {
  display: flex !important;
}

.zrm-calculator-price {
  margin-top: 14px;
  color: #38bdf8;
  font-size: 14px;
  font-weight: 800;
}
