/* EchoStyle member account portal — rose-gold luxury dark (matches marketing/admin) */

:root {
  --void: #05060a;
  --panel: rgba(14, 14, 18, 0.82);
  --ink: #f4f0ea;
  --ink-soft: #cfc6bb;
  --ink-muted: #8a847c;
  --rose: #d4af88;
  --rose-soft: #e4c9a8;
  --rose-deep: #c9a06f;
  --rose-gradient: linear-gradient(135deg, #e4c9a8 0%, #d4af88 42%, #c9a06f 100%);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(212, 175, 136, 0.35);
  --danger: #ff8a9a;
  --ok: #9dcfb0;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Syne", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 1.25rem;
  --focus: 0 0 0 2px var(--void), 0 0 0 4px var(--rose);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
}

body {
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(212, 175, 136, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(126, 200, 212, 0.06), transparent 45%);
}

.hidden {
  display: none !important;
}

.app {
  min-height: 100vh;
}

.glass {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
}

.gradient-text {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  background: linear-gradient(135deg, #fff 0%, #e8dfd4 45%, var(--rose) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-title {
  display: block;
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.muted {
  color: var(--ink-muted);
}

.tiny {
  font-size: 0.78rem;
}

.error {
  color: var(--danger);
  font-size: 0.9rem;
  margin: 0;
}

.success {
  color: var(--ok);
  font-size: 0.9rem;
  margin: 0;
}

.banner {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 138, 154, 0.35);
  background: rgba(255, 138, 154, 0.08);
}

a {
  color: var(--rose-soft);
}

/* Boot */
.boot-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.boot-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.boot-card .brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 0.9rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
}

/* Login */
.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.login-card {
  width: 100%;
  max-width: 26rem;
  padding: 2rem;
}

.login-sub {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.login-brand .brand-mark {
  width: 48px;
  height: 48px;
}

.brand-wordmark {
  height: 28px;
  width: auto;
  max-width: 11rem;
  object-fit: contain;
  object-position: left center;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.field-hint {
  margin: -0.35rem 0 0;
}

.field input,
.field select {
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  padding: 0.8rem 1rem;
  font: inherit;
  outline: none;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--rose) 50%),
    linear-gradient(135deg, var(--rose) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

.field input:focus,
.field select:focus {
  border-color: rgba(212, 175, 136, 0.55);
  box-shadow: var(--focus);
}

.field input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn:not(:disabled):hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--rose-gradient);
  color: #1a1410;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  padding: 0.55rem 1rem;
}

.btn-ghost {
  background: transparent;
  color: var(--rose);
  border: 1px solid transparent;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
}

/* Shell */
.app-shell {
  display: grid;
  grid-template-columns: 16.5rem 1fr;
  min-height: 100vh;
}

.sidebar {
  margin: 1rem;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-radius: 1.5rem;
  position: sticky;
  top: 1rem;
  align-self: start;
  max-height: calc(100vh - 2rem);
}

.brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-item {
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-soft);
  font: inherit;
  padding: 0.7rem 0.85rem;
  border-radius: 0.85rem;
  cursor: pointer;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.nav-item.active {
  background: rgba(212, 175, 136, 0.12);
  border-color: var(--border-strong);
  color: var(--rose-soft);
}

.sidebar-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.user-chip {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
}

.user-name {
  font-size: 0.88rem;
  word-break: break-all;
}

.role-badge {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(212, 175, 136, 0.15);
  color: var(--rose);
  border: 1px solid rgba(212, 175, 136, 0.3);
}

.role-badge.vip {
  color: #e4c9a8;
  border-color: rgba(228, 201, 168, 0.45);
  background: rgba(228, 201, 168, 0.12);
}

.role-badge.tester {
  color: #7ec8d4;
  border-color: rgba(126, 200, 212, 0.35);
  background: rgba(126, 200, 212, 0.1);
}

.role-badge.friend {
  color: #9dcfb0;
  border-color: rgba(157, 207, 176, 0.35);
  background: rgba(157, 207, 176, 0.1);
}

.role-badge.press {
  color: #c9b0e8;
  border-color: rgba(201, 176, 232, 0.35);
  background: rgba(201, 176, 232, 0.1);
}

.main {
  padding: 1.5rem 1.75rem 2.5rem;
  min-width: 0;
}

.topbar {
  margin-bottom: 1.25rem;
}

.topbar h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
}

.topbar .muted {
  margin: 0.25rem 0 0;
}

.welcome {
  padding: 1.35rem 1.5rem;
  margin-bottom: 1rem;
}

.welcome .gradient-text {
  font-size: 1.65rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.stat {
  padding: 1rem 1.1rem;
}

.stat-value {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
}

.stat-value.small {
  font-size: 1.05rem;
  line-height: 1.3;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.action-card {
  appearance: none;
  text-align: left;
  color: inherit;
  font: inherit;
  padding: 1.1rem 1.15rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.action-card strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.action-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.card {
  padding: 1.35rem 1.5rem;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.recent-card,
.privacy-card {
  margin-bottom: 1rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: start;
}

.security-card {
  max-width: 28rem;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1rem;
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
}

.meta-grid dt {
  margin: 0.55rem 0 0;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-grid dd {
  margin: 0.15rem 0 0;
  color: var(--ink-soft);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.82rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}

.chip.active {
  border-color: var(--border-strong);
  background: rgba(212, 175, 136, 0.12);
  color: var(--rose-soft);
}

.activity-note {
  margin: 0 0 1rem;
}

.empty-card {
  text-align: left;
}

.empty-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.timeline.compact .timeline-item {
  padding: 0.85rem 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(14, 14, 18, 0.65);
}

.timeline-dot {
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 4px rgba(212, 175, 136, 0.15);
}

.timeline-dot.app {
  background: #7ec8d4;
  box-shadow: 0 0 0 4px rgba(126, 200, 212, 0.15);
}

.timeline-item h4 {
  margin: 0 0 0.2rem;
  font-size: 0.98rem;
  font-weight: 600;
}

.timeline-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin-top: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

@media (max-width: 1100px) {
  .stat-grid,
  .action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    max-height: none;
    margin: 0.75rem 0.75rem 0;
  }

  .nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .nav-item {
    flex: 1 1 auto;
    text-align: center;
    padding: 0.55rem 0.65rem;
    font-size: 0.88rem;
  }

  .sidebar-foot {
    margin-top: 0.5rem;
  }

  .main {
    padding: 1rem 0.9rem 2rem;
  }

  .stat-grid,
  .action-grid {
    grid-template-columns: 1fr;
  }

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

  .card-head {
    flex-direction: column;
  }
}
