:root {
  color-scheme: light;
  --blue: #1455d9;
  --blue-deep: #082c74;
  --blue-soft: #eaf1ff;
  --red: #e3313d;
  --red-soft: #fff0f1;
  --ink: #101828;
  --muted: #667085;
  --line: #dfe5ef;
  --paper: #ffffff;
  --canvas: #f5f8fd;
  --shadow: 0 18px 55px rgba(17, 52, 112, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  width: 100%;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea, a { font: inherit; }
img, svg, video { max-width: 100%; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  min-height: 78px;
  padding: 10px clamp(16px, 3vw, 42px);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(20, 85, 217, .1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 14px;
}

.brand-copy { display: grid; line-height: 1; }
.brand-name { font-size: 20px; font-weight: 850; letter-spacing: -.55px; }
.brand-tag { margin-top: 5px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}

.nav-item:hover { color: var(--blue); background: var(--blue-soft); }
.nav-item.active { color: #fff; background: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle, .mobile-menu-account { display: none; }

.control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  font-weight: 720;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.control:hover { transform: translateY(-1px); border-color: rgba(20,85,217,.35); box-shadow: 0 8px 24px rgba(20,85,217,.1); }
.control.primary { border-color: var(--red); background: var(--red); color: #fff; }

.flag-line {
  display: grid;
  grid-template-columns: 1.35fr 1fr .65fr;
  width: 54px;
  height: 5px;
  overflow: hidden;
  border-radius: 20px;
}
.flag-line i:nth-child(1) { background: #fff; border: 1px solid #e8ebf1; }
.flag-line i:nth-child(2) { background: var(--blue); }
.flag-line i:nth-child(3) { background: var(--red); }

.home-main { overflow: hidden; }

.hero {
  position: relative;
  padding: 102px 24px 78px;
  text-align: center;
}

.hero::before, .hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  filter: blur(18px);
  opacity: .42;
}
.hero::before { top: -170px; left: -210px; background: radial-gradient(circle, #bfd3ff, transparent 70%); }
.hero::after { right: -220px; bottom: -200px; background: radial-gradient(circle, #ffc4ca, transparent 70%); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  padding: 8px 13px;
  border: 1px solid rgba(20,85,217,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.8);
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 760;
  box-shadow: 0 8px 30px rgba(20,85,217,.07);
}

.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px var(--red-soft); }

.hero h1 {
  margin: 0 auto;
  max-width: 900px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: .98;
  letter-spacing: -.055em;
}

.hero h1 .blue { color: var(--blue); }
.hero h1 .red { color: var(--red); }

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

.hero-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.how-it-works { padding: 34px 24px 62px; background: var(--canvas); }
.how-it-works__inner { width: min(1080px, 100%); margin: 0 auto; }
.how-it-works__head { max-width: 720px; margin: 0 auto 30px; text-align: center; }
.how-it-works__head h2 { margin: 0; color: var(--blue-deep); font-size: clamp(34px, 4.5vw, 56px); letter-spacing: -.055em; }
.how-it-works__head > p:not(.section-kicker) { max-width: 590px; margin: 14px auto 0; color: var(--muted); font-size: clamp(16px, 1.8vw, 20px); line-height: 1.45; }
.idea-route { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0; margin: 0; list-style: none; }
.idea-route__step { position: relative; min-height: 235px; padding: 27px; overflow: hidden; border: 1px solid rgba(20,85,217,.11); border-radius: 25px; background: #fff; box-shadow: 0 12px 28px rgba(17,52,112,.07); }
.idea-route__step::after { position: absolute; right: 22px; bottom: 17px; color: rgba(20,85,217,.1); content: '→'; font-size: 47px; line-height: 1; }
.idea-route__number { display: block; margin-bottom: 48px; color: rgba(20,85,217,.28); font-size: 16px; font-weight: 850; letter-spacing: .08em; }
.idea-route__step p { position: relative; z-index: 1; margin: 0 0 11px; color: var(--blue-deep); font-size: clamp(21px, 2.2vw, 27px); font-weight: 800; letter-spacing: -.035em; }
.idea-route__step small { position: relative; z-index: 1; display: block; max-width: 290px; color: #596a89; font-size: 15px; line-height: 1.47; }
.idea-route__step--accent { border-color: var(--blue); background: var(--blue); box-shadow: 0 16px 36px rgba(20,85,217,.24); }
.idea-route__step--accent::after { color: rgba(255,255,255,.2); }
.idea-route__step--accent .idea-route__number { color: rgba(255,255,255,.58); }
.idea-route__step--accent p { color: #fff; }
.idea-route__step--accent small { color: #dce9ff; }
.product-section { margin-top: 22px; border-radius: 38px; }
.product-section:nth-of-type(odd) { background: #fff; }
.tool-card--locked { cursor: default; }
.tool-card--locked .tool-image > img { filter: blur(7px) saturate(.82); transform: scale(1.045); }
.tool-card--locked .tool-image::after { content: ''; position: absolute; inset: 0; background: rgba(9, 24, 55, .18); }
.locked-status { z-index: 2; }
.home-cta { margin: 22px auto 0; padding: 88px 24px; background: linear-gradient(125deg, #0d47b8, #195ddc 58%, #db3341); color: #fff; text-align: center; }
.home-cta h2 { max-width: 700px; margin: 0 auto; font-size: clamp(34px, 5vw, 58px); letter-spacing: -.05em; }
.home-cta p:not(.section-kicker) { max-width: 500px; margin: 16px auto 28px; opacity: .88; }
.home-cta .section-kicker { color: #fff; opacity: .8; }
.home-cta .control { margin: 4px; border-color: rgba(255,255,255,.35); }
.home-cta .control.primary { background: #fff; color: var(--blue-deep); border-color: #fff; }
.home-cta .free-offer__button { background: #fff; color: var(--blue-deep); box-shadow: 0 12px 28px rgba(4,28,75,.2); }
.profile-page { min-height: 100vh; background: var(--canvas); }
.profile-main { padding: 58px 24px 84px; }
.profile-page .header-actions > .control.primary[data-access] { visibility: hidden; }
.profile-card { width: min(980px, 100%); margin: 0 auto; padding: clamp(28px, 5vw, 58px); border: 1px solid rgba(20,85,217,.12); border-radius: 30px; background: #fff; box-shadow: var(--shadow); }
.profile-card h1 { margin: 0; color: var(--blue-deep); font-size: clamp(36px, 5vw, 58px); letter-spacing: -.055em; }
.profile-lead { margin: 14px 0 30px; color: var(--muted); font-size: 18px; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.profile-panel { padding: 24px; border: 1px solid rgba(20,85,217,.12); border-radius: 20px; background: var(--canvas); }
.profile-panel--wide { grid-column: 1 / -1; }
.profile-panel h2 { margin: 0 0 9px; color: var(--blue-deep); font-size: 24px; letter-spacing: -.035em; overflow-wrap: anywhere; }
.profile-panel p:not(.section-kicker) { min-height: 44px; margin: 0 0 18px; color: var(--muted); line-height: 1.45; }
.profile-panel .control[disabled] { opacity: .55; cursor: not-allowed; }
.profile-panel--settings { padding-block: 20px; }
.profile-balance { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(135deg,#f7f9ff,#eef2ff); }
.profile-balance h2 { display: flex; align-items: center; gap: 9px; margin-bottom: 2px; font-size: 36px; }
.profile-balance p:not(.section-kicker) { min-height: auto; margin: 0; }
.profile-balance__ruble { width: 37px; height: 37px; object-fit: contain; }
.profile-subscription { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px 18px; }
.profile-subscription.is-active { border-color: rgba(21,145,86,.25); background: linear-gradient(135deg,#f1fbf6,#eef7ff); }
.profile-subscription > div { min-width: 0; }
.profile-subscription .control { grid-column: 1 / -1; justify-self: start; }
.subscription-status { align-self: start; padding: 7px 11px; border-radius: 999px; background: #e7ebf3; color: var(--muted); font-size: 12px; font-weight: 800; }
.subscription-status.is-active { background: #d9f6e7; color: #087343; }
.profile-transactions__head { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.profile-transactions__head p:not(.section-kicker) { min-height: 0; margin-bottom: 12px; }
.transaction-list { overflow: hidden; border: 1px solid rgba(20,85,217,.1); border-radius: 14px; background: #fff; }
.transaction-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 16px; border-top: 1px solid rgba(20,85,217,.08); }
.transaction-row:first-child { border-top: 0; }
.transaction-row__main { display: grid; gap: 4px; min-width: 0; }
.transaction-row__main strong { color: var(--blue-deep); font-size: 15px; }
.transaction-row__main span { color: var(--muted); font-size: 12px; }
.transaction-row > b { color: var(--blue-deep); font-size: 15px; white-space: nowrap; }
.transaction-row > b.is-positive { color: #087343; }
.transaction-empty { min-height: 0 !important; margin: 0 !important; padding: 22px 16px; text-align: center; }
.referral-panel { background: linear-gradient(135deg,#244de9,#7a68f5); color: #fff; border: 0; }
.referral-panel .section-kicker, .referral-panel h2, .referral-panel p { color: #fff; }
.referral-panel p:not(.section-kicker) { min-height: auto; max-width: 650px; color: rgba(255,255,255,.83); }
.referral-copy { display: flex; gap: 10px; margin-top: 18px; }
.referral-copy input { min-width: 0; flex: 1; height: 46px; padding: 0 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; background: rgba(255,255,255,.18); color: #fff; font: 650 14px/1 var(--font); }
.referral-copy .control { background: #fff; color: var(--blue-deep); }
.referral-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 18px; }
.referral-stats div { display: grid; gap: 2px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.12); }
.referral-stats strong { font-size: 27px; line-height: 1; }
.referral-stats span { color: rgba(255,255,255,.75); font-size: 13px; }
.referral-notice { min-height: 18px; margin: 10px 0 0; font-size: 13px; }
.profile-setting { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid rgba(20,85,217,.1); }
.profile-setting:first-of-type { border-top: 0; padding-top: 4px; }
.profile-setting h2 { margin: 2px 0 0; font-size: 20px; }
.profile-setting small { color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.profile-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 9px; border: 1px solid rgba(20,85,217,.15); border-radius: 999px; background: #fff; color: var(--blue-deep); text-decoration: none; }
.profile-pill__avatar { position: relative; display: block; width: 18px; height: 18px; border: 1.8px solid currentColor; border-radius: 50%; }
.profile-pill__avatar::before { position: absolute; top: 3px; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: currentColor; content: ''; transform: translateX(-50%); }
.profile-pill__avatar::after { position: absolute; right: 3px; bottom: 2px; left: 3px; height: 5px; border-radius: 6px 6px 3px 3px; background: currentColor; content: ''; }
.profile-pill__email { white-space: nowrap; font-size: 13px; font-weight: 750; }
.admin-pill { border-color: rgba(20,85,217,.28); background: #edf3ff; }
.admin-pill__mark { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-size: 11px; }
.founder-panel { align-items: center; justify-content: space-between; gap: 24px; border-color: rgba(20,85,217,.25); background: linear-gradient(135deg,#f4f7ff,#e9f0ff); }
.founder-panel:not([hidden]) { display: flex; }
.founder-panel p:not(.section-kicker) { min-height: 0; margin-bottom: 0; }
.founder-panel .control { flex: 0 0 auto; }
.balance-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 11px 0 8px; border-radius: 999px; background: linear-gradient(135deg,#245dff,#4054ee); color: #fff; font-size: 14px; font-weight: 800; box-shadow: 0 7px 16px rgba(36,93,255,.2); }
.balance-ruble { width: 25px; height: 25px; margin: -3px 0 -3px -3px; object-fit: contain; }
.free-offer {
  width: min(1120px, calc(100% - 48px));
  margin: 34px auto 58px;
  padding: 14px;
  border: 1px solid rgba(20,85,217,.18);
  border-radius: 34px;
  background: var(--canvas);
  box-shadow: var(--shadow);
}
.free-offer__content {
  padding: clamp(44px, 7vw, 78px) 24px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 24px;
  background: #071d4c;
  color: #fff;
  text-align: center;
}
.free-offer .section-kicker { margin: 0 0 14px; color: #b9d2ff; }
.free-offer h2 { max-width: 850px; margin: 0 auto; font-size: clamp(36px, 5.5vw, 68px); line-height: .98; letter-spacing: -.055em; }
.free-offer p:not(.section-kicker) { margin: 20px auto 30px; color: #d8e3fb; font-size: clamp(17px, 2vw, 24px); }
.free-offer__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-width: min(100%, 390px);
  min-height: 60px;
  padding: 0 34px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(110deg, #2569ef, #1856dc);
  color: #fff;
  font-size: 21px;
  font-weight: 760;
  box-shadow: 0 12px 28px rgba(20,85,217,.3);
}
.free-offer__button b { font-size: 31px; font-weight: 500; line-height: .7; }
.free-offer__button::after { position: absolute; top: -80%; bottom: -80%; left: -45%; width: 28%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.56), transparent); content: ''; transform: skewX(-20deg); animation: tool-cta-shimmer 3.8s ease-in-out infinite; }
.free-offer__button:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(20,85,217,.38); }
.pricing-page { min-height: 100vh; background: #071d4c; }
.pricing-page .site-header { background: rgba(7,29,76,.94); border-bottom-color: rgba(255,255,255,.12); }
.pricing-page .brand-name, .pricing-page .nav-item.active { color: #fff; }
.pricing-page .brand-tag, .pricing-page .nav-item { color: #bdcbeb; }
.pricing-page .nav-item:hover { color: #fff; background: rgba(255,255,255,.11); }
.pricing-page .nav-item.active { background: var(--blue); }
.pricing-main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 74px 0 76px; }
.pricing-hero { max-width: 760px; margin: 0 auto 38px; color: #fff; text-align: center; }
.pricing-hero .section-kicker, .credits-panel .section-kicker { color: #9fc0ff; }
.pricing-hero h1 { margin: 0; font-size: clamp(42px, 6vw, 72px); letter-spacing: -.06em; }
.pricing-hero > p:not(.section-kicker) { max-width: 580px; margin: 18px auto 0; color: #c2cde5; font-size: clamp(17px, 2vw, 22px); line-height: 1.45; }
.pricing-switch { display: inline-flex; gap: 4px; margin-top: 29px; padding: 4px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.08); }
.pricing-switch button { min-height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: #c9d4eb; font-weight: 750; cursor: pointer; }
.pricing-switch button.is-active { background: #fff; color: var(--blue-deep); }
.subscription-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 18px; }
.subscription-plan { position: relative; display: flex; flex-direction: column; min-height: 440px; padding: 28px; border: 1px solid rgba(255,255,255,.5); border-radius: 28px; background: #fff; color: var(--blue-deep); box-shadow: 0 18px 45px rgba(1,12,41,.26); }
.subscription-plan--featured { min-height: 560px; padding: 40px; border: 2px solid #5f91ff; transform: translateY(-16px); box-shadow: 0 24px 58px rgba(15,69,196,.34); }
.subscription-plan__badge { position: absolute; top: -16px; left: 50%; margin: 0; padding: 8px 16px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 820; white-space: nowrap; transform: translateX(-50%); }
.subscription-plan__star { position: absolute; top: 24px; right: 25px; display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid #8eb8ff; border-radius: 17px; background: linear-gradient(145deg,#2976ff,#1748c9); box-shadow: 0 10px 21px rgba(22,82,210,.3), inset 0 1px rgba(255,255,255,.35); color: #fff; font-size: 33px; line-height: 1; text-shadow: 0 2px 7px rgba(255,255,255,.5); transform: rotate(8deg); }
.subscription-plan__eyebrow { margin: 0 0 18px; color: var(--red); font-size: 12px; font-weight: 820; letter-spacing: .1em; text-transform: uppercase; }
.subscription-plan h2 { min-height: 62px; margin: 0; font-size: clamp(25px, 2.4vw, 34px); line-height: 1.05; letter-spacing: -.045em; }
.subscription-plan--featured h2 { font-size: clamp(30px, 2.8vw, 40px); }
.subscription-plan__price { margin: 27px 0 4px; color: #101b40; font-size: clamp(40px, 4vw, 52px); font-weight: 850; letter-spacing: -.07em; line-height: .95; }
.subscription-plan--featured .subscription-plan__price { margin-top: 38px; font-size: clamp(66px, 7vw, 92px); }
.subscription-plan__price small { color: var(--blue); font-size: 19px; font-weight: 760; letter-spacing: -.03em; }
.subscription-plan__lead { min-height: 52px; margin: 17px 0 20px; color: #5b6b88; line-height: 1.42; }
.subscription-plan ul { display: grid; gap: 11px; margin: 0 0 28px; padding: 22px 0 0; border-top: 1px solid #e5eaf4; color: #50617f; font-size: 14px; line-height: 1.38; list-style: none; }
.subscription-plan li { position: relative; padding-left: 19px; }
.subscription-plan li::before { position: absolute; left: 0; color: var(--blue); content: '•'; font-size: 20px; line-height: .7; }
.subscription-plan button, .credits-panel button { width: 100%; min-height: 52px; margin-top: auto; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 790; cursor: pointer; }
.subscription-plan button:hover { background: #0f48be; }
.subscription-plan--featured button { background: var(--red); }
.subscription-plan--featured button:hover { background: #c82432; }
.credits-panel { max-width: 680px; margin: 0 auto; padding: 52px 28px; border: 1px solid rgba(255,255,255,.18); border-radius: 28px; background: rgba(255,255,255,.08); color: #fff; text-align: center; }
.credits-panel h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.05em; }
.credits-panel > p:not(.section-kicker) { max-width: 530px; margin: 16px auto 28px; color: #c7d3eb; line-height: 1.52; }
.credits-panel button { width: auto; min-width: 220px; padding: 0 20px; background: rgba(255,255,255,.15); color: #d9e5fb; cursor: not-allowed; }
.pricing-notice { min-height: 24px; margin: 28px 0 0; color: #c7d5ed; text-align: center; }
.coin-packs__head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin: 0 0 22px; color: #fff; }
.coin-packs__head h2 { margin: 0; font-size: clamp(32px,4.3vw,52px); letter-spacing: -.055em; }
.coin-packs__head > p { max-width: 400px; margin: 0; color: #c7d3eb; line-height: 1.5; }
.coin-packs__grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; align-items: stretch; }
.coin-pack { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 508px; padding: 19px; overflow: hidden; border: 1px solid rgba(255,222,137,.28); border-radius: 24px; background: linear-gradient(155deg,rgba(28,48,90,.98),rgba(8,22,56,.99)); box-shadow: 0 18px 43px rgba(0,0,0,.21); color: #fff; }
.coin-pack::before { position: absolute; top: -65px; right: -55px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255,189,44,.11); content: ''; filter: blur(5px); }
.coin-pack > img { position: relative; z-index: 1; display: block; width: min(100%,205px); height: 142px; margin: -3px auto 5px; object-fit: contain; filter: drop-shadow(0 13px 16px rgba(0,0,0,.33)); }
.coin-pack__eyebrow { margin: 10px 0 8px; color: #ffd578; font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.coin-pack h3 { margin: 0; font-size: 26px; letter-spacing: -.04em; }
.coin-pack__coins { margin: 17px 0 2px; color: #fff; font-size: 39px; font-weight: 850; letter-spacing: -.06em; line-height: 1; }
.coin-pack__coins span { display: block; margin-top: 5px; color: #ffdb87; font-size: 13px; font-weight: 780; letter-spacing: -.01em; }
.coin-pack__price { margin: 14px 0 0; color: #fff; font-size: 21px; font-weight: 800; }
.coin-pack__lead { min-height: 43px; margin: 11px 0 13px; color: #c6d2ed; font-size: 13px; line-height: 1.42; }
.coin-pack ul { display: grid; gap: 7px; margin: 0 0 19px; padding: 12px 0 0; border-top: 1px solid rgba(255,255,255,.14); color: #d9e5fa; font-size: 12px; line-height: 1.35; list-style: none; }
.coin-pack li { position: relative; padding-left: 16px; }
.coin-pack li::before { position: absolute; left: 0; color: #ffd46f; content: '✦'; }
.coin-pack li b { color: #ffd46f; }
.coin-pack button { width: 100%; min-height: 48px; margin-top: auto; border: 1px solid rgba(255,224,142,.48); border-radius: 999px; background: linear-gradient(110deg,#ffc837,#e99513); box-shadow: 0 9px 19px rgba(0,0,0,.22); color: #281500; font-weight: 840; cursor: pointer; }
.coin-pack button:hover { filter: brightness(1.07); }
.coin-pack--featured { border: 2px solid #ffd267; background: linear-gradient(155deg,#243e27,#0d2318); box-shadow: 0 20px 58px rgba(0,0,0,.32), 0 0 0 1px rgba(255,205,93,.16); transform: translateY(-10px); }
.coin-pack--featured::before { background: rgba(105,227,121,.16); }
.coin-pack--featured button { background: linear-gradient(110deg,#f6ca67,#fff0ae); }
.coin-pack__badge { position: absolute; z-index: 2; top: 15px; right: 15px; margin: 0; padding: 7px 10px; border-radius: 999px; background: #edba52; color: #382000; font-size: 11px; font-weight: 880; letter-spacing: .06em; text-transform: uppercase; }
.site-footer { padding: 28px; background: #071d4c; color: #dce7ff; text-align: center; font-size: 13px; }
.site-footer button, .site-footer a { border: 0; background: transparent; color: #fff; text-decoration: underline; cursor: pointer; }
.product-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 18px; }
.product-modal__shade { position: absolute; inset: 0; background: rgba(5, 16, 39, .54); backdrop-filter: blur(7px); }
.product-modal__card { position: relative; width: min(620px, 100%); max-height: calc(100vh - 36px); overflow: auto; padding: 30px; border-radius: 24px; background: #fff; box-shadow: 0 28px 80px rgba(0,0,0,.28); }
.product-modal__card:has(.coin-gift) { width: min(700px, 100%); padding: 0 30px 30px; overflow: hidden; border: 1px solid rgba(242,74,50,.14); background: #fffdf9; }
.coin-gift { position: relative; display: grid; grid-template-columns: 1fr 230px; min-height: 224px; margin: 0 -30px 25px; padding: 31px 30px 25px; overflow: hidden; background: linear-gradient(115deg,#fff0c3,#ffd46a 47%,#ef6242); }
.coin-gift::after { position: absolute; right: -40px; bottom: -70px; width: 230px; height: 230px; border-radius: 50%; background: rgba(255,255,255,.18); content: ''; }
.coin-gift > div { position: relative; z-index: 1; }
.coin-gift__eyebrow { margin: 0 0 7px !important; color: #a7321e !important; font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.product-modal__card .coin-gift h2 { max-width: 340px; margin: 0 0 9px; color: #8f221c; font-size: clamp(31px,5vw,43px); line-height: .96; }
.product-modal__card .coin-gift p:not(.coin-gift__eyebrow) { max-width: 350px; margin: 0; color: #713228; font-size: 15px; line-height: 1.45; }
.coin-gift img { position: absolute; z-index: 1; right: 6px; bottom: -18px; width: 263px; max-width: 43%; filter: drop-shadow(0 16px 12px rgba(99,31,10,.27)); transform: rotate(-4deg); }
.product-modal__card .auth-credentials h3 { margin: 0 0 2px; color: var(--blue-deep); font-size: 20px; letter-spacing: -.025em; }
.product-modal__card:has(.coin-gift) .control.primary { width: 100%; justify-content: center; min-height: 52px; border: 0; border-radius: 14px; background: linear-gradient(100deg,#176fe8,#2454df); box-shadow: 0 10px 20px rgba(28,91,220,.24); font-size: 16px; }
.product-modal__card:has(.coin-gift) .auth-credentials label small { display: block; margin: -3px 0 17px; color: #8993a8; font-size: 12px; font-weight: 500; line-height: 1.35; }
.product-modal__card:has(.coin-gift) .modal-x { z-index: 3; top: 14px; right: 15px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.7); color: #8f221c; line-height: 1; }
.product-modal__card h2 { margin: 0 0 10px; font-size: 31px; letter-spacing: -.04em; }.product-modal__card p { color: var(--muted); }.product-modal__card label { display: block; margin-top: 18px; font-weight: 700; }.product-modal__card input { width: 100%; margin: 8px 0 14px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; font: inherit; }.modal-x { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; font-size: 28px; color: var(--muted); cursor: pointer; }.modal-note,.modal-error { font-size: 12px; }.modal-error { color: #b4232d !important; }.benefit-banner { margin: 0 32px 18px 0; padding: 10px 12px; border-radius: 10px; background: #e8f8ef; color: #087443; font-weight: 750; }.modal-step { color: var(--red)!important; font-size: 12px; font-weight: 800; text-transform: uppercase; }.modal-dots { display: flex; gap: 6px; margin: 24px 0; }.modal-dots i { width: 8px; height: 8px; border-radius: 50%; background: #d9e2f3; }.modal-dots i.active { background: var(--blue); }.modal-actions { display: flex; justify-content: space-between; gap: 12px; }.pricing-tabs { display: flex; gap: 24px; margin: 22px 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--muted); }.pricing-tabs b { color: var(--blue); }.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }.pricing-grid article { padding: 16px; border: 1px solid var(--line); border-radius: 14px; }.pricing-grid .featured { border: 2px solid var(--blue); }.pricing-grid h3 { margin: 8px 0; font-size: 28px; }.pricing-grid p { min-height: 44px; font-size: 13px; }
.register-details { margin: 4px 0 16px; padding: 14px; border: 1px solid rgba(20,85,217,.13); border-radius: 14px; background: #f7f9ff; }
.register-details__intro { color: var(--blue-deep); font-size: 13px; font-weight: 780; }
.register-details__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.register-details__grid label { margin-top: 12px !important; font-size: 13px; }
.register-details__grid input { min-width: 0; margin-bottom: 0 !important; }
.register-gender { display: flex; gap: 8px; align-items: center; margin: 14px 0 0; padding: 0; border: 0; }
.register-gender legend { margin-bottom: 7px; color: var(--blue-deep); font-size: 13px; font-weight: 760; }
.register-gender label { display: inline-flex !important; align-items: center; gap: 6px; margin: 0 !important; padding: 8px 10px; border: 1px solid rgba(20,85,217,.18); border-radius: 999px; background: #fff; color: var(--blue-deep); font-size: 13px; cursor: pointer; }
.register-gender input { width: auto !important; margin: 0 !important; padding: 0 !important; accent-color: var(--blue); }

.tool-section {
  position: relative;
  padding: 36px 24px 96px;
  background: var(--canvas);
  border-radius: 48px 48px 0 0;
}

.tool-inner { width: min(1080px, 100%); margin: 0 auto; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.section-kicker { margin: 0 0 8px; color: var(--red); font-size: 12px; font-weight: 820; letter-spacing: .12em; text-transform: uppercase; }
.section-head h2 { margin: 0; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.04em; }
.section-note { max-width: 260px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; text-align: right; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.tab {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}
.tab:hover { color: var(--blue); background: var(--blue-soft); }
.tab[aria-selected="true"] { color: #fff; background: var(--blue); }

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

.tool-card {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(20,85,217,.12);
  border-radius: var(--radius);
  background: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(20,85,217,.03);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tool-card:hover { transform: translateY(-6px); border-color: rgba(20,85,217,.34); box-shadow: var(--shadow); }
.tool-card--locked { cursor: default; }
.tool-card--locked:hover { transform: none; border-color: rgba(20,85,217,.12); box-shadow: none; }
.tool-card--locked .tool-image img { filter: blur(8px); transform: scale(1.05); opacity: .72; }
.tool-card--locked:hover img { transform: scale(1.05); }
.locked-status { position: absolute; z-index: 4; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; background: rgba(3, 11, 28, .24); color: #fff; text-align: center; }
.locked-status b { display: grid; place-items: center; width: 45px; height: 45px; color: #fff; font-size: 28px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.38)); }
.locked-status span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; background: rgba(4,15,38,.48); color: #fff; font-size: 12px; font-weight: 820; }

.tool-image { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #06132f; }
.tool-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,11,29,0) 32%, rgba(3,11,28,.18) 46%, rgba(3,11,28,.97) 82%, #030b1c 100%); }
.tool-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tool-card:hover img { transform: scale(1.04); }
.tool-image--placeholder { background: radial-gradient(circle at 24% 22%, rgba(101,159,255,.55), transparent 32%), radial-gradient(circle at 78% 72%, rgba(224,233,255,.88), transparent 38%), linear-gradient(145deg, #dbe8ff, #f5f8ff 55%, #c9dcff); }
.tool-image--placeholder::after { background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(15,56,132,.1) 48%, rgba(4,30,82,.58) 100%); }
.tool-card--placeholder { cursor: default; }
.tool-card--placeholder:hover { transform: none; border-color: rgba(20,85,217,.12); box-shadow: 0 1px 0 rgba(20,85,217,.03); }

.tool-body { position: absolute; z-index: 2; right: 14px; bottom: 14px; left: 14px; min-height: 31%; padding: 18px 20px; border: 1px solid rgba(255,255,255,.86); border-radius: 22px; background: rgba(255,255,255,.8); box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 12px 28px rgba(4,28,75,.18); color: #082c74; text-align: left; backdrop-filter: blur(16px); }
.tool-label { display: inline-flex; margin-bottom: 12px; color: #ff5d66; font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.tool-body h3 { max-width: calc(100% - 18px); margin: 0; color: #082c74; font-size: clamp(20px, 2vw, 25px); line-height: 1.08; letter-spacing: -.035em; }
.tool-body p { margin: 10px 0 0; color: #52627e; font-size: 16px; line-height: 1.35; }
.tool-panel-head { display: flex; align-items: flex-start; gap: 14px; }
.tool-icon { display: grid; flex: 0 0 auto; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: rgba(255,255,255,.9); color: #2566e8; font-size: 34px; line-height: 1; box-shadow: 0 5px 14px rgba(10,43,105,.09); }
.tool-cta { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 48px; margin-top: 18px; overflow: hidden; border-radius: 999px; background: linear-gradient(110deg, #2569ef, #1856dc); color: #fff; font-size: 17px; font-weight: 720; box-shadow: 0 8px 18px rgba(20,85,217,.25); }
.tool-cta b { font-size: 25px; font-weight: 500; line-height: .7; }
.tool-cta::after { position: absolute; top: -80%; bottom: -80%; left: -45%; width: 30%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.56), transparent); content: ''; transform: skewX(-20deg); animation: tool-cta-shimmer 3.8s ease-in-out infinite; }
@keyframes tool-cta-shimmer { 0%, 56% { left: -45%; } 78%, 100% { left: 125%; } }

@media (min-width: 861px) {
  .curated-tools .tool-body { height: 180px; min-height: 0; }
  .curated-tools .tool-cta { height: 40px; min-height: 40px; margin-top: 11px; font-size: 15px; }
  .curated-tools .tool-cta b { font-size: 21px; }
  .tool-card--featured .tool-body { right: 18px; bottom: 18px; left: 18px; min-height: 31%; padding: 13px 15px; border-radius: 18px; }
  .tool-card--compact .tool-body { right: 18px; bottom: 18px; left: 18px; min-height: 31%; padding: 13px 15px; border-radius: 18px; }
  .tool-card--featured .tool-panel-head { gap: 11px; }
  .tool-card--featured .tool-icon { width: 42px; height: 42px; border-radius: 13px; font-size: 25px; }
  .tool-card--featured .tool-body h3 { max-width: none; font-size: clamp(19px, 1.65vw, 23px); line-height: 1.06; white-space: nowrap; }
  .tool-card--compact .tool-body h3 { max-width: none; font-size: clamp(19px, 1.65vw, 23px); line-height: 1.06; white-space: nowrap; }
  .tool-card--featured .tool-body p { margin-top: 5px; font-size: clamp(13px, 1.05vw, 16px); line-height: 1.25; }
  .tool-card--compact .tool-body p { margin-top: 5px; font-size: clamp(13px, 1.05vw, 16px); line-height: 1.25; }
  .tool-card--featured .tool-cta { min-height: 40px; margin-top: 11px; font-size: 15px; }
  .tool-card--compact .tool-cta { min-height: 40px; margin-top: 11px; font-size: 15px; }
  .tool-card--featured .tool-cta b { font-size: 21px; }
  .tool-card--compact .tool-cta b { font-size: 21px; }
}
.tool-arrow { position: absolute; z-index: 3; top: 18px; right: 18px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: rgba(4,15,38,.6); color: #fff; font-weight: 850; backdrop-filter: blur(8px); }

.agent-card {
  grid-column: 1 / -1;
  position: relative;
  min-height: 290px;
  padding: 44px;
  overflow: hidden;
  border: 1px solid rgba(20,85,217,.15);
  border-radius: 28px;
  background: linear-gradient(115deg, #fff 0%, #eef4ff 58%, #fff0f1 100%);
}
.agent-card::after { content: "Н"; position: absolute; right: 4%; bottom: -31%; color: rgba(20,85,217,.08); font-size: 280px; font-weight: 950; line-height: 1; }
.agent-card h3 { position: relative; z-index: 1; margin: 0 0 12px; max-width: 560px; font-size: 38px; letter-spacing: -.04em; }
.agent-card p { position: relative; z-index: 1; max-width: 560px; margin: 0 0 24px; color: var(--muted); line-height: 1.6; }

/* Agent */
.agent-page { background: var(--canvas); }
.agent-main { overflow: hidden; }
.agent-hero { position: relative; min-height: 535px; overflow: hidden; background: #04102a; color: #fff; }
.agent-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,10,29,.98) 0%, rgba(3,13,34,.92) 28%, rgba(3,13,34,.35) 56%, rgba(3,13,34,.08) 100%); }
.agent-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.agent-hero-copy { position: relative; z-index: 1; width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding: 102px 0; }
.agent-kicker { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; color: #ff7580; font-size: 12px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.agent-kicker span { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(227,49,61,.17); }
.agent-hero h1 { max-width: 590px; margin: 0; font-size: clamp(43px, 5.3vw, 74px); line-height: .97; letter-spacing: -.06em; }
.agent-hero-copy > p:not(.agent-kicker) { max-width: 530px; margin: 23px 0 28px; color: rgba(255,255,255,.73); font-size: 17px; line-height: 1.6; }
.agent-scroll { display: inline-flex; align-items: center; gap: 12px; padding: 12px 15px 12px 17px; border: 1px solid rgba(255,255,255,.26); border-radius: 14px; background: rgba(255,255,255,.08); font-weight: 750; }
.agent-scroll:hover { background: rgba(255,255,255,.16); }
.agent-scroll b { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--red); }
.agent-workspace, .agent-scenarios { width: min(1080px, calc(100% - 48px)); margin: 0 auto; }
.agent-workspace { position: relative; z-index: 2; margin-top: -48px; padding: 32px; border: 1px solid rgba(20,85,217,.13); border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.workspace-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.workspace-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 43px); letter-spacing: -.045em; }
.agent-status { display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; border-radius: 999px; background: #effbf5; color: #137749; font-size: 12px; font-weight: 800; white-space: nowrap; }
.agent-status i { width: 8px; height: 8px; border-radius: 50%; background: #22b573; box-shadow: 0 0 0 4px rgba(34,181,115,.12); }
.agent-layout { display: grid; grid-template-columns: 1.08fr .92fr; gap: 18px; }
.task-form, .agent-plan { min-width: 0; border: 1px solid var(--line); border-radius: 20px; }
.task-form { padding: 22px; background: linear-gradient(145deg, #fff, #f4f7ff); }
.task-form label { display: block; margin-bottom: 12px; font-size: 16px; font-weight: 820; }
.task-form textarea { display: block; width: 100%; padding: 15px; resize: vertical; border: 1px solid rgba(20,85,217,.15); border-radius: 14px; outline: 0; background: #fff; color: var(--ink); line-height: 1.52; }
.task-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(20,85,217,.1); }
.task-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.task-chip { min-height: 35px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 12px; font-weight: 760; cursor: pointer; }
.task-chip.active { border-color: var(--blue); background: var(--blue); color: #fff; }
.task-submit { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.task-submit span { max-width: 220px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.task-submit .control b { margin-left: 10px; font-size: 18px; }
.agent-plan { padding: 22px; background: #071a43; color: #fff; }
.plan-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font-weight: 820; }
.plan-head em { padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.65); font-size: 10px; font-style: normal; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.plan-list { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.plan-list li { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.06); }
.plan-list i { display: grid; flex: 0 0 auto; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: rgba(60,125,255,.25); color: #a9c8ff; font-size: 10px; font-style: normal; font-weight: 850; }
.plan-list b, .plan-list small { display: block; }
.plan-list b { margin: 1px 0 4px; font-size: 13px; }
.plan-list small { color: rgba(255,255,255,.6); font-size: 11px; line-height: 1.35; }
.agent-plan.planned { border-color: rgba(55,180,117,.5); box-shadow: inset 0 0 0 1px rgba(55,180,117,.3); }
.agent-plan.planned .plan-head em { background: rgba(34,181,115,.2); color: #8be8bb; }
.agent-scenarios { padding: 70px 0 94px; }
.scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.scenario-card { position: relative; min-height: 218px; padding: 23px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; text-align: left; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.scenario-card:nth-child(2) { background: linear-gradient(145deg, #fff, #f1f5ff); }
.scenario-card:nth-child(3) { background: linear-gradient(145deg, #fff, #fff2f3); }
.scenario-card:hover { transform: translateY(-5px); border-color: rgba(20,85,217,.35); box-shadow: var(--shadow); }
.scenario-card > span { display: block; margin-bottom: 31px; color: var(--red); font-size: 12px; font-weight: 850; letter-spacing: .12em; }
.scenario-card h3 { max-width: 85%; margin: 0 0 9px; font-size: 22px; letter-spacing: -.035em; }
.scenario-card p { max-width: 275px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.scenario-card > b { position: absolute; right: 20px; bottom: 19px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; }

/* Templates */
.templates-page { background: var(--canvas); }
.templates-main { width: min(1280px, calc(100% - 48px)); margin: 0 auto; padding: 70px 0 100px; }
.templates-intro { position: relative; padding: 18px 0 38px; }
.templates-intro::after { content: ""; position: absolute; z-index: -1; top: -110px; right: -170px; width: 440px; height: 320px; border-radius: 50%; background: radial-gradient(ellipse, rgba(227,49,61,.14), transparent 68%); filter: blur(12px); }
.templates-intro h1 { max-width: 700px; margin: 0; font-size: clamp(44px, 6vw, 74px); line-height: .97; letter-spacing: -.06em; }
.templates-intro h1 span { color: var(--blue); }
.templates-intro > p:not(.section-kicker) { max-width: 610px; margin: 19px 0 26px; color: var(--muted); font-size: 17px; line-height: 1.58; }
.template-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.template-filter { min-height: 41px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 13px; font-weight: 760; cursor: pointer; }
.template-filter.active { border-color: var(--blue); background: var(--blue); color: #fff; }
.templates-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.template-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid rgba(20,85,217,.13); border-radius: 20px; background: #fff; box-shadow: 0 1px 0 rgba(20,85,217,.02); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.template-card:hover { transform: translateY(-5px); border-color: rgba(20,85,217,.35); box-shadow: var(--shadow); }
.template-card > img { display: block; width: 100%; aspect-ratio: 1.18 / 1; object-fit: cover; background: #0b1a39; }
.template-card > div { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 17px; }
.template-card span { margin-bottom: 9px; color: var(--red); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.template-card h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.1; letter-spacing: -.03em; }
.template-card p { margin: 0 0 15px; color: var(--muted); font-size: 12px; line-height: 1.46; }
.template-card button { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding: 0; border: 0; background: transparent; color: var(--blue); font-size: 12px; font-weight: 820; cursor: pointer; }
.template-card button b { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: var(--blue-soft); font-size: 15px; }
.template-card--active a { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: var(--blue); font-size: 12px; font-weight: 820; }
.template-card--locked { position: relative; }
.template-card--locked > img { filter: blur(8px); transform: scale(1.05); opacity: .7; }
.template-locked-status { position: absolute; top: 0; right: 0; left: 0; display: grid; place-content: center; justify-items: center; gap: 7px; height: min(100%, 220px); background: rgba(3,11,28,.26); color: #fff; }
.template-locked-status b { font-size: 25px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.45)); }
.template-locked-status span { padding: 6px 9px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; background: rgba(3,11,28,.46); color: #fff; font-size: 10px; font-weight: 820; }
.template-audiences { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.template-audiences span { padding: 7px 11px; border-radius: 999px; background: #e9f0ff; color: #31578f; font-size: 12px; font-weight: 720; }
.template-category { display: none; }
.template-category.is-active { display: block; animation: template-category-in .24s ease; }
@keyframes template-category-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.template-category__head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin: 8px 0 22px; }
.template-category__head h2 { max-width: 720px; margin: 0; color: var(--blue-deep); font-size: clamp(30px, 4vw, 46px); line-height: 1; letter-spacing: -.05em; }
.template-category__head > p { max-width: 330px; margin: 0; color: var(--muted); line-height: 1.45; }
.template-spotlight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.template-spotlight { position: relative; display: block; min-width: 0; overflow: hidden; border: 1px solid rgba(20,85,217,.13); border-radius: 24px; background: #071a43; color: #fff; text-decoration: none; }
.template-spotlight > img { display: block; width: 100%; aspect-ratio: 1 / 1.16; object-fit: cover; transition: transform .35s ease; }
.template-spotlight::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,11,28,0) 29%, rgba(3,11,28,.9) 88%); content: ''; }
.template-spotlight > div { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; padding: 22px; }
.template-spotlight span { display: block; margin-bottom: 7px; color: #c8d8ff; font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.template-spotlight h3 { margin: 0 0 7px; color: #fff; font-size: clamp(20px, 2.1vw, 26px); line-height: 1.04; letter-spacing: -.04em; }
.template-spotlight p { margin: 0 0 13px; color: rgba(255,255,255,.82); font-size: 13px; line-height: 1.42; }
.template-spotlight b { color: #fff; font-size: 12px; }
.template-spotlight--active:hover > img { transform: scale(1.05); }
.template-subsection { margin-top: 30px; }
.template-subsection > h3 { margin: 0 0 12px; color: var(--blue-deep); font-size: 20px; letter-spacing: -.03em; }
.template-mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.template-mini-grid article { padding: 17px; border: 1px solid rgba(20,85,217,.12); border-radius: 17px; background: #fff; }
.template-mini-grid b { color: var(--blue-deep); font-size: 15px; }
.template-mini-grid p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.template-example-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 12px; }
.template-example-card { display: grid; grid-template-columns: 128px minmax(0,1fr); gap: 14px; min-width: 0; overflow: hidden; padding: 11px; border: 1px solid rgba(20,85,217,.16); border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(17,52,112,.06); color: var(--blue-deep); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.template-example-card:hover { transform: translateY(-3px); border-color: rgba(20,85,217,.38); box-shadow: var(--shadow); }
.template-example-card img { width: 128px; height: 136px; border-radius: 12px; object-fit: cover; object-position: center 24%; }
.template-example-card > div { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 3px 3px 3px 0; }
.template-example-card span { margin-bottom: 6px; color: var(--red); font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.template-example-card b { color: var(--blue-deep); font-size: 18px; letter-spacing: -.03em; }
.template-example-card p { margin: 7px 0 11px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.template-example-card em { margin-top: auto; color: var(--blue); font-size: 12px; font-style: normal; font-weight: 820; }
.pinterest-page { min-height: 100vh; background: var(--canvas); }
.pinterest-main { width: min(1100px, calc(100% - 48px)); margin: 0 auto; padding: 58px 0 90px; }
.pinterest-return { display: inline-flex; margin: 0 0 15px; color: var(--blue-deep); font-size: 14px; font-weight: 780; text-decoration: none; }
.pinterest-return:hover { color: var(--blue); }
.pinterest-hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 44px; padding: clamp(28px,5vw,62px); overflow: hidden; border-radius: 32px; background: linear-gradient(128deg,#0e4ec0,#286bed 58%,#d34b71); color: #fff; }
.pinterest-hero h1 { max-width: 570px; margin: 0; font-size: clamp(42px,5.5vw,68px); line-height: .96; letter-spacing: -.06em; }
.pinterest-hero h1 span { color: #fff; }
.pinterest-hero p:not(.section-kicker) { max-width: 530px; margin: 19px 0 0; color: rgba(255,255,255,.82); font-size: 17px; line-height: 1.55; }
.pinterest-hero .section-kicker { color: #dbe8ff; }
.pinterest-hero > img { width: 100%; max-height: 370px; border-radius: 22px; object-fit: cover; object-position: center 34%; box-shadow: 0 18px 44px rgba(1,15,51,.25); }
.pinterest-carousel { margin-top: 38px; }
.pinterest-section-head, .pinterest-studio__head { display: flex; align-items: end; justify-content: space-between; gap: 22px; }
.pinterest-section-head h2, .pinterest-studio__head h2 { margin: 0; color: var(--blue-deep); font-size: clamp(27px,3.4vw,39px); letter-spacing: -.05em; }
.pinterest-section-head > a { color: var(--blue); font-size: 14px; font-weight: 780; white-space: nowrap; }
.pinterest-carousel__track { display: grid; grid-auto-columns: minmax(180px,220px); grid-auto-flow: column; gap: 12px; margin-top: 17px; overflow-x: auto; padding-bottom: 7px; scrollbar-width: thin; }
.pinterest-carousel__track a { overflow: hidden; border: 1px solid rgba(20,85,217,.12); border-radius: 17px; background: #fff; color: var(--blue-deep); text-decoration: none; }
.pinterest-carousel__track a.is-current { border: 2px solid var(--blue); }
.pinterest-carousel__track img { display: block; width: 100%; height: 128px; object-fit: cover; object-position: center 18%; }
.pinterest-carousel__track span { display: block; padding: 10px 11px; font-size: 12px; font-weight: 760; }
.pinterest-studio { margin-top: 40px; padding: clamp(24px,4vw,44px); border: 1px solid rgba(20,85,217,.13); border-radius: 30px; background: #fff; box-shadow: var(--shadow); }
.pinterest-help { min-height: 40px; padding: 0 14px; border: 1px solid rgba(20,85,217,.18); border-radius: 999px; background: #f2f6ff; color: var(--blue-deep); font-weight: 750; cursor: pointer; }
.pinterest-studio form { max-width: 760px; margin: 32px auto 0; }
.pinterest-step { display: flex; gap: 13px; align-items: flex-start; margin: 22px 0 13px; }
.pinterest-step > span { display: grid; flex: 0 0 auto; width: 31px; height: 31px; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; font-weight: 850; }
.pinterest-step h3 { margin: 1px 0 4px; color: var(--blue-deep); font-size: 21px; letter-spacing: -.03em; }
.pinterest-step p { margin: 0; color: var(--muted); line-height: 1.43; }
.pinterest-url, .pinterest-comment { display: grid; gap: 8px; color: var(--blue-deep); font-size: 13px; font-weight: 760; }
.pinterest-url input, .pinterest-comment textarea, .pinterest-fields input { width: 100%; box-sizing: border-box; border: 1px solid rgba(20,85,217,.18); border-radius: 14px; background: #f8faff; color: var(--ink); font: inherit; outline: none; }
.pinterest-url input { min-height: 54px; padding: 0 16px; }
.pinterest-divider { position: relative; margin: 25px 0; border-top: 1px solid var(--line); text-align: center; }
.pinterest-divider span { display: inline-block; padding: 0 12px; background: #fff; color: var(--muted); font-size: 13px; transform: translateY(-50%); }
.pinterest-upload { position: relative; display: grid; min-height: 208px; place-content: center; justify-items: center; gap: 8px; overflow: hidden; border: 1.5px dashed rgba(20,85,217,.33); border-radius: 20px; background: linear-gradient(145deg,#f8fbff,#eef4ff); color: var(--blue-deep); text-align: center; cursor: pointer; }
.pinterest-reference-upload { position: relative; display: grid; min-height: 128px; place-content: center; justify-items: center; gap: 4px; overflow: hidden; border: 1.5px dashed rgba(20,85,217,.33); border-radius: 18px; background: linear-gradient(145deg,#f8fbff,#eef4ff); color: var(--blue-deep); text-align: center; cursor: pointer; }
.pinterest-reference-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pinterest-reference-upload small { color: var(--muted); }
.pinterest-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pinterest-upload__icon { font-size: 38px; font-weight: 300; line-height: 1; }
.pinterest-upload small { color: var(--muted); }
.pinterest-fields { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin: 18px 0; }
.pinterest-fields label { position: relative; display: grid; gap: 7px; color: var(--blue-deep); font-size: 13px; font-weight: 760; }
.pinterest-fields label > span { color: var(--muted); font-size: 11px; font-weight: 600; }
.pinterest-fields input { min-height: 50px; padding: 0 42px 0 14px; }
.pinterest-fields small { position: absolute; right: 14px; bottom: 17px; color: var(--muted); font-size: 12px; }
.pinterest-comment textarea { min-height: 95px; padding: 13px 14px; resize: vertical; }
.pinterest-submit { display: flex; align-items: center; justify-content: center; gap: 11px; width: 100%; min-height: 58px; margin-top: 22px; border: 0; border-radius: 999px; background: #ccd8f5; color: #fff; font-size: 18px; font-weight: 780; cursor: pointer; }
.pinterest-submit b { font-size: 27px; font-weight: 400; line-height: .7; }
.pinterest-note { margin: 13px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.pinterest-page:not(.pinterest-authenticated) [data-gated] { opacity: .72; cursor: pointer; }
.pinterest-page.pinterest-authenticated .pinterest-submit { background: linear-gradient(110deg,#2569ef,#1856dc); box-shadow: 0 10px 22px rgba(20,85,217,.25); }
.pinterest-dialog { width: min(570px,calc(100% - 28px)); padding: 31px; border: 0; border-radius: 24px; box-shadow: 0 24px 90px rgba(2,14,44,.32); }
.pinterest-dialog::backdrop { background: rgba(3,11,28,.54); backdrop-filter: blur(5px); }
.pinterest-dialog > button:first-child { position: absolute; top: 13px; right: 14px; border: 0; background: transparent; color: var(--muted); font-size: 25px; cursor: pointer; }
.pinterest-dialog h2 { margin: 0; color: var(--blue-deep); font-size: 32px; letter-spacing: -.045em; }
.pinterest-dialog p:not(.section-kicker) { color: var(--muted); line-height: 1.55; }
.photo-examples { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin-top: 44px; }
.photo-examples > :first-child { grid-column: 1 / -1; }
.photo-examples h2 { margin: 0; color: var(--blue-deep); font-size: clamp(28px,3.5vw,42px); letter-spacing: -.05em; }
.photo-example-card { display: grid; grid-template-columns: minmax(205px,1.05fr) .95fr; gap: 0; min-width: 0; overflow: hidden; border: 1px solid rgba(20,85,217,.14); border-radius: 24px; background: #fff; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.photo-example-card:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(17,55,128,.15); }
.photo-example-card > img { width: 100%; height: clamp(290px,22vw,360px); object-fit: cover; object-position: center 26%; }
.photo-example-card__body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(18px,2vw,28px); }
.photo-example-card__body h3 { margin: 0; color: var(--blue-deep); font-size: clamp(22px,2.1vw,30px); letter-spacing: -.05em; }
.photo-example-card__body p:not(.section-kicker) { display: -webkit-box; overflow: hidden; margin: 8px 0 15px; color: var(--muted); font-size: 14px; line-height: 1.42; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.style-page { min-height: 100vh; background: var(--canvas); }
.style-main { width: min(920px,calc(100% - 48px)); margin: 0 auto; padding: 36px 0 90px; }
.style-back { display: inline-flex; margin-bottom: 18px; color: var(--blue-deep); font-size: 14px; font-weight: 760; text-decoration: none; }
.style-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; overflow: hidden; border-radius: 30px; background: #101a3d; color: #fff; }
.style-hero > div { padding: clamp(27px,5vw,54px); }
.style-hero .section-kicker { color: #c5d4ff; }
.style-hero h1 { margin: 0; font-size: clamp(38px,5vw,58px); letter-spacing: -.06em; line-height: .96; }
.style-hero p:not(.section-kicker) { margin: 17px 0 0; color: rgba(255,255,255,.77); line-height: 1.55; }
.style-hero__visual { position: relative; min-height: 310px; }
.style-hero__visual > img { display: block; width: 100%; height: 100%; min-height: 310px; object-fit: cover; object-position: center 26%; }
.style-source { position: absolute; right: 14px; bottom: 14px; left: 14px; padding: 10px; border: 1px solid rgba(255,255,255,.28); border-radius: 14px; background: rgba(5,12,31,.72); backdrop-filter: blur(10px); }
.style-source > span { display: block; margin-bottom: 7px; color: rgba(255,255,255,.82); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.style-source > div { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
.style-source img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; }
.style-studio { margin-top: 28px; padding: clamp(23px,4vw,42px); border: 1px solid rgba(20,85,217,.13); border-radius: 27px; background: #fff; box-shadow: var(--shadow); }
.style-section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.style-section-head h2 { margin: 0; color: var(--blue-deep); font-size: clamp(28px,3.5vw,39px); letter-spacing: -.05em; }
.style-price { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border-radius: 999px; background: #eaf0ff; color: var(--blue); font-size: 13px; font-weight: 800; white-space: nowrap; }
.style-price img { width: 19px; height: 19px; object-fit: contain; }
.reference-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; margin: 23px 0; }
.reference-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 13px; }
.style-upload { position: relative; display: grid; min-height: 158px; place-content: center; justify-items: center; gap: 6px; border: 1.5px dashed rgba(20,85,217,.34); border-radius: 18px; background: #f7faff; color: var(--blue-deep); text-align: center; cursor: pointer; }
.style-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.style-upload > span { font-size: 31px; line-height: 1; }
.style-upload small { color: var(--muted); }
.avatar-builder { margin: 20px 0 24px; padding: 22px; border: 1px solid rgba(20,85,217,.15); border-radius: 22px; background: #fbfcff; }
.avatar-builder__head { margin-bottom: 18px; }
.avatar-builder__head .section-kicker { margin: 0 0 5px; }
.avatar-builder__head h3 { margin: 0; color: var(--blue-deep); font-size: 23px; letter-spacing: -.04em; }
.avatar-builder__head p:not(.section-kicker) { margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.avatar-picker { display: grid; gap: 12px; margin: 0 0 18px; padding: 17px; border: 1px solid rgba(20,85,217,.15); border-radius: 18px; background: #f7f9ff; }
.avatar-save { display: grid; grid-template-columns: minmax(0,1fr) minmax(220px,.8fr) auto; gap: 12px; align-items: end; margin-top: 16px; padding: 14px 16px; border: 1px solid rgba(20,85,217,.15); border-radius: 16px; background: #eef4ff; }
.avatar-picker { grid-template-columns: 1fr auto; align-items: start; }
.avatar-picker .section-kicker, .avatar-save .section-kicker { margin: 0 0 5px; }
.avatar-picker h3, .avatar-save h3 { margin: 0; color: var(--blue-deep); font-size: 19px; letter-spacing: -.03em; }
.avatar-picker > a { color: var(--blue); font-size: 13px; font-weight: 800; text-decoration: none; }
.avatar-picker > label { grid-column: 1 / -1; display: grid; gap: 7px; color: var(--blue-deep); font-size: 13px; font-weight: 760; }
.avatar-picker select, .avatar-save input { height: 46px; box-sizing: border-box; width: 100%; padding: 0 12px; border: 1px solid rgba(20,85,217,.18); border-radius: 13px; background: #fff; color: var(--ink); font: inherit; }
.avatar-picker > p { grid-column: 1 / -1; margin: -4px 0 0; color: var(--muted); font-size: 13px; }
.avatar-save > label { display: grid; gap: 7px; color: var(--blue-deep); font-size: 13px; font-weight: 760; }
.avatar-save > small { grid-column: 1 / -1; color: var(--muted); }
.avatar-photo-preview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.avatar-photo-preview:empty { display: none; }
.avatar-photo-preview__item { position: relative; min-width: 0; margin: 0; }
.avatar-photo-preview img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid rgba(20,85,217,.14); }
.avatar-photo-preview__remove { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: rgba(14,26,54,.82); color: #fff; font: 700 24px/25px Arial,sans-serif; cursor: pointer; box-shadow: 0 2px 8px rgba(14,26,54,.2); }
.avatar-photo-preview__remove:hover { background: var(--red); }
.avatars-page { min-height: 100vh; background: var(--canvas); }
.avatars-main { width: min(1040px, calc(100% - 48px)); margin: 0 auto; padding: 54px 0 90px; }
.avatars-lead { max-width: 640px; margin: 12px 0 28px; color: var(--muted); font-size: 18px; line-height: 1.5; }
.avatars-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.avatars-head h1 { margin: 0; color: var(--blue-deep); font-size: clamp(38px,5vw,58px); letter-spacing: -.055em; }
.avatars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.avatar-card { overflow: hidden; border: 1px solid rgba(20,85,217,.13); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.avatar-card > img { display: block; width: 100%; aspect-ratio: 1.15; object-fit: cover; }
.avatar-card__body { padding: 18px; }
.avatar-card h2 { margin: 0; color: var(--blue-deep); font-size: 22px; letter-spacing: -.04em; }
.avatar-card p { margin: 7px 0 15px; color: var(--muted); font-size: 14px; }
.avatars-empty { padding: 36px; border: 1px dashed rgba(20,85,217,.25); border-radius: 22px; background: #fff; text-align: center; }
.gallery-page { min-height: 100vh; background: var(--canvas); }
.gallery-main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 54px 0 92px; }
.gallery-hero { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.gallery-hero h1 { margin: 0; color: var(--blue-deep); font-size: clamp(42px, 6vw, 68px); letter-spacing: -.06em; }
.gallery-hero p:not(.section-kicker) { max-width: 650px; margin: 12px 0 0; color: var(--muted); font-size: 17px; line-height: 1.5; }
.gallery-note { min-height: 22px; margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.gallery-tabs { display: flex; gap: 8px; margin: 0 0 14px; }
.gallery-tabs .control.active { border-color: var(--blue); background: var(--blue); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gallery-card { min-width: 0; overflow: hidden; border: 1px solid rgba(20,85,217,.13); border-radius: 24px; background: #fff; box-shadow: 0 15px 38px rgba(17,52,112,.09); }
.gallery-card__visual { aspect-ratio: 4 / 5; overflow: hidden; background: linear-gradient(145deg, #e8f0ff, #f8faff); }
.gallery-card__visual > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-card__state { display: grid; width: 100%; height: 100%; place-content: center; justify-items: center; gap: 12px; color: var(--blue-deep); }
.gallery-card__state span { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 18px; background: #fff; color: var(--blue); font-size: 27px; box-shadow: 0 12px 25px rgba(20,85,217,.12); }
.gallery-card--processing .gallery-card__state span, .gallery-card--awaiting_commit .gallery-card__state span { animation: galleryPulse 1.5s ease-in-out infinite; }
.gallery-card--failed .gallery-card__state { color: #9d2430; background: #fff4f5; }
.gallery-card--failed .gallery-card__state span { color: var(--red); }
.gallery-card__body { padding: 18px; }
.gallery-card__head { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.gallery-card h2 { min-width: 0; margin: 0; color: var(--blue-deep); font-size: 20px; letter-spacing: -.035em; }
.gallery-card__body > p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.gallery-status { flex: 0 0 auto; padding: 6px 8px; border-radius: 999px; background: #eef3ff; color: var(--blue); font-size: 10px; font-weight: 850; }
.gallery-status--completed { background: #e9f8ef; color: #187444; }
.gallery-status--failed { background: #fff0f1; color: #b42332; }
.gallery-card__actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.gallery-card__actions .control { min-height: 39px; padding: 0 12px; font-size: 12px; }
.gallery-card__error { color: #9d2430 !important; line-height: 1.4; }
.gallery-empty { display: grid; min-height: 390px; place-content: center; justify-items: center; padding: 34px; border: 1px dashed rgba(20,85,217,.25); border-radius: 26px; background: #fff; text-align: center; }
.gallery-empty[hidden] { display: none; }
.gallery-empty > span { color: var(--blue); font-size: 42px; }
.gallery-empty h2 { margin: 13px 0 0; color: var(--blue-deep); font-size: 30px; letter-spacing: -.04em; }
.gallery-empty p { max-width: 450px; margin: 9px 0 20px; color: var(--muted); line-height: 1.5; }
.gallery-more { display: flex; margin: 28px auto 0; }
@keyframes galleryPulse { 50% { transform: scale(.9); opacity: .62; } }
.style-fields { display: grid; grid-template-columns: repeat(4,1fr); gap: 11px; margin: 16px 0; }
.style-fields label, .style-comment, .style-cake-age { display: grid; gap: 7px; color: var(--blue-deep); font-size: 13px; font-weight: 760; }
.style-fields input, .style-fields select, .style-comment textarea, .style-cake-age input { width: 100%; box-sizing: border-box; border: 1px solid rgba(20,85,217,.18); border-radius: 13px; background: #f8faff; color: var(--ink); font: inherit; outline: none; }
.style-fields input, .style-fields select, .style-cake-age input { height: 49px; padding: 0 12px; }
.style-cake-age { width: min(100%, 270px); margin: 0 0 22px; }
.style-comment textarea { min-height: 91px; padding: 13px; resize: vertical; }
.style-submit { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 56px; margin-top: 20px; border: 0; border-radius: 999px; background: #ccd8f5; color: #fff; font-size: 17px; font-weight: 800; cursor: pointer; }
.style-submit span { padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.17); font-size: 12px; }
.style-submit span { display: inline-flex; align-items: center; gap: 5px; }
.style-submit span img { width: 17px; height: 17px; object-fit: contain; }
.style-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.style-page:not(.style-authenticated) [data-gated] { opacity: .7; cursor: pointer; }
.style-page.style-authenticated .style-submit { background: linear-gradient(110deg,#2569ef,#1856dc); box-shadow: 0 10px 22px rgba(20,85,217,.25); }
.prompt-dialog { width: min(820px, calc(100% - 30px)); max-height: min(840px, calc(100vh - 40px)); padding: 0; overflow: auto; border: 1px solid rgba(20,85,217,.2); border-radius: 24px; background: #fff; box-shadow: 0 24px 90px rgba(2,14,44,.32); color: var(--ink); }
.prompt-dialog::backdrop { background: rgba(3,11,28,.58); backdrop-filter: blur(5px); }
.prompt-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 25px 26px 18px; border-bottom: 1px solid var(--line); }
.prompt-dialog-head p { margin: 0 0 6px; color: var(--red); font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.prompt-dialog h2 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
.prompt-dialog-head button { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--muted); font-size: 24px; cursor: pointer; }
.prompt-media { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; padding: 18px 26px; background: #f5f8fd; }
.prompt-media figure { min-width: 0; margin: 0; }
.prompt-media figcaption { margin: 0 0 7px; color: var(--blue-deep); font-size: 10px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.prompt-media img, .result-placeholder { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #071a43; object-fit: cover; }
.result-placeholder { display: grid; place-content: center; justify-items: center; gap: 6px; padding: 18px; background: linear-gradient(135deg,#071a43,#0d347f); color: #fff; text-align: center; }
.result-placeholder span { color: #ff6670; font-size: 34px; line-height: 1; }
.result-placeholder b { font-size: 13px; }
.result-placeholder small { color: rgba(255,255,255,.67); font-size: 10px; }
.prompt-dialog pre { max-height: 300px; margin: 0; padding: 21px 26px; overflow: auto; background: #fff; color: #344054; font: 13px/1.55 Inter, sans-serif; white-space: pre-wrap; }
.prompt-dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 26px; }
.prompt-dialog-actions span { color: var(--muted); font-size: 12px; }

/* Song Gift */
.song-page { background: var(--canvas); }
.song-main { padding-bottom: 88px; }
.song-hero { position: relative; display: grid; grid-template-columns: 1fr minmax(280px, .8fr); align-items: center; min-height: 340px; padding: 58px max(24px, calc((100% - 1080px) / 2)); overflow: hidden; background: #071a43; color: #fff; }
.song-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #071a43 0%, rgba(7,26,67,.9) 44%, rgba(7,26,67,.12) 100%); }
.song-hero > div { position: relative; z-index: 1; }
.song-hero img { position: absolute; z-index: 0; top: 0; right: 0; width: 52%; height: 100%; object-fit: cover; opacity: .86; }
.song-hero h1 { max-width: 610px; margin: 0; font-size: clamp(43px, 6vw, 70px); line-height: .95; letter-spacing: -.06em; }
.song-hero h1 span { color: #ff6670; }
.song-hero p:not(.section-kicker) { max-width: 540px; margin: 19px 0 0; color: rgba(255,255,255,.72); font-size: 17px; line-height: 1.55; }
.song-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; width: min(1080px, calc(100% - 48px)); margin: -34px auto 0; position: relative; z-index: 2; }
.song-steps { align-self: start; padding: 24px 20px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.song-steps > p { margin: 0 0 18px; color: var(--red); font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.song-steps ol { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.song-steps li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 750; }
.song-steps li i { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 9px; font-size: 11px; font-style: normal; }
.song-steps li.active { color: var(--ink); }
.song-steps li.active i { border-color: var(--blue); background: var(--blue); color: #fff; }
.song-steps small { display: block; margin-top: 26px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.song-workspace { min-height: 525px; padding: 35px; border: 1px solid rgba(20,85,217,.12); border-radius: 26px; background: #fff; box-shadow: var(--shadow); }
.song-stage h2 { margin: 0; font-size: clamp(30px, 4vw, 43px); letter-spacing: -.045em; }
.song-lead { max-width: 560px; margin: 10px 0 26px; color: var(--muted); line-height: 1.5; }
.song-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.song-form > label { display: grid; gap: 8px; color: var(--ink); font-size: 13px; font-weight: 780; }
.song-form > label:nth-of-type(3), .song-form > label:nth-of-type(4), .song-form > label:nth-of-type(5), .song-form > label:nth-of-type(6), .song-form fieldset, .song-form > button { grid-column: 1 / -1; }
.song-form input, .song-form textarea, .lyrics-editor { width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 13px; outline: 0; background: #fff; color: var(--ink); line-height: 1.45; resize: vertical; }
.song-form input:focus, .song-form textarea:focus, .lyrics-editor:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(20,85,217,.1); }
.song-form fieldset { margin: 4px 0 2px; padding: 0; border: 0; }
.song-form legend { margin-bottom: 9px; font-size: 13px; font-weight: 780; }
.song-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.song-chips input { position: absolute; opacity: 0; pointer-events: none; }
.song-chips span { display: inline-flex; min-height: 38px; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 730; cursor: pointer; }
.song-chips input:checked + span { border-color: var(--blue); background: var(--blue); color: #fff; }
.song-form > button { justify-self: start; margin-top: 2px; }
.song-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 18px; }
.lyrics-editor { min-height: 360px; background: #f7f9fd; }
.song-loading { display: grid; justify-items: start; min-height: 350px; align-content: center; }
.song-loading > span { width: 52px; height: 52px; margin-bottom: 22px; border: 4px solid var(--blue-soft); border-top-color: var(--red); border-radius: 50%; animation: song-spin 1s linear infinite; }
.song-loading h2 { max-width: 440px; }
.song-loading p:not(.section-kicker) { color: var(--muted); }
.song-result { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 20px; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(135deg,#fff,#f1f5ff); }
.song-result > img { width: 190px; aspect-ratio: 1; border-radius: 14px; object-fit: cover; }
.song-result span { color: var(--red); font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.song-result h3 { margin: 8px 0 5px; font-size: 28px; letter-spacing: -.04em; }
.song-result-meta { margin: 0; color: var(--muted); font-size: 13px; }
.song-result-note { margin: 8px 0 2px; color: var(--muted); font-size: 13px; }
.song-result-mode { color: var(--blue); font-size: 12px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.song-tracks { display: grid; gap: 12px; margin-top: 14px; }
.song-track { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fff; }
.song-track-title { margin: 0 0 10px; color: var(--ink); font-weight: 800; }
.song-track-audio { width: 100%; }
.song-track-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.song-track-actions .control { min-height: 36px; padding: 0 12px; }
.song-result-empty { margin: 10px 0 0; color: var(--muted); line-height: 1.45; }
.song-cross-sell { margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.song-cross-sell h3 { margin: 0 0 10px; font-size: 16px; letter-spacing: -.02em; }
.song-cross-sell-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.song-cross-sell-grid a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #f5f7fb; font-size: 13px; font-weight: 820; text-align: center; }
.song-cross-sell--mock { border-left: 4px solid var(--red); }
.song-subtitle { margin: 0 0 14px; color: var(--blue); font-size: 12px; font-weight: 780; }
.mock-player { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; margin-top: 22px; }
.mock-player button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--blue); color: #fff; cursor: pointer; }
.mock-player i { height: 5px; border-radius: 20px; background: linear-gradient(90deg,var(--red) 0 24%,#cbd8f2 24%); }
.mock-player b { color: var(--muted); font-size: 11px; }
.song-error { margin: 18px 0 0; padding: 12px; border-radius: 12px; background: var(--red-soft); color: #b4232c; font-size: 13px; }
@keyframes song-spin { to { transform: rotate(360deg); } }

/* Professional Photo */
.photo-page { background: var(--canvas); }
.photo-main { width: min(1030px, calc(100% - 48px)); margin: 0 auto; padding: 64px 0 92px; }
.photo-intro { margin-bottom: 30px; }
.photo-intro h1 { max-width: 760px; margin: 0; font-size: clamp(43px, 6vw, 70px); line-height: .97; letter-spacing: -.06em; }
.photo-intro h1 span { color: var(--blue); }
.photo-intro > p:not(.section-kicker) { max-width: 600px; margin: 18px 0 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.photo-workspace { display: grid; grid-template-columns: minmax(260px,.88fr) minmax(0,1.12fr); gap: 20px; padding: 22px; border: 1px solid rgba(20,85,217,.13); border-radius: 26px; background: #fff; box-shadow: var(--shadow); }
.photo-upload { position: relative; display: grid; min-height: 426px; place-content: center; justify-items: center; gap: 12px; padding: 26px; overflow: hidden; border: 1.5px dashed rgba(20,85,217,.3); border-radius: 20px; background: linear-gradient(145deg,#f8fbff,#edf3ff); text-align: center; }
.photo-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-upload-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--blue); color: #fff; font-size: 29px; }
.photo-upload b { font-size: 18px; letter-spacing: -.02em; }
.photo-upload small { max-width: 270px; color: var(--muted); line-height: 1.45; }
.photo-preview { position: absolute; inset: 0; display: none; background: #071a43; }
.photo-preview.active { display: block; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview button { position: absolute; top: 13px; right: 13px; min-height: 37px; padding: 0 12px; border: 0; border-radius: 11px; background: rgba(255,255,255,.93); color: var(--blue-deep); font-size: 12px; font-weight: 800; cursor: pointer; }
.photo-form { padding: 9px 5px; }
.photo-form h2 { margin: 0; font-size: clamp(28px, 4vw, 38px); letter-spacing: -.045em; }
.photo-form > p { margin: 9px 0 22px; color: var(--muted); line-height: 1.5; }
.preset-list { display: grid; gap: 10px; margin: 0 0 22px; }
.preset { position: relative; display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 15px; cursor: pointer; }
.preset input { position: absolute; opacity: 0; }
.preset i { display: grid; flex: 0 0 auto; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; color: transparent; font-style: normal; }
.preset input:checked ~ i { border-color: var(--blue); background: var(--blue); color: #fff; }
.preset b, .preset small { display: block; }
.preset b { margin-bottom: 3px; font-size: 14px; }
.preset small { color: var(--muted); font-size: 12px; }
.photo-consent { display: flex; align-items: flex-start; gap: 9px; margin: 17px 0 8px; color: var(--ink); font-size: 13px; line-height: 1.4; }
.photo-consent input { margin-top: 2px; accent-color: var(--blue); }
.photo-privacy { margin: 0 0 19px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.photo-submit { width: 100%; }
.photo-submit:disabled { border-color: #e5e7eb; background: #e5e7eb; color: #98a2b3; cursor: not-allowed; }
.photo-error { margin: 14px 0 0; color: #b4232c; font-size: 13px; line-height: 1.4; }
.photo-auth-note { margin: 13px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; text-align: center; }
.photo-page:not(.photo-authenticated) .photo-upload, .photo-page:not(.photo-authenticated) .photo-form { opacity: .72; }
.photo-page:not(.photo-authenticated) .photo-upload, .photo-page:not(.photo-authenticated) .photo-form label, .photo-page:not(.photo-authenticated) .photo-form button { cursor: pointer; }
.photo-loading, .photo-result { margin-top: 20px; padding: 25px; border: 1px solid rgba(20,85,217,.13); border-radius: 22px; background: #fff; box-shadow: 0 12px 38px rgba(17,52,112,.08); }
.photo-loading { display: grid; justify-items: center; gap: 13px; text-align: center; }
.photo-loading i { width: 44px; height: 44px; border: 4px solid var(--blue-soft); border-top-color: var(--red); border-radius: 50%; animation: song-spin 1s linear infinite; }
.photo-loading p { margin: 0; color: var(--muted); }
.generation-progress { width: min(560px,100%); height: 12px; overflow: hidden; border-radius: 999px; background: #e8eefb; box-shadow: inset 0 1px 3px rgba(17,52,112,.09); }
.generation-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--blue),#5b7cff,var(--red)); transition: width .8s ease; }
.generation-eta { min-height: 20px; font-size: 14px; font-weight: 650; }
.generation-gallery { margin-top: 4px; }
.photo-loading:has(.generation-gallery:not([hidden])) i { display: none; }
.photo-result-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.photo-result h2 { margin: 0; font-size: 27px; letter-spacing: -.04em; }
.photo-result-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.photo-result-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.photo-result-image { overflow: hidden; border-radius: 16px; background: #071a43; }
.photo-result-image img { display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.photo-result-image a { display: flex; align-items: center; justify-content: center; min-height: 42px; background: #fff; color: var(--blue); font-size: 13px; font-weight: 820; }
.photo-result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

[hidden] { display: none !important; }

/* Chat */
.chat-body { height: 100%; overflow: hidden; background: var(--canvas); }
.chat-body .site-header { position: relative; }
.chat-shell { display: grid; grid-template-columns: 310px minmax(0,1fr); gap: 16px; height: calc(100vh - 78px); padding: 16px; }

.chat-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 22px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--blue-deep);
  color: #fff;
  box-shadow: 0 20px 60px rgba(8,44,116,.22);
}

.chat-sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.chat-sidebar h2 { margin: 0; font-size: 25px; letter-spacing: -.03em; }
.back-button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; color: #fff; font-size: 23px; }
.back-button:hover { background: rgba(255,255,255,.1); }

.new-chat {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 13px;
  background: #fff;
  color: var(--blue-deep);
  font-weight: 780;
  text-align: left;
  cursor: pointer;
}
.new-chat:hover { background: #edf3ff; }
.empty-dialogs { margin: 70px 14px 0; color: rgba(255,255,255,.62); text-align: center; line-height: 1.5; }
.dialog-list { display: grid; gap: 7px; margin-top: 18px; overflow: auto; }
.dialog-item { padding: 12px 13px; border: 1px solid rgba(255,255,255,.11); border-radius: 11px; background: rgba(255,255,255,.07); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chat-workspace { position: relative; min-width: 0; min-height: 0; overflow: hidden; border-radius: 24px; background: #fff; }
.chat-welcome, .conversation { height: 100%; overflow: auto; padding: 38px 38px 156px; }
.chat-intro { display: flex; align-items: end; justify-content: space-between; gap: 22px; width: min(980px,100%); margin: 0 auto 26px; }
.chat-intro p { margin: 0 0 7px; color: var(--red); font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.chat-intro h1 { margin: 0; max-width: 650px; font-size: clamp(30px,4vw,48px); line-height: 1.05; letter-spacing: -.045em; }
.chat-intro-badge { flex: 0 0 auto; padding: 10px 13px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 820; }

.feature-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; width: min(980px,100%); margin: 0 auto; }
.feature-card {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:nth-child(3n+1) { background: linear-gradient(145deg,#fff,#f2f6ff); }
.feature-card:nth-child(3n+2) { background: linear-gradient(145deg,#fff,#fff3f4); }
.feature-card:hover { transform: translateY(-4px); border-color: rgba(20,85,217,.3); box-shadow: 0 15px 38px rgba(20,85,217,.1); }
.feature-number { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 28px; border-radius: 12px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 850; }
.feature-card:nth-child(even) .feature-number { background: var(--red); }
.feature-card h3 { margin: 0 0 10px; font-size: 19px; line-height: 1.15; letter-spacing: -.02em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.52; }

.conversation { display: none; }
.conversation.active { display: block; }
.chat-welcome.hidden { display: none; }
.messages { display: grid; gap: 17px; width: min(780px,100%); margin: 0 auto; }
.message { max-width: 78%; padding: 14px 17px; border-radius: 17px; line-height: 1.52; white-space: pre-wrap; }
.message.user { justify-self: end; background: var(--blue); color: #fff; border-bottom-right-radius: 5px; }
.message.assistant { justify-self: start; border: 1px solid var(--line); background: var(--canvas); border-bottom-left-radius: 5px; }

.composer {
  position: absolute;
  right: 24px;
  bottom: 22px;
  left: 24px;
  z-index: 10;
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) auto 46px;
  align-items: end;
  gap: 9px;
  width: min(900px,calc(100% - 48px));
  margin: 0 auto;
  padding: 10px;
  border: 1px solid rgba(20,85,217,.16);
  border-radius: 20px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 20px 60px rgba(17,52,112,.16);
  backdrop-filter: blur(14px);
}
.composer textarea { width: 100%; min-height: 44px; max-height: 128px; padding: 11px 4px; resize: none; border: 0; outline: 0; background: transparent; line-height: 1.4; }
.composer textarea::placeholder { color: #98a2b3; }
.composer-button, .model-button, .send-button { min-height: 44px; border: 0; border-radius: 13px; cursor: pointer; }
.composer-button { width: 44px; background: var(--blue-soft); color: var(--blue); font-size: 21px; }
.model-button { padding: 0 14px; background: var(--canvas); color: var(--blue-deep); font-weight: 730; white-space: nowrap; }
.send-button { width: 46px; background: var(--red); color: #fff; font-size: 20px; }
.send-button:disabled { background: #e7eaf0; color: #98a2b3; cursor: default; }

.nav-item:focus-visible, .control:focus-visible, .tab:focus-visible, .tool-card:focus-visible,
.feature-card:focus-visible, .new-chat:focus-visible, .back-button:focus-visible,
.composer-button:focus-visible, .model-button:focus-visible, .send-button:focus-visible,
.composer textarea:focus-visible { outline: 3px solid rgba(20,85,217,.28); outline-offset: 3px; }

@media (max-width: 1120px) {
  .site-header { gap: 14px; }
  .nav-item { padding: 0 10px; }
  .support { display: none; }
  .feature-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .templates-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 860px) {
  .site-header { grid-template-columns: minmax(0,1fr) auto; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid #0d469f; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 800; box-shadow: 0 8px 18px rgba(20,85,217,.22); cursor: pointer; }
  .site-header.menu-open .menu-toggle { background: var(--blue-deep); border-color: var(--blue-deep); }
  .menu-toggle__icon { font-size: 20px; line-height: 1; }
  .site-nav { display: none; order: 3; grid-column: 1 / -1; align-items: stretch; justify-content: stretch; gap: 8px; margin: 2px -2px 0; padding: 10px; overflow: visible; border: 1px solid #d9e5fb; border-radius: 16px; background: #fff; box-shadow: 0 14px 30px rgba(17,52,112,.14); }
  .site-header.menu-open .site-nav { display: flex; flex-direction: column; }
  .site-nav .nav-item { width: 100%; min-height: 46px; justify-content: flex-start; padding: 0 14px; border: 1px solid #d9e5fb; border-radius: 11px; background: #f1f5ff; color: var(--blue-deep); font-weight: 760; }
  .site-nav .nav-item:hover, .site-nav .nav-item:focus-visible { background: #e2ecff; color: #062663; }
  .site-nav .nav-item.active { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 7px 16px rgba(20,85,217,.2); }
  .header-actions { display: none; }
  .mobile-menu-account { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 9px; border-top: 1px solid #e4ebf8; }
  .mobile-menu-account .profile-pill, .mobile-menu-account .control, .mobile-menu-account .balance-pill { min-height: 42px; }
  .mobile-menu-account .control:not(.primary) { border-color: #c9d9f5; background: #fff; color: var(--blue-deep); }
  .hero { padding-top: 72px; }
  .idea-route { grid-template-columns: 1fr; }
  .idea-route__step { min-height: 0; }
  .idea-route__number { margin-bottom: 25px; }
  .subscription-plans { grid-template-columns: 1fr; max-width: 550px; margin: 0 auto; }
  .subscription-plan--featured { order: -1; transform: none; }
  .coin-packs__grid { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 720px; margin: 0 auto; }
  .coin-pack--featured { transform: none; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .section-note { text-align: left; }
  .tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .curated-tools .tool-body { height: auto; }
  .chat-body { overflow: auto; }
  .chat-shell { grid-template-columns: 1fr; height: auto; min-height: calc(100vh - 120px); padding: 12px; }
  .chat-sidebar { display: none; }
  .chat-workspace { min-height: calc(100vh - 140px); }
  .feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .agent-layout { grid-template-columns: 1fr; }
  .templates-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .template-spotlight-grid, .template-mini-grid, .template-example-grid { grid-template-columns: 1fr; }
  .template-category__head { align-items: flex-start; flex-direction: column; gap: 11px; }
  .template-category__head > p { max-width: 560px; }
  .pinterest-hero { grid-template-columns: 1fr; gap: 26px; }
  .pinterest-hero > img { max-height: 330px; }
  .photo-examples { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-example-card { grid-template-columns: minmax(150px,1fr) 1fr; }
  .style-hero { grid-template-columns: 1fr; }
  .photo-example-card > img { height: 270px; }
  .style-hero__visual > img { min-height: 280px; max-height: 370px; }
  .song-shell { grid-template-columns: 1fr; }
  .photo-workspace { grid-template-columns: 1fr; }
  .song-steps { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
  .song-steps > p, .song-steps small { display: none; }
  .song-steps ol { display: flex; flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .gallery-main { width: min(100% - 28px, 1180px); padding: 31px 0 58px; }
  .gallery-hero { align-items: stretch; flex-direction: column; }
  .gallery-hero .control { width: 100%; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-card__visual { aspect-ratio: 4 / 4.6; }
  .product-modal__card:has(.coin-gift) { padding: 0 20px 22px; }
  .coin-gift { grid-template-columns: 1fr 128px; min-height: 194px; margin: 0 -20px 20px; padding: 26px 20px 20px; }
  .coin-gift img { right: -5px; width: 174px; max-width: 48%; }
  .product-modal__card .coin-gift h2 { font-size: 32px; }
  .product-modal__card .coin-gift p:not(.coin-gift__eyebrow) { max-width: 245px; font-size: 13px; }
  .avatar-save { grid-template-columns: 1fr; }
  .avatars-main { width: min(100% - 28px, 1040px); padding: 30px 0 56px; }
  .avatars-head { align-items: flex-start; flex-direction: column; }
  .avatars-head .control { width: 100%; text-align: center; }
  .avatars-grid { grid-template-columns: 1fr; }
  .site-header { grid-template-columns: minmax(0,1fr) auto; gap: 7px; min-height: 0; padding: 9px 14px; }
  .brand { min-width: 0; gap: 7px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
  .brand-name { font-size: 18px; letter-spacing: -.04em; }
  .menu-toggle { min-height: 38px; padding: 0 10px; font-size: 13px; }
  .balance-pill { min-height: 36px; gap: 4px; padding: 0 9px 0 7px; font-size: 13px; }
  .balance-ruble { width: 22px; height: 22px; }
  .profile-pill { min-height: 36px; gap: 6px; padding: 5px 10px 5px 8px; }
  .profile-pill__avatar { width: 17px; height: 17px; }
  .profile-pill__email { font-size: 12px; }
  .site-nav { gap: 6px; width: 100%; min-height: 0; margin-top: 1px; padding: 8px; border-radius: 14px; }
  .nav-item { min-height: 40px; font-size: 15px; }
  .pricing-main { width: min(100% - 28px, 1180px); padding: 46px 0; }
  .pricing-hero { margin-bottom: 30px; }
  .pricing-hero h1 { font-size: 46px; }
  .pricing-switch button { padding: 0 15px; }
  .subscription-plan { min-height: 0; padding: 27px 22px; border-radius: 23px; }
  .subscription-plan h2 { min-height: 0; }
  .subscription-plan__price { margin-top: 22px; }
  .subscription-plan--featured .subscription-plan__price { margin-top: 25px; font-size: 68px; }
  .subscription-plan__lead { min-height: 0; }
  .credits-panel { padding: 40px 19px; border-radius: 23px; }
  .coin-packs__head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .coin-packs__head > p { max-width: 530px; }
  .coin-packs__grid { grid-template-columns: 1fr; max-width: 430px; }
  .coin-pack { min-height: 0; }
  .how-it-works { padding: 30px 14px 42px; }
  .how-it-works__head { margin-bottom: 22px; }
  .how-it-works__head h2 { font-size: 39px; }
  .idea-route { gap: 10px; }
  .idea-route__step { padding: 23px; border-radius: 21px; }
  .idea-route__step p { font-size: 23px; }
  .free-offer { width: min(100% - 28px, 1120px); margin: 24px auto 40px; padding: 8px; border-radius: 25px; }
  .free-offer__content { padding: 42px 16px; border-radius: 19px; }
  .free-offer h2 { font-size: 38px; }
  .free-offer p:not(.section-kicker) { margin: 16px auto 25px; font-size: 17px; }
  .free-offer__button { width: 100%; min-height: 54px; font-size: 18px; }
  .product-section { border-radius: 26px; }
  .profile-main { padding: 20px 14px 48px; }
  .profile-card { padding: 24px 18px; border-radius: 24px; }
  .profile-card h1 { font-size: 34px; line-height: 1.02; }
  .profile-lead { margin: 12px 0 24px; font-size: 16px; line-height: 1.48; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-panel--wide { grid-column: auto; }
  .profile-panel { padding: 18px; border-radius: 18px; }
  .profile-balance { align-items: flex-start; flex-direction: column; gap: 8px; }
  .profile-balance h2 { font-size: 34px; }
  .profile-subscription { grid-template-columns: 1fr; }
  .profile-subscription .control { width: 100%; text-align: center; }
  .subscription-status { grid-row: 1; justify-self: start; }
  .profile-transactions__head { align-items: stretch; flex-direction: column; gap: 4px; }
  .profile-transactions__head .control { width: 100%; margin-bottom: 12px; }
  .transaction-row { align-items: flex-start; flex-direction: column; gap: 9px; }
  .profile-panel p:not(.section-kicker) { min-height: 0; margin-bottom: 14px; }
  .profile-setting { align-items: flex-start; flex-direction: column; gap: 11px; }
  .profile-setting .control { width: 100%; }
  .founder-panel:not([hidden]) { align-items: flex-start; flex-direction: column; }
  .founder-panel .control { width: 100%; }
  .referral-copy { align-items: stretch; flex-direction: column; }
  .referral-copy .control { width: 100%; }
  .product-modal__card { padding: 24px 18px; }
  .register-details__grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
  .admin-pill .profile-pill__email { display: none; }
  .brand-mark { width: 42px; height: 42px; }
  .hero { padding: 58px 16px 58px; }
  .hero h1 { font-size: 46px; }
  .hero-copy { font-size: 16px; }
  .tool-section { padding: 28px 14px 60px; border-radius: 32px 32px 0 0; }
  .tabs { width: 100%; display: grid; grid-template-columns: repeat(2,1fr); }
  .tool-grid { grid-template-columns: 1fr; }
  .agent-card { padding: 30px 24px; }
  .agent-card h3 { font-size: 31px; }
  .agent-hero { min-height: 540px; }
  .agent-hero::after { background: linear-gradient(90deg, rgba(2,10,29,.96), rgba(3,13,34,.74) 58%, rgba(3,13,34,.42)); }
  .agent-hero-copy, .agent-workspace, .agent-scenarios { width: min(100% - 28px, 1080px); }
  .agent-hero-copy { padding: 92px 0 80px; }
  .agent-workspace { margin-top: -28px; padding: 24px 16px; }
  .workspace-heading { align-items: flex-start; flex-direction: column; }
  .task-submit { align-items: flex-start; flex-direction: column; }
  .scenario-grid { grid-template-columns: 1fr; }
  .templates-main { width: min(100% - 28px, 1280px); padding-top: 46px; }
  .templates-grid { grid-template-columns: 1fr; }
  .template-spotlight { overflow: hidden; border-radius: 23px; background: #fff; color: var(--blue-deep); box-shadow: 0 12px 27px rgba(16,42,92,.09); }
  .template-spotlight > img { aspect-ratio: 16 / 9; object-position: center; }
  .template-spotlight::after { display: none; }
  .template-spotlight > div { position: static; padding: 18px 19px 20px; }
  .template-spotlight span { color: var(--blue); }
  .template-spotlight h3 { color: var(--blue-deep); font-size: 25px; }
  .template-spotlight p { color: var(--muted); font-size: 15px; }
  .template-spotlight b { color: var(--blue); font-size: 13px; }
  .pinterest-main { width: min(100% - 28px, 1100px); padding-top: 32px; }
  .pinterest-hero { padding: 29px 20px; border-radius: 24px; }
  .pinterest-hero h1 { font-size: 42px; }
  .pinterest-section-head, .pinterest-studio__head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .pinterest-studio { padding: 24px 18px; border-radius: 23px; }
  .pinterest-fields { grid-template-columns: 1fr; }
  .style-main { width: min(100% - 28px,920px); padding-top: 25px; }
  .style-hero { border-radius: 24px; }
  .style-studio { padding: 24px 18px; border-radius: 23px; }
  .style-section-head { align-items: flex-start; flex-direction: column; }
  .style-fields { grid-template-columns: repeat(2,1fr); }
  .reference-strip { gap: 7px; }
  .photo-examples { grid-template-columns: 1fr; }
  .photo-example-card { grid-template-columns: 1fr; }
  .photo-example-card > img { height: 255px; }
  .template-card > img { aspect-ratio: 1.6 / 1; }
  .prompt-dialog-head, .prompt-dialog-actions { padding-right: 18px; padding-left: 18px; }
  .prompt-dialog pre { padding-right: 18px; padding-left: 18px; }
  .prompt-media { grid-template-columns: 1fr; padding-right: 18px; padding-left: 18px; }
  .prompt-dialog-actions { align-items: flex-start; flex-direction: column; }
  .song-hero { display: block; min-height: 390px; padding: 64px 14px; }
  .song-hero img { width: 100%; opacity: .32; }
  .song-hero::after { background: linear-gradient(90deg, rgba(7,26,67,.96), rgba(7,26,67,.66)); }
  .song-shell { width: min(100% - 28px, 1080px); margin-top: -24px; }
  .song-workspace { min-height: 0; padding: 25px 17px; }
  .song-form { grid-template-columns: 1fr; }
  .song-form > label { grid-column: 1 / -1; }
  .song-steps { align-items: flex-start; }
  .song-steps li { font-size: 11px; }
  .song-result { grid-template-columns: 1fr; }
  .photo-main { width: min(100% - 28px, 1030px); padding-top: 44px; }
  .photo-workspace { padding: 14px; }
  .photo-upload { min-height: 330px; }
  .photo-result-grid { grid-template-columns: 1fr; }
  .song-result > img { width: 100%; max-width: 220px; }
  .song-actions { justify-content: flex-start; }
  .chat-welcome, .conversation { padding: 28px 14px 146px; }
  .chat-intro { align-items: flex-start; flex-direction: column; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 175px; }
  .feature-number { margin-bottom: 20px; }
  .composer { right: 10px; bottom: 10px; left: 10px; grid-template-columns: 40px minmax(0,1fr) 44px; width: calc(100% - 20px); }
  .model-button { display: none; }
}

@media (max-width: 390px) {
  .site-header { padding-right: 10px; padding-left: 10px; }
  .brand-mark { width: 35px; height: 35px; }
  .brand-name { font-size: 17px; }
  .profile-pill { padding: 5px 8px; }
  .profile-pill__email { display: none; }
  .style-fields { grid-template-columns: 1fr; }
  .style-source { right: 9px; bottom: 9px; left: 9px; padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
