﻿/* ==============================================================================
   DETIK KITA — MIDNIGHT OBSIDIAN & LUMINOUS GOLD DESIGN SYSTEM (OPTION 2)
   Ultra-Luxury High-Contrast VIP Gala & Event Photobooth Interface
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600;1,700;1,800&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  /* Canvas & Backgrounds */
  --bg-base: #07090e;
  --bg-surface: #0f121a;
  --bg-card: rgba(16, 20, 30, 0.82);
  --bg-card-hover: rgba(24, 30, 44, 0.92);
  --bg-glass-subtle: rgba(255, 255, 255, 0.05);
  
  /* Borders & Glassmorphism */
  --border-glass: rgba(212, 175, 55, 0.28);
  --border-glass-strong: rgba(243, 208, 130, 0.65);
  --border-light: rgba(255, 255, 255, 0.1);
  --backdrop-blur: blur(20px) saturate(180%);

  /* Luminous Gold Palette */
  --gold-primary: #d4af37;
  --gold-light: #f3d082;
  --gold-dark: #aa801a;
  --gold-gradient: linear-gradient(135deg, #f5d48b 0%, #d4af37 50%, #aa801a 100%);
  --gold-gradient-hover: linear-gradient(135deg, #fae0a5 0%, #e0bd4b 50%, #ba9028 100%);
  --gold-subtle-bg: rgba(212, 175, 55, 0.12);

  /* Typography Colors */
  --text-main: #ffffff;
  --text-muted: #9ba3b5;
  --text-dim: #647087;
  --text-gold: #f3d082;

  /* Accents & States */
  --accent-success: #10b981;
  --accent-danger: #ef4444;
  --accent-info: #38bdf8;

  /* Geometry & Shadows */
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 36px -8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.1);
  --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, 0.8), 0 0 35px rgba(212, 175, 55, 0.2);
  --shadow-gold: 0 10px 30px -4px rgba(212, 175, 55, 0.45);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.13) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(170, 128, 26, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(15, 18, 26, 0.8) 0%, transparent 70%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
}

/* Branded Signature Logo: detik kita */
.logo-detikkita {
  font-family: 'Playfair Display', 'Bodoni MT', 'Didot', 'Georgia', serif !important;
  font-style: italic !important;
  font-weight: 700 !important;
  letter-spacing: -1px;
  color: #f5d48b !important;
  text-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
  display: inline-block;
}

.auth-brand-wrapper {
  margin-bottom: 0.8rem;
  display: flex;
  justify-content: center;
}

.auth-brand-wrapper .logo-detikkita {
  font-size: 3.4rem;
  line-height: 1;
}

#app-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==============================================================================
   NAVBAR: EDGE-TO-EDGE PINNED (LOGO FAR LEFT, USER FAR RIGHT)
   ============================================================================== */
.navbar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 0.9rem 2.2rem !important;
  background: rgba(10, 13, 19, 0.92);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0 !important;
  margin-right: auto !important;
  white-space: nowrap !important;
}

.brand .logo-detikkita,
.nav-logo {
  font-size: 1.7rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  color: #f5d48b !important;
  text-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(22, 28, 42, 0.92);
  padding: 0.35rem 0.85rem;
  border-radius: 30px;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  margin-left: auto !important; /* Pushes firmly to far right */
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0 !important;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-primary);
  flex-shrink: 0;
}

.user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#user-role-badge {
  background: rgba(212, 175, 55, 0.2) !important;
  color: #f5d48b !important;
  border: 1px solid rgba(212, 175, 55, 0.5) !important;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 20px;
}

.btn-logout {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-logout:hover {
  color: var(--accent-danger);
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.15);
}

/* Glass Panels */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-glass-strong);
}

/* Auth Modal */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 5, 8, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 2.6rem 2.2rem;
  text-align: center;
  border-radius: 24px;
  background: rgba(14, 18, 28, 0.95);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(212, 175, 55, 0.25);
  animation: modalAppear 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalAppear {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
  font-weight: 500;
}

.demo-credentials-box {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: #e2e8f0;
  text-align: left;
}

.demo-credentials-box strong {
  color: #ffffff;
}

.demo-credentials-box code {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.82rem;
  color: #f5d48b;
  font-weight: 700;
}

.form-group {
  margin-bottom: 1.2rem;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(22, 28, 42, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
  background: rgba(28, 36, 54, 0.9);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: var(--gold-gradient);
  color: #07090e;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background: var(--gold-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -4px rgba(212, 175, 55, 0.6);
}

/* Dashboard */
.dashboard {
  max-width: 1280px;
  margin: 2rem auto 4rem auto;
  padding: 0 1.8rem;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #ffffff;
}

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

/* Stats Counter Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.stat-card {
  padding: 1.5rem;
  background: rgba(16, 20, 30, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gold-subtle-bg);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Selfie Upload Dropzone */
.upload-section {
  padding: 2.2rem;
  margin-bottom: 2.5rem;
}

.dropzone {
  border: 2px dashed rgba(212, 175, 55, 0.45);
  border-radius: var(--radius-lg);
  padding: 3.2rem 2rem;
  text-align: center;
  cursor: pointer;
  background: rgba(14, 18, 28, 0.6);
  transition: all 0.3s ease;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--gold-primary);
  background: rgba(22, 28, 42, 0.85);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.25);
  transform: translateY(-2px);
}

.dropzone-icon {
  font-size: 3.4rem;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
  display: inline-block;
  transition: transform 0.25s ease;
}

.dropzone-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #ffffff;
}

.dropzone-desc,
.dropzone-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

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

/* Settings Bar */
.settings-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-light);
}

.threshold-control {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  max-width: 420px;
}

.threshold-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.threshold-slider {
  flex: 1;
  accent-color: var(--gold-primary);
}

.threshold-badge,
.threshold-value {
  font-weight: 700;
  color: var(--gold-light);
  font-size: 0.95rem;
  min-width: 45px;
}

/* ==============================================================================
   SEARCH RESULTS & RESPONSIVE IMAGE GRID (MIDNIGHT GOLD)
   ============================================================================== */
#results-section {
  margin-top: 2rem;
  animation: fadeIn 0.4s ease;
}

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

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.faces-badge {
  background: rgba(212, 175, 55, 0.15);
  color: #f5d48b;
  border: 1px solid rgba(212, 175, 55, 0.45);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Action Toolbar */
.action-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.9rem 1.4rem;
  background: rgba(16, 20, 30, 0.85);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-action:hover {
  border-color: var(--gold-primary);
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.12);
}

.btn-action.btn-gold {
  background: var(--gold-gradient);
  color: #07090e;
  border: none;
  box-shadow: var(--shadow-gold);
}

.btn-action.btn-gold:hover {
  background: var(--gold-gradient-hover);
  transform: translateY(-1px);
}

/* Two-Column Search Results Layout */
.results-grid-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.8rem;
  align-items: start;
}

/* Query Preview Card */
.query-preview-card {
  padding: 1.5rem;
  text-align: center;
  position: sticky;
  top: 90px;
  z-index: 10;
}

.query-img-wrapper {
  position: relative;
  width: 100%;
  max-height: 280px;
  margin-bottom: 1rem;
  border-radius: 14px;
  overflow: hidden;
  background: #090c13;
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
}

#query-preview-img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  display: block;
}

/* Dynamic Matches Grid */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
  width: 100%;
}

/* Match Card */
.match-card {
  position: relative;
  background: rgba(16, 20, 30, 0.9);
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
  display: flex;
  flex-direction: column;
}

.match-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-glass-strong);
}

.match-card.selected {
  border-color: var(--gold-light) !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.4), var(--shadow-md);
}

/* Checkbox */
.card-select-checkbox {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(10, 13, 19, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.match-card.selected .card-select-checkbox {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
}

.match-card.selected .card-select-checkbox::after {
  content: '✓';
  color: #07090e;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

/* Image Wrapper */
.match-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #090c13;
}

.match-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.match-card:hover .match-img-wrapper img {
  transform: scale(1.05);
}

/* Similarity Badge */
.similarity-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  z-index: 5;
}

.similarity-badge.high-match {
  background: var(--gold-gradient);
  color: #07090e;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Match Details Footer */
.match-details {
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(12, 15, 22, 0.95);
  gap: 0.5rem;
}

.match-filename {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f1f5f9;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.face-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: #f5d48b;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  white-space: nowrap;
}

/* Empty State */
.empty-state {
  padding: 3rem 2rem;
  text-align: center;
  border-radius: var(--radius-lg);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 0.8rem;
}

/* =========================================================
   ADMIN PANEL TABS & QR STUDIO (MIDNIGHT GOLD)
   ========================================================= */
.admin-tab-nav {
  display: flex;
  background: rgba(14, 18, 28, 0.9);
  padding: 5px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  gap: 6px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.admin-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.admin-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.admin-tab-btn.active {
  background: var(--gold-gradient);
  color: #07090e;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.qr-studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.qr-config-card {
  background: rgba(14, 18, 28, 0.9);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}

.qr-theme-picker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.qr-theme-chip {
  background: rgba(22, 28, 42, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.qr-theme-chip:hover {
  border-color: var(--gold-primary);
  background: rgba(30, 38, 56, 0.9);
}

.qr-theme-chip.active {
  border-color: var(--gold-light);
  background: rgba(212, 175, 55, 0.2);
  color: #f5d48b;
}

.qr-preview-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-preview-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

/* Event Signage Card */
.event-signage-card {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  color: #0f172a;
  border-radius: 20px;
  padding: 2.2rem 1.8rem;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(212, 175, 55, 0.35);
  position: relative;
  overflow: hidden;
}

.event-signage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gold-gradient);
}

.signage-badge {
  display: inline-block;
  background: #fdfbf7;
  color: var(--gold-dark);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.6rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.signage-brand {
  color: #181a20 !important;
  font-size: 2.4rem !important;
  line-height: 1.1;
  text-shadow: none !important;
  margin-bottom: 0.4rem;
}

.signage-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #181a20;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.signage-subtitle {
  font-size: 0.82rem;
  color: #5a6275;
  line-height: 1.4;
  margin-bottom: 1.4rem;
}

.signage-qr-frame {
  background: #ffffff;
  padding: 0.9rem;
  border-radius: 16px;
  border: 2px dashed rgba(197, 155, 39, 0.4);
  display: inline-block;
  margin-bottom: 1.4rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

#qrcode-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  height: 170px;
  margin: 0 auto;
}

#qrcode-container img,
#qrcode-container canvas {
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}

.signage-steps {
  background: #fdfbf7;
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.25rem;
  text-align: left;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.signage-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: #334155;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #07090e;
  font-size: 0.68rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.signage-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.85rem;
}

.signage-url-text {
  font-family: monospace;
  font-size: 0.82rem;
  color: var(--gold-dark);
  font-weight: 700;
  word-break: break-all;
  margin-bottom: 0.25rem;
}

.signage-powered {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 500;
}

/* ==============================================================================
   RESPONSIVE DESIGN (MOBILE, TABLET, DESKTOP)
   ============================================================================== */
@media (max-width: 1024px) {
  .results-grid-layout {
    grid-template-columns: 260px 1fr;
    gap: 1.2rem;
  }
  .matches-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1rem;
  }
  .qr-studio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem 1.1rem !important;
    min-height: 56px;
  }
  .brand .logo-detikkita,
  .nav-logo {
    font-size: 1.4rem !important;
  }
  .user-badge {
    padding: 0.25rem 0.55rem !important;
    gap: 0.35rem !important;
  }
  .user-name {
    display: none !important;
  }
  #user-role-badge {
    font-size: 0.68rem !important;
    padding: 2px 6px !important;
  }
  .btn-logout {
    padding: 0.25rem 0.55rem !important;
    font-size: 0.75rem !important;
  }

  .dashboard {
    padding: 0 0.9rem;
    margin: 1rem auto 3rem auto;
  }
  .upload-section {
    padding: 1.25rem;
  }
  .dropzone {
    padding: 2rem 1rem;
  }
  .dropzone-icon {
    font-size: 2.6rem;
  }
  .settings-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .threshold-control {
    max-width: 100%;
  }
  .action-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
    padding: 0.85rem;
  }
  .action-toolbar > div {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }
  .btn-action {
    justify-content: center;
    width: 100%;
  }

  .results-grid-layout {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .query-preview-card {
    position: static;
    padding: 1.1rem;
  }
  .query-img-wrapper {
    max-height: 200px;
  }
  #query-preview-img {
    max-height: 190px;
  }

  .matches-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .match-card {
    border-radius: 12px;
  }
  .match-img-wrapper {
    aspect-ratio: 1 / 1;
  }
  .match-details {
    padding: 0.6rem 0.7rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  .match-filename {
    max-width: 100%;
    font-size: 0.78rem;
  }
  .face-tag {
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
  }
  .card-select-checkbox {
    top: 6px;
    left: 6px;
    width: 22px;
    height: 22px;
  }
  .similarity-badge {
    bottom: 6px;
    right: 6px;
    font-size: 0.68rem;
    padding: 0.18rem 0.45rem;
  }
}