/* ==========================================================================
   REZAXD STORE & MONITORING PORTAL — SWISS BRUTALIST DESIGN SYSTEM
   Reverse-Engineered & Elevated from seaavey.com
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #f7f7f5;
  --bg-secondary: #ecece8;
  --bg-elevated: #ffffff;
  --text-primary: #0a0a0a;
  --text-muted: #525250;
  --border-color: #0a0a0a;
  --invert-bg: #0a0a0a;
  --invert-text: #f7f7f5;
  --hairline: 1px solid #0a0a0a;
  --accent: #0052cc;
  --accent-glow: rgba(0, 82, 204, 0.15);
  --success: #059669;
  --danger: #dc2626;
  --warning: #d97706;
  --grid-line: rgba(10, 10, 10, 0.08);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
}

.dark {
  --bg-primary: #0a0a0a;
  --bg-secondary: #121212;
  --bg-elevated: #161616;
  --text-primary: #f7f7f5;
  --text-muted: #969692;
  --border-color: #282828;
  --invert-bg: #f7f7f5;
  --invert-text: #0a0a0a;
  --hairline: 1px solid #282828;
  --accent: #00f0ff;
  --accent-glow: rgba(0, 240, 255, 0.15);
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --grid-line: rgba(255, 255, 255, 0.05);
}

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

html {
  font-size: 14px;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.2s ease, color 0.2s ease;
  overflow-x: hidden;
}

/* Architectural Grid Background (Subtle Blueprint) */
.bg-grid-blueprint {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
}

/* Hairline Helpers (From seaavey.com) */
.b-all { border: var(--hairline); }
.b-top { border-top: var(--hairline); }
.b-bottom { border-bottom: var(--hairline); }
.b-left { border-left: var(--hairline); }
.b-right { border-right: var(--hairline); }

/* Typography */
.font-mono { font-family: var(--font-mono); }
.font-sans { font-family: var(--font-sans); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.08em; }
.tracking-widest { letter-spacing: 0.15em; }

/* Surface & Bar */
.surface-bar {
  background-color: var(--bg-primary);
  transition: background-color 0.2s ease;
}

.surface-card {
  background-color: var(--bg-elevated);
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.2s ease;
}

/* Container */
.container-max {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* Top Sticky Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--bg-primary);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  gap: 1rem;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand-title {
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--text-primary);
  white-space: nowrap;
}

.brand-name {
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-sub {
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.badge-pill {
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  background-color: var(--bg-secondary);
  border: var(--hairline);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--success);
  display: inline-block;
  box-shadow: 0 0 8px var(--success);
  animation: pulseAnim 2s infinite ease-in-out;
}

@keyframes pulseAnim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Header Action Controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.status-mob,
.theme-mob,
.panel-mob {
  display: none;
}

/* Nav Menu */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  list-style: none;
  white-space: nowrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.15s ease;
  padding: 0.3rem 0.45rem;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  border-bottom: 2px solid var(--text-primary);
}

/* Brutalist Buttons with Tap Animations & Tactile Feedback */
.btn-brutalist {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  border: var(--hairline);
  background-color: var(--bg-elevated);
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  border-radius: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  will-change: transform;
}

.btn-brutalist:hover {
  background-color: var(--invert-bg);
  color: var(--invert-text);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn-brutalist:active {
  transform: scale(0.96) translateY(2px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  transition-duration: 0.05s;
}

.btn-brutalist-invert {
  background-color: var(--invert-bg);
  color: var(--invert-text);
}

.btn-brutalist-invert:hover {
  background-color: var(--bg-elevated);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--invert-bg);
  color: var(--invert-text);
  border: 2px solid var(--border-color);
  font-weight: 700;
}

.btn-accent:hover {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border-color: var(--border-color);
  box-shadow: 3px 3px 0px var(--border-color);
  transform: translateY(-2px);
}

.btn-accent:active {
  transform: scale(0.97) translateY(1px);
  box-shadow: 1px 1px 0px var(--border-color);
}

/* Section Header Meta */
.section-meta-header {
  padding: 1.5rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.section-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 720px;
}

/* Hero Section */
.hero-manifest {
  padding: 3rem 1.25rem 2.5rem;
  position: relative;
}

.hero-coords {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

.coord-item {
  display: flex;
  flex-direction: column;
}

.coord-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.coord-value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Grid Layouts */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-card {
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--bg-primary);
}

.grid-card:hover {
  background-color: var(--bg-secondary);
}

.card-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.card-plan-name {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.card-price-tag {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.75rem 0 1.25rem;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.card-price-period {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.card-specs-list {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-specs-list li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.card-specs-list li span.strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Forms */
.form-panel-wrap {
  padding: 2rem 1.25rem;
}

.brutalist-form {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

.form-input, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  background-color: var(--bg-elevated);
  border: var(--hairline);
  color: var(--text-primary);
  outline: none;
  border-radius: 0;
  transition: border-color 0.15s ease, background-color 0.2s ease;
}

.form-input:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.input-with-button {
  display: flex;
  gap: -1px;
}

.input-with-button .form-input {
  flex: 1;
}

.radio-pill-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.radio-pill-label {
  flex: 1;
  min-width: 160px;
  cursor: pointer;
}

.radio-pill-label input {
  display: none;
}

.radio-pill-box {
  padding: 0.75rem 1rem;
  border: var(--hairline);
  background-color: var(--bg-elevated);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.15s ease;
}

/* Radio Pill & License Selection State */
.radio-pill-label.selected .radio-pill-box,
.radio-pill-label input:checked + .radio-pill-box,
.license-duration-card.selected .radio-pill-box,
.renew-duration-card.selected .radio-pill-box {
  background-color: var(--invert-bg) !important;
  color: var(--invert-text) !important;
  border-color: var(--invert-bg) !important;
  box-shadow: 2px 2px 0px var(--border-color);
  transform: translateY(-1px);
}

.radio-pill-label.selected .radio-pill-box strong,
.radio-pill-label.selected .radio-pill-box small,
.radio-pill-label input:checked + .radio-pill-box strong,
.radio-pill-label input:checked + .radio-pill-box small,
.license-duration-card.selected .radio-pill-box strong,
.license-duration-card.selected .radio-pill-box small,
.renew-duration-card.selected .radio-pill-box strong,
.renew-duration-card.selected .radio-pill-box small {
  color: var(--invert-text) !important;
}

/* Explicit Light Mode (Tema Putih): Tandai HITAM Pekat dengan Teks Putih */
:root:not(.dark) .license-duration-card.selected .radio-pill-box,
:root:not(.dark) .renew-duration-card.selected .radio-pill-box,
:root:not(.dark) .radio-pill-label.selected .radio-pill-box,
:root:not(.dark) .radio-pill-label input:checked + .radio-pill-box {
  background-color: #0a0a0a !important;
  color: #ffffff !important;
  border-color: #0a0a0a !important;
}

:root:not(.dark) .license-duration-card.selected .radio-pill-box strong,
:root:not(.dark) .license-duration-card.selected .radio-pill-box small,
:root:not(.dark) .renew-duration-card.selected .radio-pill-box strong,
:root:not(.dark) .renew-duration-card.selected .radio-pill-box small,
:root:not(.dark) .radio-pill-label.selected .radio-pill-box strong,
:root:not(.dark) .radio-pill-label.selected .radio-pill-box small,
:root:not(.dark) .radio-pill-label input:checked + .radio-pill-box strong,
:root:not(.dark) .radio-pill-label input:checked + .radio-pill-box small {
  color: #ffffff !important;
}

/* Explicit Dark Mode (Tema Gelap): Tandai PUTIH Terang dengan Teks Hitam */
.dark .license-duration-card.selected .radio-pill-box,
.dark .renew-duration-card.selected .radio-pill-box,
.dark .radio-pill-label.selected .radio-pill-box,
.dark .radio-pill-label input:checked + .radio-pill-box {
  background-color: #f7f7f5 !important;
  color: #0a0a0a !important;
  border-color: #ffffff !important;
}

.dark .license-duration-card.selected .radio-pill-box strong,
.dark .license-duration-card.selected .radio-pill-box small,
.dark .renew-duration-card.selected .radio-pill-box strong,
.dark .renew-duration-card.selected .radio-pill-box small,
.dark .radio-pill-label.selected .radio-pill-box strong,
.dark .radio-pill-label.selected .radio-pill-box small,
.dark .radio-pill-label input:checked + .radio-pill-box strong,
.dark .radio-pill-label input:checked + .radio-pill-box small {
  color: #0a0a0a !important;
}

.license-duration-card:not(.selected) .radio-pill-box:hover,
.renew-duration-card:not(.selected) .radio-pill-box:hover {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
}

/* Modal & Direct Redirect Box */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background-color: var(--bg-primary);
  border: var(--hairline);
  width: 100%;
  max-width: 600px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: translateY(12px);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-dialog {
  transform: translateY(0);
}

.countdown-bar-wrap {
  width: 100%;
  height: 6px;
  background-color: var(--bg-secondary);
  border: var(--hairline);
  margin: 1.25rem 0;
  overflow: hidden;
  position: relative;
}

.countdown-bar-fill {
  height: 100%;
  background-color: var(--accent);
  width: 100%;
  transform-origin: left;
  transition: transform 1s linear;
}

.credential-box {
  background-color: var(--bg-elevated);
  border: var(--hairline);
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.credential-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 0.35rem;
}

.credential-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.credential-label {
  color: var(--text-muted);
}

.credential-value {
  font-weight: 700;
  color: var(--text-primary);
}

/* Monitoring Hub Tabs */
.tabs-nav {
  display: flex;
  overflow-x: auto;
  border-bottom: var(--hairline);
}

.tab-btn {
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  border-right: var(--hairline);
  white-space: nowrap;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.tab-btn.active {
  background-color: var(--invert-bg);
  color: var(--invert-text);
}

.tab-content {
  display: none;
  padding: 2rem 1.25rem;
}

.tab-content.active {
  display: block;
}

/* Telemetry Grid */
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.telemetry-cell {
  background-color: var(--bg-elevated);
  border: var(--hairline);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.telemetry-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.telemetry-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  background-color: var(--invert-bg);
  color: var(--invert-text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.75rem 1.25rem;
  border: var(--hairline);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  transform: translateY(150%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
footer.site-footer {
  margin-top: auto;
  background-color: var(--bg-primary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.footer-inner {
  padding: 2rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Responsive Styles */
@media (max-width: 1150px) {
  .header-clock {
    display: none !important;
  }
  .nav-links {
    gap: 0.5rem !important;
  }
  .nav-links a {
    font-size: 0.72rem !important;
    padding: 0.2rem 0.35rem !important;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Hide on mobile */
  }

  .site-header {
    width: 100%;
  }

  .header-inner {
    padding: 0.5rem 0.75rem !important;
    gap: 0.35rem !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
  }

  .brand-group {
    gap: 0.35rem !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
  }

  .brand-title {
    font-size: 0.95rem !important;
    white-space: nowrap !important;
    gap: 0.2rem !important;
  }

  .brand-sub {
    display: none !important; /* Hide // CLOUD GATEWAY on mobile */
  }

  .header-badge-status {
    padding: 0.15rem 0.4rem !important;
    font-size: 0.65rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .status-full {
    display: none !important;
  }

  .status-mob {
    display: inline !important;
  }

  .header-clock {
    display: none !important;
  }

  .header-actions {
    gap: 0.35rem !important;
    flex-shrink: 0 !important;
  }

  .header-theme-btn {
    padding: 0.35rem 0.5rem !important;
    font-size: 0.75rem !important;
    white-space: nowrap !important;
  }

  .theme-full {
    display: none !important;
  }

  .theme-mob {
    display: inline !important;
  }

  .header-panel-btn {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.75rem !important;
    white-space: nowrap !important;
  }

  .panel-full {
    display: none !important;
  }

  .panel-mob {
    display: inline !important;
  }

  /* Hero manifest fixes on mobile */
  .hero-manifest {
    padding: 1.5rem 0.85rem 1.75rem !important;
  }

  .hero-manifest h1 {
    font-size: 1.45rem !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
  }

  .hero-manifest p {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    margin-top: 0.65rem !important;
  }

  .hero-coords {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.85rem 0.75rem !important;
    margin-top: 1.25rem !important;
    padding-top: 1rem !important;
  }

  .coord-item {
    min-width: 0 !important;
  }

  .coord-label {
    font-size: 0.62rem !important;
  }

  .coord-value {
    font-size: 0.75rem !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  .section-title {
    font-size: 1.25rem !important;
  }

  .section-desc {
    font-size: 0.82rem !important;
  }

  .section-meta-header {
    padding: 1.15rem 0.85rem !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
  }

  .section-meta-header-split {
    padding: 1.15rem 0.85rem 0.85rem !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }

  .section-meta-info .section-label {
    font-size: 0.65rem !important;
    letter-spacing: 0.05em !important;
    display: block !important;
    margin-bottom: 0.15rem !important;
  }

  .section-meta-info .section-title {
    font-size: 1.25rem !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em !important;
    margin-bottom: 0.35rem !important;
  }

  .section-meta-info .section-desc {
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
    color: var(--text-muted) !important;
  }

  .slider-controls {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-top: 0.75rem !important;
    border-top: 1px dashed rgba(10, 10, 10, 0.15) !important;
    margin-top: 0.35rem !important;
    box-sizing: border-box !important;
  }

  .dark .slider-controls {
    border-top-color: rgba(255, 255, 255, 0.15) !important;
  }

  .slider-meta-left {
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    flex-shrink: 0 !important;
  }

  .slider-meta-left .badge-pill {
    padding: 0.35rem 0.6rem !important;
    font-size: 0.72rem !important;
  }

  .slider-hint-text {
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    color: var(--text-muted) !important;
  }

  .slider-btn-group {
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    flex-shrink: 0 !important;
  }

  .slider-nav-btn {
    padding: 0.45rem 0.65rem !important;
    font-size: 0.72rem !important;
    min-width: 66px !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  .card-plan-name {
    font-size: 1.15rem;
  }

  .card-price-tag {
    font-size: 1.25rem;
  }

  .slider-panel-card {
    flex: 0 0 85vw !important;
    min-width: 85vw !important;
    max-width: 85vw !important;
  }
}

/* ==========================================================================
   HORIZONTAL SLIDE TRACK (SLIDE KANAN CAROUSEL)
   ========================================================================== */
.slider-wrapper {
  position: relative;
  width: 100%;
}

.slider-panels-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  margin: 0;
  gap: 0;
  scrollbar-width: none; /* Hide default thick scrollbar */
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.slider-panels-track:active {
  cursor: grabbing;
}

.slider-panels-track::-webkit-scrollbar {
  display: none; /* Hide default thick scrollbar in Chrome/Safari */
  width: 0;
  height: 0;
}

.slider-panel-card {
  flex: 0 0 320px;
  max-width: 340px;
  min-width: 280px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--bg-primary);
  border-right: var(--hairline);
  position: relative;
  transition: background-color 0.15s ease;
}

.slider-panel-card:hover {
  background-color: var(--bg-secondary);
}

/* Card Spec Grid for Clean Swiss Layout */
.card-spec-grid {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 1.25rem 0 1.5rem;
  padding: 0.75rem 0;
  border-top: 1px dashed var(--border-color);
  border-bottom: 1px dashed var(--border-color);
}

.card-spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.card-spec-item .spec-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-spec-item .spec-val {
  font-weight: 700;
  color: var(--text-primary);
}

/* Action Button Inside Card */
.btn-card-action {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background-color: var(--invert-bg);
  color: var(--invert-text);
  border: var(--hairline);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.15s ease;
}

.btn-card-action:hover {
  background-color: var(--bg-elevated);
  color: var(--text-primary);
}

.btn-card-action:active {
  transform: scale(0.98);
}

/* Button Prev & Next Specific Touch & Click Animation */
#btn-slide-prev {
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.15s ease;
}
#btn-slide-prev:hover {
  transform: translateX(-2px);
}
#btn-slide-prev:active {
  transform: translateX(-4px) scale(0.95);
}

#btn-slide-next {
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.15s ease;
}
#btn-slide-next:hover {
  transform: translateX(2px);
}
#btn-slide-next:active {
  transform: translateX(4px) scale(0.95);
}

.section-meta-header-split {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.slider-meta-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slider-hint-text {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.slider-btn-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.slider-nav-btn {
  padding: 0.45rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.slider-progress-wrap {
  width: 100%;
  height: 5px;
  background-color: var(--bg-secondary);
  overflow: hidden;
}

.slider-progress-bar {
  height: 100%;
  width: 11%;
  background-color: var(--accent);
  transition: width 0.15s ease-out;
}

/* ==========================================================================
   SLIDE-OVER DRAWER DARI KANAN (DRAWER BUY PANEL)
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel-right {
  position: fixed;
  top: 0;
  right: 0;
  width: min(540px, 100vw);
  height: 100vh;
  height: 100dvh;
  background-color: var(--bg-primary);
  border-left: var(--hairline);
  z-index: 1010;
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-panel-right.active {
  transform: translateX(0);
}

.drawer-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: var(--hairline);
  background-color: var(--bg-primary);
  flex-shrink: 0;
}

.drawer-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.drawer-selected-pill {
  padding: 1.25rem;
  background-color: var(--bg-elevated);
  border: var(--hairline);
  margin-bottom: 1.25rem;
}

/* License Feature Comparison Table */
.license-comparison-box {
  max-width: 820px;
  margin: 0 auto 2.5rem;
  background: var(--bg-surface);
  border: var(--hairline);
}

.license-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.82rem;
}

.license-compare-table th {
  background-color: var(--bg-elevated);
  padding: 0.85rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  border-bottom: var(--hairline);
}

.license-compare-table td {
  padding: 0.75rem 1rem;
  border-bottom: var(--hairline);
  color: var(--text-secondary);
  vertical-align: middle;
}

.license-compare-table tr:last-child td {
  border-bottom: none;
}

.license-compare-table tr.category-row td {
  background-color: var(--bg-elevated);
  padding: 0.6rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  border-bottom: var(--hairline);
  border-top: var(--hairline);
}

.license-compare-table .feat-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.84rem;
  margin-bottom: 0.15rem;
}

.license-compare-table .feat-desc {
  font-size: 0.73rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.status-pill {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-radius: 2px;
}

.status-pill.status-locked {
  background-color: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

[data-theme="dark"] .status-pill.status-locked {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.35);
}

.status-pill.status-muted {
  background-color: var(--bg-elevated);
  color: var(--text-muted);
  border: var(--hairline);
}

.status-pill.status-active {
  background-color: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.35);
}

[data-theme="dark"] .status-pill.status-active {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.35);
}

/* ==========================================================================
   OPTIMIZED & ULTRA-SMOOTH LICENSE COMPARISON MODAL
   - 60FPS fluid scrolling with zero backdrop blur lag
   - Mobile-first card transformation on <= 640px screens
   ========================================================================== */
#license-compare-modal {
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#license-compare-modal .license-modal-dialog {
  max-width: 880px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: var(--hairline);
  background-color: var(--bg-primary);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  transform: translateY(0);
  will-change: transform;
}

.license-modal-header {
  padding: 1.15rem 1.35rem;
  border-bottom: var(--hairline);
  background-color: var(--bg-elevated);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.license-modal-title-box {
  min-width: 0;
  flex: 1;
}

.license-modal-tag {
  letter-spacing: 0.06em;
  display: block;
}

.license-modal-title {
  margin: 0.2rem 0 0;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
  line-height: 1.3;
}

.license-modal-close {
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}

.license-modal-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  transform: translateZ(0);
  will-change: scroll-position;
}

.license-table-container {
  background: var(--bg-surface);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.license-modal-footer {
  padding: 0.85rem 1.35rem;
  border-top: var(--hairline);
  background-color: var(--bg-elevated);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex-shrink: 0;
}

.license-modal-cta {
  padding: 0.65rem 1.35rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

/* ─────────────────────────────────────────────────────────────
   MOBILE RESPONSIVE TRANSFORMATION (<= 768px)
   Transforms rigid 3-column table into high-performance cards
   ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  #license-compare-modal {
    padding: 0 !important;
    align-items: stretch !important;
  }

  #license-compare-modal .license-modal-dialog {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100dvh !important;
    height: 100dvh !important;
    border: none !important;
    border-radius: 0 !important;
  }

  .license-modal-header {
    padding: 0.75rem 0.85rem !important;
  }

  .license-modal-tag {
    font-size: 0.58rem !important;
  }

  .license-modal-title {
    font-size: 0.85rem !important;
    line-height: 1.25 !important;
  }

  .license-modal-close {
    padding: 0.35rem 0.6rem !important;
    font-size: 0.7rem !important;
  }

  .license-modal-body {
    padding: 0.75rem 0.75rem 1.5rem !important;
  }

  .license-table-container {
    border: none !important;
    background: transparent !important;
    overflow-x: visible !important;
  }

  /* Table structure transforms to card block */
  .license-compare-table {
    display: block !important;
    width: 100% !important;
  }

  .license-compare-table thead {
    display: none !important;
  }

  .license-compare-table tbody {
    display: block !important;
    width: 100% !important;
  }

  /* Category headers on mobile */
  .license-compare-table tr.category-row {
    display: block !important;
    margin: 1.15rem 0 0.5rem !important;
    background: var(--bg-elevated) !important;
    border: var(--hairline) !important;
    padding: 0.5rem 0.65rem !important;
  }

  .license-compare-table tr.category-row:first-child {
    margin-top: 0.25rem !important;
  }

  .license-compare-table tr.category-row td {
    display: block !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    font-size: 0.66rem !important;
    font-weight: 800 !important;
    color: var(--text-primary) !important;
    letter-spacing: 0.05em !important;
  }

  /* Feature item card on mobile */
  .license-compare-table tr:not(.category-row) {
    display: block !important;
    width: 100% !important;
    background: var(--bg-surface) !important;
    border: var(--hairline) !important;
    margin-bottom: 0.65rem !important;
    padding: 0.75rem !important;
    border-radius: 0 !important;
  }

  .license-compare-table tr:not(.category-row) td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
  }

  /* Feature title & description */
  .license-compare-table tr:not(.category-row) td:first-child {
    margin-bottom: 0.6rem !important;
    padding-bottom: 0.45rem !important;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.15) !important;
  }

  [data-theme="dark"] .license-compare-table tr:not(.category-row) td:first-child {
    border-bottom-color: rgba(255, 255, 255, 0.15) !important;
  }

  .license-compare-table .feat-name {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.2rem !important;
  }

  .license-compare-table .feat-desc {
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
  }

  /* Badges comparison block on mobile */
  .license-compare-table tr:not(.category-row) td:nth-child(2) {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.35rem 0.55rem !important;
    background: var(--bg-elevated) !important;
    border: 1px dashed rgba(0, 0, 0, 0.15) !important;
    margin-bottom: 0.35rem !important;
  }

  [data-theme="dark"] .license-compare-table tr:not(.category-row) td:nth-child(2) {
    border-color: rgba(255, 255, 255, 0.15) !important;
  }

  .license-compare-table tr:not(.category-row) td:nth-child(2)::before {
    content: "TANPA LISENSI:";
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.03em;
  }

  .license-compare-table tr:not(.category-row) td:nth-child(3) {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.4rem 0.55rem !important;
    background: rgba(0, 102, 255, 0.05) !important;
    border: 1px solid var(--accent) !important;
  }

  [data-theme="dark"] .license-compare-table tr:not(.category-row) td:nth-child(3) {
    background: rgba(96, 165, 250, 0.08) !important;
  }

  .license-compare-table tr:not(.category-row) td:nth-child(3)::before {
    content: "LISENSI RESMI (VIP):";
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.03em;
  }

  .status-pill {
    padding: 0.2rem 0.45rem !important;
    font-size: 0.68rem !important;
  }

  /* Modal Footer on Mobile */
  .license-modal-footer {
    padding: 0.75rem 0.85rem !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.45rem !important;
  }

  .license-modal-footer span {
    text-align: center !important;
    font-size: 0.66rem !important;
  }

  .license-modal-cta {
    width: 100% !important;
    padding: 0.75rem !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 0.78rem !important;
  }
}

/* ==========================================================================
   INTERACTIVE CUSTOM CURSOR (GLOBAL DESKTOP EXPERIENCE)
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  body, a, button, input, select, textarea, [role="button"] {
    cursor: none !important;
  }

  #cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    margin-left: -4px;
    background-color: var(--text-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.15s ease, background-color 0.2s ease;
  }

  #cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 34px;
    height: 34px;
    margin-top: -17px;
    margin-left: -17px;
    border: 1.5px solid var(--text-primary);
    background: transparent;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999998;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                margin 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.22s ease,
                border-color 0.22s ease,
                border-radius 0.22s ease,
                box-shadow 0.22s ease,
                opacity 0.15s ease;
  }

  #cursor-label {
    font-family: var(--font-mono, monospace);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #ffffff;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.18s ease, transform 0.18s ease;
    user-select: none;
    pointer-events: none;
  }

  /* Interactive Elements Hover (Buttons, Links, Inputs) */
  #cursor-follower.cursor-hover {
    width: 52px;
    height: 52px;
    margin-top: -26px;
    margin-left: -26px;
    background: rgba(10, 10, 10, 0.06);
    border-color: var(--accent);
    border-width: 2px;
  }

  .dark #cursor-follower.cursor-hover {
    background: rgba(0, 240, 255, 0.12);
    border-color: var(--accent);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
  }

  /* Specialized Hover: Pemilihan Paket Panel */
  /* In Light Mode: Turns Solid Black badge per user request */
  #cursor-follower.cursor-panel-hover {
    width: 48px;
    height: 48px;
    margin-top: -24px;
    margin-left: -24px;
    background-color: #0a0a0a !important;
    border-color: #0a0a0a !important;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  }

  #cursor-follower.cursor-panel-hover #cursor-label {
    opacity: 1;
    transform: scale(1);
    font-size: 0.6rem;
    font-weight: 800;
    color: #ffffff !important;
  }

  /* In Dark Mode: High-contrast Glowing Cyan badge */
  .dark #cursor-follower.cursor-panel-hover {
    width: 48px;
    height: 48px;
    margin-top: -24px;
    margin-left: -24px;
    background-color: #0a0a0a !important;
    border-color: #0a0a0a !important;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  }

  .dark #cursor-follower.cursor-panel-hover #cursor-label {
    color: #0a0a0a !important;
  }

  /* Click Bounce Effect */
  /* click scale handled smoothly via JS lerp */
}

/* Touchscreens / Mobile: completely disable custom cursor */
@media (hover: none) or (pointer: coarse) {
  #cursor-dot, #cursor-follower {
    display: none !important;
  }
}

/* ==========================================================================
   UNIFORM LICENSE DURATION GRID (5 EQUAL COLUMNS & IDENTICAL HEIGHTS)
   ========================================================================== */
.license-duration-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem;
  width: 100%;
}

@media (max-width: 900px) {
  .license-duration-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 580px) {
  .license-duration-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.license-duration-grid .license-duration-card {
  display: flex;
  width: 100%;
  height: 100%;
  min-width: 0;
  cursor: pointer;
}

.license-duration-grid .radio-pill-box {
  width: 100%;
  height: 100%;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.65rem 0.4rem;
  text-align: center;
  box-sizing: border-box;
  border: var(--hairline);
  background-color: var(--bg-elevated);
  transition: all 0.15s ease;
}

.pill-badge-slot {
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.2rem;
  width: 100%;
}

.pill-badge-slot .badge {
  font-size: 0.58rem !important;
  padding: 0.1rem 0.35rem !important;
  letter-spacing: 0.02em;
}

.pill-title {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill-price {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.license-duration-card.selected .pill-price,
.license-duration-card.selected .pill-title {
  color: var(--invert-text) !important;
}

.license-duration-grid .radio-pill-box.pill-box-featured {
  border-color: var(--accent);
}

/* ==========================================================================
   UNIFORM 4-COLUMN LICENSE DURATION GRID (PURE LICENSES ONLY)
   ========================================================================== */
.license-duration-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0.65rem;
  width: 100%;
}

@media (max-width: 768px) {
  .license-duration-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
