:root{
  --bg:#F7F8FA;
  --surface:#FFFFFF;
  --soft:#F7F7F5;
  --soft-blue:#F3F8FF;
  --text:#111827;
  --muted:#667085;
  --line:#E3E6EA;
  --line-strong:#DADAD7;
  --blue:#1267F2;
  --blue-hover:#0E5BDC;
  --teal:#0AA6B4;
  --green:#16A06A;
  --green-bg:#EAF8F1;
  --violet:#7C4DFF;
  --violet-bg:#F3EEFF;
  --orange:#E59A24;
  --orange-bg:#FFF6E8;
  --radius:12px;
  --shadow:0 8px 28px rgba(16,24,40,.06);
  --max:1440px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 7% 9%, rgba(18,103,242,.055), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(10,166,180,.04), transparent 20%),
    var(--bg);
}
a{text-decoration:none;color:inherit}
button,input{font:inherit}
.topbar{
  height:72px;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid #E9EBEE;
  display:flex;
  align-items:center;
  position:sticky;
  top:0;
  z-index:20;
  backdrop-filter:blur(10px);
}
.topbar-inner{
  width:min(calc(100% - 54px),var(--max));
  margin:auto;
  display:grid;
  grid-template-columns:240px 1fr auto;
  gap:28px;
  align-items:center;
}
.brand img{display:block;height:40px;width:auto}
.main-nav{display:flex;justify-content:center;gap:34px;font-size:14px;font-weight:650}
.main-nav a{color:#344054}
.main-nav a:hover{color:var(--blue)}
.account-actions{display:flex;align-items:center;gap:18px;font-size:14px;font-weight:650}
.avatar{
  width:38px;height:38px;border-radius:50%;
  display:grid;place-items:center;
  background:linear-gradient(180deg,#3B8BFF,#1267F2);
  color:#fff;font-weight:800;
  box-shadow:0 4px 12px rgba(18,103,242,.2);
}

.shell{
  width:min(calc(100% - 54px),var(--max));
  margin:32px auto 50px;
  display:grid;
  grid-template-columns:235px minmax(0,1fr);
  gap:28px;
}
.sidebar{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.side-card,.help-card,.panel,.summary-strip{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:0 2px 10px rgba(16,24,40,.025);
}
.side-card{padding:12px}
.side-link{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:42px;
  padding:0 12px;
  border-radius:8px;
  color:#475467;
  font-size:14px;
  font-weight:600;
}
.side-link:hover{background:#F8FAFC;color:var(--text)}
.side-link.active{background:#EEF5FF;color:var(--blue)}
.icon{
  width:20px;height:20px;display:grid;place-items:center;
  color:#52677D;font-size:15px;font-weight:800
}
.side-link.active .icon{color:var(--blue)}
.help-card{padding:18px}
.help-card h3{margin:0 0 8px;font-size:16px}
.help-card p{margin:0 0 16px;color:var(--muted);font-size:13px;line-height:1.6}
.btn{
  border:1px solid #D5DCE5;
  background:#fff;
  border-radius:6px;
  min-height:40px;
  padding:0 16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-weight:750;
  color:#1D2939;
  box-shadow:0 1px 2px rgba(16,24,40,.035);
}
.btn:hover{border-color:#BFC8D4;background:#FBFCFD}
.btn.primary{
  color:white;
  border-color:var(--blue);
  background:var(--blue);
  box-shadow:0 2px 5px rgba(18,103,242,.12);
}
.btn.primary:hover{background:var(--blue-hover)}

.content{min-width:0}
.hero-head{
  min-height:152px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  margin-bottom:20px;
}
.breadcrumbs{font-size:13px;color:#7A8695;margin-bottom:12px}
.breadcrumbs a{color:var(--blue)}
.order-title-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.order-title{font-size:40px;line-height:1.05;letter-spacing:-.04em;margin:0}
.status-pill{
  display:inline-flex;align-items:center;gap:7px;
  background:var(--green-bg);color:var(--green);
  border:1px solid #D4F1E3;
  padding:6px 10px;border-radius:7px;
  font-size:12px;font-weight:800;
}
.order-meta{margin-top:12px;color:var(--muted);font-size:14px}
.hero-illustration{
  width:280px;height:126px;
  border-radius:18px;
  background:linear-gradient(135deg,#F4F9FF,#F7FBFB);
  border:1px solid #EAF0F4;
  position:relative;
  overflow:hidden;
}
.receipt{
  position:absolute;right:58px;top:20px;width:92px;height:88px;
  background:white;border:1px solid #DDE6EF;border-radius:8px;
  transform:rotate(7deg);
  box-shadow:0 10px 20px rgba(34,74,120,.08);
}
.receipt:before,.receipt:after{
  content:"";position:absolute;left:16px;right:16px;height:5px;border-radius:4px;background:#D9E8F8
}
.receipt:before{top:26px;box-shadow:0 15px 0 #E7EEF6,0 30px 0 #E7EEF6}
.receipt:after{top:11px;background:var(--blue)}
.check-orb{
  position:absolute;right:128px;bottom:15px;width:54px;height:54px;border-radius:50%;
  display:grid;place-items:center;background:var(--blue);color:white;font-size:26px;font-weight:900;
  box-shadow:0 8px 18px rgba(18,103,242,.25)
}

.summary-strip{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  margin-bottom:18px;
  overflow:hidden;
}
.summary-item{
  min-height:102px;
  padding:20px 22px;
  display:grid;
  grid-template-columns:46px 1fr;
  gap:14px;
  align-items:center;
  border-right:1px solid var(--line);
}
.summary-item:last-child{border-right:0}
.summary-icon{
  width:46px;height:46px;border-radius:50%;display:grid;place-items:center;font-weight:900;font-size:18px
}
.si-blue{background:#ECF4FF;color:var(--blue)}
.si-green{background:var(--green-bg);color:var(--green)}
.si-violet{background:var(--violet-bg);color:var(--violet)}
.si-orange{background:var(--orange-bg);color:var(--orange)}
.summary-label{font-size:12px;color:#667085;margin-bottom:5px}
.summary-value{font-size:16px;font-weight:800;color:#1D2939}
.summary-sub{font-size:12px;color:#667085;margin-top:2px}

.panel{padding:20px;margin-bottom:18px}
.panel h2{
  font-size:17px;
  margin:0 0 16px;
  letter-spacing:-.01em
}
.table-wrap{border:1px solid var(--line);border-radius:9px;overflow:hidden}
.order-table{width:100%;border-collapse:collapse;font-size:13px}
.order-table th,.order-table td{padding:12px 14px;border-bottom:1px solid var(--line);vertical-align:top}
.order-table tr:last-child td{border-bottom:0}
.order-table th{text-align:left;background:#FAFBFC;color:#344054;font-size:12px}
.order-table th:last-child,.order-table td:last-child{text-align:right}
.product-name{color:var(--blue);font-weight:800}
.detail-grid{
  margin-top:10px;
  display:grid;
  grid-template-columns:155px 1fr;
  row-gap:9px;
  color:#475467
}
.detail-grid strong{color:#344054}
.mini-pill{
  display:inline-flex;align-items:center;
  padding:4px 7px;border-radius:6px;
  background:var(--green-bg);color:var(--green);
  font-size:11px;font-weight:800
}
.totals-row td{font-weight:750;background:#FCFCFD}
.panel-actions{margin-top:16px}

.bottom-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}
.info-card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px;
}
.info-card h3{margin:0 0 14px;font-size:17px}
.kv-table{border:1px solid var(--line);border-radius:9px;overflow:hidden}
.kv-row{
  display:grid;grid-template-columns:1fr 1fr;
  padding:10px 12px;border-bottom:1px solid var(--line);
  font-size:13px
}
.kv-row:last-child{border-bottom:0}
.kv-row strong{color:#344054}
.address-box{
  border:1px solid var(--line);border-radius:9px;padding:14px;
  min-height:147px;color:#475467;font-size:13px;line-height:1.7
}

.portal-footer{
  margin-top:48px;
  background:#F7F7F5;
  border-top:1px solid #DADAD7;
}
.portal-footer-inner{
  width:min(calc(100% - 54px),var(--max));
  margin:auto;padding:34px 0 22px;
  display:grid;
  grid-template-columns:1.6fr repeat(3,1fr);
  gap:44px;
}
.footer-brand img{height:38px;width:auto;display:block}
.footer-brand p{max-width:300px;color:#6B6C68;font-size:13px;line-height:1.65;margin:12px 0 0}
.footer-col h4{font-size:12px;letter-spacing:.08em;text-transform:uppercase;margin:4px 0 12px;color:#2F302E}
.footer-col a{display:block;margin:8px 0;color:#6B6C68;font-size:13px}
.footer-col a:hover{color:var(--blue)}
.footer-bottom{
  width:min(calc(100% - 54px),var(--max));
  margin:auto;border-top:1px solid #DADAD7;
  padding:16px 0 22px;color:#6B6C68;font-size:12px;
  display:flex;justify-content:space-between;gap:16px
}

@media(max-width:1100px){
  .topbar-inner{grid-template-columns:auto 1fr auto}
  .main-nav{display:none}
  .shell{grid-template-columns:1fr}
  .sidebar{display:grid;grid-template-columns:1fr 1fr}
  .summary-strip{grid-template-columns:1fr 1fr}
  .summary-item:nth-child(2){border-right:0}
  .summary-item:nth-child(-n+2){border-bottom:1px solid var(--line)}
}
@media(max-width:760px){
  .topbar-inner,.shell,.portal-footer-inner,.footer-bottom{width:min(calc(100% - 28px),var(--max))}
  .topbar-inner{grid-template-columns:1fr auto}
  .account-actions .account-label{display:none}
  .shell{margin-top:22px}
  .sidebar{display:block}
  .help-card{margin-top:14px}
  .hero-head{align-items:flex-start;min-height:auto}
  .hero-illustration{display:none}
  .order-title{font-size:34px}
  .summary-strip{grid-template-columns:1fr}
  .summary-item{border-right:0;border-bottom:1px solid var(--line)}
  .summary-item:last-child{border-bottom:0}
  .bottom-grid{grid-template-columns:1fr}
  .portal-footer-inner{grid-template-columns:1fr 1fr}
  .footer-brand{grid-column:1/-1}
  .footer-bottom{flex-direction:column}
}

/* =========================================================
   v2 — Unified cool-gray page/footer palette
   Fixes the warm-gray footer against the cool user-portal background.
   ========================================================= */
body{
  background:
    radial-gradient(circle at 7% 9%, rgba(18,103,242,.045), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(10,166,180,.032), transparent 20%),
    #F7F8FA !important;
}

.portal-footer{
  background:#F5F7FA !important;
  border-top:1px solid #E2E8F0 !important;
}

.footer-col h4{
  color:#2F3A45 !important;
}

.footer-brand p,
.footer-col a,
.footer-bottom{
  color:#66727E !important;
}

.footer-bottom{
  border-top-color:#E2E8F0 !important;
}


/* =========================================================
   v3 — Unified interactive link hover
   Same Primary Blue hover used across Homepage + User Portal.
   ========================================================= */

.main-nav a:hover,
.footer-col a:hover,
.breadcrumbs a:hover{
  color:#1267F2 !important;
}

/* Sidebar hover uses the same interactive blue family */
.side-link:hover{
  background:#F3F7FD !important;
  color:#1267F2 !important;
}

.side-link:hover .icon{
  color:#1267F2 !important;
}

/* =========================================================
   v4 — User Portal Model 1
   Compact approved account dashboard composition.
   Presentation only: no endpoints or account capabilities are added.
   ========================================================= */

.shell{
  margin-top:26px;
  margin-bottom:28px;
  grid-template-columns:228px minmax(0,1fr);
  gap:26px;
}

.sidebar{gap:14px}
.side-card{padding:10px}
.side-link{
  min-height:38px;
  padding:0 10px;
  gap:10px;
  font-size:13px;
}
.icon{
  width:18px;
  height:18px;
  font-size:13px;
}
.help-card{padding:16px}
.help-card h3{margin-bottom:6px;font-size:15px}
.help-card p{margin-bottom:14px;font-size:12px;line-height:1.55}
.help-card .btn{width:100%;min-height:36px;font-size:12px}

.hero-head{
  min-height:118px;
  margin-bottom:16px;
  gap:24px;
}
.order-title{font-size:34px}
.order-meta{margin-top:9px;font-size:13px}
.breadcrumbs{margin-bottom:9px}

.hero-illustration{
  width:220px;
  height:100px;
  border-radius:15px;
}
.receipt{
  right:44px;
  top:15px;
  width:76px;
  height:70px;
}
.receipt:before,.receipt:after{left:13px;right:13px;height:4px}
.receipt:before{top:22px;box-shadow:0 12px 0 #E7EEF6,0 24px 0 #E7EEF6}
.receipt:after{top:9px}
.check-orb{
  right:100px;
  bottom:12px;
  width:44px;
  height:44px;
  font-size:21px;
}

.summary-strip{
  gap:12px;
  margin-bottom:14px;
  overflow:visible;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
}
.summary-item{
  min-height:104px;
  padding:16px;
  grid-template-columns:38px 1fr;
  gap:11px;
  border:1px solid var(--line) !important;
  border-radius:10px;
  background:#fff;
  box-shadow:0 2px 10px rgba(16,24,40,.025);
  transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.summary-item:hover{
  border-color:#C9D6E6 !important;
  box-shadow:0 7px 18px rgba(16,24,40,.05);
  transform:translateY(-1px);
}
.summary-icon{
  width:38px;
  height:38px;
  font-size:15px;
}
.summary-value{
  font-size:14px;
  line-height:1.25;
}
.summary-sub{
  max-width:170px;
  margin-top:5px;
  font-size:11.5px;
  line-height:1.45;
}

.panel{padding:18px;margin-bottom:14px}
.account-welcome{
  min-height:118px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.account-welcome h2{margin-bottom:8px}
.account-welcome p{
  max-width:720px;
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}
.account-welcome .panel-actions{margin-top:14px}
.account-welcome .btn{min-height:38px;font-size:12.5px}

@media(max-width:1100px){
  .shell{grid-template-columns:1fr}
  .sidebar{grid-template-columns:1fr 1fr}
  .summary-strip{grid-template-columns:1fr 1fr}
  .summary-item:nth-child(n){
    border:1px solid var(--line) !important;
  }
}

@media(max-width:760px){
  .shell{margin-top:20px;margin-bottom:22px}
  .sidebar{display:block}
  .hero-head{min-height:auto;margin-bottom:15px}
  .order-title{font-size:31px}
  .summary-strip{grid-template-columns:1fr}
  .summary-item:nth-child(n){
    border:1px solid var(--line) !important;
  }
}

/* =========================================================
   v5 — WooCommerce address layout + subscription detail state
   Presentation only. Keeps WooCommerce's existing address endpoints/actions.
   ========================================================= */

.woocommerce-Addresses{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:18px !important;
  margin:18px 0 0 !important;
}

.woocommerce-Addresses::before,
.woocommerce-Addresses::after{
  display:none !important;
  content:none !important;
}

.woocommerce-Addresses .woocommerce-Address,
.woocommerce-Addresses .u-column1,
.woocommerce-Addresses .u-column2,
.woocommerce-Addresses .col-1,
.woocommerce-Addresses .col-2{
  float:none !important;
  clear:none !important;
  width:auto !important;
  max-width:none !important;
  margin:0 !important;
  min-width:0 !important;
}

.woocommerce-Addresses .woocommerce-Address{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:0 2px 10px rgba(16,24,40,.025);
}

.woocommerce-Addresses .woocommerce-Address-title{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin:0 0 14px;
}

.woocommerce-Addresses .woocommerce-Address-title::before,
.woocommerce-Addresses .woocommerce-Address-title::after{
  display:none !important;
  content:none !important;
}

.woocommerce-Addresses .woocommerce-Address-title h2,
.woocommerce-Addresses .woocommerce-Address-title h3{
  margin:0;
  font-size:17px;
  line-height:1.3;
  letter-spacing:-.01em;
}

.woocommerce-Addresses .woocommerce-Address-title .edit{
  float:none !important;
  flex:0 0 auto;
  margin:2px 0 0;
  color:var(--blue);
  font-size:12px;
  font-weight:750;
}

.woocommerce-Addresses address{
  margin:0;
  color:#344054;
  font-size:13px;
  font-style:normal;
  line-height:1.7;
}

@media(max-width:760px){
  .woocommerce-Addresses{
    grid-template-columns:1fr !important;
  }
}

