/* ==========================================================================
   AirGo Tel — /mobile-recharge page specifics
   Shared service-page patterns live in service.css.
   ========================================================================== */

.ag-rhero {
  max-width: var(--ag-content-max);
  margin: 0 auto;
  padding: 22px var(--ag-gutter) 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.ag-rhero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ag-coral-50);
  border: 1px solid #F5C9BB;
  color: #C13F1F;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 13px;
  border-radius: var(--ag-radius-pill);
  margin-bottom: 20px;
}
.ag-rhero__badge svg { width: 15px; height: 15px; color: var(--ag-navy); }

.ag-rhero h1 {
  font-size: 46px;
  font-weight: 800;
  margin-bottom: 16px;
  text-wrap: balance;
}

.ag-rhero__lead {
  font-size: 18px;
  color: var(--ag-muted);
  max-width: 480px;
  margin-bottom: 22px;
  line-height: 1.55;
}

.ag-rhero__points { display: flex; flex-direction: column; gap: 11px; }

.ag-rhero__point {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: var(--ag-text-base);
  color: var(--ag-slate);
  font-weight: 600;
}
.ag-rhero__point span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ag-success-surface);
  color: var(--ag-success);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ag-rhero__point svg { width: 13px; height: 13px; }

/* ---------- Number entry card ---------- */

.ag-entry {
  background: var(--ag-card);
  border: var(--ag-border);
  border-radius: 20px;
  box-shadow: 0 24px 56px rgba(11, 32, 56, .1);
  padding: 26px;
}
.ag-entry h2 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.ag-entry__sub { font-size: 13.5px; color: var(--ag-muted); margin-bottom: 18px; }

.ag-entry__row { display: flex; gap: 10px; margin-bottom: 6px; }

.ag-entry__code {
  background: var(--ag-page);
  border: var(--ag-border-emphasis);
  border-radius: 12px;
  padding: 14px 12px;
  font-weight: 800;
  color: var(--ag-navy);
  font-size: var(--ag-text-base);
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
  max-width: 46%;
}
.ag-entry__code:focus { border-color: var(--ag-azure); }

.ag-entry__number {
  flex: 1;
  min-width: 0;
  background: var(--ag-page);
  border: var(--ag-border-emphasis);
  border-radius: 12px;
  padding: 14px;
  font-weight: 700;
  color: var(--ag-navy);
  font-size: 16px;
  outline: none;
}
.ag-entry__number:focus { border-color: var(--ag-azure); }
.ag-entry__number[aria-invalid="true"] { border-color: var(--ag-error-input); }

.ag-entry__format {
  font-size: 12.5px;
  color: var(--ag-faint);
  font-weight: 600;
  margin-bottom: 14px;
}

/* Detection states */
.ag-detect { margin-bottom: 16px; }
.ag-detect > [hidden] { display: none; }

.ag-detect__idle {
  background: var(--ag-page);
  border: 1px dashed var(--ag-line-strong);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  color: var(--ag-faint);
  font-size: 13.5px;
  font-weight: 600;
}

.ag-detect__error {
  background: var(--ag-error-surface);
  border: 1px solid var(--ag-error-border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: agIn .2s ease;
}
.ag-detect__error-mark { color: var(--ag-error); font-weight: 800; flex-shrink: 0; }
.ag-detect__error-text { font-size: 13.5px; color: var(--ag-error-text); font-weight: 600; }

.ag-detect__pending {
  background: var(--ag-azure-50);
  border: 1px solid var(--ag-azure-200);
  border-radius: 12px;
  padding: 14px 16px;
  animation: agIn .2s ease;
}
.ag-detect__pending-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ag-navy);
  margin-bottom: 4px;
}
.ag-detect__pending-body { font-size: 12.5px; color: var(--ag-muted); font-weight: 600; }
.ag-detect__pending-body a { font-weight: 800; }

.ag-entry__cta {
  width: 100%;
  font-size: 16px;
  padding: 16px;
  border-radius: 13px;
}

.ag-entry__secure {
  font-size: 12px;
  color: var(--ag-faint);
  text-align: center;
  margin-top: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.ag-entry__secure svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ---------- Country cards ---------- */

.ag-countries {
  max-width: var(--ag-content-max);
  margin: 0 auto;
  padding: 48px var(--ag-gutter) 20px;
}
.ag-countries > h2 { font-size: 28px; font-weight: 800; margin-bottom: 22px; }

.ag-country {
  background: var(--ag-card);
  border: var(--ag-border);
  border-radius: var(--ag-radius-lg);
  padding: 18px;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: border-color var(--ag-motion-base), box-shadow var(--ag-motion-base);
}
.ag-country:hover { border-color: var(--ag-coral); box-shadow: 0 12px 26px rgba(11, 32, 56, .08); }

.ag-country__top { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.ag-country__top img { width: 26px; height: 17px; border-radius: 2px; flex-shrink: 0; }
.ag-country__name { font-weight: 800; color: var(--ag-navy); font-size: var(--ag-text-base); }
.ag-country__meta { font-size: 12.5px; color: var(--ag-muted); font-weight: 600; }

/* ---------- Operators ---------- */

.ag-operators {
  max-width: var(--ag-content-max);
  margin: 0 auto;
  padding: 20px var(--ag-gutter);
}
.ag-operators__panel {
  background: var(--ag-card);
  border: var(--ag-border);
  border-radius: var(--ag-radius-xl);
  padding: 28px;
}
.ag-operators__panel h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.ag-operators__sub { color: var(--ag-muted); font-size: 14px; margin-bottom: 20px; }

/* ---------- Airtime vs data ---------- */

.ag-kinds {
  max-width: var(--ag-content-max);
  margin: 0 auto;
  padding: 28px var(--ag-gutter);
}
.ag-kinds__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.ag-kind {
  background: var(--ag-card);
  border: var(--ag-border);
  border-radius: var(--ag-radius-xl);
  padding: 26px;
}
.ag-kind__icon { color: var(--ag-navy); }
.ag-kind__icon svg { width: 26px; height: 26px; }
.ag-kind h2 { font-size: 20px; font-weight: 800; margin: 12px 0 8px; }
.ag-kind p { font-size: 14.5px; color: var(--ag-muted); line-height: 1.6; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .ag-rhero { grid-template-columns: 1fr; }
  .ag-kinds__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .ag-entry__code,
  .ag-entry__number { min-height: 44px; }
}

@media (max-width: 620px) {
  .ag-rhero h1 { font-size: 32px; }
  .ag-rhero__lead { font-size: 16.5px; }
  .ag-entry, .ag-operators__panel, .ag-kind { padding: 22px 18px; }
}

@media (max-width: 520px) {
  .ag-entry__row { flex-direction: column; }
  .ag-entry__code { max-width: none; width: 100%; }
}
