/* EditBuddy Unified Theme Layer */

body.home-page :is(.step-card, .uc, .ba-card, .feat, .price-card, .faq-item) {
  background: linear-gradient(180deg, rgba(18, 22, 31, 0.96), rgba(11, 13, 19, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.home-page :is(.step-card, .uc, .ba-card, .feat, .price-card, .faq-item):hover {
  border-color: rgba(255, 126, 43, 0.22);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 126, 43, 0.05);
}

body.home-page .price-card.featured,
body.home-page .ba-card.with-eb {
  background:
    radial-gradient(circle at top left, rgba(255, 106, 26, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(20, 24, 34, 0.98), rgba(11, 13, 19, 0.99));
}

body.home-page .trust {
  border-top-color: rgba(255, 255, 255, 0.08);
}

body.site-page .hero,
body.site-page .page-hero,
body.site-page .legal-page {
  position: relative;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 110px) 0 32px;
  text-align: center;
}

body.site-page .hero::before,
body.site-page .page-hero::before,
body.site-page .legal-page::before {
  content: "";
  position: absolute;
  inset: 8px auto auto 50%;
  transform: translateX(-50%);
  width: min(820px, 100%);
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 106, 26, 0.2), rgba(255, 179, 71, 0.08) 38%, transparent 72%);
  filter: blur(10px);
  pointer-events: none;
}

body.site-page .hero > *,
body.site-page .page-hero > *,
body.site-page .legal-page > * {
  position: relative;
  z-index: 1;
}

body.site-page .hero h1,
body.site-page .page-hero h1,
body.site-page .legal-page h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.98;
  margin: 18px 0 12px;
}

body.site-page .hero .lead,
body.site-page .page-hero .lead,
body.site-page .legal-page .meta,
body.site-page .hero .updated,
body.site-page .page-hero .updated {
  max-width: 720px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
  color: #a4aec2;
}

body.site-page .hero .btns,
body.site-page .page-hero .btns {
  justify-content: center;
  margin-top: 28px;
}

body.site-page .content,
body.site-page .legal,
body.site-page .legal-content {
  position: relative;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 96px;
}

body.site-page .legal,
body.site-page .legal-content {
  max-width: 940px;
  padding: 38px 36px 58px;
  background: linear-gradient(180deg, rgba(17, 20, 29, 0.97), rgba(11, 13, 20, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  box-shadow: 0 28px 84px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.site-page .mission {
  padding: 34px 34px 14px;
  background: linear-gradient(180deg, rgba(17, 20, 29, 0.96), rgba(11, 13, 20, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.site-page .team-grid,
body.site-page .grid,
body.site-page .steps,
body.site-page .info-grid,
body.site-page .meta {
  gap: 20px;
}

body.site-page :is(.card, .mail-card, .callout, .step, .info-card, .meta-item, .team-card, .license-card, .note, .info-cell) {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(17, 20, 29, 0.96), rgba(11, 13, 20, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.site-page :is(.card, .mail-card, .callout, .step, .info-card, .meta-item, .team-card, .license-card, .note, .info-cell)::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 140px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 72%);
  pointer-events: none;
  opacity: 0.35;
}

body.site-page :is(.card, .mail-card, .callout, .step, .info-card, .meta-item, .team-card, .license-card, .note, .info-cell) > * {
  position: relative;
  z-index: 1;
}

body.site-page :is(.card, .step, .info-card, .meta-item, .team-card):hover {
  transform: translateY(-4px);
  border-color: rgba(255, 126, 43, 0.22);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 126, 43, 0.05);
}

body.site-page .callout,
body.site-page .card-status,
body.site-page .note {
  background:
    radial-gradient(circle at top left, rgba(255, 106, 26, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(18, 22, 31, 0.98), rgba(11, 13, 20, 1));
  border-color: rgba(255, 126, 43, 0.18);
}

body.site-page .content h2,
body.site-page .legal h2,
body.site-page .legal-content h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 14px;
}

body.site-page .legal-content h2,
body.site-page .legal h2 {
  margin-top: 42px;
}

body.site-page .legal-content h3,
body.site-page .legal h3,
body.site-page .mail-card .mail-label,
body.site-page .license-label,
body.site-page .info-cell strong,
body.site-page .meta-item .k {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f2b180;
}

body.site-page .content p,
body.site-page .legal p,
body.site-page .legal-content p,
body.site-page .content li,
body.site-page .legal li,
body.site-page .legal-content li {
  color: #a6aec0;
  line-height: 1.85;
}

body.site-page .team-card {
  padding: 30px 24px;
}

body.site-page .team-avatar {
  box-shadow: 0 18px 50px rgba(255, 106, 26, 0.2);
}

body.site-page .mail-card {
  max-width: 820px;
  padding: 38px;
}

body.site-page .mail-card .mail-addr {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.04em;
}

body.site-page .license-card {
  max-width: 900px;
  margin: 0 auto 96px;
}

body.site-page .license-key {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 126, 43, 0.2);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.site-page .actions {
  margin-top: 22px;
}

body.site-page .step-num,
body.site-page .steps li::before {
  box-shadow: 0 14px 32px rgba(255, 106, 26, 0.16);
}

body.site-page .legal a,
body.site-page .legal-content a,
body.site-page .content a,
body.site-page .mail-card a,
body.site-page .callout a {
  color: #ffb56a;
}

body.auth-page {
  min-height: 100vh;
}

body.auth-page .auth-header {
  width: min(1180px, calc(100% - 48px));
  margin: 18px auto 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(10, 12, 18, 0.72);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.auth-page .auth-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #a9b2c3;
  font-size: 13px;
  font-weight: 700;
  transition: 0.2s ease;
}

body.auth-page .auth-back:hover {
  color: var(--text);
  border-color: rgba(255, 126, 43, 0.18);
  background: rgba(255, 126, 43, 0.08);
}

body.auth-page .auth-main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 82px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 28px;
  align-items: stretch;
}

body.auth-page .auth-story {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: 38px 36px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(255, 106, 26, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(18, 22, 31, 0.96), rgba(10, 12, 18, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

body.auth-page .auth-story::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.24), transparent 80%);
  pointer-events: none;
  opacity: 0.35;
}

body.auth-page .auth-story > * {
  position: relative;
  z-index: 1;
}

body.auth-page .auth-story h1 {
  font-size: clamp(50px, 6vw, 78px);
  line-height: 0.96;
  margin: 18px 0 18px;
}

body.auth-page .auth-lead {
  max-width: 560px;
  color: #cbd3e2;
  font-size: 17px;
  line-height: 1.8;
}

body.auth-page .auth-proofs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

body.auth-page .auth-proofs span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  font-weight: 700;
  color: #d7deeb;
}

body.auth-page .auth-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.auth-page .auth-feature {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.auth-page .auth-feature-kicker {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f2b180;
  font-family: "JetBrains Mono", monospace;
}

body.auth-page .auth-feature strong {
  display: block;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

body.auth-page .auth-feature p {
  margin-top: 8px;
  color: #a9b2c3;
  font-size: 13px;
  line-height: 1.7;
}

body.auth-page .card {
  position: relative;
  overflow: hidden;
  max-width: none;
  min-height: 100%;
  padding: 38px 34px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(18, 22, 31, 0.97), rgba(10, 12, 18, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.auth-page .card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 150px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 72%);
  pointer-events: none;
  opacity: 0.38;
}

body.auth-page .card > * {
  position: relative;
  z-index: 1;
}

body.auth-page .card-head h1 {
  font-size: 34px;
  margin-top: 12px;
}

body.auth-page .card-head p {
  color: #a8b1c4;
}

body.auth-page .btn-google {
  background: linear-gradient(180deg, #ffffff, #f6f7fb);
  color: #111827;
  box-shadow: 0 16px 34px rgba(255, 255, 255, 0.08);
}

body.auth-page .btn-google:hover {
  background: #ffffff;
}

body.auth-page .btn-magic {
  box-shadow: 0 16px 34px rgba(255, 106, 26, 0.24);
}

body.auth-page .perks {
  margin: 24px 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
}

body.auth-page .perks p,
body.auth-page .perks li {
  color: #aeb7c9;
}

body.auth-page .auth-note {
  font-size: 12px;
  color: var(--soft);
  line-height: 1.75;
  text-align: center;
}

body.dashboard-page {
  min-height: 100vh;
}

body.dashboard-page .shell {
  width: min(1460px, 100%);
  margin: 0 auto;
  grid-template-columns: minmax(260px, 304px) minmax(0, 1fr);
  gap: 22px;
  padding: 18px 18px 18px 0;
}

body.dashboard-page .sidebar {
  position: sticky;
  top: 18px;
  margin-left: 18px;
  height: calc(100vh - 36px);
  padding: 22px 0;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(18, 22, 31, 0.95), rgba(10, 12, 18, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(18px) saturate(135%);
}

body.dashboard-page .sidebar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 170px;
  background: radial-gradient(circle at top left, rgba(255, 106, 26, 0.16), transparent 46%);
  pointer-events: none;
}

body.dashboard-page .sidebar .logo,
body.dashboard-page .sidebar-bottom {
  position: relative;
  z-index: 1;
}

body.dashboard-page .sidebar .logo {
  margin: 0 12px 18px;
  padding: 4px 8px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.dashboard-page .nav-item {
  margin: 0 12px 4px;
  padding: 13px 15px;
  border-radius: 16px;
  color: #97a2b8;
  transition: 0.2s ease;
}

body.dashboard-page .nav-item:hover {
  color: #f4f6fb;
  background: rgba(255, 255, 255, 0.035);
}

body.dashboard-page .nav-item.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 106, 26, 0.18), rgba(255, 179, 71, 0.08));
  border: 1px solid rgba(255, 126, 43, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 16px 36px rgba(255, 106, 26, 0.12);
}

body.dashboard-page .nav-item .icon {
  opacity: 0.85;
}

body.dashboard-page .sidebar-bottom {
  margin: auto 12px 0;
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 24px;
}

body.dashboard-page .sign-out-btn {
  height: 40px;
  border-radius: 12px;
}

body.dashboard-page .main {
  max-width: none;
  padding: 28px 18px 56px 0;
}

body.dashboard-page .page-head {
  position: relative;
  overflow: hidden;
  margin-bottom: 26px;
  padding: 34px 36px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top left, rgba(255, 106, 26, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(18, 22, 31, 0.97), rgba(10, 12, 18, 0.99));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.dashboard-page .page-head::after {
  content: "";
  position: absolute;
  right: 34px;
  top: 24px;
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 126, 43, 0.85), rgba(255, 179, 71, 0.1));
  border-radius: 999px;
}

body.dashboard-page .page-title {
  font-size: clamp(34px, 4.3vw, 58px);
  line-height: 0.98;
  margin-bottom: 10px;
}

body.dashboard-page .page-sub {
  max-width: 720px;
  color: #a9b2c3;
}

body.dashboard-page .card-grid {
  gap: 18px;
  margin-bottom: 22px;
}

body.dashboard-page .card,
body.dashboard-page .dl-card,
body.dashboard-page .profile-hero,
body.dashboard-page .key-box {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(17, 20, 29, 0.96), rgba(11, 13, 20, 0.99));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.dashboard-page .card {
  padding: 28px;
}

body.dashboard-page .card:hover,
body.dashboard-page .quick-link:hover,
body.dashboard-page .dl-card:hover {
  border-color: rgba(255, 126, 43, 0.2);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 126, 43, 0.05);
}

body.dashboard-page .card.accent,
body.dashboard-page .profile-hero {
  background:
    radial-gradient(circle at top left, rgba(255, 106, 26, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(18, 22, 31, 0.98), rgba(11, 13, 20, 1));
  border-color: rgba(255, 126, 43, 0.16);
}

body.dashboard-page .card-label {
  color: #f2b180;
  letter-spacing: 0.14em;
}

body.dashboard-page .card-value {
  font-size: clamp(42px, 4vw, 58px);
}

body.dashboard-page .card-desc,
body.dashboard-page .quick-link span,
body.dashboard-page .toggle-desc,
body.dashboard-page .usage-bar-label,
body.dashboard-page .user-email,
body.dashboard-page .profile-email {
  color: #9ca6ba;
}

body.dashboard-page .quick-link {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

body.dashboard-page .usage-bar-track {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

body.dashboard-page .plan-badge.pro {
  background: rgba(255, 106, 26, 0.12);
  border-color: rgba(255, 126, 43, 0.2);
}

body.dashboard-page .mob-top,
body.dashboard-page .mob-tabs {
  background: rgba(18, 22, 31, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.dashboard-page .mob-top {
  margin: 18px 18px 0;
  border-radius: 20px 20px 0 0;
}

body.dashboard-page .mob-tabs {
  margin: 0 18px;
  border-top: none;
  border-radius: 0 0 20px 20px;
}

body.dashboard-page .mob-tab {
  flex: 1;
  text-align: center;
}

body.dashboard-page .mob-tab.active {
  color: #ffffff;
  border-bottom-color: var(--brand);
}

body.dashboard-page .btn {
  height: 46px;
  border-radius: 14px;
}

@media (max-width: 980px) {
  body.auth-page .auth-main {
    grid-template-columns: 1fr;
  }

  body.auth-page .auth-story {
    min-height: auto;
  }

  body.dashboard-page .shell {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  body.dashboard-page .main {
    padding: 18px 18px 56px;
  }
}

@media (max-width: 768px) {
  body.site-page .hero,
  body.site-page .page-hero,
  body.site-page .legal-page,
  body.site-page .content,
  body.site-page .legal,
  body.site-page .legal-content,
  body.auth-page .auth-header,
  body.auth-page .auth-main {
    width: min(100% - 28px, 100% - 28px);
  }

  body.site-page .legal,
  body.site-page .legal-content,
  body.site-page .mission,
  body.site-page .mail-card,
  body.site-page .license-card,
  body.site-page .callout {
    padding-left: 24px;
    padding-right: 24px;
  }

  body.auth-page .auth-feature-grid {
    grid-template-columns: 1fr;
  }

  body.dashboard-page .page-head,
  body.dashboard-page .card,
  body.dashboard-page .profile-hero,
  body.dashboard-page .dl-card,
  body.dashboard-page .key-box {
    border-radius: 24px;
  }
}
