/* Copyright (c) 2026 Eko Wahyudi - esaDigitalPRO. All rights reserved. */

/**
 * PORTAL MEMBER STYLING (esaDigitalPRO - Jarvis AI Studio)
 * Modern, Dark Luxury (#070d1e), Glassmorphic, Mobile-First
 */

:root {
  --bg-main: #070d1e;
  --bg-card: rgba(13, 23, 48, 0.85);
  --bg-card-hover: rgba(19, 34, 71, 0.95);
  --bg-card-locked: rgba(13, 23, 48, 0.5);
  --bg-card-alt: #0a1329;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 210, 255, 0.5);
  --border-cyan: rgba(0, 210, 255, 0.4);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Palet Resmi Logo esaDigitalPRO */
  --brand-cyan: #00d2ff;
  --brand-cyan-light: #38bdf8;
  --brand-cyan-hover: #00b4d8;
  --brand-blue: #0284c7;
  --brand-blue-deep: #1d4ed8;
  --brand-cyan-glow: rgba(0, 210, 255, 0.35);

  --gold: #00d2ff;
  --gold-hover: #00b4d8;
  --gold-glow: rgba(0, 210, 255, 0.25);

  --cyan: #00d2ff;
  --cyan-hover: #00b4d8;
  --cyan-glow: rgba(0, 210, 255, 0.25);

  --emerald: #10b981;
  --rose: #f43f5e;
  --amber: #00d2ff;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 24px rgba(0, 210, 255, 0.3);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

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

html {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, #112042 0%, var(--bg-main) 70%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Header & Navbar */
.portal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(7, 13, 30, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.875rem 0;
}

.portal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo-img {
  height: 38px;
  max-width: 170px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 210, 255, 0.25));
}

.portal-badge {
  font-size: 0.725rem;
  font-weight: 800;
  color: var(--brand-cyan);
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.35);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.login-brand-logo {
  height: 48px;
  max-width: 210px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 18px rgba(0, 210, 255, 0.35));
}

.brand-logo-icon,
.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  object-fit: contain;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, rgba(2, 132, 199, 0.05) 70%);
  border: 1px solid rgba(0, 210, 255, 0.35);
  box-shadow: 0 4px 14px rgba(0, 210, 255, 0.25);
  padding: 3px;
  display: block;
}

.brand-text h1 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.brand-text span,
.brand-text .brand-subtitle {
  font-size: 0.75rem;
  color: var(--brand-cyan);
  font-weight: 700;
  letter-spacing: 0.75px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  color: var(--text-main);
}

.user-badge .plan-pill {
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.plan-pill.demo {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.plan-pill.bulanan {
  background: rgba(6, 182, 212, 0.2);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.plan-pill.tahunan {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.plan-pill.selamanya {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 70, 239, 0.3));
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

.btn-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 1.125rem;
  transition: var(--transition-fast);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  min-height: 44px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: var(--transition-fast);
}

.nav-link-btn:hover,
.nav-link-btn.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-color);
}

/* Main Content Area */
.portal-main {
  flex: 1;
  padding: 1.5rem 0 3rem;
}

/* Views Management */
.portal-view {
  display: none;
}

.portal-view.active {
  display: block;
}

/* Alerts & Banners */
.banner-demo {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.15) 0%, rgba(234, 88, 12, 0.15) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  backdrop-filter: blur(8px);
}

@media (min-width: 768px) {
  .banner-demo {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.banner-demo-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.banner-demo-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.banner-demo-text strong {
  display: block;
  font-size: 0.9375rem;
  color: #fbbf24;
}

.banner-demo-text span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Announcements Pinned */
.announcement-box {
  background: var(--bg-card);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.875rem;
}

.announcement-icon {
  font-size: 1.25rem;
  color: var(--cyan);
  line-height: 1;
}

.announcement-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.announcement-body {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.announcement-date {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.375rem;
}

/* Section Headers */
.section-header {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

@media (min-width: 640px) {
  .section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Category Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  white-space: nowrap;
  padding: 0.5rem 1rem;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.tab-btn.active {
  background: linear-gradient(135deg, #00d2ff 0%, #0284c7 100%);
  color: #04101e;
  font-weight: 700;
  border-color: #00d2ff;
  box-shadow: 0 2px 12px rgba(0, 210, 255, 0.4);
}

/* Module Grid */
.module-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .module-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .module-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Module Card */
.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.module-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg);
}

.module-card.locked {
  background: var(--bg-card-locked);
  border-color: rgba(255, 255, 255, 0.05);
}

.module-card.locked:hover {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}

/* ============================================================== */
/* CYBERTON-STYLE TOOL CARDS (UKURAN & BENTUK SESUAI PERMINTAAN)  */
/* ============================================================== */
#tab-panel-components .module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 1200px) {
  #tab-panel-components .module-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cyber-tool-card {
  background: rgba(11, 15, 25, 0.7);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.cyber-tool-card:hover {
  transform: translateY(-4px);
}

.cyber-tool-card.glow-amber:hover,
.cyber-tool-card.glow-amber:first-child {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.22);
}

.cyber-tool-card.glow-cyan:hover {
  border-color: rgba(0, 210, 255, 0.6);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.22);
}

.cyber-tool-card.glow-emerald:hover {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.22);
}

.cyber-card-top-content {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cyber-tool-media {
  width: 100%;
  height: 175px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cyber-tool-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.cyber-tool-card:hover .cyber-tool-img {
  transform: scale(1.05);
}

.cyber-tool-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
}

.cyber-fallback-icon {
  font-size: 3rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.cyber-badge-floating {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

.cyber-badge-floating.badge-premium {
  background: rgba(245, 158, 11, 0.22);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.cyber-badge-floating.badge-locked {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.cyber-tool-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
}

.cyber-tool-title {
  font-size: 0.875rem;
  font-weight: 800;
  color: #f8fafc;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  transition: color 0.2s ease;
}

.cyber-tool-card:hover .cyber-tool-title {
  color: var(--brand-cyan, #00d2ff);
}

.cyber-tool-icon {
  margin-right: 0.25rem;
  display: inline-block;
}

.cyber-tool-desc {
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}

.cyber-card-bottom-actions {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cyber-action-btn {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  outline: none;
}

/* Tombol Amber / Emas (Sesuai Card 1) */
.cyber-action-btn.cyber-btn-amber {
  background: #f59e0b;
  color: #020617;
  border-color: #fbbf24;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.cyber-action-btn.cyber-btn-amber:hover {
  background: #fbbf24;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
  transform: translateY(-1px);
}

/* Tombol Biru / Sian (Sesuai Card 2 & 3) */
.cyber-action-btn.cyber-btn-cyan {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.cyber-action-btn.cyber-btn-cyan:hover {
  background: #0ea5e9;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
  transform: translateY(-1px);
}

/* Tombol Hijau Emerald (Sesuai Card 4) */
.cyber-action-btn.cyber-btn-emerald {
  background: #10b981;
  color: #020617;
  border-color: #34d399;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.cyber-action-btn.cyber-btn-emerald:hover {
  background: #34d399;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  transform: translateY(-1px);
}

/* Tombol Terkunci */
.cyber-action-btn.cyber-btn-locked {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.35);
}

.cyber-action-btn.cyber-btn-locked:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.6);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.module-icon-wrap {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.module-card.locked .module-icon-wrap {
  opacity: 0.7;
}

.module-badge-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  text-transform: uppercase;
}

.locked-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.module-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.module-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex: 1;
}

/* Action Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #00d2ff 0%, #0284c7 60%, #1d4ed8 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 210, 255, 0.5);
  box-shadow: 0 4px 16px rgba(0, 210, 255, 0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 210, 255, 0.5);
  filter: brightness(1.1);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-locked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 1rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px dashed rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.btn-locked:hover {
  background: rgba(245, 158, 11, 0.2);
  border-style: solid;
  border-color: var(--gold);
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
}

.video-thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 ratio default */
  background: #000;
  overflow: hidden;
}

.video-thumb-wrap.ratio-9-16 {
  padding-top: 125%;
  /* Vertical format preview */
}

.video-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.video-card:hover .video-thumb {
  transform: scale(1.05);
}

.video-thumb-tiktok-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 50%, #111827 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #f43f5e;
}

.video-thumb-tiktok-placeholder .tiktok-logo-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 0 12px rgba(244, 63, 94, 0.6));
}

.video-thumb-tiktok-placeholder .tiktok-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.5px;
  background: rgba(244, 63, 94, 0.2);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: rgba(245, 158, 11, 0.9);
  color: #070d1e;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.video-card:hover .video-play-overlay {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--gold);
}

.video-info {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.video-badges-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.video-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.15);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.video-badge.platform-youtube {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.35);
}

.video-badge.platform-shorts {
  background: rgba(220, 38, 38, 0.25);
  color: #fca5a5;
  border-color: rgba(220, 38, 38, 0.45);
}

.video-badge.platform-tiktok {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.4);
}

.video-ratio-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.video-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.video-notes {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Quick Bar Footer */
.quick-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .quick-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.quick-bar-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.quick-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.quick-bar-item strong {
  color: var(--text-main);
}

/* Account Settings View */
.settings-container {
  max-width: 780px;
  margin: 0 auto;
}

.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

@media (min-width: 640px) {
  .settings-card {
    padding: 2rem;
  }
}

.settings-card-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.settings-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
}

.settings-card-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}

.form-control {
  width: 100%;
  min-height: 46px;
  padding: 0.625rem 0.875rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.9375rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.form-control:read-only {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
  cursor: not-allowed;
}

.password-input-wrap {
  position: relative;
}

.btn-toggle-pwd {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 1.125rem;
  padding: 0.25rem;
}

.btn-toggle-pwd:hover {
  color: var(--text-main);
}

/* Devices List */
.device-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
}

.device-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.device-icon {
  font-size: 1.25rem;
  color: var(--cyan);
}

.device-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.device-time {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.device-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Login View Styling */
.login-container {
  max-width: 440px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

@media (min-width: 480px) {
  .login-card {
    padding: 2.5rem 2rem;
  }
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header .logo-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 0.75rem;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.18) 0%, rgba(2, 132, 199, 0.05) 70%);
  border: 1px solid rgba(0, 210, 255, 0.4);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0, 210, 255, 0.3);
  padding: 6px;
}

.login-header .logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.login-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.login-header p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.375rem;
}

.login-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  display: none;
}

.login-alert.error {
  display: block;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fda4af;
}

.login-alert.warning {
  display: block;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde047;
}

.login-alert.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #86efac;
}

.login-footer-links {
  margin-top: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.login-footer-links a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
}

.demo-entry-box {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-md);
  padding: 0.875rem;
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
}

.demo-entry-box strong {
  display: block;
  color: #67e8f9;
  margin-bottom: 0.25rem;
}

/* Tombol Aksi Telegram Bot 24 Jam */
.login-bot-action-wrap {
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
}

.btn-telegram-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.15), rgba(0, 210, 255, 0.2));
  border: 1px solid rgba(0, 210, 255, 0.45);
  border-radius: var(--radius-md);
  color: #00d2ff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.15);
}

.btn-telegram-action:hover {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.3), rgba(0, 210, 255, 0.35));
  border-color: #00d2ff;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.3);
}

.btn-telegram-action .tg-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn-telegram-action:hover .tg-icon {
  transform: scale(1.15) rotate(-6deg);
}

.btn-admin-wa-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.15), rgba(18, 140, 126, 0.25));
  border: 1px solid rgba(37, 211, 102, 0.45);
  border-radius: var(--radius-md);
  color: #25D366;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.15);
}

.btn-admin-wa-action:hover {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.3), rgba(18, 140, 126, 0.4));
  border-color: #25D366;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.btn-admin-wa-action .wa-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn-admin-wa-action:hover .wa-icon {
  transform: scale(1.15);
}

/* Modal Saluran Bantuan */
.help-channel-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.help-channel-card:hover {
  transform: translateY(-2px);
}

.help-channel-card.telegram-channel {
  border-color: rgba(0, 210, 255, 0.35);
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12), rgba(0, 210, 255, 0.08));
}

.help-channel-card.telegram-channel:hover {
  border-color: #00d2ff;
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.25);
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.22), rgba(0, 210, 255, 0.18));
}

.help-channel-card.whatsapp-channel {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.08));
}

.help-channel-card.whatsapp-channel:hover {
  border-color: #10b981;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(5, 150, 105, 0.18));
}

.channel-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-icon-wrap.tg {
  background: rgba(0, 210, 255, 0.15);
  color: #00d2ff;
  border: 1px solid rgba(0, 210, 255, 0.3);
}

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

.channel-info {
  flex: 1;
}

.channel-arrow {
  color: var(--text-muted);
  font-size: 1.15rem;
  font-weight: 700;
  transition: transform 0.2s ease, color 0.2s ease;
}

.help-channel-card:hover .channel-arrow {
  color: #ffffff;
  transform: translate(2px, -2px);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

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

.modal-dialog {
  background: var(--bg-card-alt);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-dialog.wide {
  max-width: 960px;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

/* Upgrade Cards in Modal */
.upgrade-tier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .upgrade-tier-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tier-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tier-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.tier-card.selected {
  border-color: var(--gold);
  background: rgba(245, 158, 11, 0.08);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.tier-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: linear-gradient(135deg, #00d2ff 0%, #0284c7 100%);
  color: #04101e;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 210, 255, 0.35);
}

.tier-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.tier-strike {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.tier-price {
  font-size: 1.375rem;
  font-weight: 800;
  color: #fbbf24;
  line-height: 1.2;
}

.tier-period {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.tier-features {
  list-style: none;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tier-features li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tier-features li::before {
  content: '✓';
  color: var(--emerald);
  font-weight: 700;
}

/* Video Iframe Wrap */
.video-responsive-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 ratio default */
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: padding-top 0.3s ease;
}

.video-responsive-wrap.vertical-video {
  padding-top: 177.77%;
  /* 9:16 vertical ratio */
  max-height: 76vh;
}

.modal-dialog.vertical-video {
  max-width: 440px;
}

.video-responsive-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Status / Alert View */
.status-card {
  max-width: 520px;
  margin: 4rem auto;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem 1.75rem;
}

.status-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.status-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.status-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

/* Footer */
.portal-footer {
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.portal-footer a {
  color: var(--text-muted);
}

.portal-footer a:hover {
  color: var(--gold);
}

/* Mobile Responsiveness Enhancements */
@media (max-width: 640px) {
  .portal-nav {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .brand-text h1 {
    font-size: 1rem;
  }

  .brand-text span {
    font-size: 0.65rem;
  }

  .nav-link-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.8125rem;
    min-height: 40px;
  }

  .user-badge {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
  }

  .user-badge #header-user-name {
    display: none;
    /* Hemat ruang di HP */
  }

  .banner-demo {
    padding: 1rem;
  }

  .banner-demo-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .modal-dialog {
    margin: 0.5rem;
    max-height: 94vh;
  }

  .modal-header {
    padding: 1rem 1.25rem;
  }

  .modal-body {
    padding: 1rem 1.25rem;
  }

  .upgrade-tier-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .nav-link-btn span {
    display: none;
    /* Hanya tampilkan ikon emoji di HP sangat kecil */
  }
}

/* OTP 6-Digit Inputs for Demo Modal */
.otp-inputs-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.pdemo-otp-box {
  width: 100%;
  max-width: 52px;
  height: 58px;
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--brand-cyan);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.pdemo-otp-box:focus {
  outline: none;
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.25);
}

/* Honeypot field (hidden from humans, trap for bots) */
.honeypot-field {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
}

/* ============================================================== */
/* MODERN LEFT SIDEBAR SAAS APP SHELL (PORTAL MEMBER v5.4)        */
/* ============================================================== */

/* Mode Fullscreen App saat berada di Dashboard */
body.portal-app-active #portal-header {
  display: none !important;
}

body.portal-app-active {
  background: #060b18;
}

body.portal-app-active .portal-footer {
  display: none !important;
}

.portal-main.app-mode {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  flex: 1;
}

.portal-main.app-mode>.container {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

/* App Shell Layout */
.app-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
  background: #060b18;
}

/* -------------------------------------------------------------- */
/* LEFT SIDEBAR                                                   */
/* -------------------------------------------------------------- */
.app-sidebar {
  width: 260px;
  min-width: 260px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  background: rgba(8, 15, 33, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-header {
  padding: 1.5rem 1.25rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.sidebar-logo {
  height: 34px;
  max-width: 195px;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 210, 255, 0.35));
}

.sidebar-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--cyan);
  background: rgba(0, 210, 255, 0.09);
  border: 1px solid rgba(0, 210, 255, 0.28);
  padding: 0.22rem 0.6rem;
  border-radius: 9999px;
  align-self: flex-start;
}

.sidebar-app-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.sidebar-nav {
  padding: 1.25rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  overflow-y: auto;
}

.sidebar-nav-group-title {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  padding: 0.5rem 0.75rem 0.25rem;
  text-transform: uppercase;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}

.sidebar-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.08);
}

.sidebar-nav-item.active {
  background: linear-gradient(90deg, rgba(0, 210, 255, 0.16) 0%, rgba(0, 112, 243, 0.1) 100%);
  border-color: rgba(0, 210, 255, 0.45);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(0, 210, 255, 0.15);
}

.sidebar-nav-item.active .nav-icon {
  filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.7));
}

.nav-icon {
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
}

.nav-text {
  flex: 1;
}

.nav-pill-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(0, 210, 255, 0.18);
  color: var(--cyan);
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 210, 255, 0.3);
}

.sidebar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 0.75rem 0.5rem;
}

/* Sidebar Dropdown Accordion: MODUL TOOLS */
.sidebar-dropdown-group {
  display: flex;
  flex-direction: column;
}

.nav-dropdown-caret {
  font-size: 0.75rem;
  transition: transform var(--transition-fast);
  color: var(--text-dim);
}

.sidebar-dropdown-group.open .nav-dropdown-caret {
  transform: rotate(180deg);
  color: var(--cyan);
}

.sidebar-submenu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.35rem 0 0.5rem 1.25rem;
  margin-top: 0.2rem;
  border-left: 2px solid rgba(0, 210, 255, 0.25);
  margin-left: 1.25rem;
}

.sidebar-dropdown-group.open .sidebar-submenu {
  display: flex;
  animation: fadeInSubmenu 0.2s ease-out;
}

@keyframes fadeInSubmenu {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sidebar-submenu-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
  width: 100%;
}

.sidebar-submenu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.sidebar-submenu-item .sub-icon {
  font-size: 0.95rem;
}

.sidebar-submenu-item .sub-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sub-badge-active {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.sub-badge-locked {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-radius: 9999px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Locked Add-on Card in MODUL TOOLS */
.module-card.locked-addon {
  border-color: rgba(245, 158, 11, 0.35) !important;
  background: linear-gradient(135deg, rgba(13, 23, 48, 0.95) 0%, rgba(26, 20, 10, 0.8) 100%) !important;
  cursor: pointer;
}

.module-card.locked-addon:hover {
  border-color: rgba(245, 158, 11, 0.65) !important;
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.2) !important;
  transform: translateY(-4px);
}

.btn-locked-addon {
  width: 100%;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.35) 100%);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-locked-addon:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.4) 0%, rgba(217, 119, 6, 0.55) 100%);
  border-color: #fbbf24;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.sidebar-wa-item {
  color: #34d399 !important;
}

.sidebar-wa-item:hover {
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}

.sidebar-upsell-item {
  color: #fbbf24 !important;
}

.sidebar-upsell-item:hover {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
}

/* Sidebar User Footer */
.sidebar-footer {
  padding: 1rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(6, 11, 24, 0.85);
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
}

.sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.3) 0%, rgba(0, 112, 243, 0.4) 100%);
  border: 1px solid rgba(0, 210, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
}

.sidebar-user-meta {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-plan {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.3px;
}

.btn-sidebar-logout {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.25);
  color: #f43f5e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.btn-sidebar-logout:hover {
  background: rgba(244, 63, 94, 0.25);
  border-color: #f43f5e;
  transform: scale(1.06);
}

/* -------------------------------------------------------------- */
/* MAIN CONTENT VIEWPORT                                          */
/* -------------------------------------------------------------- */
.app-main {
  flex: 1;
  margin-left: 260px;
  width: calc(100% - 260px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, #112044 0%, #060b18 65%);
}

/* Slim Topbar */
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(8, 15, 33, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-hamburger-btn {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 1.25rem;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.topbar-hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.topbar-title-wrap {
  display: flex;
  flex-direction: column;
}

.topbar-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
  margin: 0;
  line-height: 1.3;
}

.topbar-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

/* Kartu Profil Member di Topbar Header (Menggantikan Posisi Perangkat) */
.topbar-user-card {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.65rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.topbar-user-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 210, 255, 0.3);
}

.topbar-user-card .sidebar-avatar {
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
}

.topbar-user-card .sidebar-user-meta {
  min-width: 65px;
  max-width: 130px;
}

.topbar-user-card .sidebar-user-name {
  font-size: 0.8rem;
  line-height: 1.2;
}

.topbar-user-card .sidebar-user-plan {
  font-size: 0.68rem;
  font-weight: 600;
  color: #38bdf8;
  line-height: 1.2;
  letter-spacing: 0.3px;
}

.topbar-user-card .btn-sidebar-logout {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fb7185;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 4px rgba(244, 63, 94, 0.15);
}

.topbar-user-card .btn-sidebar-logout:hover {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  border-color: #fb7185;
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.45);
}

.topbar-user-card .btn-sidebar-logout svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2.2;
  transition: transform 0.2s ease;
  pointer-events: none;
}

.topbar-user-card .btn-sidebar-logout:hover svg {
  transform: translateX(1.5px);
}

.topbar-user-card .btn-sidebar-logout:active {
  transform: scale(0.95);
}

/* Badge Kuota Perangkat di Sidebar Bawah */
.sidebar-device-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.sidebar-device-badge:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
}

.chip-engine {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.28);
  color: #10b981;
}

.chip-pulse-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

/* App Content Body */
.app-content-body {
  padding: 2rem 2.25rem;
  flex: 1;
  width: 100%;
}

.portal-tab-panel {
  display: none;
}

.portal-tab-panel.active {
  display: block;
  animation: fadeInPortalPanel 0.25s ease-out;
}

@keyframes fadeInPortalPanel {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------------------------------------------------------------- */
/* WELCOME MEMBER CARD (SELAMAT DATANG MEMBER)                    */
/* -------------------------------------------------------------- */
.welcome-member-card {
  position: relative;
  background: linear-gradient(135deg, rgba(13, 23, 48, 0.95) 0%, rgba(9, 26, 60, 0.9) 100%);
  border: 1px solid rgba(0, 210, 255, 0.35);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 35px rgba(0, 210, 255, 0.12);
  margin-bottom: 2.5rem;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.welcome-member-card:hover {
  border-color: rgba(0, 210, 255, 0.55);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.55), 0 0 45px rgba(0, 210, 255, 0.2);
}

.welcome-card-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.2) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.welcome-header-content {
  position: relative;
  z-index: 2;
}

.welcome-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.welcome-pill-status {
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.32rem 0.85rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.14);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.38);
}

.welcome-pill-plan {
  font-size: 0.725rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 0.32rem 0.85rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.35) 100%);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.welcome-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 0.85rem;
  letter-spacing: -0.4px;
}

.welcome-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 820px;
  margin-bottom: 2rem;
}

.welcome-quick-grid {
  display: none !important;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 768px) {
  .welcome-quick-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.welcome-quick-item {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.welcome-quick-item:hover {
  background: rgba(0, 210, 255, 0.06);
  border-color: rgba(0, 210, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.quick-icon-wrap {
  font-size: 1.85rem;
  margin-bottom: 0.75rem;
}

.quick-text-wrap h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.quick-text-wrap p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.quick-cta-link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition-fast);
}

.welcome-quick-item:hover .quick-cta-link {
  color: var(--brand-cyan-light);
  text-decoration: underline;
}

/* -------------------------------------------------------------- */
/* FLAGSHIP HERO SHOWCASE CARD (JARVIS v5.4)                      */
/* -------------------------------------------------------------- */
.flagship-hero-card {
  position: relative;
  max-width: 340px;
  background: linear-gradient(135deg, rgba(13, 23, 48, 0.92) 0%, rgba(9, 26, 60, 0.88) 100%);
  border: 1px solid rgba(0, 210, 255, 0.38);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(0, 210, 255, 0.18);
  margin-bottom: 2.5rem;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.flagship-hero-card:hover {
  border-color: rgba(0, 210, 255, 0.65);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.55), 0 0 45px rgba(0, 210, 255, 0.3);
}

.flagship-glow-bg {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.22) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.flagship-card-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 300px) {
  .flagship-card-inner:has(.flagship-visual-col) {
    grid-template-columns: 1.45fr 1fr;
    align-items: center;
  }
}

.flagship-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
}

.flagship-pill-vip {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 0.32rem 0.8rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.35) 100%);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.flagship-pill-version {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 0.32rem 0.8rem;
  border-radius: 9999px;
  background: rgba(0, 210, 255, 0.14);
  color: var(--cyan);
  border: 1px solid rgba(0, 210, 255, 0.38);
}

.flagship-pill-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.32rem 0.8rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.flagship-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.3px;
}

.flagship-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.flagship-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.85rem;
}

.flagship-feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
}

.flagship-actions-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.btn-flagship-launch {
  background: linear-gradient(135deg, #00d2ff 0%, #0070f3 100%) !important;
  color: #ffffff !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  padding: 0.75rem 1.25rem !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 4px 20px rgba(0, 210, 255, 0.45) !important;
  transition: all var(--transition-fast) !important;
  border: none !important;
  cursor: pointer;
  text-align: center;
  width: 100%;
}

.btn-flagship-launch:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 210, 255, 0.65) !important;
}

.btn-flagship-canvas {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: var(--text-main) !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  padding: 0.7rem 1.25rem !important;
  border-radius: var(--radius-md) !important;
  cursor: pointer;
  text-align: center;
  width: 100%;
}

.btn-flagship-canvas:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: var(--cyan) !important;
  color: var(--cyan) !important;
}

/* Flagship Spec Card (Right Col) */
.flagship-spec-card {
  background: rgba(6, 12, 28, 0.85);
  border: 1px solid rgba(0, 210, 255, 0.28);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.spec-card-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.spec-logo-icon {
  font-size: 1.35rem;
}

.spec-logo-title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--cyan);
}

.spec-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.825rem;
}

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

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

.spec-card-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.spec-pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* -------------------------------------------------------------- */
/* OPTIMIZED VIDEO & MODULE GRIDS (BALANCED AUTO-FILL)            */
/* -------------------------------------------------------------- */
#tab-panel-videos .video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 340px));
  gap: 1.75rem;
  margin-bottom: 2.5rem;
  justify-content: start;
}

#tab-panel-tools .module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 340px));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.announcements-full-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* -------------------------------------------------------------- */
/* MOBILE & RESPONSIVE BREAKPOINTS                                */
/* -------------------------------------------------------------- */
@media (max-width: 1023px) {
  .app-sidebar {
    transform: translateX(-100%);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
  }

  .app-sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99;
  }

  .sidebar-backdrop.mobile-open {
    display: block;
  }

  .app-main {
    margin-left: 0;
    width: 100%;
  }

  .topbar-hamburger-btn {
    display: flex !important;
  }

  .app-topbar {
    padding: 0.85rem 1.25rem;
  }

  .app-content-body {
    padding: 1.5rem 1.25rem;
  }

  .flagship-features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 639px) {
  .topbar-right .topbar-chip.chip-engine {
    display: none;
  }

  #tab-panel-videos .video-grid,
  #tab-panel-tools .module-grid {
    grid-template-columns: 1fr;
  }

  .flagship-hero-card {
    padding: 1.5rem;
  }

  .flagship-title {
    font-size: 1.5rem;
  }
}

/* ========================================================================== */
/* FASE 5: MULTI-PRODUCT ECOSYSTEM STYLES (PORTAL OVERHAUL & DASHBOARD)       */
/* ========================================================================== */

/* Nav Badge Counter di Sidebar */
.nav-badge-counter {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(0, 210, 255, 0.2);
  color: var(--brand-cyan);
  border: 1px solid rgba(0, 210, 255, 0.4);
}

/* 1. Ringkasan Metrik Dashboard (Overview Metrics Cards) */
.metrics-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.25rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.metric-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-cyan);
  box-shadow: 0 8px 24px rgba(0, 210, 255, 0.15);
  background: var(--bg-card-hover);
}

.metric-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.metric-icon-wrap.icon-cyan {
  background: rgba(0, 210, 255, 0.15);
  color: #00d2ff;
  border: 1px solid rgba(0, 210, 255, 0.3);
}

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

.metric-icon-wrap.icon-purple {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.metric-icon-wrap.icon-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.775rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  margin: 0.15rem 0;
}

.metric-subtext {
  font-size: 0.725rem;
  color: var(--text-dim);
}

/* 2. Overview Quick Preview Section */
.overview-section-wrap {
  background: rgba(13, 23, 48, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}

.section-header-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-title-compact {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-link-action {
  background: transparent;
  border: none;
  color: var(--brand-cyan);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.btn-link-action:hover {
  color: #fff;
  text-decoration: underline;
}

.overview-products-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.quick-product-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  transition: all var(--transition-fast);
}

.quick-product-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-cyan);
}

.quick-prod-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quick-prod-icon {
  font-size: 1.35rem;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(0, 210, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-prod-meta h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.quick-prod-meta span {
  font-size: 0.725rem;
  color: var(--text-muted);
}

.quick-prod-btn {
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--brand-cyan);
  color: #070d1e;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-prod-btn:hover {
  background: #fff;
  box-shadow: 0 0 12px var(--brand-cyan-glow);
}

/* 3. Header Action Wrap & Refresh Button */
.header-action-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-refresh-data {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-refresh-data:hover {
  background: rgba(0, 210, 255, 0.1);
  color: var(--brand-cyan);
  border-color: var(--border-cyan);
}

/* 4. Produk Saya Grid & Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-cyan), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 210, 255, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

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

.product-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.product-avatar-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 210, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border: 1px solid rgba(0, 210, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
}

.product-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.product-status-pill {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.product-status-pill.active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}

.product-status-pill.expired {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.product-status-pill.revoked {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.product-status-pill.suspended {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.35);
}

.product-status-pill.locked {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.1);
}

/* Styling Khusus Kartu Form Jarvis Redup untuk Member yang Belum Memiliki Akses Jarvis */
.product-card.is-jarvis-locked-dimmed {
  opacity: 0.52;
  filter: grayscale(0.55);
  border: 1px dashed rgba(255, 255, 255, 0.22) !important;
  background: rgba(5, 12, 28, 0.65) !important;
  box-shadow: none !important;
  transition: all 0.25s ease;
}

.product-card.is-jarvis-locked-dimmed:hover {
  transform: none !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: none !important;
}

.product-card.is-jarvis-locked-dimmed::before {
  display: none !important;
}

.product-card.is-jarvis-locked-dimmed .jarvis-version-pills button {
  pointer-events: none;
  opacity: 0.6;
}

.product-card.is-jarvis-locked-dimmed .jarvis-features-header {
  pointer-events: none;
  opacity: 0.7;
}

.product-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.product-card-category {
  display: inline-block;
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--brand-cyan);
  background: rgba(0, 210, 255, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.65rem;
}

.product-card-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.product-card-meta-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.875rem;
  margin-bottom: 1.25rem;
  font-size: 0.775rem;
}

.product-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-meta-item .meta-label {
  color: var(--text-dim);
}

.product-meta-item .meta-val {
  font-weight: 600;
  color: var(--text-main);
}

.product-meta-item .meta-val.lifetime {
  color: #fbbf24;
}

.product-meta-item .meta-val.expired {
  color: #f43f5e;
}

/* FITUR COPY LINK URL (Sesuai Kotak Merah) */
.product-card-link-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: rgba(0, 210, 255, 0.05);
  border: 1px dashed rgba(0, 210, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.75rem;
  transition: all var(--transition-fast);
}

.product-card-link-box:hover {
  background: rgba(0, 210, 255, 0.09);
  border-color: var(--brand-cyan);
}

.product-copy-url-link {
  color: var(--brand-cyan);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.75rem;
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.product-copy-url-link:hover {
  text-decoration: underline;
  color: #ffffff;
}

.btn-copy-product-link {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all var(--transition-fast);
  line-height: 1.2;
}

.btn-copy-product-link:hover {
  background: rgba(0, 210, 255, 0.2);
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
}

.btn-copy-product-link.copied {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  color: #34d399;
}

/* MULTI-VERSI & PEMBARUAN FITUR JARVIS (v5.4, v5.5, DST) */
.jarvis-version-switcher-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.version-switcher-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.version-switcher-pills {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.version-pill-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.version-pill-btn:hover {
  background: rgba(0, 210, 255, 0.12);
  border-color: var(--brand-cyan);
  color: #fff;
}

.version-pill-btn.active {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.25) 0%, rgba(59, 130, 246, 0.25) 100%);
  border-color: var(--brand-cyan);
  color: #00e5ff;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.jarvis-version-features-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.85rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.jarvis-version-features-box:hover {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.35);
  transform: translateY(-1px);
}

.jarvis-features-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: #fbbf24;
  cursor: pointer;
  user-select: none;
}

.jarvis-features-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 0.5rem;
}

.jarvis-features-list li {
  color: #cbd5e1;
  font-size: 0.73rem;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}

/* PANEL SHOWCASE SEMUA VERSI DI PORTAL */
.jarvis-all-versions-panel {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.all-versions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.all-versions-header h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.all-versions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.version-history-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
  transition: all var(--transition-fast);
}

.version-history-card:hover {
  border-color: rgba(0, 210, 255, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.version-history-card.latest {
  border-color: rgba(0, 210, 255, 0.4);
  background: linear-gradient(180deg, rgba(0, 210, 255, 0.05) 0%, rgba(15, 23, 42, 0.7) 100%);
}

.version-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.version-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.version-badge.latest {
  background: rgba(0, 210, 255, 0.2);
  color: var(--brand-cyan);
  border: 1px solid rgba(0, 210, 255, 0.4);
}

.version-badge.stable {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.version-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.version-card-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.version-card-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.73rem;
  color: #94a3b8;
}

.version-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.btn-open-version {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-blue) 100%);
  color: #070d1e;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-open-version:hover {
  background: linear-gradient(135deg, #fff 0%, var(--brand-cyan) 100%);
  color: #070d1e;
}

.btn-copy-ver-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-copy-ver-link:hover {
  background: rgba(0, 210, 255, 0.2);
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
}

.product-card-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-launch-product {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-blue) 100%);
  color: #070d1e;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-launch-product:hover {
  background: linear-gradient(135deg, #fff 0%, var(--brand-cyan) 100%);
  box-shadow: 0 4px 16px var(--brand-cyan-glow);
  color: #070d1e;
}

.btn-launch-product:disabled,
.btn-launch-product.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background: #334155;
  color: #94a3b8;
  box-shadow: none;
}

.btn-renew-product {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-renew-product:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

/* 5. Empty State Card */
.empty-state-card {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  margin-top: 1rem;
}

.empty-state-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 16px rgba(0, 210, 255, 0.25));
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.empty-state-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 6. Katalog Toko Grid & Cards */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.store-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  transition: all var(--transition-normal);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.store-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-cyan);
  box-shadow: 0 12px 30px rgba(0, 210, 255, 0.12);
}

.store-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(0, 210, 255, 0.15);
  color: var(--brand-cyan);
  border: 1px solid rgba(0, 210, 255, 0.3);
  text-transform: uppercase;
}

.store-owned-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.store-prod-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 210, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 210, 255, 0.2);
}

.store-prod-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.store-prod-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.store-prod-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.store-plans-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.store-plan-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.store-plan-option:hover,
.store-plan-option.selected {
  background: rgba(0, 210, 255, 0.08);
  border-color: var(--brand-cyan);
}

.store-plan-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-main);
}

.store-plan-price-wrap {
  text-align: right;
}

.store-plan-price {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--brand-cyan);
}

.store-plan-strike {
  font-size: 0.6875rem;
  color: var(--text-dim);
  text-decoration: line-through;
  margin-right: 0.35rem;
}

.store-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.775rem;
  color: var(--text-muted);
}

.store-features-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.store-features-list li span.check {
  color: #10b981;
  font-weight: bold;
}

.btn-store-buy {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-blue) 100%);
  color: #070d1e;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-store-buy:hover {
  background: linear-gradient(135deg, #fff 0%, var(--brand-cyan) 100%);
  box-shadow: 0 4px 16px var(--brand-cyan-glow);
}

.btn-store-owned {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  cursor: default;
}

/* 7. Riwayat Transaksi Member */
.transactions-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-md);
}

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

.transactions-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.725rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.transactions-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.transactions-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.tx-order-code {
  font-family: monospace;
  font-weight: 700;
  color: var(--brand-cyan);
}

.tx-status-pill {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  display: inline-block;
}

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

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

.tx-status-pill.expired,
.tx-status-pill.deny,
.tx-status-pill.failed,
.tx-status-pill.cancel {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.tx-status-pill.refund {
  background: rgba(251, 146, 60, 0.15);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.3);
}

.btn-tx-check {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 210, 255, 0.12);
  color: var(--brand-cyan);
  border: 1px solid rgba(0, 210, 255, 0.25);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-tx-check:hover {
  background: var(--brand-cyan);
  color: #070d1e;
}

/* 8. Checkout Modal Elements */
.checkout-product-summary-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.checkout-prod-avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(0, 210, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 210, 255, 0.25);
}

.checkout-prod-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.checkout-prod-meta {
  flex-grow: 1;
}

.checkout-prod-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--brand-cyan);
  background: rgba(0, 210, 255, 0.1);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.25rem;
}

.checkout-prod-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.25rem 0;
}

.checkout-prod-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

.checkout-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.checkout-plan-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.checkout-plan-card:hover,
.checkout-plan-card.active {
  background: rgba(0, 210, 255, 0.08);
  border-color: var(--brand-cyan);
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.15);
}

.checkout-plan-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.checkout-plan-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-cyan);
}

.checkout-plan-dur {
  font-size: 0.725rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

.checkout-gateways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.gateway-option-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gateway-option-card:hover,
.gateway-option-card.active {
  background: rgba(0, 210, 255, 0.08);
  border-color: var(--brand-cyan);
}

.gateway-option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.gateway-logo-text {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}

.gateway-rec-badge {
  font-size: 0.625rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
}

.gateway-option-desc {
  font-size: 0.725rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.checkout-invoice-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
}

.invoice-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.invoice-row .invoice-val {
  font-weight: 600;
  color: var(--text-main);
}

.invoice-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.6rem 0;
}

.invoice-row.total {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0;
}

.invoice-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-cyan);
}

/* 9. Payment Status Card */
.paystatus-card {
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.paystatus-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
  margin-bottom: 0.75rem;
}

.paystatus-badge.success {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.35);
}

.paystatus-order-id {
  font-family: monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-cyan);
  margin-bottom: 0.75rem;
}

.paystatus-message {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 420px;
  margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .metrics-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid,
  .store-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .metrics-cards-grid {
    grid-template-columns: 1fr;
  }

  .checkout-plans-grid,
  .checkout-gateways-grid {
    grid-template-columns: 1fr;
  }
}

/* SKELETON LOADER UNTUK MODUL & TOOLS AI KREATIF */
@keyframes cyberSkeletonPulse {

  0%,
  100% {
    opacity: 0.6;
    border-color: rgba(0, 210, 255, 0.25);
  }

  50% {
    opacity: 0.95;
    border-color: rgba(0, 210, 255, 0.65);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.15);
  }
}

.cyber-skeleton-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px dashed rgba(0, 210, 255, 0.35);
  border-radius: var(--radius-lg, 16px);
  background: rgba(10, 20, 35, 0.55);
  animation: cyberSkeletonPulse 1.8s ease-in-out infinite;
}

.cyber-skeleton-icon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.cyber-skeleton-title {
  font-weight: 700;
  color: var(--cyan, #00d2ff);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.cyber-skeleton-desc {
  font-size: 0.825rem;
  color: var(--text-dim, #94a3b8);
}

/* SKELETON LOADER UNTUK MODUL & TOOLS AI KREATIF */
@keyframes cyberSkeletonPulse {

  0%,
  100% {
    opacity: 0.6;
    border-color: rgba(0, 210, 255, 0.25);
  }

  50% {
    opacity: 0.95;
    border-color: rgba(0, 210, 255, 0.65);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.15);
  }
}

.cyber-skeleton-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px dashed rgba(0, 210, 255, 0.35);
  border-radius: var(--radius-lg, 16px);
  background: rgba(10, 20, 35, 0.55);
  animation: cyberSkeletonPulse 1.8s ease-in-out infinite;
}

.cyber-skeleton-icon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.cyber-skeleton-title {
  font-weight: 700;
  color: var(--cyan, #00d2ff);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.cyber-skeleton-desc {
  font-size: 0.825rem;
  color: var(--text-dim, #94a3b8);
}