/* International Calls — public site styles. Plain CSS, no framework. */
:root {
  --navy: #0b2a4a;
  --navy-2: #103a66;
  --gold: #d9a521;
  --ink: #17222e;
  --muted: #5c6b7a;
  --line: #dbe3ec;
  --bg: #f2f5f9;
  --card: #ffffff;
  --ok: #157347;
  --bad: #b02a37;
  --warn-bg: #fff3cd;
  --warn-ink: #664d03;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
}

/* ---------- header ---------- */
.site-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
}
.header-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-logo {
  width: 72px; height: 72px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--gold);
  background: #fff;
}
.brand-text h1 { margin: 0; font-size: 1.55rem; letter-spacing: .2px; }
.tagline { margin: 2px 0 0; color: var(--gold); font-weight: 600; }

.lang-toggle { display: flex; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; overflow: hidden; flex: none; }
.lang-toggle button {
  background: transparent; color: #fff; border: 0; padding: 7px 14px;
  font-weight: 700; cursor: pointer; font-size: .9rem;
}
.lang-toggle button.active { background: var(--gold); color: var(--navy); }

.status-banner {
  background: var(--warn-bg); color: var(--warn-ink);
  text-align: center; padding: 10px 16px; font-weight: 600;
  border-bottom: 1px solid #e7d488;
}

/* ---------- layout & cards ---------- */
.container { max-width: 880px; margin: 0 auto; padding: 20px; display: grid; gap: 18px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: 0 1px 3px rgba(11,42,74,.06);
}
.card h2 { margin: 0 0 8px; font-size: 1.2rem; color: var(--navy); }
.card h3 { margin: 14px 0 8px; font-size: 1rem; color: var(--navy); }
.muted { color: var(--muted); }
.small { font-size: .86rem; }

label { display: block; margin: 10px 0; font-weight: 600; font-size: .95rem; }
label span { display: block; margin-bottom: 5px; }
input, select {
  width: 100%; padding: 11px 12px; font-size: 1rem;
  border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--navy-2); outline-offset: 1px; }

.row { display: flex; align-items: center; }
.gap { gap: 10px; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
  border: 1px solid var(--navy-2); background: #fff; color: var(--navy);
  padding: 10px 18px; border-radius: 9px; font-size: 1rem; font-weight: 700;
  cursor: pointer;
}
.btn:hover { background: #eef3f9; }
.btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.primary:hover { background: var(--navy-2); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.big { font-size: 1.1rem; padding: 13px 24px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.linklike {
  background: none; border: 0; color: var(--navy-2); font-weight: 700;
  cursor: pointer; padding: 0; font-size: inherit; text-decoration: underline;
}

/* ---------- wallet ---------- */
.balance { font-size: 2rem; font-weight: 800; color: var(--navy); margin: 2px 0; }
.topup-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn.topup { min-width: 64px; }
.custom-amount { display: flex; gap: 8px; align-items: center; }
.custom-amount input { width: 96px; }

/* ---------- dialer ---------- */
.call-state { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin: 12px 0 2px; }
.timer-line { margin: 2px 0; color: var(--muted); }
.timer-line strong { color: var(--ink); }
.warn {
  background: var(--warn-bg); color: var(--warn-ink);
  padding: 9px 12px; border-radius: 9px; font-weight: 600;
}
.msg { min-height: 1.2em; margin: 8px 0 0; font-weight: 600; }
.msg.error { color: var(--bad); }
.msg.ok { color: var(--ok); }

/* ---------- history ---------- */
.history { list-style: none; margin: 0; padding: 0; }
.history li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .95rem;
}
.history li:last-child { border-bottom: 0; }
.history .when { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.history .plus { color: var(--ok); font-weight: 700; }
.history .minus { color: var(--ink); font-weight: 700; }

/* ---------- rate grid ---------- */
.rate-grid {
  display: grid; gap: 10px; margin-top: 12px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.rate-item {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  background: #fbfcfe;
}
.rate-item .cname { font-weight: 600; }
.rate-item .crate { color: var(--navy); font-weight: 800; white-space: nowrap; }

/* ---------- footer ---------- */
.site-footer { text-align: center; padding: 26px 16px 34px; color: var(--muted); }
.site-footer p { margin: 3px 0; }

@media (max-width: 560px) {
  .brand-logo { width: 54px; height: 54px; }
  .brand-text h1 { font-size: 1.25rem; }
  .balance { font-size: 1.6rem; }
}
