/* ==========================================================================
   RENTAB CYBERPUNK MANAGEMENT PORTAL - DESIGN SYSTEM & STYLESHEET
   COMPACT & MOBILE-FIRST RESPONSIVE ARCHITECTURE
   ========================================================================== */

:root {
  --bg-dark: #060810;
  --bg-card: rgba(10, 15, 29, 0.85);
  --bg-card-hover: rgba(15, 23, 42, 0.95);
  --bg-sidebar: #0a0f1d;
  --bg-input: #050811;
  --neon-cyan: #00f0ff;
  --neon-cyan-glow: rgba(0, 240, 255, 0.35);
  --neon-emerald: #00ff9d;
  --neon-emerald-glow: rgba(0, 255, 157, 0.3);
  --neon-amber: #ffe600;
  --neon-amber-glow: rgba(255, 230, 0, 0.3);
  --neon-crimson: #ff0055;
  --neon-crimson-glow: rgba(255, 0, 85, 0.3);
  --neon-magenta: #ff0077;
  --neon-purple: #a855f7;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-neon: rgba(0, 240, 255, 0.25);
  --border-active: #00f0ff;
  
  --font-display: 'Orbitron', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', 'Courier New', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 240, 255, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 0, 85, 0.03) 0%, transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #050811;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.65rem 1.5rem;
  background: rgba(10, 15, 29, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-neon);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  gap: 1.25rem;
}

.navbar-brand-section {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  font-size: 1.35rem;
  filter: drop-shadow(0 0 6px var(--neon-cyan));
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 1.2px;
  background: linear-gradient(135deg, #ffffff 0%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tag {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  display: inline-flex;
  align-items: center;
}

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

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.75rem;
  border-radius: 6px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  white-space: nowrap;
}

.nav-link-item:hover {
  color: #fff;
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
  transform: translateY(-1px);
}

.nav-link-item.active {
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px var(--neon-cyan-glow);
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.65rem;
  background: rgba(5, 8, 17, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-size: 0.8rem;
}

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--neon-cyan);
  color: #050811;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.72rem;
  flex-shrink: 0;
}

/* ==========================================================================
   BUTTONS & ACTIONS
   ========================================================================== */
.btn {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--neon-cyan);
  color: #050811;
  box-shadow: 0 0 12px var(--neon-cyan-glow);
}
.btn-primary:hover {
  background: #38f4ff;
  box-shadow: 0 0 20px var(--neon-cyan-glow);
  transform: translateY(-1px);
}

.btn-emerald {
  background: var(--neon-emerald);
  color: #050811;
  box-shadow: 0 0 12px var(--neon-emerald-glow);
}
.btn-emerald:hover {
  background: #33ffb1;
  box-shadow: 0 0 20px var(--neon-emerald-glow);
  transform: translateY(-1px);
}

.btn-danger {
  background: rgba(255, 0, 85, 0.15);
  color: var(--neon-crimson);
  border: 1px solid var(--neon-crimson);
}
.btn-danger:hover {
  background: var(--neon-crimson);
  color: #ffffff;
  box-shadow: 0 0 15px var(--neon-crimson-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(5, 8, 17, 0.7);
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
}
.btn-outline:hover {
  background: rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 12px var(--neon-cyan-glow);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.32rem 0.65rem;
  font-size: 0.72rem;
  border-radius: 5px;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   LANDING / HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--border-neon);
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: 0.8px;
}

.hero-title .highlight {
  color: var(--neon-cyan);
  text-shadow: 0 0 15px var(--neon-cyan-glow);
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.feature-card:hover {
  border-color: var(--border-neon);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.08);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.feature-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Auth Cards Wrapper */
.auth-card-wrapper {
  max-width: 420px;
  margin: 2.5rem auto;
  padding: 0 1rem;
}

/* ==========================================================================
   DASHBOARDS (MEMBER & ADMIN)
   ========================================================================== */
.dashboard-container {
  max-width: 1240px;
  margin: 1.5rem auto 3.5rem;
  padding: 0 1.25rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.dashboard-title-group h1 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.8px;
}

.dashboard-title-group p {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 2px;
}

.dashboard-header-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.deposit-balance-card {
  background: #050811;
  border: 1px solid var(--neon-emerald);
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 0 10px var(--neon-emerald-glow);
}

/* Stat Cards Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.9rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  transition: all 0.2s ease;
}

.stat-card:hover {
  border-color: var(--border-neon);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.stat-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--border-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ==========================================================================
   LICENSE HERO CARD (COUNTDOWN & TELEMETRY)
   ========================================================================== */
.license-banner-card {
  background: linear-gradient(135deg, rgba(10, 15, 29, 0.95) 0%, rgba(13, 20, 36, 0.95) 100%);
  border: 1.5px solid var(--neon-cyan);
  box-shadow: 0 0 20px var(--neon-cyan-glow);
  border-radius: 12px;
  padding: 1.4rem;
  margin-bottom: 1.8rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.license-info-col .tag {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--neon-cyan);
  margin-bottom: 0.4rem;
}

.license-key-box {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #050811;
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--border-neon);
  margin: 0.35rem 0;
}

.license-key-text {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: bold;
  color: #ffffff;
  letter-spacing: 1px;
}

.copy-btn {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  line-height: 1;
}
.copy-btn:hover {
  background: var(--neon-cyan);
  color: #050811;
  box-shadow: 0 0 8px var(--neon-cyan-glow);
}

/* Countdown Clock */
.countdown-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.countdown-segment {
  background: #050811;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  text-align: center;
  min-width: 52px;
}

.countdown-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--neon-emerald);
  line-height: 1;
}

.countdown-num.warning {
  color: var(--neon-amber);
}

.countdown-num.expired {
  color: var(--neon-crimson);
}

.countdown-unit {
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* ==========================================================================
   TABS & PANELS
   ========================================================================== */
.tabs-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  background: transparent;
  border: none;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.tab-btn.active {
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--border-neon);
}

/* ==========================================================================
   TABLES & LISTS
   ========================================================================== */
.table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.82rem;
}

.custom-table th {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--neon-cyan);
  background: #050811;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  text-transform: uppercase;
  white-space: nowrap;
}

.custom-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  vertical-align: middle;
}

.custom-table tr:hover {
  background: rgba(0, 240, 255, 0.025);
}

/* Status Badges & Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.status-pill.online {
  background: rgba(0, 255, 157, 0.12);
  color: var(--neon-emerald);
  border: 1px solid var(--neon-emerald);
}

.status-pill.offline {
  background: rgba(255, 0, 85, 0.12);
  color: var(--neon-crimson);
  border: 1px solid var(--neon-crimson);
}

.status-pill.active {
  background: rgba(0, 240, 255, 0.12);
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
}

.status-pill.expired {
  background: rgba(255, 0, 85, 0.12);
  color: var(--neon-crimson);
  border: 1px solid var(--neon-crimson);
}

.status-pill.warning {
  background: rgba(255, 230, 0, 0.12);
  color: var(--neon-amber);
  border: 1px solid var(--neon-amber);
}

.live-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  animation: pulseAnimation 1.5s infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

/* Battery Indicator Widget */
.battery-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 0.78rem;
  color: var(--neon-emerald);
  padding: 3px 6px;
  border-radius: 5px;
  border: 1px solid currentColor;
  background: rgba(0, 255, 157, 0.08);
  white-space: nowrap;
}

/* ==========================================================================
   MODALS & POPUPS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 8, 17, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #0a0f1d;
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 25px var(--neon-cyan-glow);
  border-radius: 12px;
  width: 100%;
  max-width: 460px;
  padding: 1.5rem;
  position: relative;
  transform: translateY(15px);
  transition: transform 0.2s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-card.modal-card-lg {
  max-width: 840px;
}

.modal-backdrop.open .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.6px;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--neon-crimson);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 2px 6px;
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--neon-cyan);
  letter-spacing: 0.6px;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.form-input, .form-select {
  width: 100%;
  background: #050811;
  border: 1px solid var(--border-neon);
  border-radius: 6px;
  padding: 0.6rem 0.85rem;
  color: #ffffff;
  font-size: 0.88rem;
  font-family: var(--font-body);
  transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan-glow);
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.plan-radio-card {
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  background: #050811;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.plan-radio-card:hover, .plan-radio-card.selected {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 12px var(--neon-cyan-glow);
}

.plan-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
}

.plan-price {
  font-size: 0.75rem;
  color: var(--neon-emerald);
  font-weight: bold;
  margin-top: 2px;
}

/* ==========================================================================
   FINANCIAL REPORTS & CHARTS STYLES
   ========================================================================== */
.financial-section-card {
  margin-bottom: 2rem;
  background: rgba(10, 15, 29, 0.75);
  border: 1px solid var(--border-neon);
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.financial-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.85rem;
}

.financial-controls-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.financial-filter-group {
  display: inline-flex;
  background: #050811;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 2px;
}

.fin-period-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.fin-period-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.fin-period-btn.active {
  background: rgba(0, 240, 255, 0.15);
  color: var(--neon-cyan);
  border: 1px solid var(--border-neon);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.25);
}

.financial-chart-box {
  background: #050811;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.financial-chart-container {
  position: relative;
  height: 240px;
  width: 100%;
}

/* ==========================================================================
   MEMBER PROFILE & SECURITY STYLES
   ========================================================================== */
.profile-hero-card {
  background: linear-gradient(135deg, rgba(10, 15, 29, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid var(--border-neon);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  padding: 1.4rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.profile-hero-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 100%;
  background: radial-gradient(circle at right center, rgba(0, 240, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.profile-avatar-large {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-cyan) 0%, #0077ff 100%);
  color: #050811;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  flex-shrink: 0;
  box-shadow: 0 0 20px var(--neon-cyan-glow);
  border: 2px solid #ffffff;
}

.profile-hero-info {
  flex: 1;
  min-width: 240px;
}

.profile-hero-stats {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.profile-stat-box {
  background: #050811;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  min-width: 120px;
  display: flex;
  flex-direction: column;
}

.profile-stat-lbl {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-stat-val {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.2;
  margin-top: 2px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper .form-input {
  padding-right: 2.8rem;
}

.password-toggle-btn {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  font-size: 1rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle-btn:hover {
  color: var(--neon-cyan);
  filter: drop-shadow(0 0 4px var(--neon-cyan-glow));
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 90vw;
}

.toast {
  background: #0a0f1d;
  border: 1px solid var(--neon-cyan);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  color: #ffffff;
  font-size: 0.82rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: toastSlideIn 0.25s ease;
}

.toast.success { border-color: var(--neon-emerald); }
.toast.error { border-color: var(--neon-crimson); }
.toast.info { border-color: var(--neon-cyan); }

@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer .highlight {
  color: var(--neon-cyan);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (TABLETS & SMARTPHONES)
   ========================================================================== */

/* Medium Devices (Tablets, max-width: 992px) */
@media (max-width: 992px) {
  .license-banner-card {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

/* Small Devices (Tablets / Phablets, max-width: 768px) */
@media (max-width: 768px) {
  html {
    font-size: 13.5px;
  }

  .navbar {
    padding: 0.45rem 0.75rem;
  }

  .navbar-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.35rem 0.5rem;
  }

  .navbar-brand-section {
    order: 1;
  }

  .nav-links {
    order: 2;
    gap: 0.4rem;
  }

  .navbar-nav {
    order: 3;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-top: 1px solid rgba(0, 240, 255, 0.12);
    padding-top: 0.35rem;
    padding-bottom: 0.1rem;
  }

  .navbar-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link-item {
    flex-shrink: 0;
    padding: 0.3rem 0.55rem;
    font-size: 0.7rem;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .hero-section {
    padding: 2.5rem 1rem 2rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-desc {
    font-size: 0.9rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
    margin: 2rem auto;
  }

  .dashboard-container {
    padding: 0 1rem;
    margin: 1.25rem auto 3rem;
  }

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

  .dashboard-header-actions {
    width: 100%;
  }

  .deposit-balance-card {
    width: 100%;
    justify-content: space-between;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-card {
    padding: 0.8rem 0.9rem;
    gap: 0.75rem;
  }

  .stat-icon-wrapper {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }

  .stat-value {
    font-size: 1.3rem;
  }

  .financial-header-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .financial-controls-bar {
    width: 100%;
  }

  .financial-filter-group {
    width: 100%;
    justify-content: space-between;
  }

  .fin-period-btn {
    flex: 1;
    text-align: center;
    padding: 5px 6px;
    font-size: 0.7rem;
  }

  .financial-chart-container {
    height: 200px;
  }
}

/* ==========================================================================
   DOWNLOAD & SETUP GUIDE STYLES
   ========================================================================== */
.view-header-banner {
  text-align: center;
  padding: 2.2rem 1rem 1.5rem;
  max-width: 900px;
  margin: 0 auto 1.5rem;
}

.view-header-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-bottom: 0.85rem;
  letter-spacing: 0.6px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.view-header-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 0.65rem;
}

.view-header-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

.download-highlight-card {
  background: linear-gradient(145deg, rgba(10, 15, 29, 0.95) 0%, rgba(5, 25, 45, 0.9) 100%);
  border: 1.5px solid var(--neon-cyan);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.18), inset 0 0 20px rgba(0, 240, 255, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.download-highlight-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.download-apk-meta {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.apk-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.12);
  border: 1.5px solid var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 20px var(--neon-cyan-glow);
  flex-shrink: 0;
}

.apk-info-details h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
}

.apk-meta-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.35rem;
}

.meta-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: #050811;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.meta-badge.highlight {
  border-color: var(--neon-emerald);
  color: var(--neon-emerald);
  font-weight: 700;
  background: rgba(0, 255, 157, 0.08);
}

.btn-download-pulse {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 0.85rem 1.85rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--neon-cyan) 0%, #00b4d8 100%);
  color: #050811;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 0 25px var(--neon-cyan-glow);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-download-pulse:hover {
  background: linear-gradient(135deg, #38f4ff 0%, var(--neon-cyan) 100%);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.7), 0 0 10px #fff;
  transform: translateY(-2px) scale(1.02);
}

.btn-download-emerald {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 0.85rem 1.85rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--neon-emerald) 0%, #00b894 100%);
  color: #050811;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 0 25px var(--neon-emerald-glow);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-download-emerald:hover {
  background: linear-gradient(135deg, #55ffb8 0%, var(--neon-emerald) 100%);
  box-shadow: 0 0 35px rgba(0, 255, 157, 0.7), 0 0 10px #fff;
  transform: translateY(-2px) scale(1.02);
}

.download-grid-dual {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.35rem;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.step-card:hover {
  border-color: var(--neon-cyan);
  background: var(--bg-card-hover);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.12);
  transform: translateY(-2px);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.step-num-badge {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(0, 240, 255, 0.12);
  border: 1.5px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--neon-cyan-glow);
}

.step-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.4px;
}

.step-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex-grow: 1;
}

.step-code-box {
  background: #050811;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon-cyan);
  margin-top: 0.75rem;
  word-break: break-all;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

/* ==========================================================================
   DIAGRAM WIRING VIEWER STYLES
   ========================================================================== */
.diagram-card-container {
  background: var(--bg-card);
  border: 1px solid var(--border-neon);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.1);
}

.diagram-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.diagram-image-wrapper {
  background: #03050a;
  border: 1.5px solid rgba(0, 240, 255, 0.25);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  transition: all 0.25s ease;
}

.diagram-image-wrapper:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.25);
}

.diagram-image-wrapper img {
  max-width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: contain;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.diagram-image-wrapper:hover img {
  transform: scale(1.01);
}

.diagram-zoom-hint {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(5, 8, 17, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--neon-cyan);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  box-shadow: 0 0 12px var(--neon-cyan-glow);
}

/* Hardware Breakdown Cards */
.hardware-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.hardware-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.25rem;
  transition: all 0.2s ease;
}

.hardware-card:hover {
  border-color: var(--border-neon);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.hardware-card-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.6rem;
}

.pinout-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.pin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #050811;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
}

.pin-tag {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
}

.pin-target {
  color: var(--text-muted);
  font-weight: 500;
}

/* Lightbox Modal for Diagram Image Fullscreen */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  cursor: zoom-out;
}

.lightbox-modal.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.lightbox-img-wrapper {
  max-width: 95vw;
  max-height: 92vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.3);
  background: #04060c;
}

.lightbox-close-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #050811;
  border: 1.5px solid var(--neon-cyan);
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 15px var(--neon-cyan-glow);
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: var(--neon-crimson);
  border-color: var(--neon-crimson);
  transform: rotate(90deg) scale(1.1);
}


/* Smartphone Portrait (< 480px) */
@media (max-width: 480px) {
  html {
    font-size: 13px;
  }

  .navbar {
    padding: 0.4rem 0.5rem;
  }

  .navbar-container {
    gap: 0.3rem 0.4rem;
  }

  .brand-icon {
    font-size: 1.15rem;
  }

  .brand-name {
    font-size: 0.95rem;
    letter-spacing: 0.6px;
  }

  .brand-tag {
    display: none;
  }

  .nav-links {
    gap: 0.3rem;
  }

  .user-badge {
    padding: 0.18rem 0.35rem;
  }

  .user-avatar {
    width: 20px;
    height: 20px;
    font-size: 0.6rem;
  }

  #nav-user-name {
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
    font-size: 0.72rem;
  }

  .btn-sm {
    padding: 0.22rem 0.42rem;
    font-size: 0.65rem;
  }

  .navbar-nav {
    gap: 0.25rem;
    padding-top: 0.3rem;
  }

  .nav-link-item {
    padding: 0.25rem 0.45rem;
    font-size: 0.67rem;
  }

  .hero-section {
    padding: 2rem 0.75rem 1.5rem;
  }

  .hero-tag {
    font-size: 0.68rem;
    padding: 0.25rem 0.65rem;
    margin-bottom: 0.85rem;
  }

  .hero-title {
    font-size: 1.45rem;
    letter-spacing: 0.5px;
    margin-bottom: 0.85rem;
  }

  .hero-desc {
    font-size: 0.82rem;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

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

  .features-grid {
    padding: 0 0.75rem;
    gap: 0.85rem;
    margin: 1.5rem auto;
  }

  .feature-card {
    padding: 1.15rem;
  }

  .dashboard-container {
    padding: 0 0.75rem;
    margin: 1rem auto 2.5rem;
  }

  .dashboard-title-group h1 {
    font-size: 1.2rem;
  }

  .dashboard-title-group p {
    font-size: 0.72rem;
  }

  /* 2-column compact grid for smartphone screen */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
  }

  .stat-card {
    padding: 0.65rem 0.65rem;
    gap: 0.55rem;
  }

  .stat-icon-wrapper {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    border-radius: 6px;
  }

  .stat-value {
    font-size: 1.15rem;
  }

  .stat-label {
    font-size: 0.6rem;
    letter-spacing: 0.3px;
  }

  /* Countdown Segments on Phone */
  .license-banner-card {
    padding: 1rem;
    gap: 1rem;
  }

  .countdown-container {
    gap: 0.35rem;
    justify-content: space-between;
    width: 100%;
  }

  .countdown-segment {
    min-width: 44px;
    padding: 0.35rem 0.4rem;
    flex: 1;
  }

  .countdown-num {
    font-size: 1.15rem;
  }

  .countdown-unit {
    font-size: 0.52rem;
  }

  .license-key-box {
    width: 100%;
    justify-content: space-between;
    padding: 0.4rem 0.6rem;
  }

  .license-key-text {
    font-size: 0.9rem;
  }

  /* Modals on Phone */
  .modal-backdrop {
    padding: 0.5rem;
  }

  .modal-card {
    padding: 1.15rem 0.85rem;
    max-width: 100% !important;
    border-radius: 10px;
  }

  .modal-title {
    font-size: 1rem;
  }

  /* Table Adjustments on Phone */
  .custom-table {
    font-size: 0.76rem;
  }

  .custom-table th, .custom-table td {
    padding: 0.55rem 0.65rem;
  }

  /* Financial Controls */
  #finance-filter-tablet, #finance-filter-date {
    width: 100% !important;
    font-size: 0.78rem;
  }

  /* Toast Container */
  .toast-container {
    bottom: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
    max-width: 100%;
  }

  .toast {
    font-size: 0.78rem;
    padding: 0.55rem 0.75rem;
  }

  /* Download & Diagram Mobile Adjustments */
  .view-header-title {
    font-size: 1.35rem;
  }

  .view-header-desc {
    font-size: 0.78rem;
  }

  .download-highlight-card {
    padding: 1.15rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .download-grid-dual {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .btn-download-pulse, .btn-download-emerald {
    width: 100%;
    justify-content: center;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
  }

  .steps-grid, .hardware-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .diagram-image-wrapper {
    padding: 0.65rem;
  }

  .diagram-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .diagram-toolbar .btn {
    width: 100%;
  }
}

/* ==========================================================================
   DEVICE DIAGNOSTICS & SUBSYSTEM MODAL (CYBERPUNK STYLING)
   ========================================================================== */
.diag-modal-card {
  max-width: 860px;
  background: linear-gradient(145deg, rgba(8, 12, 24, 0.98) 0%, rgba(13, 19, 36, 0.98) 100%);
  border: 1.5px solid var(--neon-cyan);
  box-shadow: 0 0 35px var(--neon-cyan-glow), inset 0 0 15px rgba(0, 240, 255, 0.05);
  border-radius: 14px;
}

.diag-top-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: rgba(5, 8, 17, 0.85);
  border: 1px solid var(--border-neon);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.15rem;
}

.diag-badges-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.diag-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .diag-grid-2col {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

.diag-section-card {
  background: #050811;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.diag-section-card:hover {
  border-color: var(--border-neon);
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.08);
}

.diag-card-tag {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--neon-cyan);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.diag-card-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 6px;
}

.diag-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.diag-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.78rem;
  transition: background 0.15s ease;
}

.diag-item-row:hover {
  background: rgba(0, 240, 255, 0.04);
  border-color: rgba(0, 240, 255, 0.12);
}

.diag-item-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.diag-item-value {
  color: #ffffff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  text-align: right;
  word-break: break-all;
}

.diag-item-value.cyber-highlight {
  color: var(--neon-cyan);
}

.diag-item-value.emerald-highlight {
  color: var(--neon-emerald);
}

.diag-item-value.amber-highlight {
  color: var(--neon-amber);
}

.diag-item-value.crimson-highlight {
  color: var(--neon-crimson);
}

/* Battery Progress Bar in Diagnostics */
.diag-battery-bar-wrapper {
  margin-top: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  height: 8px;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.diag-battery-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.4s ease, background-color 0.4s ease;
}

.diag-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   LIVE SCREEN MONITOR CYBERPUNK STYLES
   ========================================================================== */
.live-modal-card {
  max-width: 960px;
  width: 95vw;
  background: var(--bg-card);
  border: 1px solid rgba(255, 0, 85, 0.4);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 0, 85, 0.15);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.live-rec-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  background-color: #ff0055;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff0055, 0 0 14px rgba(255, 0, 85, 0.8);
  animation: liveRecBlink 1.2s infinite ease-in-out;
}

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

.live-monitor-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 70vh;
  background: #020409;
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 8px;
  overflow: hidden;
  margin: 0.75rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.95);
}

.live-screen-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

/* CRT Scanline & Grid Effect */
.live-scanline-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%,
    rgba(0, 0, 0, 0.25) 50%
  ), linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.03),
    rgba(0, 255, 0, 0.01),
    rgba(0, 0, 255, 0.03)
  );
  background-size: 100% 3px, 6px 100%;
  opacity: 0.6;
  z-index: 5;
}

/* HUD Overlay Elements */
.live-hud-top-left {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}

.live-hud-badge {
  background: rgba(5, 8, 17, 0.85);
  border: 1px solid rgba(255, 0, 85, 0.6);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  color: #ff3377;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
  box-shadow: 0 0 10px rgba(255, 0, 85, 0.3);
}

.live-hud-info {
  background: rgba(5, 8, 17, 0.75);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--neon-cyan);
  display: inline-block;
  width: fit-content;
}

.live-hud-top-right {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  pointer-events: none;
}

.live-hud-metric {
  background: rgba(5, 8, 17, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  backdrop-filter: blur(4px);
}

/* Overlay States (Loading & Offline) */
.live-screen-overlay-state {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 4, 9, 0.88);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 15;
}

.live-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(0, 240, 255, 0.15);
  border-top-color: var(--neon-cyan);
  border-radius: 50%;
  animation: liveSpin 0.9s linear infinite;
  box-shadow: 0 0 15px var(--neon-cyan-glow);
}

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

/* Controls Toolbar */
.live-controls-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.live-controls-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.live-control-item {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #050811;
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: 6px;
}

.live-control-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  font-family: var(--font-display);
  letter-spacing: 0.5px;
}

.live-select-compact {
  padding: 2px 6px;
  font-size: 0.75rem;
  height: 28px;
  background: transparent;
  border: none;
  color: var(--neon-cyan);
  font-weight: bold;
  cursor: pointer;
}

.live-select-compact:focus {
  outline: none;
}

/* ==========================================================================
   PAYMENT GATEWAY & QRIS MODAL CYBER STYLES
   ========================================================================== */

.qris-container-card {
  background: #050811;
  border: 1px solid var(--border-neon);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.08);
}

.qris-qr-wrapper {
  position: relative;
  display: inline-block;
  background: #ffffff;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25), 0 0 40px rgba(0, 255, 157, 0.15);
  margin: 0.75rem auto 1rem;
  max-width: 240px;
}

.qris-qr-image {
  width: 100%;
  max-width: 216px;
  height: auto;
  aspect-ratio: 1/1;
  display: block;
  border-radius: 6px;
}

.qris-scan-laser {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00f0ff, #00ff9d, transparent);
  box-shadow: 0 0 10px #00f0ff, 0 0 20px #00ff9d;
  animation: qrisScanLaser 2.2s ease-in-out infinite alternate;
  border-radius: 2px;
}

@keyframes qrisScanLaser {
  0% {
    top: 5%;
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
  100% {
    top: 92%;
    opacity: 0.3;
  }
}

.qris-amount-badge {
  background: rgba(0, 255, 157, 0.08);
  border: 1px solid var(--neon-emerald);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  margin-bottom: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qris-countdown-box {
  background: rgba(255, 230, 0, 0.08);
  border: 1px solid var(--neon-amber);
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-amber);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.85rem;
}

.qris-status-waiting {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--neon-cyan);
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.qris-success-card {
  text-align: center;
  padding: 1.5rem 1rem;
}

.qris-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 255, 157, 0.15);
  border: 2px solid var(--neon-emerald);
  color: var(--neon-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 1rem;
  box-shadow: 0 0 30px var(--neon-emerald-glow);
  animation: pulseSuccess 1.5s infinite alternate;
}

@keyframes pulseSuccess {
  0% { transform: scale(0.95); box-shadow: 0 0 15px var(--neon-emerald-glow); }
  100% { transform: scale(1.05); box-shadow: 0 0 35px var(--neon-emerald-glow); }
}

.qris-logos-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 0.6rem;
  font-family: var(--font-mono);
}


