:root{
  --bg:#0b1020;
  --bg-soft:#11182d;
  --panel:#131d35;
  --panel-2:#182542;
  --text:#edf3ff;
  --muted:#aeb9d1;
  --line:rgba(255,255,255,0.10);
  --brand:#4f7cff;
  --brand-2:#83a3ff;
  --ok:#1fb46e;
  --warn:#ffb84d;
  --danger:#ff6b6b;
  --shadow:0 20px 50px rgba(0,0,0,0.28);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:linear-gradient(180deg,#09101d 0%, #0b1020 100%);
  color:var(--text);
  line-height:1.6;
}
a{color:var(--text);text-decoration:none}
.wrap{max-width:1160px;margin:0 auto;padding:0 24px}

.top{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:blur(10px);
  background:rgba(11,16,32,0.82);
  border-bottom:1px solid var(--line);
}
.topbar{
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: block;
  flex: 0 0 auto;
  object-fit: cover;
}

.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.brand-text strong{font-size:16px}
.brand-text small{font-size:12px;color:var(--muted)}

.main-nav{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.main-nav > a{opacity:.95}
.language-menu {
  position: relative;
  margin-left: 8px;
}

.language-menu-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.language-menu-button::-webkit-details-marker {
  display: none;
}

.language-menu-button::marker {
  content: "";
}

.language-menu-button:hover {
  background: rgba(255,255,255,0.06);
}

.language-menu-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.95;
}

.language-menu-current {
  line-height: 1;
  white-space: nowrap;
}

.language-menu-caret {
  font-size: 12px;
  color: var(--muted);
}

.language-menu-panel {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 176px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(11,16,32,0.98);
  box-shadow: var(--shadow);
  z-index: 110;
}

.language-menu[open] .language-menu-panel {
  display: grid;
  gap: 4px;
}

.language-menu-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
}

.language-menu-panel a:hover,
.language-menu-panel a.active {
  background: rgba(79,124,255,0.16);
  color: #fff;
}

.language-menu-panel small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.language-menu-panel a.active small {
  color: #dbe6ff;
}

@media (max-width: 720px) {
  .language-menu-panel {
    right: 0;
    left: auto;
  }

  .language-menu-button {
    padding: 10px 12px;
  }
}
.account-menu {
  position: relative;
}

.account-menu-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.account-menu-button::-webkit-details-marker {
  display: none;
}

.account-menu-button::marker {
  content: "";
}

.account-menu-caret {
  font-size: 12px;
  color: var(--muted);
}

.account-menu-panel {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 168px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(11,16,32,0.98);
  box-shadow: var(--shadow);
  z-index: 100;
}

.account-menu[open] .account-menu-panel {
  display: grid;
  gap: 4px;
}

.account-menu-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
}

.account-menu-panel a:hover {
  background: rgba(255,255,255,0.06);
}

@media (max-width: 720px) {
  .account-menu-panel {
    right: auto;
    left: 0;
  }
}

.page-shell{padding-top:28px;padding-bottom:56px}
.hero{
  padding:42px 0 28px;
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:20px;
  align-items:stretch;
}
.hero-card,.card{
  padding:24px;
  border-radius:20px;
  background:linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}
.hero-card h1{
  font-size:48px;
  line-height:1.08;
  margin:0 0 14px;
}
.hero-card p{
  margin:0;
  color:var(--muted);
  max-width:760px;
}
.hero-side{
  display:grid;
  gap:12px;
}
.metric{
  padding:18px;
  border-radius:18px;
  background:var(--panel);
  border:1px solid var(--line);
}
.metric .label{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--muted);
}
.metric .value{
  font-size:28px;
  font-weight:800;
  margin-top:6px;
}

.section{margin-top:28px}
.section h2{margin:0 0 12px;font-size:30px}
.muted{color:var(--muted)}
.row{
  display:flex;
  gap:12px;
  margin-top:18px;
  flex-wrap:wrap;
}
.grid{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
}
.card h3{margin:0 0 10px}
.card p{margin:0}
.card ul{margin:0;padding-left:18px;color:var(--muted)}

.badge{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  border:1px solid var(--line);
  color:#dbe6ff;
  background:rgba(255,255,255,0.04);
}
.highlight{
  background:linear-gradient(135deg, rgba(79,124,255,.18), rgba(131,163,255,.06));
  border-color:rgba(79,124,255,.30);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 16px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,0.03);
  color:#fff;
  font-weight:600;
}
.btn.primary{
  background:linear-gradient(135deg, var(--brand), #6f91ff);
  border-color:transparent;
}
.btn.ghost{
  background:transparent;
}
.btn:hover{transform:translateY(-1px)}

.form{
  display:flex;
  flex-direction:column;
  gap:10px;
  max-width:620px;
}
input, select{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,0.03);
  color:var(--text);
}
label{font-size:14px;font-weight:600}

.flash{margin:0 0 16px}
.flash-item{
  background:rgba(255,184,77,.12);
  border:1px solid rgba(255,184,77,.26);
  color:#ffe4b5;
  padding:12px 14px;
  border-radius:12px;
  margin-bottom:8px;
}

.price{
  font-size:30px;
  font-weight:800;
  margin-top:8px;
}
.plan-note{
  font-size:13px;
  color:var(--muted);
  margin-top:10px;
}
.check-list{
  display:grid;
  gap:8px;
  margin-top:12px;
}
.check-item{
  padding-left:18px;
  position:relative;
  color:var(--muted);
}
.check-item::before{
  content:"✓";
  position:absolute;
  left:0;
  color:var(--ok);
  font-weight:700;
}

.checkout-shell{
  display:grid;
  grid-template-columns:1fr 380px;
  gap:18px;
}
.order-box{
  padding:22px;
  border-radius:20px;
  background:var(--panel);
  border:1px solid var(--line);
}
.order-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:10px 0;
  border-bottom:1px dashed rgba(255,255,255,0.08);
}
.order-row:last-child{border-bottom:0}
.order-row span{color:var(--muted)}

.notice{
  padding:14px 16px;
  border-radius:14px;
  border:1px solid rgba(79,124,255,.24);
  background:rgba(79,124,255,.08);
  color:#d9e5ff;
}

.site-footer{
  border-top:1px solid var(--line);
  background:#09101c;
}
.footer-grid{
  padding-top:28px;
  padding-bottom:28px;
  display:grid;
  gap:18px;
  grid-template-columns:1.2fr .7fr .7fr 1fr;
}
.footer-grid h4{
  margin:0 0 8px;
  font-size:14px;
}
.footer-grid a,
.footer-copy{
  display:block;
  color:var(--muted);
  margin-bottom:6px;
  font-size:14px;
}
.footer-brand{
  font-size:18px;
  font-weight:800;
  margin-bottom:8px;
}
.footer-meta {
  color: var(--muted);   /* 핵심 */
  font-size: 12px;
  line-height: 1.25;
  margin-bottom: 4px;
  word-break: keep-all;
}

.kpi-grid{
  display:grid;
  gap:12px;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
}
.kpi-card{
  padding:18px;
  border-radius:16px;
  border:1px solid var(--line);
  background:var(--panel);
}
.kpi-card .k-label{font-size:12px;color:var(--muted);text-transform:uppercase}
.kpi-card .k-value{font-size:26px;font-weight:800;margin-top:6px}

@media (max-width: 900px){
  .hero,
  .checkout-shell,
  .footer-grid{
    grid-template-columns:1fr;
  }
  .hero-card h1{font-size:36px}
}

.legal-shell{
  display:grid;
  grid-template-columns:260px 1fr;
  gap:22px;
  align-items:start;
}

.legal-sidebar{
  position:sticky;
  top:104px;
  padding:18px;
  border-radius:20px;
  background:var(--panel);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

.legal-brand{
  font-size:14px;
  font-weight:800;
  color:#fff;
  margin-bottom:14px;
}

.legal-sidebar a{
  display:block;
  padding:10px 12px;
  border-radius:12px;
  color:var(--muted);
  margin-bottom:6px;
}

.legal-sidebar a:hover,
.legal-sidebar a.active{
  color:#fff;
  background:rgba(79,124,255,.16);
  border:1px solid rgba(79,124,255,.28);
}

.legal-doc{
  padding:30px;
  border-radius:24px;
  background:linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.03));
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

.legal-doc-head{
  padding-bottom:20px;
  border-bottom:1px solid var(--line);
  margin-bottom:22px;
}

.legal-doc h1{
  font-size:40px;
  line-height:1.12;
  margin:14px 0 10px;
}

.legal-updated{
  margin:14px 0 0;
  color:var(--muted);
  font-size:14px;
}

.legal-section{
  padding:18px 0;
  border-bottom:1px solid rgba(255,255,255,0.08);
}

.legal-section:last-child{
  border-bottom:0;
}

.legal-section h2{
  font-size:22px;
  margin:0 0 10px;
}

.legal-section p,
.legal-section li{
  color:var(--muted);
}

.legal-section p{
  margin:0 0 10px;
}

.legal-section ul{
  margin:8px 0 0;
  padding-left:20px;
}

.legal-info-list{
  display:grid;
  gap:10px;
}

.legal-info-list div{
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:12px 0;
  border-bottom:1px dashed rgba(255,255,255,0.10);
}

.legal-info-list div:last-child{
  border-bottom:0;
}

.legal-info-list span{
  color:var(--muted);
}

.legal-info-list strong{
  color:#fff;
  text-align:right;
}

@media (max-width: 900px){
  .legal-shell{
    grid-template-columns:1fr;
  }

  .legal-sidebar{
    position:relative;
    top:auto;
  }

  .legal-doc{
    padding:22px;
  }

  .legal-doc h1{
    font-size:30px;
  }

  .legal-info-list div{
    flex-direction:column;
    gap:4px;
  }

  .legal-info-list strong{
    text-align:left;
  }
}

/* --------------------------------------------------------------------------
   Social auth buttons
   -------------------------------------------------------------------------- */
.social-auth-list{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
  margin-top:24px;
  width:100%;
}

.social-auth-btn{
  width:100%;
  min-height:56px;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  transition:transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.social-auth-btn:hover{
  transform:translateY(-1px);
}

.social-auth-btn:focus-visible{
  outline:3px solid rgba(131,163,255,.55);
  outline-offset:3px;
}

/* Google: official G icon + HTML/CSS label */
.social-auth-btn--google{
  padding:0 16px;
  gap:10px;
  background:#ffffff;
  color:#1f1f1f;
  border:1px solid #747775;
  font-family:Roboto, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size:15px;
  font-weight:700;
  line-height:20px;
}

.social-auth-icon{
  width:20px;
  height:20px;
  flex:0 0 20px;
  display:block;
  object-fit:contain;
}

.social-auth-label{
  min-width:0;
  overflow-wrap:anywhere;
}

/* Kakao: official language-specific PNG button */
.social-auth-btn--kakao.social-auth-btn--image{
  padding:0;
  border:0;
  background:transparent;
  overflow:hidden;
}

.social-auth-image{
  display:block;
  width:100%;
  max-height:56px;
  object-fit:contain;
}

@media (max-width:640px){
  .social-auth-list{
    grid-template-columns:1fr;
  }
}

/* --------------------------------------------------------------------------
   Native select dropdown - dark theme fix
   -------------------------------------------------------------------------- */
select {
  color-scheme: dark;
  background-color: rgba(255,255,255,0.03);
  color: var(--text);
}

/* 펼쳐진 옵션 목록 배경/글자색 보정 */
select option,
select optgroup {
  background-color: var(--bg-soft);
  color: var(--text);
}

/* placeholder / disabled option */
select option:disabled {
  background-color: var(--bg-soft);
  color: rgba(174,185,209,0.72);
}

/* 선택된 option */
select option:checked {
  background-color: var(--panel-2);
  color: #fff;
}

/* required select의 placeholder가 선택된 상태 */
select:invalid {
  color: var(--muted);
}

select:focus {
  outline: 2px solid rgba(131,163,255,.45);
  outline-offset: 2px;
  border-color: rgba(131,163,255,.5);
}

/* --------------------------------------------------------------------------
   Account settings console
   -------------------------------------------------------------------------- */
.wa-account-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.wa-account-sidebar {
  position: sticky;
  top: 104px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.03));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.wa-account-sidebar-head {
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.wa-account-sidebar-eyebrow,
.wa-account-page-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.wa-account-sidebar-title {
  margin-top: 4px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.wa-account-nav {
  padding: 12px;
  display: grid;
  gap: 12px;
}

.wa-account-nav-group {
  display: grid;
  gap: 4px;
}

.wa-account-nav-label {
  padding: 10px 10px 6px;
  color: rgba(174,185,209,0.82);
  font-size: 12px;
  font-weight: 800;
}

.wa-account-nav-link {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  border: 1px solid transparent;
}

.wa-account-nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

.wa-account-nav-link.is-active {
  color: #fff;
  background: rgba(79,124,255,0.16);
  border-color: rgba(79,124,255,0.32);
}

.wa-account-nav-status {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--muted);
  background: rgba(255,255,255,0.035);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.wa-account-nav-status.is-done {
  color: #d8ffe9;
  border-color: rgba(31,180,110,.24);
  background: rgba(31,180,110,.10);
}

.wa-account-nav-status.is-current {
  color: #dbe6ff;
  border-color: rgba(79,124,255,.42);
  background: rgba(79,124,255,.14);
}

.wa-account-sidebar-foot {
  display: grid;
  gap: 4px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.wa-account-sidebar-foot span {
  color: var(--muted);
  font-size: 12px;
}

.wa-account-sidebar-foot strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  color: #fff;
  overflow-wrap: anywhere;
}

.wa-account-main {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.wa-account-page-heading {
  display: grid;
  gap: 8px;
}

.wa-account-page-heading h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.wa-account-page-heading p {
  margin: 0;
  max-width: 760px;
}

.wa-account-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 18px;
  align-items: stretch;
}

.wa-account-stage-hero,
.wa-account-side-card,
.wa-account-form-card,
.wa-account-tip-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
}

.wa-account-stage-hero {
  padding: 30px;
  border-color: rgba(79,124,255,.28);
  background:
    radial-gradient(circle at top left, rgba(79,124,255,.22), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
}

.wa-account-stage-hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.wa-account-stage-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
}

.wa-account-safe-note,
.wa-account-tip-card {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(31,180,110,.24);
  background: rgba(31,180,110,.08);
  color: #d8ffe9;
  line-height: 1.55;
}

.wa-account-tip-card {
  margin-top: 0;
  display: grid;
  gap: 6px;
}

.wa-account-tip-card p {
  margin: 0;
  color: rgba(216,255,233,.88);
}

.wa-account-side-card {
  padding: 24px;
  background: var(--panel);
}

.wa-account-side-card h3 {
  margin: 0 0 14px;
}

.wa-account-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(255,255,255,.10);
}

.wa-account-summary-row:last-child {
  border-bottom: 0;
}

.wa-account-summary-row span {
  color: var(--muted);
}

.wa-account-summary-row strong {
  text-align: right;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wa-account-detail {
  margin-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 12px;
}

.wa-account-detail summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 800;
}

.wa-account-detail div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  color: var(--muted);
}

.wa-account-detail strong {
  color: #fff;
  text-align: right;
  overflow-wrap: anywhere;
}

.wa-account-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.wa-account-flow-card {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
}

.wa-account-flow-card.is-current {
  border-color: rgba(79,124,255,.38);
  background: rgba(79,124,255,.09);
}

.wa-account-flow-card.is-done {
  border-color: rgba(31,180,110,.28);
  background: rgba(31,180,110,.07);
}

.wa-account-flow-num {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: rgba(79,124,255,.16);
  border: 1px solid rgba(79,124,255,.34);
  font-weight: 800;
}

.wa-account-flow-card h3 {
  margin: 0 0 8px;
}

.wa-account-flow-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.wa-account-form-card {
  padding: 24px;
}

.wa-account-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.wa-account-detail-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wa-account-detail-grid div {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.035);
  display: grid;
  gap: 4px;
}

.wa-account-detail-grid span {
  color: var(--muted);
  font-size: 13px;
}

.wa-account-detail-grid strong {
  overflow-wrap: anywhere;
}

.wa-account-check-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255,255,255,.10);
}

.wa-account-check-row:last-child {
  border-bottom: 0;
}

.wa-account-check-row > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  font-weight: 900;
}

.wa-account-check-row.is-done > span {
  background: rgba(31,180,110,.15);
  color: #d8ffe9;
}

.wa-account-check-row strong {
  display: block;
  color: #fff;
}

.wa-account-check-row p {
  margin: 3px 0 0;
  color: var(--muted);
}

.wa-aws-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.wa-aws-field {
  display: grid;
  gap: 7px;
}

.wa-aws-field-wide {
  grid-column: 1 / -1;
}

.wa-aws-field span {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.wa-aws-field small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.wa-aws-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.wa-aws-result-panel {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.wa-aws-status,
.ok,
.bad {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255,255,255,0.035);
}

.wa-aws-status.ok,
.ok {
  color: #d8ffe9;
  border-color: rgba(31,180,110,.28);
  background: rgba(31,180,110,.08);
  font-weight: 800;
}

.wa-aws-status.bad,
.bad {
  color: #ffd4d4;
  border-color: rgba(255,107,107,.30);
  background: rgba(255,107,107,.08);
  font-weight: 800;
}

.wa-aws-result {
  min-height: 160px;
  max-height: 360px;
  overflow: auto;
  white-space: pre-wrap;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.18);
  color: #dbe6ff;
  padding: 14px;
  border-radius: 14px;
}

@media (max-width: 980px) {
  .wa-account-layout,
  .wa-account-stage-grid {
    grid-template-columns: 1fr;
  }

  .wa-account-sidebar {
    position: relative;
    top: auto;
  }

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

@media (max-width: 640px) {
  .wa-account-stage-hero,
  .wa-account-side-card,
  .wa-account-form-card {
    padding: 20px;
    border-radius: 20px;
  }

  .wa-account-detail-grid,
  .wa-aws-form-grid {
    grid-template-columns: 1fr;
  }

  .wa-account-summary-row {
    flex-direction: column;
    gap: 4px;
  }

  .wa-account-summary-row strong {
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   Account settings sidebar grouping enhancement
   - 상위 그룹(개요/온보딩 진행/관리)과 하위 메뉴를 더 명확하게 구분
   - 기존 HTML 변경 없이 CSS만 덮어쓰는 안전한 override
   -------------------------------------------------------------------------- */
.wa-account-sidebar {
  background:
    radial-gradient(circle at 20% 0%, rgba(79,124,255,0.12), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.065), rgba(255,255,255,0.028));
}

.wa-account-nav {
  padding: 14px;
  gap: 16px;
}

.wa-account-nav-group {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 14px 10px 12px;
  border: 1px solid rgba(255,255,255,0.085);
  border-radius: 18px;
  background: rgba(255,255,255,0.026);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
}

.wa-account-nav-group::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 13px;
  bottom: 13px;
  width: 3px;
  border-radius: 999px;
  background: rgba(131,163,255,0.38);
  opacity: 0.92;
}

.wa-account-nav-group:nth-of-type(1) {
  background:
    linear-gradient(180deg, rgba(79,124,255,0.075), rgba(255,255,255,0.024));
  border-color: rgba(79,124,255,0.16);
}

.wa-account-nav-group:nth-of-type(1)::before {
  background: linear-gradient(180deg, #83a3ff, rgba(79,124,255,0.28));
}

.wa-account-nav-group:nth-of-type(2) {
  background:
    linear-gradient(180deg, rgba(124,252,189,0.062), rgba(255,255,255,0.024));
  border-color: rgba(124,252,189,0.14);
}

.wa-account-nav-group:nth-of-type(2)::before {
  background: linear-gradient(180deg, #7cfcbd, rgba(31,180,110,0.26));
}

.wa-account-nav-group:nth-of-type(3) {
  background:
    linear-gradient(180deg, rgba(255,184,77,0.055), rgba(255,255,255,0.024));
  border-color: rgba(255,184,77,0.13);
}

.wa-account-nav-group:nth-of-type(3)::before {
  background: linear-gradient(180deg, #ffcf7a, rgba(255,184,77,0.24));
}

.wa-account-nav-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  margin: 0 4px 5px 12px;
  padding: 0 0 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.075);
  color: #dbe6ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .105em;
  line-height: 1.2;
  text-transform: uppercase;
}

.wa-account-nav-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 16px currentColor;
  opacity: 0.86;
}

.wa-account-nav-link {
  position: relative;
  min-height: 42px;
  margin-left: 11px;
  padding: 9px 10px 9px 18px;
  border-radius: 13px;
  color: rgba(219,230,255,0.70);
  background: transparent;
}

.wa-account-nav-link::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(174,185,209,0.45);
  transform: translateY(-50%);
}

.wa-account-nav-link span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.wa-account-nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.058);
  border-color: rgba(255,255,255,0.085);
}

.wa-account-nav-link:hover::before {
  background: rgba(219,230,255,0.75);
}

.wa-account-nav-link.is-active {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(79,124,255,0.26), rgba(79,124,255,0.11));
  border-color: rgba(131,163,255,0.38);
  box-shadow:
    0 10px 24px rgba(79,124,255,0.10),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.wa-account-nav-link.is-active::before {
  width: 6px;
  height: 18px;
  border-radius: 999px;
  background: #83a3ff;
  box-shadow: 0 0 18px rgba(131,163,255,0.72);
}

.wa-account-nav-status {
  color: rgba(219,230,255,0.74);
  border-color: rgba(255,255,255,0.13);
  background: rgba(255,255,255,0.055);
}

.wa-account-nav-status.is-done {
  color: #dcffeb;
  border-color: rgba(124,252,189,0.28);
  background: rgba(31,180,110,0.14);
}

.wa-account-nav-status.is-current {
  color: #edf3ff;
  border-color: rgba(131,163,255,0.48);
  background: rgba(79,124,255,0.22);
}

.wa-account-nav-group:nth-of-type(2) .wa-account-nav-link.is-active {
  background:
    linear-gradient(90deg, rgba(31,180,110,0.22), rgba(31,180,110,0.09));
  border-color: rgba(124,252,189,0.32);
  box-shadow:
    0 10px 24px rgba(31,180,110,0.08),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.wa-account-nav-group:nth-of-type(2) .wa-account-nav-link.is-active::before {
  background: #7cfcbd;
  box-shadow: 0 0 18px rgba(124,252,189,0.56);
}

.wa-account-nav-group:nth-of-type(3) .wa-account-nav-link.is-active {
  background:
    linear-gradient(90deg, rgba(255,184,77,0.20), rgba(255,184,77,0.075));
  border-color: rgba(255,184,77,0.28);
  box-shadow:
    0 10px 24px rgba(255,184,77,0.07),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.wa-account-nav-group:nth-of-type(3) .wa-account-nav-link.is-active::before {
  background: #ffcf7a;
  box-shadow: 0 0 18px rgba(255,184,77,0.50);
}

.wa-account-sidebar-foot {
  margin: 0 14px 14px;
  padding: 14px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(0,0,0,0.12);
}

@media (max-width: 980px) {
  .wa-account-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .wa-account-nav-group {
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .wa-account-nav {
    grid-template-columns: 1fr;
  }

  .wa-account-nav-group {
    padding: 12px 9px 10px;
  }
}
/* --------------------------------------------------------------------------
   AWS onboarding guide modal and copy helpers
   -------------------------------------------------------------------------- */
.wa-aws-guide-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(124,252,189,0.18);
  background:
    radial-gradient(circle at 8% 0%, rgba(31,180,110,0.14), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.03));
}

.wa-aws-guide-card::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -90px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(79,124,255,0.10);
  pointer-events: none;
}

.wa-aws-guide-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.wa-aws-guide-head h2 {
  margin: 12px 0 6px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.wa-aws-guide-head p {
  margin: 0;
  max-width: 760px;
}

.wa-aws-guide-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: 280px;
}

.wa-aws-security-points {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.wa-aws-security-points div {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(124,252,189,0.16);
  background: rgba(31,180,110,0.075);
}

.wa-aws-security-points strong {
  display: block;
  color: #eafff2;
  font-size: 14px;
  margin-bottom: 4px;
}

.wa-aws-security-points span {
  display: block;
  color: rgba(216,255,233,0.84);
  font-size: 13px;
  line-height: 1.45;
}

.wa-aws-copy-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.wa-aws-copy-item {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 15px;
  background: rgba(0,0,0,0.13);
}

.wa-aws-copy-item span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.wa-aws-copy-item strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.wa-copy-mini {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255,255,255,0.055);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.wa-copy-mini:hover {
  background: rgba(79,124,255,0.20);
  border-color: rgba(131,163,255,0.38);
}

.wa-modal-open,
.wa-modal-open body {
  overflow: hidden;
}

.wa-modal[hidden] {
  display: none;
}

.wa-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.wa-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3,7,18,0.74);
  backdrop-filter: blur(10px);
}

.wa-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: min(86vh, 920px);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 0% 0%, rgba(79,124,255,0.16), transparent 34%),
    linear-gradient(180deg, rgba(19,29,53,0.98), rgba(11,16,32,0.98));
  box-shadow: 0 30px 90px rgba(0,0,0,0.54);
  overflow: hidden;
}

.wa-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.wa-modal-head h2 {
  margin: 10px 0 6px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.wa-modal-head p {
  margin: 0;
}

.wa-modal-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  background: rgba(255,255,255,0.055);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.wa-modal-close:hover {
  background: rgba(255,255,255,0.10);
}

.wa-aws-guide-modal-body {
  padding: 20px 24px 24px;
  overflow: auto;
  display: grid;
  gap: 16px;
}

.wa-aws-step-list {
  display: grid;
  gap: 10px;
}

.wa-aws-step-list div {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  background: rgba(255,255,255,0.035);
}

.wa-aws-step-list b {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #eaf1ff;
  background: rgba(79,124,255,0.20);
  border: 1px solid rgba(131,163,255,0.34);
}

.wa-aws-step-list span {
  color: rgba(237,243,255,0.92);
  line-height: 1.55;
}

.wa-aws-step-list code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(0,0,0,0.20);
  color: #fff;
}

.wa-aws-permission-note {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(124,252,189,0.22);
  background: rgba(31,180,110,0.085);
}

.wa-aws-permission-note strong {
  display: block;
  margin-bottom: 4px;
  color: #eafff2;
}

.wa-aws-permission-note p {
  margin: 0;
  color: rgba(216,255,233,0.88);
}

.wa-copy-code-card {
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  background: rgba(0,0,0,0.14);
  overflow: hidden;
}

.wa-copy-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.wa-copy-code-head h3 {
  margin: 0 0 2px;
}

.wa-copy-code-head p {
  margin: 0;
  font-size: 13px;
}

.wa-copy-code {
  max-height: 360px;
  margin: 0;
  padding: 16px;
  overflow: auto;
  color: #eaf1ff;
  background: rgba(4,8,18,0.84);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre;
}

.wa-copy-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.wa-copy-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 260;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(124,252,189,0.28);
  background: rgba(14,49,38,0.96);
  color: #eafff2;
  box-shadow: 0 16px 44px rgba(0,0,0,0.36);
  font-size: 14px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .15s ease, transform .15s ease;
}

.wa-copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .wa-aws-guide-head {
    grid-template-columns: 1fr;
  }

  .wa-aws-guide-actions {
    justify-content: flex-start;
    min-width: 0;
  }

  .wa-aws-security-points,
  .wa-aws-copy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .wa-modal {
    padding: 12px;
  }

  .wa-modal-panel {
    max-height: 90vh;
    border-radius: 20px;
  }

  .wa-modal-head,
  .wa-aws-guide-modal-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .wa-copy-code-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* --------------------------------------------------------------------------
   AWS onboarding region selector and hidden account automation note
   -------------------------------------------------------------------------- */
.wa-aws-system-note {
  display: grid;
  gap: 4px;
  margin: 16px 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(131,163,255,0.22);
  background: rgba(79,124,255,0.075);
}

.wa-aws-system-note strong {
  color: #edf3ff;
  font-size: 14px;
}

.wa-aws-system-note span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.wa-aws-field select {
  min-height: 48px;
  font-weight: 700;
}

.wa-aws-field optgroup {
  font-weight: 900;
}

.wa-aws-field option:disabled {
  color: rgba(174,185,209,0.54);
}


/* --------------------------------------------------------------------------
   AWS onboarding verification/save state
   -------------------------------------------------------------------------- */
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: .48;
  cursor: not-allowed;
  transform: none;
}

.btn:disabled:hover,
.btn[aria-disabled="true"]:hover {
  transform: none;
}

.wa-aws-readonly-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.wa-aws-readonly-field input[readonly] {
  color: #dce7ff;
  background: rgba(255,255,255,0.025);
  border-color: rgba(131,163,255,0.22);
  cursor: default;
}

.wa-aws-readonly-field input[readonly]:focus {
  outline: 2px solid rgba(131,163,255,.35);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .wa-aws-readonly-field {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Onboarding progress component
   -------------------------------------------------------------------------- */
.wa-onboarding-card {
  margin-top: 28px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  padding: 24px;
  background:
    radial-gradient(circle at 10% 0%, rgba(79,124,255,0.14), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(31,180,110,0.10), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.03));
  box-shadow: var(--shadow);
}

.wa-onboarding-card h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.wa-onboarding-list {
  display: grid;
  gap: 14px;
}

.wa-onboarding-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 22px;
  background: rgba(255,255,255,0.035);
}

.wa-onboarding-item.is-done {
  border-color: rgba(31,180,110,0.28);
  background: rgba(31,180,110,0.07);
}

.wa-onboarding-item.is-current {
  border-color: rgba(79,124,255,0.45);
  background:
    linear-gradient(135deg, rgba(79,124,255,0.20), rgba(131,163,255,0.07)),
    rgba(255,255,255,0.035);
  box-shadow:
    0 14px 36px rgba(79,124,255,0.12),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.wa-onboarding-dot {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #dbe6ff;
  background: rgba(79,124,255,0.14);
  border: 1px solid rgba(131,163,255,0.24);
}

.wa-onboarding-item.is-done .wa-onboarding-dot {
  color: #d8ffe9;
  background: rgba(31,180,110,0.15);
  border-color: rgba(31,180,110,0.30);
}

.wa-onboarding-item.is-current .wa-onboarding-dot {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #6f91ff);
  border-color: transparent;
}

.wa-onboarding-body {
  min-width: 0;
}

.wa-onboarding-body strong {
  display: block;
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
}

.wa-onboarding-body .muted {
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.55;
}

.wa-status-pill {
  min-width: 76px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.045);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.wa-status-pill.ok {
  color: #d8ffe9;
  border-color: rgba(31,180,110,0.28);
  background: rgba(31,180,110,0.12);
}

.wa-status-pill.current {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), #6f91ff);
}

.wa-onboarding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

@media (max-width: 720px) {
  .wa-onboarding-card {
    padding: 18px;
    border-radius: 22px;
  }

  .wa-onboarding-item {
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: flex-start;
  }

  .wa-onboarding-dot {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

  .wa-status-pill {
    grid-column: 2;
    justify-self: flex-start;
    margin-top: 2px;
  }
}

/* --------------------------------------------------------------------------
   Notification settings
   -------------------------------------------------------------------------- */
.wa-account-nav-group + .wa-account-nav-group {
  margin-top: 18px;
}

.wa-aws-result-summary {
  border: 1px solid rgba(31,180,110,.18);
  background: rgba(31,180,110,.06);
  border-radius: 16px;
  padding: 14px;
}

.wa-aws-result-summary-head {
  display: grid;
  gap: 8px;
}

.wa-aws-result-summary-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.wa-aws-result-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.wa-aws-result-summary-grid div {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.14);
  border-radius: 12px;
  padding: 10px;
  min-width: 0;
}

.wa-aws-result-summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
}

.wa-aws-result-summary-grid strong {
  display: block;
  color: #fff;
  font-size: 13px;
  word-break: break-all;
}

.wa-aws-result-next {
  margin-top: 12px;
  color: #dbe6ff;
  font-size: 13px;
  font-weight: 800;
}

.wa-aws-result-details {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 12px;
}

.wa-aws-result-details > summary {
  cursor: pointer;
  color: #fff;
  font-weight: 900;
}

.wa-aws-result-notice {
  margin: 10px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.badge.danger {
  background: rgba(255,107,107,.12);
  border-color: rgba(255,107,107,.28);
  color: #ffd4d4;
}

@media (max-width: 720px) {
  .wa-aws-result-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Global content light theme refresh
   - Keep top navigation and footer dark.
   - Apply pricing-style light SaaS design to page body content only.
   - Safe append-only override: add this block at the end of site.css.
   -------------------------------------------------------------------------- */
body {
  background:
    radial-gradient(circle at 50% -8%, rgba(99, 102, 241, 0.10), transparent 32%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  color: #0f172a;
}

/* Header / footer intentionally stay on the existing dark theme. */
.top {
  background: rgba(11, 16, 32, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.10);
}

.site-footer {
  color: var(--text);
  background: #09101c;
  border-top-color: rgba(255, 255, 255, 0.10);
}

/* Main content gets its own light token set without touching header/footer. */
.page-shell {
  --bg: #f8fafc;
  --bg-soft: #f1f5f9;
  --panel: #ffffff;
  --panel-2: #eff6ff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #4f7cff;
  --brand-2: #6d7dfb;
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --shadow: 0 18px 55px rgba(15, 23, 42, 0.08);

  min-height: calc(100vh - 76px);
  color: var(--text);
}

.page-shell a {
  color: #1d4ed8;
}

.page-shell h1,
.page-shell h2,
.page-shell h3,
.page-shell h4,
.page-shell strong,
.page-shell label {
  color: #0f172a;
}

.page-shell .muted,
.page-shell .card ul,
.page-shell .hero-card p,
.page-shell .plan-note,
.page-shell .order-row span,
.page-shell .kpi-card .k-label,
.page-shell .legal-section p,
.page-shell .legal-section li,
.page-shell .legal-info-list span,
.page-shell .wa-account-sidebar-eyebrow,
.page-shell .wa-account-page-kicker,
.page-shell .wa-account-page-heading p,
.page-shell .wa-account-stage-hero p,
.page-shell .wa-account-flow-card p,
.page-shell .wa-account-summary-row span,
.page-shell .wa-account-check-row p,
.page-shell .wa-aws-field small,
.page-shell .wa-account-detail summary,
.page-shell .wa-account-detail div {
  color: #64748b;
}

.page-shell .hero-card,
.page-shell .card,
.page-shell .metric,
.page-shell .kpi-card,
.page-shell .order-box,
.page-shell .legal-sidebar,
.page-shell .legal-doc,
.page-shell .wa-account-sidebar,
.page-shell .wa-account-stage-hero,
.page-shell .wa-account-side-card,
.page-shell .wa-account-form-card,
.page-shell .wa-account-tip-card,
.page-shell .wa-account-flow-card,
.page-shell .wa-account-detail-grid div,
.page-shell .wa-aws-guide-card,
.page-shell .wa-aws-copy-item {
  color: #0f172a;
  background:
    radial-gradient(circle at 0% 0%, rgba(96, 165, 250, 0.09), transparent 30%),
    #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
}

.page-shell .hero-card,
.page-shell .legal-doc,
.page-shell .wa-account-stage-hero,
.page-shell .wa-aws-guide-card {
  border-radius: 28px;
}

.page-shell .hero-card {
  position: relative;
  overflow: hidden;
  border-color: #dbeafe;
  background:
    radial-gradient(circle at 5% 0%, rgba(79, 124, 255, 0.16), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.page-shell .hero-card::after {
  content: "";
  position: absolute;
  right: -84px;
  top: -90px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(79, 124, 255, 0.10);
  pointer-events: none;
}

.page-shell .hero-card > * {
  position: relative;
  z-index: 1;
}

.page-shell .hero-card h1 {
  letter-spacing: -0.055em;
}

.page-shell .card {
  border-radius: 22px;
}

.page-shell .card:hover,
.page-shell .kpi-card:hover,
.page-shell .metric:hover,
.page-shell .wa-account-flow-card:hover {
  transform: translateY(-1px);
  border-color: #bfdbfe;
  box-shadow: 0 22px 60px rgba(37, 99, 235, 0.10);
}

.page-shell .section h2 {
  color: #0f172a;
  letter-spacing: -0.035em;
}

.page-shell .badge {
  color: #2563eb;
  background: #eff6ff;
  border-color: #dbeafe;
  font-weight: 850;
}

.page-shell .highlight,
.page-shell .badge.highlight {
  color: #1d4ed8;
  background: linear-gradient(135deg, #dbeafe, #eef2ff);
  border-color: #bfdbfe;
}

.page-shell .btn {
  min-height: 46px;
  border-radius: 14px;
  border-color: #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-weight: 850;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.page-shell .btn.primary {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #4f7cff 0%, #6d7dfb 55%, #7c3aed 100%);
  box-shadow: 0 16px 30px rgba(79, 124, 255, 0.27);
}

.page-shell .btn.ghost {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #dbeafe;
}

.page-shell .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.page-shell input,
.page-shell select,
.page-shell textarea {
  color-scheme: light;
  color: #0f172a;
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.page-shell input::placeholder,
.page-shell textarea::placeholder {
  color: #94a3b8;
}

.page-shell input:focus,
.page-shell select:focus,
.page-shell textarea:focus {
  outline: 3px solid rgba(79, 124, 255, 0.18);
  outline-offset: 1px;
  border-color: rgba(79, 124, 255, 0.65);
}

.page-shell select option,
.page-shell select optgroup {
  color: #0f172a;
  background-color: #ffffff;
}

.page-shell select option:disabled {
  color: #94a3b8;
  background-color: #f8fafc;
}

.page-shell select option:checked {
  color: #0f172a;
  background-color: #dbeafe;
}

.page-shell .flash-item {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}

.page-shell .notice {
  color: #334155;
  background: #ffffff;
  border-color: #dbeafe;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
}

.page-shell .price {
  color: #0f172a;
  letter-spacing: -0.035em;
}

.page-shell .check-item {
  color: #475569;
}

.page-shell .check-item::before {
  color: #2563eb;
}

.page-shell .order-row {
  border-bottom-color: #e2e8f0;
}

.page-shell .kpi-card .k-value,
.page-shell .metric .value {
  color: #0f172a;
}

/* Legal / policy pages */
.page-shell .legal-brand,
.page-shell .legal-info-list strong {
  color: #0f172a;
}

.page-shell .legal-sidebar a {
  color: #64748b;
}

.page-shell .legal-sidebar a:hover,
.page-shell .legal-sidebar a.active {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #dbeafe;
}

.page-shell .legal-doc-head,
.page-shell .legal-section,
.page-shell .legal-info-list div {
  border-color: #e2e8f0;
}

/* Account settings / onboarding shared components */
.page-shell .wa-account-sidebar-head,
.page-shell .wa-account-sidebar-foot,
.page-shell .wa-account-detail,
.page-shell .wa-account-check-row,
.page-shell .wa-account-summary-row {
  border-color: #e2e8f0;
}

.page-shell .wa-account-sidebar-title,
.page-shell .wa-account-check-row strong,
.page-shell .wa-account-detail strong,
.page-shell .wa-account-summary-row strong,
.page-shell .wa-aws-field span {
  color: #0f172a;
}

.page-shell .wa-account-nav-group {
  background: #f8fafc;
  border-color: #e2e8f0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.page-shell .wa-account-nav-group:nth-of-type(1) {
  background: linear-gradient(180deg, #eff6ff, #ffffff);
  border-color: #dbeafe;
}

.page-shell .wa-account-nav-group:nth-of-type(2) {
  background: linear-gradient(180deg, #ecfdf5, #ffffff);
  border-color: #bbf7d0;
}

.page-shell .wa-account-nav-group:nth-of-type(3) {
  background: linear-gradient(180deg, #fffbeb, #ffffff);
  border-color: #fde68a;
}

.page-shell .wa-account-nav-label {
  color: #475569;
  border-bottom-color: #e2e8f0;
}

.page-shell .wa-account-nav-link {
  color: #64748b;
}

.page-shell .wa-account-nav-link:hover {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #dbeafe;
}

.page-shell .wa-account-nav-link::before {
  background: #cbd5e1;
}

.page-shell .wa-account-nav-link.is-active {
  color: #1d4ed8;
  background: linear-gradient(90deg, #dbeafe, #eff6ff);
  border-color: #bfdbfe;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.page-shell .wa-account-nav-link.is-active::before {
  background: #4f7cff;
  box-shadow: 0 0 18px rgba(79, 124, 255, 0.42);
}

.page-shell .wa-account-nav-status {
  color: #64748b;
  background: #ffffff;
  border-color: #e2e8f0;
}

.page-shell .wa-account-nav-status.is-done {
  color: #047857;
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.page-shell .wa-account-nav-status.is-current {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.page-shell .wa-account-sidebar-foot {
  background: #f8fafc;
}

.page-shell .wa-account-sidebar-foot strong {
  color: #0f172a;
}

.page-shell .wa-account-safe-note,
.page-shell .wa-account-tip-card {
  color: #065f46;
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.page-shell .wa-account-tip-card p {
  color: #047857;
}

.page-shell .wa-account-flow-card {
  background: #ffffff;
}

.page-shell .wa-account-flow-card.is-current {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.page-shell .wa-account-flow-card.is-done {
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.page-shell .wa-account-flow-num {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #bfdbfe;
}

.page-shell .wa-account-detail-grid div,
.page-shell .wa-account-flow-card,
.page-shell .wa-account-check-row > span {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.page-shell .wa-account-check-row > span {
  color: #64748b;
}

.page-shell .wa-account-check-row.is-done > span {
  color: #047857;
  background: #dcfce7;
}

/* AWS onboarding / result panels */
.page-shell .wa-aws-guide-card {
  border-color: #bbf7d0;
  background:
    radial-gradient(circle at 8% 0%, rgba(22, 163, 74, 0.12), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
}

.page-shell .wa-aws-guide-card::after {
  background: rgba(37, 99, 235, 0.08);
}

.page-shell .wa-aws-security-points div {
  background: #ffffff;
  border-color: #bbf7d0;
}

.page-shell .wa-aws-security-points strong {
  color: #065f46;
}

.page-shell .wa-aws-security-points span {
  color: #047857;
}

.page-shell .wa-aws-copy-item {
  background: #ffffff;
  border-color: #dbeafe;
}

.page-shell .wa-aws-copy-item span {
  color: #64748b;
}

.page-shell .wa-aws-status,
.page-shell .ok,
.page-shell .bad {
  color: #475569;
  background: #ffffff;
  border-color: #e2e8f0;
}

.page-shell .wa-aws-status.ok,
.page-shell .ok {
  color: #047857;
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.page-shell .wa-aws-status.bad,
.page-shell .bad {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}

.page-shell .wa-aws-result {
  color: #334155;
  background: #f8fafc;
  border-color: #e2e8f0;
}

/* Keep pricing page's custom design in control while matching the light base. */
.page-shell .pricing-page-shell {
  color: #0f172a;
}

.page-shell .pricing-page-shell a {
  color: inherit;
}

/* Mobile refinement */
@media (max-width: 900px) {
  body {
    background: #f8fafc;
  }

  .page-shell .hero-card,
  .page-shell .card,
  .page-shell .legal-doc,
  .page-shell .wa-account-stage-hero,
  .page-shell .wa-account-side-card,
  .page-shell .wa-account-form-card {
    border-radius: 22px;
  }
}

/* --------------------------------------------------------------------------
   Legal policy/support document center refresh
   - Merged onto the current site.css.
   - Keeps global header/footer dark.
   - Makes /legal/* pages a bright, readable SaaS document center.
   -------------------------------------------------------------------------- */
.legal-shell {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  color: #0f172a;
}

.legal-sidebar {
  position: sticky;
  top: 104px;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 0% 0%, rgba(79, 124, 255, 0.10), transparent 34%),
    #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0 0 14px;
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.legal-brand::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f7cff, #7c3aed);
  box-shadow: 0 0 0 4px rgba(79, 124, 255, 0.12);
  flex: 0 0 auto;
}

.legal-sidebar a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 14px;
  color: #475569;
  margin-bottom: 5px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
}

.legal-sidebar a:hover {
  color: #0f172a;
  background: #f8fafc;
  border-color: #e2e8f0;
}

.legal-sidebar a.active {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
  box-shadow: inset 3px 0 0 #4f7cff;
}

.legal-doc {
  min-width: 0;
  padding: clamp(24px, 3.5vw, 42px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(79, 124, 255, 0.08), transparent 28%),
    #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

.legal-doc-head {
  padding-bottom: 22px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 18px;
}

.legal-doc .badge,
.legal-doc .badge.highlight {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.legal-doc h1 {
  margin: 18px 0 10px;
  color: #0f172a;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.legal-doc h2 {
  color: #0f172a;
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.legal-doc h3 {
  color: #0f172a;
  letter-spacing: -0.02em;
}

.legal-doc .muted,
.legal-doc p,
.legal-doc li,
.legal-updated {
  color: #475569;
}

.legal-doc .muted {
  max-width: 860px;
  font-size: 16px;
  line-height: 1.65;
}

.legal-updated {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 650;
}

.legal-section {
  padding: 20px 0;
  border-bottom: 1px solid #e2e8f0;
}

.legal-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  margin: 0 0 12px;
}

.legal-section p {
  margin: 0 0 10px;
  line-height: 1.68;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 20px;
}

.legal-section li {
  line-height: 1.58;
}

.legal-doc strong {
  color: #0f172a;
  font-weight: 850;
}

.legal-doc a {
  color: #1d4ed8;
  font-weight: 850;
}

.legal-info-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.legal-info-list div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
}

.legal-info-list div:last-child {
  border-bottom: 1px solid #e2e8f0;
}

.legal-info-list span {
  color: #64748b;
  font-size: 14px;
  font-weight: 750;
}

.legal-info-list strong {
  color: #0f172a;
  text-align: right;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-size: 15px;
}

/* Refreshed legal/contact page optional components. Safe even if templates do not use them yet. */
.legal-contact-hero,
.legal-callout-card {
  margin: 6px 0 22px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid #bfdbfe;
  background:
    radial-gradient(circle at 0% 0%, rgba(79, 124, 255, 0.13), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
  box-shadow: 0 16px 42px rgba(37, 99, 235, 0.09);
}

.legal-contact-hero h2,
.legal-callout-card h2 {
  margin: 0 0 8px;
}

.legal-contact-hero p,
.legal-callout-card p {
  margin: 0;
  color: #475569;
}

.legal-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.legal-contact-actions .btn,
.legal-doc .btn {
  color: #0f172a;
  background: #ffffff;
  border-color: #cbd5e1;
}

.legal-contact-actions .btn.primary,
.legal-doc .btn.primary {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #4f7cff 0%, #6d7dfb 55%, #7c3aed 100%);
}

.legal-card-grid,
.legal-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.legal-mini-card,
.legal-category-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
}

.legal-mini-card strong,
.legal-category-card strong {
  display: block;
  color: #0f172a;
  margin-bottom: 4px;
}

.legal-mini-card span,
.legal-category-card span,
.legal-mini-card p,
.legal-category-card p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.legal-check-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.legal-check-list div,
.legal-check-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
}

.legal-check-list div::before,
.legal-check-item::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #dbeafe;
  font-weight: 950;
}

.legal-response-card {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.legal-response-card p,
.legal-response-card strong {
  color: #166534;
}

/* Prevent old dark-theme values from leaking into legal pages. */
.page-shell:not(:has(.pricing-page-shell)) .legal-doc,
.page-shell:not(:has(.pricing-page-shell)) .legal-sidebar {
  color: #0f172a;
  background-color: #ffffff;
}

.page-shell:not(:has(.pricing-page-shell)) .legal-doc p,
.page-shell:not(:has(.pricing-page-shell)) .legal-doc li,
.page-shell:not(:has(.pricing-page-shell)) .legal-doc .muted,
.page-shell:not(:has(.pricing-page-shell)) .legal-sidebar a:not(.active) {
  color: #475569;
}

.page-shell:not(:has(.pricing-page-shell)) .legal-doc strong,
.page-shell:not(:has(.pricing-page-shell)) .legal-doc h1,
.page-shell:not(:has(.pricing-page-shell)) .legal-doc h2,
.page-shell:not(:has(.pricing-page-shell)) .legal-doc h3,
.page-shell:not(:has(.pricing-page-shell)) .legal-brand {
  color: #0f172a;
}

@media (max-width: 980px) {
  .legal-shell {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    position: relative;
    top: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .legal-brand {
    grid-column: 1 / -1;
    margin-bottom: 6px;
  }

  .legal-sidebar a {
    margin-bottom: 0;
  }
}

@media (max-width: 720px) {
  .legal-doc {
    padding: 22px;
    border-radius: 22px;
  }

  .legal-doc h1 {
    font-size: 34px;
  }

  .legal-sidebar,
  .legal-card-grid,
  .legal-category-grid {
    grid-template-columns: 1fr;
  }

  .legal-info-list div {
    grid-template-columns: 1fr;
    gap: 4px;
    align-items: start;
  }

  .legal-info-list strong {
    text-align: left;
  }
}


/* --------------------------------------------------------------------------
   Mobile header / home hero refinement
   - Prevent top navigation from wrapping on narrow screens.
   - Move secondary links into a compact hamburger panel.
   - Keep the primary free-trial CTA visible without crowding the brand.
   -------------------------------------------------------------------------- */
.nav-label-short,
.mobile-nav-menu {
  display: none;
}

.mobile-nav-menu {
  position: relative;
}

.mobile-nav-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  gap: 4px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 13px;
  background: rgba(255,255,255,0.04);
  color: #fff;
  cursor: pointer;
}

.mobile-nav-button::-webkit-details-marker { display: none; }
.mobile-nav-button::marker { content: ""; }

.mobile-nav-button span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  display: block;
}

.mobile-nav-panel {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(300px, calc(100vw - 28px));
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(11,16,32,0.98);
  box-shadow: 0 24px 70px rgba(0,0,0,0.40);
  z-index: 130;
}

.mobile-nav-menu[open] .mobile-nav-panel {
  display: grid;
  gap: 10px;
}

.mobile-nav-section {
  display: grid;
  gap: 4px;
}

.mobile-nav-label {
  padding: 6px 8px 4px;
  color: rgba(174,185,209,0.86);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mobile-nav-panel a {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #edf3ff;
  font-size: 14px;
  font-weight: 800;
}

.mobile-nav-panel a:hover,
.mobile-nav-panel a.active {
  background: rgba(79,124,255,0.16);
  color: #fff;
}

.mobile-nav-panel a small {
  color: rgba(174,185,209,0.90);
  font-size: 11px;
  font-weight: 900;
}

.mobile-nav-panel .mobile-nav-primary {
  color: #fff;
  background: linear-gradient(135deg, #4f7cff 0%, #6d7dfb 55%, #7c3aed 100%);
  box-shadow: 0 14px 30px rgba(79,124,255,0.24);
}

@media (max-width: 760px) {
  .topbar {
    min-height: 64px;
    padding-left: 14px;
    padding-right: 14px;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
    gap: 9px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .brand-text {
    min-width: 0;
  }

  .brand-text strong {
    max-width: 142px;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 15px;
  }

  .brand-text small {
    display: none;
  }

  .main-nav {
    flex: 0 0 auto;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .main-nav > a:not(.nav-trial-cta),
  .main-nav > .account-menu,
  .main-nav > .language-menu {
    display: none;
  }

  .mobile-nav-menu {
    display: block;
  }

  .nav-trial-cta {
    min-height: 42px;
    padding: 9px 13px;
    border-radius: 13px;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
  }

  .nav-label-full {
    display: none;
  }

  .nav-label-short {
    display: inline;
  }

  /* Home mobile hero: tighter and easier to scan. */
  .wa-home-hero {
    padding: 44px 0 56px !important;
  }

  .wa-home-hero-grid {
    gap: 22px !important;
  }

  .wa-home-eyebrow {
    max-width: 100% !important;
    font-size: 12px !important;
    padding: 7px 11px !important;
  }

  .wa-home-hero h1 {
    margin-top: 18px !important;
    font-size: clamp(36px, 12.5vw, 50px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.055em !important;
  }

  .wa-home-hero p {
    margin-top: 18px !important;
    font-size: 17px !important;
    line-height: 1.62 !important;
  }

  .wa-home-cta-row {
    gap: 10px !important;
    margin-top: 22px !important;
  }

  .wa-home-cta-row .btn {
    min-height: 48px !important;
    padding: 10px 15px !important;
    border-radius: 14px !important;
  }

  .wa-home-trust-row {
    gap: 8px !important;
    margin-top: 22px !important;
  }

  .wa-home-trust-pill {
    color: #f8fafc !important;
    background: rgba(15,23,42,0.48) !important;
    border-color: rgba(191,219,254,0.34) !important;
    font-size: 12px !important;
    padding: 7px 10px !important;
  }

  .wa-home-hero-panel {
    display: none !important;
  }
}

@media (max-width: 380px) {
  .topbar {
    padding-left: 12px;
    padding-right: 12px;
    gap: 7px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .brand-text strong {
    max-width: 118px;
    font-size: 14px;
  }

  .nav-trial-cta {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 13px;
  }

  .mobile-nav-button {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
}

/* --------------------------------------------------------------------------
   Mobile hamburger compact fix
   - Applied on top of the current site.css.
   - Keeps the mobile top bar balanced with the free-trial CTA.
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  .mobile-nav-button {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border-radius: 12px;
    gap: 3px;
    padding: 0;
  }

  .mobile-nav-button span {
    width: 17px;
    height: 2px;
  }

  .main-nav {
    gap: 7px;
  }

  .nav-trial-cta {
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 13px;
  }
}

@media (max-width: 380px) {
  .mobile-nav-button {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 11px;
  }

  .mobile-nav-button span {
    width: 16px;
    height: 2px;
  }
}

/* --------------------------------------------------------------------------
   Pricing mobile full-bleed fix
   - Removes the white gutter/gap caused by base .wrap/.page-shell padding.
   - Keeps the pricing hero dark area edge-to-edge on mobile.
   - Safe override: works even when pricing styles are defined inside pricing.html.
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  /* Modern browsers: remove the base shell padding only on the pricing page. */
  .page-shell:has(.pricing-page-shell) {
    width: 100% !important;
    max-width: none !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    background: #f8fafc !important;
  }

  /* Fallback and main fix: make pricing content escape the global .wrap gutters. */
  .pricing-page-shell {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    margin-top: -28px !important;
    border-left: 0 !important;
    border-right: 0 !important;
    overflow-x: clip !important;
  }

  /* When :has removed the parent padding, do not pull the pricing page upward. */
  .page-shell:has(.pricing-page-shell) .pricing-page-shell {
    margin-top: 0 !important;
  }

  .pricing-hero-band {
    margin-top: 0 !important;
    border-top: 0 !important;
  }

  .pricing-page-shell .pricing-hero-band,
  .pricing-page-shell .section,
  .pricing-page-shell .pricing-hero,
  .pricing-page-shell .details-section,
  .pricing-page-shell .one-time-section {
    box-sizing: border-box !important;
  }
}

@media (max-width: 560px) {
  /* Keep the dark hero and pricing cards aligned without side white rails. */
  .pricing-page-shell {
    margin-top: -28px !important;
  }

  .page-shell:has(.pricing-page-shell) .pricing-page-shell {
    margin-top: 0 !important;
  }

  .pricing-page-shell .section {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* --------------------------------------------------------------------------
   Account settings view-based console refresh
   - /me?view=overview|billing|profile|security
   - removes in-page anchor navigation from account sidebar
   -------------------------------------------------------------------------- */
.page-shell .wa-account-sidebar-head .wa-account-sidebar-eyebrow,
.page-shell .wa-account-sidebar-head > span {
  display: block;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: none;
}

.page-shell .wa-account-sidebar-head .wa-account-sidebar-title,
.page-shell .wa-account-sidebar-head > strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.page-shell .wa-account-nav {
  gap: 10px;
}

.page-shell .wa-account-nav-group {
  padding: 10px 8px;
  border-radius: 16px;
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: none;
}

.page-shell .wa-account-nav-group::before {
  display: none;
}

.page-shell .wa-account-nav-group:nth-of-type(1),
.page-shell .wa-account-nav-group:nth-of-type(2),
.page-shell .wa-account-nav-group:nth-of-type(3),
.page-shell .wa-account-nav-group:nth-of-type(4) {
  background: #ffffff;
  border-color: #e5e7eb;
}

.page-shell .wa-account-nav-label {
  margin: 0;
  padding: 2px 6px 7px;
  border-bottom: 1px solid #eef2f7;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-shell .wa-account-nav-label::before {
  display: none;
}

.page-shell .wa-account-nav-link {
  min-height: 34px;
  margin-left: 0;
  padding: 7px 8px;
  border-radius: 10px;
  color: #475569;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid transparent;
}

.page-shell .wa-account-nav-link::before {
  display: none;
}

.page-shell .wa-account-nav-link:hover {
  color: #1d4ed8;
  background: #f8fafc;
  border-color: #e2e8f0;
}

.page-shell .wa-account-nav-link.is-active {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
  box-shadow: none;
}

.page-shell .wa-account-nav-link.is-active::before {
  display: none;
}

.page-shell .wa-account-nav-status {
  padding: 2px 7px;
  font-size: 11px;
}

.page-shell .wa-account-sidebar-foot.wa-sidebar-subscription,
.page-shell .wa-sidebar-subscription {
  margin: 12px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.page-shell .wa-sidebar-subscription span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.page-shell .wa-sidebar-subscription strong {
  display: block;
  margin-top: 5px;
  color: #0f172a;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.wa-view-panel {
  display: grid;
  gap: 18px;
}

.wa-overview-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.wa-overview-link-grid a {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: #0f172a;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.wa-overview-link-grid a:hover {
  transform: translateY(-1px);
  border-color: #bfdbfe;
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.10);
}

.wa-overview-link-grid span {
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
}

.wa-overview-link-grid strong {
  color: #0f172a;
  font-size: 18px;
  line-height: 1.25;
}

.wa-billing-actions .wa-action-buttons {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .wa-overview-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .wa-overview-link-grid {
    grid-template-columns: 1fr;
  }

  .page-shell .wa-account-nav-link {
    min-height: 40px;
  }
}
/* --------------------------------------------------------------------------
   AWS IAM guide modal readability fix
   - Applied on top of the current site.css.
   - Keeps the modal intentionally dark, even inside the light .page-shell theme.
   - Fixes title/body text becoming too dark because of global light overrides.
   -------------------------------------------------------------------------- */
.wa-modal {
  color: #edf3ff !important;
}

.wa-modal-backdrop {
  background: rgba(3, 7, 18, 0.78) !important;
  backdrop-filter: blur(10px) !important;
}

.wa-modal-panel {
  color: #edf3ff !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(79, 124, 255, 0.20), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(19, 29, 53, 0.99), rgba(11, 16, 32, 0.99)) !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
  box-shadow: 0 34px 100px rgba(2, 6, 23, 0.62) !important;
}

.wa-modal-panel,
.wa-modal-panel * {
  color-scheme: dark;
}

.wa-modal-panel h1,
.wa-modal-panel h2,
.wa-modal-panel h3,
.wa-modal-panel h4,
.wa-modal-panel strong,
.wa-modal-panel b,
.wa-modal-panel label,
.page-shell .wa-modal-panel h1,
.page-shell .wa-modal-panel h2,
.page-shell .wa-modal-panel h3,
.page-shell .wa-modal-panel h4,
.page-shell .wa-modal-panel strong,
.page-shell .wa-modal-panel b,
.page-shell .wa-modal-panel label {
  color: #f8fafc !important;
}

.wa-modal-panel p,
.wa-modal-panel li,
.wa-modal-panel span,
.wa-modal-panel .muted,
.page-shell .wa-modal-panel p,
.page-shell .wa-modal-panel li,
.page-shell .wa-modal-panel span,
.page-shell .wa-modal-panel .muted {
  color: #cbd5e1 !important;
}

.wa-modal-head {
  border-bottom-color: rgba(148, 163, 184, 0.18) !important;
}

.wa-modal-head h2 {
  color: #f8fafc !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.16);
}

.wa-modal-head p {
  color: #aeb9d1 !important;
}

.wa-modal .badge,
.wa-modal .badge.highlight,
.page-shell .wa-modal .badge,
.page-shell .wa-modal .badge.highlight {
  color: #dbeafe !important;
  background: rgba(219, 234, 254, 0.10) !important;
  border-color: rgba(191, 219, 254, 0.32) !important;
  box-shadow: none !important;
}

.wa-modal-close {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

.wa-modal-close:hover,
.wa-modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(191, 219, 254, 0.40) !important;
}

.wa-aws-guide-modal-body {
  color: #edf3ff !important;
}

.wa-aws-step-list div,
.page-shell .wa-aws-step-list div {
  background: rgba(255, 255, 255, 0.055) !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.wa-aws-step-list b,
.page-shell .wa-aws-step-list b {
  color: #ffffff !important;
  background: rgba(79, 124, 255, 0.26) !important;
  border-color: rgba(147, 197, 253, 0.42) !important;
}

.wa-aws-step-list span,
.page-shell .wa-aws-step-list span {
  color: #dbe6ff !important;
}

.wa-aws-step-list code,
.page-shell .wa-aws-step-list code {
  color: #ffffff !important;
  background: rgba(2, 6, 23, 0.46) !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
}

.wa-aws-permission-note,
.page-shell .wa-aws-permission-note {
  background: rgba(31, 180, 110, 0.12) !important;
  border-color: rgba(124, 252, 189, 0.30) !important;
}

.wa-aws-permission-note strong,
.page-shell .wa-aws-permission-note strong {
  color: #dcfce7 !important;
}

.wa-aws-permission-note p,
.wa-aws-permission-note span,
.page-shell .wa-aws-permission-note p,
.page-shell .wa-aws-permission-note span {
  color: #d8ffe9 !important;
}

.wa-copy-code-card,
.page-shell .wa-copy-code-card {
  background: rgba(2, 6, 23, 0.26) !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}

.wa-copy-code-head {
  border-bottom-color: rgba(148, 163, 184, 0.16) !important;
}

.wa-copy-code-head h3,
.page-shell .wa-copy-code-head h3 {
  color: #f8fafc !important;
}

.wa-copy-code-head p,
.page-shell .wa-copy-code-head p {
  color: #aeb9d1 !important;
}

.wa-copy-code,
.page-shell .wa-copy-code {
  color: #eaf1ff !important;
  background: rgba(4, 8, 18, 0.88) !important;
}

.wa-copy-code code,
.page-shell .wa-copy-code code {
  color: #eaf1ff !important;
}

.wa-copy-mini,
.page-shell .wa-copy-mini {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

.wa-copy-mini:hover,
.wa-copy-mini:focus-visible {
  background: rgba(79, 124, 255, 0.28) !important;
  border-color: rgba(147, 197, 253, 0.46) !important;
}

.wa-copy-toast {
  color: #eafff2 !important;
  background: rgba(14, 49, 38, 0.98) !important;
  border-color: rgba(124, 252, 189, 0.36) !important;
}

@media (max-width: 720px) {
  .wa-modal {
    padding: 10px !important;
  }

  .wa-modal-panel {
    max-height: 92vh !important;
    border-radius: 20px !important;
  }

  .wa-modal-head {
    padding: 18px 16px 14px !important;
  }

  .wa-modal-head h2 {
    font-size: 26px !important;
  }

  .wa-aws-guide-modal-body {
    padding: 16px !important;
    gap: 12px !important;
  }

  .wa-aws-step-list div {
    grid-template-columns: 30px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 11px !important;
  }

  .wa-aws-step-list b {
    width: 30px !important;
    height: 30px !important;
  }
}

/* --------------------------------------------------------------------------
   Onboarding sidebar live status states
   - AWS 자동 재검증 실패 시 좌측 메뉴도 즉시 "확인 필요"로 변경
   - 첫 비용 진단은 AWS 연결이 invalid이면 잠김 상태로 표시
   -------------------------------------------------------------------------- */
.wa-account-nav-status.is-error {
  color: #991b1b !important;
  background: #fef2f2 !important;
  border-color: #fecaca !important;
}

.wa-account-nav-status.is-locked {
  color: #64748b !important;
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

.wa-account-nav-link.is-attention {
  color: #9a3412 !important;
  background: #fff7ed !important;
  border-color: #fed7aa !important;
}

.wa-account-nav-link.is-attention span {
  color: #9a3412 !important;
}

.wa-account-nav-link.is-attention.is-active {
  color: #9a3412 !important;
  background: #fff7ed !important;
  border-color: #fdba74 !important;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.08) !important;
}

.wa-account-nav-link.is-blocked {
  opacity: 0.72;
}

.wa-account-nav-link.is-blocked span {
  color: #64748b !important;
}

/* Dark-theme fallback when account console is rendered outside .page-shell light overrides. */
.wa-account-sidebar .wa-account-nav-status.is-error {
  color: #fecaca !important;
  background: rgba(248, 113, 113, 0.14) !important;
  border-color: rgba(248, 113, 113, 0.34) !important;
}

.wa-account-sidebar .wa-account-nav-status.is-locked {
  color: #94a3b8 !important;
  background: rgba(148, 163, 184, 0.10) !important;
  border-color: rgba(148, 163, 184, 0.20) !important;
}

.wa-account-sidebar .wa-account-nav-link.is-attention {
  color: #fed7aa !important;
  background: rgba(251, 146, 60, 0.14) !important;
  border-color: rgba(251, 146, 60, 0.32) !important;
}

.wa-account-sidebar .wa-account-nav-link.is-attention span {
  color: #fed7aa !important;
}

.page-shell .wa-account-nav-status.is-error {
  color: #991b1b !important;
  background: #fef2f2 !important;
  border-color: #fecaca !important;
}

.page-shell .wa-account-nav-status.is-locked {
  color: #64748b !important;
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

.page-shell .wa-account-nav-link.is-attention,
.page-shell .wa-account-nav-link.is-attention:hover,
.page-shell .wa-account-nav-link.is-attention.is-active {
  color: #9a3412 !important;
  background: #fff7ed !important;
  border-color: #fdba74 !important;
}

.page-shell .wa-account-nav-link.is-attention span,
.page-shell .wa-account-nav-link.is-attention:hover span,
.page-shell .wa-account-nav-link.is-attention.is-active span {
  color: #9a3412 !important;
}

.page-shell .wa-account-nav-link.is-blocked {
  opacity: 0.72;
}

