/* ── Glass Headers ── */


/* ── Fixed Input Bars ── */
   dvh units · Safe-area formulas · Glass headers · Fixed inputs
   ─────────────────────────────────────────────────────
   Loads LAST in cascade — acts as safety net.
   Individual files should also use tokens; this catches misses.
   TABBAR POSITION / HEIGHT / BLUR ── NOT CHANGED HERE
   ═══════════════════════════════════════════════════════ */

/* ── Rule 1: dvh base ── */
/* — Moved to layout-core.css — */

/* ── Glass Headers — single source of truth ── */
.screen-title {
  background: var(--menu-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

/* ── AI Chat Container (P4.1) ── */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.chat-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  flex-shrink: 0;
  background: var(--menu-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  z-index: var(--z-header);
  touch-action: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}
.chat-header-icon { font-size: 24px; }
.chat-header-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}
.chat-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: calc(100px + min(env(safe-area-inset-bottom, 0px), 8px));
}

/* ── AI Chat Bubbles ── */
.chat-bubble.user { align-self: flex-end; }
.chat-bubble.assistant { align-self: flex-start; }
.chat-bubble-text {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
  color: var(--text-primary);
}
.chat-bubble.user .chat-bubble-text {
  background: var(--text-primary);
  color: var(--bg-main);
  border-bottom-right-radius: 4px;
}
.chat-bubble.assistant .chat-bubble-text {
  background: var(--tile-bg);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border);
}
.chat-bubble.typing .chat-bubble-text {
  padding: 10px 20px;
}
@keyframes typingPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── AI Chat Quick Actions & Limits ── */
.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px 6px;
  flex-shrink: 0;
}
.chat-quick-btn {
  background: var(--tile-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: var(--fs-sm, 13px);
  color: var(--text-primary);
  cursor: pointer;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.chat-quick-btn:active {
  background: var(--text-primary);
  color: var(--bg-main);
  border-color: var(--text-primary);
}
.chat-limit-bar {
  text-align: center;
  padding: 0;
  flex-shrink: 0;
  font-size: 12px;
  width: 100%;
  order: -1;
  display: none;
  pointer-events: none;
  touch-action: none;
  -webkit-touch-callout: none;
}
.chat-limit-bar.visible {
  display: block;
  padding: 2px 14px 4px;
  pointer-events: auto;
}
.chat-limit-free { color: var(--label); }
.chat-limit-pro { color: var(--switch-active); font-weight: 600; }
.chat-limit-exhausted { color: var(--label); }
.chat-limit-pro-btn {
  display: inline-block;
  background: var(--label);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 12px;
  padding: 4px 14px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-left: 8px;
}

/* ── AI Chat Input ── */
#chat-input {
  flex: 1;
  border: 1px solid var(--input-border, var(--border));
  border-radius: 18px;
  padding: 10px 14px;
  font-size: var(--fs-sm, 14px);
  font-family: inherit;
  resize: none;
  background: var(--input-bg, var(--tile-bg));
  color: var(--input-text, var(--text-primary));
  outline: none;
  -webkit-appearance: none;
  min-height: 40px;
  max-height: 120px;
  line-height: 1.4;
  transition: border-color 0.15s;
}
#chat-input:focus { border-color: var(--text-primary); }
#chat-input:disabled { opacity: 0.5; }

/* ── Human Chat — Active View ── */
#screen-chats { overflow: hidden; }
#chats-active-view {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-modal);
  background: var(--bg-main);
}
#chats-active-view.ch-open { display: flex; }

.ch-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px;
  padding-top: calc(10px + var(--safe-top));
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--menu-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 2;
}
.ch-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--tile-bg);
  font-size: 18px;
  cursor: pointer;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ch-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.ch-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  background: var(--bg-main);
}
.ch-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ch-avatar span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  font-size: 20px;
}
.ch-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ch-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
  padding-bottom: calc(100px + min(env(safe-area-inset-bottom, 0px), 8px));
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  min-height: 0;
}
.ch-input-row,
.human-chat .chat-input-row {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(44px + min(env(safe-area-inset-bottom, 0px), 8px));
  display: flex;
  gap: 8px;
  padding: 6px 12px 6px;
  border-top: 1px solid var(--border);
  background: var(--tile-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: var(--z-dropdown);
}
.ch-input-row input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--tile-bg);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
}
.ch-input-row input:focus { border-color: var(--text-primary); }
.ch-send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--switch-active);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: transform .1s var(--ease, ease), opacity .15s;
}
.ch-send:hover { transform: scale(1.04); }
.ch-send:active { opacity: .85; transform: scale(0.96); }
.ch-send svg { fill: currentColor; }

/* ── Shared: Messages ── */
.chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  -webkit-overflow-scrolling: touch;
}
#chats-active-view .chat-messages {
  flex: 1;
  overflow-y: auto;
  padding-bottom: calc(100px + min(env(safe-area-inset-bottom, 0px), 8px));
}
.chat-msg {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}
.chat-msg.me { align-items: flex-end; }
.chat-msg.them { align-items: flex-start; }

/* ── Shared: Bubbles ── */
.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
  animation: bubbleIn 0.2s ease;
}
.chat-msg.me .chat-bubble {
  background: var(--text-primary);
  color: var(--bg-main);
  border-bottom-right-radius: 4px;
}
.chat-msg.them .chat-bubble {
  background: var(--tile-bg);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.chat-time {
  font-size: 11px;
  color: var(--label);
  margin-top: 3px;
  padding: 0 6px;
}
.msg-status { margin-left: 4px; font-size: 11px; }
.msg-status.sent { color: var(--label); }
.msg-status.read { color: var(--switch-active); }
.msg-status.sending { font-size: 10px; }
.chat-empty {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--label);
}

/* ── Shared: Input Bars ── */
.chat-input-row,
.chat-input-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(44px + min(env(safe-area-inset-bottom, 0px), 8px));
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0 8px;
  padding: 6px 12px 6px;
  z-index: var(--z-dropdown);
  background: var(--bg-main);
  border-top: 1px solid var(--border);
  transform: none;
}
#chats-active-view .chat-input-row {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(44px + min(env(safe-area-inset-bottom, 0px), 8px));
  z-index: var(--z-dropdown);
  padding: 6px 12px 6px;
  background: var(--tile-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
}

/* ── Shared: Send Button ── */
.chat-send-btn {
  background: var(--button-bg);
  color: var(--text-primary);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.1s;
}
.chat-send-btn:active { transform: scale(0.9); }
.chat-send-btn:disabled { opacity: 0.4; cursor: default; }
.chat-send-btn svg { fill: var(--text-primary); }
/* ══ Partner Profile (P9.3) ══ */
.partner-item .label {
  font-size: 12px;
  color: var(--label);
}
.partner-item .value {
  font-size: 14px;
  font-weight: 600;
}
.partner-tags .tag {
  padding: 6px 12px;
  background: var(--tile-bg);
  color: var(--text-primary);
  border-radius: 20px;
  font-size: 13px;
}
/* ══ P9.6: Partner Tabs & Bodygraph ══ */
.partner-tab.active {
  background: var(--text-primary);
  color: var(--bg-main);
}
.partner-tab:hover:not(.active) {
  background: var(--tile-bg);
}
.partner-tab-content.active {
  display: block;
}
/* ── Matches screen consistency ── */
#screen-matches .screen-title {
  margin-bottom: 12px;
}
/* Profile safe-area */
#screen-partner {
  padding-top: var(--safe-top);
}
.btn-icon-sm {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  transition: transform 0.15s;
  line-height: 1;
}
.btn-icon-sm:active { transform: scale(0.85); }
/* P11: Username hint colors */
/* P11: Summary card rename */
/* P11-fix: extra bottom space for buttons above tab bar */
#btn-save-profile {
  margin-bottom: 40px;
}
.gallery-slot {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--page-bg-open);
  border: 2px dashed var(--border);
}
.gallery-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-slot-filled {
  border-style: solid;
  border-color: transparent;
}
/* v115f: gallery-slot-add removed */
.gallery-slot-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-main);
  color: var(--text-primary);
  border: none;
  font-size: 14px;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-oauth {
  opacity: .45; cursor: not-allowed; margin-top: 8px;
  transition: opacity 0.2s, cursor 0.2s;
}
/* ══ Branded OAuth Buttons (ATMA) ══ */
.btn-oauth-branded {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  margin-top: 8px;
  border-radius: 10px;
  border: 1.5px solid;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease-out;
  font-family: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
}
.btn-oauth-branded:active { opacity: 0.7; transform: scale(0.97); }
.btn-oauth-branded:disabled,
.btn-oauth-branded.btn-oauth-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  filter: grayscale(0.6);
}
.btn-oauth-branded svg { flex-shrink: 0; }
/* Google button — dark theme */
.btn-oauth-google {
  background: var(--tile-bg);
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-oauth-google:hover {
  background: var(--tile-bg);
}
.btn-secondary {
  background: var(--tile-bg);
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
/* btn secondary (Р В РЎвЂќР В Р вЂ¦Р В РЎвЂўР В РЎвЂ”Р В РЎвЂќР В Р’В° Р В РЎСљР В Р’В°Р В Р’В·Р В Р’В°Р В РўвЂ) */
.btn.secondary {
  background: var(--tile-bg);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.gender-selector {
  display: flex;
  gap: 12px;
  margin: 16px 0;
}
.gender-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  background: var(--tile-bg);
  border: 2px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: all .2s ease;
  font-family: inherit;
}
.gender-btn:hover {
  border-color: var(--text-primary);
  background: var(--tile-bg);
}
.gender-btn.selected {
  border-color: var(--text-primary);
  background: var(--tile-bg);
  box-shadow: none;
}
.gender-icon {
  font-size: 36px;
}
.gender-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
/* ══════════════════════════════════════════
   P7.0 — TimePicker (iOS-style wheel)
   ══════════════════════════════════════════ */
/* ══════════════════════════════════════════
   P7.0 — CityPicker (Autocomplete dropdown)
   ══════════════════════════════════════════ */
/* ══════════════════════════════════════
   P10.4 — reCAPTCHA & Captcha Wrap
   ══════════════════════════════════════ */
/* ══════════════════════════════════════
   P10.4 — OAuth Buttons Enable/Disable
   ══════════════════════════════════════ */
.btn-oauth.enabled {
  opacity: 1;
  cursor: pointer;
}
.btn-oauth.enabled:hover {
  background: var(--tile-bg);
}
.btn-oauth-branded.enabled,
.btn-oauth-branded:not(.btn-oauth-disabled):not(:disabled) {
  opacity: 1;
  cursor: pointer;
}
/* ══════════════════════════════════════
   P10.4 — Logout Button
   ══════════════════════════════════════ */
.text-btn {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 10px 0;
}
.text-btn:hover { opacity: 0.7; }


/* ══════════════════════════════════════
   Loading Screen & Hero
   ══════════════════════════════════════ */

/* ── Loading Screen ── */
.center-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
}
.logo-pulse {
  width: 140px;
  height: 140px;
  border-radius: 24px;
  object-fit: contain;
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.brand {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.12em;
}
.tagline {
  color: var(--label);
  font-size: 14px;
}
.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--text-primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin-top: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero {
  text-align: center;
  padding: 32px 0 24px;
}
.hero-icon { font-size: 48px; margin-bottom: 8px; }
/* ── Hero logo image ── */
.hero-icon-img {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  object-fit: contain;
  margin-bottom: 14px;
  display: inline-block;
}

.hero h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.10em;
}
.hero p {
  color: var(--label);
  font-size: 14px;
  margin-top: 6px;
  line-height: 1.5;
}

/* ── Empty state ── */
.empty-state {
  font-size: var(--fs-base, 15px);
  color: var(--label);
  padding: 48px 16px;
  text-align: center;
}

/* ── Loading text ── */
.loading-text {
  text-align: center;
  color: var(--label);
  font-size: 14px;
}


/* ══════════════════════════════════════
   Modals
   ══════════════════════════════════════ */

/* ─────── v115: Avatar Crop Modal ─────── */
.crop-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: var(--bg-main);
  display: flex;
  touch-action: none;
  overscroll-behavior: none;
  flex-direction: column;
}
.crop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
  background: var(--bg-main);
  z-index: 2;
}
.crop-cancel, .crop-done {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 4px;
}
.crop-done { color: var(--text-primary); }
.crop-title {
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 600;
}
.crop-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: auto;
  position: relative;
}
.crop-container {
  position: relative;
  width: 100%;
  height: 100%;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  overflow: hidden;
}
.crop-container img {
  position: absolute;
  transform-origin: 0 0;
  max-width: none;
  max-height: none;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
}
/* Circular mask overlay — radial-gradient with transparent center */
.crop-container::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    transparent 0,
    transparent calc(min(50vw, 50vh) - 20px),
    rgba(0, 0, 0, 0.65) calc(min(50vw, 50vh) - 20px)
  );
}
/* Circle guide border — matches the radial-gradient cutout */
.crop-container::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(min(100vw, 100vh) - 40px);
  height: calc(min(100vw, 100vh) - 40px);
  max-width: 320px;
  max-height: 320px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  z-index: 3;
  pointer-events: none;
}


/* ══════════════════════════════════════
   Cards & Module Grid
   ══════════════════════════════════════ */

/* ── Cards ── */
.card {
}
.card-intro {
  color: var(--label);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 14px;
}

/* ── Archetype Card ── */
.archetype-card { padding: 20px; }
.archetype-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.archetype-icon { font-size: 40px; }
.archetype-header h2 {
  font-size: 20px;
  font-weight: 700;
}
.archetype-header .sub {
  color: var(--label);
  font-size: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}
.badge.sun { background: var(--tile-bg); color: var(--label); }
.badge.moon { background: var(--tile-bg); color: var(--text-secondary); }
.badge.num { background: var(--tile-bg); color: var(--text-primary); }

/* ── Summary Report ── */
.summary-hero .sub {
  color: var(--label);
  font-size: 13px;
}

/* Section Card (generic) */
.section-card {
  background: var(--tile-bg);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.meta {
  font-size: 12px;
  color: var(--label);
}


/* 
   Extracted from overrides (Stage 7)
    */

/* ═══ P26: Модальное окно уведомлений (ATMA — dual-theme) ═══ */
.push-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pushModalFadeIn 0.3s ease-out;
}
.push-modal {
  background: var(--tile-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  max-width: 320px;
  width: 90%;
  text-align: center;
}
.push-modal-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.push-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.push-modal-subtitle {
  font-size: 14px;
  color: var(--label);
  margin-bottom: 24px;
}
.push-modal-btn {
  margin-bottom: 8px;
}
@keyframes pushModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* VPN-предупреждение на экране логина */
.vpn-warning-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--tile-bg);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-primary);
}
.vpn-warning-icon { font-size: 16px; flex-shrink: 0; }
.vpn-warning-text { flex: 1; line-height: 1.35; }
.vpn-hint-static { font-size: 24px; color: var(--text-secondary); text-align: center; margin-bottom: 12px; line-height: 1.3; }

/* Баннер заблокированных уведомлений */
.push-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  position: fixed;
  bottom: calc(80px + var(--safe-bottom));
  left: 12px;
  right: 12px;
  z-index: var(--z-overlay);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--tile-bg);
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.push-banner-icon { font-size: 22px; flex-shrink: 0; }
.push-banner-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-primary);
}
.push-banner-text strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
  color: var(--text-primary);
}
.push-banner-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  color: var(--label);
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
  opacity: .6;
}
.push-banner-close:hover { opacity: 1; }


/* ══ Toast Notification ══ */
.toast {
  position: fixed;
  top: calc(56px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  background: var(--tile-bg);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  z-index: var(--z-overlay);
  transition: transform .3s ease, opacity .3s ease;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.toast.error {
  border-color: var(--danger);
  color: var(--danger);
}

/* ══ Day Number & Soul Matrix (P2) ══ */
.badge.day {
  background: var(--label);
  color: var(--label);
  border: 1px solid var(--label);
}

/* ══ AI Summary Card (P2) ══ */
.ai-card {
  border: 1px solid var(--text-secondary);
  background: var(--text-secondary);
}

/* ══ Dev Panel (P2) ══ */
.tier-badge {
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  background: var(--text-secondary);
  color: var(--text-primary);
}
.btn-primary {
  background: var(--text-primary);
  color: var(--bg-main);
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ══ Expression & Soul Urge badges (P3) ══ */
.badge.expr {
  background: var(--text-secondary);
  color: var(--text-primary);
  border: 1px solid var(--text-secondary);
}
.badge.soul {
  background: var(--text-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--text-secondary);
}

/* ══ Name hint block (P3) ══ */

/* ══════════════════════════════════════
   Source: reports.css
   ══════════════════════════════════════ */

﻿/* в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ
   P3.1 — Report Screen Styles
   Р В РЎСџР РЋР вЂљР В Р’ВµР В РЎВР В РЎвЂР РЋРЎвЂњР В РЎВ Р РЋРІР‚С™Р В РЎвЂР В РЎвЂ”Р В РЎвЂўР В РЎвЂ“Р РЋР вЂљР В Р’В°Р РЋРІР‚С›Р В РЎвЂР В РЎвЂќР В Р’В° Р В РЎвЂ Р РЋР С“Р РЋРІР‚С™Р РЋР вЂљР РЋРЎвЂњР В РЎвЂќР РЋРІР‚С™Р РЋРЎвЂњР РЋР вЂљР В Р’В°
   ══════════════════════════════════════════ */

/* Report Section Р Р†Р вЂљРІР‚Сњ Р В РЎвЂќР В Р’В°Р В Р’В¶Р В РўвЂР РЋРІР‚в„–Р В РІвЂћвЂ“ Р В Р’В±Р В Р’В»Р В РЎвЂўР В РЎвЂќ */

/* Р Р†РІР‚СњР вЂљР Р†РІР‚СњР вЂљ Р В Р Р‹Р В Р’ВµР В РЎвЂќР РЋРІР‚В Р В РЎвЂР В РЎвЂўР В Р вЂ¦Р В Р вЂ¦Р РЋРІР‚в„–Р В РІвЂћвЂ“ Р РЋР вЂљР В Р’В°Р В Р’В·Р В РўвЂР В Р’ВµР В Р’В»Р В РЎвЂР РЋРІР‚С™Р В Р’ВµР В Р’В»Р РЋР Р‰ Р Р†РІР‚СњР вЂљР Р†РІР‚СњР вЂљ */

/* ══ Callout Cards ══ */

/* Р В РІР‚СљР В Р’В»Р В Р’В°Р В Р вЂ Р В Р вЂ¦Р РЋРІР‚в„–Р В РІвЂћвЂ“ Р В Р вЂ Р РЋРІР‚в„–Р В Р вЂ Р В РЎвЂўР В РўвЂ */

/* Р В Р’В Р В Р’ВµР В РЎвЂќР В РЎвЂўР В РЎВР В Р’ВµР В Р вЂ¦Р В РўвЂР В Р’В°Р РЋРІР‚В Р В РЎвЂР РЋР РЏ */

/* Р В Р’В Р В РЎвЂР РЋР С“Р В РЎвЂќ */

/* Tags (strength / shadow) */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}
.tag.green {
  background: color-mix(in srgb, var(--switch-active) 18%, transparent);
  color: #f3fff9;
  border: 1px solid color-mix(in srgb, var(--switch-active) 80%, white 20%);
}
.tag.red {
  background: color-mix(in srgb, var(--danger) 18%, transparent);
  color: #fff5f7;
  border: 1px solid color-mix(in srgb, var(--danger) 80%, white 20%);
}
.tag.amber {
  background: color-mix(in srgb, var(--label) 22%, transparent);
  color: #fff8e8;
  border: 1px solid color-mix(in srgb, var(--label) 75%, white 25%);
}
.report-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.report-tags-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.report-tags-stack .tag {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  white-space: normal;
  word-break: break-word;
}

/* Accent Box (archetype highlight) */
.archetype-big {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 10px 0;
  letter-spacing: -0.01em;
}

/* Planet Grid (positions) */

/* Warning Box (Р В РЎвЂ”Р РЋР вЂљР В Р’ВµР В РўвЂР РЋРЎвЂњР В РЎвЂ”Р РЋР вЂљР В Р’ВµР В Р’В¶Р В РўвЂР В Р’ВµР В Р вЂ¦Р В РЎвЂР РЋР РЏ / Р РЋРІР‚С™Р В Р’ВµР В РЎВР В Р’В° Р В РЎСљР В Р’Вµ-Р В Р вЂЎ) */

/* Report List */

/* Inline Link */

/* Error text */



/* ══════════════════════════════════════════
   P4 — Paywall Banner
   ══════════════════════════════════════════ */

/* Locked row (astro planets etc.) */

/* ══════════════════════════════════════════
   P4 — PRO Purchase Screen
   ══════════════════════════════════════════ */
.pro-cta-card {
  background: var(--tile-bg);
  border: 1px solid var(--label);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 16px;
}
.pro-cta-card h3 {
  margin: 0 0 4px;
  font-size: 20px;
  color: var(--text-primary);
}
.pro-cta-card p {
  margin: 0;
  font-size: 13px;
  color: var(--label);
}


.pro-price-card {
  text-align: center;
  padding: 20px;
}

.pro-active-card {
  background: var(--tile-bg);
  border: 1px solid var(--switch-active);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
}
.pro-active-card h3 {
  margin: 8px 0 4px;
  font-size: 20px;
  color: var(--text-primary);
}


/* ══════════════════════════════════════
   Source: humandesign.css
   ══════════════════════════════════════ */

   P6: Human Design Report Styles
   ═══════════════════════════════════════ */

/* Р В РІР‚ВР В РЎвЂўР В РўвЂР В РЎвЂР В РЎвЂ“Р РЋР вЂљР В Р’В°Р РЋРІР‚С› - Р В РЎвЂќР В РЎвЂўР В Р вЂ¦Р РЋРІР‚С™Р В Р’ВµР В РІвЂћвЂ“Р В Р вЂ¦Р В Р’ВµР РЋР вЂљ */

/* Р В РЎС›Р В РЎвЂР В РЎвЂ” - Р В РЎвЂќР В Р’В°Р РЋР вЂљР РЋРІР‚С™Р В РЎвЂўР РЋРІР‚РЋР В РЎвЂќР В Р’В° */
.hd-type-card {
  text-align: center;
  padding: 28px 16px;
  background: var(--tile-bg);
  border: 1px solid var(--border);
}

/* Р В РІР‚вЂќР В Р вЂ¦Р В Р’В°Р РЋРІР‚РЋР В Р’ВµР В Р вЂ¦Р В РЎвЂР РЋР РЏ Р В РЎвЂ Р В РЎвЂўР В РЎвЂ”Р В РЎвЂР РЋР С“Р В Р’В°Р В Р вЂ¦Р В РЎвЂР РЋР РЏ */

/* Центры - сетка */
.hd-center.open {
  background: var(--tile-bg);
  color: var(--label);
  border: 1px solid var(--border);
}
.hd-center-dot.open { background: var(--label); opacity: 0.5; }

/* Р В РІР‚СњР В Р’ВµР РЋРІР‚С™Р В Р’В°Р В Р’В»Р В РЎвЂ Р РЋРІР‚В Р В Р’ВµР В Р вЂ¦Р РЋРІР‚С™Р РЋР вЂљР В РЎвЂўР В Р вЂ  */

/* Каналы */

/* Р В Р Р‹Р РЋРІР‚С™Р В Р’В°Р РЋРІР‚С™Р В РЎвЂР РЋР С“Р РЋРІР‚С™Р В РЎвЂР В РЎвЂќР В Р’В° */

/* Р В Р’В¤Р В РЎвЂўР РЋР вЂљР В РЎВР В Р’В° Р В Р вЂ Р В Р вЂ Р В РЎвЂўР В РўвЂР В Р’В° Р В Р вЂ Р РЋР вЂљР В Р’ВµР В РЎВР В Р’ВµР В Р вЂ¦Р В РЎвЂ/Р В РЎвЂ“Р В РЎвЂўР РЋР вЂљР В РЎвЂўР В РўвЂР В Р’В° */
.hd-input {
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--tile-bg);
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.hd-input:focus { border-color: var(--text-primary); }

/* Р В Р’В Р В Р’В°Р РЋР С“Р РЋРІвЂљВ¬Р В РЎвЂР РЋР вЂљР В Р’ВµР В Р вЂ¦Р В Р вЂ¦Р РЋРІР‚в„–Р В Р’Вµ Р В РЎвЂўР В РЎвЂ”Р В РЎвЂР РЋР С“Р В Р’В°Р В Р вЂ¦Р В РЎвЂР РЋР РЏ */
/* Р В РІР‚СљР В Р’В»Р РЋРЎвЂњР В Р’В±Р В РЎвЂўР В РЎвЂќР В РЎвЂР В РІвЂћвЂ“ Р В Р’В°Р В Р вЂ¦Р В Р’В°Р В Р’В»Р В РЎвЂР В Р’В· Р Р†Р вЂљРІР‚Сњ Р В Р’В·Р В Р’В°Р В РЎвЂ“Р В РЎвЂўР В Р’В»Р В РЎвЂўР В Р вЂ Р В РЎвЂќР В РЎвЂ Р РЋР С“Р В Р’ВµР В РЎвЂќР РЋРІР‚В Р В РЎвЂР В РІвЂћвЂ“ */

/* Ворота */

/* ═══════════════════════════════════════
   Р В Р’В Р В Р’В°Р РЋР С“Р РЋРІвЂљВ¬Р В РЎвЂР РЋР вЂљР В Р’ВµР В Р вЂ¦Р В Р вЂ¦Р РЋРІР‚в„–Р В Р’Вµ Р РЋР С“Р РЋРІР‚С™Р В РЎвЂР В Р’В»Р В РЎвЂ HD Р РЋРІР‚С™Р РЋР вЂљР В Р’В°Р В РЎвЂќР РЋРІР‚С™Р В РЎвЂўР В Р вЂ Р В РЎвЂўР В РЎвЂќ Р В РЎвЂР В Р’В· JSON Р В Р’В±Р В Р’В°Р В Р’В·Р РЋРІР‚в„–
   ═══════════════════════════════════════ */

/* Каналы — полный блок */

/* Ворота — collapsible блок */

/* Р В Р’В¦Р В Р’ВµР В Р вЂ¦Р РЋРІР‚С™Р РЋР вЂљР РЋРІР‚в„– Р Р†Р вЂљРІР‚Сњ Р РЋР вЂљР В Р’В°Р РЋР С“Р РЋРІвЂљВ¬Р В РЎвЂР РЋР вЂљР В Р’ВµР В Р вЂ¦Р В Р вЂ¦Р РЋРІР‚в„–Р В РІвЂћвЂ“ Р В Р’В±Р В Р’В»Р В РЎвЂўР В РЎвЂќ */
.hd-center-block.open { border-left: 3px solid var(--text-secondary); }

/* Callouts Р В РўвЂР В РЎвЂўР В РЎвЂ”Р В РЎвЂўР В Р’В»Р В Р вЂ¦Р В РЎвЂР РЋРІР‚С™Р В Р’ВµР В Р’В»Р РЋР Р‰Р В Р вЂ¦Р РЋРІР‚в„–Р В Р’Вµ */


/* ═══════════════════════════════════════
   P6.4: HD Composite / Compatibility
   ═══════════════════════════════════════ */


/* Composite Р В Р’В±Р В РЎвЂўР В РўвЂР В РЎвЂР В РЎвЂ“Р РЋР вЂљР В Р’В°Р РЋРІР‚С› */

/* Р В Р’В­Р В Р’В»Р В Р’ВµР В РЎвЂќР РЋРІР‚С™Р РЋР вЂљР В РЎвЂўР В РЎВР В Р’В°Р В РЎвЂ“Р В Р вЂ¦Р В РЎвЂР РЋРІР‚С™Р В Р вЂ¦Р РЋРІР‚в„–Р В Р’Вµ Р В РЎвЂќР В Р’В°Р В Р вЂ¦Р В Р’В°Р В Р’В»Р РЋРІР‚в„– */
.hd-em-card {
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--label);
  background: var(--label);
  margin-bottom: 10px;
}

/* Р В Р’В Р В Р’В°Р В Р’В·Р В РўвЂР В Р’ВµР В Р’В»Р РЋРІР‚в„– composite */


/* Р В Р Р‹Р РЋРІР‚С™Р В Р’В°Р РЋРІР‚С™Р В РЎвЂР РЋР С“Р РЋРІР‚С™Р В РЎвЂР В РЎвЂќР В Р’В° composite */

/* Р В РЎС›Р В Р’В°Р В Р’В±Р РЋРІР‚в„– Р РЋР С“Р В РЎвЂўР В Р вЂ Р В РЎВР В Р’ВµР РЋР С“Р РЋРІР‚С™Р В РЎвЂР В РЎВР В РЎвЂўР РЋР С“Р РЋРІР‚С™Р В РЎвЂ */
.compat-tab.active {
  background: var(--text-primary);
  color: var(--bg-main);
}


/* ── Overlay + Sheet ── */

/* Р Р†РІР‚СњР вЂљР Р†РІР‚СњР вЂљ Р В РўС’Р В Р’ВµР В РўвЂР В Р’ВµР РЋР вЂљ Р Р†РІР‚СњР вЂљР Р†РІР‚СњР вЂљ */

/* Р Р†РІР‚СњР вЂљР Р†РІР‚СњР вЂљ Р В РЎС›Р В Р’ВµР В Р’В»Р В РЎвЂў Р РЋР С“ Р В РЎвЂќР В РЎвЂўР В Р’В»Р В РЎвЂўР В Р вЂ¦Р В РЎвЂќР В Р’В°Р В РЎВР В РЎвЂ Р Р†РІР‚СњР вЂљР Р†РІР‚СњР вЂљ */

.tp-item.tp-selected {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 26px;
}

/* Р Р†РІР‚СњР вЂљР Р†РІР‚СњР вЂљ Р В Р’В Р В Р’В°Р В Р’В·Р В РўвЂР В Р’ВµР В Р’В»Р В РЎвЂР РЋРІР‚С™Р В Р’ВµР В Р’В»Р РЋР Р‰ Р Р†РІР‚СњР вЂљР Р†РІР‚СњР вЂљ */

/* Р Р†РІР‚СњР вЂљР Р†РІР‚СњР вЂљ Р В РЎСџР В РЎвЂўР В Р’В»Р В РЎвЂўР РЋР С“Р В РЎвЂќР В Р’В° Р В РЎвЂ”Р В РЎвЂўР В РўвЂР РЋР С“Р В Р вЂ Р В Р’ВµР РЋРІР‚С™Р В РЎвЂќР В РЎвЂ (Р РЋРІР‚В Р В Р’ВµР В Р вЂ¦Р РЋРІР‚С™Р РЋР вЂљ) Р Р†РІР‚СњР вЂљР Р†РІР‚СњР вЂљ */
/* Р В РІР‚в„ўР РЋРІР‚в„–Р РЋР вЂљР В РЎвЂўР В Р вЂ Р В Р вЂ¦Р РЋР РЏР РЋРІР‚С™Р РЋР Р‰ highlight Р В Р вЂ Р В Р вЂ¦Р РЋРЎвЂњР РЋРІР‚С™Р РЋР вЂљР В РЎвЂ tp-body */

/* Р Р†РІР‚СњР вЂљР Р†РІР‚СњР вЂљ Р В РЎСџР В РЎвЂўР В РўвЂР РЋР С“Р В РЎвЂќР В Р’В°Р В Р’В·Р В РЎвЂќР В Р’В° Р Р†РІР‚СњР вЂљР Р†РІР‚СњР вЂљ */

/* Р Р†РІР‚СњР вЂљР Р†РІР‚СњР вЂљ Р В РЎС›Р РЋР вЂљР В РЎвЂР В РЎвЂ“Р В РЎвЂ“Р В Р’ВµР РЋР вЂљ-Р В РЎвЂќР В Р вЂ¦Р В РЎвЂўР В РЎвЂ”Р В РЎвЂќР В Р’В° (Р В Р вЂ  Р В РЎвЂўР В Р вЂ¦Р В Р’В±Р В РЎвЂўР РЋР вЂљР В РўвЂР В РЎвЂР В Р вЂ¦Р В РЎвЂ“Р В Р’Вµ) Р Р†РІР‚СњР вЂљР Р†РІР‚СњР вЂљ */
.tp-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--tile-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .2s;
}
.tp-trigger:active {
  border-color: var(--text-primary);
}
.tp-trigger-icon {
  font-size: 20px;
}
.tp-trigger-value {
  flex: 1;
  font-size: 15px;
  color: var(--label);
}
.tp-trigger-value.filled {
  color: var(--text-primary);
  font-weight: 500;
}
.tp-trigger-arrow {
  color: var(--label);
  font-size: 14px;
}


/* Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™ HD Hero Card Р Р†Р вЂљРІР‚Сњ Р В РЎвЂќР В Р’В»Р РЋР вЂ№Р РЋРІР‚РЋР В Р’ВµР В Р вЂ Р РЋРІР‚в„–Р В Р’Вµ Р В РЎвЂ”Р В Р’В°Р РЋР вЂљР В Р’В°Р В РЎВР В Р’ВµР РЋРІР‚С™Р РЋР вЂљР РЋРІР‚в„– Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™ */
.hd-hero-card {
  background: var(--tile-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 16px;
}

/* ══ Summary Report ══ */
/* ══════════════════════════════════════
   Light Theme — City Autocomplete fixes
   ══════════════════════════════════════ */


/* ══════════════════════════════════════
   Source: modules.css
   ══════════════════════════════════════ */

﻿/* в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ
   Р В РЎС™Р РЋРЎвЂњР В Р’В»Р РЋР Р‰Р РЋРІР‚С™Р В РЎвЂ-Р В РЎвЂ”Р В РЎвЂўР В РўвЂР РЋР С“Р РЋРІР‚РЋР РЋРІР‚ВР РЋРІР‚С™ Р Р†Р вЂљРІР‚Сњ Р РЋР вЂљР В Р’В°Р РЋР С“Р РЋРІвЂљВ¬Р В РЎвЂР РЋР вЂљР В Р’ВµР В Р вЂ¦Р В Р вЂ¦Р РЋРІР‚в„–Р В Р’Вµ Р РЋР С“Р РЋРІР‚С™Р В РЎвЂР В Р’В»Р В РЎвЂ
   ═══════════════════════════════════════ */


.archetype-main {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 12px 0;
}
.archetype-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
}

/* Р В РЎСџР В РЎвЂўР В Р вЂ Р РЋРІР‚С™Р В РЎвЂўР РЋР вЂљР РЋР РЏР РЋР вЂ№Р РЋРІР‚В°Р В РЎвЂР В Р’ВµР РЋР С“Р РЋР РЏ Р РЋРІР‚С™Р В Р’ВµР В РЎВР РЋРІР‚в„– */
.theme-card {
  background: var(--tile-bg);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
}

/* Р В РЎС™Р В РЎвЂР В Р вЂ¦Р В РЎвЂР В РЎВР В Р’В°Р В Р’В»Р РЋР Р‰Р В Р вЂ¦Р РЋРІР‚в„–Р В РІвЂћвЂ“ Р РЋР вЂљР В Р’В°Р В Р’В·Р В РЎВР В Р’ВµР РЋР вЂљ Р РЋРІвЂљВ¬Р РЋР вЂљР В РЎвЂР РЋРІР‚С›Р РЋРІР‚С™Р В Р’В° Р В РўвЂР В Р’В»Р РЋР РЏ Р РЋРІР‚РЋР В РЎвЂР РЋРІР‚С™Р В Р’В°Р В Р’ВµР В РЎВР В РЎвЂўР РЋР С“Р РЋРІР‚С™Р В РЎвЂ */

/* ══════════════════════════════════════════
   Р В Р Р‹Р РЋР вЂ№Р РЋРІР‚В Р В Р’В°Р В РІвЂћвЂ“ / Р В РЎСџР РЋР С“Р В РЎвЂР РЋРІР‚В¦Р В РЎвЂўР В РЎВР В Р’В°Р РЋРІР‚С™Р РЋР вЂљР В РЎвЂР РЋРІР‚В Р В Р’В° Р Р†Р вЂљРІР‚Сњ Р РЋР С“Р РЋРІР‚С™Р В РЎвЂР В Р’В»Р В РЎвЂ
   ══════════════════════════════════════════ */

/* Р В РЎв„ўР В Р вЂ Р В Р’В°Р В РўвЂР РЋР вЂљР В Р’В°Р РЋРІР‚С™ 3Р вЂњРІР‚вЂќ3 */
.sujai-cell.strong {
  border-color: var(--switch-active);
  background: var(--switch-active);
}
.sujai-cell.empty {
  border-color: var(--danger);
  background: var(--danger);
  opacity: 0.7;
}
.sujai-cell.empty .sujai-cell-num {
  color: var(--label);
  opacity: 0.5;
}
.sujai-cell.strong .sujai-cell-level { color: var(--switch-active); }
.sujai-cell.empty .sujai-cell-level { color: var(--danger); }

/* Р В РЎв„ўР В Р’В°Р РЋРІР‚РЋР В Р’ВµР РЋР С“Р РЋРІР‚С™Р В Р вЂ Р В Р’В° Р Р†Р вЂљРІР‚Сњ Р В РЎвЂР В Р вЂ¦Р РЋРІР‚С™Р В Р’ВµР РЋР вЂљР В РЎвЂ”Р РЋР вЂљР В Р’ВµР РЋРІР‚С™Р В Р’В°Р РЋРІР‚В Р В РЎвЂР В РЎвЂ */

/* Р В РІР‚С”Р В РЎвЂР В Р вЂ¦Р В РЎвЂР В РЎвЂ Р Р†Р вЂљРІР‚Сњ Р В РЎвЂ”Р В РЎвЂўР В Р’В»Р В РЎвЂўР РЋР С“Р РЋРІР‚в„– Р В РЎвЂ”Р РЋР вЂљР В РЎвЂўР В РЎвЂ“Р РЋР вЂљР В Р’ВµР РЋР С“Р РЋР С“Р В Р’В° */


@keyframes bio-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}


/* Р В РЎСљР В Р’ВµР В РўвЂР В Р’ВµР В Р’В»Р РЋР Р‰Р В Р вЂ¦Р РЋРІР‚в„–Р В РІвЂћвЂ“ Р В РЎвЂ”Р РЋР вЂљР В РЎвЂўР В РЎвЂ“Р В Р вЂ¦Р В РЎвЂўР В Р’В· */

/* ═══════════════════════════════════════
   Daily Hook (главный экран)
   ═══════════════════════════════════════ */
.daily-hook-card {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--tile-bg);
  border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
}
.daily-hook-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.daily-hook-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.daily-hook-date {
  font-size: 12px;
  color: var(--label);
}
.daily-hook-cycles {
  display: flex;
  gap: 8px;
  margin-bottom: 8px; overflow: hidden;
}
.hook-cycle {
  min-width: 0;
  padding: 8px 0;
}
.hook-cycle-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.hook-emoji {
  flex: 0 0 auto;
}
.hook-name {
  min-width: 0;
  flex: 1 1 auto;
}
.hook-val {
  flex: 0 0 auto;
  margin-left: auto;
  font-weight: 700;
}
.hook-bar-track {
  width: 100%;
  height: 8px;
  background: #3a3f4d;
  border-radius: 999px;
  overflow: hidden;
}
.hook-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s ease;
}
.hook-bar-fill.hook-up { opacity: 1; }
.hook-bar-fill.hook-down { opacity: 0.9; }
.hook-bar-fill.hook-neutral { opacity: 0.75; }
.daily-hook-advice {
  font-size: 12px;
  color: var(--label);
  line-height: 1.5;
  margin-top: 4px;
}

/* Р В РЎвЂєР В Р’В±Р РЋРІР‚ВР РЋР вЂљР РЋРІР‚С™Р В РЎвЂќР В Р’В° Р В РЎвЂўР В РЎвЂќР РЋРІР‚С™Р В Р’В°Р В РЎвЂ“Р РЋР вЂљР В Р’В°Р В РЎВР В РЎВР РЋРІР‚в„– */

/* SVG Р В РЎвЂўР В РЎвЂќР РЋРІР‚С™Р В Р’В°Р В РЎвЂ“Р РЋР вЂљР В Р’В°Р В РЎВР В РЎВР В Р’В° */

/* Р В РІР‚С”Р В Р’ВµР В РЎвЂ“Р В Р’ВµР В Р вЂ¦Р В РўвЂР В Р’В° Р В РЎвЂ”Р В РЎвЂўР В Р’В·Р В РЎвЂР РЋРІР‚В Р В РЎвЂР В РІвЂћвЂ“ */

/* Р В Р’ВР В Р вЂ¦Р РЋРІР‚С™Р В Р’ВµР РЋР вЂљР В РЎвЂ”Р РЋР вЂљР В Р’ВµР РЋРІР‚С™Р В Р’В°Р РЋРІР‚В Р В РЎвЂР В РЎвЂ (Р РЋР С“Р В Р вЂ Р В РЎвЂўР РЋР вЂљР В Р’В°Р РЋРІР‚РЋР В РЎвЂР В Р вЂ Р В Р’В°Р В Р’ВµР В РЎВР РЋРІР‚в„–Р В Р’Вµ) */

/* Р В Р Р‹Р В Р’ВµР В РЎвЂќР РЋРІР‚В Р В РЎвЂР В РЎвЂ Р В РўвЂР В Р’ВµР В Р вЂ¦Р В Р’ВµР В РЎвЂ“/Р В РЎвЂўР РЋРІР‚С™Р В Р вЂ¦Р В РЎвЂўР РЋРІвЂљВ¬Р В Р’ВµР В Р вЂ¦Р В РЎвЂР В РІвЂћвЂ“/Р В Р’В·Р В РўвЂР В РЎвЂўР РЋР вЂљР В РЎвЂўР В Р вЂ Р РЋР Р‰Р РЋР РЏ */

/* Р В РЎСџР РЋР вЂљР В Р’ВµР В РўвЂР В Р вЂ¦Р В Р’В°Р В Р’В·Р В Р вЂ¦Р В Р’В°Р РЋРІР‚РЋР В Р’ВµР В Р вЂ¦Р В РЎвЂР В Р’Вµ */

/* Р В РІР‚в„ўР В РЎвЂўР В Р’В·Р РЋР вЂљР В Р’В°Р РЋР С“Р РЋРІР‚С™Р В Р вЂ¦Р РЋРІР‚в„–Р В Р’Вµ Р В РЎвЂ”Р В Р’ВµР РЋР вЂљР В РЎвЂР В РЎвЂўР В РўвЂР РЋРІР‚в„– */

/* Р В РЎв„ўР В РЎвЂўР В РЎВР В РЎвЂ”Р В Р’В°Р В РЎвЂќР РЋРІР‚С™Р В Р вЂ¦Р В Р’В°Р РЋР РЏ Р В Р’В»Р В Р’ВµР В РЎвЂ“Р В Р’ВµР В Р вЂ¦Р В РўвЂР В Р’В° Р В РЎвЂ”Р В РЎвЂўР В РўвЂ Р В РЎвЂўР В РЎвЂќР РЋРІР‚С™Р В Р’В°Р В РЎвЂ“Р РЋР вЂљР В Р’В°Р В РЎВР В РЎВР В РЎвЂўР В РІвЂћвЂ“ */

/* Full Matrix SVG */

/* Р В РЎС™Р В РЎвЂўР В Р’В±Р В РЎвЂР В Р’В»Р РЋР Р‰Р В Р вЂ¦Р В Р’В°Р РЋР РЏ Р В Р’В°Р В РўвЂР В Р’В°Р В РЎвЂ”Р РЋРІР‚С™Р В Р’В°Р РЋРІР‚В Р В РЎвЂР РЋР РЏ */

/* ══════════════════════════════════════════════════════════════════════════
   MATRIX DESTINY PREMIUM — новые стили
   ══════════════════════════════════════════════════════════════════════════ */


/* Легенда 3×3 */

/* Таблица чакр */

/* Р ВР Р…РЎвЂљР ВµРЎР‚Р С—РЎР‚Р ВµРЎвЂљР В°РЎвЂ Р С‘Р С‘ mi-* */

/* Линии mls-* */
.mls-card{background:var(--border);border-radius:12px;overflow:hidden}

/* Возрастные периоды mp-* */

/* Р РЋР С•Р Р†Р СР ВµРЎРѓРЎвЂљР С‘Р СР С•РЎРѓРЎвЂљРЎРЉ Р СР В°РЎвЂљРЎР‚Р С‘РЎвЂ РЎвЂ№ */


/* ═══════════════════════════════════════════════════════════════════════════
   NATAL CHART — Натальная карта SVG + легенда
   ═══════════════════════════════════════════════════════════════════════════ */

.natal-card {
  background: var(--tile-bg);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}


/* Легенда планет */


/* Р вЂР В°Р В»Р В°Р Р…РЎРѓ РЎРЊР В»Р ВµР СР ВµР Р…РЎвЂљР С•Р Р† */


/* Таблица аспектов */


/* Deep analysis стили */


/* ═══════════ Daily Forecast Card ═══════════ */
.daily-forecast-card {
  margin-top: 16px; margin-bottom: 0;
  border-radius: 14px;
  background: var(--tile-bg);
  overflow: hidden;
}

/* Section Header */


/* Talents List (Personal Qualities) */
.talent-card {
  background: var(--tile-bg);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border);
}

/* Soul Comfort Card */
.soul-comfort-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--tile-bg);
  border-radius: var(--radius);
}

/* Clan Grid */

/* Programs List */

/* Year Forecast */
.forecast-card {
  background: var(--tile-bg);
  border-radius: 12px;
  padding: 14px;
}

/* Chakra Alcohol Info */

/* Soul Work */
.soul-work-card {
  background: var(--tile-bg);
  border-radius: var(--radius);
  padding: 20px;
}

/* Karma 40 */
.karma40-card {
  text-align: center;
  padding: 24px;
  background: var(--tile-bg);
  border-radius: var(--radius);
}

/* Past Lives */
.past-lives-card {
  background: var(--tile-bg);
  border-radius: var(--radius);
  padding: 20px;
}

/* Money & Relationships Matrix */
.money-matrix-card, .rel-matrix-card {
  background: var(--tile-bg);
  border-radius: var(--radius);
  padding: 20px;
}

/* Purpose Cards */
.purpose-cards {
  display: grid;
  gap: 12px;
}
.purpose-card {
  background: var(--tile-bg);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.purpose-card .p-icon {
  font-size: 28px;
  margin-bottom: 8px;
}
.purpose-card h4 {
  font-size: 14px;
  margin-bottom: 4px;
}
.purpose-card .p-age {
  font-size: 11px;
  color: var(--label);
  margin-bottom: 8px;
}
.purpose-card .p-num {
  width: 40px;
  height: 40px;
  background: var(--text-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--text-primary);
  margin: 0 auto 12px;
}
.purpose-card p {
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

/* Health Items */

/* Weight & Alcohol Cards */
.weight-card, .alcohol-card {
  background: var(--tile-bg);
  border-radius: var(--radius);
  padding: 20px;
}
.weight-card p, .alcohol-card p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Section Nav */


.union-tab.active {
  background: var(--text-primary);
  color: var(--bg-main);
  border-color: var(--text-primary);
}

/* Tab content */
.union-tab-content.hidden {
  display: none;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sections */
.union-section.empty {
  text-align: center;
  color: var(--label);
  font-size: 13px;
}


/* Channel tags */
.channel-tag.em {
  background: var(--border);
  color: var(--label);
}
.channel-tag.comp {
  background: var(--text-secondary);
  color: var(--text-secondary);
}


/* Numerology pair */
.numer-union .label, .numer-compat .label {
  font-size: 12px;
  color: var(--label);
  display: block;
}
.numer-union .value.number {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
}
.numer-compat .value.pct {
  font-size: 24px;
  font-weight: 600;
  color: var(--switch-active);
}
.numer-col .name {
  font-weight: 600;
  font-size: 13px;
}
.numer-col .lp {
  font-size: 12px;
}

/* Sujai pair */
.sujai-item .name {
  font-weight: 500;
  min-width: 70px;
}

/* Date / Time trigger buttons (onboarding) */
.dp-trigger,
.tp-trigger {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.dp-trigger.dp-has-value,
.tp-trigger.tp-has-value {
  border-color: var(--accent);
  color: var(--text);
}

/* ══════════════════════════════════════════════════════
   City Autocomplete Dropdown (CityPicker)
   ══════════════════════════════════════════════════════ */

/* Parent field must be positioned for dropdown placement */
.city-field,
.form-group {
  position: relative;
}

.cp-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--tile-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-height: 220px;
  overflow-y: auto;
  z-index: var(--z-dropdown);
  margin-top: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.cp-dropdown.cp-open {
  display: block;
}

.cp-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.cp-item:last-child {
  border-bottom: none;
}
.cp-item:hover,
.cp-item:active {
  background: rgba(255,255,255,0.04);
}

.cp-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.cp-detail {
  font-size: 12px;
  color: var(--text-secondary);
}

.cp-empty {
  padding: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ═══════════ 1. Username hint — green/available ═══════════ */
.hint.hint-ok {
  color: var(--success) !important;
  font-weight: 600;
  font-size: 12px;
}
.hint.hint-err {
  color: var(--danger) !important;
  font-weight: 600;
  font-size: 12px;
}

/* ═══════════ 2. Onboarding CTA buttons — bigger ═══════════ */
.btn.primary {
  background: var(--text-primary);
  color: var(--bg-main);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}
#screen-onboard .btn.primary {
  height: 52px;
  font-size: 16px;
  font-weight: 600;
  padding: 0 24px;
  border-radius: 12px;
}

/* ═══════════ 4. Biorhythms — overflow protection ═══════════ */
.daily-hook-card {
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.daily-hook-card * {
  max-width: 100%;
  box-sizing: border-box;
}

/* ═══════════ Callout cards ═══════════ */
.callout {
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.65;
}

/* ═══════════ Accent box ═══════════ */
.accent-box {
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.2);
  text-align: center;
}

/* ═══════════ desc-text / acc-tip ═══════════ */
.desc-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: 12px;
  opacity: 0.92;
}
.desc-text.faded { color: var(--label); }
.acc-tip {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--accent);
  background: rgba(138,120,255,.08);
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 8px;
  line-height: 1.5;
}
/* v116: avatar badge in gallery */
.gallery-slot-avatar { position: relative; }
.gallery-avatar-badge {
  position: absolute; bottom: 4px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6); color: #fff;
  font-size: 10px; padding: 1px 6px; border-radius: 8px;
  pointer-events: none;
}


/* ══════════════════════════════════════
   PWA Install Sheet
   ══════════════════════════════════════ */
.pwa-install-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: background 0.3s ease;
  pointer-events: none;
}
.pwa-install-overlay.pwa-visible {
  background: rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}
.pwa-install-sheet {
  background: var(--tile-bg, #1c1c1e);
  border: 1px solid var(--border, #333);
  border-radius: 20px 20px 0 0;
  padding: 12px 24px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
.pwa-visible .pwa-install-sheet {
  transform: translateY(0);
}
.pwa-install-handle {
  width: 36px;
  height: 5px;
  border-radius: 3px;
  background: var(--label, #666);
  margin: 0 auto 16px;
  opacity: 0.4;
}
.pwa-install-icon {
  font-size: 48px;
  margin-bottom: 8px;
}
.pwa-install-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin-bottom: 4px;
}
.pwa-install-subtitle {
  font-size: 14px;
  color: var(--label, #999);
  margin-bottom: 20px;
}
.pwa-benefits {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  text-align: left;
}
.pwa-benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-primary, #fff);
}
.pwa-benefit-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.pwa-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  text-align: left;
}
.pwa-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-primary, #fff);
  line-height: 1.4;
}
.pwa-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent, #6c5ce7);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.pwa-share-icon {
  display: inline-block;
  color: var(--accent, #007aff);
  font-size: 16px;
}
.pwa-install-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pwa-btn-primary {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--accent, #6c5ce7);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pwa-btn-primary:active { opacity: 0.85; }
.pwa-btn-secondary {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--label, #999);
  font-size: 15px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pwa-btn-secondary:active { opacity: 0.7; }


/* ── Settings theme toggle ── */
.settings-item--toggle {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  gap: 12px;
}
.settings-item--toggle .settings-label {
  flex: 1;
  font-size: var(--fs-base);
  color: var(--text-primary);
}
.settings-item--toggle .dating-switch {
  flex-shrink: 0;
}
