/* ==========================================================================
   roamcheaper.in — the phone
   The hero handset plays the roaming horror story: your own carrier billing
   you by the day, NO SERVICE, then the local network picking you up for the
   real price. Notifications are solid white so every message lands hard.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Signal bars, the site's recurring glyph
   -------------------------------------------------------------------------- */

.sigbars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 1em;
  vertical-align: -.08em;
}

.sigbars i {
  width: .18em;
  min-width: 3px;
  height: var(--h, 100%);
  border-radius: 1px;
  background: currentColor;
  opacity: .22;
  transition: opacity .18s ease;
}
.sigbars i.on { opacity: 1; }

/* --------------------------------------------------------------------------
   The stage and the handset
   -------------------------------------------------------------------------- */

.phone-stage {
  perspective: 1500px;
  display: grid;
  justify-items: center;
  padding: 1.25rem .5rem 2.5rem;
  position: relative;
}

.phone-stage::after {
  content: '';
  position: absolute;
  bottom: .5rem;
  width: min(58%, 14rem);
  height: 1.7rem;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(16, 17, 22, .28), transparent 70%);
  filter: blur(7px);
}

.phone {
  position: relative;
  width: min(100%, 21rem);
  aspect-ratio: 9 / 18.5;
  border-radius: 2.7rem;
  background: linear-gradient(145deg, #3c3f49, #14151c 40%, #24262f);
  padding: .55rem;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .25),
    inset 0 -1px 2px rgba(0, 0, 0, .6),
    0 2px 4px rgba(16, 17, 22, .18),
    0 28px 56px rgba(16, 17, 22, .25),
    0 70px 130px rgba(16, 17, 22, .18);
  transform: rotateZ(-2deg);
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-out);
  will-change: transform;
  animation: phone-in 1.1s var(--ease-out) .25s backwards;
}

@keyframes phone-in {
  from { opacity: 0; transform: rotateZ(-6deg) translateY(56px); }
  to   { opacity: 1; transform: rotateZ(-2deg) translateY(0); }
}
html.no-motion .phone { animation: none; }

.phone.is-tilting {
  transform:
    rotateZ(-2deg)
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg));
  transition: none;
  animation: none;
}

.phone::before {
  content: '';
  position: absolute;
  left: -2.5px;
  top: 22%;
  width: 2.5px;
  height: 16%;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(90deg, #4a4d57, #24262f);
}
.phone::after {
  content: '';
  position: absolute;
  right: -2.5px;
  top: 30%;
  width: 2.5px;
  height: 11%;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(-90deg, #4a4d57, #24262f);
}

.phone-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 6;
  opacity: 0;
  background: radial-gradient(
    45% 35% at var(--gx, 50%) var(--gy, 30%),
    rgba(255, 255, 255, .32),
    rgba(255, 255, 255, .07) 45%,
    transparent 72%
  );
  transition: opacity .4s ease;
}
.phone.is-tilting .phone-glare { opacity: 1; }

/* --------------------------------------------------------------------------
   The screen
   -------------------------------------------------------------------------- */

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 2.15rem;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(130% 85% at 85% 0%, #27467b 0%, transparent 52%),
    radial-gradient(110% 75% at 8% 100%, #711d31 0%, transparent 52%),
    linear-gradient(175deg, #0e1119 18%, #171c29 58%, #1c1520);
  display: flex;
  flex-direction: column;
  padding: .8rem .8rem 1rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .55);
}

.phone-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 18% 34%, rgba(255,255,255,.5), transparent 100%),
    radial-gradient(1px 1px at 66% 22%, rgba(255,255,255,.35), transparent 100%),
    radial-gradient(1.5px 1.5px at 82% 58%, rgba(255,255,255,.3), transparent 100%),
    radial-gradient(1px 1px at 35% 72%, rgba(255,255,255,.25), transparent 100%),
    radial-gradient(1px 1px at 55% 88%, rgba(255,255,255,.3), transparent 100%);
  opacity: .8;
}

.phone-island {
  position: absolute;
  top: .55rem;
  left: 50%;
  translate: -50% 0;
  width: 28%;
  height: 1.05rem;
  border-radius: 999px;
  background: #04050a;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, .12);
  z-index: 3;
}

.statusbar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 600 .68rem/1 var(--mono);
  letter-spacing: .02em;
  padding: 0 .15rem;
  min-height: 1.1rem;
}

.sb-carrier {
  max-width: 38%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .3s ease;
}
.sb-carrier.is-searching {
  color: rgba(255, 255, 255, .55);
  animation: sb-pulse 1.1s ease-in-out infinite;
}
.sb-carrier.is-dead { color: var(--red-glow); }
@keyframes sb-pulse { 50% { opacity: .4; } }
html.no-motion .sb-carrier.is-searching { animation: none; }

.sb-right { display: inline-flex; align-items: center; gap: .45rem; }

.sb-net { font-size: .62rem; font-weight: 700; }

.sb-batt {
  width: 1.15rem;
  height: .55rem;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 2.5px;
  position: relative;
}
.sb-batt::before {
  content: '';
  position: absolute;
  inset: 1.5px;
  right: 28%;
  background: #fff;
  border-radius: 1px;
}
.sb-batt::after {
  content: '';
  position: absolute;
  right: -3.5px;
  top: 50%;
  translate: 0 -50%;
  width: 2px;
  height: .28rem;
  background: rgba(255, 255, 255, .7);
  border-radius: 0 1px 1px 0;
}

.lock-clock {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: clamp(.9rem, 12%, 2.4rem);
}

.lock-date {
  font: 600 .72rem/1.4 var(--sans);
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .82);
}

.lock-time {
  font-family: var(--black);
  font-size: 3.2rem;
  line-height: 1;
  letter-spacing: -.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

/* --------------------------------------------------------------------------
   The notification stack. Solid white cards so every message lands.
   -------------------------------------------------------------------------- */

.notif-stack {
  position: relative;
  z-index: 2;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.notif {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .55rem;
  align-items: start;
  background: #fff;
  color: var(--ink);
  border-radius: .95rem;
  padding: .55rem .65rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .32);
  transform-origin: top center;
  transition:
    transform .45s var(--ease-spring),
    opacity .4s ease,
    filter .4s ease;
}

/* entrance: drops onto the top of the stack */
.notif.is-entering {
  opacity: 0;
  transform: translateY(-16px) scale(.92);
}

/* stack compression, iOS style: older cards shrink and dim behind */
.notif[data-pos="1"] { transform: scale(.965); opacity: .88; }
.notif[data-pos="2"] { transform: scale(.93); opacity: .6; }
.notif[data-pos="3"],
.notif.is-gone { transform: scale(.9) translateY(-4px); opacity: 0; }

/* tones */
.notif.is-warn  { box-shadow: 0 10px 24px rgba(0, 0, 0, .32), inset 3px 0 0 var(--amber); }
.notif.is-alert { box-shadow: 0 10px 24px rgba(0, 0, 0, .32), inset 3px 0 0 var(--red); }
.notif.is-alert .notif-title { color: var(--red); }
.notif.is-dead  { background: #e8e8e6; }
.notif.is-dead .notif-title, .notif.is-dead .notif-body { color: var(--ink-soft); }
.notif.is-good  { box-shadow: 0 10px 24px rgba(0, 0, 0, .32), inset 3px 0 0 var(--green); }

.notif-appicon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: .5rem;
  display: grid;
  place-items: center;
  font-size: .92rem;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}
.notif-appicon.is-msg   { background: linear-gradient(160deg, #34c759, #1f8f43); }
.notif-appicon.is-warn  { background: linear-gradient(160deg, #ff9f0a, #d97a00); font: 800 1rem/1 var(--mono); }
.notif-appicon.is-sys   { background: linear-gradient(160deg, #8e8e93, #55555b); }
.notif-appicon.is-brand { background: linear-gradient(160deg, var(--red-glow), var(--red-deep)); font: 800 .85rem/1 var(--black); }

.notif-txt { min-width: 0; }

.notif-meta {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  font: 600 .56rem/1 var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: .18rem;
}
.notif-meta i { font-style: normal; opacity: .6; }

.notif-title {
  display: block;
  font: 700 .76rem/1.25 var(--sans);
  letter-spacing: -.01em;
}

.notif-body {
  display: block;
  font: 400 .68rem/1.4 var(--sans);
  color: var(--ink-soft);
  margin-top: .12rem;
}

.phone-homebar {
  position: relative;
  z-index: 2;
  width: 36%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  margin: .8rem auto 0;
}

@media (max-width: 61.99rem) {
  .phone { width: min(88%, 18.5rem); }
}

/* --------------------------------------------------------------------------
   "Select Network", the roaming settings screen as a destination index
   -------------------------------------------------------------------------- */

.settings-panel {
  background: var(--board);
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, .5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    var(--shadow-lift);
  overflow: hidden;
  color: var(--board-txt);
}

.settings-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .4rem 1.5rem;
  padding: 1.1rem 1.25rem .9rem;
  border-bottom: 1px solid rgba(245, 245, 242, .12);
}

.settings-title {
  font: 700 .8rem/1 var(--mono);
  letter-spacing: .24em;
  text-transform: uppercase;
}
.settings-title i {
  font-style: normal;
  color: var(--red-glow);
  animation: net-blink 2.2s steps(1) infinite;
}
@keyframes net-blink { 50% { opacity: .25; } }
html.no-motion .settings-title i { animation: none; }

.settings-sub {
  font: 500 .62rem/1 var(--mono);
  letter-spacing: .1em;
  color: rgba(245, 245, 242, .45);
}

.netlist { display: grid; }

.netrow {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: clamp(.6rem, 2vw, 1.1rem);
  padding: .8rem 1.25rem;
  text-decoration: none;
  color: var(--board-txt);
  border-bottom: 1px solid rgba(245, 245, 242, .08);
  transition: background-color .15s ease, transform .18s var(--ease-out);
}
.netrow:last-child { border-bottom: 0; }
.netrow:hover {
  background: rgba(245, 245, 242, .06);
  color: var(--board-txt);
  transform: translateX(5px);
}
.netrow:hover .netrow-go { opacity: 1; transform: none; }

.netrow.will-in { opacity: 0; transform: translateY(10px); }
.netrow.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out),
              background-color .15s ease;
}

.netrow-flag { font-size: 1.25rem; line-height: 1; }

.netrow-names b {
  display: block;
  font: 700 .95rem/1.25 var(--sans);
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.netrow-names small {
  display: block;
  font: 500 .68rem/1.3 var(--mono);
  color: rgba(245, 245, 242, .5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.netrow .sigbars { color: var(--green); font-size: .95rem; }
.netrow .sigbars i.on { background: #4ade80; }

.netrow-price {
  font: 500 .72rem/1 var(--mono);
  color: rgba(245, 245, 242, .6);
  white-space: nowrap;
}
.netrow-price b { color: var(--red-glow); font-size: 1.05rem; }

.netrow-go {
  font-size: 1.2rem;
  color: rgba(245, 245, 242, .6);
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity .18s ease, transform .18s var(--ease-out);
}

.settings-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .4rem 1.5rem;
  padding: .85rem 1.25rem;
  border-top: 1px solid rgba(245, 245, 242, .12);
  font: 500 .62rem/1.5 var(--mono);
  letter-spacing: .08em;
  color: rgba(245, 245, 242, .45);
}
.settings-foot a { color: rgba(245, 245, 242, .85); }
.settings-foot a:hover { color: var(--red-glow); }

@media (max-width: 40rem) {
  .netrow { grid-template-columns: auto minmax(0, 1fr) auto; }
  .netrow .sigbars, .netrow-go { display: none; }
}

/* --------------------------------------------------------------------------
   Traps as push notifications
   -------------------------------------------------------------------------- */

.notif-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .8rem;
  max-width: 46rem;
}

.notifcard {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .9rem;
  align-items: start;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s ease;
}
.notifcard:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 17, 22, .3);
  box-shadow: var(--shadow-lift);
}

.notifcard-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .7rem;
  display: grid;
  place-items: center;
  font: 800 1.05rem/1 var(--mono);
  color: #fff;
  background: linear-gradient(160deg, var(--red-glow), var(--red-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 3px 8px rgba(225, 29, 46, .28);
}

.notifcard-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: .25rem;
}

.notifcard-app {
  font: 700 .62rem/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.notifcard-when {
  font: 500 .62rem/1 var(--mono);
  color: var(--ink-faint);
}

.notifcard-title {
  font-family: var(--black);
  font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem);
  letter-spacing: -.015em;
  margin-bottom: .45rem;
}

.notifcard p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* --------------------------------------------------------------------------
   The issued result: eSIM profile card plus connection sequence
   -------------------------------------------------------------------------- */

.connect-status {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font: 700 .78rem/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: .55rem 1rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow);
}
.connect-status .sigbars { color: var(--green); font-size: .9rem; }

.esim-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.25rem, 3vw, 2rem);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 20px;
  box-shadow: var(--shadow-lift);
  padding: clamp(1.25rem, 3vw, 1.9rem);
  overflow: hidden;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}

.esim-card::before {
  content: '';
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 2.1rem;
  height: 1.6rem;
  border-radius: 5px;
  background:
    linear-gradient(90deg, transparent 44%, rgba(16,17,22,.35) 44% 56%, transparent 56%),
    linear-gradient(0deg, transparent 30%, rgba(16,17,22,.35) 30% 36%, transparent 36% 62%, rgba(16,17,22,.35) 62% 68%, transparent 68%),
    linear-gradient(140deg, #e9d9a8, var(--brass) 60%, #8a6b2a);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .5), 0 1px 2px rgba(16, 17, 22, .3);
  opacity: 0;
  transition: opacity .5s ease .3s;
}
.esim-card.is-live::before,
html.no-motion .esim-card::before { opacity: 1; }

.esim-main { min-width: 0; }

.esim-head {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: .7rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 1.1rem;
  padding-right: 3rem;
}

.esim-title {
  font-family: var(--black);
  font-size: clamp(.95rem, .9rem + .35vw, 1.2rem);
  letter-spacing: .01em;
}

.esim-issued {
  font: 500 .68rem/1 var(--mono);
  letter-spacing: .1em;
  color: var(--ink-faint);
}

.esim-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
  gap: .9rem 1.25rem;
}

.field { min-width: 0; }

.field-label {
  display: block;
  font: 500 .58rem/1 var(--mono);
  letter-spacing: .16em;
  color: var(--ink-faint);
  margin-bottom: .3rem;
}

.field-value {
  display: block;
  font: 700 clamp(.9rem, .85rem + .35vw, 1.1rem)/1.15 var(--mono);
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.esim-rule {
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--rule) 0 4px, transparent 4px 8px);
  margin: 1.15rem 0;
}

.routing {
  font: 700 clamp(1rem, .95rem + .5vw, 1.35rem)/1.35 var(--sans);
  letter-spacing: -.015em;
  margin: 0 0 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem;
}
.routing-flags { font-size: 1.15em; letter-spacing: .05em; }
.rt-nights { font: 500 .72em/1 var(--mono); color: var(--ink-faint); margin-left: .1rem; }
.rt-arrow { color: var(--red); margin: 0 .3rem; font-weight: 400; }

.esim-qr {
  display: grid;
  gap: .55rem;
  justify-items: center;
  align-content: center;
  padding: .9rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  align-self: center;
}

.qr {
  display: grid;
  grid-template-columns: repeat(var(--n, 21), 1fr);
  grid-template-rows: repeat(var(--n, 21), 1fr);
  width: clamp(6rem, 14vw, 8.5rem);
  aspect-ratio: 1;
  gap: 0;
}
.qr i { background: var(--ink); border-radius: .5px; }

.esim-card.will-connect .qr i {
  opacity: 0;
  transition: opacity .04s linear;
}
.esim-card.is-live .qr i { opacity: 1; }
.esim-card.is-live .qr i:nth-child(3n) { transition-delay: .12s; }
.esim-card.is-live .qr i:nth-child(3n+1) { transition-delay: .3s; }
.esim-card.is-live .qr i:nth-child(5n) { transition-delay: .2s; }
.esim-card.is-live .qr i:nth-child(7n) { transition-delay: .42s; }

.qr-label {
  font: 600 .55rem/1.4 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
}

@media (max-width: 40rem) {
  .esim-card { grid-template-columns: 1fr; }
  .esim-qr { justify-self: center; width: 100%; max-width: 14rem; }
}

/* dealing the options in after connection */
.will-deal {
  opacity: 0;
  transform: translateY(18px) scale(.985);
}
.is-dealt {
  opacity: 1;
  transform: none;
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-spring);
}
html.no-motion .will-deal { opacity: 1; transform: none; }

/* verdict stamps: CONNECTED slams in, NO SERVICE just sits there, flat */
.will-stamp { opacity: 0; transform: scale(2.2) rotate(-14deg); }
.is-stamped {
  opacity: 1;
  transform: scale(1) rotate(-2.5deg);
  transition: opacity .28s ease, transform .38s var(--ease-spring);
}
html.no-motion .will-stamp { opacity: 1; transform: rotate(-2.5deg); }
