:root {
  --ink: #1c1410;
  --paper: #f4ebe2;
  --muted: #8a7b70;
  --ember: #d94a2b;
  --ember-deep: #a8321c;
  --line: rgba(255, 245, 235, 0.14);
  --card: rgba(28, 20, 16, 0.55);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Outfit, system-ui, sans-serif;
  color: var(--paper);
  background: #120e0c;
  overflow-x: hidden;
}

.wash {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(217, 74, 43, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(145, 55, 2, 0.22), transparent 50%),
    radial-gradient(ellipse 50% 35% at 0% 80%, rgba(60, 90, 70, 0.18), transparent 45%),
    linear-gradient(165deg, #1a1411 0%, #120e0c 55%, #0d0a09 100%);
  z-index: 0;
}

.wash-soft {
  opacity: 0.9;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  z-index: 0;
  animation: drift 14s ease-in-out infinite alternate;
}

.orb-a {
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  background: rgba(217, 74, 43, 0.35);
  top: -8%;
  left: 55%;
}

.orb-b {
  width: 36vw;
  height: 36vw;
  max-width: 420px;
  max-height: 420px;
  background: rgba(180, 120, 40, 0.22);
  bottom: -12%;
  left: -8%;
  animation-delay: -4s;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-3%, 4%, 0) scale(1.06); }
}

.login-stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
}

.login-card {
  width: min(100%, 420px);
  text-align: center;
  padding: 2.25rem 1.75rem 2rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(40, 28, 22, 0.72), rgba(20, 14, 12, 0.78));
  backdrop-filter: blur(18px);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.logo {
  display: block;
  width: min(46vw, 168px);
  height: auto;
  margin: 0 auto 1.1rem;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
  animation: logoIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

@keyframes logoIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f0a090;
  font-weight: 600;
  margin: 0;
}

h1 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.55rem);
  margin: 0.35rem 0 0.45rem;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 auto 1.35rem;
  max-width: 28ch;
  color: rgba(244, 235, 226, 0.72);
  line-height: 1.45;
  font-size: 0.98rem;
}

.error {
  margin: 0 0 1rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: rgba(217, 74, 43, 0.16);
  border: 1px solid rgba(217, 74, 43, 0.35);
  color: #ffd2c6;
  font-size: 0.9rem;
}

.login-form {
  display: grid;
  gap: 0.85rem;
  text-align: left;
  animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.field-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.field input {
  width: 100%;
  border: 1px solid rgba(255, 245, 235, 0.16);
  background: rgba(8, 6, 5, 0.45);
  color: var(--paper);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 1.05rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  border-color: rgba(217, 74, 43, 0.65);
  box-shadow: 0 0 0 3px rgba(217, 74, 43, 0.18);
}

.field input::placeholder {
  color: rgba(244, 235, 226, 0.28);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(180deg, #e85a3a, var(--ember-deep));
  color: #fff8f4;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(168, 50, 28, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 245, 235, 0.18);
  box-shadow: none;
  color: var(--paper);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.04); filter: none; }

/* Hub */
.page-hub { color: var(--paper); }

.hub-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

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

.hub-brand img {
  width: 44px;
  height: auto;
}

.hub-brand strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.15rem;
  display: block;
}

.hub-main {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.hero-block {
  margin-bottom: 1.75rem;
  animation: rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-block h1 {
  margin-bottom: 0.5rem;
}

.hero-block .lede {
  margin: 0;
  max-width: 46ch;
  text-align: left;
}

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

.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.15rem 1.2rem 1.25rem;
  background: rgba(28, 20, 16, 0.55);
  backdrop-filter: blur(12px);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.panel:nth-child(2) { animation-delay: 0.05s; }
.panel:nth-child(3) { animation-delay: 0.1s; }
.panel:nth-child(4) { animation-delay: 0.15s; }

.panel h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.2rem;
  margin: 0 0 0.45rem;
}

.panel p {
  margin: 0 0 0.9rem;
  color: rgba(244, 235, 226, 0.72);
  line-height: 1.45;
  font-size: 0.95rem;
}

.panel .status {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(217, 74, 43, 0.18);
  color: #ffc8b8;
}

.panel-muted .status,
.panel-soon .status { /* keep */ }

.channel-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.channel-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 245, 235, 0.08);
  font-size: 0.92rem;
}

.channel-list li:last-child { border-bottom: 0; }

.channel-list em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.8rem;
}

code {
  font-size: 0.85em;
  color: #ffc8b8;
}

@media (max-width: 560px) {
  .hub-top { padding: 1rem; }
  .login-card { padding: 1.75rem 1.2rem; }
}
