* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  font-family: Tahoma, "Segoe UI", sans-serif; background: #0f172a; color: #e2e8f0;
}
.card { width: 100%; max-width: 400px; background: #1e293b; padding: 28px; border-radius: 18px; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
h1 { text-align: center; margin: 0 0 20px; font-size: 1.5rem; }
input {
  width: 100%; padding: 12px 14px; margin-bottom: 12px; border-radius: 10px;
  border: 1px solid #334155; background: #0f172a; color: #fff; font-size: 1rem;
}
input:focus { outline: 2px solid #3b82f6; }
button {
  padding: 12px 18px; border: 0; border-radius: 10px; cursor: pointer; font-size: 1rem;
  background: #3b82f6; color: #fff; font-family: inherit;
}
button:hover { filter: brightness(1.1); }
form button[type=submit] { width: 100%; }
.green { background: #16a34a; } .red { background: #dc2626; }
.link { background: none; color: #94a3b8; margin-top: 18px; width: 100%; text-decoration: underline; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tabs button { flex: 1; background: #334155; }
.tabs button.active { background: #3b82f6; }
.hidden { display: none !important; }
.error { color: #f87171; min-height: 1.2em; margin: 10px 0 0; text-align: center; font-size: .9rem; }
.muted { color: #94a3b8; text-align: center; margin: 4px 0 20px; font-size: .9rem; }
.my-number { text-align: center; background: #0f172a; border-radius: 12px; padding: 16px; }
.my-number span { display: block; color: #94a3b8; font-size: .85rem; }
.my-number strong { font-size: 2rem; letter-spacing: 4px; direction: ltr; display: inline-block; }
#dial-box { display: flex; gap: 8px; }
#dial-box input { margin: 0; direction: ltr; text-align: center; letter-spacing: 2px; }
#call-box { text-align: center; }
.status { color: #fbbf24; margin-bottom: 6px; }
.peer { font-size: 1.6rem; direction: ltr; letter-spacing: 3px; }
.timer { font-size: 1.2rem; margin: 10px 0 18px; color: #94a3b8; direction: ltr; }
.row { display: flex; gap: 10px; justify-content: center; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; }
.modal { background: #1e293b; padding: 30px; border-radius: 18px; text-align: center; min-width: 280px; animation: pulse 1.2s infinite; }
#incoming-from { font-size: 1.6rem; direction: ltr; letter-spacing: 3px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 12px rgba(34,197,94,.2); } }
