:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --text: #e8edf4;
  --muted: #8b9cb3;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --border: #2d3a4f;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(0, 0, 0, .35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: var(--primary);
  text-decoration: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  width: 95%;
  /* padding: 0 1rem; */
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
}

.site-logo {
  max-height: 36px;
  width: auto;
  display: block;
}

.site-logo-text {
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, #f8fafc 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  gap: 1rem;
  flex: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
}

.header-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}

.header-cart-btn:hover {
  background: rgba(59, 130, 246, .12);
  border-color: rgba(59, 130, 246, .45);
}

.header-cart-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.header-cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 .3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(239, 68, 68, .45);
}

.header-user-cluster {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0, 0, 0, .18);
}

.header-wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .65rem;
  border-radius: 10px;
  background: rgba(34, 197, 94, .12);
  color: #86efac;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background .15s;
}

.header-wallet-pill:hover {
  background: rgba(34, 197, 94, .2);
  color: #bbf7d0;
}

.header-wallet-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  opacity: .9;
}

.header-account-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  max-width: 9.5rem;
  padding: .3rem .55rem .3rem .3rem;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  transition: background .15s;
}

.header-account-btn:hover {
  background: rgba(255, 255, 255, .06);
}

.header-account-avatar {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
}

.header-account-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .84rem;
  font-weight: 600;
}

.header-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, color .15s;
}

.header-logout-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

.header-logout-btn:hover {
  background: rgba(239, 68, 68, .12);
  color: #fca5a5;
}

.header-auth-btns {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.header-auth-login {
  background: transparent;
}

.user-balance {
  color: #4ade80;
  font-weight: 600;
  font-size: .9rem;
}

.btn-cart {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: .35rem .65rem;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
}

.btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: .5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}

.btn:hover {
  border-color: var(--primary);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-ghost {
  background: transparent;
}

.btn-sm {
  padding: .35rem .75rem;
  font-size: .875rem;
}

.btn-block {
  width: 100%;
  display: block;
  text-align: center;
}

.btn-cart {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: .4rem .7rem;
  cursor: pointer;
}

.banner {
  background: linear-gradient(135deg, #1e3a5f, #0f1419);
  background-size: cover;
  background-position: center;
  padding: 3rem 0;
}

.home-hero-banner {
  width: 100%;
  background: #0b1220;
}

.home-banner-single {
  width: 100%;
  line-height: 0;
}

.home-banner-single img {
  width: 100%;
  max-height: min(52vw, 420px);
  object-fit: cover;
  display: block;
}

.home-banner-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 6;
  max-height: 420px;
  overflow: hidden;
  background: #0b1220;
}

.home-banner-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease;
}

.home-banner-slide.active {
  opacity: 1;
}

.home-hero-content.banner {
  background: linear-gradient(135deg, #1e3a5f, #0f1419);
}

.banner-inner h1 {
  margin: 0 0 .5rem;
  font-size: 2rem;
}

.main-content {
  padding: 2rem 0 3rem;
}

.home-intro {
  margin: 0 0 2rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
  line-height: 1.6;
  white-space: pre-wrap;
}

.category-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .35rem;
}

.category-count {
  font-size: .85rem;
}

.category-block {
  margin-bottom: 2.5rem;
}

.category-block-head .category-title {
  margin: 0;
}

.category-title {
  margin: 0 0 .25rem;
}

.category-desc {
  color: var(--muted);
  margin-top: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.product-thumb img,
.single-image {
  width: 100%;
  border-radius: 6px;
  height: auto;
  /* aspect-ratio: 16 / 10; */
  object-fit: cover;
  display: block;
}

.no-image {
  aspect-ratio: 16/10;
  display: grid;
  place-items: center;
  background: #111827;
  color: var(--muted);
}

.no-image.large {
  min-height: 280px;
}

.product-body {
  padding: .85rem;
}

.product-body h3 {
  margin: 0 0 .35rem;
  font-size: 1rem;
}

.price {
  color: #4ade80;
  font-weight: 700;
  margin: 0 0 .75rem;
}

.product-actions {
  display: flex;
  gap: .5rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  color: var(--muted);
  text-align: center;
}

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

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
}

.modal-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  width: min(440px, 100%);
  max-height: 90vh;
  overflow: auto;
  box-shadow: var(--shadow);
}

.modal-lg {
  width: min(560px, 100%);
}

.modal-close {
  position: absolute;
  top: .5rem;
  right: .75rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.auth-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 1rem;
}

.auth-tabs button {
  flex: 1;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  padding: .5rem;
  border-radius: 8px;
  cursor: pointer;
}

.auth-tabs button.active {
  color: var(--text);
  border-color: var(--primary);
}

.auth-form label,
.form-stack label {
  display: block;
  margin-bottom: .75rem;
  font-size: .9rem;
}

.auth-form input,
.form-stack input,
.form-stack textarea,
.form-stack select {
  width: 100%;
  margin-top: .25rem;
  padding: .55rem .7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0b1220;
  color: var(--text);
}

.auth-divider {
  text-align: center;
  color: var(--muted);
  margin: 1rem 0;
}

.btn-google {
  background: #fff;
  color: #333;
  border: none;
  margin-top: .5rem;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  max-width: min(360px, calc(100vw - 2rem));
  background: #111827;
  border: 1px solid var(--border);
  padding: .75rem 1rem;
  border-radius: 8px;
  z-index: 300;
  box-shadow: var(--shadow);
  font-size: .9rem;
  line-height: 1.45;
  animation: toast-in .2s ease;
}

.toast-success {
  border-color: #166534;
  background: #052e16;
  color: #bbf7d0;
}

.toast-error {
  border-color: #991b1b;
  background: #450a0a;
  color: #fecaca;
}

.toast-info {
  border-color: #1e40af;
  background: #172554;
  color: #dbeafe;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.qty-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 1rem 0;
}

.modal-checkout {
  width: min(460px, 100%);
  padding: 1.5rem;
}

.modal-cart {
  width: min(480px, 100%);
  padding: 0;
  display: flex;
  flex-direction: column;
  max-height: min(88vh, 720px);
  overflow: hidden;
}

.modal-cart .modal-close {
  top: .85rem;
  right: .85rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background .15s, color .15s;
}

.modal-cart .modal-close:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--text);
}

.cart-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
}

.cart-modal-head h2 {
  margin: 0 0 .25rem;
  font-size: 1.25rem;
}

.cart-modal-sub {
  margin: 0;
  font-size: .88rem;
}

.cart-modal-badge {
  flex-shrink: 0;
  min-width: 2rem;
  height: 2rem;
  padding: 0 .55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(59, 130, 246, .15);
  color: #93c5fd;
  font-size: .85rem;
  font-weight: 700;
}

.cart-items-wrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: .5rem 1.5rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: .85rem;
  align-items: center;
  padding: .85rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b1220;
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.cart-item-body {
  min-width: 0;
}

.cart-item-name {
  margin: 0 0 .2rem;
  font-size: .95rem;
  line-height: 1.35;
  font-weight: 600;
}

.cart-item-unit {
  margin: 0 0 .25rem;
  font-size: .8rem;
  color: var(--muted);
}

.cart-item-line {
  margin: 0;
  font-size: .82rem;
  color: var(--muted);
}

.cart-item-line strong {
  color: #86efac;
  font-weight: 700;
}

.cart-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .35rem;
}

.cart-qty-control {
  height: 36px;
}

.cart-qty-control .checkout-qty-btn {
  width: 34px;
  height: 36px;
  font-size: 1.1rem;
}

.cart-qty-value {
  min-width: 2rem;
  padding: 0 .35rem;
  text-align: center;
  font-weight: 700;
  font-size: .92rem;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  line-height: 36px;
}

.cart-empty {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
}

.cart-empty-icon {
  font-size: 2.5rem;
  margin-bottom: .75rem;
}

.cart-empty-title {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.cart-empty-hint {
  margin: 0;
  font-size: .88rem;
}

.cart-modal-footer {
  padding: 1rem 1.5rem 1.35rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, .12);
}

.cart-coupon-row {
  margin-bottom: .85rem;
}

.cart-coupon-label {
  display: block;
  margin-bottom: .35rem;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}

.cart-coupon-input input {
  width: 100%;
  padding: .6rem .75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0b1220;
  color: var(--text);
  font: inherit;
  font-size: .92rem;
}

.cart-coupon-input input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, .5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .85rem;
  font-size: .92rem;
  color: var(--muted);
}

.cart-total-wrap {
  display: flex;
  align-items: baseline;
  gap: .15rem;
}

.cart-total-wrap strong {
  font-size: 1.35rem;
  color: var(--text);
}

.cart-checkout-btn {
  padding: .75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.cart-checkout-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.cart-discount-preview {
  margin: 0 0 .65rem;
  font-size: .85rem;
}

.cart-discount-preview.is-ok {
  color: #86efac;
}

.cart-discount-preview.is-error {
  color: #fca5a5;
}

.modal-cart.is-empty .cart-modal-footer {
  display: none;
}

.checkout-head {
  margin-bottom: 1.15rem;
}

.checkout-head h2 {
  margin: 0 0 .25rem;
  font-size: 1.25rem;
}

.checkout-sub {
  margin: 0;
  font-size: .88rem;
}

.checkout-product-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: .85rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
}

.checkout-product-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #0b1220;
  border: 1px solid var(--border);
}

.checkout-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-product-meta {
  min-width: 0;
}

.checkout-product-meta h3 {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

.checkout-unit-price {
  margin: 0;
  font-size: .88rem;
  color: var(--muted);
}

.checkout-qty-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.checkout-field-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}

.checkout-qty-control {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0b1220;
  overflow: hidden;
}

.checkout-qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background .15s;
}

.checkout-qty-btn:hover {
  background: rgba(59, 130, 246, .12);
}

.checkout-qty-control input {
  width: 52px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  text-align: center;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  -moz-appearance: textfield;
}

.checkout-qty-control input::-webkit-outer-spin-button,
.checkout-qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.checkout-summary {
  padding: .85rem 1rem;
  margin-bottom: 1.15rem;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, .25);
  background: linear-gradient(135deg, rgba(59, 130, 246, .1), rgba(34, 197, 94, .06));
}

.checkout-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: .92rem;
}

.checkout-total-wrap {
  display: flex;
  align-items: baseline;
  gap: .15rem;
}

.checkout-summary-row strong {
  font-size: 1.35rem;
  color: #86efac;
}

.checkout-currency {
  font-size: .95rem;
  color: #86efac;
  font-weight: 600;
}

.checkout-wallet-hint {
  margin: .5rem 0 0;
  font-size: .8rem;
  line-height: 1.45;
}

.checkout-wallet-hint.is-ok {
  color: #86efac;
}

.checkout-wallet-hint.is-warn {
  color: #fde68a;
}

.checkout-pay-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
}

.checkout-pay-btn {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .75rem .85rem !important;
  text-align: left;
  min-height: 64px;
}

.checkout-pay-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.checkout-pay-text {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}

.checkout-pay-title {
  font-weight: 700;
  font-size: .92rem;
}

.checkout-pay-sub {
  font-size: .72rem;
  opacity: .8;
  font-weight: 400;
}

.checkout-pay-btn.disabled {
  opacity: .5;
  cursor: not-allowed;
}

.checkout-step-success {
  text-align: center;
}

.checkout-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(34, 197, 94, .15);
  border: 2px solid rgba(34, 197, 94, .4);
  color: #86efac;
  font-size: 1.5rem;
  font-weight: 700;
}

.checkout-success-body {
  margin: 1rem 0 1.25rem;
  text-align: left;
}

.checkout-success-body pre {
  margin-top: .75rem;
  padding: .75rem;
  border-radius: 8px;
  background: #0b1220;
  white-space: pre-wrap;
  word-break: break-all;
}

.checkout-auto-close {
  margin: 0 0 .85rem;
  font-size: .82rem;
  text-align: center;
}

.checkout-order-card {
  padding: .75rem .85rem;
  margin-bottom: .85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
}

.checkout-order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .35rem 0;
  font-size: .9rem;
}

.checkout-order-row span {
  color: var(--muted);
}

.checkout-order-row strong {
  text-align: right;
}

.checkout-order-note {
  margin: 0 0 .85rem;
  padding: .55rem .75rem;
  border-radius: 8px;
  background: rgba(59, 130, 246, .1);
  border: 1px solid rgba(59, 130, 246, .2);
  font-size: .88rem;
  line-height: 1.45;
}

.checkout-order-items h4 {
  margin: 0 0 .65rem;
  font-size: .92rem;
}

.checkout-order-item {
  padding: .65rem 0;
  border-top: 1px solid var(--border);
}

.checkout-order-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.checkout-order-item-name {
  margin: 0 0 .35rem;
  font-weight: 600;
  font-size: .9rem;
}

.checkout-order-item .delivered-content {
  margin: 0;
  font-size: .85rem;
}

.order-wait-hint {
  margin: 0;
  font-size: .85rem;
}

.checkout-order-link {
  margin: .85rem 0 0;
  font-size: .88rem;
}

.checkout-order-link a {
  color: #93c5fd;
}

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

.qty-row input {
  width: 80px;
  text-align: center;
}

.pay-btns {
  display: flex;
  gap: .5rem;
}

.pay-btns .disabled {
  opacity: .45;
  cursor: not-allowed;
}

.qr-img {
  width: 100%;
  max-width: 200px;
  display: block;
  margin: 0 auto;
}

.modal-bank {
  width: min(640px, 100%);
}

.modal-deposit {
  width: min(480px, 100%);
  padding: 1.5rem;
  transition: width .25s ease;
}

.modal-deposit.is-bank-step {
  width: min(640px, 100%);
}

.deposit-step h2 {
  margin: 0 0 .35rem;
  font-size: 1.25rem;
}

.deposit-hero {
  text-align: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.deposit-hero-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto .65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, .2), rgba(34, 197, 94, .15));
  border: 1px solid rgba(59, 130, 246, .25);
}

.deposit-balance-line {
  margin: .35rem 0 0;
  font-size: .88rem;
  color: var(--muted);
}

.deposit-balance-line strong {
  color: #86efac;
  font-weight: 700;
}

.deposit-amount-box {
  margin-bottom: 1rem;
}

.deposit-label {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: .45rem;
}

.deposit-input-wrap {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem .85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0b1220;
  transition: border-color .2s, box-shadow .2s;
}

.deposit-input-wrap:focus-within {
  border-color: rgba(59, 130, 246, .55);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

.deposit-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.35rem;
  font-weight: 700;
  min-width: 0;
  outline: none;
  -moz-appearance: textfield;
}

.deposit-input::-webkit-outer-spin-button,
.deposit-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.deposit-input-suffix {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}

.deposit-min-hint {
  margin: .45rem 0 0;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.45;
}

.deposit-quick-label {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .45rem;
}

.deposit-quick-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1.15rem;
}

.deposit-quick-btn {
  flex: 1 1 calc(33.33% - .35rem);
  min-width: 5.5rem;
  padding: .45rem .5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  font: inherit;
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}

.deposit-quick-btn:hover {
  border-color: rgba(59, 130, 246, .45);
  background: rgba(59, 130, 246, .1);
}

.deposit-quick-btn.is-active {
  border-color: rgba(59, 130, 246, .65);
  background: rgba(59, 130, 246, .18);
  color: #93c5fd;
}

.deposit-submit {
  padding: .75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.deposit-submit.is-loading {
  opacity: .7;
  pointer-events: none;
}

.deposit-back {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  margin-bottom: .75rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: .88rem;
  cursor: pointer;
}

.deposit-back:hover {
  color: var(--text);
}

.deposit-bank-head {
  margin-bottom: .25rem;
}

.deposit-bank-head h2 {
  margin-bottom: .15rem;
}

.deposit-bank-head .muted {
  font-size: .85rem;
  margin: 0;
}

.wallet-balance-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(59, 130, 246, .08), rgba(34, 197, 94, .06));
}

.wallet-balance-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}

.wallet-balance-value {
  margin: .2rem 0 0;
  font-size: 1.75rem;
  font-weight: 800;
  color: #86efac;
  line-height: 1.1;
}

.wallet-balance-value small {
  font-size: 1rem;
  font-weight: 600;
  opacity: .85;
}

.deposit-promo-card {
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(34, 197, 94, .25);
  background: linear-gradient(135deg, rgba(34, 197, 94, .08), rgba(59, 130, 246, .06));
}

.deposit-promo-card h3 {
  margin: 0 0 .65rem;
  font-size: 1rem;
}

.deposit-promo-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text);
  font-size: .9rem;
  line-height: 1.55;
}

.deposit-bonus-preview {
  margin-top: .65rem;
  padding: .55rem .75rem;
  border-radius: 10px;
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .28);
  color: #86efac;
  font-size: .88rem;
  font-weight: 600;
}

.deposit-bonus-preview.has-total::after {
  content: '';
  display: block;
  margin-top: .25rem;
  font-weight: 500;
  color: var(--muted);
}

.bank-transfer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: center;
  margin: 1rem 0 .75rem;
}

.bank-qr-col {
  display: flex;
  justify-content: center;
}

.bank-qr-frame {
  background: #fff;
  border-radius: 12px;
  padding: .65rem;
  border: 2px solid var(--border);
  transition: border-color .3s, box-shadow .3s;
}

.bank-transfer-wrap.is-waiting .bank-qr-frame {
  border-color: rgba(96, 165, 250, .55);
  animation: bank-pulse 2.2s ease-in-out infinite;
}

.bank-info-col {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.bank-field {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.bank-field-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}

.bank-field-value {
  font-size: .95rem;
  font-weight: 500;
}

.bank-field-highlight .bank-copy {
  background: rgba(59, 130, 246, .12);
  border-color: rgba(59, 130, 246, .35);
}

.bank-copy {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  width: 100%;
  padding: .5rem .65rem;
  border-radius: 8px;
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  text-align: left;
  transition: background .15s, border-color .15s, transform .1s;
}

.bank-copy:hover {
  background: rgba(59, 130, 246, .1);
  border-color: rgba(59, 130, 246, .45);
}

.bank-copy:active {
  transform: scale(.98);
}

.bank-copy-code .bank-copy-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .03em;
}

.bank-copy-icon {
  flex-shrink: 0;
  font-size: 1rem;
  opacity: .65;
}

.bank-amount {
  font-size: 1.15rem;
  font-weight: 700;
  color: #93c5fd;
}

.bank-waiting {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .55rem .75rem;
  margin-bottom: .5rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, .1);
  border: 1px solid rgba(59, 130, 246, .25);
  color: #93c5fd;
  font-size: .88rem;
  font-weight: 500;
}

.bank-transfer-wrap:not(.is-waiting) .bank-waiting {
  display: none;
}

.bank-waiting-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.bank-waiting-dots i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: bank-dot 1.2s ease-in-out infinite;
}

.bank-waiting-dots i:nth-child(2) { animation-delay: .15s; }
.bank-waiting-dots i:nth-child(3) { animation-delay: .3s; }

.bank-hint {
  font-size: .82rem;
  margin-bottom: .75rem;
}

.btn-block {
  width: 100%;
}

@keyframes bank-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, .25); }
  50% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
}

@keyframes bank-dot {
  0%, 80%, 100% { opacity: .25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

@media (max-width: 520px) {
  .bank-transfer-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .bank-info-col {
    width: 100%;
  }
}

.product-page {
  padding: 2rem 0;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.slideshow {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--radius);
}

.slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .4s;
}

.slideshow .slide.active {
  opacity: 1;
}

.price-lg {
  font-size: 1.5rem;
  color: #4ade80;
  font-weight: 700;
}

.product-actions-lg {
  display: flex;
  gap: .75rem;
  margin: 1rem 0;
}

.long-desc {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  white-space: pre-wrap;
}

.tabs {
  display: flex;
  gap: .5rem;
  margin: 1rem 0;
}

.tabs a {
  padding: .5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.tabs a.active {
  color: var(--text);
  border-color: var(--primary);
}

/* —— Account page (2-column) —— */
.account-page {
  padding: 30px 0;
}

.account-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.account-sidebar {
  position: sticky;
  top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.account-sidebar-head {
  padding: .35rem .5rem 1rem;
  margin-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

.account-sidebar-label {
  margin: 0;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}

.account-sidebar-user {
  margin: .35rem 0 0;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.35;
  word-break: break-word;
}

.account-sidebar-balance {
  margin: .25rem 0 0;
  font-size: .88rem;
  font-weight: 600;
  color: #86efac;
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.account-nav-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .75rem;
  border-radius: 10px;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 500;
  transition: background .15s, color .15s;
}

.account-nav-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
}

.account-nav-item.is-active {
  color: var(--text);
  background: rgba(59, 130, 246, .12);
  box-shadow: inset 3px 0 0 var(--primary);
}

.account-nav-icon {
  font-size: 1rem;
  line-height: 1;
}

.account-main {
  min-width: 0;
}

.account-main-head {
  margin-bottom: 1rem;
}

.account-main-head h1 {
  margin: 0 0 .25rem;
  font-size: 1.45rem;
}

.account-main-head .muted {
  margin: 0;
  font-size: .9rem;
}

.account-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1rem;
}

.account-subtab {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: .88rem;
  font-weight: 500;
  transition: background .15s, color .15s, border-color .15s;
}

.account-subtab:hover {
  color: var(--text);
  border-color: rgba(59, 130, 246, .35);
}

.account-subtab.is-active {
  color: var(--text);
  background: rgba(59, 130, 246, .12);
  border-color: rgba(59, 130, 246, .45);
}

.account-subtab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1;
}

.account-subtab.is-active .account-subtab-count {
  background: rgba(59, 130, 246, .25);
}

.account-main-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.order-detail-page {
  padding: 1.5rem 0 3rem;
}

.order-detail-panel .notice {
  margin-top: 0;
}

.order-detail-panel .notice + .order-bank-section,
.order-detail-panel .notice + .order-section-title,
.order-detail-panel .order-bank-section + .order-section-title {
  margin-top: 1.25rem;
}

.order-section-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.order-bank-section h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.order-delivery-hint {
  font-size: .78rem;
}

.account-panel {
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.wallet-panel {
  padding: 1.25rem;
}

.wallet-subtabs {
  margin: 1.25rem 0 1rem;
}

.wallet-history-section {
  margin-top: 0;
}

.account-panel .wallet-balance-card {
  margin-bottom: 1.25rem;
}

.account-empty {
  text-align: center;
  padding: 2.5rem 1rem;
}

.account-empty-icon {
  font-size: 2rem;
  margin: 0 0 .5rem;
}

.account-empty p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.order-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--border);
}

.order-card:first-child {
  padding-top: 0;
}

.order-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.order-card-body {
  flex: 1;
  min-width: 0;
}

.order-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}

.order-card-code {
  font-size: 1rem;
}

.order-card-meta {
  margin: .35rem 0 0;
  font-size: .82rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: .15rem .35rem;
}

.order-card-products {
  list-style: none;
  margin: .55rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.order-card-product {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .5rem;
  font-size: .86rem;
  line-height: 1.35;
}

.order-card-product-name {
  font-weight: 600;
  color: var(--text);
}

.order-card-product-qty {
  color: var(--muted);
  font-size: .8rem;
}

.order-card-product-cat {
  display: inline-block;
  padding: .1rem .45rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, .12);
  color: #93c5fd;
  font-size: .72rem;
  font-weight: 500;
}

.order-card-hint {
  margin: .45rem 0 0;
  font-size: .82rem;
  color: #fcd34d;
}

.order-card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .5rem;
  flex-shrink: 0;
}

.order-card-amount {
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}

.account-subsection {
  margin-top: 1.5rem;
}

.account-subsection h2 {
  margin: 0 0 .75rem;
  font-size: 1rem;
}

.account-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.account-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

.account-table th,
.account-table td {
  padding: .65rem .85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.account-table th {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  background: rgba(255, 255, 255, .02);
}

.account-table tbody tr:last-child td {
  border-bottom: none;
}

.account-table-muted {
  color: var(--muted);
  font-size: .82rem;
}

.account-table .text-right {
  text-align: right;
}

.amount-plus {
  color: #86efac;
  font-weight: 600;
}

.amount-minus {
  color: #fca5a5;
  font-weight: 600;
}

.account-profile-form {
  max-width: 480px;
}

.account-form-divider {
  margin: .5rem 0 .25rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
}

@media (max-width: 768px) {
  .account-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .account-sidebar {
    position: static;
    padding: .85rem;
  }

  .account-sidebar-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .35rem .75rem;
    padding-bottom: .75rem;
  }

  .account-sidebar-label {
    width: 100%;
  }

  .account-sidebar-balance {
    margin-left: auto;
  }

  .account-nav {
    flex-direction: row;
    gap: .35rem;
    overflow-x: auto;
    padding-bottom: .15rem;
  }

  .account-nav-item {
    flex-shrink: 0;
    padding: .55rem .75rem;
    font-size: .85rem;
  }

  .account-nav-item.is-active {
    box-shadow: inset 0 -3px 0 var(--primary);
  }

  .order-card {
    flex-direction: column;
    gap: .65rem;
  }

  .order-card-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
}

.order-row,
.tx-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: .5rem;
}

.badge {
  font-size: .75rem;
  padding: .15rem .45rem;
  border-radius: 999px;
  background: #1e3a5f;
}

.badge-processing {
  background: #78350f;
  color: #fef3c7;
}

.badge-pending {
  background: #1e3a5f;
}

.badge-completed {
  background: #14532d;
  color: #bbf7d0;
}

.order-hint {
  margin: .35rem 0 0;
  font-size: .85rem;
}

.notice {
  padding: .85rem 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  line-height: 1.5;
}

.notice-info {
  background: #172554;
  border: 1px solid #1e40af;
  color: #dbeafe;
}

.notice-warn {
  background: #451a03;
  border: 1px solid #92400e;
  color: #fde68a;
}

.status-processing {
  color: #fbbf24;
}

.status-completed {
  color: #4ade80;
}

.status-pending {
  color: #93c5fd;
}

.delivered-content {
  background: #0b1220;
  padding: 1rem;
  border-radius: 8px;
  white-space: pre-wrap;
  word-break: break-all;
}

.delivered-content.is-copyable {
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
}

.delivered-content.is-copyable:hover {
  background: #111c31;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, .35);
}

.delivered-content.is-copyable:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.order-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: .35rem;
}

.order-detail-amount {
  font-weight: 700;
  font-size: 1.05rem;
}

.order-item-detail {
  padding: .85rem 0;
  border-bottom: 1px solid var(--border);
}

.order-item-detail:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.order-item-detail h3 {
  margin: 0 0 .25rem;
  font-size: 1rem;
}

.order-item-head {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
}

.order-item-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b1220;
}

.order-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-item-meta {
  flex: 1;
  min-width: 0;
}

.order-item-price {
  margin: 0 0 .35rem;
  font-size: .9rem;
  color: var(--muted);
}

.order-item-desc {
  margin: 0;
  font-size: .88rem;
  line-height: 1.45;
}

.order-delivery-box {
  margin-top: .85rem;
}

.order-delivery-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin-bottom: .45rem;
}

.order-delivery-label {
  font-size: .88rem;
  font-weight: 600;
  color: #86efac;
}

.order-delivery-missing {
  margin-top: .85rem;
  font-size: .88rem;
}

.order-item-long-desc {
  margin-top: .85rem;
  padding-top: .75rem;
  border-top: 1px dashed var(--border);
}

.order-item-long-desc h4 {
  margin: 0 0 .45rem;
  font-size: .9rem;
}

.order-item-long-desc .long-desc {
  font-size: .88rem;
  line-height: 1.55;
  color: var(--muted);
  white-space: pre-wrap;
}

.card {
  background: var(--surface);
}

.muted {
  color: var(--muted);
}

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

  .header-inner {
    flex-wrap: wrap;
  }

  .header-account-name {
    display: none;
  }

  .header-wallet-pill {
    padding: .4rem .5rem;
    font-size: .78rem;
  }

  .header-user-cluster {
    gap: .2rem;
    padding: .2rem;
  }
}

.error-page {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  padding: 3rem 0;
}

.error-page-inner {
  text-align: center;
  max-width: 520px;
}

.error-code {
  margin: 0 0 .5rem;
  font-size: clamp(4rem, 18vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page h1 {
  margin: 0 0 .75rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
}

.error-desc {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.error-actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* —— Contact widget (fixed corner) —— */
.contact-widget {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 160;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .6rem;
}

.contact-widget-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .55rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.96);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}

.contact-widget.is-open .contact-widget-links {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.contact-widget-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .7rem .45rem .45rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s;
}

.contact-widget-link:hover {
  transform: translateX(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .34);
}

.contact-widget-link svg {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  padding: .35rem;
  border-radius: 50%;
  box-sizing: content-box;
}

.contact-widget-link-zalo svg {
  background: #0068ff;
  color: #fff;
}

.contact-widget-link-facebook svg {
  background: #1877f2;
  color: #fff;
}

.contact-widget-link-telegram svg {
  background: #26a5e4;
  color: #fff;
}

.contact-widget-toggle {
  width: 3.25rem;
  height: 3.25rem;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(37, 99, 235, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, box-shadow .2s;
}

.contact-widget-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(37, 99, 235, .55);
}

.contact-widget-toggle svg {
  width: 1.45rem;
  height: 1.45rem;
}

.contact-widget-icon-close {
  display: none;
}

.contact-widget.is-open .contact-widget-icon-open {
  display: none;
}

.contact-widget.is-open .contact-widget-icon-close {
  display: block;
}

.contact-widget.is-open .contact-widget-toggle {
  background: linear-gradient(135deg, #475569, #334155);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .4);
}

@media (max-width: 480px) {
  .contact-widget {
    right: .75rem;
    bottom: .75rem;
  }

  .contact-widget-link-label {
    display: none;
  }

  .contact-widget-link {
    padding: .45rem;
    border-radius: 50%;
  }
}
