:root {
  --bg-app: #0b0f19;
  --bg-surface: #111827;
  --bg-surface-hover: #1f2937;
  --bg-surface-elevated: #1e293b;
  --bg-input: #0f172a;
  
  --border: #1e293b;
  --border-focus: #3b82f6;
  --border-subtle: #1e293b;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-subtle: rgba(59, 130, 246, 0.12);

  --success: #10b981;
  --success-subtle: rgba(16, 185, 129, 0.12);
  --warning: #f59e0b;
  --warning-subtle: rgba(245, 158, 11, 0.12);
  --danger: #ef4444;
  --danger-subtle: rgba(239, 68, 68, 0.12);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.logo-text h1 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

/* =========================================================
   VORTEX DROPDOWN NAVIGATION (KLIK TURUN KE BAWAH)
   ========================================================= */
.nav-container {
  position: relative;
  z-index: 50;
}

.nav-dropdown-trigger {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #f8fafc;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  outline: none;
}

.nav-dropdown-trigger:hover {
  border-color: #38bdf8;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.nav-dropdown-trigger.open {
  border-color: #38bdf8;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.45);
  background: rgba(15, 23, 42, 0.98);
}

.trigger-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vortex-spin {
  font-size: 1.15rem;
  display: inline-block;
  filter: drop-shadow(0 0 8px #38bdf8);
  transition: transform 0.4s ease;
}

.nav-dropdown-trigger:hover .vortex-spin,
.nav-dropdown-trigger.open .vortex-spin {
  transform: rotate(180deg);
}

.dropdown-arrow {
  font-size: 0.75rem;
  color: #38bdf8;
  transition: transform 0.25s ease;
}

.nav-dropdown-trigger.open .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu - Meluncur Turun ke Bawah */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px) scale(0.96);
  min-width: 270px;
  background: rgba(11, 15, 25, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.75), 0 0 30px rgba(56, 189, 248, 0.2);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
  z-index: 1000;
}

.nav-dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.nav-tab {
  background: transparent;
  border: 1px solid transparent;
  color: #cbd5e1;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  transition: all 0.2s ease;
}

.tab-emoji {
  font-size: 1.25rem;
  display: inline-block;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.7));
}

.vortex-spin {
  display: inline-block;
  animation: vortexSpin 4s linear infinite;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.8));
}

@keyframes vortexSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.nav-tab:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateX(4px);
}

.nav-tab:hover .tab-emoji {
  transform: rotate(180deg) scale(1.25);
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.95));
}

.nav-tab.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.95), rgba(37, 99, 235, 0.95));
  color: #ffffff;
  font-weight: 600;
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.5), 0 0 12px rgba(56, 189, 248, 0.4);
}

.nav-tab.active .tab-emoji {
  animation: vortexSpinSlow 5s linear infinite;
  filter: drop-shadow(0 0 14px #38bdf8);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: var(--bg-app);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

/* Main Layout */
.main-container {
  flex: 1;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Vortex Spin Animation */
.vortex-spin-slow {
  display: inline-block;
  animation: vortexSpinSlow 8s linear infinite;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.5));
}

@keyframes vortexSpinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Grid & Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.7));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-top: 2px solid #38bdf8;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 14px 30px -5px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.2);
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.stat-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.stat-sub {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 6px;
  line-height: 1.4;
}

/* 2-Column Grid */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card {
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.95), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 12px 28px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.25s ease;
}

.card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 16px 34px -5px rgba(0, 0, 0, 0.65), 0 0 25px rgba(56, 189, 248, 0.12);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.card-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

.card-header h2 span {
  font-size: 1.25rem;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6));
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-label span.req {
  color: var(--danger);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--border-focus);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-help {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--bg-app);
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.btn-success {
  background: var(--success);
  color: #ffffff;
}

.btn-success:hover {
  background: #059669;
}

.btn-danger {
  background: var(--danger);
  color: #ffffff;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-warning {
  background: var(--warning);
  color: #0f172a;
}

.btn-warning:hover {
  background: #d97706;
  color: #ffffff;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

/* Link Recommendation Box */
.link-rec-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.7));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.link-rec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.link-rec-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}

.link-rec-card {
  background: rgba(15, 23, 42, 0.6);
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.link-rec-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.link-rec-card.level-critical {
  border-left: 3px solid #ef4444;
  background: rgba(239, 68, 68, 0.04);
}

.link-rec-card.level-warning {
  border-left: 3px solid #f59e0b;
  background: rgba(245, 158, 11, 0.04);
}

.link-rec-card.level-excellent {
  border-left: 3px solid #10b981;
  background: rgba(16, 185, 129, 0.04);
}

.link-rec-card.level-info {
  border-left: 3px solid #38bdf8;
  background: rgba(56, 189, 248, 0.04);
}

/* Table & Responsive Container */
.table-wrap,
.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-input);
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

table,
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 0.84rem;
  line-height: 1.5;
}

.data-table th,
table th {
  background: #0f172a;
  padding: 12px 14px;
  color: #94a3b8;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 5;
}

.data-table td,
table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  vertical-align: middle;
  transition: background 0.15s ease;
}

.data-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}

.data-table tbody tr:hover td,
table tr:hover td {
  background: rgba(56, 189, 248, 0.05);
}

.data-table tbody tr:last-child td,
table tr:last-child td {
  border-bottom: none;
}

/* Badges System */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  white-space: nowrap;
}

.badge-success { 
  background: rgba(16, 185, 129, 0.14); 
  border: 1px solid rgba(16, 185, 129, 0.3); 
  color: #34d399; 
}

.badge-warning { 
  background: rgba(245, 158, 11, 0.14); 
  border: 1px solid rgba(245, 158, 11, 0.35); 
  color: #fbbf24; 
}

.badge-danger  { 
  background: rgba(239, 68, 68, 0.15); 
  border: 1px solid rgba(239, 68, 68, 0.35); 
  color: #f87171; 
}

.badge-info    { 
  background: rgba(56, 189, 248, 0.14); 
  border: 1px solid rgba(56, 189, 248, 0.3); 
  color: #38bdf8; 
}

/* Specific Badges for Links & Monitor */
.badge-status-online {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-weight: 600;
}

.badge-status-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-weight: 700;
}

.badge-status-pending {
  background: rgba(100, 116, 139, 0.16);
  border: 1px solid rgba(100, 116, 139, 0.3);
  color: #cbd5e1;
  font-weight: 500;
}

.badge-ssl-active {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 0.73rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.1);
}

.badge-ssl-inactive {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.45);
  color: #fda4af;
  font-size: 0.73rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.2);
}

.badge-type-subdomain {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 600;
}

.badge-type-path {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
  font-size: 0.72rem;
  font-weight: 600;
}

.badge-script-item {
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.35);
  font-size: 0.71rem;
  margin: 2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Link Actions in Table Cell */
.link-actions-group {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
}

.btn-action-icon {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s ease;
  flex-shrink: 0;
  cursor: pointer;
}

.btn-action-icon:hover {
  background: var(--bg-surface-hover);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-action-delete {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.btn-action-delete:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.btn-action-fix-ssl {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-weight: 700;
  padding: 3px 8px;
  font-size: 0.72rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-action-fix-ssl:hover {
  background: #f59e0b;
  color: #0f172a;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
  transform: translateY(-1px);
}

.btn-action-template {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #ffffff;
  border: none;
  font-weight: 600;
  padding: 3px 8px;
  font-size: 0.72rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(14, 165, 233, 0.3);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-action-template:hover {
  opacity: 0.95;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.6);
  transform: translateY(-1px);
}

/* SSL Alert Warning Banner */
.ssl-warning-banner {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.16), rgba(159, 18, 57, 0.1));
  border: 1px solid rgba(244, 63, 94, 0.4);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: 0 4px 20px rgba(225, 29, 72, 0.12), inset 0 0 20px rgba(225, 29, 72, 0.04);
}

.ssl-warning-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ssl-warning-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.18);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fb7185;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ssl-warning-title {
  font-weight: 700;
  color: #ffffff;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.ssl-warning-count {
  color: #fb7185;
  font-weight: 800;
  text-decoration: underline;
}

.ssl-warning-desc {
  color: #cbd5e1;
  font-size: 0.82rem;
  margin-top: 3px;
  line-height: 1.4;
}

.btn-ssl-sync-all {
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #ffffff;
  border: none;
  font-weight: 700;
  padding: 8px 18px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(225, 29, 72, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-ssl-sync-all:hover {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.6);
  transform: translateY(-1px);
}

/* Link Status Filter Buttons */
.link-filter-btn {
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.link-filter-btn:hover {
  background: rgba(30, 41, 59, 0.9);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.link-filter-btn.active {
  background: rgba(56, 189, 248, 0.16);
  border-color: #38bdf8;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.link-filter-btn[data-filter="NO_SSL"] {
  border-color: rgba(244, 63, 94, 0.35);
  color: #fb7185;
}

.link-filter-btn[data-filter="NO_SSL"]:hover {
  background: rgba(244, 63, 94, 0.15);
  color: #ffffff;
  border-color: #f43f5e;
}

.link-filter-btn[data-filter="NO_SSL"].active {
  background: rgba(244, 63, 94, 0.25);
  border-color: #f43f5e;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.35);
}

/* SEO Score Meter (Clean Solid Circular Gauge) */
.score-circle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.score-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: conic-gradient(var(--success) calc(var(--score, 85) * 1%), #1e293b 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 10px;
}

.score-circle::before {
  content: '';
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--bg-surface);
}

.score-inner {
  position: relative;
  text-align: center;
}

.score-number {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.score-grade {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* SEO Issues */
.issue-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.issue-item {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border);
  font-size: 0.82rem;
}

.issue-item.error {
  border-left: 3px solid var(--danger);
}

.issue-item.warning {
  border-left: 3px solid var(--warning);
}

.issue-item.passed {
  border-left: 3px solid var(--success);
}

.issue-header {
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--text-primary);
}

.issue-tip {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 4px;
}

/* Code block */
pre.code-block {
  background: var(--bg-input);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: var(--radius-md);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  color: #38bdf8;
  overflow-x: auto;
  white-space: pre-wrap;
}

/* Modal */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1000px;
  height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.modal-header {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface);
}

.modal-body {
  flex: 1;
  background: var(--bg-surface);
  color: var(--text-primary);
  position: relative;
}

.modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #090d16;
}

/* 🌟 Dedicated High-Fidelity Preview Modal */
#previewModal .modal-box {
  max-width: 1280px;
  width: 95vw;
  height: 92vh;
  background: var(--bg-surface);
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 45px rgba(56, 189, 248, 0.15);
  border-radius: var(--radius-lg);
}

#previewModal .modal-header {
  padding: 12px 20px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.95));
  border-bottom: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

#previewModal .modal-header #modalPreviewTitle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.96rem;
  color: #f8fafc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#previewModal .modal-body {
  flex: 1;
  background: #090d16;
  position: relative;
  overflow: hidden;
}

#previewModal .modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #090d16;
}

/* 🌟 Pustaka Penyimpanan Script & Website Jadi Cards (.repo-card) */
.repo-card {
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.85), rgba(30, 41, 59, 0.6));
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.repo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.repo-card:hover {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(56, 189, 248, 0.15);
  transform: translateY(-2px);
}

.repo-card:hover::before {
  opacity: 1;
}

.repo-card.active-card {
  border-color: rgba(16, 185, 129, 0.55);
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.18), rgba(17, 24, 39, 0.92));
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.15);
}

.repo-card.active-card::before {
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.8), transparent);
  opacity: 1;
}

/* 🌟 Dropzone Upload Area Modern */
.upload-dropzone-box {
  background: rgba(15, 23, 42, 0.75);
  border: 2px dashed rgba(56, 189, 248, 0.45);
  border-radius: 14px;
  padding: 24px 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.upload-dropzone-box:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.05);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.15);
  transform: scale(1.005);
}

/* 🌟 Active Script Cards di Kolom Kanan */
.active-script-card {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  transition: border-color 0.2s;
}

.active-script-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
}

/* DNS Step by Step & Provider Tabs */
.provider-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.provider-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.provider-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-focus);
}

.provider-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.provider-content {
  display: none;
}

.provider-content.active {
  display: block;
}

.step-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 12px;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.step-badge {
  background: var(--primary);
  color: #ffffff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.dns-status-box {
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  margin-bottom: 16px;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS (Mobile, Tablet, Small Laptops)
   ========================================================= */

@media (max-width: 1100px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-2col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .main-container {
    padding: 16px 16px;
    max-width: 100%;
  }
  .grid-2col {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .modal-box {
    max-width: 92vw !important;
  }
}

@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 14px;
    gap: 10px;
  }

  .logo-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .logo-text h1 {
    font-size: 0.92rem;
    letter-spacing: -0.01em;
  }

  .logo-text span {
    display: none;
  }

  .header-status {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    gap: 8px;
    flex-wrap: wrap;
  }

  .nav-container {
    width: 100%;
  }

  .nav-dropdown-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
  }

  .nav-dropdown-menu {
    left: 0;
    right: 0;
    width: 100%;
    min-width: 100%;
    max-height: 65vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-8px) scale(0.97);
  }

  .nav-dropdown-menu.open {
    transform: translateY(0) scale(1);
  }

  .nav-tab {
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  .main-container {
    padding: 14px 10px;
  }

  .grid-2col {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .card {
    padding: 16px 14px;
    border-radius: 12px;
  }

  .stat-value {
    font-size: 1.4rem;
  }

  .modal-box {
    width: calc(100% - 20px) !important;
    max-width: 95vw !important;
    max-height: 90vh !important;
    height: auto !important;
    margin: auto !important;
    border-radius: 14px !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* 🌟 Dedicated Responsive Styles for Preview Modal on Smartphone / Tablet */
  #previewModal .modal-box {
    width: calc(100% - 12px) !important;
    max-width: 98vw !important;
    height: 92vh !important;
    max-height: 94vh !important;
    border-radius: 12px !important;
    margin: auto !important;
    display: flex !important;
    flex-direction: column !important;
  }

  #previewModal .modal-header {
    padding: 10px 12px !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
  }

  #previewModal .modal-header #modalPreviewTitle {
    max-width: 50% !important;
    font-size: 0.82rem !important;
  }

  #previewModal .modal-body {
    flex: 1 1 auto !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: #090d16 !important;
  }

  #previewModal .modal-body iframe {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    border: none !important;
  }

  .modal-body {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #securityLoginModal {
    padding: 16px 12px !important;
  }

  #securityLoginModal .modal-box {
    width: 100% !important;
    max-width: 400px !important;
    height: auto !important;
    max-height: 92vh !important;
    padding: 0 !important;
    border-radius: 16px !important;
  }
}

@media (max-width: 480px) {
  .app-header {
    padding: 8px 10px;
    gap: 8px;
  }

  .logo-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
  }

  .logo-text h1 {
    font-size: 0.84rem;
  }

  .header-status {
    gap: 6px;
  }

  #headerIdleTimer {
    font-size: 0.72rem !important;
    padding: 3px 8px !important;
  }

  #btnHeaderSslSync,
  #btnHeaderLogout {
    font-size: 0.74rem !important;
    padding: 4px 8px !important;
  }

  .main-container {
    padding: 10px 6px;
  }

  .card {
    padding: 14px 10px;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .card-header h2 {
    font-size: 1rem;
    line-height: 1.3;
  }

  .btn {
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .mode-switch-wrap {
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }

  .mode-switch-btn {
    width: 100%;
    padding: 9px 10px;
    font-size: 0.8rem;
    text-align: center;
    justify-content: center;
  }

  .form-group {
    margin-bottom: 12px;
  }

  .form-group div[style*="grid-template-columns"],
  .form-group div[style*="display: grid"],
  div[style*="display: grid; grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .form-input, select.form-input, textarea.form-input {
    font-size: 0.86rem;
    padding: 9px 10px;
  }

  .table-wrap,
  .table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .table-wrap table th,
  .table-wrap table td,
  .table-responsive table th,
  .table-responsive table td {
    padding: 8px 10px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  #securityLoginModal {
    padding: 12px 10px !important;
  }

  #securityLoginModal .modal-box {
    width: 100% !important;
    max-width: 380px !important;
    height: auto !important;
    max-height: 94vh !important;
    padding: 0 !important;
    border-radius: 14px !important;
  }

  #securityLoginModal .modal-box > div:first-child {
    padding: 20px 14px 8px !important;
  }

  #securityLoginModal .modal-body {
    padding: 8px 14px 18px !important;
  }

  #securityLoginModal h2 {
    font-size: 1.15rem !important;
  }

  #securityLoginModal #loginModalSubtitle {
    font-size: 0.74rem !important;
  }

  .vortex-toast-container {
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    max-width: calc(100vw - 20px) !important;
  }

  /* 🌟 Small Smartphone Tweaks for Preview Modal & Script Cards */
  #previewModal .modal-header {
    padding: 8px 10px !important;
    gap: 6px !important;
  }

  #previewModal .modal-header #modalPreviewTitle {
    max-width: 46% !important;
    font-size: 0.78rem !important;
  }

  .preview-tab-btn-text {
    display: none !important;
  }

  .repo-card {
    padding: 12px 10px !important;
    gap: 8px !important;
  }
}

/* =========================================================
   AUTO-PILOT & AUTOMATION TAB STYLES
   ========================================================= */
.mode-switch-wrap {
  display: flex;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  gap: 4px;
}

.mode-switch-btn {
  flex: 1;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.mode-switch-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.mode-switch-btn.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(56, 189, 248, 0.25));
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.code-container {
  background: #080d1a;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 18px;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0f172a;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: #94a3b8;
}

.code-header .lang-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #38bdf8;
}

.code-pre {
  margin: 0;
  padding: 14px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #e2e8f0;
  overflow-x: auto;
  white-space: pre;
}

.code-pre code {
  font-family: inherit;
}

/* =========================================================
   VORTEX LOG & DIAGNOSTIK STYLES
   ========================================================= */
.log-filter-btn {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.log-filter-btn:hover {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

.log-filter-btn.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(56, 189, 248, 0.2));
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

#logsConsoleBox::-webkit-scrollbar {
  width: 8px;
}
#logsConsoleBox::-webkit-scrollbar-track {
  background: #090d16;
}
#logsConsoleBox::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
#logsConsoleBox::-webkit-scrollbar-thumb:hover {
  background: #38bdf8;
}

.link-filter-btn {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

/* 🛠️ Modal Quick Script & Multi-Method Manager */
#quickScriptModal .modal-box {
  max-width: 680px;
  width: 95vw;
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(56, 189, 248, 0.15);
  border-radius: var(--radius-lg);
}

#quickScriptModal .modal-header {
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 20px;
}

#quickScriptModal .modal-body {
  background: #0f172a;
  color: #f8fafc;
  padding: 20px;
  overflow-y: auto;
}

.method-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.method-btn {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.method-btn .v-icon {
  width: 15px;
  height: 15px;
  color: #94a3b8;
  flex-shrink: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.method-btn:hover {
  background: rgba(56, 189, 248, 0.1);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.4);
}

.method-btn:hover .v-icon {
  color: #38bdf8;
  transform: scale(1.1);
}

.method-btn.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(99, 102, 241, 0.22));
  border-color: #38bdf8;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

.method-btn.active .v-icon {
  color: #38bdf8;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.8));
}

.quick-script-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

@media (max-width: 640px) {
  .method-switcher {
    grid-template-columns: 1fr;
  }
  .quick-script-grid-2 {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.package-info-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 10px;
}

/* 🌀 Vortex Notification Toasts */
.vortex-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 440px;
  width: calc(100vw - 48px);
  pointer-events: none;
}

.vortex-toast {
  pointer-events: auto;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid #38bdf8;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.84rem;
  line-height: 1.45;
  animation: vortexToastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.vortex-toast.vortex-toast-hiding {
  opacity: 0;
  transform: translateX(30px);
}

.vortex-toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.vortex-toast-content {
  flex: 1;
}

.vortex-toast-title {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 2px;
  color: #fff;
}

.vortex-toast-body {
  color: var(--text-secondary);
  word-break: break-word;
  white-space: pre-line;
}

.vortex-toast.success {
  border-left-color: #10b981;
}
.vortex-toast.success .vortex-toast-title {
  color: #34d399;
}

.vortex-toast.error,
.vortex-toast.danger {
  border-left-color: #ef4444;
}
.vortex-toast.error .vortex-toast-title,
.vortex-toast.danger .vortex-toast-title {
  color: #f87171;
}

.vortex-toast.warning {
  border-left-color: #f59e0b;
}
.vortex-toast.warning .vortex-toast-title {
  color: #fbbf24;
}

.vortex-toast.info {
  border-left-color: #38bdf8;
}
.vortex-toast.info .vortex-toast-title {
  color: #38bdf8;
}

@keyframes vortexToastIn {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 🗄️ Repository & Template Storage Styling */
.repo-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.repo-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.repo-card.active-card {
  border-color: rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(16, 185, 129, 0.05));
}

.target-website-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease;
}

.target-website-row:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
}

.target-website-row.selected {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
}

/* =========================================================
   🛡️ SISTEM KEAMANAN SUPER KETAT & LOGIN MODAL
   ========================================================= */

/* Switch Toggle Component */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #334155;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.switch-toggle .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: #f8fafc;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.switch-toggle input:checked + .slider {
  background-color: #10b981;
  border-color: #059669;
}

.switch-toggle input:focus + .slider {
  box-shadow: 0 0 1px #10b981;
}

.switch-toggle input:checked + .slider:before {
  transform: translateX(24px);
}

/* Header Session Badge */
.session-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: monospace;
}

.session-timer-badge.warning {
  border-color: rgba(239, 68, 68, 0.6);
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  animation: pulse-warn 1s infinite alternate;
}

@keyframes pulse-warn {
  from { box-shadow: 0 0 2px rgba(239, 68, 68, 0.2); }
  to { box-shadow: 0 0 12px rgba(239, 68, 68, 0.6); }
}

/* 🔒 Security Lockdown Gate: Cegah kebocoran dashboard saat reload / hard refresh */
body.auth-locked .app-header,
body.auth-locked .main-container {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.auth-locked #securityLoginModal {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body:not(.auth-locked) #securityLoginModal {
  display: none !important;
}

/* Modal Overlay Login */
#securityLoginModal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(3, 7, 18, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.login-glass-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.95), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(56, 189, 248, 0.1);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  animation: loginAppear 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4, #10b981);
}

@keyframes loginAppear {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Password Strength Bar */
.password-meter-bar {
  height: 4px;
  width: 100%;
  background: #1e293b;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}

.password-meter-fill {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.password-meter-fill.weak { width: 30%; background-color: #ef4444; }
.password-meter-fill.medium { width: 65%; background-color: #f59e0b; }
.password-meter-fill.strong { width: 100%; background-color: #10b981; }

/* QR Code Display Card */
.qr-render-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  margin: 0 auto;
  width: fit-content;
}

.qr-render-box svg {
  display: block;
}

/* Secret Key Pill */
.secret-key-badge {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  letter-spacing: 2px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px dashed rgba(56, 189, 248, 0.4);
  padding: 10px 16px;
  border-radius: 8px;
  color: #38bdf8;
  display: inline-block;
  user-select: all;
}







/* Vector SVG Icons System (Crisp, High-DPI, Enterprise Grade) */
.v-icon {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  vertical-align: -0.2em;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: transform 0.25s ease, filter 0.25s ease, color 0.25s ease;
}

.tab-vector-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #94a3b8;
  filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.4));
}

.nav-tab:hover .tab-vector-icon {
  transform: scale(1.2) rotate(6deg);
  color: #38bdf8;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.9));
}

.nav-tab.active .tab-vector-icon {
  transform: scale(1.15);
  color: #ffffff;
  filter: drop-shadow(0 0 12px #38bdf8);
}

.stat-icon svg {
  width: 2rem;
  height: 2rem;
  display: inline-block;
  stroke: #38bdf8;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
  transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon svg {
  transform: scale(1.12);
  stroke: #60a5fa;
}

.form-label .v-icon {
  width: 1.1rem;
  height: 1.1rem;
  margin-right: 6px;
  vertical-align: -0.18em;
  color: #38bdf8;
}
