/* HOME */
.hero-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 40px;
  background:
    radial-gradient(circle at top left, rgba(139, 93, 255, 0.22), transparent 32%),
    radial-gradient(circle at right, rgba(255, 79, 216, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(16, 18, 28, 0.94), rgba(11, 13, 20, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 225, 255, 0.18), transparent 68%);
  pointer-events: none;
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.03) 40%, transparent 70%);
  opacity: 0.7;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 30px;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

.hero-copy h1 {
  margin: 20px 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.hero-copy h1 .accent {
  display: block;
  background: linear-gradient(90deg, #ffffff 0%, #dcb8ff 35%, #74d8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy p {
  max-width: 640px;
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero-side {
  min-height: 100%;
}

.hero-stats {
  display: grid;
  gap: 14px;
}

.stat-card {
  position: relative;
  padding: 20px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto auto -20px -20px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 79, 216, 0.09), transparent 66%);
  pointer-events: none;
}

.stat-label {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.stat-value {
  font-size: 26px;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 8px;
}

.stat-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.grid-panels {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 20px;
}

.panel {
  border-radius: 26px;
  padding: 28px;
}

.panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.2;
}

.panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
}

.panel-wide {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(77, 163, 255, 0.10), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}

.panel-wide::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 79, 216, 0.12), transparent 68%);
  pointer-events: none;
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(180deg, rgba(139, 93, 255, 0.09), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(180, 120, 255, 0.18);
}

.news-section {
  margin-top: 28px;
  padding: 30px;
  border-radius: 30px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 12px 0 0;
  font-size: 30px;
  line-height: 1.1;
}

.section-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  text-align: right;
}

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

.news-card {
  position: relative;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}

.news-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.04) 26%, transparent 52%);
  opacity: 0.8;
  pointer-events: none;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(180, 120, 255, 0.24);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28), var(--glow-purple);
}

.news-card h3 {
  margin: 18px 0 12px;
  font-size: 21px;
  line-height: 1.2;
}

.news-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

.dashboard-hero {
  max-width: 860px;
  margin: 0 auto;
}

.dashboard-hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  margin: 10px 0 6px;
}

.dashboard-subtitle {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.dashboard-card {
  border-radius: 28px;
  padding: 26px;
}

.dashboard-card h3 {
  margin: 18px 0 12px;
  font-size: 24px;
  line-height: 1.2;
}

.dashboard-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.auth-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 28px;
}

.auth-shell--wide {
  max-width: 1000px;
}

.auth-hero {
  text-align: center;
  margin-bottom: 24px;
}

.auth-hero h1 {
  font-size: clamp(34px, 5vw, 48px);
  margin: 10px 0;
}

.auth-hero p {
  color: var(--muted);
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.auth-card {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

.auth-card--full {
  grid-column: span 2;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field input,
.field select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.4);
  color: #fff;
}

.checkbox {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.auth-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-actions--full {
  grid-column: span 2;
  justify-content: center;
}

.primary-btn {
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff4fd8, #8b5dff);
  color: #fff;
  border: none;
  cursor: pointer;
}

.secondary-btn {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  text-decoration: none;
}

.auth-consent-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.auth-inline-link-btn {
  flex-shrink: 0;
  min-width: 210px;
  text-align: center;
}

.checkbox--stacked {
  flex: 1;
}

@media (max-width: 780px) {
  .auth-consent-row {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-inline-link-btn {
    min-width: 0;
    width: 100%;
  }
}
