.ezcore-surface {
  --ezc-ink: #151922;
  --ezc-muted: #657085;
  --ezc-line: #dfe4eb;
  --ezc-soft: #f4f7fa;
  --ezc-panel: #ffffff;
  --ezc-gold: #d6a516;
  --ezc-gold-dark: #a97805;
  --ezc-teal: #176d70;
  --ezc-green: #168a52;
  --ezc-red: #b52f38;
  --ezc-violet: #7652b6;
  min-height: 70vh;
  padding-top: 76px;
  background: #f7f9fb;
}
.ezcore-page .ez-header { background: #07090d; }
.ezcore { max-width: 1240px; min-height: 55vh; margin: 0 auto; padding: 42px 28px 78px; color: var(--ezc-ink); letter-spacing: 0; }
.ezcore *, .ezcore *::before, .ezcore *::after { box-sizing: border-box; letter-spacing: 0; }
.ezcore [hidden] { display: none !important; }
.ezcore h1, .ezcore h2, .ezcore h3, .ezcore p { overflow-wrap: anywhere; }
.ezcore h1 { margin: 14px 0 4px; font-size: 36px; line-height: 1.18; }
.ezcore h2 { margin: 0 0 20px; font-size: 23px; line-height: 1.3; }
.ezcore h3 { margin: 26px 0 12px; font-size: 18px; }
.ezcore p, .ezcore a, .ezcore select, .ezcore button, .ezcore input { font-size: 14px; line-height: 1.55; }
.ezcore a { color: var(--ezc-teal); text-underline-offset: 3px; }
.ezcore :focus-visible { outline: 3px solid #2c8588; outline-offset: 3px; }
.ezcore-kicker { margin: 0 0 6px !important; color: var(--ezc-gold-dark); font-size: 12px !important; font-weight: 700; text-transform: uppercase; }
.ezcore-heading { position: relative; margin-bottom: 28px; }
.ezcore-back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.ezcore-heading__lead { margin: 0; color: var(--ezc-muted); }
.ezcore-heading nav { display: flex; gap: 28px; margin-top: 22px; border-bottom: 1px solid var(--ezc-line); }
.ezcore-heading nav a { padding: 8px 0 12px; color: #315f65; text-decoration: none; }
.ezcore-heading nav a[aria-current] { border-bottom: 3px solid var(--ezc-gold-dark); color: var(--ezc-ink); font-weight: 700; }
.ezcore-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 9px; padding: 10px 18px; border: 1px solid #b48712; border-radius: 5px; color: #17130a !important; background: #e8b827; font-weight: 700; text-decoration: none !important; white-space: normal; }
.ezcore-button:hover { background: #f0c746; }
.ezcore-button:disabled { opacity: .55; cursor: not-allowed; }
.ezcore-secondary { border-color: #aeb6c2; background: #fff; color: var(--ezc-ink) !important; }
.ezcore-secondary:hover { border-color: #707b8b; background: #f4f6f8; }
.ezcore-icon { display: inline-grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border: 1px solid #aeb6c2; border-radius: 5px; color: var(--ezc-ink); background: #fff; }
.ezcore-icon:hover { background: #f4f6f8; }
.ezcore select, .ezcore input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #bdc5d0; border-radius: 5px; color: var(--ezc-ink); background: #fff; font-family: inherit; }
.ezcore label { color: #303744; font-weight: 600; }
.ezcore-error { min-height: 0; margin: 12px 0 0; color: var(--ezc-red); }
.ezcore-notice { margin-bottom: 28px; padding: 15px 18px; border-left: 4px solid var(--ezc-gold); background: #fff9e8; }

/* Authentication */
.ezcore--guest .ezcore-heading { max-width: 560px; }
.ezcore-auth { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); overflow: hidden; border: 1px solid var(--ezc-line); border-radius: 8px; background: var(--ezc-panel); box-shadow: 0 18px 45px rgba(26, 34, 49, .08); }
.ezcore-account { padding: 34px; }
.ezcore-account h2 { margin-bottom: 8px; }
.ezcore-account__lead { margin: 0 0 22px; color: var(--ezc-muted); }
.ezcore-login-fields { display: grid; gap: 16px; }
.ezcore-login-fields > div { min-width: 0; }
.ezcore-login-fields label { display: block; margin-bottom: 6px; }
.ezcore-login-fields input::placeholder { color: #9ba4b2; }
.ezcore-login-fields .ezcore-button { width: 100%; margin-top: 2px; }
.ezcore-resend { min-height: 42px; margin-top: 8px; padding: 8px 0; border: 0; color: var(--ezc-teal); background: transparent; text-decoration: underline; }
#ezcore-login-status { margin: 12px 0 0; color: var(--ezc-green); }
.ezcore-assurance { display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: center; gap: 24px; min-width: 0; padding: 38px; border-left: 1px solid var(--ezc-line); background: #fffaf0; }
.ezcore-assurance h2 { margin: 0 0 12px; font-size: 31px; }
.ezcore-assurance h2 span { display: block; color: var(--ezc-gold-dark); }
.ezcore-assurance p { color: #596476; }
.ezcore-assurance ul { display: grid; gap: 11px; margin: 22px 0 0; padding: 0; list-style: none; }
.ezcore-assurance li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.ezcore-assurance li i { display: inline-grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; border-radius: 50%; color: #fff; background: var(--ezc-gold-dark); }
.ezcore-assurance img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; }

/* Signed-in account */
.ezcore-signed-in { display: flex; align-items: center; gap: 12px; margin: -4px 0 26px; padding: 12px 14px; border: 1px solid var(--ezc-line); border-radius: 6px; background: #fff; }
.ezcore-avatar { display: inline-grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 50%; color: #fff; background: var(--ezc-teal); }
.ezcore-signed-in p { min-width: 0; flex: 1; margin: 0; }
.ezcore-signed-in p span { display: block; color: var(--ezc-muted); }
.ezcore-signed-in button { min-height: 38px; padding: 7px 12px; }

/* Package purchase */
.ezcore-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(310px, .75fr); align-items: start; gap: 28px; }
.ezcore-catalog, .ezcore-payment, .ezcore-package-details { min-width: 0; }
.ezcore-catalog > h2 { margin-bottom: 16px; }
.ezcore-category-field { display: grid; grid-template-columns: auto minmax(200px, 310px); align-items: center; gap: 14px; margin-bottom: 18px; }
.ezcore-packages { display: grid; gap: 14px; }
.ezcore-package { position: relative; display: grid; grid-template-columns: minmax(230px, .9fr) minmax(0, 1.1fr); gap: 22px; min-height: 285px; padding: 14px; border: 1px solid var(--ezc-line); border-radius: 8px; background: #fff; cursor: pointer; box-shadow: 0 8px 24px rgba(26, 34, 49, .06); }
.ezcore-package:has(input:checked) { border-color: #c69214; box-shadow: inset 0 0 0 1px #c69214, 0 10px 26px rgba(26, 34, 49, .07); }
.ezcore-package input { position: absolute; top: 23px; left: 23px; z-index: 2; width: 19px; height: 19px; min-height: 0; margin: 0; padding: 0; accent-color: var(--ezc-teal); }
.ezcore-package img { display: block; width: 100%; height: 100%; min-height: 255px; grid-column: 1; grid-row: 1; object-fit: cover; border-radius: 6px; background: #edf0f3; }
.ezcore-package-details { display: flex; grid-column: 2; flex-direction: column; align-items: flex-start; padding: 8px 10px 8px 0; }
.ezcore-package-eyebrow { margin-bottom: 8px; color: var(--ezc-gold-dark); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.ezcore-package strong { color: var(--ezc-ink); font-size: 23px; line-height: 1.25; }
.ezcore-description { margin-top: 10px; color: var(--ezc-muted); font-size: 13px; line-height: 1.65; white-space: pre-line; }
.ezcore-package-price { order: 3; margin-top: auto; padding-top: 18px; color: var(--ezc-ink); font-size: 27px; font-weight: 800; }
.ezcore-package-price + .ezcore-description { order: 4; margin-top: 2px; }
.ezcore-layout:not(.ezcore-layout--single) .ezcore-package { grid-template-columns: 150px minmax(0, 1fr); min-height: 190px; }
.ezcore-layout:not(.ezcore-layout--single) .ezcore-package img { min-height: 160px; }
.ezcore-layout:not(.ezcore-layout--single) .ezcore-package strong { font-size: 18px; }
#ezcore-more { margin-top: 18px; }
.ezcore-payment { position: sticky; top: 98px; padding: 22px; border: 1px solid var(--ezc-line); border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(26, 34, 49, .07); }
.ezcore-payment h2 { padding-bottom: 14px; border-bottom: 1px solid var(--ezc-line); }
.ezcore-order-product { display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: center; gap: 12px; margin-bottom: 18px; }
.ezcore-order-product img { width: 68px; height: 58px; object-fit: cover; border-radius: 5px; }
.ezcore-order-product img[hidden] + div { grid-column: 1 / -1; }
#ezcore-selection { margin: 0; color: var(--ezc-ink); font-weight: 700; }
#ezcore-order-billing { margin: 2px 0 0; color: var(--ezc-muted); font-size: 12px; }
.ezcore-order-total { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 16px 0; border-top: 1px solid var(--ezc-line); }
.ezcore-order-total > span { font-weight: 700; }
.ezcore-total { margin: 0 !important; font-size: 25px !important; font-weight: 800; }
.ezcore-payment label { display: block; margin-bottom: 7px; }
#ezcore-method-status { margin: 10px 0; color: var(--ezc-muted); }
#ezcore-submit { width: 100%; margin-top: 8px; }
.ezcore-payment-trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ezc-line); color: #4d596b; font-size: 11px; }
.ezcore-payment-trust span { display: flex; align-items: center; gap: 6px; }
.ezcore-payment-trust i { color: var(--ezc-green); }

/* Status and history */
.ezcore-return { margin-bottom: 26px; padding: 22px; border: 1px solid var(--ezc-line); border-radius: 8px; background: #fff; }
.ezcore-return > i { display: block; margin-bottom: 12px; color: var(--ezc-teal); font-size: 30px; }
.ezcore-history { min-width: 0; }
.ezcore-history-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.ezcore-history-heading h2 { margin: 0; }
.ezcore-history-actions { display: flex; align-items: center; gap: 10px; }
.ezcore-history-filter { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.ezcore-history-actions select { width: auto; min-width: 150px; }
.ezcore-history-actions .ezcore-button { min-height: 44px; }
#ezcore-history-status { margin: 0 0 14px; color: var(--ezc-muted); }
.ezcore-history-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.ezcore-metric { display: flex; min-width: 0; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--ezc-line); border-radius: 7px; background: #fff; }
.ezcore-metric > i { display: inline-grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 50%; background: #e8f1ff; color: #286cc1; font-size: 17px; }
.ezcore-metric--green > i { color: #168a52; background: #e5f6ed; }
.ezcore-metric--violet > i { color: var(--ezc-violet); background: #f0eafb; }
.ezcore-metric--gold > i { color: var(--ezc-gold-dark); background: #fff4d4; }
.ezcore-metric span { display: block; color: var(--ezc-muted); font-size: 11px; }
.ezcore-metric strong { display: block; margin-top: 2px; font-size: 19px; overflow-wrap: anywhere; }
.ezcore-table-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--ezc-line); border-radius: 7px; background: #fff; }
.ezcore table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13px; }
.ezcore th, .ezcore td { max-width: 250px; padding: 13px 14px; border-bottom: 1px solid var(--ezc-line); text-align: left; overflow-wrap: anywhere; }
.ezcore th { color: #3b4555; background: #f1f3f6; font-size: 11px; text-transform: uppercase; }
.ezcore tbody tr:last-child td { border-bottom: 0; }
.ezcore tbody tr:hover { background: #fafbfc; }
.ezcore-status { display: inline-flex; min-height: 25px; align-items: center; padding: 3px 10px; border-radius: 999px; color: #586274; background: #edf0f4; font-size: 11px; font-weight: 700; text-transform: capitalize; }
.ezcore-status--paid, .ezcore-status--completed, .ezcore-status--succeeded, .ezcore-status--success { color: #117244; background: #dbf4e6; }
.ezcore-status--sent, .ezcore-status--active { color: #1d6d56; background: #dcf3e9; }
.ezcore-status--pending, .ezcore-status--unpaid { color: #8d6100; background: #fff0c7; }
.ezcore-status--failed, .ezcore-status--cancelled, .ezcore-status--refunded { color: #a62d36; background: #fee2e4; }
.ezcore-empty { margin: 0; padding: 28px; border: 1px dashed #c5ccd5; border-radius: 7px; color: var(--ezc-muted); text-align: center; background: #fff; }

@media (max-width: 980px) {
  .ezcore-auth { grid-template-columns: minmax(0, 1fr); }
  .ezcore-assurance { grid-template-columns: minmax(0, 1fr) 210px; border-top: 1px solid var(--ezc-line); border-left: 0; }
  .ezcore-layout { grid-template-columns: minmax(0, 1fr); }
  .ezcore-payment { position: static; }
  .ezcore-history-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ezcore-surface { padding-top: 62px; }
  .ezcore { padding: 30px 16px 52px; }
  .ezcore h1 { font-size: 30px; }
  .ezcore-heading { margin-bottom: 22px; }
  .ezcore-heading nav { gap: 20px; }
  .ezcore-account, .ezcore-assurance { padding: 22px; }
  .ezcore-assurance { grid-template-columns: minmax(0, 1fr); }
  .ezcore-assurance img { max-width: 220px; justify-self: center; }
  .ezcore-assurance h2 { font-size: 27px; }
  .ezcore-signed-in { align-items: flex-start; flex-wrap: wrap; }
  .ezcore-signed-in p { flex-basis: calc(100% - 54px); }
  .ezcore-signed-in button { margin-left: 50px; }
  .ezcore-category-field { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .ezcore-package, .ezcore-layout:not(.ezcore-layout--single) .ezcore-package { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .ezcore-package img, .ezcore-layout:not(.ezcore-layout--single) .ezcore-package img { min-height: 0; aspect-ratio: 16 / 9; grid-column: 1; grid-row: 1; }
  .ezcore-package-details { grid-column: 1; padding: 4px 4px 6px; }
  .ezcore-package strong { font-size: 20px; }
  .ezcore-package-price { margin-top: 8px; padding-top: 8px; }
  .ezcore-history-heading { align-items: flex-start; flex-direction: column; }
  .ezcore-history-actions { width: 100%; flex-wrap: wrap; }
  .ezcore-history-filter { width: 100%; }
  .ezcore-history-actions select { min-width: 0; flex: 1; }
  .ezcore-history-actions .ezcore-button { flex: 1 1 auto; }
  .ezcore-history-summary { grid-template-columns: minmax(0, 1fr); }
  .ezcore-payment-trust { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .ezcore * { scroll-behavior: auto !important; transition: none !important; } }
