:root {
  --navy: #2d1b4e;
  --navy-light: #3d2668;
  --blue: #7c4dff;
  --blue-dark: #651fff;
  --orange: #ff6b9d;
  --text: #faf5ff;
  --muted: #c4b5d8;
  --input-bg: #f4f7fb;
  --danger: #e53935;
  --font: 'Inter', system-ui, sans-serif;
}

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

body {
  font-family: var(--font);
  min-height: 100vh;
  background: #000;
}

.login-shell {
  display: grid;
  grid-template-columns: 1fr 420px;
  min-height: 100vh;
}

.hero {
  position: relative;
  background:
    linear-gradient(120deg, rgba(45, 27, 78, 0.88), rgba(61, 38, 104, 0.55)),
    url('https://images.unsplash.com/photo-1516627145497-ae6968895b74?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(124, 77, 255, 0.28), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 64px 56px;
  max-width: 640px;
  color: var(--text);
}

.hero-badge {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 1.05rem;
  color: #e8dff5;
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 16px;
  backdrop-filter: blur(8px);
}

.stat-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.stat-card strong {
  font-size: 1.1rem;
}

.login-panel {
  background: var(--navy);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 32px 28px;
}

.btn-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

.login-box {
  width: 100%;
  max-width: 340px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.login-box h2 {
  font-size: 1.55rem;
  line-height: 1.25;
  margin-bottom: 8px;
}

.login-sub {
  color: var(--muted);
  margin-bottom: 28px;
}

label {
  display: block;
  font-size: 13px;
  color: #d8ccef;
  margin-bottom: 8px;
}

input {
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 15px;
  background: var(--input-bg);
  color: #1a1a1a;
  margin-bottom: 18px;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 44px;
}

.toggle-pass {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(calc(-50% - 9px));
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
}

.error {
  color: #ff8a80;
  font-size: 13px;
  margin: -8px 0 12px;
}

.btn-login {
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  background: var(--blue);
  cursor: pointer;
  transition: background 0.2s;
}

.btn-login:hover { background: var(--blue-dark); }
.btn-login:disabled { opacity: 0.7; cursor: wait; }

.store-actions {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: white;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font-family: inherit;
}

.store-btn.android { background: linear-gradient(135deg, #2e7d32, #66bb6a); border: none; }
.store-btn.ios { background: linear-gradient(135deg, #111827, #374151); border: none; }
.store-btn small { display: block; font-size: 11px; opacity: 0.85; }
.store-btn strong { font-size: 15px; }
.store-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.16);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.ios-note {
  color: #ffd54f;
  font-size: 13px;
  text-align: center;
}

.guide {
  background: #12081f;
  color: #f8f4ff;
  padding: 64px 24px 80px;
}

.guide-inner, .guide-inner { max-width: 1120px; margin: 0 auto; }
.guide-kicker {
  color: #b388ff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}
.guide h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}
.guide-lead {
  color: #d5c8ea;
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.guide-card {
  background: #1c1030;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.guide-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  object-position: center;
  background: #1a1230;
  display: block;
}

.guide-card h3, .guide-card p { padding: 0 16px; }
.guide-card h3 { margin: 14px 0 8px; font-size: 1.05rem; }
.guide-card p {
  color: #cbbde0;
  font-size: 13.5px;
  line-height: 1.55;
  padding-bottom: 18px;
}

.guide-step {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #7c4dff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.trust-row {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.trust-row > div {
  background: rgba(124, 77, 255, 0.12);
  border: 1px solid rgba(179, 136, 255, 0.25);
  border-radius: 14px;
  padding: 16px;
}

.trust-row strong { display: block; margin-bottom: 4px; }
.trust-row span { color: #d5c8ea; font-size: 13px; }

.story {
  background: #160e28;
  color: #faf5ff;
  padding: 56px 24px 24px;
}
.story-inner { max-width: 1080px; margin: 0 auto; }
.story-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
  margin: 28px 0 36px;
}
.story-node {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 20px;
}
.story-node h3 { margin: 10px 0 8px; }
.story-node p { color: #d5c8ea; font-size: 14px; line-height: 1.5; }
.story-arrow {
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #ff6b9d;
  font-weight: 700;
}
.story-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
}
.story-ico-child { background: #c62828; }
.story-ico-cloud { background: #7c4dff; }
.story-ico-parent { background: #ef6c00; font-size: 22px; }
.feature-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-bottom: 12px;
}

.help-shortcut {
  display: block;
  margin-top: 18px;
  color: #6d28d9;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.help-center {
  padding: 72px 24px;
  background: #f7f4fc;
  color: #241438;
}
.help-inner { max-width: 1120px; margin: 0 auto; }
.help-inner h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 8px 0; }
.help-lead { color: #665675; margin-bottom: 28px; }
.help-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.help-steps article, .faq-grid details {
  background: white;
  border: 1px solid #e8ddf3;
  border-radius: 15px;
  padding: 16px;
}
.help-steps b { color: #6d28d9; }
.help-steps p, .faq-grid p {
  color: #665675;
  font-size: 13.5px;
  line-height: 1.55;
  margin: 8px 0 0;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.faq-grid summary { cursor: pointer; font-weight: 700; }
.support-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  margin-top: 30px;
  padding: 34px 38px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;
  color: white;
  background:
    radial-gradient(circle at 88% 15%, rgba(124,77,255,.5), transparent 31%),
    linear-gradient(125deg, #180b2d 0%, #351170 54%, #6722d5 100%);
  box-shadow: 0 22px 55px rgba(45, 27, 78, .24);
}
.support-card::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  left: -100px;
  bottom: -150px;
  border: 42px solid rgba(255,255,255,.04);
  border-radius: 50%;
}
.creator-main { position: relative; max-width: 650px; }
.creator-kicker {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 99px;
  color: #d8c7ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}
.support-card h3 {
  margin: 12px 0 8px;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  letter-spacing: -.02em;
}
.support-card p { color: #e4dcf2; line-height: 1.6; margin: 0; }
.support-card p b { color: white; }
.creator-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.creator-tags span {
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.09);
  color: #eee8fa;
  font-size: 11px;
  font-weight: 700;
}
.creator-contact {
  position: relative;
  display: grid;
  gap: 9px;
  min-width: 300px;
}
.creator-contact small {
  margin: 0 0 2px 4px;
  color: #cdbaf1;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}
.creator-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  color: white;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}
.creator-contact a:hover { transform: translateX(-4px); background: rgba(255,255,255,.2); }
.creator-contact i { width: 24px; font-size: 17px; font-style: normal; text-align: center; }
.creator-contact em {
  margin-top: 3px;
  color: #d8c7ed;
  font-size: 11px;
  font-style: normal;
  text-align: right;
}
.feat {
  background: #2d1b4e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 18px;
}
.feat span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c4b5d8;
}
.feat h3 { margin: 8px 0 6px; font-size: 1.05rem; }
.feat p { color: #d5c8ea; font-size: 13.5px; line-height: 1.5; }
.feat-sos {
  background: linear-gradient(160deg, #7b1111, #2d1b4e);
  border-color: rgba(255, 107, 157, 0.4);
}

@media (max-width: 960px) {
  .login-shell { grid-template-columns: 1fr; }
  .hero { min-height: 280px; }
  .hero-content { padding: 32px 24px; }
  .hero-stats { grid-template-columns: 1fr; }
  .login-panel { min-height: auto; }
  .guide-grid, .trust-row, .feature-mosaic, .story-flow, .help-steps, .faq-grid { grid-template-columns: 1fr; }
  .support-card { align-items: stretch; flex-direction: column; }
  .creator-contact { min-width: 0; }
  .creator-contact em { text-align: left; }
  .story-arrow { display: none; }
}
