/* =========================================================
   CryptVault — style-1401.css
   Premium black/grey · iOS liquid-glass · Playfair Display
   Araf Studio
   ========================================================= */

:root {
  --bg-0: #08080a;
  --bg-1: #0e0f12;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-soft: rgba(255, 255, 255, 0.055);
  --grey-100: #f2f2f4;
  --grey-300: #c7c8cc;
  --grey-500: #8b8c92;
  --grey-700: #55565c;

  --accent: #39ff8f;
  --accent-soft: rgba(57, 255, 143, 0.16);
  --accent-dim: #1f7a4c;
  --danger: #ff5470;
  --danger-soft: rgba(255, 84, 112, 0.14);

  --font-display: "Playfair Display", "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 11px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-0);
  color: var(--grey-100);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Ambient background ---------- */

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 10%, transparent 75%);
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.35;
}

.bg-glow--a {
  width: 620px;
  height: 620px;
  top: -220px;
  left: -160px;
  background: radial-gradient(circle, rgba(57,255,143,0.35), transparent 70%);
  animation: drift-a 22s ease-in-out infinite alternate;
}

.bg-glow--b {
  width: 560px;
  height: 560px;
  bottom: -240px;
  right: -180px;
  background: radial-gradient(circle, rgba(120,140,255,0.22), transparent 70%);
  animation: drift-b 26s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate(0, 0); }
  to   { transform: translate(60px, 40px); }
}
@keyframes drift-b {
  from { transform: translate(0, 0); }
  to   { transform: translate(-50px, -30px); }
}

/* ---------- Shell / layout ---------- */

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 20px 40px;
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  text-align: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  filter: drop-shadow(0 0 14px rgba(57,255,143,0.35));
}

.brand__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.1rem;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #ffffff 0%, #c9cace 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand__tagline {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-500);
  font-weight: 500;
}

/* ---------- Glass card ---------- */

.vault-card {
  width: 100%;
  max-width: 480px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 28px 26px 26px;
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 30px 80px -20px rgba(0,0,0,0.7),
    0 0 0 1px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}

.vault-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(255,255,255,0.06), transparent 40%);
  pointer-events: none;
}

/* ---------- Tabs ---------- */

.tabs {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 5px;
  margin-bottom: 22px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius-md);
}

.tab {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 11px;
  color: var(--grey-500);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}

.tab svg { opacity: 0.75; transition: opacity 0.25s var(--ease); }

.tab--active {
  color: #06110c;
}
.tab--active svg { opacity: 1; }

.tab-indicator {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(50% - 7px);
  height: calc(100% - 10px);
  background: linear-gradient(180deg, var(--accent), #24d874);
  border-radius: 11px;
  box-shadow: 0 4px 18px rgba(57,255,143,0.35);
  transition: transform 0.35s var(--ease);
}

.tab-indicator--right {
  transform: translateX(calc(100% + 4px));
}

/* ---------- Panels ---------- */

.panel {
  animation: panel-in 0.4s var(--ease);
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.input-mode {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.chip {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.03);
  color: var(--grey-500);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.22s var(--ease);
}

.chip:hover {
  color: var(--grey-100);
  border-color: var(--stroke);
}

.chip--active {
  background: var(--accent-soft);
  border-color: rgba(57,255,143,0.4);
  color: var(--accent);
}

.field-block {
  margin-bottom: 18px;
}

.field-block--hidden {
  display: none;
}

.field-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 9px;
}

/* ---------- Inputs ---------- */

.glass-textarea,
.glass-input {
  width: 100%;
  background: rgba(0,0,0,0.32);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  color: var(--grey-100);
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 13px 14px;
  resize: vertical;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.glass-textarea::placeholder,
.glass-input::placeholder {
  color: var(--grey-700);
}

.glass-textarea:focus,
.glass-input:focus {
  outline: none;
  border-color: rgba(57,255,143,0.5);
  box-shadow: 0 0 0 3px rgba(57,255,143,0.12);
  background: rgba(0,0,0,0.44);
}

.glass-textarea--output {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--accent);
  word-break: break-all;
}

.password-row {
  display: flex;
  gap: 8px;
}

.password-row .glass-input {
  flex: 1;
}

.icon-btn {
  flex-shrink: 0;
  width: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  color: var(--grey-500);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.icon-btn:hover {
  color: var(--grey-100);
  border-color: rgba(255,255,255,0.18);
}

.icon-btn[aria-pressed="true"] {
  color: var(--accent);
  border-color: rgba(57,255,143,0.4);
  background: var(--accent-soft);
}

/* ---------- Strength meter ---------- */

.strength-meter {
  display: flex;
  gap: 5px;
  margin-top: 9px;
}

.strength-meter span {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
  transition: background 0.25s var(--ease);
}

.strength-meter[data-level="1"] span:nth-child(1) { background: var(--danger); }
.strength-meter[data-level="2"] span:nth-child(-n+2) { background: #ffb43a; }
.strength-meter[data-level="3"] span:nth-child(-n+3) { background: #7fd858; }
.strength-meter[data-level="4"] span { background: var(--accent); }

/* ---------- Dropzone ---------- */

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 30px 16px;
  border: 1.5px dashed var(--stroke);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.02);
  color: var(--grey-500);
  cursor: pointer;
  position: relative;
  transition: all 0.22s var(--ease);
}

.dropzone svg { color: var(--grey-500); transition: color 0.22s var(--ease); }

.dropzone:hover,
.dropzone:focus-visible {
  border-color: rgba(57,255,143,0.45);
  background: rgba(57,255,143,0.04);
}

.dropzone:hover svg,
.dropzone:focus-visible svg { color: var(--accent); }

.dropzone--active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 4px rgba(57,255,143,0.1);
}

.dropzone__title {
  margin: 4px 0 0;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--grey-100);
}

.dropzone__hint {
  margin: 0;
  font-size: 0.74rem;
  color: var(--grey-700);
}

.sr-only-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--stroke);
  font-size: 0.82rem;
  color: var(--grey-300);
}

.file-chip svg { color: var(--accent); flex-shrink: 0; }

#encrypt-file-name, #decrypt-file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-chip__size {
  color: var(--grey-700);
  font-size: 0.74rem;
}

.file-chip__remove {
  background: none;
  border: none;
  color: var(--grey-500);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}
.file-chip__remove:hover { color: var(--danger); }

/* ---------- Primary button (liquid glass) ---------- */

.btn-primary {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  margin-top: 6px;
  border: 1px solid rgba(57,255,143,0.4);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(57,255,143,0.9), rgba(31,122,76,0.9));
  color: #06110c;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 12px 30px -10px rgba(57,255,143,0.5);
  transition: transform 0.15s var(--ease), box-shadow 0.25s var(--ease), filter 0.2s var(--ease);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 16px 36px -8px rgba(57,255,143,0.6);
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: progress;
  filter: grayscale(0.3);
}

.btn-primary__spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(6,17,12,0.35);
  border-top-color: #06110c;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-ghost {
  width: 100%;
  margin-top: 12px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  color: var(--grey-100);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.btn-ghost:hover {
  border-color: rgba(57,255,143,0.4);
  color: var(--accent);
  background: rgba(57,255,143,0.06);
}

/* ---------- Result / alerts ---------- */

.result-block {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(57,255,143,0.05);
  border: 1px solid rgba(57,255,143,0.25);
  animation: panel-in 0.35s var(--ease);
}

.result-block__header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}

.alert {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  font-weight: 500;
  line-height: 1.4;
}

.alert--error {
  background: var(--danger-soft);
  border: 1px solid rgba(255,84,112,0.35);
  color: #ffb6c4;
}

.zero-knowledge-note {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  margin: 22px 0 0;
  font-size: 0.73rem;
  color: var(--grey-700);
  text-align: center;
  line-height: 1.4;
}

.zero-knowledge-note svg { flex-shrink: 0; color: var(--grey-700); }

/* ---------- Official site button ---------- */

.official-site-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  color: var(--grey-100);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.25s var(--ease);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset;
}

.official-site-btn:hover {
  border-color: rgba(57,255,143,0.45);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 10px 24px -10px rgba(57,255,143,0.4);
}

.official-site-btn svg { transition: transform 0.25s var(--ease); }
.official-site-btn:hover svg { transform: translate(2px, -2px); }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 30px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--grey-700);
  letter-spacing: 0.02em;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%) translateY(20px);
  z-index: 50;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(20,22,24,0.85);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  color: var(--grey-100);
  font-size: 0.83rem;
  font-weight: 600;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Focus visibility ---------- */

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */

@media (max-width: 520px) {
  .vault-card { padding: 22px 18px 20px; }
  .brand__text { font-size: 1.7rem; }
}

/* =========================================================
   LANDING PAGE
   ========================================================= */

.landing-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 20px 50px;
}

.landing-nav {
  width: 100%;
  max-width: 1040px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px;
  margin-bottom: 56px;
}

.brand__text--sm {
  font-size: 1.3rem;
}

.landing-nav__link {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--grey-300);
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.03);
  transition: all 0.22s var(--ease);
}

.landing-nav__link:hover {
  color: var(--accent);
  border-color: rgba(57,255,143,0.4);
}

main#main {
  width: 100%;
  max-width: 1040px;
}

.hero {
  text-align: center;
  padding: 50px 12px 60px;
  max-width: 760px;
  margin: 0 auto;
}

.hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  background: linear-gradient(180deg, #ffffff 0%, #b9bac0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--grey-300);
  max-width: 560px;
  margin: 0 auto 34px;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary--link,
.btn-ghost--link {
  width: auto;
  text-decoration: none;
  display: inline-flex;
}

.btn-primary--link {
  padding: 14px 26px;
}

.btn-primary--wide {
  max-width: 320px;
  margin: 26px auto 0;
}

.btn-ghost--link {
  margin-top: 0;
  padding: 13px 22px;
}

/* ---- Feature grid ---- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0 auto 76px;
}

.feature-card {
  padding: 26px 22px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(57,255,143,0.3);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  margin: 0 0 8px;
  color: var(--grey-100);
}

.feature-card__desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--grey-500);
  margin: 0;
}

/* ---- How it works ---- */

.how-it-works {
  max-width: 620px;
  margin: 0 auto 76px;
}

.how-it-works__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  text-align: center;
  margin: 0 0 34px;
  color: var(--grey-100);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--stroke-soft);
}

.step__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 34px;
}

.step__title {
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--grey-100);
}

.step__desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--grey-500);
  line-height: 1.5;
}

/* ---- CTA band ---- */

.cta-band {
  text-align: center;
  padding: 46px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(57,255,143,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(57,255,143,0.18);
  margin-bottom: 20px;
}

.cta-band__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--grey-100);
  margin: 0 0 6px;
  max-width: 480px;
  margin-inline: auto;
}

@media (max-width: 760px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   LOGIN PAGE
   ========================================================= */

.app-shell--center {
  justify-content: center;
  min-height: 100vh;
}

.back-link {
  position: absolute;
  top: 26px;
  left: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--grey-500);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.back-link:hover { color: var(--grey-100); }

.auth-card {
  width: 100%;
  max-width: 400px;
  text-align: center;
  padding: 40px 30px 32px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 30px 80px -20px rgba(0,0,0,0.7);
}

.auth-card__mark {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 14px rgba(57,255,143,0.3));
}

.auth-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.55rem;
  margin: 0 0 10px;
  color: var(--grey-100);
}

.auth-card__subtitle {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--grey-500);
  margin: 0 0 28px;
}

.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  color: var(--grey-100);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.btn-google:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}

.btn-google:disabled {
  opacity: 0.7;
  cursor: progress;
}

.btn-google__spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: var(--grey-100);
  animation: spin 0.7s linear infinite;
}

.auth-card__fine-print {
  margin: 22px 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--grey-700);
}

/* =========================================================
   HOME — AUTH LOADER + USER BAR
   ========================================================= */

.auth-pending .app-shell {
  visibility: hidden;
}

.auth-loader {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--bg-0);
}

.auth-loader__spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(57,255,143,0.18);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

.auth-loader p {
  font-size: 0.82rem;
  color: var(--grey-500);
  font-weight: 500;
}

.user-bar {
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding: 8px 8px 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--stroke-soft);
}

.user-bar__identity {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.user-bar__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--stroke);
}

.user-bar__name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--grey-300);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-bar__logout {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.03);
  color: var(--grey-500);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.user-bar__logout:hover {
  color: var(--danger);
  border-color: rgba(255,84,112,0.35);
  background: var(--danger-soft);
}
