:root {
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-highlight: rgba(255, 255, 255, 0.38);
  --spidey-red: #ff2d55;
  --spidey-blue: #0a84ff;
  --text-primary: #f8fafc;
  --text-secondary: rgba(241, 245, 249, 0.78);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  color: var(--text-primary);
  background: #070911;
  overflow-x: hidden;
  padding-top: 96px;
  padding-bottom: 48px;
}

.fluid-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, #11182c 0%, #06080f 75%);
}

.fluid-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.55;
  animation: floatFluid 16s ease-in-out infinite alternate;
}

.blob-red {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #ff2d55, transparent 70%);
  top: -60px;
  left: 6%;
}

.blob-blue {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, #0a84ff, transparent 70%);
  bottom: -80px;
  right: 6%;
  animation-delay: -5s;
}

.blob-violet {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, #5e5ce6, transparent 70%);
  top: 42%;
  left: 44%;
  animation-delay: -9s;
}

.pointer-glow {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 45, 85, 0.22), rgba(10, 132, 255, 0.16) 45%, transparent 72%);
  filter: blur(45px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

@keyframes floatFluid {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(35px, -28px) scale(1.08); }
  100% { transform: translate(-25px, 24px) scale(0.95); }
}

.apple-glass {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(26px) saturate(185%);
  -webkit-backdrop-filter: blur(26px) saturate(185%);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 var(--glass-highlight);
}

.apple-glass-sub {
  background: rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(18px) saturate(165%);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.fluid-touch {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
}

.fluid-touch::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.26),
    rgba(10, 132, 255, 0.12) 45%,
    transparent 75%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.fluid-touch:hover::before,
.fluid-touch:active::before {
  opacity: 1;
}

.fluid-touch:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.36);
}

.fluid-touch:active {
  transform: scale(0.97);
}

.touch-ripple {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), rgba(255, 45, 85, 0.35), transparent 70%);
  animation: fluidRipple 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: none;
}

@keyframes fluidRipple {
  to {
    transform: translate(-50%, -50%) scale(3.2);
    opacity: 0;
  }
}

.glass-navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1060px, calc(100% - 28px));
  z-index: 50;
  border-radius: 999px;
  background: rgba(16, 21, 36, 0.62);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  padding: 8px 14px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 4px 10px;
  border-radius: 999px;
}

.nav-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--spidey-red);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-pill {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-pill.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--spidey-red);
  box-shadow: 0 0 10px var(--spidey-red);
}

.nav-cta {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--spidey-red), #d70040);
  box-shadow: 0 6px 20px rgba(255, 45, 85, 0.38);
}

.container {
  position: relative;
  z-index: 2;
  width: min(1060px, calc(100% - 28px));
  margin: 0 auto;
}

.page-view {
  display: none;
  animation: viewFade 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-view.active-view {
  display: block;
}

@keyframes viewFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-glass {
  max-width: 640px;
  margin: 18px auto 0;
  padding: 42px 32px;
  border-radius: var(--radius-xl);
  text-align: center;
}

.avatar-halo {
  width: 132px;
  height: 132px;
  margin: 0 auto 18px;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--spidey-red), var(--spidey-blue));
  box-shadow: 0 0 36px rgba(255, 45, 85, 0.45);
}

.avatar-halo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #090d16;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.84rem;
  margin-bottom: 14px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 10px #30d158;
}

.hero-glass h1 {
  font-size: 2.2rem;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
}

.hero-desc {
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 26px;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 26px;
}

.metric-tile {
  padding: 16px 12px;
  border-radius: var(--radius-lg);
}

.metric-tile strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.metric-tile span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn-fluid {
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 18px;
  border-radius: 15px;
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
}

.btn-primary {
  background: linear-gradient(135deg, var(--spidey-red), #c9184a);
  box-shadow: 0 10px 26px rgba(255, 45, 85, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.09);
}

.btn-danger {
  background: rgba(255, 69, 58, 0.2);
  border-color: rgba(255, 69, 58, 0.45);
  color: #ffb3ad;
}

.section-header {
  padding: 26px 28px;
  border-radius: var(--radius-xl);
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: #ff7a95;
  font-weight: 700;
  margin-bottom: 6px;
}

.section-header h2 {
  font-size: 1.65rem;
  margin-bottom: 6px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 0.93rem;
}

.section-header code {
  color: #ff8fa3;
  background: rgba(255, 45, 85, 0.16);
  padding: 2px 6px;
  border-radius: 6px;
}

.search-box input {
  width: 290px;
  max-width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}

.search-box input:focus {
  border-color: var(--spidey-blue);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.25);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.cat-tab {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
}

.cat-tab.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.35), rgba(10, 132, 255, 0.35));
  border-color: rgba(255, 255, 255, 0.34);
}

.important-grid,
.command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 14px;
}

.category-block {
  margin-bottom: 28px;
}

.category-title {
  font-size: 1.15rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.cmd-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.cmd-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cmd-name {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.cmd-tag {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.cmd-tag.prefix {
  background: rgba(255, 45, 85, 0.22);
  color: #ff9eb1;
}

.cmd-tag.slash {
  background: rgba(10, 132, 255, 0.22);
  color: #8cc5ff;
}

.cmd-short {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.cmd-hint {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.55);
}

.admin-lock-bar {
  padding: 16px 22px;
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-lock-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-lock-actions input {
  padding: 9px 13px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.34);
  color: #fff;
  font-size: 0.88rem;
  width: 160px;
}

body:not(.plans-unlocked) .admin-only {
  display: none !important;
}

.upi-config-box {
  padding: 24px 28px;
  border-radius: var(--radius-xl);
  margin-bottom: 20px;
}

.upi-config-box h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.qr-image {
  display: block;
  width: 196px;
  height: 196px;
  object-fit: contain;
  border-radius: 10px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.form-row-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.field-group {
  margin-bottom: 14px;
}

.form-row .field-group,
.form-row-4 .field-group {
  margin-bottom: 0;
}

.field-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.field-group input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.34);
  color: #fff;
  font-size: 0.92rem;
  outline: none;
}

.field-group input:focus {
  border-color: var(--spidey-blue);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.25);
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.plan-card {
  padding: 24px 22px;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-card.selected-plan {
  border-color: #30d158;
  box-shadow: 0 0 28px rgba(48, 209, 88, 0.22), inset 0 1px 0 var(--glass-highlight);
}

.plan-card h3 {
  font-size: 1.2rem;
}

.price-tag {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
}

.price-tag span {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.plan-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.btn-sm {
  padding: 9px 13px;
  font-size: 0.82rem;
  border-radius: 12px;
}

.upi-pay-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.qr-card,
.checkout-box {
  padding: 26px;
  border-radius: var(--radius-xl);
}

.qr-card h3,
.checkout-box h3 {
  font-size: 1.25rem;
  margin-top: 8px;
  margin-bottom: 6px;
}

.checkout-sub {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.45;
  margin-bottom: 16px;
}

.qr-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  width: fit-content;
  margin: 0 auto 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.upi-summary-box {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.upi-app-btn {
  display: block;
  text-align: center;
  width: 100%;
}

.checkout-status {
  margin-top: 14px;
  font-size: 0.9rem;
  color: #93c5fd;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 5, 10, 0.68);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  width: min(520px, 100%);
  padding: 30px 26px;
  border-radius: var(--radius-xl);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.95rem;
}

.modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.badge {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.badge-important {
  background: rgba(255, 45, 85, 0.28);
  color: #ff9eb1;
}

.hidden {
  display: none !important;
}

.modal-card h3 {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.modal-description {
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 18px;
}

.modal-detail-box {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 12px;
}

.modal-detail-box label {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 6px;
}

.code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.code-row code {
  color: #93c5fd;
  font-size: 0.92rem;
  word-break: break-all;
}

.copy-btn {
  padding: 5px 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  margin-left: 6px;
}

.glass-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 34px;
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.glass-footer a {
  color: #ff8fa3;
  text-decoration: none;
}

@media (max-width: 720px) {
  body { padding-top: 126px; }
  .glass-navbar { border-radius: 24px; }
  .nav-inner { justify-content: center; }
  .metrics-row { grid-template-columns: 1fr; }
}