/* ==========================================================================
   ASCII Camera Pro - Clean Dark/White Android UI
   Colors: OLED Black (#000000), Pure White (#ffffff), Brand Purple (#9000d5)
   Zero Emojis - Clean Vector SVG UI
   Layout: Frosted Glass Hub with Live Adjustments, Pictogram Subtabs, and Socials
   ========================================================================== */

@import './fonts.css';

:root {
  --color-primary: #9000d5;
  --color-primary-dark: #6e00a5;
  --color-primary-light: #ab28e8;
  --color-primary-glow: rgba(144, 0, 213, 0.3);

  --bg-app: #000000;
  --bg-glass-bar: rgba(10, 10, 14, 0.45);
  --bg-surface: #121218;
  --bg-surface-variant: #1a1a24;
  --bg-card: #222230;
  --border-glass: rgba(255, 255, 255, 0.14);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.75);
  --text-muted: rgba(255, 255, 255, 0.45);

  --color-red: #e53935;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --trans-fast: 0.15s ease;
  --trans-spring: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  --trans-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  width: 100vw;
  height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 14px;
}

/* Hide scrollbars but keep smooth horizontal scrolling */
.quick-control-content::-webkit-scrollbar,
.adjust-subtabs-row::-webkit-scrollbar,
.filters-strip::-webkit-scrollbar,
.modal-dialog::-webkit-scrollbar,
.gallery-grid::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.quick-control-content,
.adjust-subtabs-row,
.filters-strip,
.modal-dialog,
.gallery-grid {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#app {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-app);
}

/* Hidden elements */
#video-feed, #hidden-file-input, #source-canvas {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   Viewfinder Canvas (100% full screen)
   ========================================================================== */
.viewfinder-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #000000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#ascii-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mobile App Install Banner */
.mobile-app-banner {
  position: absolute;
  top: calc(var(--safe-top) + 8px);
  left: 12px;
  right: 12px;
  z-index: 55;
  background: rgba(18, 18, 24, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 8px 14px;
  display: none;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.mobile-app-banner.active { display: flex; }

.banner-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}
.banner-icon {
  width: 18px;
  height: 18px;
  fill: var(--color-primary);
  flex-shrink: 0;
}
.banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.banner-dl-btn {
  background: var(--color-primary);
  color: #ffffff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 10px;
  transition: transform var(--trans-fast);
}
.banner-dl-btn:active { transform: scale(0.94); }
.banner-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  padding: 4px;
}

/* Return to Camera Banner */
.image-mode-banner {
  position: absolute;
  top: calc(var(--safe-top) + 50px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  background: var(--color-primary);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 24px;
  font-weight: 800;
  font-size: 12px;
  display: none;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border: none;
}
.image-mode-banner.active { display: flex; }

/* Front Camera Screen Flash Overlay (2 Seconds Bright White Screen) */
.screen-flash-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 999999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease-out;
}
.screen-flash-overlay.active {
  opacity: 1;
  transition: opacity 0.05s ease-in;
}

/* Shutter Flash */
.shutter-flash {
  position: absolute;
  inset: 0;
  background: #ffffff;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.08s ease-out;
}
.shutter-flash.flash { opacity: 0.95; transition: none; }

/* Top Overlay Bar */
.top-overlay-bar {
  position: absolute;
  top: calc(var(--safe-top) + 16px);
  left: 16px;
  right: 16px;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.overlay-icon-btn {
  pointer-events: auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(18, 18, 24, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.overlay-icon-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.overlay-icon-btn:hover {
  background: rgba(30, 30, 40, 0.9);
  color: #ffffff;
}
.overlay-icon-btn.active {
  background: #ffcc00;
  color: #000000;
  border-color: #ffcc00;
  box-shadow: 0 0 16px rgba(255, 204, 0, 0.6);
}

.zoom-pill {
  pointer-events: none;
  background: rgba(18, 18, 24, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 14px;
  font-family: var(--font-jetbrains);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.zoom-pill.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Recording Pill */
.recording-pill {
  position: absolute;
  top: calc(var(--safe-top) + 16px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  background: rgba(18, 18, 22, 0.9);
  border: 1px solid var(--color-red);
  padding: 6px 16px;
  border-radius: 20px;
  display: none;
  align-items: center;
  gap: 8px;
  font-family: var(--font-jetbrains);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}
.recording-pill.active { display: flex; }
.rec-dot {
  width: 8px;
  height: 8px;
  background: var(--color-red);
  border-radius: 50%;
}

/* GIF Progress Overlay */
.gif-progress-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 60;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 22px 32px;
  border-radius: 20px;
  border: 1px solid var(--border-glass);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: #ffffff;
}
.gif-progress-overlay.active { display: flex; }
.gif-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   INTEGRATED BOTTOM CAMERA HUB (Frosted Glass Translucent Background)
   ========================================================================== */
.native-bottom-hub {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(8, 8, 12, 0.42);
  backdrop-filter: blur(35px) saturate(190%);
  -webkit-backdrop-filter: blur(35px) saturate(190%);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
  padding: 10px 12px calc(var(--safe-bottom) + 12px) 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

/* Row 1: Active Control Display (Live Slider or Filter Chips) */
.quick-control-content {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  padding: 2px 8px;
}

/* Horizontal Filters Strip */
.filters-strip {
  display: flex;
  gap: 8px;
  width: max-content;
  min-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  padding: 4px 4px;
}
.filter-btn {
  padding: 6px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--trans-fast);
  flex-shrink: 0;
}
.filter-btn:active {
  transform: scale(0.95);
}
.filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 2px 10px var(--color-primary-glow);
}

/* Single Slider Container */
.single-slider-box {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px;
}
.slider-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-secondary);
  white-space: nowrap;
  letter-spacing: 0.5px;
  min-width: 75px;
}
.slider-badge {
  font-family: var(--font-jetbrains);
  font-size: 11px;
  font-weight: 800;
  color: var(--color-primary);
  min-width: 40px;
  text-align: right;
}

.flat-slider {
  -webkit-appearance: none;
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}
.flat-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Row 2: Subtabs Bar (Pictograms on Mobile, Picto + Text on PC) */
.adjust-subtabs-row {
  width: 100%;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  padding: 4px 6px;
  justify-content: flex-start;
}
.subtab-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 7px 11px;
  border-radius: 14px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--trans-fast);
}
.subtab-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}
.subtab-btn:active {
  transform: scale(0.95);
}
.subtab-btn.active {
  background: var(--color-primary-glow);
  border-color: var(--color-primary);
  color: #ffffff;
}

/* Mobile vs PC Responsive Subtab labels */
.subtab-btn .subtab-text {
  display: none;
}
@media (min-width: 640px) {
  .subtab-btn .subtab-text {
    display: inline;
  }
}

/* Row 3: Mode Carousel (PHOTO | VIDÉO | GIF | PARAMÈTRES) */
.camera-mode-carousel {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 2px;
}
.mode-carousel-item {
  background: none;
  border: none;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--trans-fast), transform var(--trans-spring);
  padding: 4px 6px;
  white-space: nowrap;
  outline: none;
}
.mode-carousel-item.active {
  color: var(--color-primary);
  transform: scale(1.08);
}
.mode-carousel-item#carousel-mode-settings {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.mode-carousel-item#carousel-mode-settings svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* Row 4: Shutter Line */
.shutter-controls-line {
  width: 100%;
  max-width: 380px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 2px;
}

.gallery-thumb-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--trans-spring);
  outline: none;
}
.gallery-thumb-btn:active { transform: scale(0.9); }
.gallery-thumb-btn svg { width: 22px; height: 22px; fill: var(--text-primary); }
.gallery-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.shutter-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: transparent;
  border: 4px solid #ffffff;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: transform var(--trans-spring);
}
.shutter-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  transition: transform var(--trans-spring), background var(--trans-fast), border-radius var(--trans-spring);
}
.shutter-btn:active .shutter-inner { transform: scale(0.88); }

/* Video & GIF Mode Shutter styles */
.mode-video .shutter-btn { border-color: var(--color-red) !important; }
.mode-video .shutter-inner { background: var(--color-red) !important; }
.mode-gif .shutter-btn { border-color: var(--color-primary) !important; }
.mode-gif .shutter-inner { background: var(--color-primary) !important; }

.shutter-btn.recording .shutter-inner {
  transform: scale(0.48);
  border-radius: 8px;
}

.camera-flip-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: transform var(--trans-spring);
}
.camera-flip-btn:active { transform: scale(0.9); }
.camera-flip-btn svg { width: 22px; height: 22px; fill: var(--text-primary); }

/* ==========================================================================
   MODALS (Settings, Gallery, Photo Detail)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.active { display: flex; }

.modal-dialog {
  background: #121218;
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  width: 100%;
  max-width: 460px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.modal-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.modal-close-btn:active { transform: scale(0.9); }

/* Settings Cards */
.settings-section-card {
  background: #1a1a24;
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.section-card-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.8px;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}

/* Social Icons Compact Grid */
.social-icons-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
  padding: 6px 0;
}
.social-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  text-decoration: none;
  transition: transform var(--trans-fast), background var(--trans-fast);
}
.social-icon-btn:hover, .social-icon-btn:active {
  transform: scale(1.08);
  background: var(--color-primary-glow);
  border-color: var(--color-primary);
}
.social-icon-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Flat Switch */
.flat-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.flat-switch input { opacity: 0; width: 0; height: 0; }
.switch-track {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  transition: 0.2s;
}
.switch-track:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.2s;
}
input:checked + .switch-track { background-color: var(--color-primary); }
input:checked + .switch-track:before { transform: translateX(20px); }

/* Segmented Buttons */
.segment-btn-group {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.3);
  padding: 3px;
  border-radius: 12px;
}
.segment-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 6px 4px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--trans-fast);
}
.segment-btn.active {
  background: var(--color-primary);
  color: #ffffff;
}

/* Buttons */
.flat-btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: transform var(--trans-fast);
}
.flat-btn-primary:active { transform: scale(0.96); }

.flat-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  padding: 10px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.flat-btn-secondary:active { transform: scale(0.96); }

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-height: 60vh;
  overflow-y: auto;
}
.gallery-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  cursor: pointer;
  background: #0a0a0f;
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-card-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.7);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
}

/* Detail Modal */
.detail-img-box {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: #000000;
}
.detail-img-box img {
  width: 100%;
  display: block;
}

.metadata-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #1a1a24;
  padding: 12px;
  border-radius: 14px;
  font-size: 11px;
}
.meta-row {
  display: flex;
  justify-content: space-between;
}
.meta-key { color: var(--text-muted); font-weight: 700; }
.meta-val { color: var(--text-primary); font-family: var(--font-jetbrains); }

.export-buttons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.export-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: #ffffff;
  padding: 10px 6px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  transition: all var(--trans-fast);
}
.export-btn:active {
  background: var(--color-primary);
  transform: scale(0.96);
}

.detail-actions-footer {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}
.detail-actions-footer button { flex: 1; }

.qr-display-box {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #ffffff;
  border-radius: 14px;
}
.qr-caption {
  color: #000000;
  font-weight: 800;
  font-size: 11px;
}

/* ==========================================================================
   ONBOARDING FULL-SCREEN
   ========================================================================== */
.onboarding-container {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.onboarding-container.active { display: flex; }

.onboard-step {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  width: 100%;
  max-width: 360px;
}
.onboard-step.active { display: flex; }

.onboard-pictogram {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.onboard-pictogram svg {
  width: 32px;
  height: 32px;
  fill: var(--color-primary);
}

.onboard-title {
  font-size: 20px;
  font-weight: 800;
}
.onboard-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.lang-cards-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.lang-card-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-radius: 14px;
  background: #1a1a24;
  border: 1px solid var(--border-glass);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.lang-card-btn.active {
  border-color: var(--color-primary);
  background: var(--color-primary-glow);
}
.lang-badge-tag {
  font-family: var(--font-jetbrains);
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.15);
  padding: 3px 8px;
  border-radius: 6px;
  color: #ffffff;
}

.onboard-actions-box {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
}
.onboard-actions-box button { flex: 1; }

/* Toast Notification */
.toast-notice {
  position: fixed;
  top: calc(var(--safe-top) + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(18, 18, 24, 0.95);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  pointer-events: none;
  opacity: 0;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 300;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.toast-notice.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
