/* AstraPay v3 — Premium Dark Design System */
/* =========================================================== */

/* --- Google Fonts loaded in layout.php --- */
/* Space Grotesk (headings), Inter (body), JetBrains Mono (code) */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: #050607;
  color: #ffffff;
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.5;
  margin: 0;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #141414; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #333; }
html { scrollbar-width: thin; scrollbar-color: #141414 transparent; }

/* =========================================================== */
/* KEYFRAMES                                                  */
/* =========================================================== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastIn { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(100%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes borderGlowPulse { 0%, 100% { border-color: #141414; } 50% { border-color: #333; } }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes heroBeamDrift { 0% { transform: translate3d(-8%, 8%, 0) rotate(-9deg); opacity: 0.15; } 45% { opacity: 0.34; } 100% { transform: translate3d(10%, -6%, 0) rotate(-7deg); opacity: 0.18; } }
@keyframes heroBeamDriftAlt { 0% { transform: translate3d(8%, -4%, 0) rotate(11deg); opacity: 0.10; } 50% { opacity: 0.24; } 100% { transform: translate3d(-10%, 8%, 0) rotate(9deg); opacity: 0.12; } }
@keyframes heroNoiseShift { 0%, 100% { transform: translate3d(0,0,0); opacity: 0.18; } 50% { transform: translate3d(-2%, 1%, 0); opacity: 0.26; } }
@keyframes heroThreads { from { transform: translate3d(-48px, 0, 0); } to { transform: translate3d(48px, 0, 0); } }
@keyframes titleSheen { 0%, 18% { background-position: 0% 50%; } 52% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes visualHaloSpin { to { transform: rotate(360deg); } }
@keyframes cardSpotlightPulse { 0%, 100% { opacity: 0.12; transform: translate3d(-8%, -8%, 0) scale(1); } 50% { opacity: 0.26; transform: translate3d(12%, 10%, 0) scale(1.08); } }
@keyframes plaqueLineSweep { 0%, 100% { opacity: 0.36; transform: translateX(-10%); } 50% { opacity: 0.74; transform: translateX(8%); } }
@keyframes deviceFloat { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -12px, 0); } }
@keyframes deviceFrameGlow { 0%, 100% { opacity: 0.28; transform: scale(0.96); } 50% { opacity: 0.56; transform: scale(1.04); } }
@keyframes marqueeTravel { to { transform: translate3d(-50%, 0, 0); } }

/* ---- Utility animation classes ---- */
.anim-fade-in { animation: fadeIn 0.4s ease forwards; }
.anim-fade-up { animation: fadeInUp 0.5s ease forwards; }
.anim-fade-down { animation: fadeInDown 0.3s ease forwards; }
.anim-fade-scale { animation: fadeInScale 0.35s ease forwards; }
.anim-slide-right { animation: slideInRight 0.35s ease forwards; }

/* Staggered children */
.stagger > * { opacity: 0; animation: fadeInUp 0.5s ease forwards; }
.stagger > *:nth-child(1) { animation-delay: 0s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.2s; }
.stagger > *:nth-child(4) { animation-delay: 0.3s; }
.stagger > *:nth-child(5) { animation-delay: 0.4s; }
.stagger > *:nth-child(6) { animation-delay: 0.5s; }

/* =========================================================== */
/* TYPOGRAPHY                                                  */
/* =========================================================== */
.font-heading { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.02em; }
.font-mono { font-family: 'JetBrains Mono', monospace; }
.tabular-nums { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }

.text-primary { color: #ffffff; }
.text-secondary { color: #999999; }
.text-tertiary { color: #666666; }
.text-success { color: #d8d8d8; }
.text-error { color: #ff4444; }
.text-warning { color: #ff8800; }

.h1 { font-family: 'Space Grotesk', sans-serif; font-size: 2.5rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.h2 { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.h4 { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 600; }

.section-label {
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.body-text { font-size: 1rem; color: #999; line-height: 1.6; }
.caption { font-size: 0.8125rem; color: #888; }

/* =========================================================== */
/* LAYOUT                                                      */
/* =========================================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.container-tight { max-width: 620px; margin: 0 auto; }

.section { padding: 96px 24px; }
.section-sm { padding: 64px 24px; }
.section-lg { padding: 128px 24px; }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.text-center { text-align: center; }
.text-right { text-align: right; }

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* =========================================================== */
/* CARDS                                                       */
/* =========================================================== */
.card {
  background: #0b0f12;
  border: 1px solid #1b2328;
  border-radius: 8px;
  padding: 24px;
}

.card-padded { padding: 32px; }
.card-no-pad { padding: 0; overflow: hidden; }

.card-hover {
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card-hover:hover {
  border-color: #333;
  transform: translateY(-2px);
}

.card-glow {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.card-glow:hover {
  border-color: #333;
  box-shadow: 0 0 24px rgba(255,255,255,0.02);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-header-padded {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
}

/* =========================================================== */
/* BUTTONS                                                     */
/* =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  height: 48px;
}

.btn:hover { opacity: 0.85; }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }

.btn-primary {
  background: #ffffff;
  color: #000000;
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.5); opacity: 1; }

.btn-secondary {
  background: transparent;
  color: #888;
  border: 1px solid #141414;
  font-size: 0.8125rem;
  height: 36px;
  padding: 8px 16px;
}
.btn-secondary:hover { border-color: #333; color: #ffffff; opacity: 1; }

.btn-danger {
  background: transparent;
  color: #ff4444;
  border: 1px solid rgba(255,68,68,0.2);
  font-size: 0.8125rem;
  height: 36px;
  padding: 8px 16px;
}
.btn-danger:hover { background: rgba(255,68,68,0.08); opacity: 1; }

.btn-ghost {
  background: transparent;
  color: #888;
  border: none;
  font-size: 0.8125rem;
  padding: 6px 12px;
  cursor: pointer;
  transition: color 0.2s;
}
.btn-ghost:hover { color: #ffffff; opacity: 1; }

.btn-lg { height: 56px; padding: 16px 32px; font-size: 1rem; }
.btn-full { width: 100%; }

.btn-icon {
  width: 36px; height: 36px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  border: 1px solid #141414;
  color: #888;
  transition: all 0.2s;
}
.btn-icon:hover { border-color: #333; color: #fff; opacity: 1; }

/* =========================================================== */
/* INPUTS                                                      */
/* =========================================================== */
.input {
  width: 100%;
  padding: 12px 14px;
  background: #111111;
  border: 1px solid #222222;
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s ease;
}
.input:focus { border-color: #ffffff; }
.input::placeholder { color: #333; }

.input-mono { font-family: 'JetBrains Mono', monospace; }
.input-lg { padding: 16px 14px; font-size: 1.125rem; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.8125rem; color: #888; font-weight: 500; }
.form-hint { font-size: 0.75rem; color: #555; }

select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* =========================================================== */
/* BADGES & STATUS                                             */
/* =========================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 500;
  border: 1px solid #141414;
  color: #888;
}

.badge-success { color: #d8d8d8; border-color: rgba(255,255,255,0.16); background: rgba(255,255,255,0.05); }
.badge-danger { color: #ff4444; border-color: rgba(255,68,68,0.2); background: rgba(255,68,68,0.05); }
.badge-warning { color: #ff8800; border-color: rgba(255,136,0,0.2); background: rgba(255,136,0,0.05); }
.badge-white { color: #ffffff; border-color: #333; background: rgba(255,255,255,0.05); }
.badge-neutral { color: #888; border-color: #141414; }
.badge-tier { color: #888; border: 1px solid #141414; }

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 500;
  border: 1px solid #141414;
  color: #888;
  background: rgba(10,10,10,0.5);
}
.status-badge.pending { color: #888; border-color: #141414; }
.status-badge.processing { color: #fff; border-color: #333; }
.status-badge.confirmed, .status-badge.received, .status-badge.paid, .status-badge.completed {
  color: #d8d8d8; border-color: rgba(255,255,255,0.16); background: rgba(255,255,255,0.05);
}
.status-badge.cancelled, .status-badge.refunded, .status-badge.failed, .status-badge.expired {
  color: #ff4444; border-color: rgba(255,68,68,0.2); background: rgba(255,68,68,0.05);
}

/* =========================================================== */
/* STAT CARDS (Dashboard)                                      */
/* =========================================================== */
.stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  background: #0a0a0a;
  border: 1px solid #141414;
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.25s ease;
}
.stat-card:hover { border-color: #222; }

.stat-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid #141414;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
}

.stat-sub { font-size: 0.6875rem; color: #555; }

/* =========================================================== */
/* TABLE                                                       */
/* =========================================================== */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #141414;
}

.table td {
  padding: 12px 16px;
  font-size: 0.875rem;
  border-bottom: 1px solid #141414;
  color: #ccc;
}

.table tbody tr { transition: background 0.15s; }
.table tbody tr:hover { background: rgba(255,255,255,0.01); }

.table-minimal td { border-bottom: 1px solid #0a0a0a; }

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.clickable-row { cursor: pointer; }

/* =========================================================== */
/* HEADER / NAV                                                */
/* =========================================================== */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #141414;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.nav-left { display: flex; align-items: center; gap: 32px; }
.nav-logo-img { height: 28px; width: auto; }

.nav-links { display: flex; gap: 24px; }
.nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover { color: #ffffff; }

.nav-link-active { color: #ffffff; }
.nav-link-inactive { color: #666; }

.nav-right { display: flex; align-items: center; gap: 16px; }

.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  background: none;
  border: none;
  color: #888;
  font-size: 0.8125rem;
  cursor: pointer;
}

.nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #0a0a0a;
  border: 1px solid #141414;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
}

/* ---- Dropdown ---- */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  width: 220px;
  background: #0a0a0a;
  border: 1px solid #141414;
  border-radius: 12px;
  z-index: 100;
  overflow: hidden;
  animation: fadeInDown 0.2s ease forwards;
}

.dropdown-header {
  padding: 10px 12px;
  border-bottom: 1px solid #141414;
}

.dropdown-header-name {
  font-size: 0.8125rem;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.8125rem;
  color: #888;
  transition: color 0.15s;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.dropdown-item:hover { color: #ffffff; }

/* =========================================================== */
/* MODAL                                                       */
/* =========================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: #0a0a0a;
  border: 1px solid #141414;
  border-radius: 12px;
  max-width: 440px;
  width: 100%;
  padding: 24px;
  z-index: 10;
  animation: fadeInScale 0.25s ease forwards;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #666;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.modal-close:hover { color: #fff; }

/* =========================================================== */
/* ALERTS / BANNERS                                            */
/* =========================================================== */
.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.8125rem;
}

.alert-error {
  background: rgba(255,68,68,0.08);
  border: 1px solid rgba(255,68,68,0.2);
  color: #ff4444;
}

.alert-warning {
  background: rgba(255,136,0,0.06);
  border: 1px solid rgba(255,136,0,0.15);
  color: #ff8800;
}

.alert-success {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: #d8d8d8;
}

.banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
}
.banner-warning {
  background: rgba(255,136,0,0.05);
  border: 1px solid rgba(255,136,0,0.15);
}

/* =========================================================== */
/* EMPTY STATE                                                 */
/* =========================================================== */
.empty-state {
  padding: 48px 24px;
  text-align: center;
}

.empty-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid #141414;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.empty-title { font-size: 1rem; font-weight: 500; color: #fff; margin-bottom: 6px; }
.empty-sub { font-size: 0.8125rem; color: #888; margin-bottom: 16px; }

/* =========================================================== */
/* PAGE HEADER                                                 */
/* =========================================================== */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
  margin: 0 0 4px 0;
}

.page-subtitle { font-size: 0.875rem; color: #888; }

/* =========================================================== */
/* TABS                                                        */
/* =========================================================== */
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #141414;
  margin-bottom: 24px;
  overflow-x: auto;
}

.tab-btn {
  font-size: 0.8125rem;
  font-weight: 500;
  background: none;
  border: none;
  padding-bottom: 10px;
  cursor: pointer;
  transition: color 0.2s;
  margin-bottom: -1px;
  white-space: nowrap;
}

.tab-btn-active {
  color: #ffffff;
  border-bottom: 2px solid #ffffff;
}

.tab-btn-inactive {
  color: #666;
  border-bottom: 2px solid transparent;
}
.tab-btn-inactive:hover { color: #fff; }

/* ---- Filter Tabs ---- */
.filter-tabs {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab-btn {
  font-size: 0.8125rem;
  font-weight: 500;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  margin-bottom: -1px;
}

.filter-tab-btn.active {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.filter-tab-btn:not(.active) {
  color: #666;
}
.filter-tab-btn:not(.active):hover { color: #fff; }

/* =========================================================== */
/* QR CODE                                                     */
/* =========================================================== */
.qr-frame {
  background: #ffffff;
  padding: 16px;
  border-radius: 8px;
  display: inline-block;
  line-height: 0;
}
.qr-frame img { display: block; border-radius: 4px; }

/* =========================================================== */
/* CODE / TERMINAL                                             */
/* =========================================================== */
.code-block {
  background: #0a0a0a;
  border: 1px solid #141414;
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.7;
  color: #888;
}

.code-block pre {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  line-height: inherit;
}

.code-key { color: #666; }
.code-value { color: #d8d8d8; }
.code-string { color: #ff8800; }
.code-comment { color: #444; }

.code-inline {
  background: #0a0a0a;
  border: 1px solid #141414;
  border-radius: 4px;
  padding: 2px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #ffffff;
}

.code-row {
  display: flex;
  gap: 8px;
  background: #0a0a0a;
  border: 1px solid #141414;
  border-radius: 8px;
  padding: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #888;
  word-break: break-all;
}

.copy-btn {
  flex-shrink: 0;
  padding: 4px 10px;
  background: #0a0a0a;
  border: 1px solid #141414;
  border-radius: 6px;
  color: #888;
  cursor: pointer;
  font-size: 0.6875rem;
  transition: all 0.2s;
}
.copy-btn:hover { border-color: #333; color: #fff; }

/* =========================================================== */
/* SPINNER                                                     */
/* =========================================================== */
.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid #141414;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
.spinner-lg { width: 2rem; height: 2rem; }

/* ---- Loading skeleton ---- */
.skeleton {
  background: linear-gradient(90deg, #0a0a0a 25%, #111 50%, #0a0a0a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* =========================================================== */
/* TOASTS                                                      */
/* =========================================================== */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-item {
  background: #0a0a0a;
  border: 1px solid #141414;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 360px;
  pointer-events: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  animation: toastIn 0.25s ease forwards;
}

.toast-item.toast-out { animation: toastOut 0.2s ease forwards; }

/* =========================================================== */
/* AUTH PAGES (Login / Register)                               */
/* =========================================================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  overflow-x: hidden;
}

.auth-card-wrapper {
  width: 100%;
  max-width: 420px;
  min-width: 0;
}

.auth-logo-area {
  text-align: center;
  margin-bottom: 40px;
}
.auth-logo-img { height: 36px; width: auto; margin: 0 auto 12px; }
.auth-tagline { font-size: 0.9375rem; color: #777; }

.auth-card {
  background: #0a0a0a;
  border: 1px solid #141414;
  border-radius: 8px;
  padding: 32px;
  width: 100%;
  min-width: 0;
}

.auth-form { display: flex; flex-direction: column; gap: 16px; }

.auth-footer {
  text-align: center;
  margin-top: 28px;
  font-size: 0.875rem;
  color: #666;
}
.auth-footer-link {
  color: #ffffff;
  font-weight: 500;
  transition: opacity 0.2s;
}
.auth-footer-link:hover { opacity: 0.8; }

/* ---- Step indicators (Register) ---- */
.step-indicator {
  text-align: center;
  font-size: 0.75rem;
  color: #555;
  margin-bottom: 16px;
}

/* ---- Video background ---- */
.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(0.25) blur(8px);
}

.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.85) 100%);
  z-index: -1;
}

/* =========================================================== */
/* LANDING PAGE                                                */
/* =========================================================== */
.landing-bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(0.25);
}

.landing-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.9) 100%);
  z-index: -1;
}

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #141414;
}

.landing-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.landing-nav-logo { display: flex; align-items: center; }
.landing-nav-logo-img { height: 30px; width: auto; }

.landing-nav-links { display: flex; align-items: center; gap: 24px; }

.landing-nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #888;
  transition: color 0.15s;
}
.landing-nav-link:hover { color: #fff; }

.landing-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: #ffffff;
  color: #000000;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  height: 36px;
  transition: opacity 0.15s;
}
.landing-nav-cta:hover { opacity: 0.85; }

/* Hero */
.hero-section {
  padding: 160px 24px 80px;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9999px;
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 32px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-block;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
  font-family: 'Space Grotesk', sans-serif;
}

.hero-title-accent {
  background: linear-gradient(135deg, #ffffff 0%, #888 50%, #ffffff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #888;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-kpis {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: -18px auto 34px;
  max-width: 760px;
}

.hero-kpis span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #8f8f8f;
  font-size: 0.78rem;
}

.hero-kpis strong {
  color: #fff;
  font-weight: 600;
}

/* Feature Cards */
.feature-card {
  background: #0a0a0a;
  border: 1px solid #141414;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.feature-card:hover {
  border-color: #333;
  transform: translateY(-4px);
}

.feature-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid #141414;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
  font-family: 'Space Grotesk', sans-serif;
}

.feature-desc {
  font-size: 0.8125rem;
  color: #888;
  line-height: 1.5;
}

/* Steps */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-item {
  display: flex;
  gap: 16px;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
}

.step-title { font-size: 0.9375rem; font-weight: 600; color: #ffffff; margin-bottom: 4px; }
.step-desc { font-size: 0.8125rem; color: #888; }

/* Terminal Preview */
.terminal-preview {
  background: #0a0a0a;
  border: 1px solid #141414;
  border-radius: 12px;
  padding: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #888;
  line-height: 1.7;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot-red { background: #ff4444; }
.terminal-dot-yellow { background: #ff8800; }
.terminal-dot-green { background: #ffffff; }

/* CTA Section */
.cta-section {
  padding: 80px 24px;
  text-align: center;
  border-top: 1px solid #141414;
}

.cta-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  font-family: 'Space Grotesk', sans-serif;
}

.cta-subtitle { font-size: 1rem; color: #888; margin-bottom: 32px; }

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  border-top: 1px solid #141414;
  padding: 48px 24px 32px;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand-img { height: 24px; width: auto; margin-bottom: 16px; }
.footer-brand-desc { font-size: 0.8125rem; color: #555; line-height: 1.5; }

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-col-links { display: flex; flex-direction: column; gap: 8px; }
.footer-link { font-size: 0.8125rem; color: #555; transition: color 0.15s; }
.footer-link:hover { color: #ffffff; }

.footer-bottom {
  max-width: 1100px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid #141414;
  text-align: center;
}
.footer-copy { font-size: 0.75rem; color: #444; }

/* Premium public home */
.landing-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 78% 0%, rgba(255,255,255,0.10), transparent 24%),
    radial-gradient(circle at 14% 24%, rgba(255,255,255,0.045), transparent 22%),
    linear-gradient(180deg, #050505 0%, #000 42%, #050505 100%);
}

.landing-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 15%, #000 0%, transparent 65%);
  pointer-events: none;
}

.home-hero,
.home-section,
.home-final-cta {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.home-hero {
  min-height: min(880px, 100vh);
  display: flex;
  align-items: center;
  padding-top: 92px;
  padding-bottom: 56px;
  position: relative;
  overflow: hidden;
}

.home-hero-motion {
  position: absolute;
  inset: 56px 0 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.home-hero-motion::before {
  content: "";
  position: absolute;
  inset: 0 -80px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px;
  mask-image: radial-gradient(circle at 48% 42%, #000 0%, transparent 64%);
  animation: heroThreads 16s linear infinite alternate;
  opacity: 0.55;
}

.home-hero-inner {
  position: relative;
  z-index: 1;
}

.motion-beam {
  position: absolute;
  width: 82vw;
  height: 170px;
  left: 8%;
  top: 24%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.02) 12%, rgba(255,255,255,0.13) 48%, rgba(255,255,255,0.03) 74%, transparent 100%);
  filter: blur(18px);
  mix-blend-mode: screen;
}

.motion-beam-a {
  animation: heroBeamDrift 14s ease-in-out infinite alternate;
}

.motion-beam-b {
  top: 58%;
  left: -18%;
  width: 110vw;
  height: 130px;
  opacity: 0.14;
  animation: heroBeamDriftAlt 18s ease-in-out infinite alternate;
}

.motion-noise {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 18% 28%, rgba(255,255,255,0.08), transparent 18%),
    radial-gradient(circle at 74% 20%, rgba(255,255,255,0.06), transparent 17%),
    radial-gradient(circle at 58% 80%, rgba(255,255,255,0.045), transparent 22%);
  filter: blur(42px);
  animation: heroNoiseShift 10s ease-in-out infinite;
}

.home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.76fr);
  gap: clamp(40px, 5vw, 84px);
  align-items: center;
  width: 100%;
}

.home-hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 720px;
}

.home-hero-overline,
.home-section-overline {
  color: #9e9e9e;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  margin-bottom: 19px;
  text-transform: uppercase;
}

.home-eyebrow {
  color: #a9a9a9;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.home-title {
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 4.45vw, 4.8rem);
  font-weight: 700;
  line-height: 1;
  max-width: 720px;
  margin-bottom: 28px;
  background: linear-gradient(100deg, #ffffff 0%, #ffffff 34%, #9c9c9c 47%, #ffffff 58%, #ffffff 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleSheen 9s ease-in-out infinite;
  overflow-wrap: normal;
}

.home-title span { display: block; }

.home-subtitle {
  color: #9a9a9a;
  font-size: 1.12rem;
  line-height: 1.65;
  max-width: 570px;
  margin-bottom: 34px;
}

.home-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.home-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 600px;
  margin-top: 38px;
  border-top: 1px solid rgba(255,255,255,0.16);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.home-hero-stats div {
  min-height: 78px;
  padding: 15px 18px 15px 0;
  background: transparent;
}

.home-hero-stats div + div {
  border-left: 1px solid rgba(255,255,255,0.10);
  padding-left: 18px;
}

.home-hero-stats strong {
  display: block;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.home-hero-stats span {
  color: #8d8d8d;
  font-size: 0.75rem;
}

.home-proof-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.home-proof-row span {
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
  color: #9a9a9a;
  font-size: 0.78rem;
}

.home-hero-visual {
  position: relative;
  z-index: 1;
  min-height: 610px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  border: 0;
  overflow: visible;
  box-shadow: none;
}

@media (max-width: 1180px) {
  .home-title {
    font-size: clamp(3rem, 4.2vw, 4.5rem);
    max-width: 620px;
  }

  .home-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.72fr);
  }
}

.home-hero-visual::before {
  content: "";
  position: absolute;
  width: 125%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 90deg, transparent 0 18%, rgba(255,255,255,0.16) 24%, transparent 32% 62%, rgba(255,255,255,0.08) 70%, transparent 78% 100%);
  filter: blur(24px);
  opacity: 0.28;
  animation: visualHaloSpin 22s linear infinite;
}

.home-hero-visual::after {
  display: none;
}

.home-phone-img {
  width: 100%;
  display: block;
  filter: contrast(1.03) drop-shadow(0 34px 70px rgba(0,0,0,0.80));
  position: relative;
  z-index: 2;
}

.home-device-frame {
  position: relative;
  width: min(448px, 100%);
  padding: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.035) 20%, rgba(255,255,255,0.10) 84%, rgba(255,255,255,0.24));
  box-shadow: 0 40px 86px rgba(0,0,0,0.68), inset 0 0 0 1px rgba(0,0,0,0.7);
  isolation: isolate;
  animation: deviceFloat 8s ease-in-out infinite;
}

.home-device-frame::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 45%, rgba(255,255,255,0.17), transparent 58%);
  filter: blur(32px);
  animation: deviceFrameGlow 7s ease-in-out infinite;
}

.home-device-line {
  position: absolute;
  z-index: 3;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.86));
}

.home-device-line-top { top: 28px; right: -48px; }
.home-device-line-bottom { bottom: 30px; left: -48px; transform: rotate(180deg); }

.home-marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.10);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.018);
}

.home-marquee::before,
.home-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(30px, 8vw, 140px);
  z-index: 1;
  pointer-events: none;
}

.home-marquee::before { left: 0; background: linear-gradient(90deg, #030303, transparent); }
.home-marquee::after { right: 0; background: linear-gradient(270deg, #030303, transparent); }

.home-marquee-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 17px 0;
  color: #8c8c8c;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  white-space: nowrap;
  animation: marqueeTravel 32s linear infinite;
}

.home-marquee-track i {
  width: 4px;
  height: 4px;
  display: block;
  border-radius: 50%;
  background: #f2f2f2;
}

.home-hero-card {
  position: absolute;
  width: 178px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10,10,10,0.76);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.45);
}

.home-hero-card strong {
  display: block;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.home-hero-card span {
  color: #8d8d8d;
  font-size: 0.76rem;
}

.home-hero-card-top {
  top: 16%;
  right: 0;
}

.home-hero-card-bottom {
  bottom: 16%;
  left: 0;
}

.home-section {
  padding-top: 108px;
  padding-bottom: 108px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.home-section-grid,
.home-plaque-wrap,
.home-fees-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 72px;
  align-items: center;
}

.home-section-title {
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 3.75vw, 4.1rem);
  line-height: 1.02;
  max-width: 720px;
  margin-bottom: 22px;
}

.home-section-copy {
  color: #9a9a9a;
  font-size: 1.04rem;
  line-height: 1.72;
  max-width: 620px;
}

.home-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.home-ops-list {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.home-ops-list div {
  display: grid;
  grid-template-columns: 46px 1fr;
  column-gap: 16px;
  row-gap: 3px;
  padding: 18px 0;
  border-radius: 0;
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.10);
  background: transparent;
}

.home-ops-list span {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  color: #e2e2e2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
}

.home-ops-list strong {
  color: #fff;
}

.home-ops-list p {
  color: #8d8d8d;
  font-size: 0.84rem;
  line-height: 1.55;
}

.home-metric-grid div,
.home-feature-grid article,
.home-fee-card,
.home-terminal-card {
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
  position: relative;
  overflow: hidden;
}

.home-metric-grid div::before,
.home-feature-grid article::before,
.home-fee-card::before,
.home-terminal-card::before,
.home-wait-card::before,
.home-wait-grid article::before,
.home-faq-grid article::before {
  content: "";
  position: absolute;
  inset: -35%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.18), transparent 34%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.home-metric-grid div:hover::before,
.home-feature-grid article:hover::before,
.home-fee-card:hover::before,
.home-terminal-card:hover::before,
.home-wait-card:hover::before,
.home-wait-grid article:hover::before,
.home-faq-grid article:hover::before {
  opacity: 1;
  animation: cardSpotlightPulse 4s ease-in-out infinite;
}

.home-metric-grid div > *,
.home-feature-grid article > *,
.home-fee-card > *,
.home-terminal-card > *,
.home-wait-card > *,
.home-wait-grid article > *,
.home-faq-grid article > * {
  position: relative;
  z-index: 1;
}

.home-metric-grid div {
  padding: 20px;
}

.home-metric-grid strong {
  display: block;
  color: #fff;
  margin-bottom: 5px;
}

.home-metric-grid span {
  color: #8b8b8b;
  font-size: 0.8rem;
}

.home-terminal-card {
  padding: 30px;
  color: #d4d4d4;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.82;
  background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.018));
}

.home-terminal-card .indent { padding-left: 24px; }
.home-terminal-card .gap-top { margin-top: 18px; }
.muted-line, .code-muted { color: #666; }
.code-key, .code-value { color: #fff; }
.code-string { color: #b8b8b8; }

.home-plaque-section {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.home-wait-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.home-wait-card,
.home-wait-grid article {
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  background: rgba(255,255,255,0.025);
  position: relative;
  overflow: hidden;
}

.home-wait-card {
  padding: 34px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-wait-card h2 {
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: 0.98;
  margin-bottom: 22px;
}

.home-wait-card .home-section-overline { margin-bottom: 26px; }

.home-wait-card p {
  color: #9a9a9a;
  font-size: 1.03rem;
  line-height: 1.7;
  max-width: 600px;
}

.home-wait-grid {
  display: grid;
  gap: 12px;
}

.home-wait-grid article {
  padding: 24px;
}

.home-wait-grid strong {
  display: block;
  color: #fff;
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.home-wait-grid span {
  color: #8d8d8d;
  font-size: 0.9rem;
  line-height: 1.58;
}

.home-plaque-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.home-plaque-art {
  position: relative;
  width: min(500px, 100%);
  justify-self: center;
  perspective: 1200px;
}

.home-plaque-art::before {
  content: "";
  position: absolute;
  inset: 10% -8% 4%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,0.10), transparent 58%);
  filter: blur(34px);
  opacity: 0.82;
  pointer-events: none;
}

.award-plaque {
  position: relative;
  width: 100%;
  aspect-ratio: 0.68;
  padding: clamp(18px, 4.4vw, 34px);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.18), transparent 13% 84%, rgba(255,255,255,0.13)),
    linear-gradient(155deg, #353535 0%, #0b0b0b 17%, #252525 48%, #080808 73%, #4a4a4a 100%);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 3px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.12),
    inset 20px 20px 34px rgba(255,255,255,0.045),
    inset -28px -28px 48px rgba(0,0,0,0.76),
    0 42px 86px rgba(0,0,0,0.70);
  transform: rotateY(-3deg) rotateX(1deg);
  z-index: 1;
}

.award-plaque::before {
  content: "";
  position: absolute;
  inset: clamp(12px, 3.2vw, 22px);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.55),
    0 0 28px rgba(255,255,255,0.04);
  border-radius: 2px;
  pointer-events: none;
}

.award-plaque::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -22px;
  height: 30px;
  background: linear-gradient(180deg, #2c2c2c, #090909 72%, #222);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 22px 42px rgba(0,0,0,0.62);
  transform: perspective(280px) rotateX(15deg);
  z-index: -1;
}

.award-plaque-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: clamp(28px, 5vw, 46px) clamp(16px, 3vw, 28px);
  background:
    linear-gradient(124deg, rgba(255,255,255,0.13) 0 12%, transparent 12% 36%, rgba(255,255,255,0.07) 36% 48%, transparent 48% 100%),
    radial-gradient(circle at 77% 56%, rgba(255,255,255,0.12), transparent 32%),
    linear-gradient(180deg, #111, #050505 58%, #090909);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.72),
    inset 0 30px 90px rgba(255,255,255,0.055);
}

.award-plaque-lines {
  position: absolute;
  inset: clamp(22px, 5vw, 42px);
  opacity: 0.62;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.62), transparent 27%) top left / 46% 1px no-repeat,
    linear-gradient(180deg, rgba(255,255,255,0.50), transparent 34%) top left / 1px 38% no-repeat,
    linear-gradient(270deg, rgba(255,255,255,0.62), transparent 27%) bottom right / 46% 1px no-repeat,
    linear-gradient(0deg, rgba(255,255,255,0.50), transparent 34%) bottom right / 1px 38% no-repeat;
  animation: plaqueLineSweep 7s ease-in-out infinite;
}

.award-plaque-mark {
  width: clamp(62px, 9vw, 92px);
  height: clamp(62px, 9vw, 92px);
  object-fit: contain;
  margin-bottom: clamp(24px, 5vw, 42px);
  filter: drop-shadow(0 14px 22px rgba(0,0,0,0.72));
}

.award-plaque strong {
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.8rem, 5.2vw, 4.95rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-shadow: 0 10px 30px rgba(0,0,0,0.55);
  white-space: nowrap;
  max-width: 100%;
}

.award-plaque span,
.award-plaque em {
  color: #d9d9d9;
  font-style: normal;
  font-size: clamp(0.72rem, 1.15vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.award-plaque span { margin-top: clamp(16px, 3.2vw, 24px); }
.award-plaque em { margin-top: 9px; }

.award-plaque i {
  width: 54px;
  height: 2px;
  background: #fff;
  margin: clamp(24px, 4vw, 34px) 0 clamp(20px, 3.4vw, 28px);
  opacity: 0.84;
}

.award-plaque small {
  color: #9b9b9b;
  font-size: clamp(0.68rem, 1vw, 0.82rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  max-width: 300px;
}

.js-scroll-ready .reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 42px, 0);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(.2,.8,.2,1);
}

.js-scroll-ready .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.home-plaque-text blockquote {
  margin: 30px 0;
  padding-left: 22px;
  border-left: 1px solid rgba(255,255,255,0.18);
  color: #cfcfcf;
  line-height: 1.6;
}

.home-section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.10);
  border-left: 1px solid rgba(255,255,255,0.10);
}

.home-feature-grid article {
  padding: 26px;
  min-height: 190px;
  border-radius: 0;
  border-top: 0;
  border-left: 0;
  border-right: 1px solid rgba(255,255,255,0.10);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.018);
}

.home-faq-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

.home-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-faq-grid article {
  min-height: 190px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  position: relative;
  overflow: hidden;
}

.home-faq-grid h3 {
  color: #fff;
  margin-bottom: 10px;
}

.home-faq-grid p {
  color: #8d8d8d;
  font-size: 0.86rem;
  line-height: 1.6;
}

.home-feature-grid h3 {
  color: #fff;
  margin-bottom: 12px;
}

.home-feature-grid p {
  color: #8d8d8d;
  font-size: 0.86rem;
  line-height: 1.58;
}

.home-fee-card {
  padding: 28px;
}

.home-fee-card span {
  color: #8d8d8d;
  font-size: 0.8rem;
}

.home-fee-card strong {
  display: block;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  margin: 14px 0 8px;
}

.home-fee-card p {
  color: #8d8d8d;
  margin-bottom: 24px;
}

.home-final-cta {
  padding-top: 108px;
  padding-bottom: 108px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.home-final-cta h2 {
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1;
  margin-bottom: 18px;
}

.home-final-cta p {
  color: #9a9a9a;
  margin-bottom: 30px;
}

.home-final-cta .home-actions {
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .motion-beam,
  .motion-noise,
  .home-hero-motion::before,
  .home-title,
  .home-hero-visual::before,
  .home-device-frame,
  .home-device-frame::before,
  .home-marquee-track,
  .home-metric-grid div:hover::before,
  .home-feature-grid article:hover::before,
  .home-fee-card:hover::before,
  .home-terminal-card:hover::before,
  .home-wait-card:hover::before,
  .home-wait-grid article:hover::before,
  .home-faq-grid article:hover::before {
    animation: none !important;
  }
}

/* =========================================================== */
/* PIX PAGE                                                    */
/* =========================================================== */
.pix-form-wrapper { max-width: 540px; margin: 0 auto; }

.pix-amount-input {
  width: 100%;
  padding: 14px 12px;
  background: #111;
  border: 1px solid #222;
  border-radius: 8px;
  color: #fff;
  font-size: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  outline: none;
  transition: border-color 0.2s;
}
.pix-amount-input:focus { border-color: #ffffff; }
.pix-amount-input::placeholder { color: #333; }

.pix-result-amount {
  font-size: 1.75rem;
  font-weight: 600;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
}

.pix-result-id { font-family: 'JetBrains Mono', monospace; color: #555; }

.pix-copy-row {
  display: flex;
  gap: 8px;
}
.pix-copy-code {
  flex: 1;
  padding: 10px;
  background: #111;
  border: 1px solid #222;
  border-radius: 8px;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: #888;
  word-break: break-all;
}

.pix-polling-area { text-align: center; padding: 16px 0; }

.pix-success-area { text-align: center; padding: 24px 0; }

.pix-success-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

/* =========================================================== */
/* CHECKOUT PAGE (Public)                                      */
/* =========================================================== */
.checkout-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 48px;
  background: #000000;
}

.checkout-wrapper { width: 100%; max-width: 480px; }

.checkout-amount-display {
  text-align: center;
  margin-bottom: 24px;
  padding: 16px;
  background: #111;
  border: 1px solid #222;
  border-radius: 8px;
}

.checkout-amount-label {
  font-size: 0.6875rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.checkout-amount-value {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
}

.checkout-header {
  border-bottom: 1px solid #141414;
  padding: 12px 24px;
  text-align: center;
}

/* =========================================================== */
/* API DOCS PAGE                                               */
/* =========================================================== */
.api-docs-layout {
  max-width: 980px;
  margin: 0 auto;
}

.api-docs-sidebar {
  position: static;
  margin-bottom: 40px;
  padding: 0;
}

.api-docs-sidebar-title {
  display: none;
}

.api-docs-nav-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  background: rgba(10,10,10,0.78);
  border: 1px solid #141414;
  border-radius: 12px;
}

.api-docs-nav-link {
  font-size: 0.8125rem;
  color: #888;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: all 0.15s;
  display: block;
}
.api-docs-nav-link:hover { color: #fff; background: rgba(255,255,255,0.04); border-color: #222; }

.api-docs-content {
  width: 100%;
  margin: 0 auto;
}

.api-endpoint-card {
  background: #0a0a0a;
  border: 1px solid #141414;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.api-method-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.api-method-post { background: rgba(255,255,255,0.1); color: #fff; }
.api-method-get { background: transparent; border: 1px solid #333; color: #888; }

.api-endpoint-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.api-endpoint-url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: #fff;
}

.api-endpoint-desc { font-size: 0.8125rem; color: #888; margin-bottom: 16px; }

.api-param-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 0.75rem;
}

.api-param-table th {
  text-align: left;
  padding: 6px 8px;
  color: #666;
  font-weight: 500;
  border-bottom: 1px solid #141414;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.api-param-table td {
  padding: 6px 8px;
  color: #888;
}

.api-param-table td:first-child { font-family: 'JetBrains Mono', monospace; font-size: 0.6875rem; }

.api-code-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.api-code-title { font-size: 0.75rem; font-weight: 500; color: #666; margin-bottom: 8px; }

.quickstart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.quickstart-card {
  background: #0a0a0a;
  border: 1px solid #141414;
  border-radius: 12px;
  padding: 22px;
}

.quickstart-step {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid #1f1f1f;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.quickstart-card h3 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 8px;
  font-family: 'Space Grotesk', sans-serif;
}

.quickstart-card p {
  font-size: 0.8rem;
  color: #888;
  line-height: 1.5;
}

/* Docs auth badges */
.auth-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 600;
}

.auth-badge-bearer { background: #ffffff; color: #000000; }
.auth-badge-apikey { background: #0a0a0a; border: 1px solid #333; color: #fff; }
.auth-badge-public { background: transparent; border: 1px solid #333; color: #888; }

/* Rate limit cards */
.rate-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.rate-card {
  background: #111;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.rate-card-value {
  font-size: 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

/* =========================================================== */
/* SETTINGS PAGE                                               */
/* =========================================================== */
.settings-layout { max-width: 620px; margin: 0 auto; }

.settings-avatar {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #0a0a0a;
  border: 1px solid #141414;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.settings-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.settings-name { font-size: 1rem; font-weight: 600; color: #fff; font-family: 'Space Grotesk', sans-serif; }

.settings-form { display: flex; flex-direction: column; gap: 16px; }

.settings-logout-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

/* =========================================================== */
/* API KEYS PAGE                                               */
/* =========================================================== */
.api-keys-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.key-card {
  background: #0a0a0a;
  border: 1px solid #141414;
  border-radius: 8px;
  padding: 20px;
  transition: border-color 0.2s;
}
.key-card:hover { border-color: #222; }

.key-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.key-card-name { font-size: 0.875rem; font-weight: 500; color: #fff; }

.key-card-masked {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #666;
  background: #111;
  padding: 2px 8px;
  border-radius: 4px;
}

.key-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  font-size: 0.6875rem;
  color: #666;
}

.key-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- Generate modal ---- */
.key-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.key-modal-content {
  position: relative;
  background: #0a0a0a;
  border: 1px solid #141414;
  border-radius: 12px;
  max-width: 420px;
  width: 100%;
  padding: 24px;
  animation: fadeInScale 0.25s ease forwards;
}

.key-modal-title { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 4px; }
.key-modal-subtitle { font-size: 0.75rem; color: #888; margin-bottom: 16px; }

.key-modal-input {
  width: 100%;
  padding: 10px 12px;
  background: #111;
  border: 1px solid #222;
  border-radius: 8px;
  color: #fff;
  font-size: 0.8125rem;
  outline: none;
  transition: border-color 0.2s;
}
.key-modal-input:focus { border-color: #fff; }

.key-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.key-result-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.key-result-check-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.key-result-warning {
  background: rgba(255,136,0,0.05);
  border: 1px solid rgba(255,136,0,0.1);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 0.6875rem;
  color: #888;
}

.key-result-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #111;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.key-result-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #fff;
  word-break: break-all;
}

.key-result-copy-btn {
  flex-shrink: 0;
  padding: 4px 10px;
  background: #0a0a0a;
  border: 1px solid #141414;
  border-radius: 6px;
  color: #888;
  cursor: pointer;
  font-size: 0.6875rem;
  transition: all 0.15s;
}
.key-result-copy-btn:hover { border-color: #333; color: #fff; }

/* =========================================================== */
/* BANK APP EXPERIENCE                                         */
/* =========================================================== */
.bank-shell-header {
  background: rgba(5, 7, 8, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(18px);
}

.bank-app-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 40px;
}

.bank-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bank-brand-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: #d8d8d8;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}

.bank-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 22px 0 4px;
}

.bank-hero.compact {
  align-items: center;
  padding-top: 6px;
}

.bank-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bank-kicker {
  color: #d8d8d8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.bank-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.bank-balance-card,
.bank-panel,
.bank-side-panel,
.bank-flow-card {
  background: linear-gradient(180deg, #0d1316 0%, #080b0d 100%);
  border: 1px solid #1b252b;
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(0,0,0,0.28);
}

.bank-balance-card {
  padding: 26px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.bank-balance-card::after {
  content: "";
  position: absolute;
  right: -110px;
  top: -140px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 64%);
  pointer-events: none;
}

.bank-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #8a99a3;
  font-size: 0.78rem;
  font-weight: 600;
}

.bank-live-dot {
  color: #b7f5d4;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
  padding: 4px 9px;
}

.bank-balance-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.45rem;
  font-weight: 700;
  color: #fff;
  margin: 28px 0 8px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.bank-balance-sub {
  color: #8a99a3;
  font-size: 0.84rem;
}

.bank-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 28px;
}

.bank-action-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(148,163,184,0.16);
  color: #d7dee3;
  font-size: 0.8rem;
  font-weight: 700;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.bank-action-btn:hover {
  border-color: rgba(255,255,255,0.34);
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.bank-metric-stack {
  display: grid;
  gap: 18px;
}

.bank-metric-stack .stat-card {
  min-height: 121px;
}

.bank-flow-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
}

.bank-flow-step {
  display: flex;
  gap: 12px;
  padding: 18px;
  background: rgba(255,255,255,0.015);
}

.bank-flow-step span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 8px;
  border: 1px solid rgba(148,163,184,0.18);
  color: #cbd5df;
  font-size: 0.78rem;
  font-weight: 800;
}

.bank-flow-step.is-active span {
  border-color: rgba(255,255,255,0.30);
  background: rgba(255,255,255,0.08);
  color: #ffffff;
}

.bank-flow-step strong {
  display: block;
  color: #fff;
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.bank-flow-step p {
  color: #7e8b94;
  font-size: 0.76rem;
  line-height: 1.45;
}

.bank-api-summary {
  border-color: rgba(255,255,255,0.16);
}

.bank-panel {
  padding: 24px;
}

.bank-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.bank-secure-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  color: #dcdcdc;
  background: rgba(255,255,255,0.05);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.pix-workspace {
  max-width: 980px;
  margin: 0 auto;
}

#pix-form-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

#pix-form-card .bank-panel {
  max-width: 680px;
}

.bank-side-panel {
  padding: 22px;
}

.bank-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #9aa7af;
  font-size: 0.8rem;
  line-height: 1.45;
  padding: 12px 0;
  border-top: 1px solid rgba(148,163,184,0.10);
}

.bank-check-row:first-of-type { border-top: 0; }

.bank-check-row span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  margin-top: 5px;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
  flex: 0 0 auto;
}

.pix-result-panel {
  max-width: 540px;
  margin: 0 auto;
}

.nav-link-active {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  color: #ffffff;
}

.nav-link-inactive:hover {
  background: rgba(255,255,255,0.04);
}

.stat-card {
  background: #0b0f12;
  border: 1px solid #1b2328;
  border-radius: 8px;
}

.input,
.pix-amount-input,
.key-modal-input {
  background: #071012;
  border-color: #1c2a30;
}

.input:focus,
.pix-amount-input:focus,
.key-modal-input:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}

.pix-copy-code {
  background: #071012;
  border-color: #1c2a30;
}

.table th {
  color: #8fa0aa;
  background: rgba(255,255,255,0.012);
}

.table td {
  border-top-color: rgba(148,163,184,0.10);
}

/* =========================================================== */
/* VERIFY EMAIL                                                */
/* =========================================================== */
.verify-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.verify-wrapper {
  width: 100%;
  max-width: 360px;
  text-align: center;
  animation: fadeInUp 0.5s ease forwards;
}

.verify-logo {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  display: inline-block;
}

.verify-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.verify-icon-circle-error {
  border-color: rgba(255,68,68,0.3);
}

.verify-title { font-size: 1.125rem; font-weight: 500; color: #fff; margin-bottom: 4px; }
.verify-message { font-size: 0.8125rem; color: #888; }
.verify-error-msg { font-size: 0.8125rem; color: #ff4444; margin-bottom: 16px; }

/* =========================================================== */
/* MISC / UTILITY                                              */
/* =========================================================== */
.hidden { display: none !important; }
.w-full { width: 100%; }
.relative { position: relative; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.divider { border-top: 1px solid #141414; }
.divider-v { border-left: 1px solid #141414; padding-left: 24px; }

/* =========================================================== */
/* RESPONSIVE                                                  */
/* =========================================================== */
@media (max-width: 1024px) {
  .home-hero-inner,
  .home-section-grid,
  .home-plaque-wrap,
  .home-fees-section,
  .home-wait-section,
  .home-faq-section {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .home-hero {
    min-height: auto;
    padding-top: 118px;
  }

  .home-hero-visual {
    min-height: auto;
  }

  .home-phone-img {
    max-width: none;
  }

  .home-device-frame {
    width: min(390px, 100%);
  }

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

  .home-faq-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bank-overview-grid,
  #pix-form-card {
    grid-template-columns: 1fr;
  }

  .bank-side-panel {
    order: -1;
  }

  .api-docs-layout { grid-template-columns: 1fr; }
  .api-docs-sidebar {
    position: static;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    border-bottom: 1px solid #141414;
    margin-bottom: 24px;
  }
  .api-docs-nav-list { flex-direction: row; gap: 8px; }
  .api-code-grid { grid-template-columns: 1fr; }
  .rate-cards { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .landing-nav-inner {
    padding: 0 14px;
  }

  .landing-nav-links {
    gap: 10px;
  }

  .landing-nav-link:nth-child(-n+4) {
    display: none;
  }

  .landing-nav-cta {
    display: none;
  }

  .home-hero,
  .home-section,
  .home-final-cta,
  .home-plaque-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-hero {
    padding-top: 104px;
    padding-bottom: 56px;
  }

  .home-title {
    font-size: 2.32rem;
    line-height: 1.04;
    max-width: 100%;
  }

  .home-hero-overline,
  .home-section-overline {
    font-size: 0.64rem;
    margin-bottom: 15px;
  }

  .home-hero-copy,
  .home-subtitle {
    min-width: 0;
    width: 100%;
    max-width: 340px;
    overflow-wrap: break-word;
  }

  .home-hero-inner,
  .home-actions {
    width: 100%;
    max-width: 340px;
    min-width: 0;
  }

  .home-subtitle,
  .home-section-copy {
    font-size: 0.98rem;
  }

  .home-actions .btn {
    width: 100%;
    max-width: 340px;
  }

  .home-hero-card {
    display: none;
  }

  .home-metric-grid,
  .home-feature-grid,
  .home-faq-grid,
  .home-hero-stats {
    grid-template-columns: 1fr;
  }

  .home-hero-stats {
    max-width: 340px;
  }

  .home-hero-stats div {
    padding: 14px 16px;
  }

  .home-hero-stats div + div {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,0.10);
  }

  .home-hero-visual {
    min-height: 430px;
  }

  .home-phone-img {
    width: 100%;
  }

  .home-device-frame {
    width: min(330px, 100%);
    padding: 7px;
  }

  .home-device-line { display: none; }

  .home-marquee-track {
    gap: 20px;
    padding: 15px 0;
    font-size: 0.62rem;
  }

  .home-ops-list div {
    grid-template-columns: 38px 1fr;
    padding: 16px;
  }

  .home-wait-card {
    padding: 24px;
    min-height: auto;
  }

  .home-wait-card h2 {
    font-size: 2.5rem;
  }

  .home-section,
  .home-final-cta {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .home-terminal-card {
    padding: 18px;
    font-size: 0.72rem;
    overflow-x: auto;
  }

  .home-plaque-art {
    width: min(340px, 100%);
  }

  .award-plaque {
    padding: 20px;
    transform: none;
  }

  .award-plaque-inner {
    padding: 28px 16px;
  }

  .award-plaque-mark {
    width: 58px;
    height: 58px;
    margin-bottom: 24px;
  }

  .award-plaque strong {
    font-size: 3rem;
  }

  .award-plaque span,
  .award-plaque em {
    font-size: 0.7rem;
  }

  .award-plaque small {
    font-size: 0.62rem;
    max-width: 210px;
  }

  .bank-app-main {
    padding: 18px 14px 32px;
  }

  .bank-brand-status {
    display: none;
  }

  .bank-hero,
  .bank-hero.compact {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .bank-hero-actions,
  .bank-hero-actions .btn {
    width: 100%;
  }

  .bank-balance-card,
  .bank-panel,
  .bank-side-panel {
    padding: 18px;
  }

  .bank-balance-value {
    font-size: 2rem;
  }

  .bank-quick-actions {
    grid-template-columns: 1fr;
  }

  .bank-flow-card {
    grid-template-columns: 1fr;
  }

  .bank-panel-header {
    flex-direction: column;
  }

  .pix-copy-row {
    flex-direction: column;
  }

  .pix-copy-row .btn {
    width: 100%;
  }

  .grid-4, .stat-cards-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }

  .hero-title { font-size: 2.5rem; }
  .hero-section { padding: 120px 24px 48px; }
  .section { padding: 64px 24px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-kpis { justify-content: flex-start; margin-top: -12px; }
  .hero-kpis span { width: 100%; justify-content: center; }
  .quickstart-grid { grid-template-columns: 1fr; }

  .page-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .page-header > .flex,
  .page-header > .flex-between,
  .page-header > div:last-child { width: 100%; }
  .page-header .btn { width: 100%; }
  .nav-links { display: none; }

  .card { padding: 24px; }
  .card-padded { padding: 24px; }
  .card-no-pad { padding: 0; }

  .table { min-width: 0; }
  .card-no-pad > div[style*="overflow-x:auto"] {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #dash-tx-table th:nth-child(5),
  #dash-tx-table td:nth-child(5),
  #tx-table th:nth-child(2),
  #tx-table td:nth-child(2) {
    display: none;
  }

  #dash-tx-table th,
  #dash-tx-table td,
  #tx-table th,
  #tx-table td {
    padding-left: 12px;
    padding-right: 12px;
  }

  #dash-tx-table .status-badge,
  #tx-table .status-badge {
    font-size: 0.66rem;
    padding: 3px 8px;
  }

  #dash-tx-table th:nth-child(3),
  #dash-tx-table td:nth-child(3),
  #tx-table th:nth-child(4),
  #tx-table td:nth-child(4) {
    text-align: right;
  }

  .filter-tabs {
    gap: 16px;
    padding-bottom: 2px;
  }

  .filter-tab-btn { font-size: 0.78rem; }

  .filter-tab-btn,
  .tab-btn {
    flex: 0 0 auto;
  }

  .pix-form-wrapper,
  .checkout-wrapper,
  .settings-layout {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .auth-page {
    align-items: flex-start;
    padding: 72px 14px 28px;
  }

  .auth-logo-area {
    margin-bottom: 28px;
  }

  .auth-card {
    padding: 24px 18px;
  }

  .auth-card .btn,
  .auth-card input {
    width: 100%;
    min-width: 0;
  }

  .toast-item {
    max-width: calc(100vw - 28px);
  }

  .btn { min-height: 48px; }
  .table th,
  .table td {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Strict black theme overrides for the authenticated bank UI. */
.bank-shell-header .bank-brand-status,
.bank-shell-header .nav-link-active,
.bank-hero .bank-kicker,
.bank-balance-card .bank-live-dot,
.bank-flow-card .bank-flow-step.is-active span,
.bank-panel .bank-secure-pill {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.18) !important;
  color: #f5f5f5 !important;
}

.bank-hero .bank-kicker {
  background: transparent !important;
  border: 0 !important;
  color: #b8b8b8 !important;
}

.bank-balance-card::after {
  background: radial-gradient(circle, rgba(255,255,255,0.07), transparent 64%) !important;
}

.bank-check-row span {
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.08) !important;
}

.bank-metric-stack .stat-icon-box,
.bank-metric-stack .stat-icon-box svg,
.bank-metric-stack .stat-icon-box svg * {
  color: #d8d8d8 !important;
  stroke: #d8d8d8 !important;
}

.bank-flow-card .bank-flow-step.is-active span {
  box-shadow: none !important;
}
