/* ==========================================================================
   AI ABELLAB - ULTRA-SHARP LUXURY OBSIDIAN & RADIANT GOLD STYLING
   Super clear, high contrast, crisp typography, and readable luxury design
   ========================================================================== */

:root {
  /* Colors - Ultra High Contrast */
  --bg-darkest: #0a0e17;
  --bg-dark: #111827;
  --bg-card: #141c2e;
  --bg-card-hover: #1c273e;
  --bg-input: #0b111e;

  /* Radiant Gold Accents - Clean & Crisp */
  --gold-primary: #f59e0b;
  --gold-bright: #fbbf24;
  --gold-light: #fef08a;
  --gold-deep: #b45309;
  --gold-border: #f59e0b;
  --gold-glow: 0 0 15px rgba(245, 158, 11, 0.35);

  /* Clear Status Colors */
  --emerald-active: #10b981;
  --emerald-light: #34d399;
  --rose-expired: #f43f5e;
  --blue-info: #3b82f6;

  /* Fonts - Universal high readability */
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-mono: "Consolas", "Courier New", monospace;

  /* Crisp Typography Colors */
  --text-white: #ffffff;
  --text-bright: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  --text-gold: #fde047;

  /* Geometry & Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-box: 0 10px 30px rgba(0, 0, 0, 0.7);
  --transition: all 0.2s ease-in-out;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-main);
  background: #090d16 radial-gradient(circle at 50% 0%, #172033 0%, #090d16 80%);
  color: var(--text-bright);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle gold top border bar */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d97706, #fbbf24, #fef08a, #fbbf24, #d97706);
  z-index: 99999;
}

.app-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 80px 20px;
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.luxury-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #111827;
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  margin-bottom: 28px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-decoration: none;
}

.brand-logo-emblem {
  width: 46px;
  height: 46px;
  background: #1e293b;
  border: 2px solid var(--gold-bright);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.brand-crown-icon {
  width: 26px;
  height: 26px;
  fill: #fbbf24;
}

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

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 1.5px;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.license-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: #1e293b;
  border: 1.5px solid #10b981;
  border-radius: 30px;
  font-size: 0.85rem;
}

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

.license-countdown-badge {
  font-family: var(--font-mono);
  color: #fef08a;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Clear Luxury Buttons */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
  color: #0b0f19;
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border: 1px solid #fde047;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  transition: var(--transition);
  text-decoration: none;
}

.btn-gold:hover {
  background: linear-gradient(180deg, #fde047 0%, #f59e0b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-luxury-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: #1e293b;
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-luxury-outline:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: #fbbf24;
  color: #fff;
  transform: translateY(-1px);
}

.btn-instant-unlock {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1px solid #34d399;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
}

.btn-instant-unlock:hover {
  background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* ==========================================================================
   VIEW 1: LUXURY LICENSE GATE (Crystal Clear UI)
   ========================================================================== */
.view-container {
  display: none;
}

.view-container.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

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

.gate-wrapper {
  max-width: 760px;
  margin: 10px auto;
}

.gate-card {
  background: #111827;
  border: 2px solid var(--gold-bright);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(245, 158, 11, 0.2);
  position: relative;
  text-align: center;
}

.gate-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid #f59e0b;
  border-radius: 20px;
  color: #fbbf24;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.gate-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
  margin-bottom: 12px;
  line-height: 1.2;
}

.gate-title span {
  color: #fbbf24;
}

.gate-desc {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Quick Instant Unlock Banner */
.quick-access-box {
  background: #172238;
  border: 1.5px solid rgba(16, 185, 129, 0.6);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 30px;
  text-align: left;
}

.quick-access-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #34d399;
  margin-bottom: 8px;
}

.quick-access-desc {
  font-size: 0.92rem;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.quick-access-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-preset-login {
  background: #1e293b;
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  color: #ffffff;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.btn-preset-login:hover {
  background: #25334c;
  border-color: #fbbf24;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.preset-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fbbf24;
}

.preset-sub {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Manual Input Section */
.manual-input-box {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 26px;
  text-align: left;
}

.manual-input-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 10px;
}

.gate-input-wrapper {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.gate-input-key {
  flex: 1;
  padding: 15px 18px;
  background: #090d16;
  border: 2px solid rgba(245, 158, 11, 0.5);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  outline: none;
}

.gate-input-key:focus {
  border-color: #fbbf24;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.btn-activate-gate {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
}

/* ==========================================================================
   VIEW 2: MAIN DASHBOARD & DATA VAULT
   ========================================================================== */
.dashboard-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111827;
  border: 1.5px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.topbar-title-group h1 {
  font-size: 1.85rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 4px;
}

.topbar-title-group h1 span {
  color: #fbbf24;
}

.topbar-title-group p {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.topbar-cta-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Stat Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #111827;
  border: 1.5px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
}

.stat-value.gold-text {
  color: #fbbf24;
}

.stat-countdown-display {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: #34d399;
  font-weight: 800;
}

/* Vault Controls */
.vault-controls {
  background: #111827;
  border: 1.5px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.controls-row-top {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  position: relative;
  min-width: 260px;
}

.search-input {
  width: 100%;
  padding: 12px 18px 12px 42px;
  background: #090d16;
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
}

.search-input:focus {
  border-color: #fbbf24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #fbbf24;
  width: 18px;
  height: 18px;
}

.sort-select {
  padding: 12px 16px;
  background: #090d16;
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-sm);
  color: #fbbf24;
  font-weight: 700;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
}

.category-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pill-btn {
  padding: 8px 16px;
  background: #1e293b;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 20px;
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.pill-btn:hover {
  border-color: #fbbf24;
  color: #ffffff;
}

.pill-btn.active {
  background: #f59e0b;
  color: #0b0f19;
  border-color: #fbbf24;
  font-weight: 900;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

/* Vault Cards Grid */
.vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.vault-item-card {
  background: #111827;
  border: 1.5px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
  position: relative;
}

.vault-item-card:hover {
  border-color: #fbbf24;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 15px rgba(245, 158, 11, 0.2);
}

.vault-item-card.is-favorite {
  border-color: #f59e0b;
  border-left: 5px solid #fbbf24;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.card-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.card-actions-quick {
  display: flex;
  gap: 6px;
}

.btn-icon-action {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: var(--transition);
}

.btn-icon-action:hover {
  color: #fbbf24;
  background: #1e293b;
}

.btn-icon-action.star-active {
  color: #fbbf24;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.35;
}

/* Crisp & Clear Content Box */
.card-content-box {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.95rem;
  color: #f8fafc;
  max-height: 180px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
  margin-bottom: 14px;
}

.card-content-box.monospace {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #a7f3d0;
}

/* Protected Secret Box (Crystal clear status instead of ugly blur) */
.card-content-box.secret-protected {
  background: #1e1b4b;
  border: 1px dashed #818cf8;
  color: #c7d2fe;
  font-family: var(--font-mono);
  text-align: center;
  padding: 18px;
  cursor: pointer;
  font-weight: 700;
}

.card-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.card-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
  background: #1e293b;
  padding: 3px 10px;
  border-radius: 4px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: #94a3b8;
}

.card-footer-btns {
  display: flex;
  gap: 8px;
}

.btn-copy-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #1e293b;
  border: 1px solid #f59e0b;
  color: #fbbf24;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy-card:hover {
  background: #f59e0b;
  color: #0b0f19;
}

/* Empty State */
.vault-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #111827;
  border: 2px dashed rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-lg);
}

.vault-empty-icon {
  width: 64px;
  height: 64px;
  color: #fbbf24;
  margin-bottom: 16px;
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.luxury-modal-container {
  background: #111827;
  border: 2px solid var(--gold-bright);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.luxury-modal-container.wide {
  max-width: 920px;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #172238;
}

.modal-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fbbf24;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.8rem;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #ffffff;
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-footer {
  padding: 18px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #172238;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f8fafc;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 14px;
  background: #090d16;
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: #fbbf24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.form-checkbox-group input[type="checkbox"] {
  accent-color: #f59e0b;
  width: 18px;
  height: 18px;
}

/* Admin Table */
.admin-table-container {
  overflow-x: auto;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  background: #172238;
  padding: 12px 14px;
  color: #fbbf24;
  font-weight: 800;
  border-bottom: 1.5px solid rgba(245, 158, 11, 0.3);
}

.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.badge-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.badge-status.available {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid #3b82f6;
}

.badge-status.active {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid #10b981;
}

.badge-status.expired {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
  border: 1px solid #f43f5e;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.luxury-toast {
  background: #172238;
  border: 2px solid #fbbf24;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  font-size: 0.95rem;
  font-weight: 600;
  min-width: 300px;
}

/* Responsive */
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-access-buttons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .luxury-navbar {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .gate-card {
    padding: 24px 18px;
  }
  .gate-input-wrapper {
    flex-direction: column;
  }
}


/* ==========================================================================
   PRODUCT LINKS STYLING (ETALASE PRODUK MEWAH)
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.product-card {
  background: #111827;
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.6);
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  border-color: #fbbf24;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 18px rgba(245, 158, 11, 0.3);
}

.product-thumb-wrapper {
  position: relative;
  width: 100%;
  height: 185px;
  background: #090d16;
  overflow: hidden;
}

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

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

.product-badge-float {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0f19;
  font-size: 0.75rem;
  font-weight: 900;
  border-radius: 4px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.product-clicks-float {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
}

.product-info-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.product-category-pill {
  font-size: 0.78rem;
  font-weight: 800;
  color: #fbbf24;
  text-transform: uppercase;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-desc {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 14px;
  flex: 1;
}

.product-price-box {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
  padding: 8px 12px;
  background: #090d16;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-promo-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: #34d399;
}

.product-orig-price {
  font-size: 0.85rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.product-action-footer {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  background: #0d131f;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-open-link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
  color: #0b0f19;
  font-weight: 900;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid #fde047;
}

.btn-open-link:hover {
  background: linear-gradient(180deg, #fde047 0%, #f59e0b 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.5);
}

.btn-copy-product-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  background: #1e293b;
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy-product-link:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: #fbbf24;
}

/* Admin Tabs Styling */
.admin-nav-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid rgba(245, 158, 11, 0.3);
  margin-bottom: 20px;
  padding-bottom: 8px;
}

.admin-tab-item {
  padding: 10px 20px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.admin-tab-item.active {
  background: #f59e0b;
  color: #0b0f19;
  border-color: #fbbf24;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}


/* WhatsApp Share Button Styling */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: #0b0f19;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid #4ade80;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: var(--transition);
}

.btn-whatsapp:hover {
  background: #22c55e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  color: #000;
}

.btn-table-wa {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid #25D366;
  color: #4ade80;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.btn-table-wa:hover {
  background: #25D366;
  color: #0b0f19;
}

/* ==========================================================================
   HERO BANNER & LOGO BRANDING STYLES
   ========================================================================== */
.hero-banner-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
  min-height: 200px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 15, 25, 0.95) 0%, rgba(11, 15, 25, 0.75) 50%, rgba(11, 15, 25, 0.4) 100%);
  z-index: 1;
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  padding: 32px 36px;
  max-width: 680px;
}

.hero-banner-tag {
  display: inline-block;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #fbbf24;
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero-banner-title {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.hero-banner-desc {
  color: #cbd5e1;
  font-size: 0.98rem;
  line-height: 1.55;
  margin-bottom: 0;
}

/* Custom Uploaded Brand Logo */
.brand-custom-logo {
  max-height: 38px;
  max-width: 140px;
  object-fit: contain;
  border-radius: 6px;
}

/* Tool Logo in Card */
.tool-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  padding: 4px;
}

/* Direct Upload UI Box in Admin Panel */
.upload-dropzone {
  border: 2px dashed rgba(245, 158, 11, 0.4);
  background: rgba(17, 24, 39, 0.7);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.upload-dropzone:hover {
  border-color: #fbbf24;
  background: rgba(245, 158, 11, 0.08);
}

.upload-preview-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #0b0f19;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: 10px;
}

.upload-preview-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: #111827;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.upload-banner-thumb {
  width: 100%;
  max-height: 160px;
  border-radius: 8px;
  object-fit: cover;
  background: #111827;
  border: 1.5px solid rgba(245, 158, 11, 0.4);
}

.tunnel-card {
  background: linear-gradient(135deg, #111827 0%, #172238 100%);
  border: 1.5px solid rgba(59, 130, 246, 0.5);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 24px;
}

.tunnel-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #34d399;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
}

/* ==========================================================================
   TOOL LOGO UPLOAD & CARD BADGE STYLES (Clean SaaS UI)
   ========================================================================== */
.tool-logo-section {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.tool-logo-preview-frame {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: #0b0f19;
  border: 1.5px solid rgba(251, 191, 36, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.tool-logo-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.tool-logo-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.tool-logo-meta {
  flex: 1;
  min-width: 0;
}

.tool-logo-help {
  color: #94a3b8;
  font-size: 0.8rem;
  margin: 0 0 10px 0;
}

.tool-logo-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-upload-logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fbbf24;
  color: #0b0f19;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 7px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-upload-logo:hover {
  background: #f59e0b;
  transform: translateY(-1px);
}

.btn-remove-logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.35);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-remove-logo:hover {
  background: rgba(244, 63, 94, 0.25);
  color: #ffffff;
}

.btn-text-link {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
  transition: var(--transition);
}

.btn-text-link:hover {
  color: #fbbf24;
}

.tool-card-logo-badge {
  width: 52px;
  height: 52px;
  background: #0b0f19;
  border: 1.5px solid rgba(251, 191, 36, 0.5);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.tool-card-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.tool-table-thumb {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #0b0f19;
  border: 1px solid rgba(251, 191, 36, 0.3);
  object-fit: contain;
  padding: 3px;
  flex-shrink: 0;
}
