/* ===== KBOR Brand Design System ===== */
:root {
  /* Brand Colors */
  --yellow-primary: #FFD700;
  --yellow-dark: #FFA500;
  --navy-dark: #0A1628;
  --green-primary: #10B981;
  --cyan: #06B6D4;
  --red: #EF4444;
  --purple: #A855F7;
  --dark-grey: #1F2937;
  --medium-grey: #374151;
  --light-grey: #9CA3AF;
  --white: #FFF;
  
  /* Layout */
  --nav-height: 88px;
  --border: rgba(255, 215, 0, 0.2);
}

/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--navy-dark);
  background-image: url('https://cdn.kotaborneo.my/background.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 22, 40, 0.85);
  z-index: -1;
  pointer-events: none;
}

.pixel-font {
  font-family: 'Press Start 2P', cursive;
  line-height: 1.8;
  letter-spacing: 1px;
}

.glow-text {
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  }
  50% {
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.9), 0 0 60px rgba(255, 215, 0, 0.5);
  }
}

body.no-scroll {
  overflow: hidden;
  height: 100vh;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 32px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px 16px;
  display: flex;
  justify-content: center;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.nav-container {
  position: relative;
  width: min(1120px, calc(100% - 56px));
  height: 75px;
  margin: 0 auto;
  padding: 18px 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  background: linear-gradient(120deg, rgba(9, 16, 32, 0.95), rgba(6, 10, 22, 0.9));
  border-radius: 999px;
  border: 2px solid rgba(255, 215, 0, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(255, 215, 0, 0.35);
  transition: box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.nav-container::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 16px rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.nav-container::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 35px rgba(255, 215, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.nav:hover .nav-container::after,
.nav.nav-scrolled .nav-container::after {
  opacity: 1;
}

.nav.nav-scrolled .nav-container {
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.98), rgba(12, 22, 34, 0.95));
  border-color: rgba(255, 215, 0, 0.25);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5), 0 0 18px rgba(255, 215, 0, 0.12);
}

.nav-logo {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 3;
}

.nav-logo-image {
  height: clamp(92px, 16vw, 150px);
  width: auto;
  display: block;
  filter: drop-shadow(0 0 28px rgba(255, 215, 0, 0.7));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.nav-logo:hover {
  transform: translateY(-54%) scale(1.02);
}

.nav-logo:hover .nav-logo-image {
  transform: scale(1.04);
}

.nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-right: 260px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-links-main {
  padding-left: 24px;
}

.nav-link {
  color: var(--yellow-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  transition: color 0.25s ease, transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nav-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 215, 0, 0.1);
}

.nav-link.active {
  background: rgba(255, 215, 0, 0.22);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.45), inset 0 0 10px rgba(255, 215, 0, 0.25);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  margin-right: 8px;
}

.nav-discord {
  padding: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-discord .discord-icon {
  width: 50px;
  height: 50px;
  display: block;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.55));
  transition: transform 0.25s ease;
}

.nav-discord:hover .discord-icon {
  transform: scale(1.05);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.25);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.nav-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4), 0 0 12px rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.35);
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--yellow-primary);
  border-radius: 6px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

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

@media (max-width: 1200px) {
  .nav-container {
    width: calc(100% - 32px);
  }

  .nav-links {
    margin-right: 0;
  }
}

@media (max-width: 1024px) {
  .nav {
    top: 18px;
    padding: 14px 12px;
  }

  .nav-container {
    height: auto;
    padding: 18px 32px;
    gap: 18px;
    justify-content: space-between;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 6px);
    right: 16px;
    width: min(260px, 92vw);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 12px 16px;
    background: rgba(10, 20, 36, 0.97);
    border-radius: 16px;
    box-shadow: 0 28px 50px rgba(0, 0, 0, 0.45);
    display: none;
  }

  .nav-links.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links:not(.active) {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
  }

  .nav-link {
    width: 100%;
    text-align: left;
  }

  .nav-actions {
    gap: 14px;
    order: 1;
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin-left: auto;
    margin-right: 0;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  .nav {
    top: 16px;
    padding: 10px 12px;
  }

  .nav-container {
    padding: 14px 18px;
    gap: 18px;
  }

  .nav-actions {
    gap: 12px;
  }

  .nav-links {
    right: 12px;
    padding: 12px 14px;
  }

  .nav-link {
    font-size: 0.95rem;
    padding: 10px 14px;
  }

  .nav-logo-image {
    height: clamp(70px, 22vw, 95px);
  }

  .nav-toggle {
    padding: 8px;
  }
}

@media (max-width: 600px) {
  .nav {
    top: 12px;
    padding: 8px 10px;
  }

  .nav-container {
    padding: 12px 16px;
    border-radius: 32px;
    gap: 12px;
  }

  .nav-actions {
    gap: 10px;
  }

  .nav-links {
    width: min(240px, 92vw);
  }

  .nav-logo-image {
    height: clamp(50px, 28vw, 75px);
  }
}

/* ===== Layout ===== */
.layout {
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 60px);
}

.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* ===== Sections ===== */
.section {
  margin-bottom: 60px;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--yellow-primary);
  margin-bottom: 30px;
  text-align: center;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--yellow-primary);
  margin-bottom: 20px;
}

.section-heading {
  text-align: center;
  margin-bottom: 48px;
  max-width: 760px;
  margin-inline: auto;
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--cyan);
  margin-bottom: 12px;
}

.section-desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  margin-top: 16px;
}

.tier-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow-primary);
  background: rgba(255, 215, 0, 0.08);
}

.tier-card-meta {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
}

.spawner-cards .card,
.essentials-cards .card {
  gap: 20px;
}

.spawner-lines {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spawner-line {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 7, 14, 0.5);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.mob-card-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 4px;
}

.mob-card-name {
  font-size: 1.1rem;
}

.spawner-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}

.spawner-btn {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 16px;
  min-width: 140px;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.85rem;
  border-radius: 12px;
}

.spawner-btn-quantity {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.spawner-btn-price {
  color: var(--yellow-primary);
  font-weight: 600;
}

.chip-coming-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
}

.chip-button.disabled,
.essential-item.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.essential-meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .mob-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .mob-card-variants,
  .essential-item-meta {
    width: 100%;
  }

  .essential-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .essential-item {
    grid-template-columns: 1fr;
  }

  .essential-item-meta {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (max-width: 410px) {
  .spawner-cards .card:nth-child(-n + 2) .spawner-variants {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    padding: 0 8px;
  }

  .spawner-cards .card:nth-child(-n + 2) .spawner-btn {
    min-width: 0;
    width: 100%;
    padding: 8px 10px;
    font-size: 0.78rem;
    border-radius: 10px;
  }
}

@media (min-width: 769px) {
  .spawner-cards .card:nth-child(-n + 2) .spawner-variants {
    padding-left: 16px;
  }
}

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--yellow-primary);
  margin-bottom: 40px;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

/* ===== Cards ===== */
.cards, .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.cards {
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 40px 30px;
  transition: all 0.4s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--yellow-primary);
  box-shadow: 0 15px 50px rgba(255, 215, 0, 0.3);
}

.rank-cards .card:nth-child(1):hover {
  border-color: #22c55e;
  box-shadow: 0 15px 50px rgba(34, 197, 94, 0.35);
}

.rank-cards .card:nth-child(2):hover {
  border-color: #fbbf24;
  box-shadow: 0 15px 50px rgba(251, 191, 36, 0.35);
}

.rank-cards .card:nth-child(3):hover {
  border-color: #fb923c;
  box-shadow: 0 15px 50px rgba(251, 146, 60, 0.35);
}

.rank-cards .card:nth-child(4):hover {
  border-color: #5eead4;
  box-shadow: 0 15px 50px rgba(94, 234, 212, 0.35);
}

.rank-cards .card:nth-child(6):hover {
  border-color: #c084fc;
  box-shadow: 0 15px 50px rgba(192, 132, 252, 0.35);
}

.card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.card.disabled:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.card-header {
  text-align: center;
  margin-bottom: 20px;
}

.card-header h2 {
  font-size: 1.5rem;
  color: var(--yellow-primary);
  margin-bottom: 10px;
}

.price {
  font-size: 1.2rem;
  color: var(--light-grey);
  margin-top: 10px;
}

.card-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.rank-cards .card:nth-child(1) .btn {
  border-color: rgba(34, 197, 94, 0.35);
}

.rank-cards .card:nth-child(1) .btn:hover:not(:disabled) {
  border-color: #22c55e;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: var(--white);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.35);
}

.rank-cards .card:nth-child(2) .btn {
  border-color: rgba(251, 191, 36, 0.35);
}

.rank-cards .card:nth-child(2) .btn:hover:not(:disabled) {
  border-color: #fbbf24;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: var(--navy-dark);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.35);
}

.rank-cards .card:nth-child(3) .btn {
  border-color: rgba(251, 146, 60, 0.35);
}

.rank-cards .card:nth-child(3) .btn:hover:not(:disabled) {
  border-color: #fb923c;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: var(--white);
  box-shadow: 0 8px 25px rgba(251, 146, 60, 0.35);
}

.rank-cards .card:nth-child(4) .btn {
  border-color: rgba(94, 234, 212, 0.35);
}

.rank-cards .card:nth-child(4) .btn:hover:not(:disabled) {
  border-color: #5eead4;
  background: linear-gradient(135deg, #5eead4, #22d3ee);
  color: var(--navy-dark);
  box-shadow: 0 8px 25px rgba(94, 234, 212, 0.35);
}

.rank-cards .card:nth-child(6) .btn {
  border-color: rgba(192, 132, 252, 0.35);
}

.rank-cards .card:nth-child(6) .btn:hover:not(:disabled) {
  border-color: #c084fc;
  background: linear-gradient(135deg, #c084fc, #a855f7);
  color: var(--white);
  box-shadow: 0 8px 25px rgba(192, 132, 252, 0.35);
}

.spawner-cards .card:nth-child(1) .btn {
  border-color: rgba(56, 189, 248, 0.35);
}

.spawner-cards .card:nth-child(1) .btn:hover:not(:disabled) {
  border-color: #38bdf8;
}

.spawner-cards .card:nth-child(2) .btn {
  border-color: rgba(244, 114, 182, 0.35);
}

.spawner-cards .card:nth-child(2) .btn:hover:not(:disabled) {
  border-color: #f472b6;
}

.spawner-cards .card:nth-child(1):hover {
  border-color: #38bdf8;
  box-shadow: 0 15px 50px rgba(56, 189, 248, 0.35);
}

.spawner-cards .card:nth-child(2):hover {
  border-color: #f472b6;
  box-shadow: 0 15px 50px rgba(244, 114, 182, 0.35);
}

.essentials-cards .card:nth-child(1) .essential-btn {
  border-radius: 999px;
  border-color: rgba(56, 189, 248, 0.35);
}

.essentials-cards .card:nth-child(1) .essential-btn:hover:not(:disabled) {
  border-color: #38bdf8;
  color: #38bdf8;
}

.essentials-cards .card:nth-child(2) .essential-btn {
  border-radius: 999px;
  border-color: rgba(244, 114, 182, 0.35);
}

.essentials-cards .card:nth-child(2) .essential-btn:hover:not(:disabled) {
  border-color: #f472b6;
  color: #f472b6;
}

.essentials-cards .card:nth-child(1):hover {
  border-color: #38bdf8;
  box-shadow: 0 15px 50px rgba(56, 189, 248, 0.35);
}

.essentials-cards .card:nth-child(2):hover {
  border-color: #f472b6;
  box-shadow: 0 15px 50px rgba(244, 114, 182, 0.35);
}

.price-emphasis {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--yellow-primary);
}

.price-footnote {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
}

/* ===== Perks List ===== */
.perks {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  flex: 1;
}

.perks li {
  padding: 10px 0;
  color: var(--light-grey);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.perks li:last-child {
  border-bottom: none;
}

/* ===== Rows (for spawners) ===== */
.subsection {
  margin-top: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 12px;
}

.subsection h2 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.rows {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 215, 0, 0.3);
}

.row-title {
  font-weight: 600;
  color: var(--white);
  font-size: 1rem;
}

.row-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--white);
  box-shadow: none;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  background: transparent;
  box-shadow: none;
}

.card .btn {
  display: flex;
  width: fit-content;
  align-self: flex-start;
}

.rank-card .btn,
.card.rank-card .btn {
  align-self: center;
  margin-inline: auto;
  border-radius: 999px;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.pill-btn {
  border-radius: 999px;
  padding-inline: 28px;
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-ghost {
  background: transparent;
  border: 2px solid rgba(255, 215, 0, 0.5);
  color: var(--yellow-primary);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--yellow-primary);
}

/* ===== Grid for essentials ===== */
.grid-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.grid-subtitle {
  font-size: 0.85rem;
  color: var(--light-grey);
}

/* ===== Footer ===== */
.footer {
  background: rgba(10, 22, 40, 0.95);
  border-top: 2px solid rgba(255, 215, 0, 0.3);
  padding: 40px 20px 20px;
  margin-top: 80px;
  text-align: center;
}

.footer div {
  color: var(--light-grey);
  font-size: 0.9rem;
  max-width: 800px;
  margin: 0 auto;
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal.hidden {
  display: none;
  opacity: 0;
}

.modal-card {
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.98), rgba(15, 30, 50, 0.98));
  border: 2px solid rgba(255, 215, 0, 0.5);
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 50px rgba(255, 215, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

.glass-card {
  background: rgba(3, 14, 40, 0.5);
  backdrop-filter: blur(25px);
  border: 2px solid rgba(94, 234, 212, 0.6);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(94, 234, 212, 0.35);
  color: #e6fbff;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  border-bottom: 1px solid rgba(4, 83, 116, 0.2);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--yellow-primary);
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--light-grey);
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.modal-body {
  padding: 30px;
}

.muted {
  color: rgba(3, 24, 34, 0.7);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.modal-product {
  color: var(--yellow-primary);
}

.label {
  display: block;
  font-weight: 600;
  color: var(--yellow-primary);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 215, 0, 0.4);
  border-radius: 8px;
  color: #031822;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

.pill-input {
  border-radius: 999px;
  padding: 16px 24px;
}

.input:focus {
  outline: none;
  border-color: var(--yellow-primary);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.25);
}

.input::placeholder {
  color: rgba(3, 24, 34, 0.5);
  opacity: 1;
}

.error {
  color: var(--red);
  font-size: 0.9rem;
  margin-top: 12px;
  padding: 10px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
}

.error.hidden {
  display: none;
}

.modal-actions {
  display: flex;
  gap: 12px;
  padding: 20px 30px;
  border-top: 1px solid rgba(4, 83, 116, 0.2);
}

.modal-actions .btn {
  flex: 1;
}

/* ===== Pay Page ===== */
.pay-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.pay-warning {
  text-align: center;
  font-size: 0.9rem;
  color: #ff0000;
  margin: -10px auto 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: #000;
  display: block;
  padding: 10px 16px;
  border-radius: 8px;
}

.link {
  display: inline-block;
  color: var(--yellow-primary);
  text-decoration: none;
  margin-bottom: 20px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.link:hover {
  color: var(--yellow-dark);
  transform: translateX(-4px);
}

.panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 16px;
  padding: 30px;
  margin: 30px 0;
}

.panel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--white);
  gap: 12px;
  flex-wrap: wrap;
}

.panel-row .muted {
  color: var(--white);
  font-weight: 600;
}

.panel-row:last-child {
  border-bottom: none;
}

.panel-row.hidden {
  display: none;
}

.amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--yellow-primary);
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 215, 0, 0.2);
  border: 1px solid var(--yellow-primary);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--yellow-primary);
  text-transform: uppercase;
}

.panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 16px;
  padding: 30px;
  margin: 30px 0;
}

.pay-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.qr-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 3px solid rgba(255, 215, 0, 0.5);
}

.qr-overlay .muted {
  color: var(--white);
}

.qr-overlay.hidden {
  display: none;
}

.qr-overlay-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--yellow-primary);
  margin-bottom: 8px;
  text-align: center;
}

#qr-overlay-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  margin-top: 4px;
  margin-bottom: 0;
}

.status-text {
  text-align: center;
  padding: 20px;
  font-size: 1.1rem;
  color: var(--light-grey);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .nav-container {
    width: calc(100% - 32px);
  }
}

@media (max-width: 768px) {
  .cards, .grid {
    grid-template-columns: 1fr;
  }
  
  .row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .row-buttons {
    width: 100%;
  }
  
  .row-buttons .btn {
    flex: 1;
  }
}

@media (max-width: 600px) {
  .layout {
    padding-top: 40px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  .card, .panel {
    padding: 25px 20px;
  }
  
  .modal-card {
    margin: 20px;
  }
  
  .modal-header, .modal-body, .modal-actions {
    padding: 20px;
  }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--navy-dark);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--yellow-primary), var(--yellow-dark));
  border-radius: 6px;
}

::selection {
  background: var(--yellow-primary);
  color: var(--navy-dark);
}
.essentials-cards .card:nth-child(1) .essential-btn {
  border-radius: 999px;
}

.essentials-cards .card:nth-child(2) .essential-btn {
  border-radius: 999px;
}
.pill-outline {
  border-color: rgba(255, 215, 0, 0.8);
  color: var(--yellow-primary);
}

.pill-outline:hover:not(:disabled) {
  background: rgba(255, 215, 0, 0.1);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.25);
}
.pay-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.pay-grid .panel,
.pay-grid .qr-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
}

.qr-panel {
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.qr-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.qr-ewallet-note {
  margin-top: 18px;
  padding: 14px 18px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--light-grey);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 215, 0, 0.4);
  border-radius: 10px;
  line-height: 1.45;
}

.qr-ewallet-bank {
  display: inline-block;
  margin-left: 4px;
  color: var(--yellow-primary);
  font-weight: 600;
}

.qr-img {
  width: 90%;
  max-width: 360px;
  aspect-ratio: 470 / 531;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  border: none;
}

@media (max-width: 1024px) {
  .pay-container {
    padding: 30px 16px;
  }

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

  .pay-container .panel {
    margin: 20px 0;
  }

  .qr-panel {
    padding: 24px;
  }

  .status-text {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .pay-container {
    padding: 24px 12px;
  }

  .pay-container .panel {
    padding: 20px 16px;
  }

  .panel-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .panel-row > div {
    width: 100%;
  }

  .panel-row > div:last-child {
    text-align: left;
  }

  .badge {
    align-self: flex-start;
  }

  .qr-panel {
    padding: 18px 16px;
  }

  .qr-wrap {
    padding: 8px 0;
  }

  .qr-img {
    max-width: 320px;
    width: 100%;
  }

  .qr-ewallet-note {
    font-size: 0.8rem;
    padding: 12px 14px;
  }

  .status-text {
    font-size: 0.95rem;
    padding: 16px;
  }
}
