/* ==========================================================================
   WARUNG APPS REDESIGN DESIGN SYSTEM & CUSTOM SPECIFICATIONS
   Theme: Lux Elegant & High-Performance Professional Studio
   ========================================================================== */

/* 1. Theme Configuration & Custom Variables */
:root {
  /* Fonts */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Global Animations */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Theme Tokens (Obsidian Amethyst Gold) - Default */
body.dark-theme {
  --bg-main: #0A090F;
  --bg-surface: #14121F;
  --bg-surface-elevated: #1C192E;
  --bg-input: #171524;
  --border-color: rgba(167, 139, 250, 0.12);
  --border-color-glow: rgba(224, 192, 151, 0.2);
  
  /* Text */
  --text-main: #F3F1F6;
  --text-muted: #9A97A8;
  --text-inverse: #14121F;

  /* Primary Branding Accent Color Scales */
  --purple-soft: #A78BFA;
  --purple-mid: #7C3AED;
  --purple-deep: #4C1D95;
  --purple-glow: rgba(167, 139, 250, 0.08);

  /* Secondary Luxurious Metallic Accent */
  --gold-accent: #E0C097;
  --gold-accent-hover: #F2D2A9;
  --gold-glow: rgba(224, 192, 151, 0.15);

  /* Status Colors */
  --status-success: #10B981;
  --status-danger: #EF4444;
  --status-warning: #F59E0B;
  --status-success-bg: rgba(16, 185, 129, 0.08);
  --status-danger-bg: rgba(239, 68, 68, 0.08);

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  --glass-bg: rgba(20, 18, 31, 0.85);
}

/* Light Theme Tokens (Linen Creamy Brass Slate) */
body.light-theme {
  --bg-main: #FAF9F6;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F1EFEA;
  --bg-input: #FFFFFF;
  --border-color: rgba(107, 79, 187, 0.1);
  --border-color-glow: rgba(197, 160, 89, 0.25);
  
  /* Text */
  --text-main: #1C1A24;
  --text-muted: #646073;
  --text-inverse: #FFFFFF;

  /* Primary Branding Accent Color Scales */
  --purple-soft: #6D28D9;
  --purple-mid: #5B21B6;
  --purple-deep: #1E1B4B;
  --purple-glow: rgba(109, 40, 217, 0.06);

  /* Secondary Luxurious Metallic Accent */
  --gold-accent: #C5A059;
  --gold-accent-hover: #B38F48;
  --gold-glow: rgba(197, 160, 89, 0.12);

  /* Status Colors */
  --status-success: #059669;
  --status-danger: #DC2626;
  --status-warning: #D97706;
  --status-success-bg: rgba(5, 150, 105, 0.06);
  --status-danger-bg: rgba(220, 38, 38, 0.06);

  /* Shadows */
  --shadow-sm: 0 6px 16px rgba(107, 79, 187, 0.04);
  --shadow-md: 0 16px 36px rgba(107, 79, 187, 0.08);
  --shadow-lg: 0 32px 70px rgba(107, 79, 187, 0.12);
  --glass-bg: rgba(250, 249, 246, 0.9);
}

/* ==========================================================================
   2. Core Reset & Global Layout Rules
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.5s ease, color 0.3s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2rem 2rem;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  letter-spacing: -0.01em;
}

.serif {
  font-family: var(--font-serif);
}

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

/* Gold Text Accent Helper */
.text-gold {
  color: var(--gold-accent) !important;
}

.gold-glow {
  text-shadow: 0 0 10px rgba(224, 192, 151, 0.5);
}

/* ==========================================================================
   3. Glassmorphic Navigation Bar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  user-select: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--purple-mid), var(--purple-deep));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--gold-accent);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.25);
  border: 1px solid rgba(224, 192, 151, 0.2);
  transition: var(--transition-smooth);
}

.logo-area:hover .logo-icon {
  transform: scale(1.05) rotate(3deg);
  border-color: var(--gold-accent);
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.logo-span {
  font-weight: 300;
  color: var(--purple-soft);
}

.logo-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1px;
  background: var(--gold-accent);
  color: var(--text-inverse);
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
}

/* Nav Links as Interactive Tabs */
.nav-tabs {
  display: flex;
  gap: 0.75rem;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  color: var(--text-main);
  background-color: var(--purple-glow);
}

.tab-btn.active {
  color: var(--text-main);
  background-color: var(--bg-surface-elevated);
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.badge-count {
  font-size: 0.7rem;
  background: var(--gold-accent);
  color: var(--text-inverse);
  padding: 0.1rem 0.4rem;
  border-radius: 20px;
  font-weight: 700;
}

/* Actions Sidebar */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.theme-toggle-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
  transform: translateY(-2px);
  border-color: var(--gold-accent);
  box-shadow: 0 4px 12px var(--gold-glow);
}

.wallet-badge {
  background: linear-gradient(135deg, var(--bg-surface-elevated), var(--bg-surface));
  border: 1px solid var(--border-color);
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.wallet-badge:hover {
  border-color: var(--gold-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--gold-glow);
}

.token-spin {
  color: var(--gold-accent);
  font-size: 1rem;
}

.wallet-badge:hover .token-spin {
  animation: spin 1.5s linear infinite;
}

.token-val {
  font-weight: 700;
  font-size: 0.95rem;
}

.token-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Elegant Buttons */
.btn {
  padding: 0.7rem 1.5rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.btn-premium-glow {
  background: linear-gradient(135deg, var(--gold-accent), #B8966E);
  color: var(--text-inverse);
  box-shadow: 0 6px 20px var(--gold-glow);
}

.btn-premium-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(224, 192, 151, 0.35);
  background: linear-gradient(135deg, var(--gold-accent-hover), var(--gold-accent));
}

.btn-purple {
  background: linear-gradient(135deg, var(--purple-soft), var(--purple-mid));
  color: var(--text-inverse);
  box-shadow: 0 6px 20px var(--purple-glow);
}

.btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.25);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: var(--bg-surface);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--status-danger-bg);
  border: 1px solid var(--status-danger);
  color: var(--status-danger);
}

.btn-danger:hover {
  background: var(--status-danger);
  color: #fff;
}

.btn-gold-outline {
  background: transparent;
  border: 1px solid var(--gold-accent);
  color: var(--gold-accent);
}

.btn-gold-outline:hover {
  background: var(--gold-accent);
  color: var(--text-inverse);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-full {
  width: 100%;
}

.btn-large {
  padding: 0.95rem 2.2rem;
  font-size: 0.95rem;
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
}

/* ==========================================================================
   4. Hero Premium Presentation Header
   ========================================================================== */
.hero-section {
  padding: 5.5rem 0 5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-bg-blobs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  mix-blend-mode: screen;
}

.blob-purple {
  width: 500px;
  height: 500px;
  background-color: var(--purple-soft);
  top: -20%;
  right: 10%;
  animation: float 20s infinite alternate ease-in-out;
}

.blob-gold {
  width: 450px;
  height: 450px;
  background-color: var(--gold-accent);
  bottom: -10%;
  left: 5%;
  animation: float 25s infinite alternate-reverse ease-in-out;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-mini-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--purple-glow);
  color: var(--purple-soft);
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  border-radius: 40px;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease-out;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.8rem;
  color: var(--text-main);
  animation: fadeUp 1s ease-out 0.1s backwards;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, var(--gold-accent), #FFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light-theme .hero-title em {
  background: linear-gradient(135deg, var(--purple-mid), var(--gold-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 3.5rem;
  font-weight: 300;
  line-height: 1.7;
  animation: fadeUp 1s ease-out 0.2s backwards;
}

/* Statistics Mini-Dashboard */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  animation: fadeUp 1s ease-out 0.3s backwards;
}

.stat-card {
  background: rgba(28, 25, 46, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem 1rem;
  backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
}

body.light-theme .stat-card {
  background: rgba(255, 255, 255, 0.7);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-accent);
  box-shadow: var(--shadow-md);
}

.stat-num {
  display: block;
  font-size: 2.2rem;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--gold-accent);
  margin-bottom: 0.25rem;
}

.stat-lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   5. Search, Categorization, and Filter Ribbon
   ========================================================================== */
.filter-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 1.5rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-sm);
}

.search-field-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1.5rem;
  color: var(--purple-soft);
  font-size: 1.1rem;
}

.search-field-wrapper input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 40px;
  padding: 1rem 3rem 1rem 3.2rem;
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.search-field-wrapper input:focus {
  border-color: var(--purple-soft);
  box-shadow: 0 0 0 4px var(--purple-glow);
}

.clear-search-btn {
  position: absolute;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
}

.clear-search-btn:hover {
  color: var(--text-main);
}

/* Category Filter Tabs Scrollable */
.category-tabs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.category-chip {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.5rem 1.2rem;
  border-radius: 45px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.category-chip:hover {
  color: var(--text-main);
  border-color: var(--purple-soft);
}

.category-chip.active {
  background: linear-gradient(135deg, var(--purple-mid), var(--purple-deep));
  color: #fff;
  border-color: var(--purple-soft);
  box-shadow: var(--shadow-sm);
}

body.light-theme .category-chip.active {
  background: linear-gradient(135deg, var(--purple-soft), var(--purple-mid));
}

.sort-filter-group {
  display: flex;
  justify-content: flex-end;
}

.custom-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.select-icon {
  position: absolute;
  left: 1.2rem;
  color: var(--gold-accent);
}

.sort-select {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 0.5rem 1.5rem 0.5rem 2.5rem;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: var(--transition-smooth);
}

.sort-select:hover {
  border-color: var(--gold-accent);
}

/* ==========================================================================
   6. Premium App Grid Cards Layout
   ========================================================================== */
.tab-content-panel {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.tab-content-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
  margin-bottom: 5rem;
}

.app-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  transition: var(--transition-smooth);
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--purple-soft), var(--gold-accent));
  opacity: 0;
  transition: var(--transition-smooth);
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-color-glow);
}

.app-card:hover::before {
  opacity: 1;
}

/* Card Header Components */
.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.2rem;
}

.icon-box-premium {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--bg-surface-elevated), var(--bg-input));
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.app-card:hover .icon-box-premium {
  transform: scale(1.05);
  box-shadow: var(--shadow-sm);
}

.app-card-cat {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--purple-glow);
  color: var(--purple-soft);
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  border: 1px solid rgba(167, 139, 250, 0.08);
}

.rating-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--gold-accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.rating-count {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.75rem;
}

/* Typography elements */
.app-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.app-card-title:hover {
  color: var(--gold-accent);
}

.app-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.65;
  flex-grow: 1;
}

/* Premium Tags */
.app-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
}

.tag-mini {
  font-size: 0.7rem;
  font-weight: 500;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.2rem 0.75rem;
  border-radius: 40px;
}

/* Card Bottom Footer */
.card-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
  margin-top: auto;
}

.price-indicator {
  display: flex;
  flex-direction: column;
}

.price-indicator .lbl {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.price-indicator .amount-row {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.price-indicator strong {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-main);
  font-family: var(--font-serif);
}

.price-indicator .unit {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Dynamic Subs expiration bar */
.subscription-status-row {
  width: 100%;
  margin-bottom: 1.2rem;
}

.status-label-group {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.status-active-badge {
  color: var(--status-success);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.status-time-left {
  color: var(--text-muted);
}

.progress-timeline-bar {
  width: 100%;
  height: 4px;
  background: var(--bg-surface-elevated);
  border-radius: 10px;
  overflow: hidden;
}

.progress-timeline-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple-soft), var(--status-success));
  width: 100%;
  transition: width 1s ease;
}

/* Empty states */
.empty-state-card {
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 4rem 2rem;
  max-width: 600px;
  margin: 3rem auto;
  box-shadow: var(--shadow-sm);
}

.empty-icon {
  font-size: 3.5rem;
  color: var(--purple-soft);
  margin-bottom: 1.5rem;
}

.empty-title {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.empty-desc {
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 2rem;
}

/* ==========================================================================
   7. Token System Store & Package Grid
   ========================================================================== */
.token-store-section {
  background: linear-gradient(180deg, var(--bg-main), #0F0E17);
  padding: 6.5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

body.light-theme .token-store-section {
  background: linear-gradient(180deg, var(--bg-main), #FAF9F6);
}

.token-store-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 4rem;
  align-items: center;
}

.store-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-accent);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  margin-bottom: 1.2rem;
}

.store-title {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.store-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 3rem;
  font-weight: 300;
}

/* Pack Card Lists */
.packs-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.pack-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.4rem 1.6rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.pack-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple-soft);
  box-shadow: var(--shadow-sm);
}

.pack-card.active {
  border-color: var(--gold-accent);
  background: var(--purple-glow);
  box-shadow: 0 4px 20px var(--gold-glow);
}

.pack-badge {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: var(--gold-accent);
  color: var(--text-inverse);
  padding: 0.15rem 0.6rem;
  border-radius: 10px;
}

.pack-title {
  font-size: 1.6rem;
  font-weight: 600;
  font-family: var(--font-serif);
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.pack-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold-accent);
}

.pack-rate {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* Store Large Wallet Showcase */
.store-wallet-card {
  background: linear-gradient(135deg, var(--bg-surface-elevated), var(--bg-surface));
  border: 1px solid var(--border-color);
  border-radius: 36px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
}

.wallet-icon-large {
  width: 90px;
  height: 90px;
  background: var(--purple-glow);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: var(--gold-accent);
  margin-bottom: 2rem;
  animation: float 6s infinite ease-in-out;
}

.wallet-balance-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.indicator-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.indicator-val {
  font-size: 4.8rem;
  font-weight: 700;
  font-family: var(--font-serif);
  line-height: 1;
  color: var(--text-main);
  margin: 0.5rem 0;
}

.indicator-unit {
  font-size: 0.9rem;
  color: var(--gold-accent);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.wallet-footer-info {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* ==========================================================================
   8. Testimonial Component
   ========================================================================== */
.testimonials-section {
  padding: 6.5rem 0;
  text-align: center;
}

.testimonial-header {
  margin-bottom: 3.5rem;
}

.testimonials-heading {
  font-size: 2.6rem;
  margin-bottom: 1.2rem;
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--gold-accent);
  margin: 0 auto;
}

.testimonial-carousel {
  max-width: 760px;
  margin: 0 auto;
}

.testimonial-card {
  padding: 1rem;
}

.quote-icon {
  font-size: 3rem;
  color: var(--purple-glow);
  margin-bottom: 1rem;
}

.quote-text {
  font-size: 1.5rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 2.2rem;
  font-weight: 300;
}

.author-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--purple-soft);
}

.author-name {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main);
  text-align: left;
}

.author-role {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: left;
}

/* ==========================================================================
   9. Developer Submission Tab Form
   ========================================================================== */
.dev-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

.section-heading {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.section-subheading {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.info-metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.6rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-sm);
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--purple-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.info-metric-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.info-metric-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Console Submitted List View */
.my-apps-console {
  border-top: 1px solid var(--border-color);
  padding-top: 2.5rem;
}

.console-title {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.dev-apps-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.no-dev-apps {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.85rem;
}

.dev-app-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 0.85rem 1.2rem;
  transition: var(--transition-smooth);
}

.dev-app-row:hover {
  border-color: var(--purple-soft);
  transform: translateX(4px);
}

.dev-app-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.dev-app-icon {
  font-size: 1.5rem;
}

.dev-app-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.dev-app-price-tag {
  font-size: 0.8rem;
  color: var(--gold-accent);
  font-weight: 500;
}

.btn-delete-app {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.btn-delete-app:hover {
  color: var(--status-danger);
}

/* Submission Form Sheet card */
.dev-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-card-title {
  font-size: 1.8rem;
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.elegant-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  border-color: var(--purple-soft);
  box-shadow: 0 0 0 3px var(--purple-glow);
}

.label-hint {
  font-size: 0.7rem;
  text-transform: none;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
}

/* ==========================================================================
   10. App Detailed Slide-out Right Drawer
   ========================================================================== */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 9, 15, 0.7);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(8px);
  transition: opacity 0.4s ease;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  width: 580px;
  height: 100%;
  background: var(--bg-surface);
  box-shadow: var(--shadow-lg);
  border-left: 1px solid var(--border-color);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.drawer-overlay.open .drawer-panel {
  transform: translateX(0);
}

.drawer-close-btn {
  position: absolute;
  top: 1.5rem;
  left: -3rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.drawer-close-btn:hover {
  transform: scale(1.1) rotate(90deg);
  color: var(--gold-accent);
  border-color: var(--gold-accent);
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

/* Detail UI components */
.drawer-app-meta-box {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.drawer-app-title-group h2 {
  font-size: 2.2rem;
  margin-bottom: 0.35rem;
}

.drawer-section-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.drawer-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.drawer-spec-item {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
}

.drawer-spec-item .lbl {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.drawer-spec-item .val {
  font-weight: 600;
  font-size: 0.95rem;
}

/* User Interactive Feedback Review UI */
.review-input-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
}

.star-rating-selector {
  display: flex;
  gap: 0.4rem;
  font-size: 1.4rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.star-rating-selector i {
  cursor: pointer;
  transition: var(--transition-fast);
}

.star-rating-selector i.active,
.star-rating-selector i:hover {
  color: var(--gold-accent);
}

.feedback-textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: var(--text-main);
  outline: none;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  resize: vertical;
}

.reviews-list-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.review-item-card {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.review-item-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}

.review-item-user {
  font-weight: 600;
}

.review-item-stars {
  color: var(--gold-accent);
}

.review-item-comment {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   11. Checkout Dynamic UI & QRIS / VA Layouts
   ========================================================================== */
.checkout-panel {
  width: 520px;
}

.checkout-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.checkout-sub {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.order-summary-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.4rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
}

.summary-row:last-child {
  margin-bottom: 0;
}

.summary-row.total-row {
  border-top: 1px solid var(--border-color);
  padding-top: 0.85rem;
  margin-top: 0.85rem;
  font-weight: 600;
}

.summary-row strong {
  font-size: 1.2rem;
  font-family: var(--font-serif);
}

/* Checkout payment method selector */
.payment-methods-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
}

.pay-method-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.pay-method-btn.active {
  border-color: var(--gold-accent);
  background: var(--purple-glow);
  color: var(--text-main);
}

.payment-method-details {
  display: none;
}

.payment-method-details.active {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  animation: fadeIn 0.4s ease-out;
}

/* QRIS details wrapper */
.qris-card-wrapper {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #1A1A1A;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.06);
}

.qris-logo-header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-weight: 800;
  font-size: 1.2rem;
  border-bottom: 2px solid #E6E6E6;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.qris-lbl { color: #E7242B; }
.gpn-lbl { color: #005EAD; }

.qris-qrcode-box {
  width: 220px;
  height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  margin-bottom: 1.2rem;
}

.qris-vector {
  width: 100%;
  height: 100%;
  color: #1A1A1A;
}

.qris-center-logo {
  position: absolute;
  background: #FFFFFF;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.qris-merchant {
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
}

.qris-tid {
  font-size: 0.7rem;
  color: #666;
  margin-top: 0.2rem;
}

.pay-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: flex;
  gap: 0.5rem;
}

/* VA selection details */
.va-selector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.va-bank-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  padding: 0.75rem 0.5rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition-smooth);
}

.va-bank-card.active {
  border-color: var(--purple-soft);
  background: var(--purple-glow);
}

.bank-abbrev {
  font-weight: 700;
  font-size: 0.85rem;
}

.bank-name {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.va-number-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
  text-align: center;
}

.va-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.va-code-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 0.5rem 0;
}

.va-code-wrapper strong {
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.btn-copy-code {
  background: transparent;
  border: none;
  color: var(--purple-soft);
  cursor: pointer;
  font-size: 1.1rem;
}

.btn-copy-code:hover {
  color: var(--text-main);
}

.va-inst {
  font-size: 0.8rem;
}

/* Simulation triggers */
.payment-simulation-box {
  border-top: 1px solid var(--border-color);
  padding-top: 1.8rem;
  margin-top: auto;
}

.sim-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.badge-status-simulating {
  color: var(--status-warning);
}

.badge-status-simulating.success {
  color: var(--status-success);
}

.simulation-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-surface-elevated);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.sim-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-accent), var(--status-success));
}

.btn-sim-pay {
  background: var(--purple-glow);
  border: 1px dashed var(--gold-accent);
  color: var(--gold-accent);
  box-shadow: none;
}

.btn-sim-pay:hover {
  border-style: solid;
  color: var(--text-inverse);
}

/* ==========================================================================
   12. Fullscreen Application Sandbox Environment
   ========================================================================== */
.sandbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #0A090F;
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.sandbox-overlay.open {
  display: block;
  opacity: 1;
}

.sandbox-window {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sandbox-header {
  background: #14121F;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sandbox-title-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sandbox-os-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  background: var(--gold-accent);
  color: #14121F;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.sandbox-title-area h2 {
  font-size: 1.25rem;
  font-weight: 600;
  font-family: var(--font-sans);
}

.sandbox-status-tag {
  font-size: 0.7rem;
  color: var(--status-success);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--status-success);
  border-radius: 50%;
  animation: pulseSim 1.5s infinite;
}

.sandbox-actions {
  display: flex;
  gap: 0.75rem;
}

.sandbox-viewport {
  flex: 1;
  background: #1E1C2A;
  overflow: auto;
  color: #ECECF1;
}

/* SIMULATOR APPS CUSTOM STYLING CANVAS */

/* General Sim UI Grid */
.sim-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  animation: fadeIn 0.5s ease-out;
}

.sim-nav {
  background: #151321;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.5rem;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.sim-brand {
  font-size: 1.2rem;
  font-weight: 700;
}

.sim-grid-pos {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 2rem;
}

/* POS Cashier styling */
.pos-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.pos-item-card {
  background: #1B182B;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.pos-item-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple-soft);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.pos-item-emoji {
  font-size: 2.5rem;
  margin-bottom: 0.6rem;
}

.pos-item-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.pos-item-price {
  font-size: 0.85rem;
  color: var(--gold-accent);
}

/* POS Sidebar Billing */
.pos-bill-sidebar {
  background: #151321;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 480px;
}

.pos-bill-title {
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.pos-bill-items {
  flex: 1;
  overflow-y: auto;
  max-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.bill-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.bill-item-meta {
  display: flex;
  gap: 0.5rem;
  color: var(--text-muted);
}

.pos-bill-summary {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.summary-bill-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.summary-bill-row.total {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-accent);
}

/* Printable on-screen elegant POS Receipt */
.receipt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2100;
  animation: fadeIn 0.3s ease;
}

.pos-receipt-paper {
  background: #FFFFFF;
  color: #1A1A1A;
  font-family: 'Courier New', Courier, monospace;
  width: 320px;
  padding: 2rem 1.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  border-radius: 4px;
}

.receipt-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.receipt-line {
  border-top: 1px dashed #666;
  margin: 0.75rem 0;
}

.receipt-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

/* LMS Education Sim */
.lms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.lms-card {
  background: #151321;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.5rem;
}

.lms-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.lms-table th, .lms-table td {
  text-align: left;
  padding: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lms-table th {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.grade-input {
  width: 55px;
  background: #1F1B35;
  border: 1px solid rgba(255,255,255,0.1);
  color: #FFFFFF;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  text-align: center;
}

/* Report Card modal paper styling */
.report-card-paper {
  background: #FAF9F6;
  color: #1A1A2E;
  padding: 3rem;
  border-radius: 12px;
  max-width: 650px;
  width: 100%;
  box-shadow: 0 12px 48px rgba(0,0,0,0.5);
  font-family: var(--font-sans);
}

.report-header {
  text-align: center;
  border-bottom: 3px double #1A1A2E;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.report-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

/* ERP Management styling */
.erp-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.erp-stat-card {
  background: #1B182B;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.5rem;
}

.chart-visual-box {
  background: #1B182B;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 1.8rem;
  margin-bottom: 2rem;
}

.erp-chart-bars {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 220px;
  padding-top: 1.5rem;
}

.chart-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 45px;
}

.chart-bar-fill {
  width: 100%;
  background: linear-gradient(0deg, var(--purple-mid), var(--gold-accent));
  border-radius: 6px 6px 0 0;
  height: 0;
  transition: height 1s ease-out;
}

/* ==========================================================================
   13. System Toast & Messaging Overlay
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}

.toast-msg {
  background: rgba(20, 18, 31, 0.95);
  border: 1px solid var(--border-color-glow);
  color: var(--text-main);
  padding: 1rem 2.2rem;
  border-radius: 60px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  animation: slideUpIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.toast-icon {
  color: var(--gold-accent);
}

.toast-icon-success {
  color: var(--status-success);
}

.toast-icon-danger {
  color: var(--status-danger);
}

/* ==========================================================================
   13.5. Footer Section (Gaya Tampilan Bagian Bawah Halaman)
   ========================================================================== */
.footer-section {
  background-color: #0F0E17;
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 3rem;
  color: var(--text-muted);
  position: relative;
  z-index: 10;
}

body.light-theme .footer-section {
  background-color: #F5F3ED;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.footer-brand-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 0.85rem;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.social-links a:hover {
  border-color: var(--gold-accent);
  color: var(--gold-accent);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px var(--gold-glow);
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
}

.footer-links-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.footer-links-col a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-links-col a:hover {
  color: var(--gold-accent);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.credit-tag {
  color: var(--gold-accent);
  font-weight: 500;
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   14. CSS Animation Library
   ========================================================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulseSim {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes slideUpIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   15. Advanced Responsive Adaptation Media Rules
   ========================================================================== */
@media (max-width: 1200px) {
  .token-store-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .dev-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 960px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-container {
    padding: 1rem;
  }
  .nav-tabs {
    display: none;
  }
}

@media (max-width: 760px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .packs-container {
    grid-template-columns: 1fr;
  }
  .drawer-panel {
    width: 100vw;
  }
  .drawer-close-btn {
    left: 1.5rem;
    top: 1rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .sim-grid-pos {
    grid-template-columns: 1fr;
  }
}