/* ============================================================================
   VEYA — Circles, NavMe, You, Fresko surface styles
   ============================================================================ */

/* ---- CIRCLES ---------------------------------------------------------- */
.circles-grid { display: flex; flex-direction: column; gap: 14px; padding: 4px 20px 20px; }
.circle-card {
  padding: 20px; border-radius: var(--r-lg);
  background: var(--void-2); border: 1px solid var(--line);
  cursor: pointer; transition: all 0.25s; position: relative; overflow: hidden;
}
.circle-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0.08;
  background: var(--grad); pointer-events: none;
}
.circle-card:hover { transform: translateY(-1px); border-color: var(--line-2); }
.circle-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.circle-name { font-family: var(--display); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; margin: 0; }
.circle-sub { font-size: 13px; color: var(--ink-d); margin-top: 2px; }
.circle-seal {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600; color: white; font-size: 18px;
  box-shadow: 0 0 24px rgba(139,92,246,0.3);
}
.circle-stack { display: flex; margin-bottom: 14px; }
.circle-stack .avatar { width: 32px; height: 32px; margin-left: -8px; border: 2px solid var(--void-2); }
.circle-stack .avatar:first-child { margin-left: 0; }
.circle-stack .avatar-count {
  width: 32px; height: 32px; border-radius: 50%; margin-left: -8px;
  background: var(--void-3); border: 2px solid var(--void-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--ink); font-weight: 600;
}
.circle-actions { display: flex; gap: 8px; }
.circle-btn { flex: 1; padding: 10px; border-radius: 10px; background: rgba(255,255,255,0.06); color: var(--ink); font-size: 13px; font-weight: 600; transition: all 0.2s; }
.circle-btn:hover { background: rgba(255,255,255,0.08); color: var(--ink); }
.circle-btn.primary { background: var(--grad); color: white; }

.create-circle {
  margin: 4px 20px 20px; padding: 16px;
  border: 1px dashed var(--line-2); border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--ink-d); cursor: pointer; transition: all 0.2s;
}
.create-circle:hover { border-color: var(--cyan); color: var(--cyan); }
.create-circle svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }

/* ---- NAVME ------------------------------------------------------------ */
.nav-wrap { flex: 1; position: relative; display: flex; flex-direction: column; }
.nav-alert {
  margin: 0 20px 12px; padding: 10px 14px; display: flex; gap: 10px; align-items: center;
  background: rgba(245,180,84,0.12); border: 1px solid rgba(245,180,84,0.3);
  border-radius: 12px; flex-shrink: 0;
  animation: alertBreathe 3s ease-in-out infinite;
}
@keyframes alertBreathe { 0%,100% { box-shadow: 0 0 0 0 rgba(245,180,84,0); } 50% { box-shadow: 0 0 0 4px rgba(245,180,84,0.1); } }
.nav-alert-icon { width: 24px; height: 24px; border-radius: 50%; background: rgba(245,180,84,0.25); display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.nav-alert-text { flex: 1; font-size: 13px; line-height: 1.35; color: var(--ink); }
.nav-alert-text strong { color: var(--amber); font-weight: 600; }

.map-wrap {
  flex: 1; margin: 0 20px 12px; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(135deg, #F5EFE0 0%, #E8DCC4 100%); position: relative;
  border: 1px solid var(--line); min-height: 280px;
}
.map-wrap.night { background: linear-gradient(135deg, #0E1230 0%, #1A0B30 100%); }
.map-fallback { position: absolute; inset: 0; }
.map-fallback svg { width: 100%; height: 100%; }
.map-pin {
  position: absolute; transform: translate(-50%, -50%); cursor: pointer;
  z-index: 10;
}
.map-pin .avatar { width: 36px; height: 36px; border: 2px solid white; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.map-pin.me .avatar { width: 42px; height: 42px; }
.map-pin.me::before {
  content: ''; position: absolute; inset: -8px; border-radius: 50%;
  background: rgba(25,210,210,0.25); animation: meHalo 2.5s ease-in-out infinite;
}
@keyframes meHalo { 0%,100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.4); opacity: 0; } }

.map-controls { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 8px; z-index: 12; }
.map-ctrl { width: 38px; height: 38px; border-radius: 10px; background: rgba(17,22,42,0.88); border: 1px solid var(--line-2); color: var(--ink); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.map-ctrl:hover { background: rgba(17,22,42,1); border-color: var(--cyan); }
.map-ctrl svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; }

.nav-chips { display: flex; gap: 8px; padding: 0 20px 8px; overflow-x: auto; flex-shrink: 0; }
.nav-chips::-webkit-scrollbar { display: none; }
.nav-chip { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; background: var(--void-2); border: 1px solid var(--line); border-radius: 999px; flex-shrink: 0; cursor: pointer; transition: all 0.2s; }
.nav-chip:hover { border-color: var(--line-2); }
.nav-chip .avatar { width: 24px; height: 24px; }
.nav-chip-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.nav-chip-state { font-size: 11px; color: var(--ink-d); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }
.nav-actions { display: flex; gap: 10px; padding: 0 20px 16px; flex-shrink: 0; }
.nav-action { flex: 1; padding: 14px; border-radius: 12px; font-size: 14px; font-weight: 700; transition: all 0.2s; }
.nav-action.danger { background: rgba(244,90,110,0.12); color: var(--red); border: 1px solid rgba(244,90,110,0.25); }
.nav-action.danger:hover { background: rgba(244,90,110,0.2); }
.nav-action.safe { background: rgba(61,225,181,0.12); color: var(--aqua); border: 1px solid rgba(61,225,181,0.25); }
.nav-action.safe:hover { background: rgba(61,225,181,0.2); }

.nav-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 25;
  background: var(--void-1); border-top: 1px solid var(--line-2);
  border-radius: 20px 20px 0 0;
  transform: translateY(100%); transition: transform 0.35s ease;
  padding: 8px 20px 28px;
}
.nav-sheet.open { transform: translateY(0); }
.nav-sheet-grip { width: 40px; height: 4px; background: var(--line-2); border-radius: 2px; margin: 0 auto 16px; }
.nav-sheet-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.nav-sheet-head .avatar { width: 56px; height: 56px; }
.nav-sheet-name { font-family: var(--display); font-size: 22px; font-weight: 500; }
.nav-sheet-status { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; display: flex; align-items: center; gap: 6px; margin-top: 2px; font-weight: 600; }
.nav-sheet-status.travel { color: var(--cyan); }
.nav-sheet-status.safe { color: var(--aqua); }
.nav-sheet-status.work { color: var(--amber); }
.nav-sheet-status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }
.nav-sheet-when { font-size: 13px; color: var(--ink-d); margin-top: 4px; }
.nav-sheet-actions { display: flex; gap: 10px; }
.nav-sheet-btn { flex: 1; padding: 14px; border-radius: 12px; background: var(--void-2); border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: all 0.2s; }
.nav-sheet-btn:hover { background: var(--void-3); border-color: var(--cyan); }
.nav-sheet-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; }

/* ---- YOU -------------------------------------------------------------- */
.you-body { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 16px; }
.you-hero { display: flex; flex-direction: column; align-items: center; padding: 16px 0 24px; }
.you-avatar-wrap { position: relative; }
.you-avatar { width: 104px; height: 104px; }
.you-avatar::after { inset: -5px; border-width: 2.5px; }
.you-cam { position: absolute; right: 0; bottom: 4px; width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: white; display: flex; align-items: center; justify-content: center; border: 3px solid var(--void); cursor: pointer; transition: transform 0.2s; }
.you-cam:hover { transform: scale(1.08); }
.you-cam svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; }
.you-name { font-family: var(--display); font-size: 28px; font-weight: 500; margin: 16px 0 6px; }
.you-state { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px; background: rgba(61,225,181,0.15); color: var(--aqua); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.you-state-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }

.trial-card {
  padding: 16px; border-radius: var(--r);
  background: rgba(61,225,181,0.06); border: 1px solid rgba(61,225,181,0.18);
  position: relative; overflow: hidden; flex-shrink: 0;
}
.trial-card::before { content: ''; position: absolute; top: -30px; right: -30px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(61,225,181,0.15), transparent 70%); pointer-events: none; }
.trial-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.trial-label { font-size: 13px; color: var(--ink); letter-spacing: 0.05em; font-weight: 600; }
.trial-pill { font-size: 11px; padding: 4px 10px; border-radius: 999px; background: rgba(61,225,181,0.22); color: var(--aqua); font-weight: 700; letter-spacing: 0.08em; }
.trial-bar-wrap { height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; margin-bottom: 12px; }
.trial-bar { height: 100%; width: 7%; background: var(--grad); border-radius: 3px; transition: width 0.6s; }
.trial-meta { font-size: 13px; line-height: 1.5; color: var(--ink-d); margin: 0; }

.sub-card { padding: 16px; border-radius: var(--r); background: var(--void-2); border: 1px solid var(--line); flex-shrink: 0; }
.sub-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.sub-tier { font-family: var(--display); font-size: 18px; font-weight: 500; }
.sub-current { font-size: 10px; padding: 4px 10px; border-radius: 999px; background: var(--grad); color: white; font-weight: 700; letter-spacing: 0.1em; }
.sub-price { font-size: 14px; color: var(--ink-d); margin: 0 0 14px; }
.sub-price strong { color: var(--ink); font-weight: 600; }
.sub-features { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.sub-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); }
.sub-tick { width: 18px; height: 18px; border-radius: 50%; background: rgba(61,225,181,0.18); color: var(--aqua); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sub-tick svg { width: 11px; height: 11px; stroke: currentColor; stroke-width: 2.5; fill: none; }
.sub-portal { width: 100%; padding: 13px; border-radius: 10px; background: rgba(255,255,255,0.06); color: var(--ink); font-size: 14px; font-weight: 600; transition: background 0.2s; }
.sub-portal:hover { background: rgba(255,255,255,0.08); }

.section-label { font-size: 11px; color: var(--ink-d); letter-spacing: 0.15em; text-transform: uppercase; padding: 0 6px; margin: 8px 0 -4px; font-weight: 700; }
.settings-list { background: var(--void-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; flex-shrink: 0; }
.settings-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; transition: background 0.15s; border-bottom: 1px solid rgba(255,255,255,0.04); }
.settings-row:last-child { border-bottom: 0; }
.settings-row:hover { background: rgba(255,255,255,0.03); }
.settings-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.settings-icon.bell  { background: rgba(25,210,210,0.12); color: var(--cyan); }
.settings-icon.lock  { background: rgba(139,92,246,0.12); color: var(--violet); }
.settings-icon.devic { background: rgba(61,225,181,0.12); color: var(--aqua); }
.settings-icon.theme { background: rgba(245,180,84,0.12); color: var(--amber); }
.settings-icon.help  { background: rgba(25,210,210,0.12); color: var(--cyan); }
.settings-icon.out   { background: rgba(244,90,110,0.12); color: var(--red); }
.settings-main { flex: 1; min-width: 0; }
.settings-label { font-size: 15px; color: var(--ink); font-weight: 600; }
.settings-label.danger { color: var(--red); }
.settings-sub { font-size: 13px; color: var(--ink-d); margin-top: 2px; }
.settings-chev { color: var(--ink-q); }
.settings-chev svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; }

/* ---- FRESKO ----------------------------------------------------------- */
.fresko-body { padding: 0 20px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; min-height: 100%; }
.orb-stage { position: relative; width: 160px; height: 160px; margin: 8px 0 8px; transition: transform 0.6s ease; flex-shrink: 0; }
.orb-stage.shrunk { transform: scale(0.7); margin-top: -4px; margin-bottom: -4px; }
.orb-halo { position: absolute; inset: 0; border-radius: 50%; border: 1px solid; pointer-events: none; }
.orb-halo.h1 { border-color: rgba(25,210,210,0.4); animation: orbHalo 3.8s ease-out infinite; }
.orb-halo.h2 { border-color: rgba(139,92,246,0.35); animation: orbHalo 3.8s ease-out infinite 1.2s; }
.orb-halo.h3 { border-color: rgba(61,225,181,0.3); animation: orbHalo 3.8s ease-out infinite 2.4s; }
@keyframes orbHalo { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.45); opacity: 0; } }
.orb-glow { position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(circle, rgba(25,210,210,0.2), rgba(139,92,246,0.1), transparent 70%); pointer-events: none; animation: orbBreathe 4s ease-in-out infinite; }
@keyframes orbBreathe { 0%,100% { opacity: 0.7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
.orb-core {
  position: absolute; inset: 20px; border-radius: 50%;
  background: conic-gradient(from 90deg, #19D2D2, #8B5CF6, #3DE1B5, #19D2D2);
  box-shadow: inset 0 -20px 40px rgba(0,0,0,0.4), inset 20px 20px 30px rgba(255,255,255,0.2);
  animation: orbSpin 12s linear infinite;
}
.orb-core::before {
  content: ''; position: absolute; top: 18%; left: 22%; width: 30%; height: 25%; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.7), transparent 70%);
}
@keyframes orbSpin { to { transform: rotate(360deg); } }

.fresko-greeting { font-family: var(--display); font-size: 28px; line-height: 1.2; font-weight: 500; margin: 12px 0 6px; letter-spacing: -0.01em; }
.fresko-greeting em { font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fresko-membrane { font-size: 13px; color: var(--ink-d); margin: 0 0 20px; }

.fresko-chips { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-bottom: 16px; }
.fresko-chip { padding: 12px 16px; background: var(--void-2); border: 1px solid var(--line); border-radius: 14px; text-align: left; display: flex; gap: 12px; align-items: center; cursor: pointer; transition: all 0.2s; }
.fresko-chip:hover { border-color: var(--cyan); background: var(--void-3); }
.fresko-chip-icon { color: var(--cyan); font-size: 16px; }
.fresko-chip-text { flex: 1; font-size: 15px; color: var(--ink); font-weight: 500; }

.fresko-answer { width: 100%; padding: 16px; background: var(--void-2); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 16px; text-align: left; animation: fadeUp 0.5s ease-out; }
.fresko-answer-label { font-size: 11px; color: var(--aqua); letter-spacing: 0.2em; display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-weight: 700; }
.fresko-answer-label::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }
.fresko-answer p { font-size: 15px; line-height: 1.55; margin: 0 0 8px; color: var(--ink); }
.fresko-answer p:last-of-type { margin-bottom: 12px; }
.fresko-sources { display: flex; gap: 6px; flex-wrap: wrap; }
.fresko-source { font-size: 11px; padding: 4px 10px; border-radius: 6px; background: rgba(25,210,210,0.15); color: var(--cyan); font-weight: 600; }

.fresko-composer { width: 100%; display: flex; gap: 8px; align-items: center; padding-top: 8px; flex-shrink: 0; }
.fresko-composer input { flex: 1; padding: 13px 18px; background: var(--void-2); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-family: inherit; font-size: 16px; outline: 0; }
.fresko-composer input:focus { border-color: rgba(25,210,210,0.4); }
.fresko-composer-send { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: white; display: flex; align-items: center; justify-content: center; opacity: 0.5; transition: all 0.2s; }
.fresko-composer-send.active { opacity: 1; }
.fresko-composer-send svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.2; fill: none; }

.fresko-foot { font-size: 12px; color: var(--ink-d); margin-top: 12px; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
