/* SIM Roaming — customer styles (dashboard view + standalone /roaming.html) */
.roam-head { margin: 4px 0 16px; }
.roam-title { font-size: 1.35rem; font-weight: 800; color: var(--text, #111827); }
.roam-sub { color: var(--text2, #4b5563); margin-top: 4px; line-height: 1.6; }
.roam-panel { margin-bottom: 16px; }
.roam-steps { display: flex; gap: 6px; flex-wrap: wrap; }
.roam-step { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: var(--bg3, #f3f4f6); color: var(--text3, #6b7280); }
.roam-step.on { background: var(--primary, #006A4E); color: #fff; }
.roam-hint { color: var(--text2, #4b5563); margin: 0 0 14px; line-height: 1.6; }
.roam-ops { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.roam-op { display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 14px; border-radius: 12px; border: 2px solid var(--border, #e5e7eb);
  background: var(--bg2, #fff); cursor: pointer; text-align: left; font: inherit; }
.roam-op:hover:not(:disabled) { border-color: var(--primary, #006A4E); }
.roam-op.sel { border-color: var(--primary, #006A4E); background: rgba(0,106,78,.06); }
.roam-op.off { opacity: .55; cursor: not-allowed; }
.roam-op-name { font-weight: 700; font-size: 1.05rem; color: var(--text, #111827); }
.roam-op-en { font-size: .8rem; color: var(--text3, #6b7280); }
.roam-op-price { font-weight: 700; color: var(--primary, #006A4E); margin-top: 6px; }
.roam-op-off { font-size: .8rem; color: var(--text3, #6b7280); margin-top: 6px; }
.roam-op-note { font-size: .78rem; color: var(--text2, #4b5563); margin-top: 4px; }
.roam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .roam-grid { grid-template-columns: 1fr; } }
.roam-field { display: flex; flex-direction: column; gap: 5px; font-size: .9rem; }
.roam-field span { font-weight: 600; color: var(--text, #111827); }
.roam-field small { color: var(--text3, #6b7280); font-weight: 400; }
.roam-field input, .roam-field select, .roam-field textarea {
  padding: 10px 12px; border: 1px solid var(--border, #d1d5db); border-radius: 9px;
  background: var(--bg2, #fff); color: var(--text, #111827); font: inherit; width: 100%; box-sizing: border-box; }
.roam-field input:focus, .roam-field select:focus, .roam-field textarea:focus {
  outline: 2px solid var(--primary, #006A4E); outline-offset: 0; border-color: var(--primary, #006A4E); }
.roam-wide { grid-column: 1 / -1; }
.roam-check { display: flex; gap: 9px; align-items: flex-start; margin: 12px 0 0;
  font-size: .92rem; line-height: 1.5; cursor: pointer; }
.roam-check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--primary, #006A4E); }
.roam-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.roam-err { color: var(--danger, #dc2626); font-weight: 600; min-height: 1.2em; margin: 10px 0 0; }
.roam-note { color: var(--text3, #6b7280); font-size: .85rem; line-height: 1.6; margin: 10px 0 0; }
.roam-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px;
  background: var(--bg3, #f3f4f6); border-radius: 10px; padding: 14px; margin-bottom: 14px; }
@media (max-width: 640px) { .roam-summary { grid-template-columns: 1fr; } }
.roam-summary div { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; }
.roam-summary span { color: var(--text3, #6b7280); }
.roam-terms-title { font-weight: 700; margin: 6px 0 8px; }
.roam-terms { max-height: 220px; overflow-y: auto; border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px; padding: 12px 16px; background: var(--bg2, #fff); font-size: .92rem; line-height: 1.7; }
.roam-terms ol { margin: 0; padding-left: 20px; }
.roam-terms li { margin-bottom: 8px; }
.roam-card { border: 1px solid var(--border, #e5e7eb); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 12px; background: var(--bg2, #fff); }
.roam-card-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.roam-pill { display: inline-flex; padding: 3px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.roam-pill.st-new { background: rgba(14,165,233,.12); color: #0284c7; }
.roam-pill.st-reviewing { background: rgba(245,158,11,.14); color: #b45309; }
.roam-pill.st-needs_info { background: rgba(245,158,11,.14); color: #b45309; }
.roam-pill.st-processing { background: rgba(139,92,246,.14); color: #7c3aed; }
.roam-pill.st-activated { background: rgba(16,185,129,.12); color: #047857; }
.roam-pill.st-not_possible { background: rgba(244,63,94,.12); color: #be123c; }
.roam-pill.pay-unpaid { background: rgba(245,158,11,.14); color: #b45309; }
.roam-pill.pay-pending { background: rgba(14,165,233,.12); color: #0284c7; }
.roam-pill.pay-paid { background: rgba(16,185,129,.12); color: #047857; }
.roam-pill.pay-failed { background: rgba(244,63,94,.12); color: #be123c; }
.roam-card-body { display: flex; flex-direction: column; gap: 3px; font-size: .92rem; color: var(--text2, #4b5563); }
.roam-card-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.roam-warn { color: var(--danger, #dc2626); font-size: .85rem; font-weight: 600; }
.roam-events { font-size: .85rem; color: var(--text2, #4b5563); }
.roam-events summary { cursor: pointer; font-weight: 600; }
.roam-ev { display: flex; gap: 10px; padding: 4px 0; border-top: 1px dashed var(--border, #e5e7eb); }
.roam-ev span:first-child { color: var(--text3, #6b7280); white-space: nowrap; }
.roam-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: #111827; color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .9rem;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 9999; max-width: 90vw; text-align: center; }
.roam-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.roam-toast.err { background: #b91c1c; }

/* --- Wallet-style polish + light animations (v1.1) --- */
@keyframes roamFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes roamPop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }
.roam-anim-in { animation: roamFadeUp .3s ease both; }
/* Hero: soft wallet-style card */
.roam-head { margin: 4px 0 18px; padding: 18px 20px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(0,106,78,.09), rgba(14,165,233,.07));
  border: 1px solid rgba(0,106,78,.16); }
.roam-title { font-size: 1.45rem; }
.roam-sub { font-size: .95rem; }
/* Stepper: smooth transitions + glowing active step */
.roam-step { transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease; }
.roam-step.on { box-shadow: 0 2px 10px rgba(0,106,78,.35); transform: translateY(-1px); }
/* Operator cards: lift on hover/select + check badge */
.roam-op { position: relative; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease; }
.roam-op:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.roam-op.sel { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,106,78,.18); }
.roam-op-check { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary, #006A4E); color: #fff; font-size: .85rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; animation: roamPop .22s ease both; }
/* Buttons + inputs: gentle press / focus feel */
.roam-panel .btn { transition: transform .12s ease, box-shadow .15s ease, opacity .15s ease; }
.roam-panel .btn:active:not(:disabled) { transform: scale(.98); }
.roam-panel .btn-primary { box-shadow: 0 4px 14px rgba(0,106,78,.28); }
.roam-field input, .roam-field select, .roam-field textarea { transition: border-color .15s ease, box-shadow .15s ease; }
.roam-field input:focus, .roam-field select:focus, .roam-field textarea:focus {
  box-shadow: 0 0 0 3px rgba(0,106,78,.15); }
/* Summary: wallet receipt card */
.roam-summary { border: 1px solid var(--border, #e5e7eb); box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.roam-summary div b { font-variant-numeric: tabular-nums; }
/* Application cards: soft lift on hover */
.roam-card { transition: box-shadow .18s ease, transform .18s ease; }
.roam-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.07); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
  .roam-anim-in, .roam-op-check { animation: none; }
  .roam-op, .roam-step, .roam-panel .btn, .roam-card { transition: none; }
  .roam-op:hover:not(:disabled), .roam-op.sel, .roam-card:hover { transform: none; }
}
