/* ===== Lionbridge Design System ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

/* === CSS Variables === */
:root {
  --lion-dark: #0A0A0F;
  --lion-surface: #12121A;
  --lion-orange: #F07124;
  --lion-orange-hover: #FFB347;
  --lion-gold: #FFB347;
  --lion-glow: #4FC3F7;
  --lion-border: #1E1E2E;
  --lion-glass: rgba(18, 18, 26, 0.8);
  --lion-glass-border: #1E1E2E;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  line-height: 1.5;
  tab-size: 4;
}

body {
  background-color: var(--lion-dark);
  font-family: var(--font-body);
  color: #f3f4f6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select, button { font-size: 16px; font-family: inherit; color: inherit; }
img, svg, video, canvas { display: block; max-width: 100%; }

/* === Typography === */
.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-10 { font-size: 10px; }
.text-11 { font-size: 11px; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.tracking-wider { letter-spacing: 0.05em; }

.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-1 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }

/* === Colors === */
.text-white { color: #fff; }
.text-lion-orange { color: var(--lion-orange); }
.text-lion-gold { color: var(--lion-gold); }
.text-lion-glow { color: var(--lion-glow); }
.text-gray-200 { color: #e5e7eb; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-green-400 { color: #4ade80; }
.text-red-400 { color: #f87171; }
.text-amber-400 { color: #fbbf24; }
.text-whatsapp { color: #25D366; }

/* === Layout === */
.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.max-w-md { max-width: 28rem; margin-left: auto; margin-right: auto; }
.max-w-lg { max-width: 32rem; margin-left: auto; margin-right: auto; }
.max-w-sm { max-width: 24rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top:0;right:0;bottom:0;left:0; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-200 { z-index: 200; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-auto { overflow-y: auto; }
.pointer-events-none { pointer-events: none; }
.cursor-crosshair { cursor: crosshair; }
.touch-none { touch-action: none; }
.touch-pan-y { touch-action: pan-y; }

/* Flexbox */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-stretch { align-items: stretch; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-0-5 { gap: 0.125rem; }
.gap-1 { gap: 0.25rem; }
.gap-1-5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2-5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }

/* Grid */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Spacing */
.p-1 { padding: 0.25rem; }
.p-3 { padding: 0.75rem; }
.p-3-5 { padding: 0.875rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-0-5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1-5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2-5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.mb-0-5 { margin-bottom: 0.125rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-1-5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.mt-0-5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-1-5 { margin-top: 0.375rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }

/* Sizing */
.w-7 { width: 1.75rem; }
.h-7 { height: 1.75rem; }
.w-9 { width: 2.25rem; }
.h-9 { height: 2.25rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-24 { width: 6rem; }
.h-24 { height: 6rem; }
.w-32 { width: 8rem; }
.h-32 { height: 8rem; }
.h-2 { height: 0.5rem; }
.h-4 { height: 1rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-1-5 { width: 0.375rem; }
.h-1-5 { height: 0.375rem; }
.w-8 { width: 2rem; }
.min-w-0 { min-width: 0; }
.min-h-44 { min-height: 44px; }
.min-h-40 { min-height: 40px; }
.min-h-56 { min-height: 56px; }
.min-h-100 { min-height: 100px; }
.min-w-56 { min-width: 56px; }
.max-w-full { max-width: 100%; }

/* === Components === */

/* Glass Card */
.glass-card {
  border-radius: 1rem;
  border: 1px solid var(--lion-glass-border);
  background-color: var(--lion-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* Primary Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 0.75rem;
  background-color: var(--lion-orange);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  color: #fff;
  border: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.btn-primary:active { transform: scale(0.98); background-color: var(--lion-orange-hover); }
.btn-primary:disabled { opacity: 0.5; cursor: default; }
.btn-primary:disabled:active { transform: none; background-color: var(--lion-orange); }

/* Secondary Button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 0.75rem;
  border: 1px solid var(--lion-border);
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  color: #d1d5db;
  background: transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.btn-secondary:active { border-color: var(--lion-orange); color: #fff; }

/* Input Field */
.input-field {
  min-height: 44px;
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--lion-border);
  background-color: rgba(10, 10, 15, 0.6);
  padding: 0.75rem 1rem;
  color: #fff;
  outline: none;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.input-field::placeholder { color: #6b7280; }
.input-field:focus {
  border-color: var(--lion-orange);
  box-shadow: 0 0 0 1px rgba(240, 113, 36, 0.5);
}
.input-field:disabled { opacity: 0.5; }

/* Circuit Background */
.circuit-bg {
  background-image:
    linear-gradient(rgba(240,113,36,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,113,36,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Page Container */
.page-container {
  min-height: 100vh;
  padding: 0.75rem 1rem 6rem;
}

/* Mobile Header */
.mobile-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  border-bottom: 1px solid var(--lion-border);
  background-color: rgba(18, 18, 26, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding-top: env(safe-area-inset-top);
}

/* Bottom Tab Bar */
.bottom-tab-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  border-top: 1px solid var(--lion-border);
  background-color: rgba(18, 18, 26, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding-bottom: env(safe-area-inset-bottom);
}

/* Tab Item */
.tab-item {
  display: flex;
  min-height: 56px;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  padding: 0.5rem 0.25rem;
  color: #6b7280;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  background: none;
  border: none;
  text-decoration: none;
}
.tab-item:active { transform: scale(0.95); }

.tab-item-active { color: var(--lion-orange); }
.tab-item-active .tab-icon-wrap {
  border-radius: 0.75rem;
  background-color: rgba(240, 113, 36, 0.15);
}

/* Page Subtitle */
.page-subtitle {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: #9ca3af;
}

/* Utility */
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-none { border: none; }
.border-lion-border { border-color: var(--lion-border); }
.border-lion-orange { border-color: var(--lion-orange); }
.border-lion-gold-40 { border-color: rgba(255, 179, 71, 0.4); }
.border-lion-gold-30 { border-color: rgba(255, 179, 71, 0.3); }
.border-lion-orange-20 { border-color: rgba(240, 113, 36, 0.2); }
.border-lion-orange-30 { border-color: rgba(240, 113, 36, 0.3); }
.border-lion-orange-40 { border-color: rgba(240, 113, 36, 0.4); }
.border-lion-border-30 { border-color: rgba(30, 30, 46, 0.3); }
.border-lion-border-40 { border-color: rgba(30, 30, 46, 0.4); }
.border-red-500-40 { border-color: rgba(239, 68, 68, 0.4); }
.border-whatsapp-35 { border-color: rgba(37, 211, 102, 0.35); }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-l-lion-orange { border-left-color: var(--lion-orange); }

.bg-lion-dark { background-color: var(--lion-dark); }
.bg-lion-dark-60 { background-color: rgba(10, 10, 15, 0.6); }
.bg-lion-dark-40 { background-color: rgba(10, 10, 15, 0.4); }
.bg-lion-dark-50 { background-color: rgba(10, 10, 15, 0.5); }
.bg-lion-orange { background-color: var(--lion-orange); }
.bg-lion-orange-10 { background-color: rgba(240, 113, 36, 0.1); }
.bg-lion-orange-15 { background-color: rgba(240, 113, 36, 0.15); }
.bg-lion-orange-20 { background-color: rgba(240, 113, 36, 0.2); }
.bg-lion-orange-5 { background-color: rgba(240, 113, 36, 0.05); }
.bg-lion-gold-10 { background-color: rgba(255, 179, 71, 0.1); }
.bg-lion-gold-5 { background-color: rgba(255, 179, 71, 0.05); }
.bg-lion-glow-15 { background-color: rgba(79, 195, 247, 0.15); }
.bg-gray-500-20 { background-color: rgba(107, 114, 128, 0.2); }
.bg-green-500-20 { background-color: rgba(34, 197, 94, 0.2); }
.bg-yellow-500-20 { background-color: rgba(234, 179, 8, 0.2); }
.bg-red-400-10 { background-color: rgba(248, 113, 113, 0.1); }
.bg-red-500 { background-color: #ef4444; }
.bg-red-500-20 { background-color: rgba(239, 68, 68, 0.2); }
.bg-black-60 { background-color: rgba(0, 0, 0, 0.6); }
.bg-whatsapp-15 { background-color: rgba(37, 211, 102, 0.15); }

.opacity-40 { opacity: 0.4; }
.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.opacity-15 { opacity: 0.15; }

.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.shadow-lion-orange { box-shadow: 0 20px 25px -5px rgba(240,113,36,0.2); }

.underline { text-decoration: underline; }
.whitespace-nowrap { white-space: nowrap; }
.break-all { word-break: break-all; }
.leading-relaxed { line-height: 1.625; }
.leading-none { line-height: 1; }
.resize-none { resize: none; }

.transition-all { transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1); }
.transition-transform { transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1); }

/* Animations */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }

/* Background decorative lines for auth page */
.bg-line-v {
  position: absolute;
  top: 0; width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--lion-orange), transparent);
}
.bg-line-h {
  position: absolute;
  left: 0; width: 100%; height: 1px;
  background: linear-gradient(to right, transparent, rgba(240,113,36,0.5), transparent);
}

/* Progress bar */
.progress-bar {
  height: 0.5rem;
  background-color: var(--lion-dark);
  border-radius: 9999px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background-color: var(--lion-orange);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

/* Scrollbar */
@media (min-width: 768px) {
  ::-webkit-scrollbar { width: 4px; height: 4px; }
  ::-webkit-scrollbar-track { background: var(--lion-dark); }
  ::-webkit-scrollbar-thumb { background: var(--lion-orange); border-radius: 2px; }
}

/* Hidden utility */
.hidden { display: none !important; }
.block { display: block; }

/* Language dropdown */
.lang-option:hover {
  background: rgba(240, 113, 36, 0.1) !important;
  color: var(--lion-orange) !important;
}
.lang-dropdown-menu {
  animation: langFadeIn 0.15s ease-out;
}
@keyframes langFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Avatar dropdown */
.avatar-dropdown-menu {
  animation: langFadeIn 0.15s ease-out;
}
.avatar-menu-item:hover {
  background: rgba(240, 113, 36, 0.1) !important;
}
