/* ===== Singer Admin v0.1 — minimal, fast, brand-consistent with Consumer Safari ===== */

:root {
  --accent: #6D28D9;
  --accent-deep: #5b21b6;
  --accent-soft: #ede9fe;
  --ink: #1a1a2e;
  --ink-soft: #4a4a4a;
  --ink-muted: #777;
  --paper: #fafaf9;
  --line: #e8e8e8;
  --red: #c0392b;
  --green: #15803d;
}

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

html, body {
  font-family: 'Inter', -apple-system, "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); text-decoration: underline; }

button {
  font-family: inherit;
  cursor: pointer;
}

/* ===== Auth view ===== */
.auth-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2.25rem 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.auth-logo { margin-bottom: 1.75rem; }
.auth-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.auth-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.auth-sub {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}
input[type="email"] {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  transition: border-color 0.15s;
}
input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.btn-primary {
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--accent-deep); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-secondary {
  margin-top: 1rem;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: all 0.15s;
}
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

.btn-link {
  background: none;
  border: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-muted);
}
.btn-link:hover { color: var(--accent-deep); text-decoration: underline; }

.auth-message {
  padding: 1rem;
  background: var(--accent-soft);
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.auth-message strong { color: var(--ink); }
.auth-message p + p { margin-top: 0.6rem; }
.auth-blocked {
  background: #fee2e2;
  color: #7f1d1d;
}
.auth-blocked strong { color: #7f1d1d; }
.auth-error {
  background: #fef3c7;
  color: #78350f;
}

/* ===== Dashboard ===== */
.dashboard { min-height: 100vh; display: flex; flex-direction: column; }

.top-bar {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.top-bar-lockup { display: flex; flex-direction: column; gap: 0.1rem; }
.brand-kicker {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.brand-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.signed-in {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.main-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
  flex: 1;
}

.section { margin-bottom: 3rem; }
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.section-sub {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

/* Property grid */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.property-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.property-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.06);
}
.property-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.property-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}
.property-status {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
}
.property-status.ok { background: #dcfce7; color: var(--green); }
.property-status.err { background: #fee2e2; color: var(--red); }
.property-status.pending { background: var(--accent-soft); color: var(--accent-deep); }

.property-domain {
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-family: 'SF Mono', Menlo, monospace;
  margin-bottom: 0.6rem;
}
.property-desc {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  line-height: 1.45;
}
.property-links {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}
.property-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}
.property-link:hover { text-decoration: underline; color: var(--accent-deep); }

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.stat-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
}
.stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}
.stat-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--ink);
}
.stats-note {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-style: italic;
}

.footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-align: center;
}

@media (max-width: 700px) {
  .top-bar-inner { padding: 0.85rem 1rem; }
  .main-inner { padding: 1.75rem 1rem 3rem; }
  .signed-in { display: none; }
}
