@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #060a14;
  --bg-panel: rgba(10, 14, 26, 0.95);
  --bg-panel-hover: rgba(15, 20, 35, 0.95);
  --accent-cyan: #22d3ee;
  --accent-blue: #3b82f6;
  --accent-violet: #8b5cf6;
  --gradient-main: linear-gradient(135deg, #22d3ee, #3b82f6, #8b5cf6);
  --gradient-text: linear-gradient(135deg, #22d3ee, #8b5cf6);
  --color-for: #ef4444;
  --color-vit: #22c55e;
  --color-int: #3b82f6;
  --color-per: #f59e0b;
  --color-agi: #8b5cf6;
  --rank-e: #6b7280;
  --rank-d: #22c55e;
  --rank-c: #3b82f6;
  --rank-b: #8b5cf6;
  --rank-a: #f59e0b;
  --rank-s: var(--gradient-main);
  --text-primary: #ffffff;
  --text-secondary: #c8d6e5;
  --text-muted: rgba(255, 255, 255, 0.5);
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --border-subtle: rgba(34, 211, 238, 0.15);
  --border-active: rgba(34, 211, 238, 0.4);
  --glow-cyan: 0 0 20px rgba(34, 211, 238, 0.3);
  --glow-violet: 0 0 20px rgba(139, 92, 246, 0.3);
  --clip-panel: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  --clip-btn: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

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

body {
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: filter 0.2s;
}

a:hover {
  filter: brightness(1.3);
}

img {
  max-width: 100%;
  display: block;
}

input, button, textarea, select {
  font: inherit;
}

ul, ol {
  list-style: none;
}

::selection {
  background: var(--accent-cyan);
  color: var(--bg-primary);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: rgba(34, 211, 238, 0.3);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(34, 211, 238, 0.5);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

code, pre, kbd, .mono {
  font-family: 'JetBrains Mono', monospace;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.main-content {
  padding-top: 72px;
  min-height: calc(100vh - 72px);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  height: 64px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: cover;
}

.wordmark {
  font-family: 'Sora', sans-serif;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.wordmark strong {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-main {
  display: flex;
  gap: 24px;
}

.nav-main a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-main a:hover {
  color: var(--accent-cyan);
  filter: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  display: block;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
}

.user-name {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.avatar-mini {
  width: 32px;
  height: 32px;
  clip-path: circle(50%);
  object-fit: cover;
}

.avatar-initial {
  width: 32px;
  height: 32px;
  background: var(--accent-violet);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  clip-path: circle(50%);
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  min-width: 180px;
  clip-path: var(--clip-panel);
  z-index: 100;
}

.dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: background 0.2s, color 0.2s;
}

.dropdown a:hover {
  background: var(--bg-panel);
  color: var(--text-primary);
  filter: none;
}

.dropdown.active {
  display: block;
}

.dropdown-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.dropdown-btn:hover {
  color: var(--accent-cyan);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.75rem;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  color: var(--text-primary);
}

.rank-e { background: #6b7280; }
.rank-d { background: #22c55e; }
.rank-c { background: #3b82f6; }
.rank-b { background: #8b5cf6; }
.rank-a { background: #f59e0b; }
.rank-s { background: var(--gradient-main); }

.rank-badge--lg {
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
}

.rank-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rank-arrow {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.flash-container {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 500px;
  width: 90%;
}

.flash {
  padding: 12px 20px;
  clip-path: var(--clip-btn);
  color: var(--text-primary);
  font-size: 0.9rem;
  animation: fadeIn 0.3s;
}

.flash--success {
  background: rgba(34, 197, 94, 0.9);
}

.flash--error {
  background: rgba(239, 68, 68, 0.9);
}

.flash--info {
  background: rgba(59, 130, 246, 0.9);
}

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 24px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 280px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links h4 {
  color: var(--text-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-cyan);
  filter: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  margin-top: 32px;
  padding-top: 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.cookie-consent {
  position: fixed;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  transition: bottom 0.5s ease;
  max-width: 480px;
  width: 90%;
}

.cookie-consent.active {
  bottom: 24px;
}

.cookie-consent-inner {
  padding: 24px;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.cookie-settings-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.cookie-settings-btn:hover {
  color: var(--accent-cyan);
}

.panel {
  background: var(--bg-panel);
  clip-path: var(--clip-panel);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  transition: border-color 0.3s;
}

.panel::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.03), transparent);
  animation: scanline 8s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.panel:hover {
  border-color: var(--border-active);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.panel-header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--gradient-main);
}

.panel-title {
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-cyan);
}

.panel-link {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.panel-link:hover {
  color: var(--accent-cyan);
  filter: none;
}

.panel-body {
  padding: 20px;
}

.panel-body--inline {
  display: flex;
  align-items: center;
  gap: 16px;
}

.panel-accent {
  position: absolute;
  width: 20px;
  height: 20px;
}

.panel-accent--tl {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--accent-cyan);
  border-left: 2px solid var(--accent-cyan);
}

.panel-accent--br {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--accent-violet);
  border-right: 2px solid var(--accent-violet);
}

.panel--hero,
.panel--workout,
.panel--nutrition,
.panel--fasting,
.panel--supplements,
.panel--evolution,
.panel--quest,
.panel--chart,
.panel--config,
.panel--danger-zone,
.panel--form,
.panel--history,
.panel--stats,
.panel--streak,
.panel--metabolism,
.panel--table,
.panel--weight-chart,
.panel--meals-today,
.panel--supplements-today,
.panel--nutrition-summary,
.panel--fasting-main,
.panel--filters {
  /* semantic identifiers — inherit from .panel */
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: var(--gradient-main);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  clip-path: var(--clip-btn);
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  filter: brightness(1.2);
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: transparent;
  border: 1px solid var(--border-active);
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  clip-path: var(--clip-btn);
  transition: all 0.2s;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(34, 211, 238, 0.1);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: #ef4444;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  clip-path: var(--clip-btn);
  transition: all 0.2s;
  text-decoration: none;
}

.btn-danger:hover {
  filter: brightness(1.2);
}

.btn-ghost {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 8px 16px;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-ghost:hover {
  color: var(--accent-cyan);
}

.btn-sm {
  padding: 6px 16px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.btn-icon {
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group--action {
  margin-top: 24px;
}

.form-group--avatar {
  display: flex;
  align-items: center;
  gap: 20px;
}

.form-group--highlight {
  border-left: 3px solid var(--accent-violet);
  padding-left: 16px;
  background: rgba(139, 92, 246, 0.05);
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-label--lg {
  font-size: 1rem;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  background: #0d1117;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  clip-path: var(--clip-btn);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.15);
}

.form-input--sm {
  padding: 6px 10px;
  font-size: 0.8rem;
}

.form-input--xl {
  padding: 16px;
  font-size: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
}

.form-select {
  width: 100%;
  padding: 10px 14px;
  background: #0d1117;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  clip-path: var(--clip-btn);
  transition: border-color 0.2s, box-shadow 0.2s;
  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='%23c8d6e5' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.15);
}

.form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: #0d1117;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  clip-path: var(--clip-btn);
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 80px;
  resize: vertical;
}

.form-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.15);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-check input[type="checkbox"] {
  accent-color: var(--accent-cyan);
}

.form-row {
  display: grid;
  gap: 16px;
}

.form-row--3col {
  grid-template-columns: repeat(3, 1fr);
}

.form-row--4col {
  grid-template-columns: repeat(4, 1fr);
}

.form-static {
  padding: 10px 14px;
  color: var(--text-muted);
  background: transparent;
}

.form-error {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 4px;
}

.consent-group {
  margin-top: 12px;
}

.consent-health {
  border-left: 3px solid var(--accent-violet);
  padding-left: 16px;
  background: rgba(139, 92, 246, 0.05);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.85rem;
}

.input-group {
  display: flex;
  gap: 8px;
  align-items: end;
}

.input-group--sm {
  gap: 4px;
}

.input-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.training-day-toggle {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
}

.preset-name-group {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-subtle);
}

.auth-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 140px);
  padding: 40px 20px;
}

.auth-panel {
  width: 100%;
  max-width: 420px;
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-header h1 {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--accent-cyan);
}

.auth-success {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  clip-path: var(--clip-btn);
}

.progress-bar--sm {
  height: 5px;
}

.progress-bar--lg {
  height: 14px;
}

.progress-bar-fill {
  height: 100%;
  transition: width 0.5s ease;
}

.gradient-cyan-violet {
  background: var(--gradient-main);
}

.bg-cyan {
  background: var(--accent-cyan);
}

.bg-violet {
  background: var(--accent-violet);
}

.bg-gold {
  background: var(--color-per);
}

.bg-red {
  background: var(--color-for);
}

.progress-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-cyan {
  box-shadow: var(--glow-cyan);
}

.glow-violet {
  box-shadow: var(--glow-violet);
}

.glow-gold {
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.link-subtle {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.link-subtle:hover {
  color: var(--accent-cyan);
  filter: none;
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.table-responsive {
  overflow-x: auto;
}

.table-data {
  width: 100%;
  border-collapse: collapse;
}

.table-data th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.table-data td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.table-mini {
  font-size: 0.8rem;
}

.table-mini th,
.table-mini td {
  padding: 6px 10px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal--photo {
  max-width: 90vw;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-title--danger {
  color: #ef4444;
}

.modal-warning {
  color: #ef4444;
  font-size: 0.85rem;
}

.modal-photo-img {
  width: 100%;
  height: auto;
}

.modal-photo-info {
  padding: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.page-header {
  margin-bottom: 24px;
}

.page-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  color: var(--text-primary);
  font-weight: 700;
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  clip-path: var(--clip-btn);
  color: var(--text-primary);
  font-size: 0.85rem;
  animation: slideInRight 0.3s;
  min-width: 280px;
}

.toast--success {
  background: rgba(34, 197, 94, 0.95);
}

.toast--error {
  background: rgba(239, 68, 68, 0.95);
}

.toast--achievement {
  background: rgba(245, 158, 11, 0.95);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
}

.error-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 200px);
}

.error-panel {
  text-align: center;
  max-width: 500px;
}

.error-code {
  font-family: 'Sora', sans-serif;
  font-size: 5rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-actions {
  margin-top: 24px;
}

@keyframes scanline {
  0% { top: -50%; }
  100% { top: 150%; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
  }

  .nav-main {
    display: none;
  }

  .nav-main.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    padding: 16px;
  }

  .hamburger {
    display: flex;
  }

  .user-name {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-row--3col,
  .form-row--4col {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
