﻿:root {
  --bg: #f3f7ff;
  --surface: #ffffff;
  --surface-alt: #eef4ff;
  --border: rgba(23, 43, 77, 0.08);
  --text: #11234c;
  --muted: #5d6b82;
  --primary: #1758ff;
  --secondary: #6a3bff;
  --success: #0f9f6e;
  --ink-dark: #0d1c46;
  --cyan: #14b8ff;
  --orange: #ff9d17;
  --purple: #8b4dff;
  --shadow: 0 20px 40px rgba(20, 33, 61, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding-top: var(--site-header-offset, 92px);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(20, 99, 255, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(92, 46, 255, 0.14), transparent 26%),
    var(--bg);
}

.site-header .button,
.site-header .ghost-button,
.site-header .account-button,
.site-header .user-chip,
.site-header .site-language-switcher,
.site-header .header-pill {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: none;
}

.site-header .button.primary,
.site-header .account-button {
  background: #ffffff;
  color: #1758ff;
}

.site-header .site-language-button {
  color: rgba(255, 255, 255, 0.86);
}

.site-header .site-language-button.is-active {
  background: #ffffff;
  color: #1758ff;
}

.site-header .user-chip span {
  color: rgba(255, 255, 255, 0.72);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.82rem clamp(1rem, 3vw, 2.5rem);
  background:
    linear-gradient(90deg, rgba(7, 22, 67, 0.96), rgba(19, 85, 255, 0.94) 46%, rgba(4, 174, 196, 0.92));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 40px rgba(10, 31, 84, 0.22);
}

.site-header--hero {
  position: fixed;
  top: 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: 210px;
  max-width: 100%;
  height: auto;
  background: transparent;
  box-shadow: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.main-nav a {
  position: relative;
  padding: 0.62rem 0.78rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.22rem;
  left: 0.78rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff, #7dd3fc);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.header-pill {
  min-width: 3.1rem;
  height: 2.9rem;
  border: 1px solid rgba(17, 35, 76, 0.08);
  border-radius: 0.9rem;
  background: #fff;
  color: var(--ink-dark);
  font-weight: 700;
}

.site-language-switcher {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.2rem;
  padding: 0.25rem;
  border: 1px solid rgba(17, 35, 76, 0.08);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(23, 48, 108, 0.06);
}

.site-language-button {
  min-width: 2.15rem;
  min-height: 2.35rem;
  padding: 0.35rem 0.45rem;
  border: 0;
  border-radius: 0.68rem;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.site-language-button:hover,
.site-language-button:focus-visible {
  color: var(--primary);
  outline: none;
}

.site-language-button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #ffffff, #7dd3fc);
  box-shadow: 0 6px 14px rgba(29, 96, 255, 0.24);
  transform: translateY(-1px);
}

.landing-shell,
.page-shell {
  max-width: 1540px;
  margin: 0 auto;
  padding: 1.3rem 1.4rem 3rem;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(540px, 0.95fr);
  gap: 1.4rem;
  padding: 1.6rem;
  border: 1px solid rgba(27, 59, 128, 0.08);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 92% 18%, rgba(91, 69, 255, 0.18), transparent 20%),
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(246,248,255,0.96));
  box-shadow: 0 26px 64px rgba(17, 35, 76, 0.08);
}

.landing-copy {
  padding: 1rem 0.6rem 1rem 0.2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  background: rgba(17, 88, 255, 0.07);
  color: #1f477f;
  font-size: 0.92rem;
  font-weight: 700;
}

.badge-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: #18be6d;
}

.landing-copy h1,
.page-header h1 {
  margin: 1rem 0 0;
  max-width: 780px;
  color: var(--ink-dark);
  font-size: clamp(2.9rem, 4.6vw, 5.05rem);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.landing-copy h1 span {
  color: #4a52ff;
}

.landing-copy p,
.page-header p,
.content-card p,
.support-form,
.showcase-header p,
.benefits-section p,
.cta-banner p,
.footer-brand p,
.footer-columns p {
  color: var(--muted);
}

.landing-copy p {
  max-width: 720px;
  margin: 1rem 0 0;
  font-size: 1.24rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}

.button.primary {
  background: linear-gradient(135deg, #ffffff, #7dd3fc);
  color: #fff;
}

.button.secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.ghost-button {
  min-height: 2.9rem;
  border-color: rgba(17, 35, 76, 0.12);
  background: #fff;
  color: var(--ink-dark);
}

.account-button {
  min-height: 2.9rem;
  padding-inline: 1.35rem;
}

.hero-actions--landing {
  margin-top: 1.6rem;
}

.action-download,
.action-template,
.action-pricing {
  min-height: 3.45rem;
  padding-inline: 1.35rem;
}

.hero-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-top: 1.2rem;
  color: #29507e;
  font-size: 0.94rem;
  font-weight: 700;
}

.hero-feature-list span::before {
  content: 'â—¦';
  margin-right: 0.42rem;
  color: #16b96d;
}

.hero-preview-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  overflow: hidden;
  min-height: 520px;
  border: 1px solid rgba(18, 44, 109, 0.08);
  border-radius: 1.6rem;
  background:
    radial-gradient(circle at right top, rgba(128, 85, 255, 0.16), transparent 28%),
    #ffffff;
  box-shadow: 0 32px 72px rgba(18, 38, 88, 0.1);
}

.preview-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 0.8rem;
  background: linear-gradient(180deg, #071635 0%, #0d224f 100%);
}

.preview-sidebar-logo {
  display: flex;
  justify-content: center;
  padding: 0.35rem 0 0.8rem;
}

.preview-sidebar-logo img {
  width: 92px;
  height: auto;
  background: transparent;
  box-shadow: none;
}

.preview-nav-item {
  padding: 0.72rem 0.8rem;
  border-radius: 0.95rem;
  color: rgba(243, 248, 255, 0.88);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.preview-nav-item.is-active {
  background: linear-gradient(135deg, #1761ff, #2f7cff);
}

.preview-main {
  display: flex;
  flex-direction: column;
  padding: 0.8rem;
}

.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.preview-search,
.preview-user {
  min-height: 2.9rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(17, 35, 76, 0.08);
  border-radius: 0.95rem;
  background: #fff;
  color: #67758d;
  font-size: 0.88rem;
}

.preview-search {
  flex: 1;
}

.preview-content {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) 240px;
  gap: 0.85rem;
  flex: 1;
}

.preview-schedule,
.preview-assistant {
  border: 1px solid rgba(17, 35, 76, 0.08);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.96);
}

.preview-schedule {
  padding: 0.9rem;
}

.preview-schedule h3 {
  margin: 0 0 0.75rem;
  color: var(--ink-dark);
  font-size: 1rem;
}

.mini-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
}

.mini-board-head {
  padding: 0.5rem;
  color: #55637c;
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}

.mini-chip {
  min-height: 3.2rem;
  padding: 0.55rem;
  border-radius: 0.8rem;
  color: #1d3560;
  font-size: 0.72rem;
  font-weight: 700;
}

.chip-blue { background: #d8e7ff; }
.chip-purple { background: #eadbff; }
.chip-green { background: #dff6df; }
.chip-orange { background: #ffe5bf; }
.chip-rose { background: #ffdce8; }
.chip-sky { background: #d8f0ff; }

.preview-assistant {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.85rem;
}

.assistant-row {
  padding: 0.85rem;
  border-radius: 0.95rem;
  font-size: 0.84rem;
  font-weight: 700;
}

.assistant-row.red { background: #fff0f3; color: #e53958; }
.assistant-row.orange { background: #fff5e8; color: #ff8e18; }
.assistant-row.green { background: #eefcf5; color: #17a46a; }
.assistant-row.blue { background: #eef4ff; color: #2968ff; }

.stats-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.stats-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(17, 35, 76, 0.07);
  border-radius: 1.45rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(17, 35, 76, 0.06);
}

.stats-card strong,
.template-showcase-card h3,
.benefit-item strong {
  display: block;
}

.stats-card strong {
  color: var(--ink-dark);
  font-size: 1.9rem;
}

.stats-card span {
  color: #51627e;
  font-weight: 700;
}

.stats-icon {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1.15rem;
  color: #fff;
  font-size: 1.15rem;
}

.stats-icon.blue { background: linear-gradient(135deg, #1761ff, #3482ff); }
.stats-icon.green { background: linear-gradient(135deg, #1ecf89, #0aa96b); }
.stats-icon.purple { background: linear-gradient(135deg, #8b4dff, #6b32ff); }
.stats-icon.sky { background: linear-gradient(135deg, #2ab8ff, #2487ff); }
.stats-icon.emerald { background: linear-gradient(135deg, #16c884, #08a86c); }

.showcase-section,
.benefits-section {
  margin-top: 1.5rem;
}

.showcase-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.showcase-header h2,
.benefits-section h2,
.cta-banner h2 {
  margin: 0;
  color: var(--ink-dark);
  font-size: 2rem;
}

.compact-button {
  min-height: 3rem;
}

.template-showcase-grid,
.benefits-grid,
.content-grid {
  display: grid;
  gap: 1rem;
}

.template-showcase-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.template-showcase-card,
.content-card,
.page-header,
.support-form {
  border: 1px solid rgba(17, 35, 76, 0.08);
  border-radius: 1.45rem;
  background: #fff;
  box-shadow: 0 22px 52px rgba(17, 35, 76, 0.06);
}

.template-showcase-card {
  padding: 1.2rem;
}

.template-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.template-badge.green { background: #e7fbf2; color: #16a96b; }
.template-badge.blue { background: #ebf1ff; color: #2867ff; }
.template-badge.purple { background: #f2ebff; color: #7a42ff; }
.template-badge.orange { background: #fff1e1; color: #ff8a18; }
.template-badge.cyan { background: #e7fbff; color: #10a4c9; }

.template-showcase-card h3 {
  margin: 1rem 0 0.35rem;
  color: var(--ink-dark);
  font-size: 1.28rem;
  line-height: 1.25;
}

.template-showcase-card p,
.template-showcase-card small {
  display: block;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.95rem 0 1rem;
}

.tag-row span {
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: #eef4ff;
  color: #466292;
  font-size: 0.74rem;
  font-weight: 700;
}

.full-button {
  width: 100%;
}

.benefits-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.benefit-item {
  padding: 1rem 0.75rem;
}

.benefit-item strong {
  margin-bottom: 0.35rem;
  color: var(--ink-dark);
  font-size: 1rem;
}

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  margin-top: 1.5rem;
  padding: 1.4rem 1.6rem;
  border-radius: 1.45rem;
  background: linear-gradient(135deg, #1758ff, #6a3bff);
  color: #fff;
  box-shadow: 0 26px 60px rgba(36, 59, 150, 0.18);
}

.cta-banner h2,
.cta-banner p {
  color: #fff;
}

.inverted-button {
  background: #fff;
  color: var(--ink-dark);
}

.subtle-button {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
}

.site-footer {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
  padding: 2rem;
  border-radius: 1.6rem;
  background: linear-gradient(180deg, #071733 0%, #0b2049 100%);
  color: #fff;
}

.footer-logo {
  width: 180px;
  height: auto;
  background: transparent;
  box-shadow: none;
  filter: none;
}

.footer-brand p {
  max-width: 280px;
  color: rgba(232, 238, 255, 0.78);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.footer-columns h4 {
  margin: 0 0 0.85rem;
}

.footer-columns a {
  display: block;
  margin-bottom: 0.55rem;
  color: rgba(232, 238, 255, 0.82);
  text-decoration: none;
}

.newsletter-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 1rem;
}

.newsletter-box input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  outline: none;
}

.newsletter-box button {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #1c60ff, #6d40ff);
  color: #fff;
}

.page-header {
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.content-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 1.5rem;
}

.content-card {
  padding: 1.35rem;
}

.support-page {
  max-width: 860px;
}

.support-form {
  padding: 1.5rem;
}

.support-form,
.support-form label {
  display: grid;
  gap: 1rem;
}

.support-form input,
.support-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  font: inherit;
}

.feedback {
  margin: 0;
  font-weight: 700;
}

.status-ok {
  color: var(--success);
}

.status-error {
  color: #c62828;
}

.site-header--shell {
  position: fixed;
  top: 0;
}

.main-nav--shell {
  margin-left: 1rem;
}

.header-actions--shell {
  flex-shrink: 0;
}

.site-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.3rem;
  width: 2.9rem;
  height: 2.9rem;
  margin-left: auto;
  border: 1px solid rgba(17, 35, 76, 0.08);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.16);
}

.site-nav-toggle span {
  width: 1.15rem;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.user-chip {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.6rem 0.95rem;
  border: 1px solid rgba(17, 35, 76, 0.08);
  border-radius: 0.95rem;
  background: #fff;
  color: var(--ink-dark);
  text-decoration: none;
}

.user-chip strong,
.user-chip span {
  display: block;
}

.user-chip span {
  color: var(--muted);
  font-size: 0.82rem;
}

.page-hero {
  display: grid;
  gap: 1rem;
  padding: 1.6rem;
  border: 1px solid rgba(17, 35, 76, 0.08);
  border-radius: 1.6rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(241,246,255,0.96));
  box-shadow: 0 22px 52px rgba(17, 35, 76, 0.06);
}

.page-hero h1 {
  margin: 0;
  color: var(--ink-dark);
  font-size: clamp(2rem, 3.5vw, 3.3rem);
  line-height: 1.05;
}

.page-hero p {
  margin: 0;
  max-width: 860px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.page-section {
  margin-top: 1.25rem;
}

.page-section-title {
  margin: 0 0 0.95rem;
  color: var(--ink-dark);
  font-size: 1.55rem;
}

.two-col-grid,
.three-col-grid {
  display: grid;
  gap: 1rem;
}

.two-col-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-col-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.auth-card,
.cta-inline,
.highlight-card {
  padding: 1.25rem;
  border: 1px solid rgba(17, 35, 76, 0.08);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(17, 35, 76, 0.06);
}

.info-card h3,
.auth-card h2,
.highlight-card h3 {
  margin-top: 0;
  color: var(--ink-dark);
}

.info-list,
.bullet-list {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.info-list li,
.bullet-list li {
  color: var(--muted);
  line-height: 1.55;
}

.stat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.stat-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(23, 88, 255, 0.08);
  color: var(--primary);
  font-weight: 700;
}

.cta-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.auth-tabs {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.auth-tab {
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(17, 35, 76, 0.08);
  border-radius: 999px;
  background: rgba(237, 243, 255, 0.7);
  color: var(--ink-dark);
  font-weight: 700;
}

.auth-tab.is-active {
  background: linear-gradient(135deg, #ffffff, #7dd3fc);
  color: #fff;
}

.auth-form {
  display: grid;
  gap: 0.9rem;
}

.auth-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--ink-dark);
  font-weight: 600;
}

.auth-form input,
.auth-form select {
  width: 100%;
  min-height: 3rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(17, 35, 76, 0.1);
  border-radius: 0.95rem;
  font: inherit;
}

.auth-feedback {
  margin: 0;
  font-weight: 700;
}

.auth-status-card {
  display: grid;
  gap: 0.9rem;
}

.auth-status-card strong {
  color: var(--ink-dark);
  font-size: 1.1rem;
}

.hero-actions.stacked-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-card--offer,
.content-card--download,
.content-card--template {
  display: flex;
  flex-direction: column;
}

.content-card--offer .hero-actions,
.content-card--download .hero-actions,
.content-card--template .hero-actions {
  margin-top: auto;
}

.notice-banner {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 149, 36, 0.18);
  border-radius: 1rem;
  background: rgba(255, 149, 36, 0.08);
  color: #9a5a00;
  font-weight: 600;
}

.account-dashboard {
  display: grid;
  gap: 1rem;
}

.account-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.account-history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.account-mini-item {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(17, 35, 76, 0.08);
}

.account-mini-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.account-mini-item strong {
  color: var(--ink-dark);
}

.account-mini-item span,
.account-mini-item small,
.muted-block {
  color: var(--muted);
}

.payment-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.payment-method-picker {
  display: grid;
  gap: 0.4rem;
  min-width: 240px;
  font-weight: 600;
  color: var(--ink-dark);
}

.payment-method-picker select {
  width: 100%;
  min-height: 3rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(17, 35, 76, 0.1);
  border-radius: 0.95rem;
  font: inherit;
}

.payment-status-card {
  display: grid;
  gap: 0.6rem;
}

.payment-status-card h3,
.payment-status-card p {
  margin: 0;
}

:root {
  --surface-glow: rgba(255, 255, 255, 0.78);
  --pink: #ff4db8;
  --gold: #ffb21c;
}

body {
  position: relative;
  background:
    radial-gradient(circle at 8% 8%, rgba(0, 176, 255, 0.12), transparent 20%),
    radial-gradient(circle at 88% 14%, rgba(125, 68, 255, 0.18), transparent 24%),
    radial-gradient(circle at 60% 78%, rgba(255, 178, 28, 0.12), transparent 18%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 25%, rgba(23, 88, 255, 0.08), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(255, 77, 184, 0.09), transparent 20%),
    radial-gradient(circle at 75% 80%, rgba(20, 184, 255, 0.08), transparent 18%);
  animation: siteGlow 9s ease-in-out infinite alternate;
}

.button,
.content-card,
.info-card,
.stats-card,
.template-showcase-card,
.benefit-item {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover,
.content-card:hover,
.info-card:hover,
.stats-card:hover,
.template-showcase-card:hover,
.benefit-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(17, 35, 76, 0.12);
}

.button.primary:hover {
  box-shadow: 0 18px 30px rgba(69, 88, 255, 0.32);
}

.landing-hero--vivid,
.page-hero--vivid {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(164, 122, 255, 0.22), transparent 22%),
    radial-gradient(circle at 12% 80%, rgba(20, 184, 255, 0.12), transparent 18%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 245, 255, 0.96));
}

.landing-hero--vivid::after,
.page-hero--vivid::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106, 59, 255, 0.18), transparent 66%);
}

.hero-visual-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--primary);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(17, 35, 76, 0.08);
}

.hero-feature-list--rich span::before {
  content: "";
  margin-right: 0;
}

.hero-mini-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.mini-visual-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem;
  border: 1px solid rgba(23, 88, 255, 0.08);
  border-radius: 1rem;
  background: var(--surface-glow);
  backdrop-filter: blur(8px);
  animation: fadeUp 700ms ease both;
}

.mini-visual-card strong {
  color: var(--ink-dark);
}

.mini-visual-card span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.hero-preview-card--enhanced {
  animation: floatPanel 5.6s ease-in-out infinite;
}

.benefits-section--playful,
.cta-banner--vivid {
  position: relative;
  overflow: hidden;
}

.benefits-section--playful::after,
.cta-banner--vivid::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 68%);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-header h2,
.section-header p {
  margin: 0;
}

.section-header--playful h2 {
  color: var(--ink-dark);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.section-header--playful p {
  color: var(--muted);
  margin-top: 0.35rem;
}

.floating-card {
  animation: fadeUp 560ms ease both;
}

.accent-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.98));
}

.accent-card--aurora {
  border-color: rgba(0, 184, 148, 0.16);
  box-shadow: 0 20px 50px rgba(0, 184, 148, 0.08);
}

.accent-card--sunset {
  border-color: rgba(255, 157, 23, 0.18);
  box-shadow: 0 20px 50px rgba(255, 157, 23, 0.08);
}

.accent-card--sky {
  border-color: rgba(23, 88, 255, 0.16);
  box-shadow: 0 20px 50px rgba(23, 88, 255, 0.08);
}

.downloads-groups {
  display: grid;
  gap: 1.25rem;
}

.download-group__grid,
.template-download-grid,
.template-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.download-card__top,
.template-card-top,
.offer-card__top,
.template-download-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.download-card__emoji,
.template-card-emoji,
.offer-card__emoji,
.template-download-card__emoji,
.method-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, rgba(23, 88, 255, 0.16), rgba(106, 59, 255, 0.14));
  font-size: 1.35rem;
}

.download-card__facts,
.offer-card__meta,
.template-badge-row,
.template-detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.download-card__facts span,
.offer-card__meta span,
.template-badge-row span {
  display: inline-flex;
  align-items: center;
  min-height: 2.05rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(23, 88, 255, 0.07);
  color: var(--ink-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.template-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 1rem;
}

.template-detail-main__eyebrow {
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.template-detail-main h2 {
  margin-top: 0;
}

.template-detail-facts div {
  display: grid;
  gap: 0.2rem;
  min-width: 180px;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(17, 35, 76, 0.08);
  border-radius: 1rem;
  background: rgba(245, 248, 255, 0.92);
}

.template-detail-side {
  display: grid;
  gap: 1rem;
}

.spotlight-card {
  background:
    radial-gradient(circle at top right, rgba(123, 96, 255, 0.12), transparent 24%),
    rgba(255, 255, 255, 0.96);
}

.method-card {
  display: grid;
  gap: 0.75rem;
}

.pricing-hero {
  margin-bottom: 1rem;
}

.offer-card {
  display: grid;
  gap: 1rem;
  overflow: hidden;
}

.offer-card__price {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--ink-dark);
}

.offer-card--0 {
  background: linear-gradient(135deg, rgba(237, 255, 246, 0.96), rgba(255, 255, 255, 0.96));
}

.offer-card--1 {
  background: linear-gradient(135deg, rgba(239, 245, 255, 0.96), rgba(255, 255, 255, 0.96));
}

.offer-card--2 {
  background: linear-gradient(135deg, rgba(248, 240, 255, 0.96), rgba(255, 255, 255, 0.96));
}

.offer-card--3 {
  background: linear-gradient(135deg, rgba(255, 246, 232, 0.96), rgba(255, 255, 255, 0.96));
}

.offer-card--4 {
  background: linear-gradient(135deg, rgba(232, 251, 255, 0.96), rgba(255, 255, 255, 0.96));
}

.offer-card--5 {
  background: linear-gradient(135deg, rgba(255, 240, 247, 0.96), rgba(255, 255, 255, 0.96));
}

.payment-status-card--pending {
  border-color: rgba(255, 157, 23, 0.22);
  background: rgba(255, 157, 23, 0.08);
}

.payment-status-card--ready {
  border-color: rgba(23, 88, 255, 0.2);
  background: rgba(23, 88, 255, 0.08);
}

.payment-status-card--success {
  border-color: rgba(15, 159, 110, 0.22);
  background: rgba(15, 159, 110, 0.08);
}

.payment-status-card--error {
  border-color: rgba(255, 77, 92, 0.24);
  background: rgba(255, 77, 92, 0.08);
}

.theme-mobile .download-card__emoji,
.theme-mobile .section-header h2 {
  color: #1667ff;
}

.theme-desktop .download-card__emoji,
.theme-desktop .section-header h2 {
  color: #6a3bff;
}

.theme-resource .download-card__emoji,
.theme-resource .section-header h2 {
  color: #0f9f6e;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatPanel {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes siteGlow {
  from {
    opacity: 0.6;
    transform: scale(1);
  }

  to {
    opacity: 1;
    transform: scale(1.03);
  }
}

/* Folder-driven template catalog */
.template-catalog-page,
.template-detail-page {
  --template-soft-blue: #edf4ff;
  --template-soft-mint: #ebfbf6;
  --template-soft-orange: #fff4e6;
  width: 100%;
  min-width: 0;
}

.template-catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2.35rem);
}

.template-catalog-hero > div:first-child {
  position: relative;
  z-index: 1;
}

.template-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.template-hero-pills span {
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(23, 88, 255, 0.1);
  border-radius: 999px;
  color: #23406f;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

.template-hero-visual {
  position: relative;
  display: grid;
  width: 190px;
  height: 132px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 2rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(229, 238, 255, 0.74));
  box-shadow: 0 24px 52px rgba(59, 58, 176, 0.16);
  transform: rotate(2deg);
}

.template-hero-visual span:first-child {
  font-size: 3.5rem;
  animation: templateFloat 4.4s ease-in-out infinite;
}

.template-hero-visual span:not(:first-child) {
  position: absolute;
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 10px 22px rgba(17, 35, 76, 0.12);
  font-size: 1.25rem;
}

.template-hero-visual span:nth-child(2) { top: 0.7rem; right: 0.8rem; }
.template-hero-visual span:nth-child(3) { right: 1.8rem; bottom: -0.55rem; }

.template-catalog-toolbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(220px, 0.5fr) auto;
  align-items: end;
  gap: 0.8rem;
  margin: 1rem 0;
  padding: 0.85rem;
  border: 1px solid rgba(17, 35, 76, 0.08);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 34px rgba(17, 35, 76, 0.07);
  backdrop-filter: blur(14px);
}

.template-search-field,
.template-filter-field {
  display: grid;
  gap: 0.35rem;
}

.template-search-field {
  position: relative;
}

.template-search-field > span {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  color: var(--primary);
  font-size: 1.35rem;
  transform: translateY(-50%);
}

.template-search-field input,
.template-filter-field select {
  width: 100%;
  min-height: 3rem;
  border: 1px solid rgba(17, 35, 76, 0.1);
  border-radius: 0.9rem;
  color: var(--ink-dark);
  background: #fff;
  font: inherit;
}

.template-search-field input {
  padding: 0.75rem 0.9rem 0.75rem 2.65rem;
}

.template-filter-field select {
  padding: 0.65rem 0.8rem;
}

.template-filter-field > span {
  padding-left: 0.15rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.template-search-field input:focus,
.template-filter-field select:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(23, 88, 255, 0.1);
}

.template-result-count {
  min-width: 118px;
  padding: 0.85rem 0.95rem;
  border-radius: 0.9rem;
  color: #075985;
  background: #e8f7ff;
  font-size: 0.84rem;
  font-weight: 800;
  text-align: center;
}

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

.template-catalog-card {
  position: relative;
  gap: 0.95rem;
  min-height: 100%;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--template-accent) 18%, transparent);
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--template-accent) 13%, transparent), transparent 36%),
    rgba(255, 255, 255, 0.97);
  animation-delay: calc(var(--card-index) * 70ms);
  min-width: 0;
}

.template-card-accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--template-accent);
}

.template-catalog-card .template-card-emoji {
  flex: 0 0 auto;
  color: var(--template-accent);
  background: color-mix(in srgb, var(--template-accent) 12%, white);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--template-accent) 18%, transparent);
}

.template-card-heading {
  min-width: 0;
}

.template-card-heading h2 {
  margin: 0.5rem 0 0;
  color: var(--ink-dark);
  font-size: 1.08rem;
  line-height: 1.25;
}

.template-card-badges,
.template-card-context {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.template-badge.neutral {
  color: #475569;
  background: #f1f5f9;
}

.template-card-description {
  min-height: 3.5rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.template-card-context span {
  padding: 0.35rem 0.55rem;
  border-radius: 0.65rem;
  color: #405272;
  background: rgba(241, 245, 249, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
}

.template-card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.template-card-stats div {
  display: grid;
  gap: 0.1rem;
  padding: 0.55rem;
  border: 1px solid rgba(17, 35, 76, 0.06);
  border-radius: 0.75rem;
  background: rgba(248, 250, 252, 0.9);
  text-align: center;
}

.template-card-stats strong {
  color: var(--template-accent);
  font-size: 1rem;
}

.template-card-stats span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
}

.template-card-actions {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 0.55rem;
}

.template-card-actions .button {
  padding-inline: 0.65rem;
  text-align: center;
}

.template-loading-card,
.template-empty-card {
  grid-column: 1 / -1;
  justify-items: center;
  min-height: 220px;
  text-align: center;
}

.template-empty-card > span {
  font-size: 2.5rem;
}

/* Template detail architecture */
.template-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.2rem 0 0.85rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.template-breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.template-detail-shell {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.template-detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.55fr);
  gap: 1rem;
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border: 1px solid color-mix(in srgb, var(--template-accent) 18%, transparent);
  border-radius: 1.8rem;
  background:
    radial-gradient(circle at 88% 10%, color-mix(in srgb, var(--template-accent) 24%, transparent), transparent 26%),
    linear-gradient(135deg, #fff, color-mix(in srgb, var(--template-accent) 7%, white));
  box-shadow: 0 25px 58px rgba(20, 33, 61, 0.1);
}

.template-detail-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.template-detail-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
  color: var(--template-accent);
  font-size: 0.85rem;
}

.template-detail-eyebrow > span:first-child {
  font-size: 1.35rem;
}

.template-detail-copy h1 {
  max-width: 800px;
  margin: 0.75rem 0 0.6rem;
  color: var(--ink-dark);
  font-size: clamp(1.8rem, 4vw, 3.15rem);
  line-height: 1.07;
}

.template-detail-copy > p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.template-main-download {
  box-shadow: 0 12px 28px color-mix(in srgb, var(--template-accent) 26%, transparent);
}

.template-detail-visual {
  position: relative;
  display: grid;
  min-height: 260px;
  place-items: center;
}

.template-detail-visual__main {
  display: grid;
  width: 9.5rem;
  height: 9.5rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 2.2rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 55px color-mix(in srgb, var(--template-accent) 22%, transparent);
  font-size: 4.6rem;
  animation: templateFloat 4.8s ease-in-out infinite;
  transform: rotate(3deg);
}

.template-detail-visual span:not(.template-detail-visual__main) {
  position: absolute;
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 26px rgba(17, 35, 76, 0.13);
  font-size: 1.4rem;
}

.template-detail-visual span:nth-child(2) { top: 8%; left: 9%; }
.template-detail-visual span:nth-child(3) { top: 13%; right: 5%; }
.template-detail-visual span:nth-child(4) { bottom: 7%; left: 12%; }
.template-detail-visual span:nth-child(5) { right: 7%; bottom: 12%; }

.template-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.template-overview-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.1rem 0.65rem;
  padding: 0.95rem;
  border: 1px solid rgba(17, 35, 76, 0.07);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 25px rgba(17, 35, 76, 0.05);
}

.template-overview-card > span {
  grid-row: 1 / 3;
  font-size: 1.45rem;
}

.template-overview-card strong {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.template-overview-card p {
  margin: 0;
  color: var(--ink-dark);
  font-weight: 800;
}

.template-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.section-kicker {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.template-section-heading h2 {
  margin: 0.25rem 0;
  color: var(--ink-dark);
}

.template-section-heading p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
}

.template-section-count {
  display: grid;
  min-width: 88px;
  padding: 0.65rem;
  border-radius: 0.9rem;
  color: var(--primary);
  background: var(--template-soft-blue);
  font-size: 1.3rem;
  font-weight: 900;
  text-align: center;
}

.template-section-count small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
}

.template-entity-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.template-entity-card {
  position: relative;
  display: grid;
  gap: 0.55rem;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid rgba(17, 35, 76, 0.07);
  border-radius: 1.05rem;
  background: linear-gradient(145deg, #fff, #f8fbff);
  box-shadow: 0 12px 28px rgba(17, 35, 76, 0.055);
  animation: fadeUp 500ms ease both;
  animation-delay: calc(var(--entity-index) * 55ms);
  min-width: 0;
}

.template-entity-card::after {
  content: "";
  position: absolute;
  right: -1.5rem;
  bottom: -1.5rem;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: rgba(23, 88, 255, 0.05);
}

.template-entity-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.template-entity-card__head span {
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 900;
}

.template-entity-card__head strong {
  color: var(--primary);
  font-size: 1.35rem;
}

.template-entity-card h3,
.template-entity-card p {
  margin: 0;
}

.template-entity-card h3 {
  color: var(--ink-dark);
}

.template-entity-card p {
  min-height: 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.template-field-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.template-field-chips span {
  padding: 0.25rem 0.45rem;
  border-radius: 0.5rem;
  color: #475569;
  background: #eef2f7;
  font-family: Consolas, monospace;
  font-size: 0.68rem;
}

.template-entity-card__view {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin-top: auto;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(23, 88, 255, 0.14);
  border-radius: 0.75rem;
  color: var(--primary);
  background: rgba(237, 244, 255, 0.82);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.template-entity-card__view:hover,
.template-entity-card__view:focus-visible {
  border-color: rgba(23, 88, 255, 0.32);
  background: #e6efff;
  outline: none;
  transform: translateY(-1px);
}

.template-entity-card__view > span:last-child {
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-size: 0.9rem;
}

.template-modal-open {
  overflow: hidden;
}

.template-data-dialog[hidden] {
  display: none;
}

.template-data-dialog {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  padding: clamp(0.75rem, 3vw, 2.5rem);
  place-items: center;
}

.template-data-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 24, 54, 0.66);
  backdrop-filter: blur(8px);
  animation: templateDataFade 180ms ease both;
}

.template-data-dialog__panel {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(180px, 1fr) auto;
  gap: 1rem;
  width: min(1180px, 100%);
  max-height: min(90vh, 820px);
  overflow: hidden;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 1.4rem;
  background:
    radial-gradient(circle at 100% 0, rgba(23, 88, 255, 0.12), transparent 32%),
    #f8fbff;
  box-shadow: 0 32px 80px rgba(8, 24, 58, 0.28);
  animation: templateDataEnter 240ms ease both;
}

.template-data-dialog__panel:focus {
  outline: none;
}

.template-data-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.template-data-dialog__header h2,
.template-data-dialog__header p {
  margin: 0;
}

.template-data-dialog__header h2 {
  margin-top: 0.2rem;
  color: var(--ink-dark);
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.template-data-dialog__header p {
  max-width: 760px;
  margin-top: 0.35rem;
  color: var(--muted);
  line-height: 1.5;
}

.template-data-dialog__close {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(17, 35, 76, 0.1);
  border-radius: 0.85rem;
  color: #334155;
  background: #fff;
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
  transition: color 180ms ease, transform 180ms ease;
}

.template-data-dialog__close:hover,
.template-data-dialog__close:focus-visible {
  color: var(--primary);
  outline: 3px solid rgba(23, 88, 255, 0.12);
  transform: rotate(4deg);
}

.template-data-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(17, 35, 76, 0.07);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
}

.template-data-search {
  display: grid;
  flex: 1 1 440px;
  gap: 0.35rem;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 800;
}

.template-data-search input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid #dbe4f1;
  border-radius: 0.75rem;
  color: var(--ink-dark);
  background: #fff;
  font: inherit;
  font-weight: 600;
}

.template-data-search input:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(23, 88, 255, 0.1);
}

.template-data-search input:disabled {
  cursor: wait;
  opacity: 0.65;
}

.template-data-counter {
  flex: 0 0 auto;
  padding: 0.68rem 0.8rem;
  border-radius: 0.75rem;
  color: #075985;
  background: #e0f2fe;
  font-size: 0.78rem;
  white-space: nowrap;
}

.template-data-table-wrap {
  min-height: 180px;
  overflow: auto;
  border: 1px solid #dfe7f2;
  border-radius: 1rem;
  background: #fff;
  overscroll-behavior: contain;
  scrollbar-color: #a7b9d4 #edf2f8;
}

.template-data-table-wrap:focus-visible {
  outline: 3px solid rgba(23, 88, 255, 0.12);
}

.template-data-table {
  width: max-content;
  min-width: 100%;
  border-spacing: 0;
  border-collapse: separate;
  color: #24334d;
  font-size: 0.78rem;
}

.template-data-table th,
.template-data-table td {
  max-width: 300px;
  padding: 0.7rem 0.8rem;
  border-right: 1px solid #edf1f6;
  border-bottom: 1px solid #edf1f6;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.template-data-table thead th {
  position: sticky;
  z-index: 2;
  top: 0;
  min-width: 145px;
  color: #17315f;
  background: #eef5ff;
  box-shadow: 0 1px 0 #dfe7f2;
}

.template-data-table thead th span,
.template-data-table thead th small {
  display: block;
}

.template-data-table thead th small {
  margin-top: 0.15rem;
  color: #718096;
  font-family: Consolas, monospace;
  font-size: 0.62rem;
  font-weight: 600;
}

.template-data-table tbody tr:nth-child(even) td,
.template-data-table tbody tr:nth-child(even) th {
  background: #fbfdff;
}

.template-data-table tbody tr:hover td,
.template-data-table tbody tr:hover th {
  background: #f3f8ff;
}

.template-data-table .template-data-row-number,
.template-data-table tbody th {
  position: sticky;
  z-index: 3;
  left: 0;
  min-width: 3.2rem;
  width: 3.2rem;
  color: #64748b;
  background: #f8fafc;
  text-align: center;
}

.template-data-table thead .template-data-row-number {
  z-index: 4;
  background: #e5efff;
}

.template-data-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.template-data-values span,
.template-data-status,
.template-data-boolean {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.42rem;
  border-radius: 0.45rem;
  font-size: 0.68rem;
  font-weight: 800;
}

.template-data-values span {
  color: #1d4ed8;
  background: #eaf1ff;
}

.template-data-status,
.template-data-boolean.is-true {
  color: #047857;
  background: #dcfce7;
}

.template-data-boolean.is-false {
  color: #b45309;
  background: #ffedd5;
}

.template-data-empty {
  color: #94a3b8;
  font-style: italic;
}

.template-data-color {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.template-data-color i {
  width: 1rem;
  height: 1rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--data-color);
  box-shadow: 0 0 0 1px #cbd5e1;
}

.template-data-message {
  display: grid;
  min-height: 220px;
  padding: 2rem;
  place-items: center;
  align-content: center;
  gap: 0.65rem;
  color: var(--muted);
  text-align: center;
}

.template-data-message > span:not(.template-data-spinner) {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border-radius: 50%;
  color: var(--primary);
  background: #eaf1ff;
  font-weight: 900;
}

.template-data-message.is-error > span {
  color: #be123c;
  background: #ffe4e6;
}

.template-data-message p {
  max-width: 520px;
  margin: 0;
}

.template-data-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid #dbe7fa;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: templateDataSpin 700ms linear infinite;
}

.template-data-dialog__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.template-data-dialog__footer .button {
  flex: 0 0 auto;
}

@keyframes templateDataFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes templateDataEnter {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes templateDataSpin {
  to { transform: rotate(360deg); }
}

.template-relations-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.template-relations-card,
.template-import-path-card {
  padding: 1.2rem;
  border: 1px solid rgba(17, 35, 76, 0.07);
  border-radius: 1.2rem;
  background: #fff;
  box-shadow: 0 14px 34px rgba(17, 35, 76, 0.06);
}

.template-relations-card {
  background: linear-gradient(145deg, #fff, #eef9ff);
}

.template-import-path-card {
  background: linear-gradient(145deg, #fff, #f4f0ff);
}

.template-relation-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.template-relation-list > div {
  display: grid;
  grid-template-columns: 2rem 1fr;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.75);
}

.template-relation-list span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.65rem;
  color: #fff;
  background: linear-gradient(145deg, #0ea5e9, #2563eb);
  font-size: 0.75rem;
  font-weight: 900;
}

.template-relation-list p,
.template-step-list p {
  margin: 0;
  color: #334155;
  line-height: 1.45;
}

.template-step-list {
  display: grid;
  gap: 0;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.template-step-list li {
  position: relative;
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.7rem;
  padding-bottom: 1rem;
}

.template-step-list li::before {
  content: "";
  position: absolute;
  top: 1rem;
  bottom: -0.1rem;
  left: 0.42rem;
  width: 2px;
  background: #ddd6fe;
}

.template-step-list li:last-child::before {
  display: none;
}

.template-step-list li > span {
  position: relative;
  z-index: 1;
  width: 0.9rem;
  height: 0.9rem;
  margin-top: 0.2rem;
  border: 3px solid #ede9fe;
  border-radius: 50%;
  background: #7c3aed;
}

.template-file-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.template-file-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem;
  border: 1px solid rgba(15, 159, 110, 0.13);
  border-radius: 1rem;
  background: linear-gradient(135deg, #f0fdf7, #fff);
}

.template-file-card__icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 0.9rem;
  background: #dcfce7;
  font-size: 1.35rem;
}

.template-file-card h3,
.template-file-card p {
  margin: 0;
}

.template-file-card p,
.template-file-card small {
  color: var(--muted);
}

.template-file-card small {
  font-family: Consolas, monospace;
  font-size: 0.68rem;
}

.template-requirements {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
  padding: 0.8rem;
  border-radius: 0.9rem;
  color: #475569;
  background: #f8fafc;
  font-size: 0.78rem;
}

.template-requirements strong {
  color: var(--ink-dark);
}

.template-requirements span {
  padding: 0.3rem 0.5rem;
  border-radius: 0.55rem;
  color: #166534;
  background: #ecfdf5;
  font-weight: 700;
}

@keyframes templateFloat {
  0%, 100% { transform: translateY(0) rotate(3deg); }
  50% { transform: translateY(-9px) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .template-hero-visual span:first-child,
  .template-detail-visual__main,
  .template-catalog-card,
  .template-entity-card {
    animation: none;
  }
}

.payment-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.payment-step-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: linear-gradient(145deg, #ffffff, #eff7ff);
}

.payment-step-card:nth-child(2) {
  background: linear-gradient(145deg, #ffffff, #ecfdf5);
}

.payment-step-card:nth-child(3) {
  background: linear-gradient(145deg, #ffffff, #fff7ed);
}

.payment-step-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.payment-step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.payment-step-card__number {
  display: grid;
  flex: 0 0 2.6rem;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border-radius: 0.9rem;
  color: #ffffff;
  background: linear-gradient(135deg, #1268ff, #14b8a6);
  box-shadow: 0 10px 25px rgba(18, 104, 255, 0.2);
  font-weight: 900;
}

.payment-dialog {
  z-index: 1500;
}

.payment-dialog [hidden] {
  display: none !important;
}

.payment-dialog__panel {
  width: min(760px, calc(100vw - 2rem));
  max-height: min(860px, calc(100vh - 2rem));
}

.payment-dialog__offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid rgba(18, 104, 255, 0.14);
  border-radius: 1.1rem;
  background:
    radial-gradient(circle at 95% 10%, rgba(124, 58, 237, 0.16), transparent 35%),
    linear-gradient(135deg, #eff6ff, #ffffff 55%, #f5f3ff);
}

.payment-dialog__offer > div {
  display: grid;
  gap: 0.2rem;
}

.payment-dialog__offer > div:last-child {
  text-align: right;
}

.payment-dialog__offer small,
.payment-dialog__offer span {
  color: var(--muted);
}

.payment-dialog__offer strong {
  color: var(--ink-dark);
  font-size: 1.05rem;
}

.payment-dialog__form {
  display: grid;
  gap: 0.75rem;
}

.payment-dialog__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.payment-dialog__wide {
  width: 100%;
}

.payment-dialog__actions {
  position: sticky;
  bottom: 0;
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.payment-dialog__feedback {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(18, 104, 255, 0.2);
  border-radius: 1rem;
  color: #123a72;
  background: #eff6ff;
  font-weight: 700;
  line-height: 1.45;
}

.payment-dialog__feedback[data-state="success"] {
  border-color: rgba(5, 150, 105, 0.3);
  color: #067647;
  background: #ecfdf3;
}

.payment-dialog__feedback[data-state="error"] {
  border-color: rgba(220, 38, 38, 0.3);
  color: #b42318;
  background: #fff1f2;
}

.payment-dialog__feedback[data-state="pending"]::before {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  border: 2px solid rgba(18, 104, 255, 0.25);
  border-top-color: #1268ff;
  border-radius: 50%;
  content: "";
  animation: payment-feedback-spin 0.8s linear infinite;
}

@keyframes payment-feedback-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  .payment-steps-grid,
  .payment-dialog__grid {
    grid-template-columns: 1fr;
  }

  .payment-dialog {
    padding: 0.5rem;
  }

  .payment-dialog__panel {
    width: 100%;
    max-height: calc(100vh - 1rem);
    border-radius: 1.15rem;
  }

  .payment-dialog__offer {
    grid-template-columns: 1fr;
  }

  .payment-dialog__offer > div:last-child {
    text-align: left;
  }

  .payment-dialog__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}


.site-header .site-language-button:hover,
.site-header .site-language-button:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}


/* SmartEDT web polish: default visual zoom and safer home preview. */
body {
  zoom: 0.8;
}

.landing-hero {
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
}

.hero-preview-card,
.hero-preview-card * {
  min-width: 0;
}

.hero-preview-card {
  max-width: 100%;
  min-height: clamp(430px, 48vw, 520px);
  grid-template-columns: clamp(92px, 11vw, 122px) minmax(0, 1fr);
}

.preview-sidebar {
  gap: 0.34rem;
  padding: 0.72rem 0.58rem;
}

.preview-sidebar-logo img {
  width: clamp(64px, 7vw, 84px);
}

.preview-nav-item {
  padding: 0.58rem 0.55rem;
  font-size: clamp(0.64rem, 0.72vw, 0.78rem);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.preview-main {
  padding: 0.65rem;
}

.preview-topbar {
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.preview-search,
.preview-user {
  min-height: 2.45rem;
  padding: 0.58rem 0.72rem;
  font-size: clamp(0.68rem, 0.8vw, 0.82rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-user {
  flex: 0 1 8.5rem;
}

.preview-content {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 210px);
  gap: 0.65rem;
}

.preview-schedule,
.preview-assistant {
  overflow: hidden;
}

.preview-schedule {
  padding: 0.72rem;
}

.preview-schedule h3 {
  display: -webkit-box;
  margin-bottom: 0.55rem;
  font-size: clamp(0.76rem, 1vw, 0.95rem);
  line-height: 1.2;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mini-board {
  gap: 0.32rem;
}

.mini-board-head {
  padding: 0.32rem 0.12rem;
  font-size: clamp(0.52rem, 0.72vw, 0.68rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-chip {
  min-height: 2.42rem;
  padding: 0.38rem 0.24rem;
  font-size: clamp(0.54rem, 0.72vw, 0.68rem);
  line-height: 1.08;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-align: center;
}

.preview-assistant {
  gap: 0.52rem;
  padding: 0.68rem;
}

.assistant-row {
  padding: 0.64rem;
  font-size: clamp(0.64rem, 0.82vw, 0.78rem);
  line-height: 1.22;
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .landing-hero {
    grid-template-columns: 1fr;
  }

  .hero-preview-card {
    width: 100%;
  }
}

/* SmartEDT compact fixed header. */
.site-header {
  min-height: 3.65rem;
  padding: 0.42rem clamp(0.85rem, 2.6vw, 2rem);
}

.site-header .brand-link {
  padding: 0.22rem 0.55rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(7, 22, 67, 0.16);
}

.site-header .brand-logo {
  width: 158px;
  max-height: 2.7rem;
  object-fit: contain;
}

.main-nav a {
  padding: 0.44rem 0.68rem;
  font-size: 0.84rem;
}

.header-actions {
  gap: 0.52rem;
}

.site-header .button,
.site-header .ghost-button,
.site-header .account-button,
.site-header .user-chip,
.site-header .header-pill {
  min-height: 2.28rem;
  padding-block: 0.42rem;
}

.site-language-switcher {
  padding: 0.16rem;
}

.site-language-button {
  min-height: 2rem;
  min-width: 2rem;
  padding: 0.22rem 0.34rem;
}
