/* HAON Mobile-First Design System */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  background: #0a1929;
  color: #e6edf3;
  overflow-x: hidden;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; font-size: inherit; }

/* === Auth Screen (login) === */
.auth-screen {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
}
.auth-card {
  width: 100%; max-width: 400px;
  background: #112a3f;
  border: 1px solid #1f3a5a;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.brand { text-align: center; margin-bottom: 32px; }
.brand-logo {
  font-size: 36px; font-weight: 800; letter-spacing: 4px;
  color: #f5d544; margin-bottom: 8px;
}
.brand-tagline { font-size: 12px; color: #9aa6b3; font-style: italic; }
.auth-title { font-size: 22px; margin-bottom: 24px; color: #e6edf3; text-align: center; }
.field { display: block; margin-bottom: 16px; }
.field-label {
  display: block; font-size: 13px; color: #9aa6b3;
  margin-bottom: 6px; font-weight: 500;
}
.field input {
  width: 100%; padding: 14px 16px;
  background: #0a1929;
  border: 1px solid #1f3a5a;
  border-radius: 10px;
  color: #e6edf3; font-size: 16px;
  transition: border-color 0.15s;
}
.field input:focus { outline: none; border-color: #f5d544; }
.btn {
  width: 100%; padding: 16px;
  border-radius: 10px;
  font-size: 16px; font-weight: 700; letter-spacing: 1px;
  transition: all 0.15s;
}
.btn-primary { background: #f5d544; color: #0a1929; }
.btn-primary:hover:not(:disabled) { background: #ffe16e; }
.btn-primary:active:not(:disabled) { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.error-msg {
  padding: 12px;
  background: rgba(255,107,107,0.1);
  border: 1px solid rgba(255,107,107,0.3);
  border-radius: 8px;
  color: #ff6b6b; font-size: 14px;
  margin-bottom: 16px;
}
.auth-footer { text-align: center; font-size: 11px; color: #6c7a8c; margin-top: 24px; }

/* === App Shell (home + siguientes) === */
.app-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: #112a3f;
  border-bottom: 1px solid #1f3a5a;
}
.brand-mini { font-size: 18px; font-weight: 800; letter-spacing: 2px; color: #f5d544; }
.brand-mini-suffix { color: #e6edf3; font-weight: 600; }
.user-menu { display: flex; align-items: center; gap: 12px; }
.user-name {
  font-size: 13px; color: #9aa6b3;
  max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.btn-secondary {
  padding: 8px 14px; border-radius: 8px;
  background: #0a1929; border: 1px solid #1f3a5a;
  color: #e6edf3; font-size: 12px; font-weight: 600;
  letter-spacing: 1px;
}
.btn-secondary:hover { background: #1f3a5a; }
.app-main { padding: 24px 16px 80px; max-width: 600px; margin: 0 auto; }
.page-title { font-size: 20px; margin-bottom: 24px; color: #e6edf3; }
.action-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 480px) { .action-grid { grid-template-columns: 1fr 1fr; } }
.action-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 24px 16px;
  background: #112a3f;
  border: 1px solid #1f3a5a;
  border-radius: 12px;
  color: #e6edf3; font-size: 15px; text-align: center;
  transition: all 0.15s;
}
.action-card:not(:disabled):hover { border-color: #f5d544; background: #1a3654; }
.action-card:not(:disabled):active { transform: scale(0.98); }
.action-card:disabled { opacity: 0.6; cursor: not-allowed; }
.action-icon { font-size: 36px; }
.action-label { font-weight: 600; }
.action-status { font-size: 11px; color: #9aa6b3; }
.app-footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  padding: 12px; text-align: center;
  font-size: 11px; color: #6c7a8c;
  background: rgba(10,25,41,0.9);
  border-top: 1px solid #1f3a5a;
}
