/* Phone screen styles — scoped to .phone-screen-content */

.phone-screen-body {
  position: absolute;
  inset: 54px 0 0 0;
  overflow: hidden;
  padding: 4px 14px 14px;
}

.phone-screen-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #fff;
  font-size: 12px;
  padding-bottom: 64px;
}

.ps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 4px 0;
}
.ps-greet { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.ps-name  { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 2px; }
.ps-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 0.5px solid rgba(255,255,255,0.15);
  display: grid; place-items: center;
  color: #fff;
}
.ps-back {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center;
  color: #fff;
}

.ps-disclaimer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(255,255,255,0.08);
  padding: 6px 10px;
  border-radius: 999px;
  align-self: flex-start;
}

.ps-card {
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.05);
  border-radius: 22px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ps-card-row { display: flex; align-items: center; gap: 10px; }
.ps-success-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center;
  color: #fff;
}
.ps-card-title { font-size: 13px; font-weight: 600; }
.ps-card-sub { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 1px; }

.ps-divider { height: 0.5px; background: rgba(255,255,255,0.1); }

.ps-btn-row { display: flex; gap: 6px; }
.ps-small-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  background: rgba(255,255,255,0.12);
  border: 0.5px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 7px 6px;
  cursor: pointer;
}

.ps-label {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.3);
  padding: 0 4px;
  margin-top: 2px;
}

.ps-card-stats {
  flex-direction: row;
  align-items: center;
  padding: 14px 6px;
}
.ps-stat-cell { flex: 1; text-align: center; }
.ps-stat-num {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 18px;
  font-weight: 700;
}
.ps-stat-lab {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.ps-stat-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent, #ff2d55);
}
.ps-stat-sep {
  width: 0.5px; height: 32px;
  background: rgba(255,255,255,0.12);
}

.ps-panel {
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.05);
  border-radius: 22px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ps-panel-top { display: flex; align-items: center; gap: 8px; }
.ps-panel-ico {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center;
  color: #fff;
}
.ps-panel-title { flex: 1; font-size: 12px; font-weight: 600; }
.ps-panel-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.ps-pill {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.08);
  padding: 3px 7px;
  border-radius: 999px;
}
.ps-pill.muted { color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.03); }

/* Tab bar */
.ps-tabbar {
  position: absolute;
  bottom: 10px;
  left: 10px; right: 10px;
  display: flex;
  justify-content: space-around;
  padding: 10px 6px;
  background: rgba(20,20,20,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid rgba(255,255,255,0.08);
  border-radius: 26px;
}
.ps-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 9px;
  color: rgba(255,255,255,0.4);
}
.ps-tab.active { color: var(--accent, #ff2d55); }

/* Chat */
.ps-chat-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 14px 10px 6px;
}
.ps-chat-brain {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center;
  color: #fff;
  margin-bottom: 6px;
}
.ps-chat-title { font-size: 16px; font-weight: 700; }
.ps-chat-sub { font-size: 10px; color: rgba(255,255,255,0.4); line-height: 1.5; }

.ps-prompt {
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.05);
  border-radius: 22px;
  padding: 10px 14px;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}

.ps-bubble-row { display: flex; align-items: flex-end; gap: 6px; }
.ps-bubble-row.user { justify-content: flex-end; padding-left: 40px; }
.ps-bubble-row.ai   { padding-right: 40px; }
.ps-avatar-ai {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: grid; place-items: center;
}
.ps-bubble {
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 11px;
  line-height: 1.45;
  max-width: 80%;
}
.ps-bubble.user {
  background: #fff;
  color: #000;
  font-weight: 500;
}
.ps-bubble.ai {
  background: rgba(255,255,255,0.1);
  border: 0.5px solid rgba(255,255,255,0.14);
  color: #fff;
}
.ps-bubble b { font-weight: 700; }

.ps-input-bar {
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  display: flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
  padding: 8px 8px;
  border-radius: 26px;
  border: 0.5px solid rgba(255,255,255,0.08);
}
.ps-input {
  flex: 1;
  padding: 8px 12px;
  background: rgba(255,255,255,0.08);
  border: 0.5px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}
.ps-send {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: grid; place-items: center;
}

/* Upload / analyzing */
.ps-analyzing {
  display: flex; align-items: center; gap: 10px;
}
.ps-spinner {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ps-progress-num {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}
.ps-liquid-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.ps-liquid-fill {
  height: 100%;
  background: #fff;
  border-radius: inherit;
  transition: width 0.3s ease;
  position: relative;
}
.ps-liquid-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: shimmer 1.6s linear infinite;
}

.ps-pulse-ring {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center;
  color: #fff;
  position: relative;
  margin: 4px auto 0;
}
.ps-pulse-ring::before,
.ps-pulse-ring::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  animation: pulse 2.4s ease-out infinite;
}
.ps-pulse-ring::after { animation-delay: 1.2s; }

.ps-extract {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255,255,255,0.05);
  border: 0.5px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  font-size: 11px;
}
.ps-extract-lab { color: rgba(255,255,255,0.6); }
.ps-extract-val {
  font-family: ui-monospace, Menlo, monospace;
  color: #fff;
  font-weight: 600;
}
.ps-extract.warn .ps-extract-val { color: var(--accent, #ff2d55); }
.ps-extract.loading .ps-extract-val {
  color: rgba(255,255,255,0.3);
}
.ps-extract.loading {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  background-size: 200% 100%;
  animation: shimmerBg 1.6s linear infinite;
}
@keyframes shimmerBg {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
