*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

:root,
[data-theme="dark"] {
  --bg: #000000;
  --bg-card: #0a0e14;
  --bg-elevated: #0f141c;
  --text: #f0f4f8;
  --text-muted: #8fa3b8;
  --primary: #0088ff;
  --primary-light: #4db8ff;
  --primary-dark: #0066cc;
  --accent: #b8c8d8;
  --gradient: linear-gradient(135deg, #0088ff, #4db8ff);
  --gradient-silver: linear-gradient(180deg, #ffffff 0%, #b8c8d8 100%);
  --glow: 0 0 20px rgba(0, 136, 255, 0.35);
  --border: rgba(0, 136, 255, 0.12);
  --header-scrolled-bg: rgba(0, 0, 0, 0.92);
  --tabbar-bg: rgba(0, 0, 0, 0.95);
  --lang-code: #e8f0f8;
  --lang-code-active: #ffffff;
  --hero-glow-1: rgba(0, 136, 255, 0.18);
  --hero-glow-2: rgba(77, 184, 255, 0.08);
  --card-hover-shadow: rgba(0, 0, 0, 0.3);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  --transition: 0.15s ease;
}

[data-theme="light"] {
  --bg: #e8f2fc;
  --bg-card: #f6faff;
  --bg-elevated: #dceafb;
  --text: #0c1a2e;
  --text-muted: #4a6280;
  --gradient-silver: linear-gradient(180deg, #0044aa 0%, #0088ff 100%);
  --glow: 0 0 24px rgba(0, 136, 255, 0.28);
  --border: rgba(0, 136, 255, 0.28);
  --header-scrolled-bg: rgba(232, 242, 252, 0.92);
  --tabbar-bg: rgba(232, 242, 252, 0.96);
  --lang-code: #3d5a80;
  --lang-code-active: #0044aa;
  --hero-glow-1: rgba(0, 136, 255, 0.28);
  --hero-glow-2: rgba(77, 184, 255, 0.18);
  --card-hover-shadow: rgba(0, 100, 220, 0.18);
  --shadow: 0 8px 32px rgba(0, 80, 180, 0.12);
}

[data-theme="light"] body {
  background:
    radial-gradient(ellipse 100% 80% at 0% 0%, rgba(0, 136, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 80% 60% at 100% 20%, rgba(77, 184, 255, 0.12), transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(0, 68, 170, 0.08), transparent 55%),
    var(--bg);
}

[data-theme="light"] .hero__bg {
  background:
    radial-gradient(ellipse 90% 70% at 20% 10%, rgba(0, 136, 255, 0.22), transparent 60%),
    radial-gradient(ellipse 70% 60% at 85% 40%, rgba(77, 184, 255, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 60% 90%, rgba(0, 68, 170, 0.1), transparent 50%);
}

[data-theme="light"] .badge {
  background: rgba(0, 136, 255, 0.14);
  border-color: rgba(0, 136, 255, 0.45);
  color: #0066cc;
}

[data-theme="light"] .service-card,
[data-theme="light"] .step,
[data-theme="light"] .about__box,
[data-theme="light"] .contact__form {
  background: linear-gradient(160deg, #ffffff 0%, #edf5ff 100%);
  border-color: rgba(0, 136, 255, 0.22);
}

[data-theme="light"] .service-card--highlight {
  background: linear-gradient(160deg, #eef6ff 0%, #d6ebff 100%);
  border-color: rgba(0, 136, 255, 0.45);
}

[data-theme="light"] .about {
  background: linear-gradient(180deg, #dceafb 0%, #c8dffa 100%);
}

[data-theme="light"] .service-card__icon,
[data-theme="light"] .card-icon,
[data-theme="light"] .contact__icon {
  background: rgba(0, 136, 255, 0.14);
}

[data-theme="light"] .hero__card {
  background: linear-gradient(145deg, #ffffff, #e3f0ff);
  border-color: rgba(0, 136, 255, 0.25);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: #ffffff;
  border-color: rgba(0, 136, 255, 0.25);
}

[data-theme="light"] .lang-switch,
[data-theme="light"] .theme-switch {
  background: rgba(255, 255, 255, 0.75);
}

[data-theme="light"] .stat strong {
  color: #0066cc;
}

[data-theme="light"] .section-header h2::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 4px;
  background: var(--gradient);
}

[data-theme="light"] .service-card::before,
[data-theme="light"] .step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--gradient);
  opacity: 0.85;
}

[data-theme="light"] .service-card,
[data-theme="light"] .step {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

[data-theme="light"] .service-card:hover {
  box-shadow: 0 16px 40px var(--card-hover-shadow), 0 0 0 1px rgba(0, 136, 255, 0.15);
}

[data-theme="light"] .footer {
  background: linear-gradient(180deg, transparent, rgba(0, 136, 255, 0.06));
}

[data-theme="light"] .social-links a {
  background: linear-gradient(145deg, #ffffff, #e8f2ff);
}

[data-theme="light"] .social-links a:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

[data-theme="light"] .process {
  background: linear-gradient(180deg, transparent, rgba(0, 136, 255, 0.05), transparent);
}

[data-theme="light"] .cta-banner {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

[data-theme="light"] .logo__mark,
[data-theme="light"] .logo__mark--sm {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

[data-theme="light"] .logo__img,
[data-theme="light"] .install-banner__icon {
  filter: drop-shadow(0 1px 6px rgba(0, 100, 200, 0.22));
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.header.scrolled {
  background: var(--header-scrolled-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.theme-switch {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  flex-shrink: 0;
}

.theme-switch__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 7px;
  color: var(--text-muted);
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.theme-switch__btn svg {
  width: 18px;
  height: 18px;
}

.theme-switch__btn.active,
.theme-switch__btn:hover {
  color: var(--primary);
  background: rgba(0, 136, 255, 0.15);
  box-shadow: 0 0 12px rgba(0, 136, 255, 0.2);
}

.lang-switch {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  flex-shrink: 0;
}

.lang-switch__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 7px;
  opacity: 0.7;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.lang-switch__flag {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.lang-switch__code {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--lang-code);
  line-height: 1;
}

.lang-switch__btn.active,
.lang-switch__btn:hover {
  opacity: 1;
  background: rgba(0, 136, 255, 0.15);
  box-shadow: 0 0 12px rgba(0, 136, 255, 0.2);
}

.lang-switch__btn.active .lang-switch__code {
  color: var(--lang-code-active);
}

.service-card--highlight {
  border-color: rgba(0, 136, 255, 0.35);
  background: linear-gradient(145deg, var(--bg-card), rgba(0, 136, 255, 0.06));
}

.service-card--highlight .service-card__icon {
  background: rgba(0, 136, 255, 0.18);
  box-shadow: var(--glow);
}

.hero h1 span:empty {
  display: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo--header {
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  max-width: min(320px, 42vw);
}

.logo__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo__tagline {
  position: relative;
  display: block;
  font-size: 0.67rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.035em;
  padding: 3px 0 3px 11px;
  max-width: 100%;
  background: linear-gradient(92deg, #cceeff 0%, #4db8ff 42%, #0088ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: var(--transition);
}

.logo__tagline::after {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  bottom: 1px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #4db8ff, #0088ff);
  box-shadow: 0 0 8px rgba(0, 136, 255, 0.45);
}

.logo--header:hover .logo__tagline {
  background: linear-gradient(92deg, #e8f4ff 0%, #66ccff 40%, #0088ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="light"] .logo__tagline {
  background: linear-gradient(92deg, #0044aa 0%, #0066cc 45%, #0088ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="light"] .logo--header:hover .logo__tagline {
  background: linear-gradient(92deg, #003580 0%, #0044aa 45%, #0066cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.logo__mark--spin {
  width: 44px;
  height: 44px;
  perspective: 200px;
}

.logo__coin {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  animation: logoCoinSpin 5s linear infinite;
}

.logo__face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 50%;
  overflow: hidden;
  background: #0a1628;
}

.logo__face--front {
  transform: rotateY(0deg) translateZ(2px);
}

.logo__face--back {
  transform: rotateY(180deg) translateZ(2px);
}

.logo__flag {
  width: 44px;
  height: 44px;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(0, 136, 255, 0.35));
}

@keyframes logoCoinSpin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .logo__coin {
    animation: none;
  }
}

.logo__img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(0, 136, 255, 0.35));
  transition: var(--transition);
}

.logo:hover .logo__img,
.logo:hover .logo__flag {
  filter: drop-shadow(0 0 10px rgba(0, 136, 255, 0.5));
}

.logo__text {
  background: var(--gradient-silver);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav__link:hover {
  color: var(--text);
}

.nav__link--cta {
  background: var(--gradient);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
}

.nav__link--cta:hover {
  opacity: 0.9;
  color: #fff;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, var(--hero-glow-1), transparent),
    radial-gradient(ellipse 60% 50% at 80% 50%, var(--hero-glow-2), transparent);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 136, 255, 0.1);
  border: 1px solid rgba(0, 136, 255, 0.35);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn--primary {
  background: var(--gradient);
  color: #fff;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 136, 255, 0.35);
}

.btn--outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
}

.hero__stats {
  display: flex;
  gap: 40px;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stat__label--short {
  display: none;
}

.hero__visual {
  position: relative;
  height: 400px;
}

.hero__card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}

.hero__card--1 { top: 10%; left: 10%; animation-delay: 0s; }
.hero__card--2 { top: 5%; right: 5%; animation-delay: 1s; }
.hero__card--3 { bottom: 30%; left: 0; animation-delay: 2s; }
.hero__card--4 { bottom: 10%; right: 10%; animation-delay: 3s; }

.card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 136, 255, 0.12);
  border-radius: 10px;
  flex-shrink: 0;
  color: var(--primary);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.hero__card span:last-child {
  font-weight: 600;
  font-size: 0.95rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero__desc--short {
  display: none;
}

/* Sections */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Services */
.services {
  padding: 100px 0;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.service-card:hover {
  border-color: rgba(0, 136, 255, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--card-hover-shadow);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 136, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.6;
}

/* About */
.about {
  padding: 100px 0;
  background: var(--bg-elevated);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__content h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.about__content > p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.about__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about__list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.check {
  width: 28px;
  height: 28px;
  background: rgba(0, 136, 255, 0.15);
  color: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.about__list strong {
  display: block;
  margin-bottom: 4px;
}

.about__list p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.about__box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.about__metric {
  text-align: center;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.about__metric:last-child {
  border-bottom: none;
}

.about__number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about__label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Process */
.process {
  padding: 100px 0;
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}

.step__num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* CTA Banner */
.cta-banner {
  padding: 80px 0;
  background: var(--gradient);
}

.cta-banner__inner {
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 12px;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.cta-banner .btn--primary {
  background: #fff;
  color: #0044aa;
}

.cta-banner .btn--primary:hover {
  background: #f6faff;
  color: #003580;
  box-shadow: 0 8px 24px rgba(0, 68, 170, 0.28);
}

/* Contact */
.contact {
  padding: 100px 0;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact__info h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

.contact__info > p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__item {
  display: flex;
  gap: 16px;
  align-items: center;
}

.contact__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 136, 255, 0.1);
  border-radius: 10px;
  flex-shrink: 0;
  color: var(--primary);
}

.contact__icon svg {
  width: 22px;
  height: 22px;
}

.contact__item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact__item a {
  color: var(--primary);
  transition: var(--transition);
}

.contact__item a:hover {
  color: var(--text);
}

.contact__form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-success {
  margin-top: 16px;
  padding: 12px;
  background: rgba(0, 136, 255, 0.1);
  border: 1px solid rgba(0, 136, 255, 0.35);
  border-radius: 8px;
  color: var(--primary);
  text-align: center;
  font-size: 0.9rem;
}

.form-error {
  margin-top: 16px;
  padding: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  color: #ef4444;
  text-align: center;
  font-size: 0.9rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding-top: 60px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer__brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 280px;
}

.footer__links h4,
.footer__social h4 {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer__links a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.social-links a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer__bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 968px) {
  .hero__inner,
  .about__inner,
  .contact__inner {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    height: 280px;
    order: -1;
  }

  .process__steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile app (PWA) */
@media (max-width: 768px) {
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-tabbar {
    display: flex;
  }

  .lang-switch {
    order: -1;
  }

  .theme-switch__btn {
    width: 30px;
    height: 30px;
  }

  .theme-switch__btn svg {
    width: 16px;
    height: 16px;
  }

  .header__actions {
    gap: 10px;
  }

  .logo--header {
    max-width: 168px;
  }

  .logo__tagline {
    font-size: 0.56rem;
    letter-spacing: 0.02em;
    line-height: 1.3;
  }

  .header-auth__guest .auth-header-btn--ghost {
    display: none;
  }

  .auth-modal__dialog {
    padding: 24px 20px 22px;
    border-radius: 20px;
  }

  .auth-modal__brand-tag {
    font-size: 0.55rem;
  }

  .auth-header-btn {
    padding: 7px 12px;
    font-size: 0.78rem;
  }

  .lang-switch__btn {
    padding: 5px 6px;
  }

  .lang-switch__flag {
    width: 22px;
    height: 14px;
  }

  .lang-switch__code {
    font-size: 0.6rem;
  }

  .nav__link:not(.nav__link--cta) {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero__actions .btn {
    flex: 1;
    min-width: 140px;
  }

  .contact__form input,
  .contact__form select,
  .contact__form textarea,
  .contact__form button {
    font-size: 16px;
  }
}

@media (display-mode: standalone) {
  .header {
    padding-top: calc(16px + env(safe-area-inset-top, 0px));
  }

  .install-banner {
    display: none !important;
  }
}

.mobile-header-title {
  display: none;
  margin: 0;
}

.mobile-tools-toggle {
  display: none;
}

.lang-picker {
  display: none;
  position: relative;
}

.theme-toggle-mobile {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle-mobile__icon {
  width: 20px;
  height: 20px;
}

.theme-toggle-mobile__icon--sun {
  display: none;
}

.theme-toggle-mobile__icon--moon {
  display: block;
}

[data-theme="light"] .theme-toggle-mobile__icon--sun {
  display: block;
}

[data-theme="light"] .theme-toggle-mobile__icon--moon {
  display: none;
}

.theme-toggle-mobile:active {
  color: var(--primary);
  border-color: rgba(0, 136, 255, 0.35);
  background: rgba(0, 136, 255, 0.08);
}

.lang-picker__trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.lang-picker__trigger svg {
  width: 28px;
  height: 18px;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.lang-picker__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 1006;
  min-width: 160px;
  padding: 6px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.lang-picker__option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

.lang-picker__option:hover,
.lang-picker__option:focus-visible {
  background: rgba(0, 136, 255, 0.1);
}

.lang-picker__option[hidden] {
  display: none;
}

.lang-picker__flag {
  width: 28px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 3px;
}

.header__tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-tabbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1002;
  background: var(--tabbar-bg);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  justify-content: space-around;
  align-items: stretch;
}

.mobile-tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  padding: 8px 4px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: 10px;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

.mobile-tabbar__item span {
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.mobile-tabbar__item svg {
  width: 22px;
  height: 22px;
}

.mobile-tabbar__item.active,
.mobile-tabbar__item:hover {
  color: var(--primary);
  background: rgba(0, 136, 255, 0.08);
}

.install-banner {
  position: fixed;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  left: 16px;
  right: 16px;
  z-index: 1001;
  background: var(--bg-card);
  border: 1px solid rgba(0, 136, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow);
}

.install-banner[hidden] {
  display: none;
}

.install-banner__content {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.install-banner__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 8px;
}

.install-banner__icon.logo__mark--sm {
  width: 44px;
  height: 44px;
}

.install-banner__content strong {
  display: block;
  font-size: 0.9rem;
}

.install-banner__content span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.install-banner__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn--sm {
  padding: 10px 16px;
  font-size: 0.85rem;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Header auth */
.header-auth {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-auth__guest {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-header-btn {
  padding: 8px 16px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.auth-header-btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}

.auth-header-btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 136, 255, 0.08);
}

.auth-header-btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 136, 255, 0.35);
}

.auth-header-btn--primary:hover {
  box-shadow: 0 6px 22px rgba(0, 136, 255, 0.5);
  transform: translateY(-1px);
}

.header-auth__user {
  position: relative;
}

.header-auth__profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(0, 136, 255, 0.08);
}

.header-auth__profile:hover {
  border-color: var(--primary);
  box-shadow: var(--glow);
}

.header-auth__avatar,
.header-auth__initial {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.header-auth__avatar {
  object-fit: cover;
}

.header-auth__initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.header-auth__name {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-auth__chevron {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

.header-auth__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), var(--glow);
  z-index: 1100;
}

.header-auth__email {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  word-break: break-all;
}

.header-auth__menu-item {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.header-auth__menu-item:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 136, 255, 0.08);
}

.header-auth__logout {
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.header-auth__logout:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

/* Customer panel modal */
.panel-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.panel-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 8, 20, 0.75);
  backdrop-filter: blur(8px);
}

.panel-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 28px 24px 24px;
  background: var(--bg-elevated);
  border: 1px solid rgba(0, 136, 255, 0.25);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), var(--glow);
}

.panel-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 10px;
  transition: var(--transition);
}

.panel-modal__close svg {
  width: 18px;
  height: 18px;
}

.panel-modal__close:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 136, 255, 0.1);
}

.panel-modal__user {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.panel-modal__avatar-wrap {
  flex-shrink: 0;
}

.panel-modal__avatar,
.panel-modal__initial {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.panel-modal__avatar {
  object-fit: cover;
}

.panel-modal__initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
}

.panel-modal__user-info {
  min-width: 0;
}

.panel-modal__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 4px;
}

.panel-modal__name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.panel-modal__email {
  font-size: 0.85rem;
  color: var(--text-muted);
  word-break: break-all;
}

.panel-modal__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.panel-card {
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.panel-card h3 {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.panel-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.panel-modal__section {
  margin-bottom: 18px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.panel-modal__section-title {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.panel-modal__section-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0;
}

.panel-password-form .auth-field:last-of-type {
  margin-bottom: 14px;
}

.panel-modal__message {
  font-size: 0.85rem;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.panel-modal__message--error {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.panel-modal__message--success {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.panel-modal__logout {
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.panel-modal__logout:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

@media (max-width: 560px) {
  .panel-modal__cards {
    grid-template-columns: 1fr;
  }
}

/* Admin panel */
.panel-modal__dialog--wide {
  max-width: 720px;
}

.header-auth__menu-item--admin {
  color: #f59e0b;
}

.header-auth__menu-item--admin:hover {
  background: rgba(245, 158, 11, 0.12);
}

.admin-panel__head {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.admin-panel__sub {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.admin-stat-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.admin-stat-card strong {
  font-size: 1.35rem;
  color: var(--text);
  line-height: 1.1;
}

.admin-stat-card--accent {
  border-color: rgba(0, 136, 255, 0.35);
  background: linear-gradient(135deg, rgba(0, 136, 255, 0.08), transparent);
}

.admin-stat-card--accent strong {
  color: var(--accent);
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-search {
  flex: 1;
  min-width: 180px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}

.admin-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 136, 255, 0.12);
}

.admin-select-all {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-users__count {
  margin-left: auto;
  padding: 2px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
}

.admin-users__list {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 18px;
}

.admin-user-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.admin-user-row:last-child {
  border-bottom: none;
}

.admin-user-row__check {
  display: flex;
  align-items: center;
}

.admin-user-row__avatar {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 136, 255, 0.2), rgba(99, 102, 241, 0.15));
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.admin-user-row__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.admin-user-row__info strong {
  font-size: 0.92rem;
}

.admin-user-row__info span,
.admin-user-row__info small {
  font-size: 0.8rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-row__actions {
  display: flex;
  gap: 6px;
}

.admin-user-row--banned {
  opacity: 0.72;
  background: rgba(239, 68, 68, 0.06);
}

.admin-user-row__badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  font-size: 0.68rem;
  font-weight: 700;
  vertical-align: middle;
}

.admin-user-row__welcome,
.admin-user-row__ban,
.admin-user-row__unban,
.admin-user-row__delete {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
}

.admin-user-row__welcome {
  color: var(--accent);
}

.admin-user-row__welcome:hover {
  background: rgba(0, 136, 255, 0.1);
}

.admin-user-row__ban {
  color: #f59e0b;
}

.admin-user-row__ban:hover {
  background: rgba(245, 158, 11, 0.12);
}

.admin-user-row__unban {
  color: #22c55e;
}

.admin-user-row__unban:hover {
  background: rgba(34, 197, 94, 0.12);
}

.admin-user-row__delete {
  color: #ef4444;
}

.admin-user-row__delete:hover {
  background: rgba(239, 68, 68, 0.1);
}

.admin-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.admin-email h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.admin-email-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  resize: vertical;
}

.admin-email__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Welcome toast */
.welcome-toast {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
}

.welcome-toast[hidden] {
  display: none !important;
}

.welcome-toast--visible {
  pointer-events: auto;
}

.welcome-toast__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 23, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.welcome-toast--visible .welcome-toast__backdrop {
  opacity: 1;
}

.welcome-toast__card {
  position: relative;
  width: min(420px, 100%);
  padding: 36px 28px 28px;
  text-align: center;
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(0, 136, 255, 0.08) 100%);
  border: 1px solid rgba(0, 136, 255, 0.25);
  border-radius: 24px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 80px rgba(0, 136, 255, 0.15);
  transform: scale(0.85) translateY(24px);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  overflow: hidden;
}

.welcome-toast--visible .welcome-toast__card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.welcome-toast__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.welcome-toast__particles span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: welcome-spark 2.4s ease-out infinite;
}

.welcome-toast__particles span:nth-child(1) { left: 12%; top: 20%; animation-delay: 0.1s; }
.welcome-toast__particles span:nth-child(2) { left: 78%; top: 15%; animation-delay: 0.35s; background: #a78bfa; }
.welcome-toast__particles span:nth-child(3) { left: 88%; top: 55%; animation-delay: 0.6s; }
.welcome-toast__particles span:nth-child(4) { left: 18%; top: 72%; animation-delay: 0.85s; background: #22d3ee; }
.welcome-toast__particles span:nth-child(5) { left: 52%; top: 8%; animation-delay: 1.1s; width: 4px; height: 4px; }
.welcome-toast__particles span:nth-child(6) { left: 42%; top: 82%; animation-delay: 1.35s; background: #f59e0b; }

@keyframes welcome-spark {
  0% { opacity: 0; transform: translateY(8px) scale(0.5); }
  30% { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-28px) scale(1.2); }
}

.welcome-toast__wave {
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 8px;
  display: inline-block;
  animation: welcome-wave 1.2s ease-in-out 0.3s 2;
  transform-origin: 70% 70%;
}

@keyframes welcome-wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(18deg); }
  75% { transform: rotate(-8deg); }
}

.welcome-toast__label {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  animation: welcome-fade-up 0.5s ease 0.2s forwards;
}

.welcome-toast__name {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 55%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  min-height: 1.2em;
}

.welcome-toast__letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px) rotate(8deg);
  animation: welcome-letter 0.45s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

@keyframes welcome-letter {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes welcome-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.welcome-toast__sub {
  margin: 0 0 22px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  opacity: 0;
  animation: welcome-fade-up 0.5s ease 0.55s forwards;
}

.welcome-toast__cta {
  padding: 12px 28px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 136, 255, 0.35);
  opacity: 0;
  animation: welcome-fade-up 0.5s ease 0.75s forwards;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.welcome-toast__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 136, 255, 0.45);
}

.welcome-toast--hide .welcome-toast__backdrop {
  opacity: 0;
}

.welcome-toast--hide .welcome-toast__card {
  transform: scale(0.92) translateY(-12px);
  opacity: 0;
}

.header-auth__user {
  position: relative;
}

.header-auth__user-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-auth__inbox {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(0, 136, 255, 0.08);
}

.header-auth__inbox:hover,
.header-auth__inbox--active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 136, 255, 0.1);
  box-shadow: var(--glow);
}

.header-auth__inbox--active {
  animation: inbox-pulse 2.4s ease-in-out infinite;
}

.header-auth__inbox-icon {
  width: 20px;
  height: 20px;
}

.header-auth__inbox-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  border: 2px solid var(--bg-elevated);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.45);
}

@keyframes inbox-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 136, 255, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(0, 136, 255, 0); }
}

.panel-inbox-card {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-bottom: 18px;
  padding: 14px 16px;
  text-align: left;
  background: linear-gradient(135deg, rgba(0, 136, 255, 0.12), rgba(0, 136, 255, 0.04));
  border: 1px solid rgba(0, 136, 255, 0.28);
  border-radius: 16px;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.panel-inbox-card:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--glow);
}

.panel-inbox-card--active {
  border-color: rgba(239, 68, 68, 0.45);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(0, 136, 255, 0.06));
}

.panel-inbox-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
}

.panel-inbox-card__icon svg {
  width: 22px;
  height: 22px;
}

.panel-inbox-card__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.panel-inbox-card__text strong {
  font-size: 0.95rem;
}

.panel-inbox-card__text small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.panel-inbox-card__badge {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.panel-inbox-card__arrow {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.inbox-modal__dialog {
  max-width: 560px;
}

.inbox-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 136, 255, 0.14), rgba(0, 136, 255, 0.04));
  border: 1px solid rgba(0, 136, 255, 0.22);
}

.inbox-hero__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--glow);
}

.inbox-hero__icon svg {
  width: 26px;
  height: 26px;
}

.inbox-hero__title {
  margin: 0;
  font-size: 1.15rem;
}

.inbox-hero__sub {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.inbox-hero__count {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}

.inbox-body {
  min-height: 200px;
}

.inbox-empty-state {
  text-align: center;
  padding: 28px 16px;
}

.inbox-empty-state__icon {
  font-size: 2.6rem;
  margin-bottom: 10px;
}

.inbox-empty-state__title {
  margin: 0 0 6px;
  font-weight: 700;
}

.inbox-empty-state__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.inbox-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 2px;
}

.inbox-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.inbox-item:hover {
  border-color: rgba(0, 136, 255, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.inbox-item--unread {
  border-color: rgba(0, 136, 255, 0.45);
  background: linear-gradient(135deg, rgba(0, 136, 255, 0.1), rgba(0, 136, 255, 0.03));
}

.inbox-item__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(0, 136, 255, 0.12);
  color: var(--primary);
}

.inbox-item__icon svg {
  width: 20px;
  height: 20px;
}

.inbox-item__dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid var(--bg-card);
}

.inbox-item__content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.inbox-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.inbox-item__subject {
  font-weight: 700;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-item__date {
  flex-shrink: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.inbox-item__from {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
}

.inbox-item__preview {
  font-size: 0.8rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-item__arrow {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  opacity: 0.5;
}

.inbox-view__back {
  margin-bottom: 12px;
  padding: 0;
  border: none;
  background: none;
  color: var(--primary);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}

.inbox-view__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.inbox-view__from {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
}

.inbox-view__date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.inbox-view__subject {
  margin: 0 0 14px;
  font-size: 1.15rem;
  line-height: 1.35;
}

.inbox-view__body {
  white-space: pre-wrap;
  line-height: 1.6;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.inbox-view__delete {
  padding: 10px 14px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: var(--transition);
}

.inbox-view__delete:hover {
  background: rgba(239, 68, 68, 0.15);
}

@media (max-width: 560px) {
  .header-auth__name {
    max-width: 72px;
  }

  .header-auth__inbox {
    width: 38px;
    height: 38px;
  }

  .panel-inbox-card {
    grid-template-columns: auto 1fr auto;
  }

  .panel-inbox-card__arrow {
    display: none;
  }
}

/* Auth modal */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 8, 20, 0.75);
  backdrop-filter: blur(8px);
}

.auth-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 32px 28px 28px;
  background: var(--bg-elevated);
  border: 1px solid rgba(0, 136, 255, 0.25);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), var(--glow);
}

.auth-modal__glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 160px;
  background: radial-gradient(ellipse, rgba(0, 136, 255, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.auth-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 10px;
  transition: var(--transition);
}

.auth-modal__close svg {
  width: 18px;
  height: 18px;
}

.auth-modal__close:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 136, 255, 0.1);
}

.auth-modal__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.auth-modal__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 136, 255, 0.4));
  flex-shrink: 0;
}

.auth-modal__brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.auth-modal__brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  background: var(--gradient-silver);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
}

.auth-modal__brand-tag {
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.auth-modal__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  padding-right: 36px;
}

.auth-modal__subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.auth-modal__tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  margin-bottom: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.auth-modal__tab {
  flex: 1;
  padding: 11px 14px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--text-muted);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.auth-modal__tab:hover:not(.active) {
  color: var(--text);
  background: rgba(0, 136, 255, 0.06);
}

.auth-modal__tab.active {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 136, 255, 0.35);
}

.auth-google-wrap {
  margin-bottom: 18px;
}

.auth-google-container {
  display: flex;
  justify-content: center;
}

.auth-google-container:not([hidden]) + .auth-google-btn {
  display: none;
}

.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition);
}

.auth-google-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.auth-google-btn:hover {
  border-color: rgba(0, 136, 255, 0.4);
  box-shadow: 0 4px 16px rgba(0, 136, 255, 0.15);
  transform: translateY(-1px);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.auth-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-panel[hidden] {
  display: none;
}

.auth-field {
  margin-bottom: 16px;
}

.auth-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.auth-field__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.auth-field__label-row label {
  margin-bottom: 0;
}

.auth-forgot-link {
  padding: 0;
  border: none;
  background: none;
  color: var(--primary);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.auth-forgot-link:hover {
  color: var(--primary-light);
}

.auth-field__wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-field__icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--primary);
  opacity: 0.7;
  pointer-events: none;
  flex-shrink: 0;
}

.auth-field__wrap input {
  width: 100%;
  padding: 13px 44px 13px 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.auth-field__wrap input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 136, 255, 0.15);
  background: var(--bg);
}

.auth-field__wrap input::placeholder {
  color: var(--text-muted);
  opacity: 0.65;
}

.auth-field__toggle {
  position: absolute;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.auth-field__toggle:hover {
  color: var(--primary);
  background: rgba(0, 136, 255, 0.1);
}

.auth-field__eye {
  width: 18px;
  height: 18px;
}

.auth-field__eye--hide {
  display: none;
}

.auth-field__toggle.is-visible .auth-field__eye--show {
  display: none;
}

.auth-field__toggle.is-visible .auth-field__eye--hide {
  display: block;
}

.auth-submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px 20px;
  background: var(--gradient);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(0, 136, 255, 0.4);
  letter-spacing: 0.02em;
}

.auth-submit:hover {
  box-shadow: 0 8px 28px rgba(0, 136, 255, 0.55);
  transform: translateY(-2px);
}

.auth-submit:active {
  transform: translateY(0);
}

.auth-otp-send {
  width: 100%;
  margin-top: 8px;
  padding: 13px 20px;
  background: transparent;
  border: 1px solid rgba(0, 136, 255, 0.45);
  border-radius: 12px;
  color: var(--primary);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.auth-otp-send:hover:not(:disabled) {
  background: rgba(0, 136, 255, 0.08);
  border-color: var(--primary);
}

.auth-otp-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-otp__hint {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.auth-otp input {
  letter-spacing: 0.3em;
  text-align: center;
  font-weight: 700;
}

.auth-step-desc {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
}

.auth-step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 12px;
}

.auth-step-back {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 8px 0;
}

.auth-step-back:hover {
  color: var(--primary);
}

.auth-otp-send--inline {
  width: auto;
  margin: 0;
  padding: 8px 12px;
  font-size: 0.85rem;
}

[data-theme="light"] .auth-modal__dialog {
  border-color: rgba(0, 136, 255, 0.35);
  box-shadow: 0 20px 50px rgba(0, 80, 180, 0.15), var(--glow);
}

[data-theme="light"] .auth-field__wrap input:focus {
  box-shadow: 0 0 0 3px rgba(0, 136, 255, 0.2);
}

.auth-modal__message {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
}

.auth-modal__message--error {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.auth-modal__message--success {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

[data-theme="light"] .auth-modal__message--error {
  color: #dc2626;
}

[data-theme="light"] .auth-modal__message--success {
  color: #16a34a;
}

/* AI Chat */
.ai-chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.ai-chat__launcher {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.ai-chat__launcher:hover .ai-chat__toggle,
.ai-chat__launcher.active .ai-chat__toggle {
  transform: scale(1.05);
  border-color: var(--primary);
  box-shadow: 0 10px 32px rgba(0, 136, 255, 0.5);
}

.ai-chat__caption {
  display: block;
  padding: 4px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  box-shadow: var(--shadow);
}

.ai-chat__toggle {
  position: relative;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: 2px solid rgba(0, 136, 255, 0.45);
  border-radius: 50%;
  background: #0a1628;
  box-shadow: 0 8px 28px rgba(0, 136, 255, 0.35);
  transition: var(--transition);
  overflow: hidden;
}

.ai-chat__logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 0 6px rgba(0, 136, 255, 0.35));
}

[data-theme="light"] .ai-chat__toggle {
  background: #0a1628;
  border-color: rgba(0, 136, 255, 0.55);
}

.ai-chat__panel {
  width: min(360px, calc(100vw - 32px));
  height: 480px;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ai-chat__panel[hidden] {
  display: none;
}

.ai-chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--gradient);
  color: #fff;
}

.ai-chat__header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-chat__header-info strong {
  display: block;
  font-size: 0.95rem;
}

.ai-chat__header-info span {
  font-size: 0.75rem;
  opacity: 0.9;
}

.ai-chat__avatar {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  background: #0a1628;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.ai-chat__avatar .ai-chat__logo {
  width: 30px;
  height: 30px;
}

.ai-chat__close {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.ai-chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-chat__msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: pre-line;
}

.ai-chat__msg--bot {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.ai-chat__msg--user {
  align-self: flex-end;
  background: var(--gradient);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.ai-chat__typing {
  display: flex;
  gap: 4px;
  padding: 14px 16px;
}

.ai-chat__typing span {
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  animation: aiTyping 1.2s infinite ease-in-out;
}

.ai-chat__typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.ai-chat__typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes aiTyping {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1); }
}

.ai-chat__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 8px;
}

.ai-chat__chip {
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.ai-chat__chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.ai-chat__contact-link {
  margin: 0 12px 8px;
  padding: 0;
  background: none;
  border: none;
  color: var(--primary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
}

.ai-chat__form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.ai-chat__form input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
}

.ai-chat__form input:focus {
  outline: none;
  border-color: var(--primary);
}

.ai-chat__send {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--gradient);
  border: none;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
}

.ai-chat__send svg {
  width: 18px;
  height: 18px;
}

.ai-chat__send:hover {
  transform: scale(1.05);
}

/* Gift Wheel */
.wheel-promo {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1400;
}

.wheel-promo__trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.wheel-promo__trigger:hover {
  transform: scale(1.05);
}

.wheel-promo__icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff6b35, #ff9f1c);
  border: 2px solid rgba(255, 159, 28, 0.6);
  border-radius: 50%;
  font-size: 1.6rem;
  box-shadow: 0 8px 28px rgba(255, 107, 53, 0.4);
}

.wheel-promo__label {
  padding: 4px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #ff6b35;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow);
}

.wheel-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.wheel-modal[hidden] {
  display: none;
}

.wheel-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.wheel-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 28px 24px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
}

.wheel-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.wheel-modal__title {
  font-size: 1.35rem;
  margin-bottom: 8px;
  padding-right: 28px;
}

.wheel-modal__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.wheel-wrap {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto 20px;
}

.wheel-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid #ff6b35;
  z-index: 3;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.wheel-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid var(--primary);
  box-shadow: 0 0 24px rgba(0, 136, 255, 0.35);
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
  overflow: hidden;
}

.wheel-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wheel__label {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  margin-left: -36px;
  margin-top: -8px;
  transform: rotate(var(--wheel-label-rotate)) translateY(-98px);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

.wheel-disc__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: var(--bg-card);
  border: 3px solid var(--primary);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.wheel-disc__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wheel-spin-btn {
  margin-bottom: 8px;
}

.wheel-result {
  padding-top: 8px;
}

.wheel-result__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.wheel-result__prize {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.install-banner__dismiss {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: var(--transition);
    border-left: 1px solid var(--border);
  }

  .nav.open {
    right: 0;
  }

  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .hero__stats {
    gap: 24px;
  }

  .process__steps {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }

  .contact__form {
    padding: 24px;
  }

  .ai-chat {
    right: 16px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 12px);
  }

  .ai-chat__panel {
    height: min(420px, calc(100vh - 180px));
  }

  .ai-chat__toggle {
    width: 52px;
    height: 52px;
  }

  .wheel-promo {
    left: 16px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 12px);
  }

  .wheel-promo__icon {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }

  .wheel-wrap {
    width: 240px;
    height: 240px;
  }

  .wheel__label {
    transform: rotate(var(--wheel-label-rotate)) translateY(-82px);
    font-size: 0.55rem;
    width: 64px;
    margin-left: -32px;
  }
}

/* === v25: header, məhsullar, təmiz UI === */
.logo__mark:not(.logo__mark--spin) {
  width: 44px;
  height: 44px;
}

.logo__mark:not(.logo__mark--spin) .logo__img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 136, 255, 0.35));
}

.header__inner {
  flex-wrap: nowrap;
  min-height: 52px;
}

.header-auth {
  flex-shrink: 0;
}

.nav {
  flex-shrink: 0;
  gap: 20px;
}

@media (max-width: 1200px) {
  .logo__tagline {
    display: none;
  }

  .nav {
    gap: 14px;
  }

  .nav__link {
    font-size: 0.85rem;
  }

  .header-auth__guest .auth-header-btn--ghost {
    display: none;
  }
}

@media (max-width: 1050px) {
  .nav__link[href="#about"],
  .nav__link[href="#process"] {
    display: none;
  }
}

.products {
  padding: 56px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1020px;
  margin: 0 auto;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: var(--transition);
  color: inherit;
  min-width: 0;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px var(--card-hover-shadow);
}

.product-card--market:hover {
  border-color: rgba(239, 123, 42, 0.45);
}

.product-card--go:hover {
  border-color: rgba(14, 165, 233, 0.45);
}

.product-card--ai:hover {
  border-color: rgba(99, 102, 241, 0.45);
}

.product-card__badge {
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.product-card--market .product-card__badge {
  background: rgba(239, 123, 42, 0.14);
  color: #f59e0b;
}

.product-card--go .product-card__badge {
  background: rgba(14, 165, 233, 0.14);
  color: #38bdf8;
}

.product-card--ai .product-card__badge {
  background: rgba(34, 197, 94, 0.14);
  color: #22c55e;
}

.product-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.product-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-top: 4px;
}

.product-card__status {
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.product-card__domain {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  font-family: ui-monospace, monospace;
}

.product-card__btn {
  margin-top: 2px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 136, 255, 0.08);
  color: var(--primary);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.product-card__btn:active {
  transform: scale(0.98);
}

.mobile-panel-cta {
  display: none;
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
}

.mobile-panel-cta p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.mobile-panel-note {
  display: none;
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.45;
}

.contact-template-notice {
  display: none;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(0, 136, 255, 0.1);
  border: 1px solid rgba(0, 136, 255, 0.25);
}

.contact-template-notice strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 4px;
  color: var(--primary);
}

.contact-template-notice p {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0;
}

.contact__quick {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.contact-quick-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
}

.contact-quick-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary);
}

.contact-quick-btn--wa svg {
  color: #25d366;
}

.wheel-promo__label[hidden],
.ai-chat__caption[hidden] {
  display: none !important;
}

.wheel-promo__icon,
.ai-chat__toggle {
  width: 52px;
  height: 52px;
  font-size: 1.35rem;
}

@media (max-width: 768px) {
  .products__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .product-card {
    padding: 12px 8px;
    gap: 4px;
  }

  .product-card h3 {
    font-size: 0.78rem;
  }

  .product-card p {
    font-size: 0.68rem;
    -webkit-line-clamp: 3;
  }

  .product-card__badge {
    font-size: 0.58rem;
    padding: 2px 6px;
  }

  .product-card__status {
    font-size: 0.55rem;
    padding: 2px 6px;
  }

  .product-card__domain {
    font-size: 0.62rem;
  }

  .product-card__btn {
    padding: 7px 6px;
    font-size: 0.62rem;
  }
}

/* === v28: telefon tətbiqi — ayrı pəncərələr === */
@media (max-width: 768px) {
  :root {
    --mobile-header-h: calc(54px + env(safe-area-inset-top, 0px));
    --mobile-tabbar-h: calc(62px + env(safe-area-inset-bottom, 0px));
  }

  html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
  }

  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .mobile-header-title {
    display: none;
  }

  .mobile-tabbar {
    display: flex;
    padding: 6px 2px calc(8px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
  }

  .mobile-tabbar__item {
    min-height: 50px;
    font-size: 0.62rem;
    padding: 6px 2px;
  }

  .header {
    padding: calc(6px + env(safe-area-inset-top, 0px)) 0 6px;
  }

  .header__inner {
    gap: 6px;
    position: relative;
  }

  .logo--header {
    max-width: 110px;
  }

  .logo__tagline {
    display: none !important;
  }

  .logo__text {
    font-size: 1rem;
  }

  .logo__mark:not(.logo__mark--spin) .logo__img {
    width: 32px;
    height: 32px;
  }

  .header__actions {
    gap: 4px;
    margin-left: auto;
  }

  .lang-switch__code {
    display: none;
  }

  .lang-switch__btn {
    padding: 5px;
  }

  .theme-switch__btn {
    width: 28px;
    height: 28px;
  }

  .header-auth__guest .auth-header-btn--ghost {
    display: none;
  }

  .header-auth__guest .auth-header-btn--primary {
    padding: 7px 10px;
    font-size: 0.72rem;
  }

  .menu-toggle {
    display: none;
  }

  .nav {
    display: none !important;
  }

  .products__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .contact__form input,
  .contact__form select,
  .contact__form textarea,
  .contact__form button,
  .auth-form input,
  .auth-form select {
    font-size: 16px !important;
    min-height: 46px;
  }

  .btn {
    min-height: 44px;
  }

  .wheel-promo,
  .ai-chat {
    bottom: calc(var(--mobile-tabbar-h) + 8px);
  }

  .wheel-promo__icon,
  .ai-chat__toggle {
    width: 46px;
    height: 46px;
  }

  .install-banner {
    left: 10px;
    right: 10px;
    bottom: calc(var(--mobile-tabbar-h) + 8px);
    border-radius: 14px;
    z-index: 1003;
  }

  .auth-modal__dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    margin: 12px;
    border-radius: 18px;
  }

  .wheel-modal__dialog {
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
  }

  /* ——— Tətbiq rejimi: bir ekran = bir tab ——— */
  body.mobile-app-mode {
    height: 100dvh;
    overflow: hidden;
    padding-bottom: 0;
  }

  body.mobile-app-mode .header {
    background: var(--header-scrolled-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }

  body.mobile-app-mode .header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
  }

  body.mobile-app-mode .logo--header {
    max-width: none;
    flex-shrink: 0;
  }

  body.mobile-app-mode .logo__text {
    display: inline;
    font-size: 1.05rem;
  }

  body.mobile-app-mode .logo__mark:not(.logo__mark--spin) .logo__img {
    width: 34px;
    height: 34px;
  }

  body.mobile-app-mode .header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
  }

  body.mobile-app-mode .header__tools {
    display: flex;
    align-items: center;
    gap: 6px;
    position: static;
    min-width: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: none;
  }

  body.mobile-app-mode .lang-switch--desktop,
  body.mobile-app-mode .theme-switch--desktop {
    display: none;
  }

  body.mobile-app-mode .lang-picker {
    display: block;
  }

  body.mobile-app-mode .theme-toggle-mobile {
    display: flex;
  }

  body.mobile-app-mode .header-auth__guest {
    gap: 0;
  }

  body.mobile-app-mode .header-auth__guest .auth-header-btn--ghost {
    display: none;
  }

  body.mobile-app-mode .header-auth__guest .auth-header-btn--primary {
    padding: 8px 12px;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  body.mobile-app-mode .header-auth__name {
    display: none;
  }

  body.mobile-app-mode .header-auth__profile {
    padding: 6px 8px;
  }

  body.mobile-app-mode main {
    position: fixed;
    top: var(--mobile-header-h);
    left: 0;
    right: 0;
    bottom: var(--mobile-tabbar-h);
    overflow: hidden;
    z-index: 1;
  }

  body.mobile-app-mode .mobile-only-hidden {
    display: none !important;
  }

  body.mobile-app-mode .mobile-screen {
    display: none;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    margin: 0;
    min-height: 0;
  }

  body.mobile-app-mode[data-mobile-tab='top'] .hero.mobile-screen,
  body.mobile-app-mode[data-mobile-tab='services'] #services,
  body.mobile-app-mode[data-mobile-tab='products'] #products,
  body.mobile-app-mode[data-mobile-tab='contact'] #contact {
    display: block !important;
  }

  body.mobile-app-mode[data-mobile-tab='top'] .hero.mobile-screen {
    display: flex !important;
    flex-direction: column;
  }

  body.mobile-app-mode .hero.mobile-screen {
    min-height: 0;
    height: 100%;
    padding: 0;
    align-items: stretch;
  }

  body.mobile-app-mode .hero__bg {
    opacity: 0.5;
  }

  body.mobile-app-mode .hero__inner {
    display: flex;
    flex: 1;
    align-items: center;
    width: 100%;
    padding-top: 8px;
    padding-bottom: 12px;
  }

  body.mobile-app-mode .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  body.mobile-app-mode .hero__visual {
    display: none;
  }

  body.mobile-app-mode .badge {
    display: none;
  }

  body.mobile-app-mode .hero h1 {
    font-size: 1.55rem;
    line-height: 1.25;
    margin-bottom: 10px;
    max-width: 280px;
  }

  body.mobile-app-mode .hero h1 .gradient-text {
    display: block;
  }

  body.mobile-app-mode .hero__desc--full {
    display: none;
  }

  body.mobile-app-mode .hero__desc--short {
    display: block;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-muted);
    max-width: 300px;
    margin: 0 auto 18px;
  }

  body.mobile-app-mode .hero__actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 20px;
  }

  body.mobile-app-mode .hero__actions .btn {
    width: 100%;
    min-height: 46px;
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  body.mobile-app-mode .hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  body.mobile-app-mode .hero__stats .stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 6px;
    text-align: center;
  }

  body.mobile-app-mode .hero__stats .stat strong {
    font-size: 1.05rem;
  }

  body.mobile-app-mode .stat__label--full {
    display: none;
  }

  body.mobile-app-mode .stat__label--short {
    display: block;
    font-size: 0.65rem;
    line-height: 1.25;
    color: var(--text-muted);
  }

  body.mobile-app-mode .services,
  body.mobile-app-mode .products,
  body.mobile-app-mode .contact {
    padding: 12px 0 16px;
  }

  body.mobile-app-mode .section-header {
    margin-bottom: 14px;
    text-align: left;
  }

  body.mobile-app-mode .section-header h2 {
    font-size: 1.15rem;
    margin-bottom: 6px;
  }

  body.mobile-app-mode .section-header p {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  body.mobile-app-mode .section-tag {
    font-size: 0.68rem;
    margin-bottom: 6px;
  }

  body.mobile-app-mode .services__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.mobile-app-mode .service-card {
    padding: 14px;
    border-radius: 14px;
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 10px 12px;
    align-items: start;
  }

  body.mobile-app-mode .service-card__icon {
    width: 40px;
    height: 40px;
    margin: 0;
    grid-row: 1 / span 2;
  }

  body.mobile-app-mode .service-card h3 {
    font-size: 0.92rem;
    margin-bottom: 4px;
    grid-column: 2;
  }

  body.mobile-app-mode .service-card p {
    font-size: 0.78rem;
    line-height: 1.4;
    grid-column: 2;
  }

  body.mobile-app-mode .mobile-panel-cta,
  body.mobile-app-mode .mobile-panel-note,
  body.mobile-app-mode .contact-template-notice,
  body.mobile-app-mode .contact__quick {
    display: flex;
  }

  body.mobile-app-mode .mobile-panel-note {
    display: block;
  }

  body.mobile-app-mode .contact-template-notice {
    display: block;
  }

  body.mobile-app-mode .contact__details {
    display: none;
  }

  body.mobile-app-mode .product-card {
    padding: 12px 8px;
    border-radius: 12px;
  }

  body.mobile-app-mode .product-card h3 {
    font-size: 0.8rem;
  }

  body.mobile-app-mode .product-card p {
    font-size: 0.68rem;
  }

  body.mobile-app-mode .contact__inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.mobile-app-mode .contact__info h2 {
    font-size: 1.15rem;
  }

  body.mobile-app-mode .contact__info > p {
    font-size: 0.82rem;
    margin-bottom: 10px;
  }

  body.mobile-app-mode .contact__details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 8px;
  }

  body.mobile-app-mode .contact__item {
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
  }

  body.mobile-app-mode .contact__form {
    padding: 14px;
    border-radius: 14px;
  }

  body.mobile-app-mode .form-group {
    margin-bottom: 10px;
  }

  body.mobile-app-mode .form-group label {
    font-size: 0.78rem;
    margin-bottom: 4px;
  }
}

@media (max-width: 768px) and (not (display-mode: standalone)) {
  body:not(.mobile-app-mode) {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

@media (display-mode: standalone) {
  .header {
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
  }

  .menu-toggle {
    display: none;
  }

  .header .nav {
    display: none;
  }
}
