:root {
  --canvas: var(--tg-theme-secondary-bg-color, #eaf1f5);
  --surface: var(--tg-theme-section-bg-color, #ffffff);
  --surface-soft: color-mix(in srgb, var(--surface) 84%, #dcebf2);
  --text: var(--tg-theme-text-color, #0a2231);
  --hint: var(--tg-theme-hint-color, #6f8795);
  --link: var(--tg-theme-link-color, #269fdf);
  --button: var(--tg-theme-button-color, #2aabee);
  --button-text: var(--tg-theme-button-text-color, #ffffff);
  --separator: var(--tg-theme-section-separator-color, rgba(25, 59, 76, 0.1));
  --navy: #052d3b;
  --navy-deep: #031f2a;
  --cyan: #2aabee;
  --aqua: #42dfcc;
  --mint: #47d3a4;
  --yellow: #ffd94c;
  --coral: #ff7185;
  --violet: #9b7af5;
  --silver: #a9bdc8;
  --gold: #f4bd32;
  --platinum: #8d75e9;
  --radius-xl: 42px;
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --shadow-soft: 0 18px 50px rgba(25, 67, 88, 0.08);
  --shadow-float: 0 26px 70px rgba(5, 45, 59, 0.16);
  --safe-bottom: max(10px, env(safe-area-inset-bottom));
  --safe-top: max(0px, env(safe-area-inset-top));
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { min-width: 320px; min-height: 100vh; margin: 0; overflow-x: hidden; color: var(--text); background: var(--canvas); font-size: 16px; line-height: 1.45; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

.tg-emoji { position: relative; width: 48px; height: 48px; display: inline-block; flex: 0 0 auto; overflow: hidden; line-height: 0; vertical-align: middle; isolation: isolate; contain: strict; user-select: none; pointer-events: none; }
.tg-emoji > img { position: absolute; inset: 5%; width: 90%; height: 90%; max-width: none; object-fit: contain; transform: none; user-select: none; pointer-events: none; }
.tg-emoji > canvas { position: absolute; inset: 5%; width: 90%; height: 90%; max-width: none; transform: none; pointer-events: none; }
.pond-cover { width: 100%; height: auto; max-height: 320px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; }
.pond-description { white-space: pre-line; overflow-wrap: anywhere; font-size: 15px; color: var(--hint); }
.pond-editor { max-width: 760px; margin: 0 auto; padding: clamp(20px, 4vw, 48px); border-radius: 28px; background: var(--surface); }
.pond-editor h1 { margin: 24px 0; font-size: clamp(30px, 6vw, 48px); }
.pond-editor .native-form { padding: 0; }
.pond-edit-form input[type="file"] { width: 100%; min-width: 0; padding: 12px; }
.pond-edit-form small, .field-help { color: var(--hint); font-size: 13px; line-height: 1.5; }
.pond-delete { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--separator); }
.pond-delete summary { cursor: pointer; color: #ac223e; font-weight: 700; }
.pond-delete form { display: grid; gap: 20px; }
.checkbox-row { display: flex !important; align-items: center; gap: 10px; }
.checkbox-row input { width: 20px !important; min-height: 20px !important; flex: 0 0 20px; }
.danger-button { background: #ac223e; color: white; }
.pond-admin-cell .inline-actions { flex-wrap: wrap; }
.utya-mascot { object-fit: contain; filter: drop-shadow(0 22px 25px rgba(0, 0, 0, 0.13)); }

.site-header { width: min(1320px, calc(100% - 80px)); height: 94px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-size: 18px; font-weight: 850; letter-spacing: 0.04em; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; overflow: hidden; border-radius: 13px; background: var(--navy); }
.brand-mark img { width: 52px; max-width: none; transform: translateY(4px); }
.site-header nav { display: flex; align-items: center; gap: 34px; }
.site-header nav > a, .nav-link { padding: 8px 0; border: 0; color: var(--text); background: none; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.site-header nav > a:hover, .nav-link:hover { color: var(--link); }
.site-header .nav-pill { min-height: 46px; padding: 13px 24px; border-radius: 15px; color: var(--button-text); background: var(--button); box-shadow: 0 10px 26px color-mix(in srgb, var(--button) 25%, transparent); }
.site-header .nav-pill:hover { color: var(--button-text); transform: translateY(-1px); }
.nav-form { margin: 0; }
.mini-header { display: none; }

.app-main { width: min(1320px, calc(100% - 80px)); margin: 0 auto; padding-bottom: 80px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font-size: 11px; font-weight: 850; letter-spacing: 0.12em; line-height: 1.2; }
.eyebrow > i, .live-count > i, .story-state > i, .state-pill > i, .preview-top i, .live-foot i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px color-mix(in srgb, var(--mint) 14%, transparent); }
.eyebrow.light { color: #8ae9ee; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin-top: 0; letter-spacing: -0.045em; line-height: 1.02; }
p { color: var(--hint); }

.tg-button { min-height: 54px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 0; border-radius: 17px; font-size: 14px; font-weight: 800; line-height: 1; text-align: center; text-decoration: none; cursor: pointer; transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease, background 180ms ease; }
.tg-button:hover { transform: translateY(-2px); }
.tg-button:active { transform: scale(0.98); opacity: 0.82; }
.tg-button.primary { color: var(--button-text); background: var(--button); box-shadow: 0 14px 30px color-mix(in srgb, var(--button) 28%, transparent); }
.tg-button.quiet { color: #c8e2ea; background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.tg-button.light-button { color: var(--navy); background: #ffffff; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12); }
.tg-button.danger-soft { color: #df4c62; background: color-mix(in srgb, #ff7185 13%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, #ff7185 25%, transparent); }
.tg-button.wide { width: 100%; }
.button-arrow { width: 9px; height: 9px; display: inline-block; flex: 0 0 auto; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.back-arrow { width: 9px; height: 9px; border-bottom: 2px solid currentColor; border-left: 2px solid currentColor; transform: rotate(45deg); }

/* Landing */
.liquid-hero { position: relative; min-height: 650px; padding: 76px 76px 62px; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(500px, 1.08fr); align-items: center; gap: 28px; overflow: hidden; border-radius: var(--radius-xl); color: #ffffff; background: var(--navy); isolation: isolate; }
.liquid-hero::before { content: ""; position: absolute; width: 580px; height: 580px; top: -360px; left: 90px; border-radius: 50%; background: rgba(72, 222, 204, 0.1); filter: blur(2px); }
.liquid-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(111, 235, 218, 0.7), transparent); opacity: 0.45; }
.hero-copy { position: relative; z-index: 3; max-width: 590px; }
.hero-copy h1 { margin: 32px 0 24px; font-size: clamp(58px, 5vw, 82px); font-weight: 820; }
.hero-copy h1 em { color: #80e7e2; font-style: normal; }
.hero-copy > p { max-width: 510px; margin: 0; color: #a9cbd5; font-size: 19px; line-height: 1.35; }
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { margin-top: 44px; display: flex; align-items: center; gap: 15px; }
.proof-avatars { display: flex; padding-left: 8px; }
.proof-emoji { width: 38px; height: 38px; margin-left: -8px; border: 3px solid var(--navy); border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.hero-proof p { margin: 0; display: grid; color: white; font-size: 12px; line-height: 1.25; }
.hero-proof small { margin-top: 3px; color: #87aab5; }

.pond-lens { position: relative; min-height: 540px; display: grid; place-items: center; isolation: isolate; }
.pond-lens::before { content: ""; position: absolute; width: 470px; height: 470px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 217, 76, 0.22) 0 23%, rgba(95, 191, 134, 0.18) 24% 40%, rgba(5, 45, 59, 0) 41%); filter: blur(0.2px); }
.sonar-ring { position: absolute; border: 1.5px solid rgba(65, 226, 207, 0.9); border-radius: 50%; pointer-events: none; }
.pond-lens .ring-one { width: 540px; height: 540px; }
.pond-lens .ring-two { width: 390px; height: 390px; border-color: rgba(42, 171, 238, 0.9); animation-delay: -1.4s; }
.pond-lens .ring-three { width: 255px; height: 255px; border-color: rgba(255, 217, 76, 0.25); animation-delay: -2.8s; }
.pond-lens .sonar-ring { animation: sonar-breathe 5s ease-in-out infinite; }
.lens-glow { position: absolute; width: 205px; height: 205px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 80px rgba(255, 217, 76, 0.24); }
.hero-utya { position: relative; z-index: 2; width: 280px; height: 280px; }
.lens-status { position: absolute; z-index: 4; bottom: 28px; left: 50%; min-width: 220px; padding: 14px 18px; display: grid; gap: 2px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; background: rgba(2, 25, 34, 0.72); backdrop-filter: blur(14px); transform: translateX(-50%); text-align: center; }
.lens-status span { color: #83e7e4; font-size: 10px; font-weight: 850; letter-spacing: 0.12em; }
.lens-status span i { width: 6px; height: 6px; margin-right: 6px; display: inline-block; border-radius: 50%; background: var(--mint); }
.lens-status strong { font-size: 16px; }
.signal-chip { position: absolute; z-index: 3; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; color: #aad5df; background: rgba(2, 27, 36, 0.55); font-size: 10px; font-weight: 750; backdrop-filter: blur(10px); }
.signal-a { top: 80px; right: 35px; }
.signal-b { bottom: 102px; left: 12px; }

.signal-strip { margin-top: 24px; padding: 24px 28px; display: grid; grid-template-columns: repeat(3, 1fr); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-soft); }
.signal-strip article { min-width: 0; padding: 0 26px; display: flex; align-items: center; gap: 16px; border-right: 1px solid var(--separator); }
.signal-strip article:first-child { padding-left: 0; }
.signal-strip article:last-child { padding-right: 0; border-right: 0; }
.signal-emoji { width: 54px; height: 54px; }
.signal-strip article div { min-width: 0; display: grid; }
.signal-strip small { color: var(--hint); font-size: 9px; font-weight: 850; letter-spacing: 0.09em; }
.signal-strip strong { margin-top: 4px; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.signal-strip span { margin-top: 2px; color: var(--hint); font-size: 12px; }

.story-section { padding: 132px 0 60px; }
.editorial-heading { max-width: 680px; margin-bottom: 46px; }
.editorial-heading h2 { margin: 18px 0 20px; font-size: clamp(48px, 5vw, 70px); }
.editorial-heading p { max-width: 510px; margin: 0; font-size: 18px; }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.story-card { position: relative; min-height: 390px; padding: 30px; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-soft); transition: transform 220ms ease, box-shadow 220ms ease; }
.story-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-float); }
.story-card::after { content: ""; position: absolute; width: 190px; height: 190px; right: -68px; bottom: -88px; border: 1px solid var(--separator); border-radius: 50%; box-shadow: 0 0 0 28px color-mix(in srgb, var(--cyan) 5%, transparent), 0 0 0 58px color-mix(in srgb, var(--mint) 4%, transparent); }
.story-index { align-self: flex-end; color: color-mix(in srgb, var(--hint) 60%, transparent); font-size: 12px; font-weight: 850; }
.story-icon { width: 78px; height: 78px; margin: 24px 0 32px; display: grid; place-items: center; overflow: hidden; border-radius: 26px; contain: paint; }
.story-icon.ice, .action-icon.ice, .step-icon.ice, .admin-cell-icon.ice { background: color-mix(in srgb, var(--cyan) 15%, var(--surface)); }
.story-icon.mint, .action-icon.mint, .step-icon.mint, .admin-cell-icon.mint { background: color-mix(in srgb, var(--mint) 17%, var(--surface)); }
.story-icon.coral { background: color-mix(in srgb, var(--coral) 17%, var(--surface)); }
.feature-emoji { width: 58px; height: 58px; }
.story-card h3 { margin: 0 0 13px; font-size: 24px; }
.story-card p { margin: 0; font-size: 14px; line-height: 1.55; }
.story-state { z-index: 1; margin-top: auto; display: flex; align-items: center; gap: 9px; color: var(--hint); font-size: 11px; font-weight: 720; }
.story-state > i { width: 6px; height: 6px; box-shadow: none; }

.pond-directory { padding: 100px 0 80px; }
.directory-heading { margin-bottom: 34px; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.directory-heading h2 { margin: 18px 0 0; font-size: clamp(45px, 5vw, 68px); }
.directory-meta { max-width: 250px; padding-bottom: 7px; text-align: right; }
.directory-meta p { margin: 10px 0 0; font-size: 13px; }
.live-count { display: inline-flex; align-items: center; gap: 9px; color: var(--hint); font-size: 12px; font-weight: 780; }
.live-count > i { width: 6px; height: 6px; box-shadow: none; }
.pond-search { max-width: 620px; min-height: 64px; margin-bottom: 22px; padding: 7px 10px 7px 16px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--separator); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-soft); cursor: text; }
.search-emoji { width: 44px; height: 44px; }
.pond-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 14px; }
.pond-search input::placeholder { color: var(--hint); }
.search-hint { padding: 9px 12px; border-radius: 11px; color: var(--hint); background: var(--surface-soft); font-size: 10px; font-weight: 800; }
.pond-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pond-card { position: relative; min-width: 0; min-height: 258px; padding: 22px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid color-mix(in srgb, var(--separator) 70%, transparent); border-radius: 25px; background: var(--surface); box-shadow: var(--shadow-soft); transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease; }
.pond-card::before { content: ""; position: absolute; width: 180px; height: 180px; top: -115px; right: -95px; border: 1px solid color-mix(in srgb, var(--cyan) 25%, transparent); border-radius: 50%; box-shadow: 0 0 0 24px color-mix(in srgb, var(--mint) 5%, transparent); }
.pond-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--cyan) 35%, transparent); box-shadow: var(--shadow-float); }
.pond-card-head { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.offer-badge { width: fit-content; min-height: 32px; padding: 4px 10px 4px 5px; display: inline-flex; align-items: center; gap: 5px; overflow: hidden; border-radius: 11px; font-size: 10px; font-weight: 850; line-height: 1; contain: paint; }
.tier-silver { color: color-mix(in srgb, var(--text) 78%, #708692); background: color-mix(in srgb, var(--silver) 20%, var(--surface)); }
.tier-gold { color: color-mix(in srgb, #9a6800 82%, var(--text)); background: color-mix(in srgb, var(--gold) 19%, var(--surface)); }
.tier-platinum { color: color-mix(in srgb, var(--platinum) 78%, var(--text)); background: color-mix(in srgb, var(--platinum) 14%, var(--surface)); }
.badge-emoji { width: 21px; height: 21px; }
.verified-orbit { width: 40px; height: 40px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: color-mix(in srgb, var(--mint) 12%, var(--surface)); contain: paint; }
.verified-emoji { width: 30px; height: 30px; }
.pond-card-copy { z-index: 1; margin: auto 0 24px; }
.pond-card-copy > small { display: block; overflow: hidden; color: var(--hint); font-size: 10px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.pond-card h3 { margin: 7px 0 10px; overflow: hidden; font-size: 20px; text-overflow: ellipsis; white-space: nowrap; }
.pond-card-copy p { margin: 0; display: flex; align-items: center; gap: 7px; font-size: 11px; }
.pond-card-copy p i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.pond-link { min-height: 42px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; border-radius: 13px; color: var(--link); background: color-mix(in srgb, var(--cyan) 9%, var(--surface)); font-size: 12px; font-weight: 820; text-decoration: none; }
.pond-link:active { opacity: 0.65; }
.pond-link .button-arrow { width: 8px; height: 8px; }
.filter-empty, .empty-state { min-height: 220px; padding: 38px; grid-column: 1 / -1; display: grid; place-items: center; align-content: center; border: 1px dashed var(--separator); border-radius: 26px; background: color-mix(in srgb, var(--surface) 72%, transparent); text-align: center; }
.filter-empty strong, .empty-state strong { margin-top: 10px; font-size: 18px; }
.filter-empty p, .empty-state p { margin: 5px 0 0; font-size: 13px; }
.empty-emoji { width: 70px; height: 70px; }

.recovery-callout { min-height: 480px; margin: 70px 0 30px; padding: 46px 76px; display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: center; gap: 70px; overflow: hidden; border-radius: var(--radius-xl); color: white; background: linear-gradient(135deg, #063544, var(--navy-deep)); }
.callout-orbit { position: relative; height: 390px; display: grid; place-items: center; }
.callout-orbit > span { position: absolute; width: 330px; height: 330px; border: 1px solid var(--aqua); border-radius: 50%; box-shadow: 0 0 0 50px rgba(66, 223, 204, 0.06), 0 0 0 100px rgba(42, 171, 238, 0.04); animation: sonar-breathe 5.5s ease-in-out infinite; }
.callout-orbit img { position: relative; width: 330px; height: 330px; }
.recovery-callout h2 { margin: 20px 0; font-size: clamp(40px, 4vw, 62px); }
.recovery-callout p { max-width: 590px; margin: 0 0 30px; color: #a9cbd5; font-size: 16px; }

/* Login and error */
.auth-shell { min-height: min(720px, calc(100vh - 180px)); display: grid; grid-template-columns: 1fr 0.92fr; overflow: hidden; border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-soft); }
.auth-visual { position: relative; min-height: 680px; display: grid; place-items: center; overflow: hidden; background: var(--navy); }
.auth-visual::before { content: ""; position: absolute; width: 310px; height: 310px; border-radius: 50%; background: var(--yellow); opacity: 0.86; }
.auth-visual > img { position: relative; z-index: 2; width: 410px; height: 410px; }
.auth-visual .sonar-ring { width: 520px; height: 520px; border-color: var(--aqua); animation: sonar-breathe 5s ease-in-out infinite; }
.auth-visual .auth-ring-two { width: 370px; height: 370px; border-color: var(--cyan); animation-delay: -2s; }
.auth-status { position: absolute; z-index: 3; bottom: 42px; padding: 11px 16px; display: flex; align-items: center; gap: 9px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; color: #bce5ec; background: rgba(1, 25, 33, 0.72); font-size: 11px; font-weight: 750; backdrop-filter: blur(14px); }
.auth-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.auth-card { max-width: 540px; margin: auto; padding: 70px; }
.auth-card h1 { margin: 24px 0 20px; font-size: clamp(50px, 5vw, 70px); }
.auth-card > p { margin: 0; font-size: 16px; line-height: 1.55; }
.telegram-widget { min-height: 60px; margin: 34px 0 28px; display: flex; align-items: center; }
.auth-points { display: grid; gap: 1px; overflow: hidden; border-radius: 20px; background: var(--separator); }
.auth-points > div { min-height: 75px; padding: 10px 14px; display: flex; align-items: center; gap: 12px; background: var(--surface-soft); }
.auth-emoji { width: 50px; height: 50px; }
.auth-points span { display: grid; }
.auth-points strong { font-size: 13px; }
.auth-points small { margin-top: 3px; color: var(--hint); font-size: 11px; }
.back-link { width: fit-content; margin-top: 28px; display: flex; align-items: center; gap: 9px; color: var(--link); font-size: 13px; font-weight: 760; text-decoration: none; }
.error-shell { min-height: 620px; padding: 60px; display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 40px; border-radius: var(--radius-xl); background: var(--surface); }
.error-orbit { position: relative; height: 470px; display: grid; place-items: center; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy); }
.error-orbit span { position: absolute; width: 310px; height: 310px; border: 1px solid var(--aqua); border-radius: 50%; box-shadow: 0 0 0 55px rgba(66, 223, 204, 0.06); }
.error-orbit img { position: relative; width: 350px; }
.error-copy { max-width: 560px; }
.error-copy h1 { margin: 22px 0 18px; font-size: clamp(46px, 5vw, 68px); }
.error-copy p { margin: 0 0 28px; font-size: 17px; }

/* Dashboard */
.dashboard-intro { min-height: 260px; padding: 34px 54px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.dashboard-intro h1 { max-width: 760px; margin: 20px 0 12px; font-size: clamp(48px, 5vw, 68px); }
.dashboard-intro p { margin: 0; font-size: 16px; }
.intro-utya { position: relative; width: 220px; height: 190px; display: grid; place-items: center; }
.intro-utya span { position: absolute; width: 150px; height: 150px; border-radius: 50%; background: color-mix(in srgb, var(--yellow) 60%, var(--surface)); }
.intro-utya img { position: relative; width: 205px; height: 205px; }
.live-pond { position: relative; min-height: 470px; padding: 58px; display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; overflow: hidden; border-radius: var(--radius-xl); color: white; background: var(--navy); }
.live-copy { z-index: 3; align-self: start; }
.live-copy h2 { margin: 32px 0 18px; font-size: clamp(52px, 5vw, 72px); }
.live-copy p { max-width: 380px; margin: 0; color: #a9cbd5; }
.live-orbit { position: relative; height: 340px; display: grid; place-items: center; }
.live-orbit::before { content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%; background: var(--yellow); opacity: 0.9; }
.live-orbit .sonar-ring { width: 350px; height: 350px; animation: sonar-breathe 5s ease-in-out infinite; }
.live-orbit .sonar-ring.inner { width: 255px; height: 255px; border-color: rgba(42, 171, 238, 0.9); animation-delay: -2s; }
.live-orbit img { position: relative; width: 285px; height: 285px; }
.live-foot { position: absolute; right: 58px; bottom: 34px; left: 58px; display: flex; align-items: end; justify-content: space-between; }
.live-foot span { display: flex; align-items: center; gap: 9px; color: #8be9e5; font-size: 10px; font-weight: 850; letter-spacing: 0.1em; }
.live-foot strong { font-size: 18px; }
.account-grid { margin-top: 20px; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 20px; }
.account-card { min-height: 150px; padding: 25px; display: flex; align-items: center; gap: 22px; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-soft); }
.account-icon { width: 90px; height: 90px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border-radius: 30px; contain: paint; }
.account-icon.sun { background: color-mix(in srgb, var(--yellow) 22%, var(--surface)); }
.account-icon.mint { background: color-mix(in srgb, var(--mint) 18%, var(--surface)); }
.account-emoji { width: 68px; height: 68px; }
.account-card > div:last-child { min-width: 0; flex: 1; display: grid; }
.account-card small { color: var(--hint); font-size: 9px; font-weight: 850; letter-spacing: 0.09em; }
.account-card p { margin: 5px 0 0; font-size: 12px; }
.large-badge { margin-top: 7px; padding: 2px 10px 2px 2px; font-size: 18px; background: transparent; }
.large-badge .badge-emoji { width: 36px; height: 36px; }
.big-count { margin-top: 4px; font-size: 34px; line-height: 1; }
.no-badge { margin-top: 6px; font-size: 20px; font-weight: 820; }
.recovery-panel { margin-top: 20px; padding: 30px; border: 1px solid var(--separator); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-soft); }
.recovery-panel.active { border-color: color-mix(in srgb, var(--mint) 32%, var(--separator)); }
.recovery-head { display: flex; align-items: center; gap: 18px; }
.recovery-icon { width: 76px; height: 76px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border-radius: 24px; background: color-mix(in srgb, var(--coral) 14%, var(--surface)); contain: paint; }
.recovery-emoji { width: 59px; height: 59px; }
.recovery-head h2 { margin: 8px 0 0; font-size: 25px; }
.state-pill { margin-left: auto; padding: 8px 12px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; color: var(--hint); background: var(--surface-soft); font-size: 11px; font-weight: 760; }
.state-pill i { background: var(--hint); box-shadow: none; }
.state-pill.active { color: color-mix(in srgb, var(--mint) 72%, var(--text)); background: color-mix(in srgb, var(--mint) 13%, var(--surface)); }
.state-pill.active i { background: var(--mint); }
.recovery-panel > p { max-width: 720px; margin: 20px 0 24px; font-size: 14px; }
.recovery-panel form { max-width: 340px; }
.action-section { padding-top: 92px; }
.section-heading h2 { margin: 14px 0 28px; font-size: 40px; }
.action-list { display: grid; gap: 1px; overflow: hidden; border-radius: 26px; background: var(--separator); box-shadow: var(--shadow-soft); }
.action-row { min-height: 88px; padding: 12px 20px 12px 14px; display: flex; align-items: center; gap: 15px; color: var(--text); background: var(--surface); text-decoration: none; transition: background 160ms ease; }
.action-row:hover { background: var(--surface-soft); }
.action-icon { width: 60px; height: 60px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border-radius: 20px; contain: paint; }
.action-icon.violet { background: color-mix(in srgb, var(--violet) 15%, var(--surface)); }
.action-emoji { width: 47px; height: 47px; }
.action-row > span:nth-child(2) { min-width: 0; flex: 1; display: grid; }
.action-row strong { font-size: 15px; }
.action-row small { margin-top: 3px; color: var(--hint); font-size: 12px; }
.chevron, .disclosure { width: 9px; height: 9px; flex: 0 0 auto; border-top: 1.5px solid var(--hint); border-right: 1.5px solid var(--hint); transform: rotate(45deg); }
.dashboard-directory { padding-top: 110px; }

/* Admin */
.admin-hero { position: relative; min-height: 430px; padding: 62px; display: grid; grid-template-columns: 1fr 0.8fr; align-items: center; overflow: hidden; border-radius: var(--radius-xl); color: white; background: var(--navy); }
.admin-hero h1 { margin: 28px 0 20px; font-size: clamp(58px, 6vw, 82px); }
.admin-hero p { max-width: 480px; color: #a9cbd5; font-size: 16px; }
.admin-orbit { position: relative; height: 320px; display: grid; place-items: center; }
.admin-orbit span { position: absolute; width: 300px; height: 300px; border: 1px solid var(--aqua); border-radius: 50%; box-shadow: 0 0 0 48px rgba(66, 223, 204, 0.06); animation: sonar-breathe 5s ease-in-out infinite; }
.admin-orbit img { position: relative; width: 300px; height: 300px; }
.control-stats { position: relative; margin-top: 20px; padding: 24px 130px 24px 28px; display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border-radius: 28px; color: white; background: linear-gradient(110deg, #073545, #08465b); }
.control-stats article { padding: 8px 28px; display: grid; border-right: 1px solid rgba(255, 255, 255, 0.12); }
.control-stats article:first-child { padding-left: 0; }
.control-stats article:last-of-type { border: 0; }
.control-stats small { color: #86c6d3; font-size: 9px; font-weight: 850; letter-spacing: 0.1em; }
.control-stats strong { margin-top: 4px; font-size: 34px; line-height: 1; }
.control-stats span { margin-top: 5px; color: #a8cbd3; font-size: 11px; }
.stats-emoji { position: absolute; top: 50%; right: 20px; width: 90px; height: 90px; display: grid; place-items: center; overflow: hidden; border-radius: 25px; background: rgba(255, 255, 255, 0.08); transform: translateY(-50%); contain: paint; }
.chart-emoji { width: 72px; height: 72px; }
.tg-toast { position: fixed; z-index: 90; top: max(18px, env(safe-area-inset-top)); left: 50%; width: min(520px, calc(100% - 28px)); min-height: 66px; padding: 8px 12px 8px 8px; display: flex; align-items: center; gap: 10px; border: 1px solid color-mix(in srgb, var(--mint) 30%, transparent); border-radius: 20px; background: color-mix(in srgb, var(--surface) 91%, transparent); box-shadow: var(--shadow-float); backdrop-filter: blur(20px); transform: translateX(-50%); animation: toast-enter 420ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.toast-emoji { width: 48px; height: 48px; }
.tg-toast p { margin: 0; flex: 1; color: var(--text); font-size: 13px; font-weight: 700; }
.tg-toast button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface-soft); cursor: pointer; }
.tg-toast button i, .tg-toast button i::after { width: 12px; height: 1.5px; display: block; background: var(--hint); transform: rotate(45deg); }
.tg-toast button i::after { content: ""; transform: rotate(90deg); }
.builder-intro { padding: 112px 20px 38px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.builder-intro h2 { margin: 17px 0 0; font-size: clamp(42px, 4vw, 60px); }
.builder-intro > p { max-width: 360px; margin: 0 0 8px; font-size: 14px; }
.builder-flow { display: grid; gap: 16px; }
.builder-sheet { overflow: hidden; border: 1px solid var(--separator); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-soft); }
.builder-sheet summary { min-height: 116px; padding: 18px 24px; display: flex; align-items: center; gap: 18px; list-style: none; cursor: pointer; }
.builder-sheet summary::-webkit-details-marker { display: none; }
.step-number { width: 36px; color: var(--cyan); font-size: 11px; font-weight: 850; }
.step-icon { width: 70px; height: 70px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border-radius: 22px; contain: paint; }
.builder-emoji { width: 56px; height: 56px; }
.step-copy { min-width: 0; flex: 1; display: grid; }
.step-copy small { color: var(--cyan); font-size: 9px; font-weight: 850; letter-spacing: 0.09em; }
.step-copy strong { margin-top: 5px; font-size: 19px; }
.step-copy > span { margin-top: 3px; color: var(--hint); font-size: 12px; }
.disclosure { width: 10px; height: 10px; margin-right: 8px; transform: rotate(135deg); transition: transform 180ms ease; }
.builder-sheet[open] .disclosure { transform: rotate(-45deg); }
.builder-sheet[open] summary { border-bottom: 1px solid var(--separator); }
.native-form { padding: 28px; display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.native-form label { min-width: 0; display: grid; gap: 8px; color: var(--hint); font-size: 11px; font-weight: 750; }
.native-form input, .native-form textarea, .native-form select { width: 100%; min-height: 52px; padding: 13px 14px; border: 1px solid var(--separator); border-radius: 14px; outline: none; color: var(--text); background: var(--surface-soft); font-size: 14px; font-weight: 500; transition: border-color 160ms ease, box-shadow 160ms ease; }
.native-form textarea { min-height: 130px; resize: vertical; line-height: 1.45; }
.native-form input:focus, .native-form textarea:focus, .native-form select:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 13%, transparent); }
.native-form input::placeholder, .native-form textarea::placeholder { color: color-mix(in srgb, var(--hint) 75%, transparent); }
.native-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.native-form legend { margin-bottom: 10px; color: var(--hint); font-size: 11px; font-weight: 750; }
.tier-selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tier-selector label { cursor: pointer; }
.tier-selector input { position: absolute; opacity: 0; pointer-events: none; }
.tier-selector label > span { min-height: 120px; padding: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--separator); border-radius: 18px; background: var(--surface-soft); transition: border-color 160ms ease, background 160ms ease, transform 160ms ease; contain: paint; }
.tier-selector input:checked + span { border-color: var(--cyan); background: color-mix(in srgb, var(--cyan) 10%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 10%, transparent); }
.tier-selector label:active > span { transform: scale(0.98); }
.tier-choice-emoji { width: 50px; height: 50px; }
.tier-selector strong { color: var(--text); font-size: 13px; }
.tier-selector small { margin-top: 2px; color: var(--hint); font-size: 9px; }
.form-button { width: fit-content; min-width: 220px; }
.builder-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr); }
.campaign-form { border-right: 1px solid var(--separator); }
.message-preview { padding: 28px; background: var(--surface-soft); }
.preview-top { display: flex; justify-content: space-between; color: var(--hint); font-size: 9px; font-weight: 850; letter-spacing: 0.08em; }
.preview-top span { display: flex; align-items: center; gap: 8px; }
.preview-top small { font-size: 9px; }
.preview-phone { position: sticky; top: 20px; min-height: 430px; margin-top: 18px; padding: 28px 16px; overflow: hidden; border-radius: 28px; background: linear-gradient(145deg, #6abed9, #2f8dac); box-shadow: 0 20px 50px rgba(7, 57, 75, 0.18); }
.preview-phone::before, .preview-phone::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.preview-phone::before { width: 240px; height: 240px; top: -90px; right: -90px; }
.preview-phone::after { width: 160px; height: 160px; bottom: -65px; left: -50px; }
.preview-chat { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; color: white; }
.preview-chat img { width: 44px; height: 44px; border-radius: 14px; background: var(--navy); }
.preview-chat > div { display: grid; }
.preview-chat strong { font-size: 13px; }
.preview-chat small { color: rgba(255, 255, 255, 0.7); font-size: 10px; }
.preview-bubble { position: relative; z-index: 1; max-width: 90%; margin: 25px 0 0 auto; padding: 15px; border-radius: 18px 18px 4px 18px; color: #102a36; background: #e4ffd8; box-shadow: 0 8px 22px rgba(4, 45, 58, 0.12); }
.preview-bubble strong { font-size: 14px; }
.preview-bubble p { margin: 9px 0 14px; color: #405966; font-size: 12px; white-space: pre-wrap; }
.preview-bubble span { min-height: 34px; padding: 9px 12px; display: block; border-top: 1px solid rgba(27, 108, 142, 0.14); color: #1685b7; font-size: 11px; font-weight: 800; text-align: center; }
.preview-bubble.is-updating { animation: bubble-update 300ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.preview-time { position: relative; z-index: 1; margin: 7px 2px 0 auto; color: rgba(255, 255, 255, 0.72); font-size: 9px; text-align: right; }
.management-grid { padding-top: 90px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.management-panel { min-width: 0; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-soft); }
.management-panel > header { margin-bottom: 20px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.management-panel h2 { margin: 9px 0 0; font-size: 28px; }
.admin-list { display: grid; gap: 1px; overflow: hidden; border-radius: 20px; background: var(--separator); }
.admin-cell { min-width: 0; min-height: 92px; padding: 10px 12px; display: flex; align-items: center; gap: 12px; background: var(--surface-soft); }
.admin-cell-icon { width: 56px; height: 56px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border-radius: 18px; contain: paint; }
.admin-row-emoji { width: 46px; height: 46px; }
.admin-cell-copy { min-width: 0; flex: 1; }
.admin-cell-copy > strong { max-width: 100%; display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.admin-cell-copy > p { margin: 5px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 10px; }
.admin-cell-copy a { color: var(--link); font-weight: 750; text-decoration: none; }
.small-badge { min-height: 25px; padding: 2px 7px 2px 3px; }
.small-badge .badge-emoji { width: 20px; height: 20px; }
.mini-button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 11px; color: var(--link); background: color-mix(in srgb, var(--cyan) 10%, var(--surface)); font-size: 10px; font-weight: 820; cursor: pointer; }
.primary-mini { color: var(--button-text); background: var(--button); }
.inline-actions { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 7px; }
.inline-actions form { margin: 0; }
.campaign-cell { align-items: flex-start; padding-top: 14px; padding-bottom: 14px; }
.campaign-state { padding: 3px 7px; border-radius: 999px; background: color-mix(in srgb, var(--hint) 10%, var(--surface)); font-weight: 800; }
.campaign-state.active { color: color-mix(in srgb, var(--mint) 72%, var(--text)); background: color-mix(in srgb, var(--mint) 13%, var(--surface)); }
.empty-admin { min-height: 110px; padding: 18px; display: flex; align-items: center; gap: 12px; background: var(--surface-soft); }
.empty-admin-emoji { width: 55px; height: 55px; }
.empty-admin div { display: grid; }
.empty-admin strong { font-size: 13px; }
.empty-admin p { margin: 4px 0 0; font-size: 11px; }

.site-footer { width: min(1320px, calc(100% - 80px)); min-height: 120px; margin: 0 auto; padding: 25px 0; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-top: 1px solid var(--separator); color: var(--hint); font-size: 11px; }
.site-footer a { color: var(--link); text-decoration: none; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--text); }
.footer-emoji { width: 38px; height: 38px; }
.tg-dock { display: none; }

.miniapp-loader { position: fixed; z-index: 200; inset: 0; padding: 24px; display: none; place-items: center; align-content: center; color: var(--text); background: var(--canvas); text-align: center; }
.is-authenticating .miniapp-loader { display: grid; }
.loader-orbit { width: 130px; height: 130px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--cyan) 45%, transparent); border-radius: 50%; animation: sonar-breathe 2.2s ease-in-out infinite; }
.loader-orbit img { width: 140px; height: 140px; }
.miniapp-loader strong { margin-top: 18px; font-size: 15px; }
.loader-line { width: 150px; height: 4px; margin-top: 15px; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--hint) 15%, transparent); }
.loader-line i { width: 45%; height: 100%; display: block; border-radius: inherit; background: var(--cyan); animation: loader-slide 1.3s ease-in-out infinite; }
.ripple-click { position: absolute; z-index: 12; width: 22px; height: 22px; border: 1.5px solid rgba(100, 244, 226, 0.85); border-radius: 50%; pointer-events: none; animation: click-ripple 900ms ease-out forwards; }
.motion-reveal { opacity: 0; transform: translateY(18px); transition: opacity 540ms ease, transform 540ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.motion-reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1080px) {
  .liquid-hero { padding: 58px 48px; grid-template-columns: 0.92fr 1.08fr; }
  .pond-lens .ring-one { width: 440px; height: 440px; }
  .pond-lens .ring-two { width: 320px; height: 320px; }
  .pond-lens .ring-three { width: 210px; height: 210px; }
  .pond-lens::before { width: 400px; height: 400px; }
  .pond-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .story-card { min-height: 410px; }
  .builder-layout { grid-template-columns: 1fr; }
  .campaign-form { border-right: 0; border-bottom: 1px solid var(--separator); }
  .preview-phone { min-height: 350px; }
}

@media (max-width: 760px) {
  :root { --radius-xl: 30px; --radius-lg: 24px; --radius-md: 19px; }
  body { padding-top: calc(58px + var(--safe-top)); }
  .site-header { display: none; }
  .mini-header { position: fixed; z-index: 45; top: 0; right: 0; left: 0; min-height: calc(58px + var(--safe-top)); padding: var(--safe-top) max(18px, var(--tg-content-safe-area-inset-right, 18px)) 0 max(18px, var(--tg-content-safe-area-inset-left, 18px)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid color-mix(in srgb, var(--separator) 70%, transparent); background: color-mix(in srgb, var(--canvas) 92%, transparent); backdrop-filter: blur(20px) saturate(160%); }
  .mini-brand { display: grid; color: var(--text); line-height: 1; text-decoration: none; }
  .mini-brand span { font-size: 18px; font-weight: 850; letter-spacing: -0.04em; }
  .mini-brand small { margin-top: 4px; color: var(--hint); font-size: 8px; font-weight: 650; }
  .mini-user { max-width: 46%; display: flex; align-items: center; gap: 7px; color: var(--hint); font-size: 10px; }
  .mini-user span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .presence-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 12%, transparent); }
  .app-main { width: 100%; margin: 0; padding: 12px 12px calc(102px + var(--safe-bottom)); }
  .liquid-hero { min-height: 0; padding: 0; display: block; overflow: visible; color: var(--text); background: transparent; }
  .liquid-hero::before, .liquid-hero::after { display: none; }
  .hero-copy { padding: 22px 7px 30px; }
  .hero-copy h1 { margin: 22px 0 14px; font-size: clamp(43px, 13.2vw, 58px); line-height: 0.98; }
  .hero-copy h1 em { color: var(--text); }
  .hero-copy > p { max-width: 350px; color: var(--hint); font-size: 15px; line-height: 1.42; }
  .hero-actions { margin-top: 25px; }
  .hero-actions .tg-button { width: 100%; }
  .tg-button.quiet { color: var(--link); background: color-mix(in srgb, var(--cyan) 8%, var(--surface)); box-shadow: none; }
  .hero-proof { display: none; }
  .pond-lens { min-height: 345px; overflow: hidden; border-radius: var(--radius-xl); background: var(--navy); }
  .pond-lens::before { width: 300px; height: 300px; }
  .pond-lens .ring-one { width: 330px; height: 330px; }
  .pond-lens .ring-two { width: 240px; height: 240px; }
  .pond-lens .ring-three { width: 155px; height: 155px; }
  .lens-glow { width: 145px; height: 145px; }
  .hero-utya { width: 215px; height: 215px; }
  .lens-status { bottom: 15px; min-width: 205px; padding: 10px 14px; }
  .lens-status strong { font-size: 14px; }
  .signal-chip { display: none; }
  .signal-strip { margin-top: 12px; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; overflow: visible; border-radius: 0; background: transparent; box-shadow: none; }
  .signal-strip article { width: 100%; min-width: 0; min-height: 96px; padding: 12px 14px; border: 0; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-soft); }
  .signal-strip article:first-child, .signal-strip article:last-child { padding: 12px 14px; }
  .signal-emoji { width: 58px; height: 58px; }
  .signal-strip strong { font-size: 14px; }
  .story-section { padding: 94px 0 32px; }
  .editorial-heading { padding: 0 7px; margin-bottom: 28px; }
  .editorial-heading h2 { margin: 14px 0; font-size: 42px; }
  .editorial-heading p { font-size: 14px; }
  .story-grid { grid-template-columns: 1fr; gap: 12px; }
  .story-card { min-height: 300px; padding: 22px; border-radius: 24px; }
  .story-icon { width: 68px; height: 68px; margin: 13px 0 22px; border-radius: 22px; }
  .feature-emoji { width: 60px; height: 60px; }
  .story-card h3 { font-size: 22px; }
  .pond-directory { padding: 82px 0 40px; }
  .directory-heading { padding: 0 7px; margin-bottom: 24px; display: block; }
  .directory-heading h2 { margin-top: 13px; font-size: 41px; }
  .directory-meta { margin-top: 18px; padding: 0; text-align: left; }
  .directory-meta p { display: none; }
  .pond-search { max-width: none; min-height: 58px; margin-bottom: 12px; border-radius: 19px; }
  .search-emoji { width: 40px; height: 40px; }
  .pond-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pond-card { min-height: 230px; padding: 14px; border-radius: 21px; }
  .offer-badge { min-height: 28px; padding-right: 7px; font-size: 9px; }
  .badge-emoji { width: 22px; height: 22px; }
  .verified-orbit { width: 34px; height: 34px; }
  .verified-emoji { width: 30px; height: 30px; }
  .pond-card-copy { margin-bottom: 18px; }
  .pond-card h3 { font-size: 16px; }
  .pond-link { min-height: 40px; padding: 0 11px; font-size: 10px; }
  .recovery-callout { min-height: 0; margin: 68px 0 18px; padding: 30px 24px 34px; grid-template-columns: 1fr; gap: 8px; border-radius: 28px; }
  .callout-orbit { height: 255px; }
  .callout-orbit > span { width: 220px; height: 220px; box-shadow: 0 0 0 35px rgba(66, 223, 204, 0.06), 0 0 0 70px rgba(42, 171, 238, 0.04); }
  .callout-orbit img { width: 250px; height: 250px; }
  .recovery-callout h2 { margin: 16px 0; font-size: 38px; }
  .recovery-callout p { font-size: 14px; }
  .recovery-callout .tg-button { width: 100%; }

  .auth-shell { min-height: calc(100vh - 170px); display: flex; flex-direction: column; border-radius: 28px; }
  .auth-visual { min-height: 300px; }
  .auth-visual::before { width: 160px; height: 160px; }
  .auth-visual > img { width: 255px; height: 255px; }
  .auth-visual .sonar-ring { width: 285px; height: 285px; }
  .auth-visual .auth-ring-two { width: 210px; height: 210px; }
  .auth-status { bottom: 15px; }
  .auth-card { width: 100%; max-width: none; padding: 30px 22px 34px; }
  .auth-card h1 { margin: 18px 0 14px; font-size: 46px; }
  .auth-card > p { font-size: 14px; }
  .telegram-widget { margin: 26px 0 22px; }
  .error-shell { min-height: 0; padding: 0 0 30px; display: flex; flex-direction: column; gap: 28px; border-radius: 28px; }
  .error-orbit { width: 100%; height: 310px; border-radius: 28px; }
  .error-orbit span { width: 210px; height: 210px; }
  .error-orbit img { width: 250px; }
  .error-copy { padding: 0 22px; }
  .error-copy h1 { font-size: 44px; }

  .dashboard-intro { min-height: 210px; padding: 24px 7px 20px; align-items: flex-end; }
  .dashboard-intro h1 { margin: 15px 0 10px; font-size: 39px; }
  .dashboard-intro p { font-size: 13px; }
  .intro-utya { width: 105px; height: 115px; flex: 0 0 auto; }
  .intro-utya span { width: 80px; height: 80px; }
  .intro-utya img { width: 120px; height: 120px; max-width: none; }
  .live-pond { min-height: 430px; padding: 24px 20px; display: block; border-radius: 28px; }
  .live-copy h2 { margin: 18px 0 10px; font-size: 40px; }
  .live-copy p { max-width: 280px; font-size: 12px; }
  .live-orbit { height: 250px; margin-top: -18px; }
  .live-orbit::before { width: 125px; height: 125px; }
  .live-orbit .sonar-ring { width: 250px; height: 250px; }
  .live-orbit .sonar-ring.inner { width: 180px; height: 180px; }
  .live-orbit img { width: 205px; height: 205px; }
  .live-foot { right: 20px; bottom: 20px; left: 20px; }
  .live-foot strong { font-size: 15px; }
  .account-grid { margin-top: 12px; grid-template-columns: 1fr; gap: 10px; }
  .account-card { min-height: 116px; padding: 15px; border-radius: 23px; }
  .account-icon { width: 76px; height: 76px; border-radius: 24px; }
  .account-emoji { width: 68px; height: 68px; }
  .large-badge { font-size: 17px; }
  .recovery-panel { margin-top: 12px; padding: 20px; border-radius: 24px; }
  .recovery-head { align-items: flex-start; gap: 12px; }
  .recovery-icon { width: 62px; height: 62px; border-radius: 20px; }
  .recovery-emoji { width: 58px; height: 58px; }
  .recovery-head h2 { font-size: 20px; }
  .state-pill { padding: 6px 8px; font-size: 9px; }
  .recovery-panel form { max-width: none; }
  .action-section { padding-top: 76px; }
  .section-heading { padding: 0 7px; }
  .section-heading h2 { margin-bottom: 20px; font-size: 35px; }
  .action-row { min-height: 82px; padding-right: 16px; }
  .dashboard-directory { padding-top: 88px; }

  .admin-hero { min-height: 390px; padding: 28px 24px; display: block; border-radius: 28px; }
  .admin-hero h1 { margin: 18px 0 12px; font-size: 54px; }
  .admin-hero p { max-width: 290px; margin: 0; font-size: 13px; }
  .admin-orbit { position: absolute; right: -8px; bottom: -30px; width: 230px; height: 230px; }
  .admin-orbit span { width: 210px; height: 210px; box-shadow: 0 0 0 32px rgba(66, 223, 204, 0.06); }
  .admin-orbit img { width: 225px; height: 225px; }
  .control-stats { margin-top: 12px; padding: 20px 12px 90px; grid-template-columns: repeat(3, 1fr); border-radius: 24px; }
  .control-stats article, .control-stats article:first-child { padding: 5px 10px; }
  .control-stats strong { font-size: 28px; }
  .control-stats span { font-size: 9px; }
  .stats-emoji { top: auto; right: 50%; bottom: 7px; width: 76px; height: 76px; transform: translateX(50%); }
  .chart-emoji { width: 70px; height: 70px; }
  .builder-intro { padding: 82px 7px 26px; display: block; }
  .builder-intro h2 { margin-top: 14px; font-size: 39px; }
  .builder-intro > p { margin-top: 14px; font-size: 12px; }
  .builder-flow { gap: 10px; }
  .builder-sheet { border-radius: 24px; }
  .builder-sheet summary { min-height: 96px; padding: 13px 14px; gap: 11px; }
  .step-number { width: 24px; font-size: 9px; }
  .step-icon { width: 58px; height: 58px; border-radius: 19px; }
  .builder-emoji { width: 54px; height: 54px; }
  .step-copy strong { font-size: 15px; }
  .step-copy > span { font-size: 10px; }
  .disclosure { margin-right: 3px; }
  .native-form { padding: 18px 14px; gap: 15px; }
  .form-grid { grid-template-columns: 1fr; gap: 15px; }
  .tier-selector { gap: 6px; }
  .tier-selector input { width: 1px; height: 1px; min-height: 0; margin: 0; clip-path: inset(50%); }
  .tier-selector label > span { min-height: 105px; padding: 7px 3px; border-radius: 16px; }
  .tier-choice-emoji { width: 50px; height: 50px; }
  .tier-selector strong { font-size: 11px; }
  .tier-selector small { font-size: 8px; }
  .form-button { width: 100%; }
  .builder-layout { display: block; }
  .message-preview { padding: 18px 14px; }
  .preview-phone { position: relative; top: 0; min-height: 330px; }
  .management-grid { padding-top: 72px; grid-template-columns: 1fr; gap: 12px; }
  .management-panel { padding: 17px 12px; border-radius: 24px; }
  .management-panel h2 { font-size: 23px; }
  .admin-cell { min-height: 84px; padding: 9px; }
  .admin-cell-icon { width: 50px; height: 50px; }
  .admin-row-emoji { width: 47px; height: 47px; }
  .admin-cell > form .mini-button { padding: 0 8px; }
  .tg-toast { top: calc(66px + var(--safe-top)); }

  .tg-dock { position: fixed; z-index: 50; right: 0; bottom: 0; left: 0; padding: 7px 10px var(--safe-bottom); display: block; pointer-events: none; }
  .dock-inner { width: min(390px, 100%); min-height: 64px; margin: 0 auto; padding: 5px; display: flex; align-items: stretch; justify-content: space-around; gap: 2px; border: 1px solid color-mix(in srgb, var(--separator) 70%, transparent); border-radius: 23px; background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: 0 18px 50px rgba(3, 31, 42, 0.22); backdrop-filter: blur(24px) saturate(180%); pointer-events: auto; }
  .dock-item { min-width: 64px; flex: 1; padding: 3px 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; overflow: hidden; border-radius: 17px; color: var(--hint); font-size: 8px; font-weight: 760; text-decoration: none; transition: color 160ms ease, background 160ms ease, transform 160ms ease; contain: paint; }
  .dock-item:active { transform: scale(0.95); }
  .dock-item.active { color: var(--link); background: color-mix(in srgb, var(--cyan) 11%, var(--surface)); }
  .dock-emoji { width: 34px; height: 34px; margin-bottom: 1px; }
  .site-footer { width: calc(100% - 24px); min-height: 150px; margin-bottom: calc(74px + var(--safe-bottom)); padding: 24px 0; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; }
  .site-footer > span:last-child { line-height: 1.7; }
  .is-miniapp .site-footer { display: none; }
  .is-miniapp .app-main { padding-bottom: calc(94px + var(--safe-bottom)); }
  .is-miniapp a[data-open-telegram].tg-button { display: none; }
  [id], .signal-strip, .builder-flow, .management-grid { scroll-margin-top: calc(72px + var(--safe-top)); }
}

@media (max-width: 370px) {
  .hero-copy h1 { font-size: 42px; }
  .pond-grid { grid-template-columns: 1fr; }
  .pond-card { min-height: 215px; }
  .intro-utya { display: none; }
  .tier-selector { grid-template-columns: 1fr; }
  .tier-selector label > span { min-height: 82px; flex-direction: row; gap: 8px; }
}

@media (prefers-color-scheme: dark) {
  :root:not(.tg-theme-light) {
    --canvas: #101a21;
    --surface: #17242c;
    --surface-soft: #1d2c35;
    --text: #f4f8fa;
    --hint: #8fa4af;
    --separator: rgba(218, 238, 247, 0.09);
    --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.18);
    color-scheme: dark;
  }
}

:root.tg-theme-dark {
  --canvas: var(--tg-theme-secondary-bg-color, #101a21);
  --surface: var(--tg-theme-section-bg-color, var(--tg-theme-bg-color, #17242c));
  --surface-soft: color-mix(in srgb, var(--surface) 88%, #314653);
  --text: var(--tg-theme-text-color, #f4f8fa);
  --hint: var(--tg-theme-hint-color, #8fa4af);
  --separator: var(--tg-theme-section-separator-color, rgba(218, 238, 247, 0.09));
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.2);
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .motion-reveal { opacity: 1; transform: none; }
}

@keyframes sonar-breathe { 0%, 100% { opacity: 0.58; transform: scale(0.985); } 50% { opacity: 0.82; transform: scale(1.012); } }
@keyframes click-ripple { from { opacity: 0.9; transform: translate(-50%, -50%) scale(0.5); } to { opacity: 0; transform: translate(-50%, -50%) scale(10); } }
@keyframes loader-slide { from { transform: translateX(-110%); } to { transform: translateX(240%); } }
@keyframes toast-enter { from { opacity: 0; transform: translate(-50%, -14px) scale(0.96); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes bubble-update { 0% { opacity: 0.65; transform: translateY(4px) scale(0.985); } 100% { opacity: 1; transform: translateY(0) scale(1); } }

.public-home { min-height: 530px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 35px; padding: 45px; }
.home-copy h1 { font-size: clamp(40px, 5.5vw, 76px); line-height: 1.05; margin: 24px 0; letter-spacing: -0.055em; }
.home-copy > p { color: var(--hint); font-size: 18px; line-height: 1.6; max-width: 440px; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.home-actions .tg-button.quiet { color: var(--link); background: var(--surface); box-shadow: none; }
.home-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; font-size: 14px; }
.home-links a { color: var(--link); text-decoration: none; }
.home-mascot { display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, #c2eadf 0, transparent 69%); }
.home-mascot img { width: min(100%, 370px); height: auto; }
.standalone-directory { padding: 32px 0 55px; }
.standalone-directory h1 { font-size: clamp(38px, 5vw, 64px); margin: 16px 0; }
.account-home { max-width: 850px; margin: 0 auto 35px; }
.account-welcome { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 20px; }
.account-welcome h1 { font-size: clamp(32px, 5vw, 52px); margin: 16px 0; overflow-wrap: anywhere; }
.account-welcome img { width: 135px; height: 135px; flex: 0 0 auto; }
.personal-badges { background: var(--surface); border-radius: 24px; padding: 24px; margin: 12px 0 22px; }
.personal-badges h2 { font-size: 18px; margin: 0 0 16px; }
.personal-badges > div { display: flex; flex-wrap: wrap; gap: 10px; }
.recovery-page { max-width: 620px; margin: 10px auto 45px; text-align: center; }
.recovery-mascot { width: 170px; height: 170px; display: block; margin: 0 auto 16px; }
.recovery-page h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.15; letter-spacing: -0.045em; margin: 18px 0; }
.recovery-page > p { font-size: 16px; color: var(--hint); line-height: 1.7; }
.recovery-page form { margin-top: 24px; }
.recovery-page .state-pill { margin: 16px auto 0; }
.recovery-page > a { margin-top: 24px; }
@media (max-width: 760px) {
  .public-home { display: flex; flex-direction: column-reverse; gap: 0; padding: 5px 7px 24px; min-height: 0; }
  .home-mascot img { width: 155px; height: 155px; }
  .home-copy { width: 100%; }
  .home-copy h1 { font-size: clamp(37px, 10vw, 52px); margin: 18px 0; }
  .home-copy > p { font-size: 15px; margin-bottom: 0; }
  .home-actions { margin-top: 22px; }
  .home-actions .tg-button { width: 100%; }
  .home-links { font-size: 13px; gap: 12px; margin-top: 20px; }
  .standalone-directory { padding: 20px 7px 30px; }
  .account-welcome { padding: 12px 7px; }
  .account-welcome img { width: 85px; height: 85px; }
  .recovery-page { padding: 0 12px; }
  .recovery-mascot { width: 135px; height: 135px; }
}

.admin-sections, .console-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.admin-sections a, .console-tabs a { padding: 12px 18px; border-radius: 16px; background: var(--surface); color: var(--text); font-weight: 700; }
.admin-sections [aria-current], .console-tabs [aria-current] { background: #0c3444; color: #fff; }
.admin-sections a, .console-tabs a, .command-card { text-decoration: none; }
.console-shell .mini-button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 16px; font-size: 13px; min-height: 44px; text-decoration: none; }
.console-shell { max-width: 1120px; margin: 0 auto 70px; }
.console-shell h1 { font-size: clamp(30px, 5vw, 52px); margin: 32px 0; }
.console-panel { background: var(--surface); border-radius: 24px; padding: clamp(18px, 4vw, 36px); margin: 22px 0; min-width: 0; }
.console-panel h2 { font-size: 24px; margin: 0 0 16px; }
.console-panel p { line-height: 1.65; overflow-wrap: anywhere; }
.console-panel .field-help { margin-bottom: 22px; }
.console-panel details { margin: 20px 0; }
.console-panel summary { font-weight: 700; cursor: pointer; padding: 14px 0; }
.console-panel form { margin: 18px 0; }
.console-panel fieldset { border: 1px solid var(--separator); border-radius: 18px; padding: 20px; min-width: 0; }
.console-panel legend { font-weight: 700; padding: 0 8px; }
.console-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.console-shell label, .console-shell input, .console-shell select, .console-shell textarea { min-width: 0; max-width: 100%; }
.console-shell .checkbox-row { align-items: center; min-height: 44px; font-size: 14px; }
.console-shell .checkbox-row input { width: 20px; height: 20px; flex: 0 0 20px; }
.console-chat { display: flex; align-items: end; gap: 16px; margin: 24px 0; }
.console-chat label { flex: 1; }
.console-chat button { margin-bottom: 4px; min-height: 48px; }
.command-catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.command-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 20px; background: var(--surface); color: var(--text); }
.command-card strong { color: #168fca; font-size: 18px; }
.command-card span { line-height: 1.5; }
.command-card small { color: var(--hint); margin-top: auto; }
.console-notice { border-radius: 16px; padding: 18px; background: #dbf3e9; color: #164837; overflow-wrap: anywhere; }
.console-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.console-stats dt { font-size: 13px; color: var(--hint); }
.console-stats dd { font-size: 23px; margin: 10px 0; overflow-wrap: anywhere; }
.console-log { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.8; max-height: 500px; overflow-y: auto; }
@media (max-width: 620px) {
  .console-fields, .command-catalog, .console-stats { grid-template-columns: minmax(0, 1fr); }
  .console-chat { flex-direction: column; align-items: stretch; }
  .admin-sections a, .console-tabs a { font-size: 13px; padding: 10px 12px; }
  .console-panel .admin-cell { align-items: stretch; flex-direction: column; }
  .console-panel fieldset { padding: 14px; }
}
