/* 
  PlayPay Game Donation Mini App Stylesheet
  Pixel-perfect dark glassmorphism mobile UI matching screenshots 1:1
*/

:root {
  --bg-main: #070b14;
  --bg-card: #0e1526;
  --bg-card-hover: #141f36;
  --bg-input: #0b1120;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(167, 124, 72, 0.35);
  
  --primary-gold: #cba368;
  --primary-gradient: linear-gradient(135deg, #b88a4d, #dca86e);
  --primary-gradient-glow: 0 4px 18px rgba(184, 138, 77, 0.45);
  
  --accent-blue: #3b82f6;
  --accent-cyan: #22d3ee;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bottom-bar-height: 70px;
}

[data-theme="light"] {
  --bg-main: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-input: #e2e8f0;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(167, 124, 72, 0.25);
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font-family);
  user-select: none;
}

input, textarea, button {
  user-select: auto;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.4;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(var(--bottom-bar-height) + env(safe-area-inset-bottom, 16px) + 16px);
}

/* App Container */
.app-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  background-color: var(--bg-main);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
}

/* Header & Top Bar */
.top-header {
  padding: 14px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-greeting {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 2px;
  background: var(--primary-gradient);
  box-shadow: 0 0 12px rgba(184, 138, 77, 0.4);
}

.user-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: #1e293b;
}

.greeting-text .salom {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.greeting-text .user-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

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

.header-pill-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.header-pill-btn:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.12);
}

/* Page Section & Screen Header */
.screen-header {
  padding: 16px 16px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.screen-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.back-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Balans Card */
.balans-card {
  margin: 8px 16px 14px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #10192d 0%, #0d1424 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.balans-card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(184, 138, 77, 0.15) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.balans-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.balans-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
}

.balans-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.balans-amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 2px;
}

.balans-amount span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}

.topup-btn {
  background: var(--primary-gradient);
  color: #1a0f02;
  border: none;
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--primary-gradient-glow);
  transition: all 0.2s ease;
}

.topup-btn:active {
  transform: scale(0.95);
  filter: brightness(0.9);
}

/* Quick Action Pills */
.quick-actions-row {
  padding: 0 16px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quick-action-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 16px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-action-btn:active {
  background: var(--bg-card-hover);
  transform: scale(0.98);
}

/* Banner Carousel */
.banner-carousel-wrap {
  padding: 0 16px 18px;
  position: relative;
  overflow: hidden;
}

.banner-card {
  width: 100%;
  height: 145px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 22, 0.1) 0%, rgba(7, 11, 22, 0.92) 100%);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.banner-badge {
  align-self: flex-start;
  background: var(--primary-gradient);
  color: #100a02;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.banner-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.banner-subtitle {
  font-size: 11px;
  color: #cbd5e1;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Section Headings */
.section-header-row {
  padding: 8px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.section-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-gold);
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Games Grid */
.games-grid {
  padding: 0 14px 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 8px;
}

@media (max-width: 350px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 6px;
  }
}

.game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.18s ease;
  user-select: none;
}

.game-item:active {
  transform: scale(0.93);
}

.game-thumb-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background-color: #10192d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.game-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(4px);
  color: #fbbf24;
  font-size: 8.5px;
  font-weight: 800;
  padding: 1.5px 5px;
  border-radius: 5px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.game-badge.badge-right {
  left: auto;
  right: 4px;
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
}

.game-name {
  font-size: 11px;
  font-weight: 700;
  color: #f1f5f9;
  text-align: center;
  margin-top: 5px;
  width: 100%;
  line-height: 1.25;
  height: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

/* Category Pills Bar */
.category-pills-wrap {
  display: flex;
  gap: 8px;
  padding: 0 16px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-pills-wrap::-webkit-scrollbar {
  display: none;
}

.category-pill {
  padding: 6px 13px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
}

.category-pill.active {
  background: var(--primary-gradient);
  color: #100a02;
  border-color: transparent;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(184, 138, 77, 0.35);
}

/* Search Bar */
.search-box-wrap {
  padding: 4px 16px 12px;
}

.search-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 14px;
  width: 100%;
}

.search-input::placeholder {
  color: var(--text-dim);
}

/* Segmented Control / Filter Tabs */
.segmented-tabs {
  margin: 0 16px 16px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.segment-btn {
  padding: 10px 16px;
  border-radius: 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.segment-btn.active {
  background: var(--primary-gradient);
  color: #1a0f02;
  box-shadow: var(--primary-gradient-glow);
}

/* Payment Methods Grid (Screenshot 2) */
.payment-grid {
  padding: 0 16px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.payment-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.payment-card:active {
  transform: scale(0.97);
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
}

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

.payment-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.payment-card-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
}

.payment-card-sub {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.payment-card.disabled .payment-card-sub {
  color: #f59e0b;
}

.payment-hint-row {
  padding: 0 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.payment-hint-link {
  color: var(--primary-gold);
  font-weight: 600;
  cursor: pointer;
}

/* Links Section */
.links-section {
  padding: 0 16px 20px;
}

.links-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.link-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.link-item-card:active {
  background: var(--bg-card-hover);
}

.link-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.yt-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
}

.link-item-text .link-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.link-item-text .link-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Profile Page (Screenshot 3) */
.profile-header {
  padding: 20px 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-avatar-large-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  padding: 3px;
  background: var(--primary-gradient);
  box-shadow: 0 0 20px rgba(184, 138, 77, 0.45);
  margin-bottom: 12px;
}

.profile-avatar-large {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.profile-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.profile-id-pill {
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.promo-block-card {
  margin: 0 16px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 16px;
}

.promo-block-header {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--text-main);
}

.promo-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.promo-input {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  outline: none;
}

.promo-submit-btn {
  background: rgba(184, 138, 77, 0.35);
  color: var(--primary-gold);
  border: 1px solid rgba(184, 138, 77, 0.5);
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.promo-submit-btn:active {
  background: var(--primary-gradient);
  color: #100a02;
}

.profile-actions-grid {
  padding: 0 16px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.profile-action-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 16px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-action-card:active {
  transform: scale(0.97);
  background: var(--bg-card-hover);
}

.action-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
  margin-bottom: 10px;
}

.action-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.action-card-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.settings-list-card {
  margin: 0 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
}

.settings-row {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

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

.settings-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
}

.toggle-group {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px;
  border-radius: 12px;
}

.toggle-btn {
  border: none;
  background: transparent;
  padding: 5px 12px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}

.toggle-btn.active {
  background: var(--primary-gradient);
  color: #100a02;
}

/* Orders Page & Empty State (Screenshot 1) */
.empty-state-wrap {
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.empty-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
  margin-bottom: 16px;
}

.empty-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.empty-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  max-width: 240px;
}

/* Order Item Cards */
.orders-list {
  padding: 0 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 14px 16px;
}

.order-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.order-game-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.order-status-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.status-delivered {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-processing {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-refunded, .status-failed {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.order-detail-row {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
}

/* Bottom Navigation Bar */
.bottom-nav-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(var(--bottom-bar-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(11, 17, 32, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
}

.nav-tab-btn {
  flex: 1;
  height: 100%;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.nav-tab-btn .nav-icon {
  width: 22px;
  height: 22px;
}

.nav-tab-btn .nav-label {
  font-size: 10px;
  font-weight: 600;
}

.nav-tab-btn.active {
  color: #100a02;
}

.nav-tab-btn.active .nav-pill {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background: var(--primary-gradient);
  border-radius: 16px;
  box-shadow: var(--primary-gradient-glow);
  z-index: 1;
}

.nav-tab-btn.active .nav-content {
  position: relative;
  z-index: 2;
  color: #100a02;
}

/* Modal Bottom Drawer */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-sheet {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border: 1px solid var(--border-color);
  border-bottom: none;
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y: auto;
  padding: 20px 20px calc(24px + env(safe-area-inset-bottom, 12px));
  position: relative;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-sheet-handle {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

/* Package Selection Grid */
.packages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.package-card {
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.package-card.selected {
  border-color: var(--primary-gold);
  background: rgba(184, 138, 77, 0.12);
  box-shadow: 0 0 16px rgba(184, 138, 77, 0.25);
}

.package-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
}

.package-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-gold);
  margin-top: 6px;
}

.package-orig-price {
  font-size: 11px;
  color: var(--text-dim);
  text-decoration: line-through;
  margin-top: 2px;
}

/* Form Inputs inside Modal */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: block;
}

.id-input-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.text-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
}

.text-input:focus {
  border-color: var(--primary-gold);
}

.check-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--primary-gold);
  font-size: 12px;
  font-weight: 700;
  padding: 0 16px;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.check-btn:active {
  background: rgba(184, 138, 77, 0.2);
}

.verified-box {
  margin-top: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #10b981;
  display: none;
  align-items: center;
  gap: 6px;
}

.verified-box.show {
  display: flex;
}

.order-submit-btn {
  width: 100%;
  background: var(--primary-gradient);
  color: #100a02;
  border: none;
  padding: 15px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: var(--primary-gradient-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.order-submit-btn:active {
  filter: brightness(0.9);
  transform: scale(0.98);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  width: 90%;
  max-width: 400px;
  pointer-events: none;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  color: var(--text-main);
  padding: 12px 18px;
  border-radius: 16px;
  margin-bottom: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  animation: toastIn 0.3s ease;
}

.toast.toast-success {
  border-color: rgba(16, 185, 129, 0.4);
  color: #10b981;
}

.toast.toast-error {
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

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

/* Security & Maintenance Screens */
.full-block-screen {
  min-height: 100vh;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.lock-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  margin-bottom: 20px;
}

/* Utilities */
.hidden { display: none !important; }
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

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