/* ====================================================
   PLATAFORMA EMPRENDIMIENTO DIGITAL · ALEX NARANJO
   Línea gráfica: Petrol + Gold + Teal
   Tipografía: Poppins (títulos) + Calibri/system (body)
   ==================================================== */

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

:root {
  --petrol: #16384C;
  --petrol-mid: #1E4E6C;
  --petrol-light: #2A6A8E;
  --gold: #C8A96B;
  --gold-light: #E2C98E;
  --gold-dark: #A8893B;
  --teal: #2FA7A0;
  --teal-light: #4DBFB8;
  --white: #FFFFFF;
  --smoke: #F7F9FB;
  --smoke2: #EDF2F6;
  --dark-bg: #0D2333;
  --dark-card: #111820;
  --text-dark: #0D2333;
  --text-mid: #4A6070;
  --text-light: #8FA5B5;
  --red: #DC5050;
  --green: #2FA76B;
  --grad-hero: linear-gradient(135deg, #0D2333 0%, #16384C 40%, #1E4E6C 70%, #2A6A8E 100%);
  --grad-gold: linear-gradient(135deg, #C8A96B 0%, #E2C98E 50%, #C8A96B 100%);
  --grad-teal: linear-gradient(135deg, #2FA7A0 0%, #4DBFB8 100%);
  --shadow-sm: 0 2px 12px rgba(22,56,76,0.07);
  --shadow-md: 0 8px 32px rgba(22,56,76,0.11);
  --shadow-lg: 0 20px 60px rgba(22,56,76,0.16);
  --shadow-gold: 0 8px 32px rgba(200,169,107,0.28);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 100px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, 'Segoe UI', sans-serif;
  background: var(--smoke);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--petrol-mid); border-radius: 10px; }

/* ===== LAYOUT ===== */
.app-wrapper { display: flex; min-height: 100vh; }
.sidebar {
  width: 280px; background: var(--dark-bg); color: var(--white);
  display: flex; flex-direction: column; position: fixed;
  top: 0; left: 0; bottom: 0; z-index: 100;
  transition: transform 0.3s;
}
.main-content {
  flex: 1; margin-left: 280px; min-height: 100vh;
  display: flex; flex-direction: column;
}
.content-area { flex: 1; padding: 32px; max-width: 1200px; width: 100%; margin: 0 auto; }

/* ===== SIDEBAR ===== */
.sidebar-header {
  padding: 28px 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebar-logo {
  font-size: 18px; font-weight: 800; letter-spacing: -0.5px;
  background: linear-gradient(90deg, #A8893B, #C8A96B, #E2C98E, #C8A96B, #A8893B);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sidebar-subtitle { font-size: 10px; color: var(--text-light); margin-top: 4px; letter-spacing: 1px; text-transform: uppercase; }

.sidebar-user {
  padding: 20px 24px; display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.user-avatar {
  width: 40px; height: 40px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; font-size: 16px;
  font-weight: 800; color: white; flex-shrink: 0;
}
.user-info .user-name { font-size: 13px; font-weight: 600; color: var(--white); }
.user-info .user-level { font-size: 10px; color: var(--gold); display: flex; align-items: center; gap: 4px; }
.user-points {
  margin-left: auto; background: rgba(200,169,107,0.15);
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700; color: var(--gold);
}

.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.nav-section { margin-bottom: 20px; }
.nav-section-title {
  font-size: 9px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--text-light);
  padding: 0 12px; margin-bottom: 8px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  text-decoration: none; color: rgba(255,255,255,0.55);
  font-size: 13px; font-weight: 500; transition: all 0.2s;
  cursor: pointer;
}
.nav-item:hover { background: rgba(255,255,255,0.05); color: var(--white); }
.nav-item.active { background: rgba(200,169,107,0.12); color: var(--gold); }
.nav-item .nav-icon { font-size: 16px; width: 24px; text-align: center; }
.nav-item .nav-badge {
  margin-left: auto; background: var(--teal); color: white;
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: var(--radius-pill); min-width: 22px; text-align: center;
}
.nav-item.locked { opacity: 0.35; pointer-events: none; }
.nav-item.locked .nav-icon::after { content: '🔒'; font-size: 10px; }

.sidebar-footer {
  padding: 16px 24px; border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 10px; color: var(--text-light);
}

/* ===== TOP BAR ===== */
.topbar {
  background: var(--white); border-bottom: 1px solid var(--smoke2);
  padding: 16px 32px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-breadcrumb { font-size: 12px; color: var(--text-light); }
.topbar-breadcrumb span { color: var(--petrol); font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-points {
  display: flex; align-items: center; gap: 6px;
  background: var(--smoke); padding: 6px 14px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600; color: var(--gold);
}

/* ===== CARDS ===== */
.card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid rgba(22,56,76,0.06); box-shadow: var(--shadow-sm);
  padding: 24px; transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-dark {
  background: var(--dark-card); border: 1px solid rgba(255,255,255,0.06);
  color: var(--white);
}

/* ===== DAY CARDS ===== */
.day-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid rgba(22,56,76,0.06); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: all 0.3s; cursor: pointer; text-decoration: none; color: inherit;
}
.day-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.day-card-top { height: 6px; }
.day-card-top.gold { background: var(--grad-gold); }
.day-card-top.teal { background: var(--grad-teal); }
.day-card-top.petrol { background: linear-gradient(90deg, var(--petrol), var(--petrol-light)); }
.day-card-body { padding: 24px; }
.day-card-number { font-size: 32px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.day-card-number.gold { color: var(--gold); }
.day-card-number.teal { color: var(--teal); }
.day-card-number.petrol { color: var(--petrol); }
.day-card-title { font-size: 15px; font-weight: 700; color: var(--petrol); margin-bottom: 6px; }
.day-card-desc { font-size: 12px; color: var(--text-mid); line-height: 1.5; }
.day-card-footer {
  padding: 14px 24px; background: var(--smoke); display: flex;
  align-items: center; justify-content: space-between;
  border-top: 1px solid var(--smoke2);
}
.day-card-date { font-size: 11px; color: var(--text-light); font-weight: 500; }
.day-card-progress { display: flex; align-items: center; gap: 8px; }
.progress-bar {
  width: 80px; height: 6px; background: var(--smoke2); border-radius: 3px; overflow: hidden;
}
.progress-fill { height: 100%; border-radius: 3px; transition: width 0.5s; }
.progress-fill.gold { background: var(--grad-gold); }
.progress-fill.teal { background: var(--teal); }
.progress-pct { font-size: 11px; font-weight: 700; }

/* ===== FICHA (WORKSHEET) ===== */
.ficha-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid rgba(22,56,76,0.06); box-shadow: var(--shadow-sm);
  overflow: hidden; margin-bottom: 16px;
}
.ficha-header {
  padding: 16px 20px; display: flex; align-items: center; gap: 14px;
  cursor: pointer; transition: background 0.2s;
}
.ficha-header:hover { background: var(--smoke); }
.ficha-badge {
  padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; flex-shrink: 0;
}
.ficha-badge.gold { background: rgba(200,169,107,0.12); color: var(--gold-dark); }
.ficha-badge.teal { background: rgba(47,167,160,0.1); color: var(--teal); }
.ficha-badge.petrol { background: rgba(22,56,76,0.07); color: var(--petrol); }
.ficha-title { font-size: 14px; font-weight: 600; color: var(--petrol); flex: 1; }
.ficha-status { font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.ficha-status.done { color: var(--teal); }
.ficha-status.pending { color: var(--text-light); }

.ficha-body { padding: 0 20px 20px; display: none; }
.ficha-body.open { display: block; }

.ficha-section-title {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; padding: 12px 0 8px;
  border-bottom: 2px solid var(--smoke2); margin-bottom: 12px;
}
.ficha-section-title.gold { color: var(--gold); border-color: var(--gold); }
.ficha-section-title.teal { color: var(--teal); border-color: var(--teal); }
.ficha-section-title.petrol { color: var(--petrol); border-color: var(--petrol); }

.ficha-field { margin-bottom: 14px; }
.ficha-label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--petrol); margin-bottom: 6px;
}
.ficha-input, .ficha-textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--smoke2);
  border-radius: var(--radius-sm); font-family: 'Poppins', sans-serif;
  font-size: 13px; color: var(--text-dark); background: var(--smoke);
  transition: border-color 0.2s, box-shadow 0.2s; resize: vertical;
}
.ficha-input:focus, .ficha-textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,169,107,0.12); background: var(--white);
}
.ficha-textarea { min-height: 80px; }

.ficha-actions {
  display: flex; gap: 10px; padding-top: 16px;
  border-top: 1px solid var(--smoke2); margin-top: 8px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Poppins', sans-serif; font-weight: 600;
  border: none; border-radius: var(--radius-pill); cursor: pointer;
  transition: all 0.2s; text-decoration: none; font-size: 13px;
  padding: 10px 22px;
}
.btn-gold {
  background: var(--grad-gold); color: var(--petrol);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 12px 36px rgba(200,169,107,0.4); }
.btn-petrol { background: var(--petrol); color: var(--white); }
.btn-petrol:hover { background: var(--petrol-mid); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-light); }
.btn-outline {
  background: transparent; color: var(--petrol);
  border: 1.5px solid var(--smoke2);
}
.btn-outline:hover { border-color: var(--petrol); }
.btn-sm { padding: 7px 16px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 14px; }

/* ===== GAME CARDS ===== */
.game-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid rgba(22,56,76,0.06); box-shadow: var(--shadow-sm);
  padding: 20px; display: flex; align-items: center; gap: 16px;
  transition: all 0.3s; cursor: pointer; text-decoration: none; color: inherit;
}
.game-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.game-icon {
  width: 48px; height: 48px; border-radius: 14px; display: flex;
  align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.game-icon.gold { background: rgba(200,169,107,0.12); }
.game-icon.teal { background: rgba(47,167,160,0.1); }
.game-icon.petrol { background: rgba(22,56,76,0.07); }
.game-info { flex: 1; }
.game-title { font-size: 14px; font-weight: 600; color: var(--petrol); }
.game-meta { font-size: 11px; color: var(--text-light); margin-top: 2px; }
.game-points {
  font-size: 13px; font-weight: 700; color: var(--gold);
  background: rgba(200,169,107,0.1); padding: 4px 12px;
  border-radius: var(--radius-pill);
}
.game-done .game-points { background: rgba(47,167,160,0.1); color: var(--teal); }

/* ===== QUIZ ===== */
.quiz-container { max-width: 700px; margin: 0 auto; }
.quiz-progress {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.quiz-progress-bar { flex: 1; height: 8px; background: var(--smoke2); border-radius: 4px; overflow: hidden; }
.quiz-progress-fill { height: 100%; background: var(--grad-gold); border-radius: 4px; transition: width 0.4s; }
.quiz-counter { font-size: 12px; font-weight: 600; color: var(--text-mid); white-space: nowrap; }

.quiz-question {
  font-size: 18px; font-weight: 700; color: var(--petrol);
  margin-bottom: 24px; line-height: 1.4;
}
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  padding: 14px 18px; border: 2px solid var(--smoke2);
  border-radius: var(--radius-sm); cursor: pointer;
  font-size: 14px; color: var(--text-dark); transition: all 0.2s;
  display: flex; align-items: center; gap: 12px;
}
.quiz-option:hover { border-color: var(--gold); background: rgba(200,169,107,0.04); }
.quiz-option.selected { border-color: var(--gold); background: rgba(200,169,107,0.08); }
.quiz-option.correct { border-color: var(--teal); background: rgba(47,167,160,0.08); color: var(--teal); }
.quiz-option.wrong { border-color: var(--red); background: rgba(220,80,80,0.06); color: var(--red); }
.quiz-option-letter {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--smoke); display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 12px; flex-shrink: 0;
}
.quiz-explanation {
  margin-top: 16px; padding: 14px; background: var(--smoke);
  border-radius: var(--radius-sm); border-left: 3px solid var(--teal);
  font-size: 13px; color: var(--text-mid);
}

.quiz-result {
  text-align: center; padding: 40px 20px;
}
.quiz-score {
  font-size: 64px; font-weight: 900; line-height: 1;
  background: var(--grad-gold); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.quiz-result-label { font-size: 14px; color: var(--text-mid); margin-top: 8px; }
.quiz-stars { font-size: 36px; margin: 16px 0; }
.quiz-points-earned {
  font-size: 18px; font-weight: 700; color: var(--gold);
  background: rgba(200,169,107,0.1); padding: 8px 24px;
  border-radius: var(--radius-pill); display: inline-block; margin-top: 12px;
}

/* ===== LEADERBOARD ===== */
.lb-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.lb-row:hover { background: var(--smoke); }
.lb-rank { font-size: 16px; font-weight: 800; width: 30px; text-align: center; }
.lb-rank.gold { color: var(--gold); }
.lb-rank.silver { color: var(--text-light); }
.lb-rank.bronze { color: #CD7F32; }
.lb-name { flex: 1; font-size: 14px; font-weight: 600; color: var(--petrol); }
.lb-points { font-size: 13px; font-weight: 700; color: var(--gold); }

/* ===== BADGES ===== */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.badge-item {
  text-align: center; padding: 20px 12px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--smoke2);
  transition: all 0.3s;
}
.badge-item.earned { border-color: var(--gold); box-shadow: var(--shadow-gold); }
.badge-item.locked { opacity: 0.4; filter: grayscale(1); }
.badge-icon { font-size: 32px; margin-bottom: 8px; }
.badge-name { font-size: 11px; font-weight: 700; color: var(--petrol); }
.badge-desc { font-size: 10px; color: var(--text-light); margin-top: 4px; }

/* ===== AUTH PAGES ===== */
.auth-wrapper {
  min-height: 100vh; display: flex; background: var(--dark-bg);
  position: relative; overflow: hidden;
}
.auth-wrapper::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 90% 10%, rgba(47,167,160,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 5% 90%, rgba(200,169,107,0.06) 0%, transparent 55%);
}
.auth-wrapper::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200,169,107,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,169,107,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}
.auth-left {
  flex: 1; display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.auth-card {
  width: 100%; max-width: 440px; background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px; padding: 40px; color: var(--white);
}
.auth-logo {
  font-size: 24px; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 4px;
  background: linear-gradient(90deg, #A8893B, #C8A96B, #E2C98E, #C8A96B, #A8893B);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.auth-subtitle { font-size: 11px; color: var(--text-light); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 32px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.5); letter-spacing: 1px; text-transform: uppercase; }
.auth-input {
  padding: 12px 16px; background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm);
  color: var(--white); font-family: 'Poppins', sans-serif; font-size: 14px;
  transition: border-color 0.2s;
}
.auth-input:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,0.08); }
.auth-input::placeholder { color: rgba(255,255,255,0.2); }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-error {
  background: rgba(220,80,80,0.1); border: 1px solid rgba(220,80,80,0.2);
  color: #ff6b6b; padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 12px; display: none;
}
.auth-error.show { display: block; }
.auth-link { color: var(--gold); text-decoration: none; font-size: 13px; font-weight: 500; }
.auth-link:hover { text-decoration: underline; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 12px; color: var(--text-light); }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  padding: 14px 22px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; color: var(--white);
  box-shadow: var(--shadow-lg); transform: translateY(100px);
  opacity: 0; transition: all 0.3s; display: flex; align-items: center; gap: 10px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--teal); }
.toast.error { background: var(--red); }
.toast.points { background: var(--gold); color: var(--petrol); }

/* ===== SECTION HEADERS ===== */
.section-header { margin-bottom: 24px; }
.section-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.section-eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--gold); }
.section-title { font-size: 28px; font-weight: 800; color: var(--petrol); letter-spacing: -0.5px; line-height: 1.1; }
.section-desc { font-size: 14px; color: var(--text-mid); margin-top: 8px; max-width: 500px; }

/* ===== GRIDS ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .content-area { padding: 20px 16px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .auth-card { margin: 20px; padding: 28px; }
  .topbar { padding: 12px 16px; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.animate-in { animation: fadeInUp 0.5s ease forwards; }
.animate-d1 { animation-delay: 0.05s; opacity: 0; }
.animate-d2 { animation-delay: 0.1s; opacity: 0; }
.animate-d3 { animation-delay: 0.15s; opacity: 0; }
.animate-d4 { animation-delay: 0.2s; opacity: 0; }
.animate-d5 { animation-delay: 0.25s; opacity: 0; }

/* ===== UTILITIES ===== */
.text-gold { color: var(--gold); }
.text-teal { color: var(--teal); }
.text-petrol { color: var(--petrol); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.gap-2 { gap: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }

/* Fix auth form overflow */
.auth-card { max-width: 480px; width: calc(100% - 40px); }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-input, .auth-field select { width: 100%; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) {
    .auth-row { grid-template-columns: 1fr; }
    .auth-card { padding: 28px 20px; }
}

/* Fix select overflow */
.auth-form select.auth-input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238FA5B5' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.auth-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    overflow: hidden !important;
}
.auth-field {
    min-width: 0 !important;
    overflow: hidden !important;
}
