/* ===== SheshShow — design tokens ===== */
:root {
  --bg: #0a0a0c;
  --bg-elevated: #131316;
  --surface: #17171b;
  --surface-2: #1e1e23;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --text-dim: #a1a1aa;
  --text-faint: #6b6b74;
  --accent: #f0b429;
  --accent-hover: #ffc94d;
  --accent-dim: rgba(240, 180, 41, 0.14);
  --error: #f87171;
  --error-bg: rgba(248, 113, 113, 0.1);
  --success: #4ade80;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ===== Auth screens (login/signup/otp) ===== */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(240, 180, 41, 0.14) 0%, transparent 60%),
    radial-gradient(50% 40% at 100% 100%, rgba(240, 180, 41, 0.08) 0%, transparent 60%),
    var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: rgba(23, 23, 27, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.brand {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  text-align: center;
  color: var(--text);
}
.brand .dot { color: var(--accent); }

.auth-card h1 {
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.auth-card .subtitle {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0 0 26px;
  line-height: 1.5;
}

label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  margin: 18px 0 7px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
label:first-of-type { margin-top: 0; }

input[type="email"],
input[type="password"],
input[type="text"],
input[type="datetime-local"],
select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14.5px;
  font-family: var(--font);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder { color: var(--text-faint); }
input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

button {
  font-family: var(--font);
  cursor: pointer;
}

.btn-primary {
  width: 100%;
  margin-top: 26px;
  padding: 13px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #12100a;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-primary:active:not(:disabled) { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-secondary:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-dim); }
.btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-danger {
  background: transparent;
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: var(--error);
}
.btn-danger:hover:not(:disabled) { background: var(--error-bg); }

.error-box {
  margin-top: 18px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--error-bg);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: var(--error);
  font-size: 13px;
  line-height: 1.5;
  display: none;
}

.hint {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--text-dim);
  text-align: center;
}
.hint a { color: var(--accent); font-weight: 600; text-decoration: none; }
.hint a:hover { text-decoration: underline; }

.otp-input {
  letter-spacing: 10px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  padding: 14px;
}

.otp-actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

/* ===== App shell (post-login) ===== */
.app-shell { min-height: 100vh; background: var(--bg); }

.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: linear-gradient(to bottom, rgba(10,10,12,0.95), rgba(10,10,12,0.7));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar .brand { margin: 0; text-align: left; font-size: 19px; }

.navbar-right { display: flex; align-items: center; gap: 18px; }
.navbar-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s ease;
}
.navbar-link:hover, .navbar-link.active { color: var(--text); }

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #d97706);
  color: #12100a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

.page-content {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

.hero {
  border-radius: 20px;
  padding: 44px 40px;
  background:
    radial-gradient(80% 120% at 15% 0%, rgba(240, 180, 41, 0.18) 0%, transparent 55%),
    linear-gradient(135deg, #1b1b20, #121215);
  border: 1px solid var(--border);
  margin-bottom: 32px;
}
.hero .eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}
.hero h1 { font-size: 30px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.02em; }
.hero p { color: var(--text-dim); font-size: 15px; margin: 0; max-width: 480px; line-height: 1.6; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
  display: block;
}
.tile:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-2px); }
.tile .tile-icon { font-size: 22px; margin-bottom: 12px; opacity: 0.9; }
.tile h3 { font-size: 15.5px; font-weight: 700; margin: 0 0 6px; }
.tile p { font-size: 13px; color: var(--text-dim); margin: 0; line-height: 1.5; }

/* ===== Profile page ===== */
.section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 36px 0 14px;
}
.section-title:first-of-type { margin-top: 0; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
}
.profile-header .avatar { width: 64px; height: 64px; font-size: 24px; }
.profile-header h2 { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.profile-header .email-line { color: var(--text-dim); font-size: 14px; }

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.field-row:last-child { border-bottom: none; }
.field-row .field-label { font-size: 14px; font-weight: 600; }
.field-row .field-value { font-size: 13.5px; color: var(--text-dim); margin-top: 2px; }

.toggle-switch {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: var(--border-strong);
  position: relative;
  cursor: pointer;
  border: none;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.toggle-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}
.toggle-switch.on { background: var(--accent); }
.toggle-switch.on::after { transform: translateX(18px); }

.inline-edit { display: flex; gap: 8px; align-items: center; }
.inline-edit input { flex: 1; }

.status-pill {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(74, 222, 128, 0.12);
  color: var(--success);
}

.otp-inline {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  display: none;
}
.otp-inline.open { display: block; }
.otp-inline .inline-edit input { max-width: 160px; }
