/* ==========================================================================
   PRINTERBOX KIOSK - STYLESHEET
   Design System: Modern Glassmorphism Dark/Slate Theme with Vibrant Accents
   ========================================================================== */

/* UTILITY CLASSES */
.hidden {
  display: none !important;
}

:root {
  --bg-dark: #0b1222;
  --bg-card: rgba(18, 28, 51, 0.85);
  --bg-card-hover: rgba(30, 45, 80, 0.9);
  --border-color: rgba(255, 255, 255, 0.12);
  --border-highlight: rgba(29, 96, 194, 0.5);
  
  --primary: #1d60c2;
  --primary-hover: #154ea0;
  --primary-glow: rgba(29, 96, 194, 0.4);
  
  --accent-gold: #facc15;
  --accent-gold-glow: rgba(250, 204, 21, 0.4);
  
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.35);
  --danger: #ef4444;
  --warning: #f97316;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-main: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(29, 96, 194, 0.3);
}

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

.text-center {
  text-align: center !important;
}

.text-gradient {
  background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 50%, #facc15 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gold {
  color: var(--accent-gold, #facc15) !important;
}

.text-cyan {
  color: #38bdf8 !important;
}

.text-purple {
  color: #c084fc !important;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(at 0% 0%, rgba(29, 96, 194, 0.22) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(250, 204, 21, 0.12) 0px, transparent 50%),
    radial-gradient(at 50% 50%, #0b1222 0%, #050812 100%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  overflow-x: hidden;
}

/* APP HEADER */
.app-header {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 24px;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-logo-img {
  height: 72px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.9)) drop-shadow(0 2px 10px rgba(255, 255, 255, 0.35)) drop-shadow(0 4px 16px rgba(0, 0, 0, 0.7));
  transition: transform 0.25s ease, filter 0.25s ease;
  display: block;
}

.brand-logo-img:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 1)) drop-shadow(0 4px 16px rgba(56, 189, 248, 0.6)) drop-shadow(0 6px 20px rgba(0, 0, 0, 0.9));
}

.brand-logo-lg {
  height: 90px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  box-shadow: 0 0 15px var(--primary-glow);
}

.brand-info h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-info h1 span {
  color: var(--primary);
}

.kiosk-badge {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Nav Tabs */
.nav-tabs {
  display: flex;
  background: rgba(30, 41, 59, 0.6);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.nav-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

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

.nav-tab.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.kiosk-tab-btn {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.kiosk-tab-btn.active {
  background: var(--accent-gold);
  color: #000;
  box-shadow: 0 4px 12px var(--accent-gold-glow);
}

/* Status Indicator */
.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(16, 185, 129, 0.1);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-indicator.online {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
}

/* MAIN LAYOUT */
.main-content {
  max-width: 1280px;
  margin: 24px auto;
  padding: 0 24px;
  width: 100%;
  flex: 1;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* SECTION 1: UPLOAD & OPTIONS GRID */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .section-grid {
    grid-template-columns: 1fr;
  }
}

/* CARD SYSTEM */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-main);
}

.card-header {
  margin-bottom: 20px;
}

.card-header h2 {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}

.card-header h2 i {
  color: var(--primary);
}

.card-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* DROP ZONE */
.drop-zone {
  border: 2px dashed rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-md);
  padding: 40px 20px;
  text-align: center;
  background: rgba(15, 23, 42, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--primary);
  background: rgba(14, 165, 233, 0.05);
}

.upload-icon-circle {
  width: 70px;
  height: 70px;
  background: rgba(14, 165, 233, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 26px;
  color: var(--primary);
  gap: 6px;
}

.drop-zone h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.drop-zone p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.upload-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn {
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #0284c7);
  color: white;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
  background: rgba(51, 65, 85, 0.7);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(71, 85, 105, 0.9);
}

.btn-block {
  width: 100%;
}

.btn-pay {
  background: linear-gradient(135deg, var(--success), #059669);
  color: white;
  font-size: 16px;
  padding: 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px var(--success-glow);
  margin-top: 16px;
}

.btn-pay:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--success-glow);
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
}

.btn-icon.danger:hover {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger);
}

/* FILE PREVIEW */
.file-preview-area {
  margin-top: 16px;
}

.file-info-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.file-info-badge i {
  font-size: 20px;
  color: var(--success);
}

.file-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.file-name {
  font-weight: 700;
  font-size: 14px;
  word-break: break-all;
}

.file-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.preview-box {
  width: 100%;
  height: 320px;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.preview-box iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* OPTIONS FORM & SEGMENTED CONTROLS */
.options-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.segmented-item {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.segmented-item:hover {
  border-color: var(--border-highlight);
  background: rgba(30, 41, 59, 0.9);
}

.segmented-item.active {
  background: rgba(14, 165, 233, 0.15);
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.segmented-item i {
  font-size: 20px;
  color: var(--primary);
}

.segment-text {
  display: flex;
  flex-direction: column;
}

.segment-text strong {
  font-size: 13px;
  font-weight: 700;
}

.segment-text span {
  font-size: 11px;
  color: var(--text-muted);
}

.row-group {
  display: flex;
  gap: 16px;
}

.col {
  flex: 1;
}

/* COUNTER CONTROL */
.counter-control {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.btn-counter {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-counter:hover {
  background: rgba(255, 255, 255, 0.1);
}

.counter-control input {
  width: 50px;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
}

.paper-badge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 10px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 13px;
  text-align: center;
}

/* PRICE SUMMARY BOX */
.price-summary-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 8px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.price-row strong {
  color: var(--text-main);
  font-family: var(--font-mono);
}

.price-divider {
  height: 1px;
  background: var(--border-color);
  margin: 10px 0;
}

.price-row.total {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0;
}

.total-amount {
  color: var(--accent-gold);
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-mono);
}

/* SECTION 2: MONNAYEUR / COIN ACCEPTOR */
.monnayeur-container {
  max-width: 800px;
  margin: 0 auto;
}

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

.monnayeur-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.monnayeur-title i {
  font-size: 28px;
  color: var(--accent-gold);
}

.order-id-badge {
  background: rgba(56, 189, 248, 0.1);
  color: var(--primary);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 12px;
}

.payment-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.metric-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
}

.metric-box.total .metric-value { color: var(--text-main); }
.metric-box.inserted .metric-value { color: var(--success); }
.metric-box.remaining .metric-value { color: var(--warning); }

.progress-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 24px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--warning), var(--success));
  transition: width 0.4s ease;
}

/* HARDWARE COIN SLOT */
.coin-acceptor-box {
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

.coin-slot-hardware {
  background: #020617;
  border: 2px solid #334155;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.8);
}

.slot-opening {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.slot-arrow {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 1px;
}

.slot-line {
  width: 120px;
  height: 10px;
  background: #000;
  border: 2px solid var(--accent-gold);
  border-radius: 5px;
  box-shadow: 0 0 10px var(--accent-gold-glow);
}

.slot-status {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* COIN BUTTONS */
.real-monnayeur-panel {
  margin-top: 18px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: left;
}

.hardware-pulse-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pulse-dot {
  width: 12px;
  height: 12px;
  background-color: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--success);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
  100% { transform: scale(0.9); opacity: 1; }
}

.accepted-coins-wrapper {
  margin-bottom: 12px;
}

.accepted-coins-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.coin-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.coin-chip i {
  color: var(--accent-gold);
}

.monnayeur-real-instruction {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  background: rgba(250, 204, 21, 0.08);
  border: 1px dashed rgba(250, 204, 21, 0.3);
  padding: 10px 14px;
  border-radius: 8px;
}

.change-return-box {
  margin-top: 20px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--success);
}

/* SECTION 3: TICKET OTP */
.otp-ticket-container {
  max-width: 550px;
  margin: 0 auto;
}

.ticket-card {
  background: var(--bg-card);
  border: 2px solid var(--success);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: 0 0 35px var(--success-glow);
}

.ticket-status-icon {
  width: 70px;
  height: 70px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  font-size: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.ticket-header h2 {
  font-size: 20px;
  font-weight: 800;
}

.ticket-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* OTP DISPLAY BOX */
.otp-display-box {
  background: rgba(15, 23, 42, 0.8);
  border: 2px dashed var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  margin: 24px 0;
}

.otp-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 14px;
}

.otp-digits {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.otp-digit {
  width: 56px;
  height: 66px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid var(--accent-gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-gold);
  box-shadow: 0 0 15px var(--accent-gold-glow);
}

.otp-instruction {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
}

.ticket-details {
  background: rgba(15, 23, 42, 0.5);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  margin-bottom: 24px;
}

.t-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
}

.t-row:last-child { margin-bottom: 0; }
.t-row span { color: var(--text-muted); }

.badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

/* SECTION 4: BORNE TERMINAL KIOSK */
.kiosk-terminal-screen {
  max-width: 900px;
  margin: 0 auto;
}

.kiosk-terminal-frame {
  background: #020617;
  border: 4px solid #334155;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.2);
  overflow: hidden;
}

.terminal-header {
  background: linear-gradient(90deg, #0f172a, #1e293b);
  border-bottom: 2px solid var(--border-color);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terminal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.terminal-brand i {
  font-size: 24px;
  color: var(--primary);
}

.terminal-brand h2 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.terminal-brand span {
  font-size: 11px;
  color: var(--text-muted);
}

.terminal-clock {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary);
  font-size: 16px;
}

.terminal-body {
  padding: 36px;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* PIN KEYPAD ENTRY */
.pin-entry-container {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.pin-header h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.pin-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pin-display {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}

.pin-slot {
  width: 60px;
  height: 70px;
  background: rgba(30, 41, 59, 0.9);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
}

.pin-slot.filled {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* PIN KEYPAD GRID */
.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 360px;
  margin: 0 auto;
}

.key-btn {
  height: 60px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
}

.key-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.key-btn:active {
  transform: scale(0.95);
}

.danger-key {
  font-size: 12px;
  font-weight: 800;
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

.warning-key {
  color: var(--warning);
  background: rgba(249, 115, 22, 0.1);
}

.pin-error-msg {
  margin-top: 16px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

/* PRINTING CONTAINER */
.printing-container {
  width: 100%;
  text-align: center;
}

.job-validated-header i {
  font-size: 44px;
  color: var(--success);
  margin-bottom: 10px;
}

.validated-job-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 20px 0;
  text-align: left;
}

.job-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-item span {
  font-size: 11px;
  color: var(--text-muted);
}

.meta-item strong {
  font-size: 13px;
}

/* PRINTER ANIMATION */
.printer-hardware-animation {
  margin: 24px 0;
  padding: 20px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: var(--radius-md);
}

.printer-machine {
  width: 180px;
  height: 100px;
  background: #334155;
  border-radius: 12px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.printer-light.printing {
  width: 10px;
  height: 10px;
  background: var(--success);
  border-radius: 50%;
  position: absolute;
  top: 15px;
  right: 15px;
  box-shadow: 0 0 10px var(--success);
  animation: blink 0.8s infinite alternate;
}

@keyframes blink {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

.output-tray {
  width: 140px;
  height: 15px;
  background: #0f172a;
  position: absolute;
  bottom: 10px;
  left: 20px;
  border-radius: 4px;
  overflow: visible;
}

.printed-sheet {
  width: 120px;
  height: 70px;
  background: #ffffff;
  color: #000;
  font-size: 8px;
  font-weight: 800;
  padding: 6px;
  border-radius: 4px;
  position: absolute;
  top: -65px;
  left: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transform: translateY(-40px);
  opacity: 0;
  transition: all 1s ease;
}

.printed-sheet.eject {
  transform: translateY(0);
  opacity: 1;
}

.print-status-msg {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 14px;
}

.btn-kiosk-start {
  background: linear-gradient(135deg, var(--accent-gold), #d97706);
  color: #000;
  font-weight: 800;
  font-size: 18px;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px var(--accent-gold-glow);
  width: 100%;
}

.btn-kiosk-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-gold-glow);
}

/* CAMERA MODAL */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 600px;
  overflow: hidden;
}

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

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}

.video-container {
  width: 100%;
  height: 360px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* HEADER RIGHT ACTIONS & STATS BADGE */
.header-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stats-badge-btn {
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: var(--primary);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.stats-badge-btn:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.stats-badge-btn strong {
  font-family: var(--font-mono);
  font-size: 13px;
}

/* STATS MODAL & COUNTERS */
.stats-modal-card {
  max-width: 720px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
}

.stat-box.primary { border-color: rgba(14, 165, 233, 0.4); }
.stat-box.bw { border-color: rgba(148, 163, 184, 0.3); }
.stat-box.color { border-color: rgba(245, 158, 11, 0.4); }
.stat-box.revenue { border-color: rgba(16, 185, 129, 0.4); }

.stat-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.stat-box.primary .stat-value { color: var(--primary); }
.stat-box.color .stat-value { color: var(--accent-gold); }
.stat-box.revenue .stat-value { color: var(--success); }

.stat-sub {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

.paper-tray-section {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
}

.paper-tray-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  margin-top: 12px;
}

.history-section h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}

.history-list-container {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.history-item-left {
  display: flex;
  flex-direction: column;
}

.history-item-name {
  font-weight: 700;
  color: var(--text-main);
}

.history-item-meta {
  color: var(--text-muted);
  font-size: 11px;
}

.history-item-right {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--accent-gold);
}

.empty-history {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 16px;
}

/* ADMIN TAB BUTTON & PORTAL STYLES */
.admin-tab-btn {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.admin-tab-btn.active {
  background: var(--success);
  color: #fff;
  box-shadow: 0 4px 12px var(--success-glow);
}

.admin-container {
  max-width: 900px;
  margin: 0 auto;
}

.admin-login-card {
  max-width: 440px;
  margin: 40px auto;
  padding: 32px;
}

.admin-icon-circle {
  width: 64px;
  height: 64px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
}

.admin-form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-control {
  width: 100%;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.login-error-msg {
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.admin-dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.admin-dash-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-dash-title i {
  font-size: 28px;
  color: var(--success);
}

.price-edit-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 24px;
}

.price-edit-box h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}

@media (max-width: 768px) {
  .price-edit-grid {
    grid-template-columns: 1fr;
  }
}

.input-unit {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding-right: 12px;
}

.input-unit input {
  border: none;
  background: transparent;
  padding: 10px 14px;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-weight: 700;
  width: 100%;
}

.input-unit span {
  font-weight: 800;
  color: var(--accent-gold);
  font-size: 13px;
}

/* ADMIN LIVE JOBS TABLE */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-top: 12px;
}

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

.admin-table th, .admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-muted);
  font-weight: 700;
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.text-center { text-align: center; }

/* HAMBURGER MENU BUTTON FOR MOBILE */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 38px;
  height: 34px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 7px;
  cursor: pointer;
  z-index: 110;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* DOCUMENT PREVIEW CONTAINERS (Word, Excel, Text, PDF) */
.preview-box {
  width: 100%;
  height: 380px;
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: auto;
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.doc-html-preview {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 24px;
  background: #ffffff;
  color: #1e293b;
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
}

.doc-html-preview h1, .doc-html-preview h2, .doc-html-preview h3 {
  color: #0f172a;
  margin-bottom: 12px;
}

.doc-html-preview p {
  margin-bottom: 10px;
}

.xlsx-table-preview {
  width: 100%;
  height: 100%;
  overflow: auto;
  background: #ffffff;
  padding: 12px;
}

.xlsx-table-preview table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: #1e293b;
}

.xlsx-table-preview td, .xlsx-table-preview th {
  border: 1px solid #cbd5e1;
  padding: 6px 10px;
  white-space: nowrap;
}

.xlsx-table-preview tr:nth-child(even) {
  background-color: #f8fafc;
}

.xlsx-table-preview tr:first-child {
  background-color: #e2e8f0;
  font-weight: bold;
}

.txt-preview-box {
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 16px;
  background: #1e293b;
  color: #f8fafc;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
}

/* MOBILE & TABLET RESPONSIVE MEDIA QUERIES (<= 1024px) */
@media (max-width: 1024px) {
  .app-header {
    padding: 10px 16px;
  }

  .header-container {
    flex-wrap: wrap;
    position: relative;
  }

  .brand-info h1 {
    font-size: 18px;
  }

  .kiosk-badge {
    font-size: 10px;
  }

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

  /* La navbar est MASQUÉE par défaut sur mobile/tablette */
  .nav-tabs,
  #main-nav {
    display: none !important;
    order: 10 !important;
    width: 100% !important;
    flex-basis: 100% !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 12px 14px !important;
    margin-top: 12px !important;
    background: rgba(15, 23, 42, 0.98) !important;
    border: 1px solid var(--border-highlight) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8) !important;
    white-space: normal !important;
    overflow-x: visible !important;
    z-index: 100 !important;
  }

  /* La navbar APPARAÎT uniquement quand elle a la classe .open */
  .nav-tabs.open,
  #main-nav.open {
    display: flex !important;
    animation: fadeInDown 0.25s ease-out forwards;
  }

  .nav-tab {
    width: 100% !important;
    justify-content: flex-start !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
  }

  .header-right-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .header-status {
    font-size: 11px;
    padding: 4px 8px;
  }

  .section-grid {
    grid-template-columns: 1fr !important;
  }

  .preview-box {
    height: 280px;
  }

  .segmented-control {
    grid-template-columns: 1fr;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* UTILITY CLASSES */
.hidden { display: none !important; }

/* INTERACTIVE 4-CORNER CROP EDITOR */
.crop-editor-container {
  position: relative;
  width: 100%;
  max-height: 380px;
  background: #090d16;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
  touch-action: none;
}

.crop-editor-container img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  display: block;
}

.crop-svg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.crop-corner-handle {
  position: absolute;
  width: 32px;
  height: 32px;
  background: #10b981;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0,0,0,0.7);
  z-index: 20;
  cursor: grab;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
  touch-action: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.crop-corner-handle:hover,
.crop-corner-handle:active {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.25);
  background: #059669;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.8);
}

/* FULLSCREEN RESPONSIVE MOBILE SCANNER MODAL */
#scanner-modal {
  padding: 0 !important;
  z-index: 99999 !important;
}

#scanner-modal .modal-card {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  background: #090d16 !important;
  overflow: hidden !important;
}

#scanner-modal .modal-header {
  flex-shrink: 0;
  padding: 12px 18px;
}

#scanner-modal .modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 12px;
  gap: 12px;
}

#scanner-modal .modal-footer {
  flex-shrink: 0;
  padding: 12px 18px;
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 640px) {
  #scanner-modal .modal-header h3 {
    font-size: 15px;
  }
  #scanner-modal .modal-footer {
    flex-direction: column-reverse;
    gap: 8px;
  }
  #scanner-modal .modal-footer button {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   TONERS MANAGEMENT DASHBOARD STYLES (5 TONERS DE LA BORNE)
   ========================================================================== */
.toner-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.toner-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.toner-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.toner-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toner-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
  flex-shrink: 0;
}

.toner-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-main);
}

.toner-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.toner-badge.ok {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.toner-badge.low {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.toner-badge.critical {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.toner-stats {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  color: var(--text-muted);
}

.toner-percentage {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.toner-pages {
  font-size: 11px;
}

.toner-progress-container {
  height: 8px;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.toner-progress-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toner-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  width: 100%;
}

.toner-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.toner-edit-row {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   PRE-ESTABLISHED DOCUMENTS & CATEGORIES BAR (DESIGN WOW AMÉLIORÉ)
   ========================================================================== */
.predocs-categories-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 6px 16px 6px;
  margin-bottom: 22px;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.4) transparent;
}

.predocs-categories-bar::-webkit-scrollbar {
  height: 6px;
}

.predocs-categories-bar::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 10px;
}

.predocs-categories-bar::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #6366f1, #3b82f6, #a855f7);
  border-radius: 10px;
}

/* Base Category Pill Styling */
.cat-pill {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  user-select: none;
  position: relative;
  overflow: hidden;
}

.cat-pill::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.cat-pill i {
  font-size: 15px;
  color: #64748b;
  transition: all 0.3s ease;
}

.cat-pill-count {
  background: rgba(15, 23, 42, 0.65);
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

/* Hover State */
.cat-pill:hover {
  background: rgba(51, 65, 85, 0.85);
  border-color: rgba(99, 102, 241, 0.5);
  color: #ffffff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.cat-pill:hover i {
  color: #818cf8;
  transform: scale(1.25) rotate(-6deg);
}

.cat-pill:hover .cat-pill-count {
  background: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.4);
}

/* Special University Categories Pill Styling (ex: Cours de l'Université IHEC) */
.cat-pill-univ {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
}

.cat-pill-univ i {
  color: #a855f7;
}

.cat-pill-univ:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(168, 85, 247, 0.6);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.3);
}

.cat-pill-univ:hover i {
  color: #c084fc;
}

/* Active State for Pill Buttons */
.cat-pill.active {
  background: linear-gradient(135deg, #6366f1, #3b82f6, #8b5cf6);
  border-color: #a5b4fc;
  color: #ffffff;
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px) scale(1.04);
}

.cat-pill.active i {
  color: #ffffff;
  transform: scale(1.15);
}

.cat-pill.active .cat-pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

/* Active State for University Pill Buttons (ex: IHEC Active) */
.cat-pill-univ.active {
  background: linear-gradient(135deg, #8b5cf6, #d946ef, #7c3aed);
  border-color: #f0abfc;
  box-shadow: 0 6px 25px rgba(217, 70, 239, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.predoc-card {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.predoc-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(139, 92, 246, 0.3);
}

.predoc-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #a855f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.predoc-card:hover .predoc-icon-box {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #ffffff;
  transform: rotate(-5deg) scale(1.08);
}

.predoc-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 4px;
}

.predoc-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.predoc-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.predoc-price-tag {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 15px;
  color: var(--accent-gold);
}

/* ==========================================================================
   GRANDE GRILLE DE BOUTONS D'ACTION BORNE TACTILE (HERO LG)
   ========================================================================== */
.upload-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 22px;
  width: 100%;
}

.btn-hero-lg {
  padding: 18px 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 90px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-align: center;
}

.btn-hero-lg i {
  font-size: 26px;
}

.btn-hero-lg:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
}

.btn-scanner {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  color: #ffffff !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
}

.btn-predocs {
  background: linear-gradient(135deg, #1d60c2, #154ea0) !important;
  color: #ffffff !important;
  border: 1px solid rgba(250, 204, 21, 0.5) !important;
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.2) !important;
}

.btn-predocs i {
  color: var(--accent-gold) !important;
}

/* ==========================================================================
   COMPLETE SMARTPHONE & TABLET RESPONSIVE SYSTEM (320px - 992px)
   ========================================================================== */

/* Category Bar Scrollbar & Pills Touch Behavior */
#predocs-categories-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

#predocs-categories-bar::-webkit-scrollbar {
  height: 4px;
}

#predocs-categories-bar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.cat-pill {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Responsive Table Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 12px;
}

.table-responsive table {
  min-width: 580px;
}

/* Modals Mobile Friendly */
.modal-backdrop {
  padding: 12px;
}

.modal-content {
  max-height: 90vh;
  overflow-y: auto;
  width: 100% !important;
}

/* Media Queries for Tablets (< 992px) */
@media (max-width: 992px) {
  .section-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .payment-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Media Queries for Mobile (< 768px) */
@media (max-width: 768px) {
  .app-header {
    padding: 10px 14px;
  }

  .header-container {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo-img {
    height: 52px !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.9)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7)) !important;
  }

  .kiosk-badge {
    font-size: 11px !important;
    padding: 4px 8px !important;
  }

  .main-content {
    padding: 14px 12px !important;
  }

  .card {
    padding: 16px !important;
    border-radius: 14px !important;
  }

  .card-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .card-header h2, .card-header h3 {
    font-size: 16px !important;
  }

  .search-box {
    width: 100% !important;
  }

  /* Dual Filter Dropdowns full width on mobile */
  #predocs-univ-filter, #predocs-prof-filter {
    width: 100% !important;
  }

  /* Predocs Grid */
  .predocs-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    gap: 14px !important;
  }

  /* Admin Stats Grid */
  .stats-grid, .kiosks-overview-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* Media Queries for Smartphones (< 576px) */
@media (max-width: 576px) {
  body {
    font-size: 14px;
  }

  .app-header {
    padding: 8px 10px;
  }

  .brand-logo-img {
    height: 32px !important;
  }

  .kiosk-badge {
    font-size: 10px !important;
    padding: 3px 6px !important;
  }

  .main-content {
    padding: 10px 8px !important;
  }

  .card {
    padding: 12px !important;
    border-radius: 12px !important;
  }

  /* Hero Upload Buttons Grid */
  .upload-buttons-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-top: 12px !important;
  }

  .btn-hero-lg {
    padding: 10px 6px !important;
    min-height: 72px !important;
    font-size: 11px !important;
    gap: 5px !important;
    border-radius: 12px !important;
  }

  .btn-hero-lg i {
    font-size: 22px !important;
  }

  .cat-pill {
    padding: 6px 12px !important;
    font-size: 12px !important;
    border-radius: 20px !important;
  }

  .predoc-card {
    padding: 14px !important;
    border-radius: 14px !important;
  }

  /* Monnayeur Coins Grid on Mobile */
  .coins-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }

  .coin-btn {
    padding: 8px 4px !important;
    font-size: 12px !important;
  }

  .coin-inner {
    width: 48px !important;
    height: 48px !important;
    font-size: 11px !important;
  }

  /* Keypad on Mobile */
  .pin-digits {
    gap: 6px !important;
  }

  .pin-slot {
    width: 44px !important;
    height: 52px !important;
    font-size: 22px !important;
  }

  .keypad-grid {
    gap: 10px !important;
  }

  .key-btn {
    height: 52px !important;
    font-size: 20px !important;
  }
}

/* Media Queries for Ultra-Small Smartphones (< 380px) */
@media (max-width: 380px) {
  .upload-buttons-grid {
    grid-template-columns: 1fr !important;
  }

  .btn-hero-lg {
    flex-direction: row !important;
    min-height: 50px !important;
    justify-content: center !important;
    padding: 8px 12px !important;
  }

  .btn-hero-lg i {
    font-size: 18px !important;
  }

  .coins-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ==========================================================================
   GATEWAY (LAUNCHER) & VITRINE SHOWCASE STYLES
   ========================================================================== */

/* Gateway Page Layout */
.gateway-body {
  background-color: #060913;
  color: #f8fafc;
  font-family: 'Plus Jakarta Sans', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

.gateway-bg-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}

.orb-primary {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -150px;
  left: -100px;
}

.orb-secondary {
  width: 450px;
  height: 450px;
  background: #a855f7;
  bottom: -100px;
  right: -100px;
}

.orb-gold {
  width: 350px;
  height: 350px;
  background: var(--accent-gold);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.15;
}

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Gateway Header */
.gateway-header {
  position: relative;
  z-index: 10;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 9, 19, 0.7);
  backdrop-filter: blur(12px);
}

.gateway-header .header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gateway-header-actions {
  display: flex;
  gap: 12px;
}

.btn-outline-prof {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-outline-prof:hover {
  background: rgba(168, 85, 247, 0.25);
  color: #fff;
  border-color: #a855f7;
  transform: translateY(-2px);
}

.btn-outline-admin {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-outline-admin:hover {
  background: rgba(16, 185, 129, 0.25);
  color: #fff;
  border-color: #10b981;
  transform: translateY(-2px);
}

/* Gateway Hero Section */
.gateway-main {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 60px 24px;
}

.gateway-container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.gateway-hero-head {
  margin-bottom: 48px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.gateway-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.gateway-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* The 2 Main Choice Cards Grid */
.gateway-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.choice-card {
  position: relative;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.choice-card:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 30px 60px rgba(37, 99, 235, 0.25);
}

.card-vitrine-site:hover {
  border-color: rgba(250, 204, 21, 0.5);
  box-shadow: 0 30px 60px rgba(250, 204, 21, 0.2);
}

.choice-card-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.4);
}

.badge-gold {
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.3);
}

.choice-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 24px;
}

.icon-app {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(56, 189, 248, 0.3));
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.icon-vitrine {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.25), rgba(234, 179, 8, 0.25));
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.4);
}

.choice-content h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;
}

.choice-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.choice-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.choice-features-list span {
  font-size: 13px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.choice-features-list i {
  color: #34d399;
}

.btn-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 24px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-launch-app {
  background: linear-gradient(135deg, var(--primary), #154ea0);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-launch-app:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.6);
}

.btn-launch-vitrine {
  background: linear-gradient(135deg, #d97706, #ca8a04);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.4);
}

.btn-launch-vitrine:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.6);
}

/* Gateway Metrics Strip */
.gateway-metrics-strip {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px 32px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  backdrop-filter: blur(10px);
}

.g-metric {
  display: flex;
  align-items: center;
  gap: 14px;
}

.g-metric i {
  font-size: 24px;
}

.g-metric div {
  display: flex;
  flex-direction: column;
}

.g-metric strong {
  font-size: 14px;
  color: #fff;
}

.g-metric span {
  font-size: 12px;
  color: var(--text-muted);
}

.g-metric-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
}

.gateway-footer {
  position: relative;
  z-index: 10;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 9, 19, 0.9);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ==========================================================================
   SITE VITRINE SHOWCASE STYLES
   ========================================================================== */

.vitrine-body {
  background-color: #0b0f19;
  color: #f1f5f9;
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
}

.vitrine-bg-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.vitrine-orb-1 {
  width: 600px;
  height: 600px;
  background: #2563eb;
  top: -200px;
  right: -150px;
  filter: blur(140px);
  opacity: 0.25;
}

.vitrine-orb-2 {
  width: 500px;
  height: 500px;
  background: #ca8a04;
  bottom: 20%;
  left: -150px;
  filter: blur(150px);
  opacity: 0.15;
}

/* Vitrine Navbar */
.vitrine-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
  background: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vitrine-navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background: rgba(11, 15, 25, 0.95);
}

.v-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.v-logo img {
  height: 64px;
  width: auto;
}

.v-nav-links {
  display: flex;
  gap: 28px;
}

.v-nav-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.v-nav-link:hover,
.v-nav-link.active {
  color: #facc15;
}

.v-btn-cta {
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

.v-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.v-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: 0.3s;
}

.v-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.v-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.v-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Vitrine Hero Section */
.vitrine-hero {
  position: relative;
  z-index: 5;
  padding: 140px 24px 80px 24px;
  text-align: center;
}

.v-hero-container {
  max-width: 950px;
  margin: 0 auto;
}

.v-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 30px;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.3);
  color: #facc15;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
}

.v-hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.v-hero-subtitle {
  font-size: 19px;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 750px;
  margin: 0 auto 36px auto;
}

.v-hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn-outline-gold {
  background: rgba(250, 204, 21, 0.1);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.4);
}

.btn-outline-gold:hover {
  background: rgba(250, 204, 21, 0.25);
  color: #fff;
}

/* Hero Showcase Card */
.v-hero-showcase-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  max-width: 900px;
  margin: 0 auto;
}

.v-showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.v-dots {
  display: flex;
  gap: 6px;
}

.v-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.v-dots span:nth-child(1) { background: #ff5f56; }
.v-dots span:nth-child(2) { background: #ffbd2e; }
.v-dots span:nth-child(3) { background: #27c93f; }

.v-showcase-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.v-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.v-stat-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.icon-blue { background: rgba(37, 99, 235, 0.2); color: #38bdf8; }
.icon-gold { background: rgba(250, 204, 21, 0.2); color: #facc15; }
.icon-purple { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.icon-green { background: rgba(16, 185, 129, 0.2); color: #34d399; }

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

.stat-num {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
}

/* Sections Styling */
.v-section {
  position: relative;
  z-index: 5;
  padding: 90px 24px;
}

.v-container {
  max-width: 1200px;
  margin: 0 auto;
}

.v-section-head {
  margin-bottom: 50px;
}

.v-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.3);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.tag-gold {
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.3);
}

.tag-purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.3);
}

.tag-cyan {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

.v-section-head h2 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 12px;
}

.v-section-head p {
  font-size: 16px;
  color: #94a3b8;
  max-width: 650px;
  margin: 0 auto;
}

/* Concept Cards */
.concept-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.concept-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px 24px;
  transition: all 0.3s ease;
}

.concept-card:hover {
  transform: translateY(-6px);
  border-color: rgba(250, 204, 21, 0.4);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.c-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.concept-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.concept-card p {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
}

/* Timeline Box */
.concept-timeline-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px 32px;
}

.steps-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.step-col {
  flex: 1;
  text-align: center;
  position: relative;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #154ea0);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.step-col h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.step-col p {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
}

.step-arrow {
  color: rgba(255, 255, 255, 0.2);
  font-size: 20px;
}

/* Catalog Controls */
.vitrine-catalog-controls {
  margin-bottom: 36px;
}

.v-search-bar {
  position: relative;
  max-width: 500px;
  margin: 0 auto 24px auto;
}

.v-search-bar i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 16px;
}

.v-search-bar input {
  width: 100%;
  padding: 14px 18px 14px 44px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 14px;
}

.v-category-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.v-pill {
  padding: 8px 18px;
  border-radius: 30px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.v-pill:hover,
.v-pill.active {
  background: #facc15;
  color: #0f172a;
  border-color: #facc15;
  font-weight: 700;
}

/* ==========================================================================
   QWIKPRINT STYLE SMARTPHONE STEPS SHOWCASE (HOW TO PRINT)
   ========================================================================== */
.qwik-steps-section {
  background: radial-gradient(circle at top center, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  position: relative;
  padding: 80px 0;
}

.text-gradient-green {
  background: linear-gradient(135deg, #34d399, #10b981, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tag-green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.v-subhead-text {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 6px;
}

.qwik-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 45px;
}

.qwik-step-card {
  background: linear-gradient(165deg, #059669 0%, #047857 60%, #065f46 100%);
  border-radius: 26px;
  padding: 24px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 20px 40px rgba(5, 150, 105, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qwik-step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(16, 185, 129, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.qwik-step-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 18px;
  width: 100%;
}

.qwik-step-badge {
  background: #ffffff;
  color: #047857;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.8px;
  padding: 5px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.qwik-step-header h3 {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.25;
}

.qwik-step-header p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.45;
  min-height: 52px;
}

/* Smartphone Mockup Frame */
.smartphone-frame {
  width: 100%;
  max-width: 235px;
  height: 390px;
  background: #0f172a;
  border-radius: 36px;
  border: 4px solid #1e293b;
  padding: 6px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  margin-top: auto;
}

.phone-camera-notch {
  width: 66px;
  height: 16px;
  background: #000000;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
  z-index: 15;
}

.phone-screen {
  background: #ffffff;
  border-radius: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #0f172a;
  position: relative;
  font-family: var(--font-sans);
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px 2px 14px;
  font-size: 10px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 10px;
}

.phone-icons {
  display: flex;
  gap: 4px;
  font-size: 9px;
}

.phone-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 11px;
  font-weight: 800;
  color: #059669;
}

.phone-logo {
  display: flex;
  align-items: center;
  gap: 4px;
}

.phone-logo-img {
  width: 14px;
  height: 14px;
}

.phone-help-link, .phone-back-link {
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
}

.phone-location-info {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #059669;
}

.phone-title-sm {
  font-size: 11px;
  color: #0f172a;
  font-weight: 800;
}

.phone-timer-tag {
  background: #fee2e2;
  color: #ef4444;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: 800;
}

.phone-body {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  background: #fafafa;
  overflow: hidden;
}

/* Step 1 Screen Elements */
.qr-target-box {
  width: 130px;
  height: 130px;
  border: 2px dashed #10b981;
  border-radius: 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.05);
  margin-top: 10px;
}

.corner-bracket {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: #059669;
  border-style: solid;
}
.top-left { top: -2px; left: -2px; border-width: 3px 0 0 3px; }
.top-right { top: -2px; right: -2px; border-width: 3px 3px 0 0; }
.bottom-left { bottom: -2px; left: -2px; border-width: 0 0 3px 3px; }
.bottom-right { bottom: -2px; right: -2px; border-width: 0 3px 3px 0; }

.qr-matrix-sim {
  font-size: 70px;
  color: #047857;
}

.phone-instruction {
  font-size: 10px;
  color: #64748b;
  font-weight: 700;
}

.phone-action-bar {
  margin-top: auto;
  width: 100%;
}

.phone-btn-primary {
  width: 100%;
  background: #059669;
  color: #ffffff;
  border: none;
  padding: 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

/* Step 2 Screen Elements */
.upload-dropzone-box {
  width: 100%;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
}

.upload-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-bottom: 4px;
}

.upload-title {
  font-size: 10px;
  color: #0f172a;
  font-weight: 800;
}

.upload-sub {
  font-size: 8px;
  color: #94a3b8;
}

.privacy-notice {
  font-size: 8px;
  color: #059669;
  background: #ecfdf5;
  padding: 4px 8px;
  border-radius: 6px;
  width: 100%;
  text-align: center;
}

.file-item-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.file-details {
  display: flex;
  flex-direction: column;
  font-size: 9px;
  text-align: left;
}

.file-details strong {
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

.file-details span {
  font-size: 8px;
  color: #94a3b8;
}

/* Step 3 Screen Elements */
.pref-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #334155;
}

.stepper-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 6px;
}

.step-btn {
  border: none;
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  cursor: pointer;
}

.step-val {
  font-size: 11px;
  font-weight: 800;
}

.pref-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 100%;
}

.pref-card {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 8px;
  padding: 6px;
  font-size: 9px;
  font-weight: 700;
  color: #64748b;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.pref-card.active {
  border-color: #059669;
  background: #ecfdf5;
  color: #059669;
}

.color-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}
.color-swatch.bw { background: linear-gradient(135deg, #000 50%, #fff 50%); border: 1px solid #94a3b8; }
.color-swatch.color { background: linear-gradient(135deg, #f43f5e, #3b82f6, #eab308); }

/* Step 4 Screen Elements */
.ticket-header-box {
  text-align: center;
  width: 100%;
}

.ticket-header-box strong {
  display: block;
  font-size: 11px;
  color: #059669;
}

.ticket-header-box span {
  font-size: 8px;
  color: #64748b;
}

.otp-display-badge {
  background: #0f172a;
  color: #ffffff;
  width: 100%;
  padding: 8px;
  border-radius: 10px;
  text-align: center;
}

.otp-title {
  display: block;
  font-size: 7px;
  color: #34d399;
  letter-spacing: 1px;
  font-weight: 800;
}

.otp-digits {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #facc15;
}

.phone-qr-box {
  font-size: 64px;
  color: #0f172a;
  line-height: 1;
}

.phone-btn-row {
  display: flex;
  gap: 4px;
  width: 100%;
  margin-top: auto;
}

.phone-btn-outline {
  flex: 1;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 8px;
  font-weight: 700;
  padding: 5px 2px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}


/* ==========================================================================
   VITRINE FORMULAIRES - HORIZONTAL LINE / SLIDER LAYOUT & TOP HIGHLIGHTS
   ========================================================================== */
.predocs-featured-banner {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.15), rgba(16, 185, 129, 0.15));
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: 16px;
  padding: 14px 22px;
  text-align: center;
  margin-bottom: 26px;
}

.f-banner-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  color: #facc15;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.predocs-featured-banner p {
  font-size: 13px;
  color: #cbd5e1;
  margin: 0;
}

/* Horizontal Line Slider Container */
.v-predocs-slider-wrapper {
  position: relative;
  padding: 0 44px;
  margin-top: 24px;
}

.v-slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0f172a;
  border: 1.5px solid rgba(250, 204, 21, 0.5);
  color: #facc15;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
}

.v-slider-nav-btn.prev { left: -4px; }
.v-slider-nav-btn.next { right: -4px; }

.v-slider-nav-btn:hover {
  background: #facc15;
  color: #0f172a;
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.6);
  transform: translateY(-50%) scale(1.1);
}

/* Horizontal Line Row */
.v-predocs-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 16px 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.v-predocs-row.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

/* Hide Scrollbar */
.v-predocs-row::-webkit-scrollbar {
  height: 6px;
}
.v-predocs-row::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 10px;
}
.v-predocs-row::-webkit-scrollbar-thumb {
  background: rgba(250, 204, 21, 0.3);
  border-radius: 10px;
}
.v-predocs-row::-webkit-scrollbar-thumb:hover {
  background: rgba(250, 204, 21, 0.6);
}

/* Individual Form Card in Horizontal Line */
.v-doc-card {
  flex: 0 0 320px;
  width: 320px;
  scroll-snap-align: start;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  min-height: 340px;
  position: relative;
}

.v-doc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
}

/* Featured / Top Printed Document Highlights */
.v-doc-card.v-doc-featured {
  background: rgba(30, 41, 59, 0.95);
}

.v-doc-card.featured-gold {
  border: 2px solid #facc15;
  box-shadow: 0 10px 30px rgba(250, 204, 21, 0.25);
}

.v-doc-card.featured-emerald {
  border: 2px solid #10b981;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.25);
}

.v-doc-card.featured-cyan {
  border: 2px solid #38bdf8;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.25);
}

.v-top-highlight-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 10px;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.badge-top-1 {
  background: linear-gradient(135deg, #facc15, #d97706);
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.35);
}

.badge-top-2 {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.badge-top-3 {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.badge-standard {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

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

.v-doc-icon {
  font-size: 26px;
}

.v-doc-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.v-doc-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.v-doc-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 14px;
  flex: 1;
}

.v-doc-teacher {
  font-size: 11px;
  color: #c084fc;
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}

.v-doc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.v-doc-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 800;
  color: #facc15;
}

.v-doc-btns {
  display: flex;
  gap: 6px;
}

/* Responsive Media Queries for Smartphone Steps & Slider */
@media (max-width: 1024px) {
  .qwik-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .qwik-steps-grid {
    grid-template-columns: 1fr;
  }
  .v-predocs-slider-wrapper {
    padding: 0;
  }
  .v-slider-nav-btn {
    display: none;
  }
  .v-doc-card {
    flex: 0 0 280px;
    width: 280px;
  }
}

/* 2-Column Grid Layout */
.v-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.prof-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 30px 0;
}

.prof-b-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.b-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.prof-b-item strong {
  display: block;
  font-size: 16px;
  color: #fff;
  margin-bottom: 4px;
}

.prof-b-item span {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
}

.btn-purple {
  background: linear-gradient(135deg, #a855f7, #7e22ce);
  color: #fff;
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.4);
}

.btn-purple:hover {
  box-shadow: 0 12px 28px rgba(168, 85, 247, 0.6);
}

/* Earnings Calculator */
.earnings-calc-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 24px;
  padding: 36px 30px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.earnings-calc-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}

.earnings-calc-card p {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 28px;
}

.calc-field {
  margin-bottom: 24px;
}

.calc-field label {
  display: block;
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.calc-field label strong {
  color: #facc15;
}

.calc-field input[type="range"] {
  width: 100%;
  accent-color: #a855f7;
  cursor: pointer;
}

.earnings-result-box {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.earnings-result-box span {
  font-size: 12px;
  color: #c084fc;
  font-weight: 700;
  text-transform: uppercase;
}

.earnings-result-box h2 {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  margin: 6px 0;
  font-family: 'JetBrains Mono', monospace;
}

.sub-gains {
  font-size: 12px !important;
  color: #94a3b8 !important;
  text-transform: none !important;
}

/* Franchise Section Pillars */
.franchise-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.f-pillar {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px 24px;
}

.f-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 16px;
}

.f-pillar h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.f-pillar p {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
}

.f-sim-card,
.f-form-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 32px;
}

.f-roi-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  background: rgba(30, 41, 59, 0.6);
  padding: 18px;
  border-radius: 16px;
}

.roi-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #94a3b8;
}

.roi-item strong {
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
}

.roi-item.highlight strong {
  color: #34d399;
  font-size: 16px;
}

.roi-item.gold strong {
  color: #facc15;
  font-size: 16px;
}

/* Franchise Form */
.f-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.f-input-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.f-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-feedback-box {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feedback-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.feedback-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* Vitrine Footer */
.vitrine-footer {
  background: #060913;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 70px 0 30px 0;
  position: relative;
  z-index: 5;
}

.v-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.v-footer-brand img {
  height: 44px;
  margin-bottom: 16px;
}

.v-footer-brand p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
}

.v-footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

.v-footer-col a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #94a3b8;
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.v-footer-col a:hover {
  color: #facc15;
}

.v-footer-col p {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.v-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #64748b;
}

.back-to-top {
  color: #94a3b8;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.back-to-top:hover {
  color: #facc15;
}

/* Media Queries Responsive */
@media (max-width: 1024px) {
  .gateway-cards-grid,
  .concept-cards-grid,
  .franchise-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .v-grid-2col {
    grid-template-columns: 1fr;
  }
  .v-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .v-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .gateway-cards-grid,
  .concept-cards-grid,
  .franchise-pillars-grid {
    grid-template-columns: 1fr;
  }
  .v-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0b0f19;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .v-nav-links.open {
    display: flex;
  }
  .v-hamburger {
    display: block;
  }
  .steps-row {
    flex-direction: column;
  }
  .step-arrow {
    transform: rotate(90deg);
  }
  .gateway-title {
    font-size: 32px;
  }
  .v-hero-title {
    font-size: 36px;
  }
  .f-input-row {
    grid-template-columns: 1fr;
  }
  .v-footer-grid {
    grid-template-columns: 1fr;
  }
}

/* =======================================================================
   RESPONSIVE DESIGN UNIVERSEL HARMONISÉ POUR TOUTES LES PAGES
   (index.html, app.html, subscriber.html, professor.html, admin.html, vitrine.html)
   ======================================================================= */
.hidden {
  display: none !important;
}

/* Modals & Popups Universels */
.modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  background: rgba(5, 8, 16, 0.92) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
}

.modal-overlay.hidden {
  display: none !important;
}

.modal-card {
  box-sizing: border-box !important;
  max-width: 520px !important;
  width: 100% !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  margin: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* -----------------------------------------------------------------------
   1. TABLETTES & PETITS ÉCRANS (<= 992px)
   ----------------------------------------------------------------------- */
@media (max-width: 992px) {
  .section-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    height: auto;
  }
  .v-grid-2col {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------------------------------------------------
   2. SMARTPHONES & MOBILES STANDARD (<= 768px)
   ----------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* PAGE D'ACCUEIL PORTAIL (index.html) */
  .gateway-header {
    padding: 14px 16px;
  }
  .gateway-header .header-container {
    padding: 0;
  }
  .gateway-main {
    padding: 30px 16px;
  }
  .gateway-hero-head {
    margin-bottom: 28px;
  }
  .gateway-title {
    font-size: 28px;
    line-height: 1.25;
  }
  .gateway-subtitle {
    font-size: 15px;
  }
  .gateway-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
  }
  .choice-card {
    padding: 26px 20px;
    border-radius: 20px;
  }
  .choice-desc {
    font-size: 13px;
    margin-bottom: 18px;
  }
  .choice-features-list {
    margin-bottom: 24px;
    gap: 8px;
  }
  .btn-choice {
    padding: 14px 18px;
    font-size: 14px;
  }
  .gateway-metrics-strip {
    flex-direction: column;
    gap: 16px;
    padding: 18px 20px;
    align-items: flex-start;
  }
  .g-metric-divider {
    display: none;
  }
  .gateway-header-actions .btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  /* PAGE BORNE D'IMPRESSION (app.html) */
  .app-header {
    padding: 8px 12px;
  }
  .hamburger-btn {
    display: flex !important;
  }
  .nav-tabs,
  #main-nav {
    display: none !important;
    order: 10 !important;
    width: 100% !important;
    flex-basis: 100% !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 12px 14px !important;
    margin-top: 10px !important;
    background: rgba(15, 23, 42, 0.98) !important;
    border: 1px solid var(--border-highlight) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8) !important;
    white-space: normal !important;
    overflow-x: visible !important;
    z-index: 100 !important;
  }
  .nav-tabs.open,
  #main-nav.open {
    display: flex !important;
    animation: fadeInDown 0.25s ease-out forwards;
  }
  .nav-tab {
    width: 100% !important;
    justify-content: flex-start !important;
    padding: 12px 16px !important;
    font-size: 13px !important;
    flex-shrink: 0 !important;
    border-radius: 8px !important;
  }
  .card, .upload-card, .card-options, .monnayeur-card {
    padding: 18px 14px;
    border-radius: 16px;
  }
  .upload-dropzone {
    padding: 24px 14px;
  }
  .payment-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .metric-box {
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px;
  }
  .metric-box .metric-value {
    font-size: 22px;
  }
  .otp-digits {
    gap: 8px;
  }
  .otp-digit {
    width: 52px;
    height: 62px;
    font-size: 26px;
  }
  .ticket-card {
    padding: 22px 14px;
    border-radius: 18px;
  }

  /* ESPACE ABONNÉ & PROFESSEURS */
  .sub-auth-card, .prof-auth-box {
    max-width: 100%;
    margin: 20px auto;
    padding: 20px 16px;
  }
  .code-digit-box {
    width: 44px;
    height: 56px;
    font-size: 24px;
  }
  .pack-choice-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .prof-container {
    padding: 12px;
  }

  /* DASHBOARD ADMIN */
  .table-responsive, .admin-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
  }
  .admin-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  /* POPUPS MODALS */
  .modal-overlay {
    padding: 10px 8px !important;
  }
  .modal-card {
    border-radius: 18px !important;
    width: 96vw !important;
  }
  .modal-card h2 {
    font-size: 20px !important;
  }
  .modal-card p {
    font-size: 13px !important;
  }
  .modal-card button.btn-lg {
    padding: 14px 16px !important;
    font-size: 15px !important;
  }
}

/* -----------------------------------------------------------------------
   3. TRÈS PETITS SMARTPHONES (<= 420px)
   ----------------------------------------------------------------------- */
@media (max-width: 420px) {
  .brand-info h1 {
    font-size: 16px;
  }
  .brand-icon {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
  .gateway-title {
    font-size: 24px;
  }
  .otp-digit, .code-digit-box {
    width: 40px;
    height: 50px;
    font-size: 20px;
  }
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
  .gateway-header-actions {
    flex-wrap: wrap;
    gap: 6px;
  }
}

/* ==========================================================================
   KIOSK ORIENTATION & PRINTABLE POSTER SYSTEM
   ========================================================================== */

/* Station Badge in Header */
.header-station-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(250, 204, 21, 0.4);
  padding: 4px 12px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.header-station-badge .station-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.header-station-badge .station-name {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
}

.header-station-badge .station-status {
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.header-station-badge .station-status.online {
  color: var(--success);
}

.header-station-badge .station-status.suspended {
  color: var(--danger);
}

/* Kiosk Orientation Card Responsive */
.kiosk-orientation-card {
  transition: all 0.3s ease;
}

.kiosk-orientation-card:hover {
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 10px 35px rgba(56, 189, 248, 0.2);
}

@media (max-width: 768px) {
  .kiosk-orientation-card {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .kiosk-orientation-card button {
    width: 100%;
  }
}

/* Printable Poster for Physical Kiosks */
.kiosk-poster-print-only {
  display: none;
}

@media print {
  body * {
    visibility: hidden;
  }

  .kiosk-poster-print-only,
  .kiosk-poster-print-only * {
    visibility: visible;
  }

  .kiosk-poster-print-only {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 20px;
    background: #ffffff !important;
    color: #0f172a !important;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif !important;
  }

  .poster-card {
    max-width: 700px;
    margin: 0 auto;
    border: 4px solid #0f172a;
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    background: #ffffff;
    box-shadow: none;
  }

  .poster-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 16px;
  }

  .poster-logo {
    height: 70px;
    object-fit: contain;
  }

  .poster-badge {
    background: #0f172a;
    color: #facc15;
    font-weight: 800;
    font-size: 12px;
    padding: 4px 16px;
    border-radius: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  .poster-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
  }

  .poster-subtitle {
    font-size: 15px;
    color: #475569;
    margin: 0 0 20px 0;
  }

  .poster-qr-wrapper {
    display: inline-block;
    padding: 16px;
    background: #ffffff;
    border: 4px solid #0f172a;
    border-radius: 20px;
    margin-bottom: 16px;
  }

  .poster-qr-wrapper canvas,
  .poster-qr-wrapper img {
    display: block;
    margin: 0 auto;
    max-width: 280px;
    max-height: 280px;
  }

  .poster-url-box {
    background: #f1f5f9;
    border: 1px dashed #64748b;
    border-radius: 10px;
    padding: 8px 16px;
    margin-bottom: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #0369a1;
    font-weight: 700;
    word-break: break-all;
  }

  .poster-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    text-align: left;
    margin-bottom: 20px;
  }

  .poster-step {
    border: 2px solid #cbd5e1;
    border-radius: 14px;
    padding: 12px;
    background: #f8fafc;
  }

  .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0f172a;
    color: #facc15;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 8px;
  }

  .step-text {
    font-size: 12px;
    line-height: 1.4;
    color: #334155;
  }

  .poster-footer {
    border-top: 2px solid #e2e8f0;
    padding-top: 14px;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
  }
}




