/* APP SUBSCRIPTION rebuilt dashboard */
:root{
  --bg:#06080d;
  --panel:#0d121b;
  --panel-2:#111925;
  --panel-3:#151f2d;
  --line:rgba(255,255,255,.095);
  --line-strong:rgba(117,234,255,.28);
  --text:#f7faff;
  --muted:rgba(247,250,255,.68);
  --soft:rgba(247,250,255,.48);
  --cyan:#75eaff;
  --lime:#d7ff63;
  --violet:#a58bff;
  --danger:#ff7788;
  --ok:#8effc2;
  --radius:16px;
  --shadow:0 22px 70px rgba(0,0,0,.38);
}

*{box-sizing:border-box}

html{
  min-height:100%;
  overflow-x:hidden;
  background:var(--bg);
  color:var(--text);
  font-family:Inter,"Noto Sans KR",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

body{
  min-height:100svh;
  margin:0;
  overflow-x:hidden;
  color:var(--text);
  word-break:keep-all;
  background:
    radial-gradient(circle at 16% -10%,rgba(117,234,255,.15),transparent 30%),
    radial-gradient(circle at 94% 0%,rgba(165,139,255,.14),transparent 32%),
    linear-gradient(180deg,#0a1019 0%,#070a10 48%,#05070c 100%);
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    linear-gradient(rgba(255,255,255,.026) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.02) 1px,transparent 1px);
  background-size:86px 86px;
  mask-image:linear-gradient(180deg,rgba(0,0,0,.72),transparent 78%);
}

a{color:inherit;text-decoration:none}
button{font:inherit;letter-spacing:0;cursor:pointer}

svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.icon-sprite{
  position:absolute;
  width:0;
  height:0;
  overflow:hidden;
}

.subscription-topbar{
  position:sticky;
  top:10px;
  z-index:40;
  width:min(1180px,calc(100% - 32px));
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:10px auto 0;
  padding:6px;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(9,13,20,.82);
  box-shadow:0 14px 44px rgba(0,0,0,.3),inset 0 1px 0 rgba(255,255,255,.07);
  backdrop-filter:blur(18px);
}

.subscription-brand,
.subscription-topbar nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
}

.subscription-brand{
  gap:9px;
  padding:0 12px 0 3px;
  color:#fff;
  font-size:14px;
  font-weight:950;
}

.subscription-brand span{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border:1px solid rgba(117,234,255,.3);
  border-radius:12px;
  color:#d5fbff;
  background:rgba(117,234,255,.09);
}

.subscription-topbar nav{
  min-width:0;
  display:flex;
  justify-content:flex-end;
  gap:6px;
  overflow-x:auto;
  scrollbar-width:none;
}

.subscription-topbar nav::-webkit-scrollbar{display:none}

.subscription-topbar nav a{
  min-height:34px;
  gap:7px;
  padding:0 12px;
  border:1px solid transparent;
  border-radius:12px;
  color:rgba(247,250,255,.72);
  font-size:12px;
  font-weight:850;
}

.subscription-topbar nav a:hover,
.subscription-topbar nav a:focus-visible,
.subscription-topbar nav a.is-active{
  outline:none;
  color:#fff;
  border-color:rgba(117,234,255,.22);
  background:rgba(255,255,255,.06);
}

.subscription-shell{
  width:min(1180px,calc(100% - 32px));
  margin:0 auto;
  padding:20px 0 38px;
}

.subscription-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(390px,.62fr);
  gap:18px;
  align-items:end;
  margin-bottom:14px;
}

.hero-copy{min-width:0}

.eyebrow,
.panel-head p,
.checkout-main p,
.ledger-head p,
.stage-preview-head span{
  margin:0 0 7px;
  color:var(--cyan);
  font-size:10px;
  font-weight:950;
  line-height:1;
  letter-spacing:.08em;
}

.hero-copy h1{
  margin:0;
  color:#fff;
  font-size:clamp(32px,4.4vw,54px);
  line-height:.98;
  font-weight:950;
  white-space:nowrap;
}

.hero-text{
  max-width:44ch;
  margin:11px 0 0;
  color:var(--muted);
  font-size:14px;
  line-height:1.58;
}

.account-strip{
  min-width:0;
  display:grid;
  grid-template-columns:1.25fr 1fr .78fr;
  gap:10px;
}

.account-strip span,
.checkout-facts span,
.stage-metrics span{
  min-width:0;
  display:grid;
  gap:5px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.028));
}

.account-strip small,
.checkout-facts small,
.stage-metrics small{
  color:var(--soft);
  font-size:10px;
  font-weight:900;
}

.account-strip b,
.checkout-facts b,
.stage-metrics b{
  min-width:0;
  overflow:hidden;
  color:#fff;
  font-size:13px;
  font-weight:950;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.account-strip em,
.checkout-facts em,
.stage-metrics em{font-style:normal}

.subscription-command{
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin-bottom:14px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:20px;
  background:rgba(13,18,27,.86);
  box-shadow:var(--shadow),inset 0 1px 0 rgba(255,255,255,.06);
}

.subscription-command::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(117,234,255,.34),rgba(215,255,99,.18),transparent);
  pointer-events:none;
}

.subscription-steps{
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:auto minmax(24px,1fr) auto minmax(24px,1fr) auto;
  align-items:center;
  gap:10px;
  margin:0;
  padding:0 2px 11px;
  border-bottom:1px solid rgba(255,255,255,.075);
}

.subscription-steps span{
  min-width:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  color:var(--soft);
  font-size:12px;
  font-weight:950;
  white-space:nowrap;
}

.subscription-steps span em{
  overflow:hidden;
  font-style:normal;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.subscription-steps span b{
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.1);
  border-radius:999px;
  background:rgba(255,255,255,.045);
  color:rgba(247,250,255,.72);
  font-size:10px;
}

.subscription-steps span.is-active{color:#fff}

.subscription-steps span.is-active b,
.subscription-steps span.is-complete b{
  border-color:rgba(215,255,99,.34);
  color:#071018;
  background:linear-gradient(135deg,var(--cyan),var(--lime));
}

.subscription-steps span.is-complete{
  color:rgba(247,250,255,.82);
}

.subscription-steps span.is-warning{
  color:#ffd2d8;
}

.subscription-steps span.is-warning b{
  border-color:rgba(255,119,136,.36);
  color:#fff;
  background:linear-gradient(135deg,rgba(255,119,136,.9),rgba(165,139,255,.75));
}

.subscription-steps span.is-ready{
  color:#c6ffd9;
}

.subscription-steps span.is-ready b{
  border-color:rgba(142,255,194,.36);
}

.subscription-steps i{
  height:1px;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(117,234,255,.26),rgba(215,255,99,.14));
}

.plan-shortcuts{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}

.plan-shortcuts button{
  min-width:0;
  min-height:66px;
  display:grid;
  grid-template-columns:36px minmax(0,1fr);
  grid-template-rows:auto auto;
  align-items:center;
  column-gap:10px;
  row-gap:2px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:15px;
  background:rgba(255,255,255,.038);
  color:rgba(247,250,255,.72);
  text-align:left;
  transition:background .16s ease,border-color .16s ease,transform .16s ease,color .16s ease;
}

.plan-shortcuts button:hover,
.plan-shortcuts button:focus-visible,
.plan-shortcuts button.is-selected{
  outline:none;
  color:#fff;
  border-color:rgba(117,234,255,.32);
  background:rgba(117,234,255,.08);
}

.plan-shortcuts button:hover,
.plan-shortcuts button:focus-visible{transform:translateY(-1px)}

.plan-shortcuts button span{
  grid-row:1 / 3;
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:rgba(117,234,255,.09);
  color:#d5fbff;
  font-size:13px;
  font-weight:950;
}

.plan-shortcuts button.is-selected span{
  color:#071018;
  background:linear-gradient(135deg,var(--cyan),var(--lime));
}

.plan-shortcuts button b,
.plan-shortcuts button small{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.plan-shortcuts button b{font-size:13px;font-weight:950}
.plan-shortcuts button small{color:var(--soft);font-size:10px;font-weight:850}

.selection-summary{
  min-width:0;
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(110px,.45fr) minmax(96px,.35fr) minmax(130px,.48fr) auto;
  align-items:center;
  gap:9px;
  padding:12px;
  border:1px solid rgba(255,119,136,.22);
  border-radius:15px;
  background:rgba(255,119,136,.055);
}

.selection-summary[data-selection-state="ready"]{
  border-color:rgba(142,255,194,.25);
  background:rgba(142,255,194,.045);
}

.selection-summary > div,
.selection-summary > span{
  min-width:0;
  display:grid;
  gap:5px;
}

.selection-summary > span + span,
.selection-summary > span:nth-of-type(2){display:grid}

.selection-summary small{
  color:var(--soft);
  font-size:10px;
  font-weight:900;
}

.selection-summary strong,
.selection-summary b{
  min-width:0;
  overflow:hidden;
  color:#fff;
  font-size:13px;
  font-weight:950;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.selection-summary > em{
  min-width:max-content;
  justify-self:end;
  padding:7px 10px;
  border:1px solid rgba(255,119,136,.26);
  border-radius:999px;
  color:#ffd2d8;
  background:rgba(255,119,136,.09);
  font-size:10px;
  font-style:normal;
  font-weight:950;
  white-space:nowrap;
}

.selection-summary[data-selection-state="ready"] > em{
  border-color:rgba(142,255,194,.3);
  color:#c6ffd9;
  background:rgba(142,255,194,.08);
}

.subscription-dashboard{
  display:grid;
  grid-template-columns:minmax(240px,.58fr) minmax(0,1.58fr) minmax(300px,.78fr);
  gap:14px;
  align-items:start;
}

.status-panel,
.catalog-panel,
.subscription-stage,
.checkout-panel,
.subscription-ledger{
  min-width:0;
  border:1px solid var(--line);
  border-radius:20px;
  background:rgba(13,18,27,.88);
  box-shadow:var(--shadow),inset 0 1px 0 rgba(255,255,255,.06);
}

.status-panel,
.summary-stack{
  position:sticky;
  top:70px;
}

.summary-stack{
  display:grid;
  gap:12px;
}

.panel-head,
.ledger-head{
  min-height:60px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:16px;
  border-bottom:1px solid rgba(255,255,255,.075);
}

.panel-head h2,
.ledger-head h2,
.checkout-main h2{
  margin:0;
  color:#fff;
  font-size:19px;
  line-height:1.08;
  font-weight:950;
}

.panel-head > span{
  min-width:max-content;
  padding:6px 9px;
  border:1px solid rgba(117,234,255,.22);
  border-radius:999px;
  color:#d5fbff;
  background:rgba(117,234,255,.075);
  font-size:10px;
  font-weight:950;
}

.active-list,
.program-grid,
.ledger-list{
  display:grid;
  gap:10px;
  padding:12px;
}

.program-grid{grid-template-columns:1fr}

.active-card,
.empty-card,
.program-card,
.ledger-item{
  min-width:0;
  border:1px solid rgba(255,255,255,.085);
  border-radius:16px;
  background:rgba(255,255,255,.038);
}

.active-card{
  display:grid;
  gap:10px;
  padding:12px;
}

.active-card.is-expired{opacity:.72}

.active-card-head{
  display:flex;
  justify-content:space-between;
  gap:10px;
}

.active-card strong{color:#fff;font-size:14px;font-weight:950}
.active-card span,
.active-card small{color:var(--muted);font-size:11px;line-height:1.4}

.active-card em{
  min-width:max-content;
  align-self:start;
  padding:5px 8px;
  border-radius:999px;
  color:#c6ffd9;
  background:rgba(142,255,194,.08);
  font-size:10px;
  font-style:normal;
  font-weight:950;
}

.active-card.is-expired em{
  color:rgba(247,250,255,.58);
  background:rgba(255,255,255,.065);
}

.active-meter{
  height:5px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(255,255,255,.08);
}

.active-meter i{
  display:block;
  width:var(--progress,0%);
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--cyan),var(--lime));
}

.empty-card{
  min-height:176px;
  display:grid;
  place-items:center;
  align-content:center;
  gap:10px;
  padding:22px;
  text-align:center;
}

.empty-card--status{
  min-height:150px;
  place-items:start center;
  align-content:center;
  background:
    linear-gradient(180deg,rgba(117,234,255,.055),rgba(255,255,255,.03));
}

.empty-kicker{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  padding:0 9px;
  border:1px solid rgba(117,234,255,.2);
  border-radius:999px;
  color:#d5fbff;
  background:rgba(117,234,255,.07);
  font-size:9px;
  font-weight:950;
  letter-spacing:.08em;
}

.empty-card b{
  max-width:22ch;
  color:#fff;
  font-size:15px;
  font-weight:950;
  line-height:1.38;
}

.empty-card small{
  max-width:31ch;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}

.empty-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
}

.empty-actions a{
  min-height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 12px;
  border:1px solid rgba(117,234,255,.22);
  border-radius:11px;
  color:#d9fcff;
  background:rgba(117,234,255,.07);
  font-size:11px;
  font-weight:950;
}

.ledger-empty-state{
  min-width:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) repeat(3,auto);
  align-items:center;
  gap:10px;
  min-height:78px;
  padding:12px;
  border:1px solid rgba(255,255,255,.085);
  border-radius:16px;
  background:
    radial-gradient(circle at 0% 0%,rgba(117,234,255,.08),transparent 30%),
    linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.025));
}

.ledger-empty-state div{
  min-width:0;
  display:grid;
  gap:5px;
}

.ledger-empty-state b{
  overflow:hidden;
  color:#fff;
  font-size:14px;
  font-weight:950;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.ledger-empty-state small{
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}

.ledger-empty-state span{
  min-width:max-content;
  padding:7px 9px;
  border:1px solid rgba(117,234,255,.16);
  border-radius:999px;
  color:rgba(220,250,255,.8);
  background:rgba(117,234,255,.055);
  font-size:10px;
  font-weight:950;
}

.program-card{
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,.92fr) minmax(330px,1.08fr);
  align-items:start;
  gap:12px;
  padding:13px;
  background:
    radial-gradient(circle at 0% 0%,rgba(var(--service-rgb),.11),transparent 34%),
    linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.027));
  transition:border-color .16s ease,background .16s ease,transform .16s ease,box-shadow .16s ease;
}

.program-card::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:3px;
  opacity:.5;
  background:rgb(var(--service-rgb));
}

.program-card:hover,
.program-card:focus-within,
.program-card.is-selected{
  transform:translateY(-1px);
  border-color:rgba(var(--service-rgb),.34);
  background:rgba(var(--service-rgb),.065);
  box-shadow:0 16px 36px rgba(0,0,0,.24);
}

.program-head{
  min-width:0;
  display:grid;
  grid-template-columns:44px minmax(0,1fr) auto;
  gap:10px;
  align-items:start;
}

.program-icon,
.stage-service-icon{
  display:grid;
  place-items:center;
  border:1px solid rgba(var(--service-rgb,117,234,255),.28);
  color:rgb(var(--service-rgb,117,234,255));
  background:rgba(var(--service-rgb,117,234,255),.09);
}

.program-icon{
  width:44px;
  height:44px;
  border-radius:14px;
}

.program-head strong{
  display:block;
  overflow:hidden;
  color:#fff;
  font-size:16px;
  line-height:1.18;
  font-weight:950;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.program-head small{
  display:-webkit-box;
  margin-top:4px;
  overflow:hidden;
  color:var(--muted);
  font-size:11px;
  line-height:1.38;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}

.program-limit-note{
  display:block;
  width:fit-content;
  max-width:100%;
  margin-top:8px;
  padding:5px 8px;
  border:1px solid rgba(var(--service-rgb),.22);
  border-radius:999px;
  color:rgba(232,250,255,.84);
  background:rgba(var(--service-rgb),.07);
  font-size:10px;
  font-weight:900;
  line-height:1.32;
  white-space:normal;
}

.program-state{
  min-width:max-content;
  padding:5px 8px;
  border-radius:999px;
  color:var(--soft);
  background:rgba(255,255,255,.06);
  font-size:10px;
  font-style:normal;
  font-weight:950;
}

.program-card.is-selected .program-state,
.program-card.is-active .program-state{
  color:#071018;
  background:linear-gradient(135deg,var(--cyan),var(--lime));
}

.plan-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
}

.plan-button{
  min-width:0;
  min-height:70px;
  position:relative;
  display:grid;
  align-content:center;
  gap:4px;
  padding:10px 9px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:13px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.052),rgba(255,255,255,.026));
  color:rgba(247,250,255,.72);
  text-align:left;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
  transition:border-color .16s ease,background .16s ease,color .16s ease,transform .16s ease;
}

.plan-button:hover,
.plan-button:focus-visible,
.plan-button.is-selected{
  outline:none;
  color:#fff;
  border-color:rgba(var(--service-rgb),.4);
  background:rgba(var(--service-rgb),.11);
}

.plan-button:hover,
.plan-button:focus-visible{transform:translateY(-1px)}

.plan-button.is-selected{
  box-shadow:0 12px 26px rgba(var(--service-rgb),.12),inset 0 1px 0 rgba(255,255,255,.06);
}

.plan-button b,
.plan-button small,
.plan-button .plan-limit{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.plan-button b{font-size:12px;font-weight:950}
.plan-button small{color:var(--soft);font-size:10px}

.plan-button .plan-limit{
  display:block;
  color:rgb(var(--service-rgb));
  font-size:9px;
  font-weight:950;
  line-height:1.15;
}

.plan-button em{
  position:absolute;
  top:5px;
  right:5px;
  padding:3px 5px;
  border-radius:999px;
  color:#071018;
  background:var(--lime);
  font-size:8px;
  font-style:normal;
  font-weight:950;
  line-height:1;
}

.program-foot{
  grid-column:1 / -1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:var(--muted);
  font-size:11px;
}

.program-foot span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.program-foot button{
  min-width:max-content;
  height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 11px;
  border:1px solid rgba(var(--service-rgb),.24);
  border-radius:11px;
  color:#d9fcff;
  background:rgba(var(--service-rgb),.08);
  font-size:10px;
  font-weight:950;
}

.program-foot button:hover,
.program-foot button:focus-visible{
  outline:none;
  border-color:rgba(var(--service-rgb),.44);
  color:#fff;
  background:rgba(var(--service-rgb),.14);
}

.program-foot button[aria-pressed="true"]{
  color:#071018;
  border-color:rgba(215,255,99,.44);
  background:linear-gradient(135deg,var(--cyan),var(--lime));
}

.subscription-stage{padding:13px}

.subscription-stage,
.checkout-panel{
  border-color:rgba(var(--service-rgb,117,234,255),.18);
}

.stage-preview-card{display:grid;gap:12px}

.stage-preview-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.stage-preview-head em{
  min-width:max-content;
  padding:5px 8px;
  border:1px solid rgba(117,234,255,.22);
  border-radius:999px;
  color:#d5fbff;
  background:rgba(117,234,255,.075);
  font-size:10px;
  font-style:normal;
  font-weight:950;
}

.stage-service-row{
  display:grid;
  grid-template-columns:50px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
}

.stage-service-icon{
  --service-rgb:117,234,255;
  width:50px;
  height:50px;
  border-radius:15px;
}

.stage-service-row small{
  display:block;
  color:var(--soft);
  font-size:10px;
  font-weight:900;
}

.stage-service-row strong{
  display:block;
  overflow:hidden;
  margin-top:4px;
  color:#fff;
  font-size:22px;
  line-height:1.08;
  font-weight:950;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.stage-service-row b{
  min-width:max-content;
  padding:7px 9px;
  border-radius:999px;
  color:#071018;
  background:linear-gradient(135deg,var(--cyan),var(--lime));
  font-size:10px;
  font-weight:950;
}

.stage-metrics{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}

.stage-metrics b{
  overflow:visible;
  font-size:12px;
  text-overflow:clip;
  white-space:normal;
}

.stage-app-strip{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:7px;
  margin-top:12px;
}

.stage-app-strip span{
  min-width:0;
  height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  border-radius:10px;
  color:var(--muted);
  background:rgba(255,255,255,.03);
  font-size:10px;
  font-weight:900;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.stage-app-strip svg{
  width:14px;
  height:14px;
  color:var(--cyan);
}

.checkout-panel{
  order:-1;
  display:grid;
  gap:10px;
  padding:12px;
}

.checkout-main h2{
  display:grid;
  gap:6px;
  margin-bottom:10px;
}

.checkout-main h2 small{
  color:var(--cyan);
  font-size:12px;
  font-weight:950;
}

.checkout-facts{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
}

.checkout-facts span{
  min-height:50px;
  gap:4px;
  padding:8px 10px;
  border-radius:12px;
}

.checkout-facts small{
  font-size:9px;
}

.checkout-facts b{
  font-size:12px;
}

.checkout-panel[data-checkout-state="shortfall"]{
  border-color:rgba(255,119,136,.22);
}

.checkout-panel[data-checkout-state="shortfall"] .checkout-facts span:nth-child(3),
.checkout-panel[data-checkout-state="shortfall"] .checkout-facts span:nth-child(4){
  display:none;
}

.checkout-shortfall{
  grid-column:1 / -1;
  min-height:40px;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  border-color:rgba(255,119,136,.26) !important;
  background:rgba(255,119,136,.09) !important;
}

.checkout-shortfall b,
.checkout-shortfall small{color:#fff}
.checkout-shortfall em{color:#ffb8bf}
.checkout-shortfall[hidden]{display:none}

.checkout-actions{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:8px;
}

.charge-link,
.subscribe-button{
  min-width:0;
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:14px;
  font-size:12px;
  font-weight:950;
}

.charge-link{
  border:1px solid rgba(117,234,255,.24);
  color:#d9fcff;
  background:rgba(117,234,255,.075);
}

.charge-link:hover,
.charge-link:focus-visible{
  outline:none;
  border-color:rgba(117,234,255,.38);
  background:rgba(117,234,255,.12);
}

.subscribe-button{
  border:0;
  color:#071018;
  background:linear-gradient(135deg,var(--cyan),var(--lime));
  box-shadow:0 16px 36px rgba(117,234,255,.18);
}

.subscribe-button:hover,
.subscribe-button:focus-visible{
  outline:none;
  transform:translateY(-1px);
}

.subscribe-button.is-disabled{
  color:#fff;
  background:linear-gradient(135deg,rgba(255,119,136,.92),rgba(165,139,255,.82));
  box-shadow:none;
}

.subscription-ledger{margin-top:14px}
.ledger-head{align-items:center}

.ledger-head span{
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:12px;
}

.ledger-head button{
  min-width:max-content;
  min-height:34px;
  padding:0 12px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:11px;
  color:rgba(247,250,255,.72);
  background:rgba(255,255,255,.04);
  font-size:11px;
  font-weight:950;
}

.ledger-head button:hover,
.ledger-head button:focus-visible{
  outline:none;
  color:#fff;
  border-color:rgba(117,234,255,.24);
}

.ledger-item{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:10px;
  padding:12px;
}

.ledger-item strong{
  display:block;
  overflow:hidden;
  color:#fff;
  font-size:13px;
  font-weight:950;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.ledger-item span{
  display:block;
  margin-top:4px;
  color:var(--soft);
  font-size:11px;
}

.ledger-cost{
  min-width:max-content;
  color:#ffbdc3;
  font-size:12px;
  font-weight:950;
}

.ledger-status{
  min-width:max-content;
  padding:5px 8px;
  border-radius:999px;
  color:#c6ffd9;
  background:rgba(142,255,194,.08);
  font-size:10px;
  font-style:normal;
  font-weight:950;
}

.subscription-toast{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:60;
  max-width:min(360px,calc(100% - 30px));
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border:1px solid rgba(117,234,255,.3);
  border-radius:14px;
  background:rgba(9,13,20,.94);
  color:#fff;
  box-shadow:0 22px 60px rgba(0,0,0,.42);
  backdrop-filter:blur(16px);
}

.subscription-toast.is-error{border-color:rgba(255,119,136,.36)}
.subscription-toast svg{color:var(--cyan)}
.subscription-toast.is-error svg{color:var(--danger)}
.subscription-toast[hidden]{display:none}

.mobile-subscription-bar{
  display:none;
}

@media (max-width:1180px){
  .subscription-hero,
  .subscription-command,
  .subscription-dashboard{grid-template-columns:1fr}

  .account-strip{max-width:none}

  .selection-summary{
    grid-template-columns:minmax(0,1.1fr) minmax(100px,.45fr) minmax(90px,.35fr) minmax(108px,.42fr) auto;
  }

  .selection-summary > span + span,
  .selection-summary > span:nth-of-type(2){display:grid}

  .status-panel,
  .summary-stack{position:static}

  .summary-stack{grid-template-columns:minmax(0,1fr) minmax(300px,.46fr)}
}

@media (max-width:760px){
  .subscription-topbar{
    top:8px;
    width:calc(100% - 18px);
  }

  .subscription-brand strong{display:none}
  .subscription-topbar nav a{padding:0 9px}
  .subscription-topbar nav a svg{width:17px;height:17px}
  .subscription-topbar nav a:not(.is-active){font-size:0;gap:0}

  .subscription-shell{
    width:calc(100% - 22px);
    padding-top:16px;
    padding-bottom:42px;
  }

  .subscription-hero{gap:12px}
  .hero-copy h1{font-size:34px}
  .hero-text{font-size:13px}

  .account-strip{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px;
  }

  .account-strip span{
    min-height:56px;
    padding:9px;
  }

  .account-strip b{font-size:11px}

  .subscription-command{
    gap:9px;
    padding:10px;
    border-radius:17px;
  }

  .subscription-steps{
    grid-template-columns:auto minmax(16px,1fr) auto minmax(16px,1fr) auto;
    gap:6px;
    padding-bottom:9px;
  }

  .subscription-steps span{gap:5px;font-size:10px}
  .subscription-steps span b{width:20px;height:20px}
  .subscription-steps span em{
    max-width:none;
    font-size:0;
  }

  .subscription-steps span:nth-of-type(1) em::after,
  .subscription-steps span:nth-of-type(2) em::after,
  .subscription-steps span:nth-of-type(3) em::after{
    font-size:10px;
  }

  .subscription-steps span:nth-of-type(1) em::after{content:"앱 선택"}
  .subscription-steps span:nth-of-type(2) em::after{content:"기간"}
  .subscription-steps span:nth-of-type(3) em::after{content:"충전"}

  .plan-shortcuts{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:6px;
  }

  .plan-shortcuts button{
    min-height:56px;
    grid-template-columns:1fr;
    grid-template-rows:auto auto;
    justify-items:center;
    gap:4px;
    padding:7px 5px;
    text-align:center;
  }

  .plan-shortcuts button span{
    grid-row:auto;
    width:27px;
    height:27px;
    font-size:12px;
  }

  .plan-shortcuts button b{max-width:100%;font-size:10px}
  .plan-shortcuts button small{display:none}

  .selection-summary{
    grid-template-columns:minmax(0,1fr) auto;
    padding:10px;
  }

  .selection-summary > span{display:none}
  .selection-summary strong,
  .selection-summary b{font-size:11px}
  .selection-summary > em{padding:7px 8px;font-size:10px}

  .program-grid,
  .summary-stack{grid-template-columns:1fr}

  .catalog-panel{order:1}
  .summary-stack{order:2}
  .status-panel{order:3}

  .program-card{
    grid-template-columns:1fr;
    gap:11px;
  }

  .plan-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;
  }

  .plan-button{
    min-height:62px;
    padding:8px;
  }

  .plan-button em{
    top:6px;
    right:6px;
  }

  .stage-metrics{gap:6px}
  .stage-metrics span{padding:9px 7px}
  .stage-metrics b{font-size:10px}

  .panel-head,
  .ledger-head{padding:14px}

  .program-head{grid-template-columns:40px minmax(0,1fr) auto}
  .program-icon{width:40px;height:40px}

  .stage-app-strip{
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:5px;
  }

  .stage-app-strip span{font-size:0;gap:0}

  .checkout-actions{
    grid-template-columns:1fr;
  }

  .ledger-head{display:grid}
  .ledger-head button{justify-self:start}

  .ledger-item{
    grid-template-columns:1fr;
    gap:8px;
  }

  .ledger-empty-state{
    grid-template-columns:1fr;
    align-items:start;
    gap:9px;
  }

  .ledger-empty-state span{
    width:fit-content;
  }

  .mobile-subscription-bar{
    position:relative;
    z-index:2;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:8px;
    margin:-2px 0 12px;
    min-height:54px;
    padding:7px 7px 7px 12px;
    border:1px solid rgba(var(--service-rgb,117,234,255),.28);
    border-radius:16px;
    background:rgba(8,12,18,.88);
    box-shadow:0 12px 30px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter:blur(18px);
  }

  .mobile-subscription-bar div{
    min-width:0;
    display:grid;
    gap:4px;
  }

  .mobile-subscription-bar small,
  .mobile-subscription-bar strong{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .mobile-subscription-bar small{
    color:var(--muted);
    font-size:10px;
    font-weight:900;
  }

  .mobile-subscription-bar strong{
    color:#fff;
    font-size:15px;
    font-weight:950;
  }

  .mobile-subscription-bar button{
    min-width:92px;
    min-height:38px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:0;
    border-radius:12px;
    color:#071018;
    background:linear-gradient(135deg,var(--cyan),var(--lime));
    font-size:11px;
    font-weight:950;
  }

  .mobile-subscription-bar[data-mobile-state="shortfall"] button{
    color:#fff;
    background:linear-gradient(135deg,rgba(255,119,136,.94),rgba(165,139,255,.84));
  }
}

@media (max-width:430px){
  .hero-copy h1{font-size:31px}
  .program-card{padding:12px}
  .program-head strong{font-size:15px}
  .subscription-steps span{font-size:9px}
  .subscription-steps span em{max-width:58px}
  .program-foot{
    display:grid;
    grid-template-columns:1fr auto;
    align-items:center;
  }
  .ledger-empty-state span{font-size:9px}

  .stage-service-row{
    grid-template-columns:44px minmax(0,1fr);
  }

  .stage-service-row b{
    grid-column:1 / -1;
    justify-self:start;
  }
}

/* Subscription dashboard UX pass: denser cards, clearer controls, fewer awkward wide splits. */
.subscription-shell{
  width:min(1120px,calc(100% - 36px));
  padding-top:16px;
}

.subscription-hero{
  grid-template-columns:minmax(0,.9fr) minmax(350px,.62fr);
  gap:14px;
  margin-bottom:12px;
}

.hero-text{
  max-width:38ch;
}

.subscription-command{
  gap:10px;
  margin-bottom:12px;
  padding:11px;
  border-radius:18px;
}

.subscription-dashboard{
  grid-template-columns:minmax(214px,.48fr) minmax(0,1.34fr) minmax(286px,.68fr);
  gap:12px;
}

.panel-head,
.ledger-head{
  min-height:56px;
  padding:14px;
}

.active-list,
.program-grid,
.ledger-list{
  gap:9px;
  padding:10px;
}

.empty-card{
  min-height:132px;
  padding:18px;
}

.empty-card--status{
  min-height:122px;
}

.program-card{
  grid-template-columns:1fr;
  gap:10px;
  padding:12px;
  border-radius:17px;
}

.program-head{
  grid-template-columns:42px minmax(0,1fr) auto;
  gap:9px;
  align-items:center;
}

.program-icon{
  width:42px;
  height:42px;
  border-radius:13px;
}

.program-head small{
  margin-top:3px;
  -webkit-line-clamp:1;
}

.program-limit-note{
  margin-top:7px;
  padding:4px 8px;
}

.program-state{
  align-self:center;
}

.plan-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:6px;
}

.plan-button{
  min-height:58px;
  gap:3px;
  padding:8px;
  border-radius:12px;
}

.plan-button b{
  font-size:11px;
}

.plan-button small,
.plan-button .plan-limit{
  font-size:9px;
}

.program-foot{
  padding-top:2px;
}

.subscription-stage,
.checkout-panel,
.status-panel,
.catalog-panel,
.subscription-ledger{
  border-radius:18px;
}

.subscription-stage{
  padding:12px;
}

.stage-preview-card{
  gap:10px;
}

.stage-service-row{
  grid-template-columns:46px minmax(0,1fr) auto;
}

.stage-service-icon{
  width:46px;
  height:46px;
  border-radius:14px;
}

.stage-service-row strong{
  font-size:19px;
}

.stage-metrics{
  gap:6px;
}

.stage-metrics span{
  padding:9px;
}

.stage-app-strip{
  gap:5px;
  margin-top:10px;
}

.checkout-panel{
  padding:11px;
}

.checkout-facts{
  gap:6px;
}

.checkout-facts span{
  min-height:46px;
  padding:8px;
}

.checkout-actions{
  gap:7px;
}

.charge-link,
.subscribe-button{
  min-height:40px;
  border-radius:12px;
}

@media (max-width:1180px){
  .subscription-shell{
    width:calc(100% - 30px);
  }

  .summary-stack{
    grid-template-columns:minmax(0,1fr) minmax(280px,.42fr);
  }
}

@media (max-width:760px){
  .subscription-shell{
    width:calc(100% - 20px);
    padding-top:12px;
    padding-bottom:58px;
  }

  .subscription-hero{
    grid-template-columns:1fr;
    gap:10px;
    margin-bottom:10px;
  }

  .hero-copy h1{
    font-size:clamp(28px,8.6vw,32px);
    white-space:nowrap;
  }

  .hero-text{
    max-width:32ch;
    margin-top:8px;
    line-height:1.44;
  }

  .account-strip{
    gap:6px;
  }

  .account-strip span{
    min-height:50px;
    padding:8px;
    border-radius:12px;
  }

  .subscription-command{
    gap:8px;
    padding:9px;
    border-radius:16px;
  }

  .selection-summary{
    padding:9px;
    border-radius:13px;
  }

  .subscription-dashboard{
    grid-template-columns:1fr;
    gap:10px;
  }

  .catalog-panel,
  .summary-stack,
  .status-panel{
    width:100%;
  }

  .status-panel{
    order:1;
  }

  .catalog-panel{
    order:2;
  }

  .summary-stack{
    grid-template-columns:1fr;
    position:static;
    order:3;
  }

  .panel-head,
  .ledger-head{
    min-height:52px;
    padding:12px;
  }

  .program-card{
    gap:9px;
    padding:10px;
    border-radius:15px;
  }

  .program-head{
    grid-template-columns:38px minmax(0,1fr);
    gap:8px;
    align-items:start;
  }

  .program-icon{
    width:38px;
    height:38px;
    border-radius:12px;
  }

  .program-state{
    grid-column:2;
    justify-self:start;
    margin-top:3px;
  }

  .program-limit-note{
    width:100%;
    margin-top:5px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .plan-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:5px;
  }

  .plan-button{
    min-height:48px;
    justify-items:center;
    padding:6px 4px;
    text-align:center;
  }

  .plan-button b{
    font-size:10px;
  }

  .plan-button small{
    font-size:8.5px;
  }

  .plan-button .plan-limit{
    display:none;
  }

  .program-foot{
    grid-template-columns:1fr;
    gap:7px;
    font-size:10px;
  }

  .program-foot span{
    display:none;
  }

  .program-foot button{
    width:100%;
    height:34px;
  }

  .subscription-stage,
  .checkout-panel,
  .status-panel,
  .catalog-panel,
  .subscription-ledger{
    border-radius:16px;
  }

  .stage-service-row{
    grid-template-columns:42px minmax(0,1fr) auto;
    gap:8px;
  }

  .stage-service-icon{
    width:42px;
    height:42px;
  }

  .stage-service-row strong{
    font-size:17px;
  }

  .checkout-facts{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .checkout-facts span{
    min-height:44px;
  }
}

@media (max-width:430px){
  .subscription-topbar{
    width:calc(100% - 16px);
  }

  .subscription-shell{
    width:calc(100% - 18px);
  }

  .account-strip b{
    font-size:10px;
  }

  .subscription-steps span em{
    max-width:none;
  }

  .program-foot{
    grid-template-columns:1fr;
  }

  .program-foot button{
    width:100%;
  }

  .stage-metrics{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .stage-app-strip{
    grid-template-columns:repeat(5,minmax(0,1fr));
  }
}

/* TRUE EOF subscription UX pass: mobile-first task order and tighter app cards. */
.subscription-shell {
  width: min(1080px, calc(100% - 36px));
}

.subscription-dashboard {
  grid-template-columns: minmax(214px, .46fr) minmax(0, 1.42fr) minmax(280px, .66fr);
}

.program-card {
  border-radius: 16px;
}

.program-head strong {
  letter-spacing: 0;
}

.program-foot button,
.charge-link,
.subscribe-button {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .subscription-shell {
    width: min(100% - 18px, 460px);
    padding-top: 10px;
  }

  .subscription-dashboard {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .catalog-panel {
    order: 1 !important;
  }

  .summary-stack {
    order: 2 !important;
  }

  .status-panel {
    order: 3 !important;
  }

  .subscription-hero {
    gap: 9px;
  }

  .hero-copy h1 {
    font-size: clamp(29px, 8vw, 34px);
  }

  .account-strip {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .account-strip span {
    min-height: 48px;
  }

  .mobile-subscription-bar {
    margin: -1px 0 10px;
  }

  .program-card {
    gap: 8px !important;
    padding: 10px !important;
  }

  .program-head {
    grid-template-columns: 36px minmax(0, 1fr) auto !important;
    align-items: center !important;
  }

  .program-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 11px !important;
  }

  .program-state {
    grid-column: auto !important;
    justify-self: end !important;
    margin-top: 0 !important;
  }

  .program-head small {
    display: block !important;
    margin-top: 2px !important;
    overflow: hidden !important;
    color: rgba(247, 250, 255, .62) !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .program-limit-note {
    display: none !important;
  }

  .plan-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  .plan-button {
    min-height: 48px !important;
    padding: 6px 4px !important;
  }

  .plan-button b {
    font-size: 10px !important;
  }

  .plan-button small,
  .plan-button .plan-limit {
    display: none !important;
  }

  .program-foot {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .program-foot span {
    display: none !important;
  }

  .program-foot button {
    width: 100% !important;
    height: 32px !important;
  }

  .empty-card--status {
    min-height: 104px !important;
  }

  .stage-preview-card {
    gap: 8px !important;
  }

  .stage-metrics,
  .checkout-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 430px) {
  .subscription-topbar {
    width: min(100% - 14px, 460px);
  }

  .account-strip b,
  .selection-summary strong,
  .selection-summary b {
    font-size: 10px !important;
  }

  .stage-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* TRUE EOF subscription UX polish v3: cleaner paid-app dashboard density. */
.subscription-topbar,
.subscription-shell {
  width: min(1120px, calc(100% - 36px));
}

.subscription-shell {
  padding-top: 16px;
}

.subscription-hero {
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.58fr);
  align-items: stretch;
  gap: 12px;
}

.hero-copy {
  display: grid;
  align-content: center;
  min-height: 132px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(117, 234, 255, 0.11), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.026));
  padding: 20px 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.hero-copy h1 {
  font-size: clamp(34px, 4vw, 48px);
}

.hero-text {
  max-width: 52ch;
}

.account-strip {
  align-content: stretch;
}

.account-strip span {
  align-content: center;
  min-height: 100%;
}

.subscription-command {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 10px;
  padding: 11px;
}

.subscription-steps {
  grid-column: 1 / -1;
  padding-bottom: 10px;
}

.plan-shortcuts {
  grid-column: 1;
}

.selection-summary {
  grid-column: 2;
  grid-template-columns: minmax(0, 1.18fr) minmax(78px, 0.55fr) minmax(58px, 0.42fr) minmax(82px, 0.62fr) auto;
  align-items: center;
  align-content: stretch;
  gap: 7px;
  padding: 10px;
}

.selection-summary > div {
  grid-column: auto;
}

.selection-summary > em {
  grid-column: auto;
  justify-self: end;
  text-align: center;
}

.subscription-dashboard {
  grid-template-columns: minmax(210px, 0.44fr) minmax(0, 1.56fr) minmax(286px, 0.7fr);
  gap: 12px;
}

.panel-head,
.ledger-head {
  min-height: 56px;
  padding: 14px;
}

.active-list,
.program-grid,
.ledger-list {
  gap: 9px;
  padding: 10px;
}

.program-card {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 10px;
  padding: 12px;
  border-radius: 15px;
}

.program-head {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 9px;
}

.program-icon {
  width: 42px;
  height: 42px;
}

.program-head small {
  margin-top: 3px;
  line-height: 1.34;
}

.program-limit-note {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.plan-button {
  min-height: 62px;
  align-content: center;
  justify-items: center;
  padding: 8px 6px;
  text-align: center;
}

.plan-button b {
  font-size: 12px;
}

.plan-button small {
  font-size: 9px;
}

.plan-button .plan-limit {
  max-width: 100%;
  font-size: 9px;
}

.program-foot {
  padding-top: 1px;
}

.summary-stack {
  gap: 10px;
}

.checkout-panel,
.subscription-stage {
  border-radius: 16px;
}

.checkout-panel {
  padding: 12px;
}

.checkout-main h2 {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.checkout-main h2 small {
  justify-self: end;
}

.checkout-facts span {
  min-height: 48px;
}

.stage-service-row {
  grid-template-columns: 46px minmax(0, 1fr) auto;
}

.stage-service-icon {
  width: 46px;
  height: 46px;
}

.stage-service-row strong {
  font-size: 20px;
}

.stage-metrics span {
  padding: 9px;
}

.stage-app-strip {
  gap: 5px;
}

.subscription-ledger {
  margin-top: 12px;
}

.ledger-empty-state {
  min-height: 70px;
}

@media (max-width: 1080px) {
  .subscription-command,
  .subscription-dashboard {
    grid-template-columns: 1fr;
  }

  .plan-shortcuts,
  .selection-summary {
    grid-column: 1;
  }

  .selection-summary {
    grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(92px, 0.4fr)) auto;
  }

  .selection-summary > div,
  .selection-summary > em {
    grid-column: auto;
  }

  .selection-summary > em {
    justify-self: end;
  }

  .status-panel,
  .summary-stack {
    position: static;
  }

  .summary-stack {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  }
}

@media (max-width: 760px) {
  .subscription-topbar,
  .subscription-shell {
    width: min(100% - 18px, 480px);
  }

  .subscription-shell {
    padding-top: 10px;
  }

  .subscription-hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 118px;
    padding: 18px;
  }

  .hero-copy h1 {
    white-space: normal;
  }

  .account-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .subscription-command {
    gap: 8px;
  }

  .selection-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .selection-summary > div,
  .selection-summary > em {
    grid-column: 1 / -1;
  }

  .selection-summary > em {
    justify-self: stretch;
  }

  .summary-stack {
    grid-template-columns: 1fr;
  }

  .program-card {
    grid-template-columns: 1fr;
  }

  .program-head {
    grid-template-columns: 38px minmax(0, 1fr) auto !important;
  }

  .program-limit-note {
    display: inline-flex !important;
    width: fit-content;
    max-width: 100%;
    margin-top: 5px;
    white-space: nowrap;
  }

  .plan-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .checkout-main h2 {
    grid-template-columns: 1fr;
  }

  .checkout-main h2 small {
    justify-self: start;
  }

  .ledger-empty-state {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .program-limit-note {
    display: none !important;
  }

  .account-strip span {
    padding: 8px 6px;
  }

  .account-strip small {
    font-size: 9px;
  }

  .plan-button {
    min-height: 50px !important;
  }
}

/* TRUE EOF subscription UX polish v4: catalog-first dashboard and tighter action hierarchy. */
.subscription-topbar,
.subscription-shell {
  width: min(1080px, calc(100% - 36px)) !important;
}

.subscription-shell {
  padding-top: 14px !important;
}

.subscription-hero {
  grid-template-columns: minmax(0, .86fr) minmax(330px, .52fr) !important;
  gap: 12px !important;
  margin-bottom: 11px !important;
}

.hero-copy {
  min-height: 120px !important;
  padding: 18px 20px !important;
}

.hero-copy h1 {
  font-size: clamp(32px, 3.8vw, 46px) !important;
}

.hero-text {
  max-width: 46ch !important;
  margin-top: 9px !important;
}

.account-strip {
  grid-template-columns: 1.15fr .9fr .72fr !important;
}

.account-strip span {
  min-height: 120px !important;
  padding: 12px !important;
}

.subscription-command {
  grid-template-columns: minmax(0, 1fr) minmax(280px, .58fr) !important;
  gap: 9px !important;
  margin-bottom: 11px !important;
  padding: 10px !important;
}

.subscription-steps {
  padding-bottom: 9px !important;
}

.plan-shortcuts {
  gap: 7px !important;
}

.plan-shortcuts button {
  min-height: 58px !important;
  border-radius: 13px !important;
  padding: 8px !important;
}

.plan-shortcuts button span {
  width: 32px !important;
  height: 32px !important;
  border-radius: 11px !important;
}

.selection-summary {
  grid-template-columns: minmax(0, 1fr) minmax(82px, .36fr) minmax(64px, .28fr) minmax(78px, .38fr) auto !important;
  gap: 6px !important;
  padding: 9px !important;
  border-radius: 13px !important;
}

.subscription-dashboard {
  grid-template-columns: minmax(0, 1fr) minmax(292px, .34fr) !important;
  grid-template-areas:
    "catalog summary"
    "status summary" !important;
  align-items: start !important;
  gap: 12px !important;
}

.catalog-panel {
  grid-area: catalog !important;
}

.summary-stack {
  grid-area: summary !important;
  position: sticky !important;
  top: 70px !important;
  gap: 10px !important;
}

.status-panel {
  grid-area: status !important;
  position: static !important;
}

.panel-head,
.ledger-head {
  min-height: 52px !important;
  padding: 12px 14px !important;
}

.panel-head h2,
.ledger-head h2,
.checkout-main h2 {
  font-size: 18px !important;
}

.active-list,
.program-grid,
.ledger-list {
  gap: 8px !important;
  padding: 10px !important;
}

.active-list {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.empty-card--status {
  min-height: 102px !important;
  grid-column: 1 / -1 !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  place-items: center start !important;
  text-align: left !important;
  gap: 12px !important;
  padding: 14px !important;
}

.empty-card--status .empty-kicker {
  align-self: center !important;
}

.empty-card--status b,
.empty-card--status small {
  max-width: none !important;
}

.empty-card--status .empty-actions {
  justify-content: flex-end !important;
}

.program-card {
  grid-template-columns: minmax(0, .74fr) minmax(380px, 1.26fr) !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 11px !important;
  border-radius: 14px !important;
}

.program-head {
  grid-template-columns: 40px minmax(0, 1fr) auto !important;
  align-items: center !important;
}

.program-icon {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
}

.program-head strong {
  font-size: 15px !important;
}

.program-head small {
  -webkit-line-clamp: 1 !important;
  line-height: 1.28 !important;
}

.program-limit-note {
  max-width: 100% !important;
  margin-top: 6px !important;
  padding: 4px 7px !important;
  font-size: 9px !important;
}

.program-state {
  padding: 5px 7px !important;
}

.plan-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 5px !important;
}

.plan-button {
  min-height: 54px !important;
  gap: 2px !important;
  padding: 7px 5px !important;
  border-radius: 11px !important;
}

.plan-button b {
  font-size: 11px !important;
}

.plan-button small,
.plan-button .plan-limit {
  font-size: 8.5px !important;
}

.program-foot {
  grid-column: 1 / -1 !important;
  min-height: 30px !important;
  padding-top: 0 !important;
}

.program-foot button {
  height: 30px !important;
  border-radius: 10px !important;
}

.subscription-stage,
.checkout-panel,
.subscription-ledger,
.status-panel,
.catalog-panel {
  border-radius: 16px !important;
}

.subscription-stage,
.checkout-panel {
  padding: 11px !important;
}

.stage-preview-card {
  gap: 9px !important;
}

.stage-service-row {
  grid-template-columns: 42px minmax(0, 1fr) auto !important;
  gap: 8px !important;
}

.stage-service-icon {
  width: 42px !important;
  height: 42px !important;
  border-radius: 13px !important;
}

.stage-service-row strong {
  font-size: 18px !important;
}

.stage-metrics {
  gap: 5px !important;
}

.stage-metrics span,
.checkout-facts span {
  min-height: 44px !important;
  padding: 8px !important;
}

.stage-app-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 5px !important;
  margin-top: 9px !important;
}

.checkout-facts {
  gap: 6px !important;
}

.checkout-actions {
  gap: 7px !important;
}

.charge-link,
.subscribe-button {
  min-height: 38px !important;
}

.subscription-ledger {
  margin-top: 12px !important;
}

.ledger-empty-state {
  min-height: 64px !important;
  padding: 10px !important;
}

@media (max-width: 1120px) {
  .subscription-command,
  .subscription-dashboard {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "catalog"
      "summary"
      "status" !important;
  }

  .plan-shortcuts,
  .selection-summary {
    grid-column: 1 !important;
  }

  .summary-stack {
    position: static !important;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .42fr) !important;
  }
}

@media (max-width: 760px) {
  .subscription-topbar,
  .subscription-shell {
    width: min(100% - 18px, 470px) !important;
  }

  .subscription-hero {
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }

  .hero-copy {
    min-height: 112px !important;
    padding: 16px !important;
  }

  .hero-copy h1 {
    font-size: clamp(28px, 8vw, 33px) !important;
    white-space: normal !important;
  }

  .account-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .account-strip span {
    min-height: 48px !important;
    padding: 8px 6px !important;
  }

  .subscription-command {
    gap: 8px !important;
    padding: 9px !important;
  }

  .plan-shortcuts {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .selection-summary {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .selection-summary > span {
    display: none !important;
  }

  .selection-summary > div,
  .selection-summary > em {
    grid-column: auto !important;
  }

  .selection-summary > em {
    justify-self: end !important;
  }

  .summary-stack {
    grid-template-columns: 1fr !important;
  }

  .active-list {
    grid-template-columns: 1fr !important;
  }

  .empty-card--status {
    grid-template-columns: 1fr !important;
    place-items: center !important;
    text-align: center !important;
  }

  .empty-card--status .empty-actions {
    justify-content: center !important;
  }

  .program-card {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 10px !important;
  }

  .program-head {
    grid-template-columns: 36px minmax(0, 1fr) auto !important;
  }

  .program-icon {
    width: 36px !important;
    height: 36px !important;
  }

  .program-limit-note {
    display: none !important;
  }

  .plan-button {
    min-height: 46px !important;
    padding: 6px 4px !important;
  }

  .plan-button small,
  .plan-button .plan-limit {
    display: none !important;
  }

  .program-foot {
    grid-template-columns: 1fr !important;
  }

  .program-foot span {
    display: none !important;
  }

  .program-foot button {
    width: 100% !important;
    height: 32px !important;
  }
}

@media (max-width: 430px) {
  .subscription-topbar,
  .subscription-shell {
    width: min(100% - 16px, 460px) !important;
  }

  .account-strip small {
    font-size: 9px !important;
  }

  .account-strip b {
    font-size: 10px !important;
  }

  .plan-shortcuts button b,
  .plan-button b {
    font-size: 9.5px !important;
  }
}

/* TRUE EOF subscription UX polish v4.1: keep selected plan text readable. */
@media (min-width: 1121px) {
  .subscription-command {
    grid-template-columns: minmax(0, 1fr) minmax(390px, .62fr) !important;
  }

  .selection-summary {
    grid-template-columns: minmax(128px, 1fr) minmax(78px, auto) minmax(54px, auto) minmax(64px, auto) auto !important;
  }

  .selection-summary strong,
  .selection-summary b {
    font-size: 12px !important;
  }
}

/* TRUE EOF subscription text fit v5: tighter dashboard with non-clipping Korean labels. */
.hero-copy h1,
.panel-head h2,
.checkout-main h2,
.ledger-head h2 {
  line-height: 1.18 !important;
  padding-bottom: 2px !important;
}

.program-card strong,
.stage-service-row strong,
.stage-metrics b,
.checkout-facts b,
.selection-summary strong,
.selection-summary b {
  line-height: 1.24 !important;
  padding-bottom: 1px !important;
}

.program-card,
.plan-button,
.stage-metrics span,
.checkout-facts span {
  overflow: visible !important;
}

@media (max-width: 760px) {
  .subscription-shell {
    padding-top: 8px !important;
  }

  .subscription-hero {
    margin-bottom: 8px !important;
  }

  .hero-copy {
    min-height: 104px !important;
    padding: 14px !important;
  }

  .hero-copy h1 {
    line-height: 1.14 !important;
  }

  .subscription-command {
    margin-bottom: 8px !important;
  }

  .subscription-dashboard {
    gap: 9px !important;
  }

  .catalog-panel,
  .status-panel,
  .summary-stack,
  .subscription-ledger {
    margin-top: 0 !important;
  }

  .program-grid {
    gap: 8px !important;
  }

  .program-card {
    padding: 9px !important;
  }

  .panel-head {
    min-height: 42px !important;
  }
}

@media (max-width: 430px) {
  .hero-copy h1 {
    font-size: clamp(27px, 7.4vw, 31px) !important;
  }

  .program-head {
    gap: 8px !important;
  }

  .program-card strong {
    font-size: 15px !important;
  }
}

/* TRUE EOF subscription headline metric guard. */
.hero-copy h1 {
  overflow: visible !important;
  line-height: 1.32 !important;
  min-height: 1.32em !important;
}

@media (max-width: 760px) {
  .hero-copy h1 {
    line-height: 1.28 !important;
    min-height: 1.28em !important;
  }
}

/* TRUE EOF subscription UX polish v6: clean app subscription dashboard. */
.subscription-shell {
  width: min(1160px, calc(100% - 28px)) !important;
}

.subscription-hero {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px) !important;
  align-items: stretch !important;
}

.hero-copy,
.account-strip span,
.subscription-command,
.status-panel,
.catalog-panel,
.summary-stack > section,
.subscription-ledger {
  border: 1px solid rgba(255, 255, 255, .105) !important;
  background: linear-gradient(180deg, rgba(17, 24, 38, .9), rgba(9, 13, 22, .82)) !important;
  box-shadow: 0 18px 54px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .065) !important;
}

.hero-copy {
  display: grid !important;
  align-content: center !important;
  min-height: 174px !important;
  padding: clamp(22px, 3vw, 34px) !important;
  border-radius: 22px !important;
}

.hero-copy h1 {
  max-width: 12em !important;
  margin: 0 !important;
  font-size: clamp(34px, 4vw, 52px) !important;
  line-height: 1.14 !important;
  white-space: normal !important;
  word-break: keep-all !important;
}

.hero-text {
  max-width: 54ch !important;
  color: rgba(247, 250, 255, .7) !important;
}

.account-strip {
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}

.account-strip span {
  min-height: 0 !important;
  padding: 16px !important;
  border-radius: 18px !important;
}

.account-strip b {
  font-size: 17px !important;
}

.subscription-command {
  grid-template-columns: minmax(0, 1fr) !important;
  padding: 14px !important;
  border-radius: 22px !important;
}

.subscription-steps {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr) !important;
  align-items: center !important;
}

.subscription-steps span {
  min-width: 0 !important;
}

.plan-shortcuts {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.plan-shortcuts button {
  min-width: 0 !important;
  min-height: 76px !important;
  display: grid !important;
  align-content: center !important;
  gap: 4px !important;
  border-radius: 16px !important;
}

.plan-shortcuts button.is-selected,
.plan-shortcuts button[aria-pressed="true"] {
  border-color: rgba(117, 234, 255, .44) !important;
  background: linear-gradient(180deg, rgba(117, 234, 255, .17), rgba(117, 234, 255, .055)) !important;
}

.selection-summary {
  display: grid !important;
  grid-template-columns: minmax(180px, 1.2fr) repeat(3, minmax(92px, auto)) minmax(100px, auto) !important;
  gap: 10px !important;
  align-items: stretch !important;
}

.selection-summary > div,
.selection-summary > span,
.selection-summary > em {
  min-width: 0 !important;
  min-height: 58px !important;
  display: grid !important;
  align-content: center !important;
  border-radius: 14px !important;
}

.subscription-dashboard {
  grid-template-columns: minmax(230px, .74fr) minmax(0, 1.55fr) minmax(300px, .95fr) !important;
  gap: 14px !important;
  align-items: start !important;
}

.panel-head {
  gap: 12px !important;
  align-items: start !important;
}

.panel-head h2 {
  font-size: clamp(23px, 2.3vw, 32px) !important;
}

.program-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

.program-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 12px !important;
  padding: 16px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255, 255, 255, .105) !important;
  background: rgba(255, 255, 255, .045) !important;
}

.program-card.is-selected {
  border-color: rgba(var(--service-rgb), .5) !important;
  box-shadow: 0 0 0 1px rgba(var(--service-rgb), .18), 0 18px 40px rgba(var(--service-rgb), .08) !important;
}

.program-head {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: start !important;
}

.program-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 15px !important;
  background: rgba(var(--service-rgb), .13) !important;
  color: rgb(var(--service-rgb)) !important;
}

.program-head strong {
  display: block !important;
  margin-bottom: 3px !important;
  font-size: 18px !important;
}

.program-head small,
.program-limit-note,
.program-foot span {
  color: rgba(247, 250, 255, .68) !important;
  line-height: 1.5 !important;
}

.program-state {
  align-self: start !important;
  white-space: nowrap !important;
}

.plan-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.plan-button {
  min-width: 0 !important;
  min-height: 70px !important;
  display: grid !important;
  align-content: center !important;
  justify-items: start !important;
  gap: 3px !important;
  padding: 9px !important;
  border-radius: 14px !important;
}

.plan-button.is-selected,
.plan-button[aria-pressed="true"] {
  border-color: rgba(var(--service-rgb), .5) !important;
  background: rgba(var(--service-rgb), .12) !important;
}

.plan-button b,
.plan-button small,
.plan-button .plan-limit {
  overflow: hidden !important;
  max-width: 100% !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.program-foot {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px !important;
  align-items: center !important;
}

.program-foot button {
  min-height: 38px !important;
  border-radius: 12px !important;
}

.summary-stack {
  display: grid !important;
  gap: 14px !important;
}

.stage-preview-card,
.checkout-panel {
  overflow: hidden !important;
}

.stage-service-row {
  grid-template-columns: 46px minmax(0, 1fr) auto !important;
  gap: 12px !important;
}

.stage-metrics,
.checkout-facts {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.stage-metrics span,
.checkout-facts span {
  min-width: 0 !important;
  min-height: 64px !important;
}

.checkout-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}

.charge-link,
.subscribe-button {
  min-width: 0 !important;
  min-height: 46px !important;
  border-radius: 14px !important;
}

.subscription-ledger {
  margin-top: 14px !important;
  border-radius: 20px !important;
}

.ledger-empty-state,
.ledger-item {
  border-radius: 16px !important;
}

@media (max-width: 1080px) {
  .subscription-hero,
  .subscription-dashboard {
    grid-template-columns: 1fr !important;
  }

  .account-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .subscription-shell {
    width: min(100% - 20px, 560px) !important;
    padding-bottom: 94px !important;
  }

  .subscription-topbar {
    width: min(100% - 20px, 560px) !important;
    align-items: stretch !important;
  }

  .subscription-topbar nav {
    justify-content: flex-start !important;
  }

  .account-strip,
  .selection-summary,
  .stage-metrics,
  .checkout-facts,
  .checkout-actions {
    grid-template-columns: 1fr !important;
  }

  .plan-shortcuts,
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .subscription-steps {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .subscription-steps i {
    display: none !important;
  }

  .program-head {
    grid-template-columns: 42px minmax(0, 1fr) !important;
  }

  .program-state {
    grid-column: 2 !important;
    justify-self: start !important;
  }

  .program-foot {
    grid-template-columns: 1fr !important;
  }

  .mobile-subscription-bar {
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    width: auto !important;
    border-radius: 18px !important;
  }
}
