:root {
  --navy:#081426;
  --navy2:#102442;
  --blue:#2878f0;
  --blue-light:#eaf2ff;
  --text:#17243a;
  --muted:#738096;
  --border:#e8edf4;
  --white:#fff;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:#fff}
a{text-decoration:none;color:inherit}
.header{height:76px;padding:0 7%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);background:white}
.brand{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:850;letter-spacing:1.2px}
.brand-icon{width:35px;height:35px;border-radius:10px;background:var(--blue);color:white;display:grid;place-items:center;font-size:22px;font-weight:900}
.brand-dot{color:var(--blue)}
.nav{display:flex;gap:34px;color:#65738a;font-size:13px;font-weight:600}
.nav a:hover,.login-link:hover{color:var(--blue)}
.header-actions{display:flex;align-items:center;gap:22px;font-size:13px;font-weight:700}
.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;background:var(--blue);color:white;padding:15px 22px;border-radius:9px;font-size:13px;font-weight:750;transition:.2s}
.button:hover{background:#1763d7;transform:translateY(-1px)}
.button-small{padding:11px 17px}
.hero{min-height:510px;background:linear-gradient(115deg,#081426,#102b50);color:white;padding:85px 10%;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:45px;overflow:hidden}
.eyebrow{font-size:10px;font-weight:850;letter-spacing:2px;color:var(--blue)}
.hero .eyebrow{color:#8dbaff}
.live-dot{display:inline-block;width:7px;height:7px;background:#55d5a1;border-radius:50%;margin-right:8px}
.hero h1{font-size:clamp(42px,5vw,65px);line-height:1.09;letter-spacing:-2.8px;margin:22px 0}
.hero h1 span{color:#65a1ff}
.hero-content>p{color:#b6c4d8;line-height:1.8;font-size:15px;max-width:480px}
.hero-actions{display:flex;align-items:center;gap:25px;margin-top:30px}
.secondary-button{font-size:13px;font-weight:700;color:#d8e5f8}
.trust-line{display:flex;flex-wrap:wrap;gap:20px;margin-top:35px;color:#bdcce0;font-size:11px}
.hero-visual{position:relative;display:grid;place-items:center;min-height:320px}
.visual-glow{position:absolute;width:280px;height:280px;border-radius:50%;background:#2878f0;filter:blur(100px);opacity:.35}
.market-card{z-index:1;width:min(100%,340px);padding:25px;border:1px solid #ffffff35;border-radius:18px;background:linear-gradient(145deg,#203c63,#0d1c34);box-shadow:0 30px 80px #0005;transform:rotate(-3deg)}
.market-top,.market-bottom{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1.2px;color:#b7c9e5}
.market-status{color:#69d5a9}
.market-symbol{height:105px;width:105px;margin:35px auto 22px;border-radius:28px;background:linear-gradient(145deg,#4c9aff,#1763d7);display:grid;place-items:center;font-size:70px;font-weight:900;box-shadow:0 12px 35px #2878f077}
.market-card h3{text-align:center;font-size:24px;line-height:1.3;color:white}
.market-bottom{border-top:1px solid #ffffff25;padding-top:18px;margin-top:27px}
.floating-card{position:absolute;z-index:2;padding:14px 17px;border-radius:10px;background:white;color:var(--blue);box-shadow:0 12px 35px #0002;font-size:15px}
.floating-card span{color:var(--text);font-size:11px;font-weight:700;margin-left:8px}
.floating-one{top:38px;right:-12px}.floating-two{bottom:25px;left:-15px}
.benefits{padding:27px 9%;display:grid;grid-template-columns:repeat(4,1fr);gap:20px;border-bottom:1px solid var(--border)}
.benefits>div{display:flex;align-items:center;gap:13px}
.benefit-icon{width:39px;height:39px;background:var(--blue-light);color:var(--blue);border-radius:10px;display:grid;place-items:center;font-size:21px}
.benefits strong,.benefits small{display:block}
.benefits strong{font-size:12px}.benefits small{font-size:10px;color:var(--muted);margin-top:5px}
.section{padding:75px 9%}
.section-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:30px}
.section-heading h2{font-size:30px;letter-spacing:-1px;margin:10px 0}
.section-heading p{color:var(--muted);font-size:13px;margin:0}
.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.category-card{padding:24px;border:1px solid var(--border);border-radius:12px;transition:.2s;background:white}
.category-card:hover,.product-card:hover{border-color:#b5d0fa;transform:translateY(-3px);box-shadow:0 12px 35px #17243a0b}
.category-icon{width:43px;height:43px;border-radius:12px;background:var(--blue-light);color:var(--blue);display:grid;place-items:center;font-size:21px;margin-bottom:17px}
.category-card strong{font-size:14px;display:block}
.category-card small{display:block;margin-top:7px;color:var(--muted);font-size:11px}
.products-section{background:#f8fafd}
.product-heading{align-items:center}
.search-box{display:flex;align-items:center;gap:10px;background:white;border:1px solid var(--border);border-radius:9px;padding:0 14px;width:250px;color:var(--muted)}
.search-box input{height:42px;border:0;outline:0;width:100%;font-size:12px;background:transparent}
.filter-row{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:24px}
.filter{border:1px solid var(--border);background:white;color:#64748b;padding:10px 17px;border-radius:30px;font-size:11px;font-weight:700;cursor:pointer}
.filter.active,.filter:hover{background:var(--navy);border-color:var(--navy);color:white}
.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}
.product-card{background:white;border:1px solid var(--border);border-radius:12px;overflow:hidden;transition:.2s}
.product-art{height:150px;background:linear-gradient(145deg,#eaf2ff,#dce9fc);display:grid;place-items:center;color:var(--blue);font-size:48px;font-weight:800}
.product-info{padding:18px}
.product-category{font-size:9px;color:var(--blue);font-weight:800;letter-spacing:1px;text-transform:uppercase}
.product-info h3{font-size:14px;margin:10px 0;min-height:35px}
.product-info p{font-size:11px;color:var(--muted);line-height:1.6;min-height:35px}
.product-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:17px}
.product-price{font-size:17px;font-weight:850}
.product-buy{font-size:11px;color:var(--blue);font-weight:800}
.loading,.empty-state{padding:45px;text-align:center;color:var(--muted);font-size:13px;grid-column:1/-1}
.empty-state[hidden]{display:none}
.cta-section{margin:65px 9%;padding:45px 5%;border-radius:16px;background:var(--navy);color:white;display:flex;align-items:center;justify-content:space-between;gap:25px}
.cta-section h2{font-size:26px;margin:12px 0}
.cta-section p{font-size:12px;color:#bdcce0;line-height:1.7}
.footer{padding:40px 9%;border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.footer>p,.footer small{font-size:11px;color:var(--muted)}
.footer>div{display:flex;gap:22px;font-size:11px;color:#65738a}
@media(max-width:900px){.hero{padding:65px 7%;grid-template-columns:1fr}.hero-visual{min-height:280px}.benefits{grid-template-columns:repeat(2,1fr)}.product-grid{grid-template-columns:repeat(2,1fr)}.category-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.header{padding:0 5%;height:65px}.nav{display:none}.header-actions{gap:12px}.header-actions .button{display:none}.hero{padding:65px 7%}.hero h1{font-size:45px}.trust-line{gap:12px}.floating-one{right:0}.floating-two{left:0}.benefits{padding:25px 6%;gap:20px}.benefits strong{font-size:11px}.section{padding:55px 6%}.section-heading{align-items:start;gap:20px;flex-direction:column}.section-heading h2{font-size:25px}.search-box{width:100%}.product-grid{gap:10px}.product-art{height:110px}.product-info{padding:12px}.product-info h3{font-size:12px}.product-price{font-size:14px}.category-grid{gap:10px}.category-card{padding:16px}.cta-section{margin:30px 6%;padding:30px;align-items:start;flex-direction:column}.footer{padding:30px 6%;flex-direction:column;align-items:start}.footer>div{flex-wrap:wrap}}

/* DAHPAY PRODUCT PAGE */

.product-page {
  max-width: 1250px;
  margin: 0 auto;
  padding: 45px 7%;
}

.product-breadcrumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 35px;
}

.product-breadcrumb a {
  color: var(--blue);
  font-weight: 700;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 75px;
  align-items: start;
}

.product-main-image {
  min-height: 430px;
  border-radius: 18px;
  background: linear-gradient(145deg,#eaf2ff,#d9e7fc);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--blue);
}

.product-main-image span {
  font-size: 115px;
  font-weight: 850;
}

.product-main-image small {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 800;
  margin-top: 20px;
}

.product-gallery-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

.product-gallery-note span {
  color: #16a675;
  margin-right: 8px;
}

.product-purchase h1 {
  font-size: clamp(30px,4vw,43px);
  letter-spacing: -1.5px;
  margin: 15px 0;
}

.product-short-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.product-detail-price {
  font-size: 32px;
  font-weight: 850;
  margin: 30px 0 12px;
}

.product-availability {
  color: #15966c;
  font-size: 12px;
  font-weight: 700;
}

.product-availability span {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #16b981;
  border-radius: 50%;
  margin-right: 7px;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 30px 0 20px;
  font-size: 12px;
  font-weight: 700;
}

.quantity-control input {
  width: 85px;
  height: 43px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
}

.product-add-button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.basket-feedback {
  min-height: 22px;
  margin-top: 12px;
  color: #15966c;
  font-size: 12px;
}

.basket-feedback.error {
  color: #d33b48;
}

.product-assurances {
  border-top: 1px solid var(--border);
  margin-top: 25px;
  padding-top: 20px;
  display: grid;
  gap: 19px;
}

.product-assurances>div {
  display: flex;
  gap: 13px;
  align-items: center;
}

.product-assurances>div>span {
  color: #15966c;
  font-size: 18px;
}

.product-assurances strong,
.product-assurances small {
  display: block;
}

.product-assurances strong {
  font-size: 12px;
}

.product-assurances small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}

.product-description-section {
  border-top: 1px solid var(--border);
  margin-top: 70px;
  padding-top: 45px;
  max-width: 850px;
}

.product-description-section h2 {
  font-size: 25px;
  margin: 12px 0 20px;
}

.product-description-section #product-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  white-space: pre-wrap;
}

.product-message {
  text-align: center;
  padding: 90px 20px;
  color: var(--muted);
}

.product-message[hidden],
.product-detail[hidden],
.product-description-section[hidden] {
  display: none;
}

@media(max-width:800px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .product-main-image {
    min-height: 280px;
  }

  .product-main-image span {
    font-size: 85px;
  }

  .product-page {
    padding: 30px 6%;
  }
}

/* CUSTOMER AUTHENTICATION */
.auth-page{background:#f7f9fc;min-height:100vh}
.auth-layout{min-height:calc(100vh - 150px);display:grid;place-items:center;padding:50px 20px}
.auth-panel{background:white;border:1px solid var(--border);border-radius:18px;padding:42px;width:min(100%,480px);box-shadow:0 20px 60px #1024420b}
.auth-panel h1{font-size:34px;margin:15px 0 10px;letter-spacing:-1px}
.auth-panel>p{font-size:13px;color:var(--muted);line-height:1.7}
.auth-tabs{display:flex;gap:10px;border-bottom:1px solid var(--border);margin:28px 0}
.auth-tab{background:none;border:0;padding:13px 20px;font-weight:700;color:var(--muted);cursor:pointer}
.auth-tab.active{color:var(--blue);border-bottom:2px solid var(--blue)}
#auth-form>div{margin-bottom:18px}
#auth-form label{display:block;font-size:12px;font-weight:700;margin-bottom:8px}
#auth-form input{width:100%;height:46px;border:1px solid var(--border);border-radius:8px;padding:0 13px;font-size:13px;outline:none}
#auth-form input:focus{border-color:var(--blue)}
.auth-submit{width:100%;border:0;cursor:pointer}
.auth-submit:disabled{opacity:.6;cursor:wait}
.auth-message{font-size:12px;color:#d13d3d;min-height:18px}
.auth-footnote{text-align:center;margin-top:25px;font-size:11px!important}
.account-layout{max-width:1150px;margin:auto;padding:65px 30px}
.account-heading h1{font-size:36px;margin:12px 0}
.account-heading p{color:var(--muted);font-size:14px}
.account-welcome{margin:35px 0;background:linear-gradient(115deg,#081426,#15345e);color:white;padding:35px;border-radius:15px;display:flex;justify-content:space-between;align-items:center}
.account-welcome h2{font-size:25px;margin:12px 0}
.account-welcome p{font-size:13px;color:#b6c4d8}
.account-avatar{width:65px;height:65px;border-radius:17px;background:var(--blue);display:grid;place-items:center;font-size:35px;font-weight:900}
.account-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.account-card{padding:25px;background:white;border:1px solid var(--border);border-radius:13px}
.account-card-icon{font-size:26px;color:var(--blue)}
.account-card h3{font-size:16px}
.account-card p{font-size:12px;color:var(--muted);line-height:1.7;min-height:40px}
.account-status{font-size:11px;color:var(--blue);font-weight:700}
.account-orders{margin-top:45px}
.account-orders h2{font-size:25px}
.orders-placeholder{padding:35px;background:white;border:1px solid var(--border);border-radius:12px;color:var(--muted);font-size:13px}
@media(max-width:650px){.auth-panel{padding:27px}.account-layout{padding:40px 6%}.account-grid{grid-template-columns:1fr}.account-welcome{padding:25px}.account-heading h1{font-size:30px}}

/* CUSTOMER ORDER HISTORY */
.customer-order{padding:23px;margin-bottom:15px;background:white;border:1px solid var(--border);border-radius:12px}
.customer-order-heading{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;font-size:14px}
.customer-order-date{font-size:11px;color:var(--muted);margin:12px 0}
.customer-order-statuses{display:flex;gap:9px;flex-wrap:wrap}
.order-status{background:var(--blue-light);color:var(--blue);padding:7px 11px;border-radius:20px;font-size:10px;font-weight:700}
.customer-order-items{margin-top:15px;border-top:1px solid var(--border);padding-top:10px}
.customer-order-items p{font-size:12px;color:var(--text);line-height:1.6}

/* DAHPAY SHOPPING BASKET */
.basket-layout{max-width:1200px;margin:auto;padding:65px 30px 90px}
.basket-heading h1{font-size:38px;margin:12px 0}
.basket-heading p{font-size:14px;color:var(--muted)}
.basket-columns{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:35px;margin-top:40px;align-items:start}
.basket-section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.basket-section-heading h2,.basket-summary h2{font-size:19px}
.basket-section-heading span{font-size:12px;color:var(--muted)}
.basket-item{display:grid;grid-template-columns:85px minmax(0,1fr) auto;gap:18px;align-items:center;padding:22px 0;border-bottom:1px solid var(--border)}
.basket-item-art{height:85px;width:85px;border-radius:12px;background:linear-gradient(145deg,#eaf2ff,#dce9fc);display:grid;place-items:center;color:var(--blue);font-size:35px;font-weight:850}
.basket-item-details h3{font-size:15px;margin:8px 0}
.basket-product-type{font-size:9px;color:var(--blue);text-transform:uppercase;font-weight:800}
.basket-item-price{font-size:12px}
.basket-item-controls{display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.basket-item-controls label{font-size:10px;color:var(--muted)}
.basket-quantity{display:block;width:65px;height:35px;border:1px solid var(--border);border-radius:7px;padding:5px;margin-top:5px}
.basket-remove{border:0;background:none;color:#d34b4b;font-size:11px;cursor:pointer;padding:0}
.basket-line-total{font-size:13px;white-space:nowrap}
.basket-summary{background:#f8fafd;border:1px solid var(--border);border-radius:14px;padding:25px;position:sticky;top:20px}
.summary-line,.summary-total{display:flex;justify-content:space-between;gap:15px;margin:22px 0;font-size:12px}
.summary-line span{color:var(--muted)}
.summary-total{border-top:1px solid var(--border);padding-top:20px;font-size:15px;font-weight:800}
.basket-checkout{width:100%;border:0;cursor:pointer}
.basket-checkout:disabled{opacity:.45;cursor:not-allowed}
.basket-security{text-align:center;font-size:10px;color:var(--muted);margin:17px 0}
.continue-shopping{display:block;text-align:center;font-size:11px;color:var(--blue);font-weight:700;margin-top:20px}
.basket-empty{text-align:center;padding:60px 20px;background:#f8fafd;border-radius:12px}
.basket-empty h3{font-size:19px}
.basket-empty p{font-size:12px;color:var(--muted);margin-bottom:25px}
.basket-error{color:#c33;font-size:13px}
@media(max-width:850px){.basket-columns{grid-template-columns:1fr}.basket-summary{position:static}}
@media(max-width:550px){.basket-layout{padding:40px 6%}.basket-item{grid-template-columns:65px minmax(0,1fr);gap:12px}.basket-item-art{width:65px;height:65px}.basket-item-controls{grid-column:2;flex-direction:row;align-items:center}.basket-line-total{grid-column:2}.basket-heading h1{font-size:30px}}

/* =========================================
   DAHPAY CHECKOUT
========================================= */

.checkout-layout {
  max-width: 1160px;
  margin: 0 auto;
  padding: 65px 6%;
}

.checkout-heading {
  margin-bottom: 35px;
}

.checkout-heading h1 {
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -1.8px;
  margin: 12px 0;
}

.checkout-heading p,
.checkout-muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.checkout-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr);
  gap: 28px;
  align-items: start;
}

.checkout-details {
  display: grid;
  gap: 20px;
}

.checkout-card,
.checkout-summary {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 8px 30px #17243a08;
}

.checkout-card h2,
.checkout-summary h2 {
  font-size: 19px;
  margin: 0 0 22px;
}

.checkout-field {
  margin-bottom: 20px;
}

.checkout-field label {
  display: block;
  font-size: 12px;
  font-weight: 750;
  margin-bottom: 9px;
}

.checkout-field input {
  width: 100%;
  height: 49px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 13px;
  outline: none;
}

.checkout-field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #2878f01a;
}

.checkout-account-status {
  background: var(--blue-light);
  border-radius: 9px;
  padding: 15px;
  font-size: 13px;
}

.checkout-account-status p {
  margin: 0 0 10px;
}

.text-button {
  border: 0;
  background: none;
  color: var(--blue);
  font-weight: 750;
  cursor: pointer;
}

.checkout-login-prompt {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}

.checkout-login-prompt a {
  color: var(--blue);
  font-weight: 750;
}

.paypal-payment {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #f8fafd;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 17px;
  margin-bottom: 22px;
}

.paypal-logo {
  color: #003087;
  font-size: 23px;
  font-weight: 900;
  font-style: italic;
}

.paypal-payment span {
  color: var(--muted);
  font-size: 11px;
}

.checkout-pay-button {
  width: 100%;
  border: 0;
  cursor: pointer;
  min-height: 51px;
}

.checkout-pay-button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.checkout-security,
.basket-security {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 16px;
}

.checkout-error {
  padding: 13px;
  background: #fff1f1;
  color: #a32626;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.checkout-error[hidden],
.checkout-account-status[hidden],
.checkout-guest-fields[hidden],
.checkout-login-prompt[hidden] {
  display: none;
}

.checkout-summary {
  position: sticky;
  top: 20px;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.checkout-item div {
  display: grid;
  gap: 7px;
}

.checkout-item strong {
  font-size: 12px;
}

.checkout-item small {
  color: var(--muted);
}

.checkout-summary .summary-line {
  margin-top: 20px;
}

.checkout-summary .summary-total {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 20px;
}

.checkout-summary .continue-shopping {
  display: inline-block;
  margin-top: 25px;
  font-size: 12px;
  color: var(--blue);
  font-weight: 750;
}

/* Payment result pages */

.checkout-result {
  min-height: 65vh;
  padding: 70px 6%;
  display: grid;
  place-items: center;
  background: #f8fafd;
}

.checkout-result-card {
  width: min(100%, 520px);
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 45px 35px;
  text-align: center;
  box-shadow: 0 15px 50px #17243a0b;
}

.checkout-result-icon {
  width: 65px;
  height: 65px;
  margin: 0 auto 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e5f8ef;
  color: #16945b;
  font-size: 32px;
  font-weight: 850;
}

.checkout-cancel-icon {
  background: var(--blue-light);
  color: var(--blue);
}

.checkout-result-card h1 {
  font-size: 28px;
  letter-spacing: -1px;
  margin: 15px 0;
}

.checkout-result-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 25px;
}

.checkout-result-card .button {
  margin-top: 15px;
}

#success-reference {
  padding: 13px;
  background: var(--blue-light);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

#success-status {
  font-size: 12px;
  color: var(--muted);
  margin: 15px 0;
}

@media(max-width:800px) {
  .checkout-columns {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
    grid-row: 1;
  }
}

@media(max-width:600px) {
  .checkout-layout {
    padding: 40px 5%;
  }

  .checkout-card,
  .checkout-summary {
    padding: 21px;
  }

  .checkout-result {
    padding: 40px 5%;
  }

  .checkout-result-card {
    padding: 35px 22px;
  }

  .checkout-result-card h1 {
    font-size: 24px;
  }
}


/* ==========================================
   DAHPAY ADMINISTRATION DASHBOARD
========================================== */

.admin-body {
  background: #f5f7fb;
  min-height: 100vh;
  color: #17243a;
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 255px;
  background: #081426;
  color: #fff;
  padding: 26px 17px;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px 35px;
  font-size: 19px;
  font-weight: 850;
  letter-spacing: 1px;
  color: #fff;
}

.admin-nav-label {
  color: #73849d;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.7px;
  padding: 14px 11px 10px;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  color: #afbdd1;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
  transition: .2s;
}

.admin-nav-link>span {
  width: 19px;
  text-align: center;
  font-size: 17px;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background: #19365e;
  color: white;
}

.admin-nav-link.active {
  box-shadow: inset 3px 0 #4c94ff;
}

.admin-nav-link small {
  margin-left: auto;
  font-size: 9px;
  color: #85b4ff;
}

.admin-sidebar-bottom {
  margin-top: auto;
  padding: 17px 5px 0;
  border-top: 1px solid #ffffff20;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user-avatar {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  background: #2878f0;
  border-radius: 50%;
  font-weight: 800;
}

.admin-user-details {
  flex: 1;
  min-width: 0;
}

.admin-user-details strong,
.admin-user-details small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-details strong {
  font-size: 10px;
}

.admin-user-details small {
  font-size: 9px;
  color: #8fa4c1;
  margin-top: 5px;
  text-transform: capitalize;
}

.admin-sidebar-bottom button {
  border: 0;
  background: transparent;
  color: #c3d2e8;
  font-size: 19px;
  cursor: pointer;
}

.admin-main {
  margin-left: 255px;
  min-height: 100vh;
}

.admin-topbar {
  height: 75px;
  padding: 0 4%;
  background: white;
  border-bottom: 1px solid #e8edf4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-breadcrumb {
  display: block;
  color: #8491a5;
  font-size: 9px;
  letter-spacing: 1.2px;
  margin-bottom: 5px;
}

.admin-topbar>div>strong {
  font-size: 13px;
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #68778d;
  font-size: 11px;
}

.admin-live-dot,
.admin-activity-dot {
  width: 8px;
  height: 8px;
  background: #21b77a;
  border-radius: 50%;
}

.admin-refresh {
  margin-left: 15px;
  background: white;
  border: 1px solid #dfe6ef;
  border-radius: 7px;
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  color: #24344c;
}

.admin-refresh:hover {
  background: #edf4ff;
}

.admin-refresh:disabled {
  opacity: .6;
  cursor: wait;
}

.admin-menu-toggle {
  display: none;
}

.admin-content {
  max-width: 1500px;
  padding: 38px 4%;
  margin: auto;
}

.admin-page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.admin-page-heading h1 {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 9px 0;
}

.admin-page-heading p {
  font-size: 12px;
  color: #78869a;
  margin: 0;
}

.admin-date {
  font-size: 11px;
  color: #718096;
  background: white;
  padding: 12px 16px;
  border: 1px solid #e7edf4;
  border-radius: 8px;
}

.admin-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 27px 0 15px;
}

.admin-section-heading h2 {
  font-size: 15px;
  margin: 0;
}

.admin-section-heading>span {
  font-size: 10px;
  color: #8b98a9;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.admin-stat-card,
.admin-panel {
  background: white;
  border: 1px solid #e9edf3;
  border-radius: 11px;
  padding: 21px;
}

.admin-stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #77859a;
  font-size: 11px;
  font-weight: 650;
}

.admin-stat-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #edf4ff;
  color: #2878f0;
  font-size: 17px;
}

.admin-stat-card>strong {
  display: block;
  font-size: clamp(20px, 2vw, 29px);
  letter-spacing: -1px;
  margin: 17px 0 8px;
  overflow-wrap: anywhere;
}

.admin-stat-card>small {
  color: #8995a7;
  font-size: 10px;
}

.admin-secondary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-panel h3 {
  margin: 0 0 20px;
  font-size: 13px;
}

.admin-revenue-list {
  display: grid;
  gap: 13px;
  font-size: 11px;
  color: #77859a;
}

.admin-revenue-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.admin-revenue-line strong {
  color: #17243a;
  font-size: 13px;
}

.admin-status-row {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-top: 1px solid #edf0f5;
  font-size: 11px;
  color: #748197;
}

.admin-status-row strong {
  color: #17243a;
}

.admin-table-panel {
  margin-top: 20px;
  padding: 0;
  overflow: hidden;
}

.admin-panel-heading {
  padding: 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.admin-panel-heading h2 {
  margin: 0;
  font-size: 14px;
}

.admin-panel-heading p {
  margin: 6px 0 0;
  color: #8491a5;
  font-size: 10px;
}

.admin-panel-tag {
  background: #edf4ff;
  color: #2878f0;
  border-radius: 20px;
  padding: 7px 11px;
  font-size: 9px;
  font-weight: 750;
}

.admin-table-scroll {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}

.admin-table th {
  padding: 13px 18px;
  background: #f8fafd;
  color: #8995a7;
  font-size: 9px;
  letter-spacing: .7px;
}

.admin-table td {
  padding: 15px 18px;
  border-top: 1px solid #edf0f5;
  font-size: 10px;
  color: #526178;
}

.admin-order-reference {
  font-weight: 750;
  color: #2878f0 !important;
}

.admin-status {
  display: inline-block;
  border-radius: 20px;
  padding: 5px 9px;
  font-size: 9px;
  font-weight: 750;
  background: #edf0f5;
  color: #65738a;
}

.status-paid,
.status-completed,
.status-processing {
  background: #e5f8ef;
  color: #168557;
}

.status-pending,
.status-manual_review {
  background: #fff5df;
  color: #a87514;
}

.status-failed,
.status-cancelled {
  background: #fff0ef;
  color: #c34b43;
}

.admin-activity-list {
  padding: 0 21px;
}

.admin-activity-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 0;
  border-top: 1px solid #edf0f5;
}

.admin-activity-item:first-child {
  border-top: 0;
}

.admin-activity-dot {
  flex-shrink: 0;
  background: #2878f0;
}

.admin-activity-details {
  flex: 1;
  min-width: 0;
}

.admin-activity-details strong,
.admin-activity-details small {
  display: block;
}

.admin-activity-details strong {
  font-size: 11px;
  color: #27364e;
}

.admin-activity-details small {
  font-size: 9px;
  color: #8995a7;
  margin-top: 5px;
}

.admin-activity-item time {
  font-size: 9px;
  color: #8995a7;
  white-space: nowrap;
}

.admin-loading {
  padding: 65px 20px;
  text-align: center;
  color: #78869a;
  font-size: 12px;
}

.admin-spinner {
  width: 29px;
  height: 29px;
  border: 3px solid #e6edf8;
  border-top-color: #2878f0;
  border-radius: 50%;
  animation: admin-spin .8s linear infinite;
  margin: 0 auto 15px;
}

@keyframes admin-spin {
  to { transform: rotate(360deg); }
}

.admin-error {
  background: #fff0ef;
  color: #b64039;
  padding: 15px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 20px;
}

.admin-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 35px;
  padding: 20px 0;
  border-top: 1px solid #e6ebf2;
  color: #929eae;
  font-size: 10px;
}

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

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

@media(max-width:700px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform .25s;
  }

  .admin-sidebar.admin-sidebar-open {
    transform: translateX(0);
  }

  .admin-main {
    margin-left: 0;
  }

  .admin-menu-toggle {
    display: block;
    border: 0;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    color: #17243a;
  }

  .admin-topbar {
    padding: 0 5%;
    gap: 12px;
  }

  .admin-topbar-right {
    font-size: 9px;
  }

  .admin-content {
    padding: 28px 5%;
  }

  .admin-page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-page-heading h1 {
    font-size: 26px;
  }

  .admin-stats-grid,
  .admin-secondary-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .admin-stat-card,
  .admin-panel {
    padding: 14px;
  }

  .admin-stat-card>strong {
    font-size: 21px;
  }

  .admin-stat-top {
    font-size: 10px;
  }

  .admin-panel-heading {
    padding: 15px;
  }

  .admin-activity-list {
    padding: 0 15px;
  }

  .admin-activity-item {
    align-items: flex-start;
  }

  .admin-activity-item time {
    white-space: normal;
    text-align: right;
  }
}

@media(max-width:420px) {
  .admin-secondary-grid {
    grid-template-columns: 1fr;
  }

  .admin-topbar-right>span:not(.admin-live-dot) {
    display: none;
  }

  .admin-refresh {
    margin-left: 0;
    padding: 8px;
  }
}

/* End Dahpay Administration Dashboard */

/* ==========================================
   DAHPAY PRODUCT MANAGEMENT
========================================== */

.product-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 25px;
}

.product-editor {
  margin-bottom: 25px;
  scroll-margin-top: 20px;
}

.product-close {
  background: transparent;
  border: 0;
  color: #728096;
  font-size: 27px;
  cursor: pointer;
}

.product-form {
  padding: 0 21px 22px;
}

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

.product-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

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

.product-field>label {
  font-size: 11px;
  font-weight: 750;
  color: #34445b;
}

.product-field input:not([type="checkbox"]),
.product-field select,
.product-field textarea,
.product-list-toolbar input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dfe6ef;
  border-radius: 7px;
  padding: 12px 13px;
  color: #17243a;
  background: #fff;
  font: inherit;
  font-size: 12px;
  outline: none;
}

.product-field input:focus,
.product-field select:focus,
.product-field textarea:focus,
.product-list-toolbar input:focus {
  border-color: #2878f0;
  box-shadow: 0 0 0 3px #2878f018;
}

.product-field textarea {
  resize: vertical;
  line-height: 1.6;
}

.product-field>small,
.product-checkbox-field small {
  color: #8a97a9;
  font-size: 10px;
}

.product-checkbox-field>label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.product-checkbox-field input {
  width: 16px;
  height: 16px;
  accent-color: #2878f0;
}

.product-checkbox-field small {
  margin-left: 25px;
}

.product-image-notice {
  margin-top: 22px;
  padding: 15px;
  background: #f1f6ff;
  border: 1px solid #e0eaff;
  border-radius: 8px;
}

.product-image-notice strong {
  font-size: 11px;
  color: #234d88;
}

.product-image-notice p {
  font-size: 10px;
  color: #6e809c;
  margin: 6px 0 0;
}

.product-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #edf0f5;
}

.product-add-button {
  padding: 12px 20px;
  cursor: pointer;
}

.product-list-panel {
  overflow: hidden;
  padding: 0;
}

.product-list-toolbar {
  padding: 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.product-list-toolbar h2 {
  margin: 0;
  font-size: 14px;
}

.product-list-toolbar p {
  margin: 6px 0 0;
  color: #8491a5;
  font-size: 10px;
}

.product-list-toolbar input {
  max-width: 260px;
}

.product-name-cell,
.product-slug-cell {
  display: block;
}

.product-name-cell {
  color: #25354b;
  font-size: 11px;
}

.product-slug-cell {
  color: #8a97a9;
  font-size: 9px;
  margin-top: 5px;
}

.product-actions-cell {
  display: flex;
  gap: 7px;
}

.product-action-button {
  border: 1px solid #dfe6ef;
  background: #fff;
  color: #2878f0;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.product-action-button:hover {
  background: #edf4ff;
}

.product-empty {
  text-align: center;
  padding: 45px 20px !important;
  color: #8794a7 !important;
  white-space: normal;
}

.product-list-footer {
  padding: 14px 20px;
  border-top: 1px solid #edf0f5;
  color: #8995a7;
  font-size: 10px;
}

.product-success-message {
  background: #e8f8ef;
  color: #168557;
  padding: 15px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 20px;
}

@media(max-width:700px) {
  .product-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-form-grid {
    grid-template-columns: 1fr;
  }

  .product-field-wide {
    grid-column: auto;
  }

  .product-list-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .product-list-toolbar input {
    max-width: none;
  }

  .product-form {
    padding: 0 15px 18px;
  }
}


/* DAHPAY CATEGORY MANAGEMENT */

.category-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.category-add-button {
  min-width: 220px;
}

.category-editor,
.category-list-panel {
  margin-bottom: 24px;
}

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

.category-description-field {
  grid-column: 1 / -1;
}

.category-form-grid textarea {
  width: 100%;
  min-height: 100px;
  resize: vertical;
}

.category-assignment-section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #e6ebf2;
}

.category-assignment-section h3 {
  margin: 0 0 7px;
  font-size: 16px;
}

.category-selection-count {
  background: #edf4ff;
  color: #2878ef;
  border-radius: 20px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.category-product-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid #e5eaf2;
  border-radius: 10px;
  background: #fbfcfe;
}

.category-product-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  background: white;
  border: 1px solid #e7ebf2;
  border-radius: 9px;
  cursor: pointer;
  min-width: 0;
}

.category-product-option:hover {
  border-color: #7eafff;
  background: #f7faff;
}

.category-product-option input {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: #2878ef;
}

.category-product-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.category-product-details strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.category-product-details small {
  font-size: 11px;
  color: #8492a8;
}

.category-product-option input:disabled {
  cursor: not-allowed;
}

.category-assignment-notice {
  padding: 13px 16px;
  margin-bottom: 14px;
  background: #fff7e8;
  border: 1px solid #f4dfb4;
  color: #8a5a0a;
  border-radius: 8px;
  font-size: 13px;
}

.category-filters {
  display: flex;
  gap: 10px;
  align-items: center;
}

.category-filters input,
.category-filters select {
  min-height: 44px;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  padding: 0 13px;
  background: white;
  color: #24344d;
}

.category-filters input {
  min-width: 220px;
}

.category-filters select {
  min-width: 140px;
}

.category-table {
  width: 100%;
  border-collapse: collapse;
}

.category-table th,
.category-table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid #edf0f5;
  white-space: nowrap;
  font-size: 12px;
}

.category-table th {
  background: #f7f9fc;
  color: #7788a2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.category-table td:first-child {
  min-width: 190px;
}

.category-table td:nth-child(2) {
  color: #72839c;
}

.category-table .product-actions-cell {
  display: flex;
  gap: 7px;
}

.category-list-footer {
  padding: 16px 20px;
  color: #8795aa;
  font-size: 12px;
}

.category-footer {
  padding: 25px 0;
  border-top: 1px solid #e6ebf2;
  color: #8795aa;
  font-size: 12px;
}

@media (max-width: 1050px) {
  .category-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-list-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .category-summary-grid,
  .category-form-grid,
  .category-product-list {
    grid-template-columns: 1fr;
  }

  .category-description-field {
    grid-column: auto;
  }

  .category-filters {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .category-filters input,
  .category-filters select {
    width: 100%;
    min-width: 0;
  }

  .category-add-button {
    min-width: 0;
    width: 100%;
  }

  .category-table {
    min-width: 850px;
  }

  .category-list-panel {
    overflow: hidden;
  }
}

/* DAHPAY DIGITAL INVENTORY */

.inventory-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.inventory-editor {
  margin-bottom: 25px;
  scroll-margin-top: 20px;
}

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

.inventory-secret-field,
.inventory-download-notice {
  grid-column: 1 / -1;
}

.inventory-download-notice {
  padding: 18px;
  background: #f1f5fb;
  border: 1px solid #dce5f0;
  border-radius: 9px;
  color: #34445a;
}

.inventory-download-notice p {
  margin: 8px 0 0;
  font-size: 13px;
}

.inventory-list-panel {
  overflow: hidden;
}

.inventory-list-heading {
  margin-bottom: 18px;
}

.inventory-filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 0 21px 20px;
}

.inventory-filters input,
.inventory-filters select {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #dfe5ed;
  border-radius: 7px;
  background: #fff;
  color: #263448;
  font: inherit;
  font-size: 13px;
}

.inventory-table {
  min-width: 850px;
}

.inventory-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 21px;
  border-top: 1px solid #edf0f5;
  color: #728096;
  font-size: 12px;
}

.inventory-pagination > div {
  display: flex;
  gap: 8px;
}

.inventory-pagination button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

@media(max-width: 1000px) {
  .inventory-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media(max-width: 700px) {
  .inventory-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inventory-form-grid,
  .inventory-filters {
    grid-template-columns: 1fr;
  }

  .inventory-secret-field,
  .inventory-download-notice {
    grid-column: auto;
  }

  .inventory-filters {
    padding: 0 15px 16px;
  }

  .inventory-pagination {
    align-items: flex-start;
    flex-direction: column;
    padding: 15px;
  }
}

/* Dahpay Orders Management */
.orders-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.orders-list-panel {
  overflow: hidden;
}

.orders-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.7fr) repeat(2, minmax(170px, 1fr));
  gap: 12px;
  padding: 20px;
}

.orders-filters input,
.orders-filters select {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  padding: 0 13px;
  background: #fff;
  color: #17243a;
  font: inherit;
  font-size: 12px;
}

.orders-filters input:focus,
.orders-filters select:focus {
  outline: none;
  border-color: #2878f0;
  box-shadow: 0 0 0 3px #2878f018;
}

.orders-table td {
  vertical-align: middle;
}

.orders-table td strong,
.orders-table td small {
  display: block;
}

.orders-table td small {
  margin-top: 5px;
  color: #8995a7;
  white-space: normal;
  max-width: 210px;
}

.order-reference-cell {
  font-weight: 750;
  color: #1769d2 !important;
}

.order-total-cell {
  font-weight: 750;
  color: #17243a !important;
}

.orders-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  border-top: 1px solid #edf0f5;
  font-size: 11px;
  color: #78869a;
}

.orders-pagination > div {
  display: flex;
  gap: 8px;
}

.orders-modal[hidden] {
  display: none !important;
}

.orders-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.orders-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 15, 31, .72);
  backdrop-filter: blur(3px);
}

.orders-modal-content {
  position: relative;
  z-index: 1;
  width: min(1050px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, .25);
}

.orders-modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 28px;
  background: #fff;
  border-bottom: 1px solid #edf0f5;
}

.orders-modal-header h2 {
  margin: 8px 0 5px;
  font-size: 22px;
  color: #14233b;
  overflow-wrap: anywhere;
}

.orders-modal-header p {
  margin: 0;
  color: #78869a;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.orders-detail-content {
  padding: 24px 28px;
}

.order-detail-section {
  margin-bottom: 26px;
}

.order-detail-section h3 {
  margin: 0 0 15px;
  padding-bottom: 11px;
  border-bottom: 1px solid #edf0f5;
  font-size: 14px;
  color: #17243a;
}

.order-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.order-info-grid > div,
.order-total-breakdown > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-info-grid span,
.order-total-breakdown span,
.order-status-summary > div > span {
  font-size: 10px;
  color: #8995a7;
}

.order-info-grid strong {
  font-size: 12px;
  color: #17243a;
  overflow-wrap: anywhere;
}

.order-total-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 16px;
  background: #f8fafd;
  border-radius: 9px;
}

.order-total-breakdown strong {
  color: #17243a;
  font-size: 14px;
}

.order-total-breakdown .order-grand-total {
  border-left: 1px solid #dce4ef;
  padding-left: 16px;
}

.order-total-breakdown .order-grand-total strong {
  color: #1769d2;
  font-size: 18px;
}

.order-status-summary {
  display: flex;
  gap: 25px;
  margin-top: 17px;
  flex-wrap: wrap;
}

.order-status-summary > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.order-detail-table-wrap {
  overflow-x: auto;
}

.order-detail-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}

.order-detail-table th {
  padding: 11px;
  background: #f8fafd;
  color: #8995a7;
  font-size: 10px;
  text-transform: uppercase;
}

.order-detail-table td {
  padding: 13px 11px;
  border-bottom: 1px solid #edf0f5;
  font-size: 11px;
  color: #526178;
}

.order-record {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid #edf0f5;
}

.order-record:last-child {
  border-bottom: 0;
}

.order-record > div:first-child {
  min-width: 0;
}

.order-record strong,
.order-record small {
  display: block;
}

.order-record strong {
  color: #17243a;
  font-size: 12px;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}

.order-record small {
  color: #78869a;
  font-size: 10px;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.order-record-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
}

.order-empty {
  color: #8995a7;
  font-size: 12px;
}

.order-error-text {
  color: #bd3946 !important;
}

.order-metadata {
  margin-top: 9px;
  padding: 10px;
  max-width: 100%;
  overflow-x: auto;
  background: #f8fafd;
  border-radius: 6px;
  color: #526178;
  font-size: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

body.orders-modal-open {
  overflow: hidden;
}

#order-detail-message {
  margin: 16px 28px 0;
}

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

  .orders-filters input {
    grid-column: 1 / -1;
  }

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

@media (max-width: 600px) {
  .orders-overview {
    grid-template-columns: 1fr;
  }

  .orders-filters {
    grid-template-columns: 1fr;
  }

  .orders-filters input {
    grid-column: auto;
  }

  .orders-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .orders-modal {
    padding: 8px;
  }

  .orders-modal-content {
    max-height: 96vh;
    border-radius: 10px;
  }

  .orders-modal-header,
  .orders-detail-content {
    padding: 18px;
  }

  .order-info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .order-total-breakdown {
    grid-template-columns: 1fr 1fr;
  }

  .order-total-breakdown .order-grand-total {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid #dce4ef;
    padding: 12px 0 0;
  }

  .order-record {
    gap: 10px;
  }

  .order-record-right {
    align-items: flex-end;
  }
}

/* Customer management */
.customers-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 22px;
}

.customers-list-panel,
.customer-detail-panel {
  margin-top: 20px;
  overflow: hidden;
}

.customers-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 21px 20px;
}

.customers-filters input,
.customers-filters select {
  min-height: 43px;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  padding: 0 13px;
  background: #fff;
  color: #17243a;
  font: inherit;
}

.customers-filters input {
  flex: 1;
  min-width: 240px;
}

.customers-filters select {
  min-width: 190px;
}

.customers-filters input:focus,
.customers-filters select:focus {
  outline: none;
  border-color: #2878f0;
  box-shadow: 0 0 0 3px #2878f018;
}

.customers-table {
  min-width: 850px;
}

.customer-email {
  display: block;
  margin-top: 4px;
  color: #8491a5;
  font-size: 11px;
}

.customers-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 18px 21px;
  border-top: 1px solid #edf0f5;
  color: #78869a;
  font-size: 11px;
}

.customers-pagination > div {
  display: flex;
  gap: 8px;
}

.customer-detail-panel {
  padding: 21px;
}

.customer-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.customer-profile-grid > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 17px;
  border: 1px solid #edf0f5;
  border-radius: 9px;
  background: #fafbfd;
  min-width: 0;
}

.customer-profile-grid small {
  color: #8491a5;
  font-size: 11px;
}

.customer-profile-grid strong {
  color: #17243a;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.customer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 0;
  border-top: 1px solid #edf0f5;
  border-bottom: 1px solid #edf0f5;
}

.customer-controls h3,
.customer-history h3 {
  margin: 0 0 6px;
  color: #17243a;
  font-size: 14px;
}

.customer-controls p {
  margin: 0;
  color: #8491a5;
  font-size: 11px;
}

.customer-history {
  margin-top: 24px;
}

.customer-history .admin-table-wrap {
  margin-top: 12px;
}

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

@media (max-width: 600px) {
  .customers-overview {
    grid-template-columns: 1fr;
  }

  .customers-filters {
    flex-direction: column;
  }

  .customers-filters input,
  .customers-filters select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .customers-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .customer-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-detail-panel {
    padding: 15px;
  }
}


/* CUSTOMER PRODUCT LIBRARY */
.account-products{margin-top:46px}
.account-section-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:20px}
.account-section-heading h2{font-size:25px;margin:8px 0}
.account-section-heading p{font-size:13px;color:var(--muted);margin:0}
.library-products-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.library-product-card{min-width:0;padding:23px;background:#fff;border:1px solid var(--border);border-radius:13px;box-shadow:0 5px 20px #10244206}
.library-product-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.library-product-details{min-width:0}
.library-product-type{font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:var(--blue);font-weight:800}
.library-product-details h3{font-size:16px;line-height:1.4;margin:8px 0;overflow-wrap:anywhere}
.library-product-reference,.library-product-date{font-size:11px;color:var(--muted);margin:0}
.library-product-status{flex:none;padding:7px 10px;border-radius:20px;background:#edf3ff;color:#2459a8;font-size:10px;font-weight:750}
.library-product-status.status-ready,.library-product-status.status-delivered{background:#e9f7ef;color:#187344}
.library-product-status.status-awaiting_review,.library-product-status.status-processing{background:#fff5df;color:#8b5a08}
.library-product-actions{margin-top:17px}
.library-action-button{border:0;cursor:pointer}
.library-action-button:disabled{opacity:.65;cursor:wait}
.library-pending-note{font-size:12px;color:var(--muted);line-height:1.6;margin:0}
.library-product-feedback{margin-top:14px}
.library-secret-panel{padding:15px;background:#f5f8fc;border:1px solid var(--border);border-radius:9px}
.library-secret-panel>strong{font-size:12px}
.library-secret-value{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;font:12px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--text);margin:12px 0}
.library-secret-controls{display:flex;gap:8px;flex-wrap:wrap}
.library-secret-controls .button{font-size:11px;padding:9px 12px}
.library-empty{font-size:13px;color:var(--muted);line-height:1.7}
@media(max-width:760px){.library-products-grid{grid-template-columns:1fr}.library-product-card{padding:19px}.library-product-top{flex-direction:column}.library-product-status{align-self:flex-start}}

.library-product-status.status-access_revoked{background:#fff0f0;color:#a52b35}

/* Dahpay Fulfilment Dashboard */
.fulfilment-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.fulfilment-queue-panel {
  overflow: hidden;
  padding: 0;
}

.fulfilment-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 20px 8px;
}

.fulfilment-panel-heading h2 {
  margin: 7px 0;
  font-size: 19px;
}

.fulfilment-panel-heading p {
  margin: 0;
  color: #78869a;
  font-size: 11px;
}

.fulfilment-table td {
  vertical-align: middle;
}

.fulfilment-table td strong,
.fulfilment-table td small {
  display: block;
}

.fulfilment-table td small {
  margin-top: 5px;
  color: #8995a7;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.fulfilment-reference {
  color: #1769d2 !important;
  font-weight: 750;
}

.fulfilment-error-row td {
  color: #bd3946;
  background: #fff8f8;
  font-size: 11px;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .fulfilment-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .fulfilment-stats {
    grid-template-columns: 1fr;
  }

  .fulfilment-panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .fulfilment-table {
    min-width: 850px;
  }
}

/* DAHPAY LOGO REFRESH */
.brand-icon {
    background: transparent !important;
    overflow: hidden;
    flex-shrink: 0;
}

.brand-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.brand-full-logo {
    display: block;
    width: auto;
    height: 34px;
    max-width: 190px;
    object-fit: contain;
}

/* DAHPAY CIRCULAR LOGO */
.brand-icon {
    border-radius: 50% !important;
    overflow: hidden;
    flex-shrink: 0;
}

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

