:root {
  --bg: #0b1020; --phone: #141a2e; --line: #26304a; --text: #eef2ff;
  --muted: #93a0c0; --primary: #2f81f7; --green: #2ea043; --red: #f85149; --amber: #d29922;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; background: radial-gradient(900px 600px at 50% -10%, #1a2238, var(--bg));
  color: var(--text); font: 16px/1.5 system-ui, "Segoe UI", Roboto, sans-serif;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.phone {
  width: 380px; max-width: 100%; min-height: 640px; background: var(--phone);
  border: 1px solid var(--line); border-radius: 28px; padding: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5); display: flex; flex-direction: column;
}
.statusbar { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 4px 6px 14px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.dot.online { background: var(--green); } .dot.offline { background: var(--red); }
.dot.ringing { background: var(--amber); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }

.screen { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 10px; }
.screen.hidden { display: none; }
h1 { font-size: 22px; margin: 0; } h2 { font-size: 19px; margin: 0; }
.hint { color: var(--muted); font-size: 14px; margin: 0; max-width: 300px; }
.big-emoji { font-size: 72px; } .pulse { animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }

input { width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: 13px 14px; font-size: 16px; text-align: center; }
input:focus { outline: none; border-color: var(--primary); }

button { border: none; border-radius: 12px; padding: 13px 18px; font-size: 16px; cursor: pointer; color: #fff; background: #2b3450; }
button:hover { filter: brightness(1.1); }
button:disabled { opacity: .5; cursor: not-allowed; }
.primary { background: var(--primary); } .big { width: 100%; padding: 15px; font-size: 17px; }
.wide { width: 100%; }
.accept { background: var(--green); } .reject { background: var(--red); }
.call-actions { display: flex; gap: 16px; width: 100%; }
.call-actions button { flex: 1; padding: 16px; }

.incall-head { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 7px; align-self: flex-start; padding: 4px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); animation: blink 1.4s infinite; }
.captions { flex: 1; width: 100%; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 6px 0; align-self: stretch; }
.cap { padding: 9px 12px; border-radius: 12px; max-width: 88%; font-size: 14px; text-align: left; }
.cap-assistant { background: #232c46; align-self: flex-start; }
.cap-farmer { background: var(--primary); align-self: flex-end; }

.talk-zone { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.talk { width: 100%; padding: 20px; font-size: 18px; background: #2b3450; border: 1px solid var(--line); }
.talk.recording { background: var(--red); animation: rec 1s infinite; }
@keyframes rec { 50% { box-shadow: 0 0 0 8px rgba(248,81,73,.25); } }
