/* ========================================
   Figma Light Minimalistic Design
   ======================================== */

/* Root Variables */
:root {
  --transition-speed: 0.3s;
  --border-radius-large: 24px;
  --border-radius-medium: 12px;
  --shadow-glass: 0px 4px 94px rgba(0, 0, 0, 0.05);
  --cream: #FFF0D9;
  --light-bg: #F9F9F9;
  --glass-white: rgba(255, 255, 255, 0.58);
  --text-black: #1E1E1E;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Body Base Styling */
body {
  font-family: 'Pathway Extreme', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--light-bg);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Main Container */
.container {
  position: relative;
  z-index: 1;
}

/* Modern Card Styling */
.modern-card {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-speed) ease;
}

.modern-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 212, 255, 0.3);
}

/* Modern Input Fields */
.modern-input {
  background: rgba(26, 31, 58, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 16px;
  color: #e5e7eb;
  font-size: 14px;
  transition: all var(--transition-speed) ease;
  width: 100%;
}

.modern-input:focus {
  outline: none;
  border-color: #00d4ff;
  background: rgba(26, 31, 58, 0.8);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.modern-input::placeholder {
  color: rgba(229, 231, 235, 0.4);
}

/* Modern Label */
.modern-label {
  color: #9ca3af;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
  display: block;
  text-transform: uppercase;
}

/* Modern Button */
.modern-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-speed) ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.modern-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.modern-btn:hover::before {
  width: 300px;
  height: 300px;
}

.modern-btn span {
  position: relative;
  z-index: 1;
}

/* Primary Button */
.btn-primary {
  background: #00d4ff;
  color: #0a0e27;
}

.btn-primary:hover {
  background: #00b8e6;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
  transform: translateY(-2px);
}

/* Success Button */
.btn-success {
  background: #10b981;
  color: white;
}

.btn-success:hover {
  background: #059669;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

/* Danger Button */
.btn-danger {
  background: #ef4444;
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

/* Secondary Button */
.btn-secondary {
  background: rgba(139, 92, 246, 0.2);
  color: #8b5cf6;
  border: 1px solid #8b5cf6;
}

.btn-secondary:hover {
  background: rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Modern Link */
.modern-link {
  color: #00d4ff;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
  position: relative;
  font-weight: 500;
}

.modern-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: #00d4ff;
  transition: width var(--transition-speed) ease;
}

.modern-link:hover::after {
  width: 100%;
}

.modern-link:hover {
  color: #00b8e6;
}

/* Auth Code Display */
.code-display {
  background: rgba(26, 31, 58, 0.5);
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  padding: 16px 24px;
  font-family: 'Courier New', monospace;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #00d4ff;
  text-align: center;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
  transition: all var(--transition-speed) ease;
}

.code-display:hover {
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
  transform: scale(1.02);
}

/* Auth Item Card */
.auth-item {
  background: rgba(26, 31, 58, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  transition: all var(--transition-speed) ease;
  cursor: pointer;
}

.auth-item:hover {
  background: rgba(26, 31, 58, 0.8);
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateX(4px);
  box-shadow: -4px 0 0 #00d4ff, 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Icon Avatar */
.icon-avatar {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

/* Progress Timer Bar */
.timer-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}

.timer-progress {
  height: 100%;
  background: linear-gradient(90deg, #00d4ff 0%, #10b981 100%);
  transition: width 1s linear;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Alert Messages */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
  border-left: 4px solid;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
  color: #10b981;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  border-radius: 12px;
  padding: 12px 16px;
  color: #dc2626;
  font-family: 'Pathway Extreme', sans-serif;
  font-size: 14px;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid #10b981;
  border-radius: 12px;
  padding: 12px 16px;
  color: #059669;
  font-family: 'Pathway Extreme', sans-serif;
  font-size: 14px;
}

.alert-info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid #3b82f6;
  border-radius: 12px;
  padding: 12px 16px;
  color: #2563eb;
  font-family: 'Pathway Extreme', sans-serif;
  font-size: 14px;
}

/* Header Title */
.page-title {
  font-size: clamp(24px, 5vw, 42px);
  font-weight: 800;
  background: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: -0.5px;
}

/* QR Scanner Modal */
.qr-modal {
  backdrop-filter: blur(8px);
  background: rgba(249, 249, 249, 0.95);
}

.qr-video-container {
  border-radius: 12px;
  overflow: hidden;
}

/* Loading Spinner */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid #00d4ff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Fade In Animation */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Typography */
@media (max-width: 768px) {
  .code-display {
    font-size: 24px;
    letter-spacing: 2px;
    padding: 12px 16px;
  }
  
  .auth-item {
    padding: 16px;
  }
  
  .icon-avatar {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(26, 31, 58, 0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 255, 0.7);
}

/* Focus Visible for Accessibility */
*:focus-visible {
  outline: 2px solid #00d4ff;
  outline-offset: 2px;
}

/* Disabled State */
.modern-btn:disabled,
.modern-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* No Select for certain elements */
.no-select {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

/* Hide Scrollbar but keep functionality */
.scrollbar-hidden {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.scrollbar-hidden::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Additional Figma-specific buttons for add_auth page */
.figma-btn-scan {
  background: #0EC7C0;
  border: 3px solid #0EC7C0;
  border-radius: 16px;
  padding: 16px 24px;
  font-family: 'Pathway Extreme', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.figma-btn-scan:hover {
  background: #0DB3A8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.figma-btn-cancel {
  background: #FFA7A7;
  border: 3px solid #FFA7A7;
  border-radius: 16px;
  padding: 16px 24px;
  font-family: 'Pathway Extreme', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #1E1E1E;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.figma-btn-cancel:hover {
  background: #ff9090;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.figma-btn-camera {
  background: #FFD9F2;
  border: 3px solid #FFD9F2;
  border-radius: 16px;
  padding: 16px 24px;
  font-family: 'Pathway Extreme', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #1E1E1E;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.figma-btn-camera:hover {
  background: #ffc4e6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Figma Design Specific Styles
   ======================================== */

/* Glass Card Effect */
.glass-card {
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: 0px 4px 94px rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  border: 3px solid #0EC7C0;
  transition: all 0.3s ease;
}

/* Top Navigation Bar */
.top-nav {
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  height: 72px;
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

/* Desktop Navigation Buttons Container */
.nav-desktop-buttons {
  display: none;
  gap: 12px;
}

/* Mobile Menu Button */
.nav-menu-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 8px;
}

/* Mobile Icon Button */
.nav-icon-btn {
  background: #FFF0D9;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* Desktop Styles - Hide Mobile, Show Desktop Nav */
@media (min-width: 768px) {
  .nav-desktop-buttons {
    display: flex;
    align-items: center;
  }
  
  .nav-menu-btn,
  .nav-icon-btn {
    display: none !important;
  }
  
  .app-title {
    position: static;
    transform: none;
  }
}

/* Mobile Styles - Center the title */
@media (max-width: 767px) {
  .app-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .nav-desktop-buttons {
    display: none;
  }
}

.nav-menu-btn:hover {
  background: rgba(255, 240, 217, 0.5);
}

.nav-menu-btn:active {
  transform: scale(0.95);
}

.nav-icon-btn:hover {
  background: #ffe8c2;
  transform: translateY(-1px);
}

.nav-icon-btn:active {
  transform: translateY(0);
}

/* Mobile Menu Dropdown — legacy rule (overridden below) */
.mobile-menu-legacy-placeholder {
  background: rgba(255, 255, 255, 0.95);
}

/* App Title Responsive */
.app-title {
  font-family: 'Piazzolla', serif;
  font-size: 20px;
  font-weight: 600;
  color: #1E1E1E;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.3s ease;
}

.app-title:hover {
  color: #4A4A4A;
}

@media (min-width: 768px) {
  .app-title {
    font-size: 24px;
  }
}

/* Search Bar */
.search-bar-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.search-bar {
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: 0px 4px 94px rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  border: 1px solid #FFF0D9;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 500px;
  position: relative;
  transition: all 0.3s ease;
}

.search-bar:focus-within {
  border-color: #D9D9D9;
  box-shadow: 0px 4px 94px rgba(0, 0, 0, 0.1);
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Piazzolla', serif;
  font-size: 20px;
  font-weight: 500;
  color: #1E1E1E;
  width: 100%;
}

.search-input::placeholder {
  color: rgba(0, 0, 0, 0.2);
}

.search-icon {
  flex-shrink: 0;
}

.clear-search {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: rgba(0, 0, 0, 0.4);
  padding: 4px 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.clear-search:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #1E1E1E;
}

.clear-search.hidden {
  display: none;
}

/* Figma Button Styles */
.figma-btn {
  padding: 8px 20px;
  border-radius: 16px;
  font-family: 'Play', sans-serif;
  font-size: 16px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .figma-btn {
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 18px;
    gap: 10px;
  }
}

.figma-btn-primary {
  background: #0EC7C0;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.figma-btn-primary:hover {
  background: #0DB3A8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.figma-btn-primary:active {
  transform: translateY(0);
}

.figma-btn-danger {
  background: #FFA7A7;
  color: #1E1E1E;
}

.figma-btn-danger:hover {
  background: #ff8f8f;
}

.figma-btn-pink {
  background: #FFD9F2;
  color: #1E1E1E;
  font-size: 10.75px;
  padding: 4.3px 12.9px;
  border-radius: 12.9px;
  gap: 6.45px;
}

/* Action Buttons */
.action-btn {
  padding: 10px 24px;
  background: #F0F0F0;
  border-radius: 12px;
  font-family: 'Pathway Extreme', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  color: #315DCB;
  white-space: nowrap;
  min-width: 110px;
}

.action-btn:hover {
  background: #E0E0E0;
  transform: translateY(-1px);
}

.action-btn img {
  flex-shrink: 0;
}

.action-btn .copy-feedback {
  display: none;
}

.action-btn .copy-feedback:not(.hidden) {
  display: flex;
  align-items: center;
}

/* Code Display - Figma Style */
.figma-code {
  font-family: 'Pathway Extreme', sans-serif;
  font-size: 48px;
  font-weight: 600;
  color: #1E1E1E;
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

/* Service Name */
.service-name {
  font-family: 'Piazzolla', serif;
  font-size: 24px;
  font-weight: 500;
  color: #1E1E1E;
  text-align: center;
  line-height: 1.3;
}

/* Red Indicator Dot */
.indicator-dot {
  width: 12px;
  height: 12px;
  background: #FF6B6B;
  border-radius: 9999px;
  flex-shrink: 0;
}

/* Auth Item Container - Figma Style */
.auth-item-figma {
  padding: 24px 0;
  border-bottom: 1px solid rgba(217, 217, 217, 0.3);
}

.auth-item-figma:last-child {
  border-bottom: none;
}

/* Circular Timer Progress */
.timer-circle-wrapper {
  width: 36px;
  height: 36px;
  position: relative;
}

.timer-circle {
  width: 36px;
  height: 36px;
  transform: rotate(-90deg);
}

.timer-circle-bg {
  fill: none;
  stroke: rgba(217, 217, 217, 0.3);
  stroke-width: 3;
}

.timer-circle-progress {
  fill: none;
  stroke: #0EC7C0;
  stroke-width: 3;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
  stroke-linecap: round;
}

/* Input Field - Figma Style */
.figma-input {
  padding: 12px 19px;
  border-radius: 24px;
  border: 1px solid #0EC7C0;
  font-family: 'Pathway Extreme', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #1E1E1E;
  background: transparent;
  width: 100%;
  transition: all 0.3s ease;
}

.figma-input::placeholder {
  color: #B4B4B4;
}

.figma-input:focus {
  outline: none;
  border-color: #0EC7C0;
  border-width: 2px;
}

/* Label - Figma Style */
.figma-label {
  font-family: 'Pathway Extreme', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #1E1E1E;
  padding-left: 19px;
}

/* Helper Text */
.helper-text {
  font-family: 'Pathway Extreme', sans-serif;
  font-size: 8px;
  font-weight: 300;
  color: #B4B4B4;
  padding-left: 19px;
}

/* Tip Text */
.tip-text {
  font-family: 'Pathway Extreme', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #1E1E1E;
  text-align: center;
}

/* Page Title - Figma Style */
.page-title-figma {
  font-family: 'Pathway Extreme', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #1E1E1E;
  text-align: center;
}

/* Page Subtitle */
.page-subtitle {
  font-family: 'Pathway Extreme', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #1E1E1E;
  text-align: center;
}

/* App Title */
.app-title {
  font-family: 'Pathway Extreme', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #1E1E1E;
}

/* Responsive adjustments for Figma design */
@media (max-width: 768px) {
  .figma-code {
    font-size: 36px;
  }
  
  .service-name {
    font-size: 20px;
  }
  
  .action-btn {
    padding: 10px 24px;
    font-size: 18px;
  }
  
  .search-bar {
    padding: 12px 24px;
  }
}

/* ========================================
   2026 Light Minimal Refresh
   ======================================== */

:root {
  --bg-canvas: #f6f7fb;
  --bg-elevated: rgba(255, 255, 255, 0.86);
  --bg-solid: #ffffff;
  --bg-muted: #eef2ff;
  --line-soft: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(49, 93, 203, 0.18);
  --text-strong: #14213d;
  --text-body: #51607a;
  --text-soft: #7e8aa3;
  --brand: #315dcb;
  --brand-strong: #244aa8;
  --accent: #0ec7c0;
  --accent-soft: #e7fbfa;
  --danger-soft: #fff1f2;
  --danger-text: #be123c;
  --success-soft: #ecfdf5;
  --success-text: #047857;
  --shadow-soft: 0 20px 60px rgba(20, 33, 61, 0.08);
  --shadow-card: 0 14px 38px rgba(49, 93, 203, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --content-width: 1180px;
}

html,
body {
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at top left, rgba(14, 199, 192, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(49, 93, 203, 0.12), transparent 24%),
    var(--bg-canvas);
  color: var(--text-strong);
  font-family: 'Pathway Extreme', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

a {
  color: inherit;
}

.site-shell {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(246, 247, 251, 0.78);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  /* needed so absolute-positioned #mobileMenu anchors to the header */
  isolation: isolate;
}

.site-header__inner {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.brand-mark__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
 // background: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
 // box-shadow: 0 14px 30px rgba(49, 93, 203, 0.18);
}

.brand-mark__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-mark__copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-mark__title {
  font-family: 'Piazzolla', serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.1;
}

.brand-mark__subtitle {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.site-nav,
.site-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-nav a,
.site-nav button {
  color: var(--text-body);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--text-strong);
}

/* ── Hamburger button (hidden on desktop) ── */
.nav-hamburger {
  display: none !important;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.15s;
  flex-shrink: 0;
}

.nav-hamburger:hover {
  background: rgba(49, 93, 203, 0.07);
}

.nav-hamburger span {
  display: block !important;
  width: 22px !important;
  height: 2px !important;
  background: var(--text-body) !important;
  border-radius: 2px !important;
  transition: transform 0.2s, opacity 0.2s;
}

/* Animate hamburger → X when open */
.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile slide-down menu (hidden by default) ── */
.mobile-menu {
  display: none !important;
  position: absolute;
  left: 0;
  right: 0;
  background: rgba(246, 247, 251, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  z-index: 49;
  padding: 0.75rem 1.25rem 1.25rem;
}

.mobile-menu.menu-open {
  display: block !important;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.mobile-menu__nav a {
  color: var(--text-body);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.65rem 0.5rem;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.mobile-menu__nav a:hover {
  background: rgba(49, 93, 203, 0.07);
  color: var(--brand);
}

.mobile-menu__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu__actions .button {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.button,
.figma-btn,
.figma-btn-scan,
.figma-btn-camera,
.figma-btn-cancel,
.action-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.95rem 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: 'Pathway Extreme', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.button:hover,
.figma-btn:hover,
.figma-btn-scan:hover,
.figma-btn-camera:hover,
.figma-btn-cancel:hover,
.action-btn:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.figma-btn:focus-visible,
.figma-btn-scan:focus-visible,
.figma-btn-camera:focus-visible,
.figma-btn-cancel:focus-visible,
.action-btn:focus-visible,
.figma-input:focus-visible,
.search-input:focus-visible {
  outline: 3px solid rgba(14, 199, 192, 0.22);
  outline-offset: 2px;
}

.button--primary,
.figma-btn-primary,
.figma-btn-scan {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 16px 32px rgba(49, 93, 203, 0.22);
}

.button--primary:hover,
.figma-btn-primary:hover,
.figma-btn-scan:hover {
  box-shadow: 0 18px 34px rgba(49, 93, 203, 0.28);
}

.button--secondary,
.figma-btn-secondary,
.figma-btn-camera,
.action-btn {
  background: rgba(255, 255, 255, 0.84);
  color: var(--text-strong);
  border-color: var(--line-soft);
  box-shadow: 0 8px 24px rgba(20, 33, 61, 0.06);
}

.button--secondary:hover,
.figma-btn-secondary:hover,
.figma-btn-camera:hover,
.action-btn:hover {
  border-color: var(--line-strong);
  background: #fff;
}

.button--ghost,
.figma-btn-cancel {
  background: transparent;
  color: var(--text-body);
  border-color: var(--line-soft);
}

.button--ghost:hover,
.figma-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-strong);
}

.surface,
.glass-card,
.modern-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(49, 93, 203, 0.1);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 2rem;
  align-items: stretch;
  padding: 3.5rem 0 2rem;
}

.hero-copy,
.hero-panel,
.auth-panel,
.dashboard-panel,
.add-auth-panel {
  padding: clamp(1.5rem, 2vw, 2rem);
}

.hero-copy h1,
.page-heading,
.auth-heading {
  font-family: 'Piazzolla', serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  margin: 1rem 0 1rem;
}

.hero-copy p,
.section-lead,
.auth-subheading,
.dashboard-intro,
.muted-text,
.page-subtitle {
  color: var(--text-body);
  line-height: 1.75;
}

.hero-actions,
.stack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.metric-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.metric-card strong {
  display: block;
  font-size: 1.3rem;
  color: var(--text-strong);
}

.metric-card span {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.device-preview {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.device-preview__shell {
  border-radius: 28px;
  padding: 1rem;
  background: linear-gradient(180deg, #fff 0%, #f5f7fc 100%);
  border: 1px solid rgba(49, 93, 203, 0.08);
  box-shadow: var(--shadow-card);
}

.device-preview__top,
.mini-stat,
.auth-card,
.info-card,
.feature-card-light {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 24px rgba(20, 33, 61, 0.04);
}

.device-preview__top {
  padding: 1rem;
  margin-bottom: 1rem;
}

.device-preview__list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mini-auth {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line-soft);
}

.mini-auth__meta strong,
.info-card h3,
.feature-card-light h3,
.section-title,
.service-name,
.auth-card__title,
.auth-card__code {
  color: var(--text-strong);
}

.mini-auth__meta p,
.feature-card-light p,
.info-card p,
.auth-card__meta,
.helper-text {
  color: var(--text-soft);
}

.mini-auth__code,
.figma-code,
.auth-card__code {
  font-family: 'Pathway Extreme', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.landing-section {
  padding: 1.5rem 0 0;
}

.section-block {
  padding: 1.75rem;
}

.section-grid-3,
.features-grid,
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.section-grid-2,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card-light,
.info-card {
  padding: 1.4rem;
}

.feature-icon-light,
.benefit-bullet,
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--brand);
  font-size: 1.2rem;
  font-weight: 700;
}

.step-number {
  border-radius: 14px;
  box-shadow: none;
}

.cta-banner {
  background: linear-gradient(135deg, rgba(49, 93, 203, 0.96), rgba(14, 199, 192, 0.92));
  color: white;
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(49, 93, 203, 0.22);
}

.cta-banner p,
.cta-banner .muted-text {
  color: rgba(255, 255, 255, 0.86);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.auth-layout {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.9fr);
  gap: 1.5rem;
}

.auth-showcase,
.auth-panel {
  min-height: 680px;
}

.auth-showcase {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(49, 93, 203, 0.96) 0%, rgba(36, 74, 168, 0.98) 52%, rgba(14, 199, 192, 0.96) 100%);
  color: white;
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 70px rgba(49, 93, 203, 0.24);
}

.auth-showcase p,
.auth-showcase .muted-text {
  color: rgba(255, 255, 255, 0.86);
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-heading {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  margin: 0.6rem 0;
}

.auth-card-compact,
.dashboard-toolbar,
.dashboard-overview,
.dashboard-list,
.scanner-modal-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.alert-error,
.alert-success,
.alert-info {
  border-radius: 18px;
  padding: 0.95rem 1rem;
  border: 1px solid transparent;
  font-size: 0.95rem;
}

.alert-error {
  background: var(--danger-soft);
  color: var(--danger-text);
  border-color: rgba(225, 29, 72, 0.14);
}

.alert-success {
  background: var(--success-soft);
  color: var(--success-text);
  border-color: rgba(4, 120, 87, 0.12);
}

.alert-info {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.12);
}

.figma-label,
.modern-label {
  display: block;
  margin-bottom: 0.55rem;
  padding-left: 0;
  color: var(--text-body);
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.figma-input,
.modern-input,
.search-input {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(49, 93, 203, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text-strong);
  min-height: 58px;
  padding: 0.95rem 1.1rem;
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.figma-input::placeholder,
.modern-input::placeholder,
.search-input::placeholder {
  color: #98a2b3;
}

.figma-input:focus,
.modern-input:focus,
.search-input:focus {
  outline: none;
  border-color: rgba(14, 199, 192, 0.8);
  box-shadow: 0 0 0 4px rgba(14, 199, 192, 0.14);
  background: #fff;
}

.dashboard-shell {
  padding: 2rem 0 3rem;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  margin: 1rem 0 1.5rem;
}

.dashboard-hero h1 {
  font-family: 'Piazzolla', serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.04;
  margin: 0 0 0.6rem;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.mini-stat {
  padding: 1rem 1.1rem;
}

.mini-stat strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.mini-stat span {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.dashboard-toolbar {
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.search-bar-container {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  justify-content: space-between;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0 0.4rem 0 1rem;
  min-height: 60px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line-soft);
  box-shadow: 0 10px 24px rgba(20, 33, 61, 0.04);
}

.search-bar .search-input {
  min-height: auto;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.search-bar .search-input:focus {
  border: none;
  box-shadow: none;
  background: transparent;
}

.search-icon {
  width: 20px;
  height: 20px;
  opacity: 0.55;
}

.clear-search {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: transparent;
  border: none;
  color: var(--text-soft);
}

.dashboard-list {
  padding: 1rem;
}

.dashboard-list #auth-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.auth-item-figma,
.auth-card {
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  padding: 1.2rem;
  background: #fff;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-card--interactive {
  position: relative;
  cursor: pointer;
}

.auth-item-figma:hover,
.auth-card:hover {
  transform: translateY(-2px);
  border-color: rgba(49, 93, 203, 0.16);
  box-shadow: 0 14px 30px rgba(49, 93, 203, 0.08);
}

.auth-card--interactive::after {
  content: 'Copied';
  position: absolute;
  top: 1rem;
  right: 4rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(14, 199, 192, 0.12);
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.auth-card--copied {
  border-color: rgba(14, 199, 192, 0.34);
  box-shadow: 0 18px 34px rgba(14, 199, 192, 0.12);
}

.auth-card--copied::after {
  opacity: 1;
  transform: translateY(0);
}

.auth-card__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.auth-card__row > div:first-child {
  flex: 1;
}

.auth-card__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  align-self: stretch;
}

.service-name {
  font-family: 'Piazzolla', serif;
  font-size: 1.22rem;
  font-weight: 600;
  margin: 0;
}

.indicator-dot {
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 0 0 6px rgba(14, 199, 192, 0.12);
}

.figma-code {
  font-size: clamp(2rem, 5vw, 2.85rem);
  letter-spacing: 0.14em;
  text-align: left;
}

.timer-circle-wrapper {
  width: 42px;
  height: 42px;
}

.timer-circle,
.timer-circle-bg,
.timer-circle-progress {
  width: 42px;
  height: 42px;
}

.timer-circle-bg {
  stroke: rgba(49, 93, 203, 0.12);
}

.timer-circle-progress {
  stroke: var(--accent);
}

.card-menu-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.88);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.card-menu-btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: #fff;
}

.card-menu-btn span {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--text-body);
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.empty-state__icon {
  width: 74px;
  height: 74px;
  border-radius: 24px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, rgba(49, 93, 203, 0.12), rgba(14, 199, 192, 0.15));
  display: grid;
  place-items: center;
  font-size: 2rem;
}

.tip-text {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin-top: 1rem;
}

.import-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 0.82fr);
  gap: 1.25rem;
  align-items: start;
}

.import-panel,
.import-sidebar,
.import-results {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem;
}

.import-method-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.import-method-button {
  min-height: 58px;
}

.import-method-button.is-inactive {
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-body);
  border-color: var(--line-soft);
  box-shadow: 0 8px 24px rgba(20, 33, 61, 0.05);
}

.import-method-button.is-inactive:hover {
  background: #fff;
  border-color: var(--line-strong);
}

.import-instructions,
.import-results__summary,
.scanned-accounts-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 247, 255, 0.82));
  border: 1px solid rgba(49, 93, 203, 0.08);
  border-radius: 22px;
  padding: 1rem;
}

.import-instructions h4,
.import-results__summary strong,
.scanned-account__title {
  color: var(--text-strong);
}

.import-instructions ol,
.import-instructions p,
.scanned-account__meta,
.import-results__summary span {
  color: var(--text-body);
}

.scanned-account-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.scanned-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line-soft);
}

.scanned-account__meta {
  font-size: 0.9rem;
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.84);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  border-color: rgba(225, 29, 72, 0.2);
  background: #fff;
}

.import-textarea {
  min-height: 220px;
  resize: vertical;
}

.import-results__list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-height: 320px;
  overflow-y: auto;
}

.import-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line-soft);
}

.import-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.import-badge--success {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.import-badge--duplicate {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.import-badge--error {
  background: rgba(225, 29, 72, 0.1);
  color: #be123c;
}

.sidebar-step-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1rem;
}

.sidebar-step {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.sidebar-step__num {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--brand);
  font-weight: 700;
}

.top-nav,
.nav-container,
.nav-desktop-buttons,
.nav-icon-btn,
.app-title {
  all: unset;
}

.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 0 2rem;
}

.site-footer__card {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.site-footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer__links a {
  text-decoration: none;
  color: var(--text-body);
}

.site-footer__links a:hover {
  color: var(--brand);
}

.qr-modal {
  background: rgba(20, 33, 61, 0.18);
  backdrop-filter: blur(12px);
}

.scanner-modal-card {
  padding: 1.25rem;
}

@media (max-width: 1024px) {
  .hero-grid,
  .auth-layout,
  .import-layout,
  .section-grid-3,
  .features-grid,
  .benefits-grid,
  .section-grid-2,
  .steps-grid,
  .dashboard-hero,
  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    align-items: start;
  }
}

@media (max-width: 768px) {
  .site-footer__row,
  .dashboard-toolbar,
  .search-bar-container {
    flex-direction: column;
    align-items: stretch;
  }

  /* Keep header as row: logo left, hamburger right */
  .site-header__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .site-nav,
  .site-actions {
    display: none;
  }

  .nav-hamburger {
    display: flex !important;
  }

  .hero-grid,
  .dashboard-shell {
    padding-top: 1.5rem;
  }

  /* Reorder dashboard on mobile: codes first, hero+stats at bottom */
  .dashboard-shell {
    display: flex;
    flex-direction: column;
  }

  .dashboard-toolbar { order: 1; }
  .dashboard-list    { order: 2; }
  .dashboard-hero    { order: 3; margin-top: 2rem; }
  .dashboard-stats   { order: 4; }
  .tip-text          { order: 5; }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .figma-code {
    text-align: left;
    font-size: 1.85rem;
  }
}

@media (max-width: 640px) {
  .site-shell,
  .site-header__inner,
  .site-footer__card {
    width: min(calc(100% - 1rem), var(--content-width));
  }

  .site-header__inner {
    min-height: auto;
    padding: 0.75rem 0;
    align-items: center;
  }

  .brand-mark__title {
    font-size: 1.02rem;
  }

  .brand-mark__subtitle {
    font-size: 0.76rem;
  }

  .site-actions,
  .hero-actions,
  .stack-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .site-actions .button,
  .hero-actions .button,
  .stack-actions .button,
  .stack-actions .figma-btn-scan,
  .stack-actions .figma-btn-cancel,
  .stack-actions .action-btn {
    width: 100%;
    justify-content: center;
  }

  .surface,
  .glass-card,
  .modern-card,
  .section-block,
  .hero-copy,
  .hero-panel,
  .auth-panel,
  .add-auth-panel,
  .dashboard-list,
  .dashboard-toolbar,
  .cta-banner,
  .site-footer__card {
    border-radius: 22px;
  }

  .hero-copy,
  .hero-panel,
  .auth-panel,
  .add-auth-panel,
  .section-block,
  .cta-banner {
    padding: 1.2rem;
  }

  .hero-copy h1,
  .page-heading,
  .auth-heading,
  .dashboard-hero h1 {
    font-size: clamp(1.8rem, 9vw, 2.45rem) !important;
  }

  .dashboard-shell {
    padding: 1rem 0 2rem;
  }

  .dashboard-hero {
    margin: 0.5rem 0 1rem;
  }

  .dashboard-stats {
    gap: 0.75rem;
  }

  .mini-stat,
  .feature-card-light,
  .info-card,
  .metric-card {
    padding: 0.95rem 1rem;
  }

  .search-bar {
    min-height: 54px;
    padding: 0 0.25rem 0 0.9rem;
  }

  .clear-search {
    width: 38px;
    height: 38px;
  }

  .dashboard-list {
    padding: 0.75rem;
  }

  .dashboard-list #auth-list {
    gap: 0.85rem;
  }

  .auth-item-figma,
  .auth-card {
    padding: 1rem;
    border-radius: 20px;
  }

  .auth-card__row > div:first-child {
    flex: 1;
    min-width: 0;
  }

  .auth-card__row .flex.items-center.gap-2.mb-2 {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .auth-card__meta {
    text-align: center;
    margin-bottom: 0.4rem;
  }

  .auth-card__row .stack-actions {
    gap: 0.7rem;
  }

  .auth-card__row .stack-actions .action-btn {
    min-height: 48px;
  }

  .timer-circle-wrapper {
    margin: 0;
  }

  .auth-card--interactive::after {
    right: 1rem;
    top: 0.8rem;
  }

  .auth-card__actions {
    flex-direction: column;
    align-items: center;
  }

  .device-preview__shell {
    padding: 0.8rem;
    border-radius: 22px;
  }

  .mini-auth {
    padding: 0.8rem 0.9rem;
    align-items: flex-start;
  }

  .mini-auth__code {
    font-size: 0.95rem;
  }

  .site-footer {
    margin-top: 2rem;
  }
}

@media (max-width: 480px) {
  .button,
  .figma-btn,
  .figma-btn-scan,
  .figma-btn-camera,
  .figma-btn-cancel,
  .action-btn {
    min-height: 50px;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }

  .brand-mark__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .hero-grid,
  .landing-section {
    gap: 1rem;
  }

  .eyebrow {
    font-size: 0.74rem;
    padding: 0.4rem 0.7rem;
  }

  .figma-code,
  .auth-card__code {
    font-size: 1.65rem;
    letter-spacing: 0.1em;
  }

  .search-input,
  .figma-input,
  .modern-input {
    font-size: 0.95rem;
  }

  .site-footer__links {
    flex-direction: column;
    gap: 0.55rem;
  }
}