/* ============================================================
   INTISARI APPS — Member Area Web
   Official Brand Identity Guidelines
   Palette: Primary Blue (#1A73E8) + Deep Navy (#0D2F6D) + Accent Teal (#00BFA5)
   ============================================================ */

:root {
  /* Brand Official Primary Colors */
  --color-primary-blue: #1A73E8;
  --color-navy-deep: #0D2F6D;
  --color-teal-accent: #00BFA5;

  /* Surfaces & Backgrounds */
  --color-bg-primary: #FFFFFF;
  --color-bg-secondary: #F8F9FA;
  --color-bg-tertiary: #F0F2F5;

  /* Borders & Dividers */
  --color-border-light: #E0E0E0;
  --color-border-medium: #D0D0D0;
  --color-border-strong: #BFBFBF;

  /* Text Colors */
  --color-text-primary: #0D2F6D;
  --color-text-secondary: #5F6368;
  --color-text-muted: #9AA0A6;
  --color-text-disabled: #BFBFBF;

  /* Status Colors */
  --color-success: #34A853;
  --color-warning: #FBBC04;
  --color-error: #EA4335;
  --color-info: #1A73E8;

  /* Typography */
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Surfaces (Compatibility Aliases) */
  --ink: #0D2F6D;
  --ink-soft: #183B7E;
  --ink-line: #E0E0E0;
  --surface: #F8F9FA;
  --surface-deep: #F0F2F5;
  --card: #FFFFFF;
  --border: #E0E0E0;
  --border-hard: #D0D0D0;

  /* Brand Colors (Compatibility Aliases) */
  --brand: #1A73E8;
  --brand-deep: #1557B0;
  --brand-soft: #E8F0FD;
  --brand-ink: #0D2F6D;

  /* Accent (Accent Teal — inovasi, energi, validasi) */
  --accent: #00BFA5;
  --accent-deep: #00897B;
  --accent-soft: rgba(0, 191, 165, 0.12);

  /* Status (Compatibility Aliases) */
  --ok: #34A853;
  --ok-soft: #E8F5E9;
  --warn: #FBBC04;
  --warn-soft: #FFF3E0;
  --danger: #EA4335;
  --danger-soft: #FFEBEE;

  /* Text (Compatibility Aliases) */
  --text: #0D2F6D;
  --text-soft: #5F6368;
  --muted: #9AA0A6;
  --muted-2: #BDC1C6;

  /* Effects */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --shadow-sm: 0 1px 3px rgba(13, 47, 109, 0.05), 0 1px 2px rgba(13, 47, 109, 0.03);
  --shadow-md: 0 4px 12px rgba(13, 47, 109, 0.08), 0 2px 4px rgba(13, 47, 109, 0.04);
  --shadow-lg: 0 12px 32px rgba(13, 47, 109, 0.10), 0 4px 12px rgba(13, 47, 109, 0.05);
  --shadow-pop: 0 20px 48px rgba(13, 47, 109, 0.14), 0 6px 16px rgba(13, 47, 109, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--surface);
  font-family: var(--font-body);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

/* ============================================================
   APP SHELL — Full page layout
   ============================================================ */
.app {
  background: var(--surface);
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.5;
  position: relative;
}

/* Header (inside app, top) */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 5;
}

.app-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.brand-mark::after {
  content: '';
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
}
.brand-mark svg { width: 16px; height: 16px; color: var(--surface); }

.app-header-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 5px 5px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
}

.user-chip .avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand, #1A73E8), var(--brand-dark, #0D2F6D));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  cursor: default;
  user-select: none;
}

.user-chip .email {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-logout-pro {
  appearance: none;
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--border, #E0E0E0);
  border-radius: 8px;
  height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft, #5f6368);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-logout-pro:hover {
  background: rgba(254, 242, 242, 0.7);
  border-color: rgba(220, 38, 38, 0.35);
  color: #DC2626;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.08);
}
.btn-logout-pro:active {
  transform: scale(0.97);
}
.btn-logout-pro:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-logout-pro svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.btn-logout-pro:hover svg {
  transform: translateX(2px);
}

.btn-icon {
  appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  transition: all 0.15s ease;
}
.btn-icon:hover { background: #fff; color: var(--ink); }

/* App body */
.app-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px 60px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  appearance: none;
  border: 0;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  padding: 11px 18px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
  white-space: nowrap;
  line-height: 1.2;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.25);
}
.btn-primary:hover {
  background: var(--brand-deep);
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.35);
  transform: translateY(-1px);
}

.btn-brand {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.25);
}
.btn-brand:hover {
  background: var(--brand-deep);
  box-shadow: 0 6px 16px rgba(26, 115, 232, 0.35);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 191, 165, 0.25);
}
.btn-accent:hover {
  background: var(--accent-deep);
}

.btn-secondary {
  background: var(--card);
  color: var(--color-navy-deep);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--surface-deep);
  border-color: var(--color-border-medium);
}

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
}
.btn-ghost:hover {
  background: rgba(13, 47, 109, 0.05);
  color: var(--ink);
}

.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: var(--r-sm); }
.btn-sm svg { width: 14px; height: 14px; }
.btn-lg { padding: 14px 24px; font-size: 15px; border-radius: var(--r-md); }
.btn-full { width: 100%; }

.btn-google {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border-hard);
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  width: 100%;
  box-shadow: var(--shadow-sm);
}
.btn-google:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}
.btn-google:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  border-color: var(--border-hard);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--color-navy-deep);
  line-height: 1.25;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal-accent);
}

.h1 {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-navy-deep);
  margin: 0;
}

.h2 {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--color-navy-deep);
  margin: 0;
}

.h3 {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-navy-deep);
  margin: 0;
}

.body-muted { color: var(--text-soft); }

.mono {
  font-family: var(--font-mono);
  font-feature-settings: 'zero', 'ss01';
}

/* ============================================================
   STATUS PILLS / BADGES
   ============================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}
.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-ok .dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(26, 127, 90, 0.18); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-warn .dot { background: #DA9000; }
.pill-locked { background: rgba(11, 18, 32, 0.06); color: var(--text-soft); }
.pill-locked .dot { background: var(--muted-2); }
.pill-trial { background: var(--accent-soft); color: var(--accent-deep); }
.pill-trial .dot { background: var(--accent); }
.pill-brand { background: var(--brand-soft); color: var(--brand-ink); }
.pill-brand .dot { background: var(--brand); }

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--surface-deep);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 6px;
}

/* ============================================================
   INPUTS
   ============================================================ */
.input {
  width: 100%;
  appearance: none;
  background: #fff;
  border: 1.5px solid var(--border-hard);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.02em;
  transition: all 0.15s ease;
}
.input::placeholder { color: var(--muted-2); }
.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.input.error {
  border-color: var(--danger);
}
.input.error:focus { box-shadow: 0 0 0 4px var(--danger-soft); }

.input-group {
  display: flex;
  gap: 8px;
}
.input-group .input { flex: 1; }

.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 6px;
}

/* ============================================================
   LOGIN
   ============================================================ */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.login-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 20% 30%, rgba(26, 115, 232, 0.08), transparent 60%),
    radial-gradient(500px 280px at 90% 90%, rgba(0, 191, 165, 0.08), transparent 60%);
  pointer-events: none;
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 40px 32px;
  box-shadow: var(--shadow-lg);
}

.login-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}
.login-mark .wordmark {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.login-headings { margin-bottom: 28px; }
.login-headings .eyebrow { margin-bottom: 8px; }
.login-headings .h1 { margin-bottom: 6px; }
.login-headings .sub {
  color: var(--text-soft);
  font-size: 14.5px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.login-divider::before, .login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.login-link-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.login-link-row .text {
  font-size: 13px;
  color: var(--text-soft);
}
.login-link-row .text b { color: var(--ink); display: block; font-size: 13.5px; }
.login-link-row a {
  color: var(--brand);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.login-footer {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.login-footer a {
  color: var(--muted);
  text-decoration: none;
}
.login-footer a:hover { color: var(--ink); }

.login-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(11, 18, 32, 0.18);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Custom Tabs for Login/Register */
.login-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}

.login-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 6px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
}

.login-tab-btn:hover {
  color: var(--brand);
}

.login-tab-btn.active {
  color: var(--brand);
}

.login-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand);
}

/* Form Sections */
.form-section {
  display: none;
}

.form-section.active {
  display: block;
  animation: fadeInForm 0.3s ease;
}

@keyframes fadeInForm {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-group {
  margin-bottom: 16px;
}

/* Password Toggle Wrapper */
.input-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-password-wrapper .input {
  padding-right: 44px;
}

.btn-toggle-password {
  position: absolute;
  right: 4px;
  background: transparent;
  border: none;
  color: var(--muted);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.15s ease;
  padding: 0;
}

.btn-toggle-password:hover {
  color: var(--ink);
  background: rgba(11, 18, 32, 0.05);
}

/* Button Spinner */
.btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
  margin-left: 8px;
}

/* Helper Utilities */
.center-text {
  text-align: center;
}

.uppercase {
  text-transform: uppercase;
}

.select-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%233D4660' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

/* ============================================================
   DASHBOARD
   ============================================================ */
.welcome {
  margin-bottom: 24px;
}
.welcome .h1 { margin-bottom: 6px; }
.welcome .sub {
  color: var(--text-soft);
  font-size: 15px;
}

.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-bar .tabs {
  display: flex;
  gap: 2px;
  background: rgba(11, 18, 32, 0.04);
  padding: 4px;
  border-radius: 10px;
}
.section-bar .tabs button {
  appearance: none;
  background: transparent;
  border: 0;
  font-weight: 600;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 7px;
  color: var(--text-soft);
}
.section-bar .tabs button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Product Card */
.pcard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s ease;
}
.pcard:hover { box-shadow: var(--shadow-md); border-color: var(--border-hard); }

.pcard-stripe {
  height: 6px;
  background: linear-gradient(90deg, var(--surface-deep), var(--surface-deep));
}
.pcard[data-state="unlocked"] .pcard-stripe {
  background: linear-gradient(90deg, var(--brand), #6E89FF);
}
.pcard[data-state="trial"] .pcard-stripe {
  background: linear-gradient(90deg, var(--accent), #FFB39A);
}
.pcard[data-state="locked"] .pcard-stripe {
  background: var(--surface-deep);
}

.pcard-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.pcard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.pcard-titleblock { display: flex; gap: 14px; align-items: flex-start; flex: 1; min-width: 0; }
.pcard-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface-deep);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.pcard-icon .glyph {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.pcard-icon[data-product="clips"] {
  background: linear-gradient(135deg, #1B2240, #6C63FF);
  border-color: transparent;
}
.pcard-icon[data-product="clips"] .glyph { color: #fff; }
.pcard-icon[data-product="autocut"] {
  background: linear-gradient(135deg, #2A1612, #F97316);
  border-color: transparent;
}
.pcard-icon[data-product="autocut"] .glyph { color: #fff; }
.pcard-icon[data-product="murottal"] {
  background: linear-gradient(135deg, #064E3B, #10B981);
  border-color: transparent;
}
.pcard-icon[data-product="murottal"] .glyph { color: #fff; }
.pcard-icon[data-product] .glyph { color: #fff; }
.pcard-icon::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.pcard-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 4px;
}
.pcard-desc {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

.pcard-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  font-size: 12.5px;
  padding: 12px 14px;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.pcard-meta dt { color: var(--muted); font-weight: 500; }
.pcard-meta dd { margin: 0; color: var(--text); font-weight: 500; }
.pcard-meta dd.mono { font-size: 12px; }

.pcard-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pcard-actions .btn { flex: 1; min-width: 0; }
.pcard-actions .btn-icon-only {
  flex: 0 0 auto;
}

/* Trial countdown display */
.countdown {
  background: linear-gradient(135deg, var(--accent-soft), #FFF8F4);
  border: 1px solid #FFD9C9;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.countdown-clock {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
}
.countdown-clock .num { font-size: 32px; line-height: 1; letter-spacing: -0.04em; }
.countdown-clock .unit { font-size: 12px; font-weight: 600; color: var(--accent-deep); opacity: 0.7; margin-right: 4px; }
.countdown-label {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-deep);
}
.countdown-label small { display: block; color: var(--text-soft); font-weight: 500; font-size: 11px; margin-top: 2px; }

.trial-code {
  background: #fff;
  border: 1px dashed var(--border-hard);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.trial-code button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--brand);
  font-weight: 600;
  font-size: 11.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pcard-locked-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.license-input-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}
.license-input-group .input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 10px 12px;
  font-size: 13.5px;
  height: 40px;
  box-sizing: border-box;
}
.license-input-group .btn {
  flex: 1 0 auto;
  height: 40px;
  padding: 0 20px;
  font-size: 13.5px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.license-input-group .input::placeholder {
  font-size: 11px;
  letter-spacing: 0;
}

/* Responsivitas Layar Handphone (Android / iOS) */
@media (max-width: 480px) {
  .license-input-group .input {
    flex: 1 1 100%;
    height: 42px;
    font-size: 14px;
    padding: 12px;
  }
  .license-input-group .btn {
    flex: 1 1 100%;
    height: 42px;
  }
}
.pcard-locked-form .or-sep {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 2px 0;
}
.pcard-locked-form .or-sep::before, .pcard-locked-form .or-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.note {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.45;
}
.note svg { width: 13px; height: 13px; flex-shrink: 0; margin-top: 2px; color: var(--muted); }

.dashboard-footer {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

/* ============================================================
   TUTORIAL PAGE
   ============================================================ */
.tut-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 13px;
  background: transparent;
  border: 0;
  padding: 6px 10px 6px 6px;
  border-radius: 8px;
  margin-bottom: 18px;
}
.tut-back:hover { color: var(--ink); background: rgba(11, 18, 32, 0.05); }

.tut-hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 26px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: flex-start;
}
.tut-hero .pcard-icon { width: 64px; height: 64px; }
.tut-hero-meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tut-hero-meta .pcard-name { font-size: 22px; }
.tut-hero-meta .desc { color: var(--text-soft); font-size: 14px; }
.tut-hero-meta .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.tut-hero-actions { display: flex; gap: 8px; width: 100%; }
.tut-hero-actions .btn { flex: 1; }

.tut-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.tut-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 16px;
}

.tut-step {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.tut-step:first-child { border-top: 0; padding-top: 0; }
.tut-step:last-child { padding-bottom: 0; }
.tut-step-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.tut-step-body h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.tut-step-body p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.55;
}
.tut-step-body ul {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-soft);
}
.tut-step-body ul li { margin-bottom: 3px; }

.tut-side .tut-section { padding: 18px; }
.tut-side h3 { margin-bottom: 12px; font-size: 14px; }
.tut-req {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12.5px;
}
.tut-req-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
}
.tut-req-row svg { width: 14px; height: 14px; color: var(--ok); flex-shrink: 0; }
.tut-req-row b { color: var(--ink); font-weight: 600; }

.changelog-entry {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.changelog-entry:first-child { border-top: 0; padding-top: 0; }
.changelog-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.changelog-head .ver {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--ink);
  font-size: 13px;
}
.changelog-head .date { color: var(--muted); font-size: 12px; }
.changelog-entry ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-soft);
}
.changelog-entry ul li { margin-bottom: 3px; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.modal {
  background: var(--card);
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  padding: 28px;
  box-shadow: var(--shadow-pop);
  animation: slideUp 0.25s ease;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.modal-head h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 4px;
}
.modal-head .sub { font-size: 13.5px; color: var(--text-soft); }
.modal-close {
  appearance: none;
  background: transparent;
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.modal-close:hover { background: var(--surface); color: var(--ink); }

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.modal-actions .btn { flex: 1; }

.info-box {
  background: var(--brand-soft);
  border: 1px solid #D5DEFF;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  font-size: 12.5px;
  color: var(--brand-ink);
  line-height: 1.5;
}
.info-box svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--brand); margin-top: 1px; }

.success-box {
  background: var(--ok-soft);
  border: 1px solid #C5E4D5;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--ok);
  line-height: 1.5;
}
.success-box svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }

.error-text {
  font-size: 12.5px;
  color: var(--danger);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* OTP boxes */
.otp-input {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.otp-input input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  background: #fff;
  border: 1.5px solid var(--border-hard);
  border-radius: 10px;
  color: var(--ink);
  outline: none;
  transition: all 0.15s ease;
}
.otp-input input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

/* Toast */
.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 300;
  pointer-events: none;
}
.toast {
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-pop);
  animation: slideUp 0.25s ease;
}
.toast svg { width: 16px; height: 16px; color: #6FE6B6; }

/* ============================================================
   RESPONSIVE UTILITY CLASSES
   ============================================================ */

/* Responsive 2-column grid → stacks to 1-column on mobile */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 600px) {
  .grid-2col {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Responsive button row — stacks on mobile */
.btn-row {
  display: flex;
  gap: 12px;
}

@media (max-width: 600px) {
  .btn-row {
    flex-direction: column;
  }
  .btn-row .btn {
    flex: unset;
    width: 100%;
  }
}

/* ============================================================
   TUTORIAL ENHANCEMENTS — Video cards, APK cards, alerts
   ============================================================ */

/* Video card grid for tutorials */
.tut-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.tut-video-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.tut-video-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.tut-video-card-header {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.tut-video-card-header .eyebrow {
  display: block;
  margin-bottom: 6px;
}

.tut-video-card-header .h3 {
  margin: 0;
  font-size: 16px;
}

.tut-video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.tut-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.tut-video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
  cursor: pointer;
}

.tut-video-card:hover .tut-video-play-btn {
  background: rgba(0, 0, 0, 0.15);
}

.tut-video-play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 16px solid var(--brand);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.tut-video-card-body {
  padding: 14px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

/* APK download card */
.apk-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.apk-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
}

.apk-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  border-radius: 12px;
  flex-shrink: 0;
}

.apk-card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--brand);
}

.apk-card-body {
  flex: 1;
}

.apk-card-title {
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 4px;
  color: var(--text);
}

.apk-card-size {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.apk-card .btn {
  width: 100%;
}

/* Alert / Warning banner */
.alert-danger {
  background: var(--danger-soft);
  border: 1px solid var(--danger);
  border-radius: var(--r-lg);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.alert-danger-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(190, 45, 69, 0.15);
  border-radius: 10px;
  flex-shrink: 0;
}

.alert-danger-icon svg {
  width: 20px;
  height: 20px;
  color: var(--danger);
}

.alert-danger-body h3 {
  margin: 0 0 6px;
  color: var(--danger);
  font-size: 15px;
}

.alert-danger-body p {
  margin: 0;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

.alert-danger-body strong {
  color: var(--danger);
}

/* Modal backdrop pattern (for video modal in Clips) */
#videoModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(4px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#videoModal.active {
  display: flex;
}

#videoModal .modal {
  max-width: 900px;
  width: 100%;
  background: #000;
  border: none;
  padding: 0;
  position: relative;
  box-shadow: var(--shadow-pop);
}

#videoModal .modal-head {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  width: auto;
  padding: 12px;
  background: transparent;
  border: none;
}

#videoModal .modal-close {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#videoModal .modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-backdrop iframe {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Desktop: 768px+ */
@media (min-width: 768px) {
  .app-header {
    padding: 14px 28px;
  }

  .app-body {
    padding: 32px 36px 60px;
  }

  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .login-card {
    padding: 40px 40px 32px;
  }

  .tut-hero {
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
  }

  .tut-grid {
    grid-template-columns: 1fr 280px;
    gap: 20px;
  }

  .tut-section {
    padding: 24px;
  }

  .dashboard-footer {
    flex-direction: row;
  }
}

/* Mobile optimizations */
@media (max-width: 480px) {
  .h1 { font-size: 24px; }
  .h2 { font-size: 18px; }

  .btn { padding: 10px 16px; font-size: 13px; }

  .login-card {
    padding: 32px 24px 24px;
    border-radius: 20px;
  }

  .user-chip {
    display: none !important;
  }

  .pcard-body {
    padding: 18px;
    gap: 14px;
  }

  .modal {
    padding: 22px;
    border-radius: 18px;
  }

  .otp-input input {
    width: 42px;
    height: 50px;
    font-size: 19px;
  }
}

/* ============================================================
   NETWORK STATUS BANNER (Offline/Online Indicator)
   ============================================================ */
.network-status-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  z-index: 99999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideDownBanner 0.3s ease-out;
}

.network-status-banner.offline {
  background: #DC2626;
  color: #FFFFFF;
}

.network-status-banner.online {
  background: #059669;
  color: #FFFFFF;
}

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

/* ============================================================
   FLOATING WHATSAPP QUICK SUPPORT WIDGET
   ============================================================ */
.wa-support-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}

.wa-btn-bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #FFFFFF;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.wa-btn-bubble:hover {
  background: #20BA5A;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  color: #FFFFFF;
}

@media (max-width: 480px) {
  .wa-support-widget {
    bottom: 20px;
    right: 16px;
  }
  .wa-btn-label {
    display: none;
  }
  .wa-btn-bubble {
    padding: 12px;
    border-radius: 50%;
  }
}

/* ============================================================
   SYSTEM STATUS PILL
   ============================================================ */
.system-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #059669;
  font-size: 11.5px;
  font-weight: 600;
}

.status-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  display: inline-block;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

