:root {
  --bg: #0e0e0f;
  --surface: #16171a;
  --surface2: #1e1f24;
  --surface3: #26272e;
  --gold: #c9a84c;
  --gold-light: #e2c47a;
  --gold-dim: #6b5420;
  --text: #f0ede6;
  --text-muted: #8a8780;
  --text-dim: #4a4845;
  --green: #4caf7d;
  --red: #e05c5c;
  --blue: #5c9ee0;
  --border: #2a2b31;
  --radius: 12px;
  --radius-lg: 20px;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(201,168,76,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(201,168,76,0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(14,14,15,0.95);
  backdrop-filter: blur(10px);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
}

.logo span { color: var(--text); }

nav { display: flex; align-items: center; gap: 12px; }

.nav-user { font-size: 0.9rem; color: var(--text-muted); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary { background: var(--gold); color: #000; }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,168,76,0.3); }
.btn-secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--surface3); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); }
.btn-danger { background: rgba(224,92,92,0.15); color: var(--red); border: 1px solid rgba(224,92,92,0.3); }
.btn-danger:hover { background: rgba(224,92,92,0.25); }
.btn-sm { padding: 7px 14px; font-size: 0.82rem; }

/* DASHBOARD */
.dashboard-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 50px 24px;
  position: relative;
  z-index: 1;
}

.dashboard-header { margin-bottom: 36px; }
.dashboard-header h1 { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 900; margin-bottom: 6px; }
.dashboard-header p { color: var(--text-muted); font-size: 1rem; }

.resume-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}

.resume-card:hover { border-color: var(--gold-dim); }
.resume-title { font-weight: 600; font-size: 1rem; margin-bottom: 4px; }
.resume-meta { font-size: 0.82rem; color: var(--text-muted); }
.resume-card-actions { display: flex; gap: 8px; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.3rem; color: var(--text); margin-bottom: 8px; }
.empty-state p { margin-bottom: 24px; }

/* AUTH FORMS */
.auth-container {
  max-width: 420px;
  margin: 80px auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.auth-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.auth-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 28px; }

.field { margin-bottom: 16px; }
label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
input, textarea, select { width: 100%; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; color: var(--text); font-family: 
'DM Sans', sans-serif; font-size: 0.95rem; transition: border-color 0.2s, box-shadow 0.2s; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--gold-dim); box-shadow: 0 0 0 3px rgba(201,168,76,0.1); }
textarea { resize: vertical; line-height: 1.6; }
select option { background: var(--surface2); }

.error-msg { background: rgba(224,92,92,0.1); border: 1px solid rgba(224,92,92,0.3); border-radius: 8px; padding: 10px 14px; color: var(--red); font-size: 0.87rem; 
margin-bottom: 16px; display: none; }
.auth-link { text-align: center; margin-top: 20px; font-size: 0.87rem; color: var(--text-muted); }
.auth-link a { color: var(--gold); text-decoration: none; }

@media(max-width:600px) {
  header { padding: 16px 20px; }
  .resume-card { flex-direction: column; align-items: flex-start; gap: 12px; }
}
