:root {
  --blue: #229ed9;
  --blue-deep: #168acd;
  --blue-dark: #126a9c;
  --blue-soft: #e7f5fc;
  --sky: #f4faff;
  --ink: #1f2d3d;
  --muted: #718096;
  --line: #dceaf3;
  --white: #ffffff;
  --green: #34c77b;
  --red: #ed6a75;
  --orange: #f5a347;
  --shadow: 0 24px 70px rgba(31, 97, 132, .13);
  --soft-shadow: 0 12px 35px rgba(31, 97, 132, .09);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--sky); }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(34, 158, 217, .12), transparent 28rem),
    radial-gradient(circle at 90% 82%, rgba(115, 205, 245, .13), transparent 30rem),
    linear-gradient(180deg, #fbfdff 0%, #eef7fc 100%);
}

a { color: inherit; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.page-width { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.page-glow { position: fixed; z-index: 0; border-radius: 50%; pointer-events: none; filter: blur(1px); }
.page-glow-one { width: 340px; height: 340px; top: -180px; right: -90px; background: rgba(34, 158, 217, .12); }
.page-glow-two { width: 260px; height: 260px; bottom: -150px; left: -80px; background: rgba(84, 190, 238, .1); }

.site-header {
  width: min(1120px, calc(100% - 40px));
  height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark, .auth-icon {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(145deg, #35b6ef, #178dce);
  box-shadow: 0 10px 24px rgba(34, 158, 217, .25);
}
.brand-mark { width: 44px; height: 44px; }
.brand-mark > span, .auth-icon > span { color: white; font-weight: 900; letter-spacing: -.08em; }
.brand-mark > span { font-size: 14px; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 17px; letter-spacing: -.02em; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.network-status { color: var(--muted); font-size: 13px; }
.network-status i { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(52, 199, 123, .12); }

.auth-shell {
  min-height: calc(100vh - 84px);
  padding: 48px 0 90px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr);
  align-items: center;
  gap: clamp(52px, 9vw, 120px);
  position: relative;
  z-index: 1;
}
.auth-hero h1 {
  max-width: 700px;
  margin: 22px 0 0;
  font-size: clamp(49px, 6.2vw, 80px);
  line-height: .98;
  letter-spacing: -.055em;
}
.auth-hero h1 em { color: var(--blue); font-style: normal; font-weight: 500; }
.lead { max-width: 590px; margin: 25px 0 30px; color: #5b7182; font-size: 18px; line-height: 1.62; }
.message-preview {
  width: min(440px, 100%);
  padding: 18px;
  border: 1px solid rgba(190, 217, 232, .8);
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 158, 217, .08) 0 2px, transparent 2.5px) 0 0 / 22px 22px,
    rgba(255, 255, 255, .82);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
}
.preview-top { display: flex; align-items: center; gap: 11px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.preview-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--blue); font-size: 12px; font-weight: 800; }
.preview-top div { display: grid; }
.preview-top b { font-size: 14px; }
.preview-top small { margin-top: 3px; color: var(--green); font-size: 10px; }
.bubble { width: fit-content; max-width: 80%; margin-top: 13px; padding: 10px 14px; border-radius: 15px; font-size: 12px; box-shadow: 0 3px 10px rgba(49, 95, 119, .07); }
.bubble-in { background: white; border-bottom-left-radius: 5px; }
.bubble-out { margin-left: auto; color: #206946; background: #dff5d5; border-bottom-right-radius: 5px; }
.preview-checks { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.preview-checks span { padding: 6px 9px; border-radius: 999px; color: var(--blue-dark); background: var(--blue-soft); font-size: 9px; font-weight: 700; }

.auth-card {
  padding: 38px;
  border: 1px solid rgba(205, 226, 238, .92);
  border-radius: 28px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}
.auth-icon { width: 58px; height: 58px; margin-bottom: 22px; }
.auth-icon > span { font-size: 18px; }
.form-heading h2 { margin: 0; font-size: 29px; letter-spacing: -.035em; }
.form-heading p { margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 25px 0 4px; padding: 4px; border-radius: 12px; background: #edf5f9; }
.tabs a { padding: 10px; border-radius: 9px; color: var(--muted); text-align: center; text-decoration: none; font-size: 13px; font-weight: 700; transition: color .2s, background .2s, box-shadow .2s; }
.tabs a.active { color: var(--blue-dark); background: white; box-shadow: 0 3px 12px rgba(60, 115, 143, .1); }
form label { display: block; margin-top: 19px; }
form label > span { display: block; margin: 0 0 8px 3px; color: #4d6272; font-size: 12px; font-weight: 700; }
input { width: 100%; padding: 14px 15px; border: 1px solid #cfdee7; border-radius: 12px; outline: none; color: var(--ink); background: #fbfdfe; transition: border-color .2s, background .2s, box-shadow .2s; }
input::placeholder { color: #a8b7c1; }
input:focus { border-color: var(--blue); background: white; box-shadow: 0 0 0 4px rgba(34, 158, 217, .11); }
.password-field { position: relative; }
.password-field input { padding-right: 92px; }
.show-password { position: absolute; top: 50%; right: 11px; padding: 6px; transform: translateY(-50%); border: 0; color: var(--blue-dark); background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; }
.primary, .renew-button {
  border: 0;
  color: white;
  background: linear-gradient(135deg, #28a9e5, #168dce);
  box-shadow: 0 10px 25px rgba(34, 158, 217, .22);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.primary { width: 100%; margin-top: 24px; padding: 14px 17px; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.primary:hover, .renew-button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(34, 158, 217, .28); }
.primary b { font-size: 20px; }
.fine-print { margin: 17px 3px 0; color: #91a0aa; font-size: 10px; line-height: 1.5; }
.alert, .notice { margin: 17px 0; padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.45; }
.alert { color: #9c3640; background: #fff0f1; border: 1px solid #ffd8dc; }
.notice { color: #24694a; background: #ecf9f2; border: 1px solid #ccefdc; }

.dashboard-shell { padding: 44px 0 80px; position: relative; z-index: 1; }
.dashboard-top { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin-bottom: 30px; }
.overline { margin: 0 0 7px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.dashboard-top h1 { margin: 0; font-size: clamp(30px, 4vw, 45px); letter-spacing: -.045em; }
.dashboard-top p:last-child { margin: 9px 0 0; color: var(--muted); }
.ghost { padding: 10px 19px; border: 1px solid #cddfe9; border-radius: 999px; color: #527083; background: rgba(255,255,255,.7); cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.ghost:hover { border-color: var(--blue); color: var(--blue-dark); background: white; }
.dashboard-notice { margin: -6px 0 22px; }

.dashboard-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.status-card { min-height: 335px; padding: clamp(26px, 4vw, 40px); overflow: hidden; position: relative; border-radius: 26px; color: white; background: linear-gradient(145deg, #27a8e3 0%, #1688c9 100%); box-shadow: 0 24px 55px rgba(25, 138, 196, .25); }
.status-card::after { content: ""; position: absolute; width: 240px; height: 240px; right: -85px; top: -90px; border: 48px solid rgba(255,255,255,.07); border-radius: 50%; }
.status-card.status-expired { background: linear-gradient(145deg, #ef7b7d, #db5665); box-shadow: 0 24px 55px rgba(201, 74, 89, .2); }
.status-card.status-paused { background: linear-gradient(145deg, #8396a5, #62798b); box-shadow: 0 24px 55px rgba(77, 99, 115, .18); }
.status-card-head { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; }
.card-kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .76; }
.status-card h2 { margin: 7px 0 0; font-size: 37px; letter-spacing: -.045em; }
.status-orb { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.15); }
.status-orb i { width: 15px; height: 15px; border: 4px solid rgba(255,255,255,.45); border-radius: 50%; background: white; box-shadow: 0 0 0 7px rgba(255,255,255,.08); }
.status-description { max-width: 480px; min-height: 42px; margin: 20px 0 24px; position: relative; z-index: 1; font-size: 13px; line-height: 1.55; opacity: .82; }
.period-row { display: grid; grid-template-columns: .7fr 1.3fr; gap: 20px; position: relative; z-index: 1; }
.period-row div { display: grid; gap: 6px; }
.period-row span { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; opacity: .68; }
.period-row strong { font-size: 15px; }
.period-progress { width: 100%; height: 7px; margin: 18px 0 22px; position: relative; z-index: 1; appearance: none; border: 0; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.18); }
.period-progress::-webkit-progress-bar { background: rgba(255,255,255,.18); }
.period-progress::-webkit-progress-value { border-radius: 999px; background: white; }
.period-progress::-moz-progress-bar { border-radius: 999px; background: white; }
.renew-form { position: relative; z-index: 1; }
.renew-button { width: 100%; padding: 13px 16px; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; color: var(--blue-dark); background: white; box-shadow: none; font-weight: 700; }
.renew-button:hover { box-shadow: 0 9px 24px rgba(16, 91, 127, .16); }
.renew-disabled, .renew-disabled:hover { opacity: .58; transform: none; box-shadow: none; cursor: default; justify-content: center; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-card { min-height: 126px; padding: 20px; display: flex; align-items: flex-start; gap: 14px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.92); box-shadow: var(--soft-shadow); }
.stat-wide { grid-column: 1 / -1; }
.stat-icon { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: var(--blue-dark); background: var(--blue-soft); font-size: 18px; font-weight: 800; }
.upload-icon { color: #2f9464; background: #e3f8ed; }
.download-icon { width: 42px; height: 42px; color: white; background: var(--blue); }
.pulse-icon::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(52,199,123,.15); }
.stat-card div { min-width: 0; display: grid; }
.stat-card small { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.stat-card strong { margin-top: 8px; overflow-wrap: anywhere; font-size: 20px; letter-spacing: -.025em; }
.stat-card p { margin: 6px 0 0; color: #94a3ad; font-size: 11px; }
.last-online { min-height: 78px; align-items: center; }
.last-online strong { font-size: 13px; }

.content-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; margin-top: 20px; }
.subscription-card, .guide-card { padding: clamp(24px, 3vw, 32px); border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.92); box-shadow: var(--soft-shadow); }
.section-heading { display: flex; align-items: flex-start; gap: 14px; }
.section-icon { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--blue-dark); background: var(--blue-soft); font-weight: 800; }
.section-heading h2 { margin: 1px 0 0; font-size: 20px; letter-spacing: -.025em; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.subscription-box { margin-top: 24px; padding: 7px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border: 1px solid #d2e4ee; border-radius: 14px; background: #f4f9fc; }
.subscription-box code { padding: 8px 9px; overflow: hidden; color: #456171; text-overflow: ellipsis; white-space: nowrap; font-family: Consolas, monospace; font-size: 11px; }
.subscription-box button { padding: 10px 14px; border: 0; border-radius: 10px; color: white; background: var(--blue); font-size: 11px; font-weight: 700; cursor: pointer; }
.copy-feedback { min-height: 21px; padding: 6px 5px 0; color: var(--blue-dark); font-size: 11px; }
.privacy-note { margin: 14px 0 0; color: #8799a5; font-size: 11px; line-height: 1.45; }
.privacy-note span { width: 17px; height: 17px; margin-right: 5px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--blue-dark); background: var(--blue-soft); font-size: 10px; font-weight: 800; }
.guide-card ol { list-style: none; margin: 20px 0 0; padding: 0; }
.guide-card li { display: grid; grid-template-columns: 30px 1fr; gap: 11px; padding: 14px 0; border-top: 1px solid #e7f0f5; }
.guide-card li b { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: var(--blue-dark); background: var(--blue-soft); font-size: 10px; }
.guide-card li strong { font-size: 13px; }
.guide-card li p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }

.reveal { animation: reveal .55s cubic-bezier(.22, 1, .36, 1) both; }
.reveal-late { animation-delay: .08s; }
.reveal-later { animation-delay: .16s; }
@keyframes reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 880px) {
  .auth-shell { grid-template-columns: 1fr; max-width: 650px; padding-top: 25px; gap: 42px; }
  .auth-hero { text-align: center; }
  .auth-hero h1, .lead, .message-preview { margin-left: auto; margin-right: auto; }
  .dashboard-grid, .content-grid { grid-template-columns: 1fr; }
  .status-card { min-height: 320px; }
}

@media (max-width: 560px) {
  .page-width, .site-header { width: min(100% - 24px, 1120px); }
  .site-header { height: 70px; }
  .brand-copy small, .network-status { display: none; }
  .brand-mark { width: 39px; height: 39px; }
  .auth-shell { min-height: calc(100vh - 70px); padding: 22px 0 48px; }
  .auth-hero h1 { margin-top: 17px; font-size: 43px; }
  .lead { margin-top: 18px; font-size: 15px; }
  .message-preview { display: none; }
  .auth-card { padding: 27px 20px; border-radius: 22px; }
  .auth-icon { width: 50px; height: 50px; margin-bottom: 17px; }
  .form-heading h2 { font-size: 25px; }
  .dashboard-shell { padding: 28px 0 50px; }
  .dashboard-top { align-items: flex-start; }
  .dashboard-top h1 { font-size: 30px; }
  .dashboard-top p:last-child { font-size: 13px; }
  .ghost { padding: 8px 14px; font-size: 12px; }
  .status-card { min-height: 0; padding: 25px 20px; border-radius: 22px; }
  .status-card h2 { font-size: 31px; }
  .status-orb { width: 45px; height: 45px; }
  .period-row { grid-template-columns: 1fr; gap: 13px; }
  .stats-grid { gap: 10px; }
  .stat-card { min-height: 113px; padding: 16px; gap: 10px; }
  .stat-card strong { font-size: 17px; }
  .last-online { min-height: 76px; }
  .subscription-card, .guide-card { padding: 22px 17px; border-radius: 20px; }
  .subscription-box { grid-template-columns: 1fr; }
  .subscription-box button { padding: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  * { scroll-behavior: auto !important; }
}
