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

:root {
  --gold: #C5A572;
  --gold-light: #D4BA8A;
  --gold-dark: #A88B5A;
  --bg-primary: #0A0A0A;
  --bg-secondary: #111111;
  --bg-card: #1A1A1A;
  --bg-card-hover: #222222;
  --bg-input: #1A1A1A;
  --border: #2A2A2A;
  --border-focus: #C5A572;
  --text-primary: #F5F5F5;
  --text-secondary: #A0A0A0;
  --text-muted: #666666;
  --red: #E74C3C;
  --green: #27AE60;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

/* ============ STEPS ============ */
.step { display: none; min-height: 100vh; }
.step.active { display: block; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 36px; height: 36px; }
.logo-text { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--text-primary); letter-spacing: 0.02em; }
.nav-step { font-size: 13px; color: var(--text-secondary); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(170deg, #0A0A0A 0%, #1A1510 40%, #0D0B08 100%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(197,165,114,0.06) 0%, transparent 70%),
              radial-gradient(ellipse at 70% 30%, rgba(197,165,114,0.04) 0%, transparent 60%);
}
.hero-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="g" patternUnits="userSpaceOnUse" width="20" height="20"><circle cx="10" cy="10" r="0.5" fill="rgba(197,165,114,0.08)"/></pattern></defs><rect fill="url(%23g)" width="100" height="100"/></svg>');
}
.hero-content {
  position: relative; z-index: 1; text-align: center;
  max-width: 800px; padding: 120px 24px 80px;
}
.hero-tag {
  font-size: 13px; font-weight: 600; letter-spacing: 0.2em; color: var(--gold);
  margin-bottom: 24px; text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(32px, 5vw, 56px);
  font-weight: 700; line-height: 1.15; margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px); color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 40px; max-width: 640px; margin-left: auto; margin-right: auto;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border: none; border-radius: 6px;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  letter-spacing: 0.04em; cursor: pointer; transition: all 0.2s;
  text-transform: uppercase;
}
.btn-gold {
  background: var(--gold); color: #0A0A0A;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-gold-outline {
  background: transparent; color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-gold-outline:hover { background: rgba(197,165,114,0.1); }
.btn-ghost {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--text-secondary); color: var(--text-primary); }
.btn-red { background: var(--red); color: white; }
.btn-red:hover { background: #c0392b; }
.btn-lg { padding: 16px 40px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============ SECTIONS ============ */
.section { padding: 100px 0; }
.section-dark { background: var(--bg-secondary); }
.section-title {
  font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600; text-align: center; margin-bottom: 16px;
  color: var(--text-primary);
}
.section-subtitle {
  text-align: center; color: var(--text-secondary); font-size: 17px;
  max-width: 640px; margin: 0 auto 56px; line-height: 1.7;
}

/* ============ CARDS GRID ============ */
.grid-4 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.grid-2 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px; transition: all 0.3s;
}
.card:hover { border-color: rgba(197,165,114,0.3); transform: translateY(-2px); }
.card-icon {
  width: 48px; height: 48px; margin-bottom: 20px; color: var(--gold);
}
.card-icon svg { width: 100%; height: 100%; }
.card h3 {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  margin-bottom: 12px; color: var(--text-primary);
}
.card p { color: var(--text-secondary); font-size: 15px; line-height: 1.7; }

/* ============ ROLE SECTION ============ */
.role-block {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 36px;
}
.role-block h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  margin-bottom: 20px; color: var(--gold);
}
.role-list { list-style: none; }
.role-list li {
  position: relative; padding-left: 24px; margin-bottom: 14px;
  color: var(--text-secondary); font-size: 15px; line-height: 1.6;
}
.role-list li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); opacity: 0.7;
}

/* ============ PRODUCT BLOCK ============ */
.product-block {
  max-width: 720px; margin: 0 auto; text-align: center;
  font-size: 17px; color: var(--text-secondary); line-height: 1.8;
}

/* ============ DISQUALIFIERS ============ */
.disqualifiers { max-width: 640px; margin: 0 auto; }
.dq-item {
  padding: 16px 24px; border-left: 3px solid var(--red);
  background: rgba(231,76,60,0.05); margin-bottom: 12px;
  color: var(--text-secondary); font-size: 15px; border-radius: 0 8px 8px 0;
}
.cta-text {
  font-family: var(--font-display); font-size: 22px; color: var(--gold);
  margin-bottom: 24px;
}

/* ============ FOOTER ============ */
.footer {
  padding: 32px 0; text-align: center; border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: 13px;
}

/* ============ FORM ============ */
.form-section {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 100px 24px 60px;
}
.form-container {
  width: 100%; max-width: 560px; margin: 0 auto;
}
.form-title {
  font-family: var(--font-display); font-size: 32px; font-weight: 600;
  text-align: center; margin-bottom: 8px;
}
.form-subtitle {
  text-align: center; color: var(--text-secondary); font-size: 15px;
  margin-bottom: 32px;
}

.progress-bar {
  height: 3px; background: var(--border); border-radius: 3px;
  margin-bottom: 48px; overflow: hidden;
}
.progress-fill {
  height: 100%; background: var(--gold); border-radius: 3px;
  transition: width 0.4s ease;
}

.form-step { display: none; animation: fadeIn 0.3s ease; }
.form-step.active { display: block; }

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

.form-label {
  display: block; font-size: 16px; font-weight: 500; margin-bottom: 12px;
  color: var(--text-primary);
}
.form-hint { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.required { color: var(--gold); }
.optional { color: var(--text-muted); font-weight: 400; font-size: 13px; }

.form-input {
  width: 100%; padding: 14px 16px; background: var(--bg-input);
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text-primary); font-family: var(--font-body); font-size: 15px;
  transition: border-color 0.2s;
}
.form-input:focus { outline: none; border-color: var(--border-focus); }
.form-input::placeholder { color: var(--text-muted); }

.form-select {
  appearance: none;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path d="M1 1l5 5 5-5" stroke="%23A0A0A0" stroke-width="1.5" fill="none"/></svg>');
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-select option { background: var(--bg-card); color: var(--text-primary); }

.form-textarea { resize: vertical; min-height: 140px; }

.form-row { display: flex; gap: 12px; }
.form-row .form-input { flex: 1; }

.form-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 32px;
}

.radio-group { display: flex; gap: 16px; }
.radio-option {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 14px 24px; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 8px; flex: 1; transition: all 0.2s;
}
.radio-option:has(input:checked) { border-color: var(--gold); background: rgba(197,165,114,0.05); }
.radio-option input { display: none; }
.radio-label { font-size: 15px; font-weight: 500; }

.warning-box {
  margin-top: 16px; padding: 16px 20px; background: rgba(231,76,60,0.08);
  border: 1px solid rgba(231,76,60,0.2); border-radius: 8px;
  color: var(--text-secondary); font-size: 14px; line-height: 1.6;
}

.word-count {
  margin-top: 8px; font-size: 13px; color: var(--text-muted); text-align: right;
}
.word-count.met { color: var(--green); }
.word-count.short { color: var(--red); }

.error-text { color: var(--red); font-size: 13px; margin-top: 12px; }

/* ============ VOICE RECORDER ============ */
.voice-container { max-width: 640px; }
.voice-prompt {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px; margin-bottom: 36px;
}
.prompt-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
  color: var(--gold); margin-bottom: 12px; text-transform: uppercase;
}
.voice-prompt p { color: var(--text-secondary); font-size: 16px; line-height: 1.7; }

.voice-recorder {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 48px 32px; text-align: center;
}
.recorder-state { animation: fadeIn 0.3s ease; }

.rec-icon-wrap { margin-bottom: 24px; }
.rec-mic-icon { width: 64px; height: 64px; color: var(--gold); }
.rec-instruction { color: var(--text-secondary); font-size: 16px; margin-bottom: 24px; }

.rec-pulse {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--red); margin: 0 auto 24px;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

.rec-timer {
  font-family: var(--font-body); font-size: 48px; font-weight: 300;
  color: var(--text-primary); margin-bottom: 8px; font-variant-numeric: tabular-nums;
}
.rec-target { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }

.rec-bar-container {
  width: 100%; height: 4px; background: var(--border);
  border-radius: 4px; margin-bottom: 32px; overflow: hidden;
}
.rec-bar {
  height: 100%; background: var(--gold); border-radius: 4px;
  transition: width 1s linear;
}

.rec-audio {
  width: 100%; margin-bottom: 16px; border-radius: 8px;
  filter: invert(0.85) hue-rotate(180deg);
}
.rec-duration { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }
.rec-actions { display: flex; gap: 16px; justify-content: center; }

.spinner {
  width: 40px; height: 40px; border: 3px solid var(--border);
  border-top-color: var(--gold); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 0 auto 24px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ THANK YOU ============ */
.thankyou-section {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 100px 24px;
}
.thankyou-content { text-align: center; max-width: 560px; }
.thankyou-icon { margin-bottom: 32px; }
.thankyou-icon svg { width: 80px; height: 80px; }
.thankyou-title {
  font-family: var(--font-display); font-size: 36px; font-weight: 600;
  margin-bottom: 20px; color: var(--text-primary);
}
.thankyou-text {
  color: var(--text-secondary); font-size: 17px; line-height: 1.7;
  margin-bottom: 16px;
}
.thankyou-details { margin-top: 40px; color: var(--text-muted); font-size: 15px; }

/* ============ ADMIN ============ */
.admin-login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 100px 24px;
}
.admin-section { padding: 100px 0 60px; }

.admin-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px; margin-bottom: 32px;
}
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px; text-align: center;
}
.stat-value {
  font-size: 32px; font-weight: 700; color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.08em; }

.admin-filters {
  display: flex; gap: 12px; margin-bottom: 24px; align-items: center;
}

.admin-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }
.admin-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.admin-table th {
  background: var(--bg-card); padding: 14px 12px; text-align: left;
  font-weight: 600; color: var(--text-secondary); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.admin-table td {
  padding: 12px; border-bottom: 1px solid var(--border);
  color: var(--text-primary); vertical-align: middle;
}
.admin-table tr:hover td { background: rgba(197,165,114,0.03); }
.admin-table tr:last-child td { border-bottom: none; }

.status-badge {
  display: inline-block; padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
.status-New { background: rgba(52,152,219,0.15); color: #3498db; }
.status-Reviewed { background: rgba(241,196,15,0.15); color: #f1c40f; }
.status-Interview { background: rgba(197,165,114,0.2); color: var(--gold); }
.status-Rejected { background: rgba(231,76,60,0.15); color: var(--red); }
.status-Hired { background: rgba(39,174,96,0.15); color: var(--green); }

.admin-actions { display: flex; gap: 6px; }
.admin-actions .btn { padding: 6px 10px; font-size: 11px; }

/* ============ MODAL ============ */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8); z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-content {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 16px; padding: 36px; max-width: 700px; width: 100%;
  max-height: 85vh; overflow-y: auto; position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 20px; background: none;
  border: none; color: var(--text-muted); font-size: 28px; cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--text-primary); }

.detail-row { margin-bottom: 20px; }
.detail-label {
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px;
}
.detail-value { font-size: 15px; color: var(--text-primary); line-height: 1.6; }
.detail-value.long { white-space: pre-wrap; }

.detail-status-select {
  padding: 8px 12px; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text-primary); font-size: 14px;
}
.detail-notes {
  width: 100%; padding: 12px; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text-primary); font-family: var(--font-body);
  font-size: 14px; resize: vertical; min-height: 80px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .hero-content { padding: 100px 20px 60px; }
  .form-row { flex-direction: column; }
  .section { padding: 60px 0; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .radio-group { flex-direction: column; }
  .rec-actions { flex-direction: column; }
  .admin-table { font-size: 12px; }
  .admin-table th, .admin-table td { padding: 8px 6px; }
}
