:root {
  --green: #16a34a;
  --green-dark: #0f8a3c;
  --red: #ef2b2b;
  --ink: #07101f;
  --muted: #5b6b84;
  --line: #d8e1ef;
  --soft: #f4f7ff;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(20, 35, 70, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 4% 20%, rgba(92, 110, 255, 0.12), transparent 32%),
    radial-gradient(circle at 92% 28%, rgba(245, 167, 57, 0.14), transparent 30%),
    linear-gradient(115deg, #f7f8ff 0%, #fff8ef 54%, #f1fff5 100%);
  min-height: 100vh;
}

button,
input,
textarea,
select {
  font: inherit;
}

strong {
  font-weight: 500;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  color: #fff;
  background: linear-gradient(#111, #0b0b0c);
  border-bottom: 2px solid var(--red);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.brand,
.nav-btn,
.wallet-pill,
.auth-btn {
  border: 0;
  background: transparent;
  color: inherit;
}

.global-discount-badge {
  position: absolute;
  top: 100%;
  left: 28px;
  background: linear-gradient(90deg, #ff4b4b, #ff8a00);
  color: #fff;
  padding: 6px 16px;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(255, 75, 75, 0.35);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 15;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  padding: 4px 0;
  cursor: pointer;
}

.brand-img {
  height: 50px;
  max-height: 52px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.22s ease, filter 0.22s ease;
  filter: drop-shadow(0 2px 10px rgba(0, 150, 255, 0.4));
}

.brand-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 16px rgba(0, 175, 255, 0.65));
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  flex-wrap: nowrap;
}

.nav-btn {
  position: relative;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 400;
  color: #d6d6d6;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-icon {
  font-size: 19px;
  line-height: 1;
}

.nav-btn.active {
  color: var(--red);
}

.nav-btn.active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: var(--red);
}

.count {
  position: absolute;
  top: 6px;
  right: calc(50% - 27px);
  min-width: 18px;
  height: 18px;
  display: none;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-size: 11px;
}

body.logged-in .nav {
  display: flex;
}

.count.show {
  display: grid;
}

.auth-btn-accent {
  background: linear-gradient(135deg, #16a34a, #2f80ed);
  border-color: transparent;
}

.wallet-pill {
  justify-self: end;
  min-width: 118px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--red);
  border-radius: 999px;
  font-size: 15px;
  text-decoration: none;
}

main {
  min-height: calc(100vh - 70px);
}

.view {
  display: none;
  padding: 36px clamp(18px, 6.5vw, 126px) 78px;
}

.view.active {
  display: block;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr 124px;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.search-panel input,
.catalog-toolbar input,
.catalog-toolbar select,
label input,
label textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: #f3f6fc;
  color: var(--ink);
}

.search-panel input {
  min-height: 54px;
  padding: 0 12px;
  border: 0;
  background: #fff;
  font-size: 22px;
}

.primary-btn,
.success-btn,
.hero-action {
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #16a34a, #2f80ed);
  font-weight: 500;
}

.primary-btn,
.success-btn {
  min-height: 46px;
}

.success-btn {
  background: var(--green);
}

.hero-slider {
  position: relative;
  min-height: 310px;
  margin-top: 32px;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

/* Top advertisement carousel */
.ad-carousel {
  position: relative;
  margin: 18px auto 0;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 3.5 / 1;
  height: auto;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(25, 102, 255, 0.12);
  background: #0a0a1a;
}

.ad-track {
  display: flex;
  height: 100%;
  transition: transform 520ms cubic-bezier(.2, .9, .2, 1);
  will-change: transform;
}

.ad-slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px;
  flex-shrink: 0;
}

.ad-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-left: clamp(18px, 6vw, 56px);
  pointer-events: none;
}

.ad-badge {
  display: inline-block;
  background: linear-gradient(90deg, #ff4b4b, #ff8a00);
  color: #fff;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: clamp(18px, 2.6vw, 34px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.ad-desc {
  margin-left: 18px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(14px, 1.8vw, 20px);
  font-weight: 600;
}

.ad-prev,
.ad-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 12;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-size: 24px;
  backdrop-filter: blur(4px);
}

.ad-prev {
  left: 12px
}

.ad-next {
  right: 12px
}

.ad-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 12;
}

.ad-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  border: 0;
}

.ad-dot.active {
  background: #fff;
  width: 28px;
  height: 10px;
  border-radius: 999px
}

@media (max-width: 800px) {
  .ad-carousel {
    aspect-ratio: 3 / 1;
    border-radius: 12px;
    margin-top: 14px;
  }

  .ad-slide {
    border-radius: 12px;
  }

  .ad-prev,
  .ad-next {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .ad-prev { left: 6px; }
  .ad-next { right: 6px; }

  .ad-dots {
    bottom: 8px;
    gap: 6px;
  }

  .ad-dot {
    width: 8px;
    height: 8px;
  }

  .ad-dot.active {
    width: 22px;
    height: 8px;
  }
}

@media (max-width: 480px) {
  .ad-carousel {
    aspect-ratio: 2.8 / 1;
    border-radius: 10px;
    margin-top: 10px;
  }

  .ad-slide {
    border-radius: 10px;
  }

  .ad-prev,
  .ad-next {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .ad-prev { left: 4px; }
  .ad-next { right: 4px; }

  .ad-dots {
    bottom: 6px;
    gap: 4px;
  }

  .ad-dot {
    width: 6px;
    height: 6px;
  }

  .ad-dot.active {
    width: 18px;
    height: 6px;
  }
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 6vw, 72px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.34)),
    radial-gradient(circle at 25% 15%, rgba(255, 192, 77, 0.7), transparent 10%),
    radial-gradient(circle at 55% 22%, rgba(255, 255, 255, 0.28), transparent 14%),
    linear-gradient(135deg, #351507, #56301a 45%, #160b07);
}

.slide:nth-child(2) {
  background:
    linear-gradient(90deg, rgba(4, 10, 22, 0.88), rgba(4, 18, 15, 0.44)),
    radial-gradient(circle at 78% 28%, rgba(45, 213, 116, 0.55), transparent 18%),
    linear-gradient(135deg, #0e1832, #173f52 52%, #0b1714);
}

.slide.active {
  display: flex;
}

.slide p {
  margin: 0 0 8px;
  color: #ffc266;
  font-weight: 500;
  text-transform: uppercase;
}

.slide h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.02;
}

.slide span {
  display: block;
  margin-top: 14px;
  font-size: 20px;
}

.hero-action {
  min-width: 150px;
  height: 56px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  background: #23236d;
  font-size: 18px;
}

.dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
}

.dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: #9a9a9a;
}

.dot.active {
  width: 30px;
  background: #fff;
}

.catalog-section h2,
.page-title h1 {
  margin: 54px 0 26px;
  text-align: center;
  color: var(--green);
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.05;
}

.catalog-section h2 {
  color: #8c5fe6;
}

.page-title {
  padding: 16px 0 28px;
  text-align: center;
}

.page-title h1 {
  margin: 0 0 16px;
}

.page-title p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.cards-grid.compact {
  max-width: 1250px;
  margin: 0 auto;
}

.gift-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gift-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
  border-color: #cbd5e1;
}

.gift-art-wrapper {
  position: relative;
  width: 100%;
  padding-top: 65%;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  overflow: hidden;
}

.gift-art-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.22s ease;
}

.gift-card:hover .gift-art-img {
  transform: scale(1.04);
}

.gift-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gift-card-title {
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  margin: 0 0 4px 0;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gift-card-vendor {
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 10px;
}

.card-option-selector {
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.option-select {
  width: 100%;
  padding: 8px 24px 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background-color: #f8fafc;
  color: #334155;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
}

.option-select:hover {
  background-color: #ffffff;
  border-color: #3b82f6;
}

.option-select:focus {
  outline: none;
  background-color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 12px;
}

.price-info {
  display: flex;
  flex-direction: column;
}

.price-val {
  color: #e11d48;
  font-size: 17px;
  font-weight: 600;
}

.stock {
  color: #16a34a;
  font-size: 12px;
  font-weight: 500;
}

.card-btn {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-radius: 4px;
  color: #ffffff;
  background: #20bf5a;
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.card-btn:not(:disabled):hover {
  background: #15a84c;
  transform: translateY(-1px);
}

.card-btn:disabled {
  color: #8ca1bd;
  border: 1px dashed #cbd8ea;
  background: #f8fbff;
  cursor: not-allowed;
}

.catalog-toolbar {
  max-width: 1110px;
  margin: 0 auto 22px;
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 12px;
}

.catalog-toolbar input,
.catalog-toolbar select,
label input,
label textarea {
  min-height: 46px;
  padding: 10px 12px;
}

.empty-cart {
  max-width: 1120px;
  min-height: 280px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  text-align: center;
  border: 2px dashed #98dfb9;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.empty-cart .cart-symbol {
  font-size: 52px;
}

.empty-cart h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.cart-layout {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
}

.cart-items-container {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.cart-items-header {
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 15px;
}

.cart-badge-saving {
  background: rgba(22, 163, 74, 0.1);
  color: var(--green);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
}

.cart-item-card {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  transition: background 150ms ease;
}

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

.cart-item-card:hover {
  background: #fcfdfe;
}

.cart-item-main {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  align-items: center;
}

.cart-thumb {
  width: 130px;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #fff;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cart-item-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.3px;
}

.cart-value-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cart-item-pricing {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 14px;
  background: #f8fafc;
  border-radius: 8px;
  margin: 4px 0;
  width: fit-content;
}

.price-box, .value-box {
  display: flex;
  flex-direction: column;
}

.pay-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--red);
}

.get-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--green);
}

.price-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: 0;
  background: #f1f5f9;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  transition: background 150ms ease;
}

.qty-btn:hover {
  background: #e2e8f0;
}

.qty-count {
  padding: 0 12px;
  font-weight: 700;
  font-size: 14px;
}

.item-subtotal {
  font-size: 13px;
  color: var(--muted);
}

.cart-remove-btn {
  border: 0;
  background: transparent;
  color: #ef4444;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 150ms ease;
}

.cart-remove-btn:hover {
  background: rgba(239, 68, 68, 0.08);
}

.summary-card {
  align-self: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.summary-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
}

.summary-divider {
  height: 1px;
  background: var(--line);
  margin: 12px 0;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  font-size: 14px;
}

.summary-total {
  padding-top: 10px;
  font-size: 16px;
  font-weight: 600;
  align-items: center;
}

.checkout-btn {
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.25);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.35);
}

.cart-trust-badges {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.narrow-stack,
.wallet-page,
.auth-layout {
  max-width: 800px;
  margin: 0 auto;
}

.narrow-stack {
  display: grid;
  gap: 24px;
}

.content-card {
  padding: 24px;
}

.content-card h2 {
  margin: 0 0 22px;
  color: var(--green);
}

.auth-layout {
  max-width: 500px;
  padding-top: 2px;
}

.auth-card {
  padding: 48px 40px 46px;
  border-radius: 18px;
}

.auth-card .success-btn {
  width: 100%;
  min-height: 50px;
  margin-top: 18px;
  border-radius: 9px;
  font-size: 16px;
}

.auth-card h2 {
  margin: 0 0 28px;
  text-align: center;
  color: var(--green);
  font-size: 34px;
  font-weight: 500;
}

.auth-card label {
  margin-bottom: 18px;
  font-size: 17px;
}

.auth-card input {
  min-height: 55px;
  border-radius: 9px;
  background: #f3f6fc;
}

.forgot-btn {
  display: block;
  margin: -2px 0 0 auto;
  border: 0;
  color: var(--green);
  background: transparent;
  font-size: 16px;
}

.auth-switch {
  margin: 18px 0 0;
  text-align: center;
  color: #000;
  font-size: 18px;
}

.auth-switch button {
  border: 0;
  padding: 0;
  color: var(--green);
  background: transparent;
  font-weight: 500;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 500;
}

.wallet-page {
  max-width: 1400px;
}

.wallet-balance {
  min-height: 176px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(110deg, #477ee9 0%, #e8428a 52%, #f5a600 100%);
  box-shadow: 0 24px 60px rgba(236, 73, 87, 0.25);
}

.wallet-balance span {
  font-weight: 500;
}

.wallet-balance strong {
  font-size: 46px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.quick-actions button {
  min-height: 88px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #2e74ff;
  background: #fff;
  font-size: 24px;
}

.quick-actions span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.transaction,
.ticket,
.order {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f7ff;
}

.hidden {
  display: none !important;
}

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

.payment-checkout {
  max-width: 520px;
  margin: 32px auto 0;
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.payment-info {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid #dbe8f6;
  border-radius: 16px;
  background: #f5fbff;
}

.payment-info span {
  color: #2b6cb0;
  font-weight: 500;
}

.payment-info strong {
  font-size: 32px;
  color: #118b42;
}

.payment-actions {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.payment-actions .primary-btn,
.payment-actions .success-btn {
  width: 100%;
}

.gateway-shell {
  max-width: 480px;
  margin: 24px auto 0;
  padding: 0;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.gateway-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 24px 24px 20px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
}

.gateway-header span {
  color: #94a3b8;
  font-size: 12px;
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.gateway-header strong {
  display: block;
  font-size: 28px;
  color: #38bdf8;
  font-weight: 700;
}

.gateway-timer {
  min-width: 90px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #f87171;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.gateway-card {
  padding: 24px;
  background: #ffffff;
}

.gateway-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
}

.gateway-tab {
  flex: 1;
  padding: 10px 12px;
  color: #64748b;
  border-radius: 8px;
  background: transparent;
  border: 0;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 180ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gateway-tab.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gateway-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.gateway-method {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: all 180ms ease;
  cursor: pointer;
}

.gateway-method:hover {
  border-color: #6366f1;
  color: #4f46e5;
  background: #eef2ff;
  text-decoration: none;
}

.gateway-method.active {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
  text-decoration: none;
}

.gateway-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-bottom: 18px;
  text-align: center;
}

.gateway-qr .qr-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  background: #e0e7ff;
  color: #4338ca;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}

.gateway-qr .qr-code {
  width: 220px;
  max-width: 100%;
  height: auto;
  padding: 10px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gateway-qr #paymentQrImage {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: contain;
}

.gateway-qr span {
  color: #475569;
  font-size: 13px;
}

.gateway-note {
  display: flex;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fffbe0;
  border: 1px solid #fef08a;
  color: #854d0e;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 18px;
}

.gateway-utr {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  color: #1e293b;
  font-weight: 600;
  font-size: 14px;
}

.gateway-utr input {
  width: 100%;
  height: 48px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 16px;
  outline: none;
  background: #f8fafc;
  font-size: 15px;
  color: #0f172a;
  transition: all 180ms ease;
}

.gateway-utr input:focus {
  border-color: #4f46e5;
  background: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(79, 70, 229, 0.15);
}

.gateway-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

footer {
  padding: 46px clamp(18px, 13vw, 245px) 32px;
  color: #d9e5fb;
  background: #10192b;
  border-top: 3px solid #18b85d;
}

footer h2 {
  margin: 0 0 16px;
  color: #22dc70;
}

footer p {
  max-width: 520px;
  line-height: 1.55;
}

.badges,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badges span {
  padding: 8px 13px;
  border: 1px solid rgba(34, 220, 112, 0.35);
  border-radius: 999px;
  color: #7dffaa;
  background: rgba(16, 163, 74, 0.18);
  font-weight: 500;
  font-size: 13px;
}

.footer-line {
  height: 1px;
  margin: 32px 0 20px;
  background: rgba(255, 255, 255, 0.13);
}

.footer-links {
  justify-content: center;
  margin-bottom: 18px;
  color: #fff;
}

.policy-links {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin: 0 0 14px;
}

.policy-links a {
  color: #dfe8ff;
  font-size: 16px;
  text-decoration: none;
  transition: color 160ms ease;
}

.policy-links a:hover {
  color: #20df76;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.security-badge i {
  color: #20df76;
  font-size: 17px;
  line-height: 1;
}

footer small {
  display: block;
  text-align: center;
  color: #91a0b7;
}

.legal-main {
  padding: 42px clamp(18px, 9vw, 170px) 80px;
}

.legal-document {
  max-width: 980px;
  margin: 0 auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.legal-document h1 {
  margin: 0 0 12px;
  color: var(--green);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 500;
}

.legal-document h2 {
  margin: 28px 0 10px;
  color: var(--ink);
  font-size: 22px;
}

.legal-document p,
.legal-document li {
  color: #34425a;
  line-height: 1.68;
}

.legal-document ul {
  margin: 8px 0 18px;
  padding-left: 22px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--green);
  font-weight: 500;
  text-decoration: none;
}

dialog {
  width: min(440px, calc(100vw - 28px));
  border: 0;
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
}

dialog::backdrop {
  background: rgba(5, 11, 24, 0.55);
}

.modal-card {
  position: relative;
  padding: 24px;
  background: #fff;
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  font-size: 20px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  min-width: 220px;
  max-width: min(360px, calc(100vw - 36px));
  padding: 14px 16px;
  border-radius: 10px;
  color: #fff;
  background: #111827;
  box-shadow: var(--shadow);
  transform: translateY(calc(100% + 24px));
  opacity: 0;
  pointer-events: none;
  transition: transform 180ms ease, opacity 180ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 980px) {
  .topbar {
    height: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand wallet"
      "nav nav";
    padding: 8px 14px 6px;
    gap: 6px 12px;
    align-items: center;
  }

  .brand {
    grid-area: brand;
    justify-self: start;
  }

  .wallet-pill {
    grid-area: wallet;
    justify-self: end;
    height: 36px;
    min-width: auto;
    padding: 0 12px;
    font-size: 13px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
  }

  .nav {
    grid-area: nav;
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-btn {
    min-width: 70px;
    min-height: 44px;
    padding: 4px 6px;
    font-size: 11px;
    flex-shrink: 0;
  }

  .brand-name {
    display: none;
  }

  .global-discount-badge {
    display: none;
  }

  .cards-grid,
  .quick-actions,
  .cart-layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .view {
    padding-inline: 12px;
    padding-top: 16px;
  }

  .search-panel,
  .catalog-toolbar,
  .cart-layout,
  .quick-actions {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .cards-grid.compact {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gift-card {
    grid-template-rows: 105px auto;
    border-radius: 12px;
  }

  .gift-art-img {
    height: 105px;
    padding: 6px;
  }

  .gift-body {
    padding: 10px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .gift-body h3 {
    font-size: 13px;
    margin-bottom: 3px;
  }

  .card-option-selector {
    margin-bottom: 4px;
  }

  .option-select {
    font-size: 10.5px;
    font-weight: 700;
    padding: 6px 16px 6px 5px;
    background-position: right 3px center;
    background-size: 11px;
    border-width: 1.5px;
    border-radius: 6px;
    letter-spacing: -0.2px;
  }

  .gift-body p {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .price-row {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .card-btn {
    min-height: 34px;
    font-size: 12px;
    padding: 0 6px;
    border-radius: 8px;
  }

  .slide.active {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .hero-slider {
    min-height: 380px;
  }

  .cart-item-card {
    padding: 12px 14px;
  }

  .cart-item-main {
    grid-template-columns: 84px 1fr;
    gap: 12px;
  }

  .cart-thumb {
    width: 84px;
    padding: 4px;
  }

  .cart-item-title {
    font-size: 15px;
  }

  .cart-item-pricing {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 10px;
  }

  .pay-price, .get-val {
    font-size: 14px;
  }

  .wallet-pill {
    height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }
}

/* My Orders & Voucher Styling */
.order-card-box {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.order-card-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.order-card-id {
  font-size: 16px;
  color: var(--ink);
}

.order-card-date {
  font-size: 13px;
  color: var(--muted);
}

.order-card-status {
  color: var(--green);
  font-weight: 700;
  font-size: 15px;
}

.order-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.voucher-card-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.voucher-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.voucher-thumb {
  width: 64px;
  height: 48px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 4px;
}

.voucher-brand-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.voucher-balance-pill {
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
  margin-top: 2px;
}

.voucher-code-wrapper {
  position: relative;
  width: 100%;
}

.voucher-code-box {
  position: relative;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: 10px;
  padding: 14px 16px;
  color: #fff;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Blurred state when NOT revealed */
.voucher-code-box .voucher-code-content {
  filter: blur(9px);
  user-select: none;
  pointer-events: none;
  opacity: 0.45;
  transition: filter 0.4s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.4s ease;
}

.voucher-reveal-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tap-reveal-btn {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  border: 0;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tap-reveal-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.55);
}

/* Revealed state */
.voucher-code-box.is-revealed .voucher-code-content {
  filter: blur(0px);
  user-select: text;
  pointer-events: auto;
  opacity: 1;
}

.voucher-code-box.is-revealed .voucher-reveal-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.code-label {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 4px;
}

.code-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.voucher-code-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 17px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 1.5px;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px dashed rgba(56, 189, 248, 0.4);
}

.copy-code-btn {
  background: #38bdf8;
  color: #0f172a;
  border: 0;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.copy-code-btn:hover {
  background: #7dd3fc;
  transform: translateY(-1px);
}

.copy-code-btn.copied {
  background: #22c55e;
  color: #fff;
}

.voucher-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11.5px;
  color: #cbd5e1;
}

.status-verified {
  color: #4ade80;
  font-weight: 600;
  margin-left: auto;
}

/* Order Success Modal Styling */
.success-modal-card {
  text-align: center;
  padding: 32px 24px;
  max-width: 440px;
  border-radius: 16px;
  background: #ffffff;
}

.success-pop-icon {
  font-size: 60px;
  color: var(--green);
  line-height: 1;
  margin-bottom: 12px;
  animation: popInScale 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popInScale {
  0% { transform: scale(0); opacity: 0; }
  80% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.success-pop-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}

.success-pop-text {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 16px;
}

.success-chip-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--ink);
}

.go-orders-btn {
  width: 100%;
  min-height: 48px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.go-orders-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(22, 163, 74, 0.4);
}

/* Credit Cards Collection Grid & Card Styles */
.credit-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 24px;
}

.credit-product-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.credit-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
}

.credit-card-image-box {
  position: relative;
  width: 100%;
  padding-top: 75%;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  overflow: hidden;
}

.badge-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  background: #ff2a4b;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(255, 42, 75, 0.4);
}

.badge-new {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  background: #20b26c;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(32, 178, 108, 0.4);
}

.credit-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.credit-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.credit-card-title {
  font-size: 13.5px;
  font-weight: 500;
  color: #1e293b;
  margin: 0 0 6px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.credit-card-vendor {
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 8px;
}

.vendor-link {
  color: #3b82f6;
  font-weight: 500;
  cursor: pointer;
}

.credit-card-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 12px;
}

.credit-card-price {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}

.credit-card-price.discounted {
  color: #ff5252;
}

.credit-card-orig-price {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: line-through;
}

.credit-card-btn {
  width: 100%;
  padding: 10px 0;
  background: #4ba2e3;
  color: #ffffff;
  border: 0;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.credit-card-btn:hover {
  background: #3b82f6;
}

/* Mobile Responsiveness Overrides */
@media (max-width: 900px) {
  .credit-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .credit-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 14px;
  }

  .credit-card-body {
    padding: 10px;
  }

  .credit-card-title {
    font-size: 12px;
  }

  .credit-card-price {
    font-size: 13.5px;
  }

  .credit-card-orig-price {
    font-size: 11.5px;
  }

  .credit-card-btn {
    padding: 8px 0;
    font-size: 11.5px;
  }

  .order-card-box {
    padding: 14px 12px;
    margin-bottom: 14px;
  }

  .order-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .order-card-id {
    font-size: 14px;
  }

  .order-card-date {
    font-size: 11.5px;
  }

  .order-card-status {
    font-size: 13px;
  }

  .voucher-card-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }

  .voucher-thumb {
    width: 52px;
    height: 40px;
  }

  .voucher-brand-name {
    font-size: 14px;
  }

  .voucher-code-box {
    padding: 12px;
  }

  .voucher-code-text {
    font-size: 13px;
    letter-spacing: 0.6px;
    word-break: break-all;
  }

  .code-value-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .copy-code-btn {
    width: 100%;
    justify-content: center;
    min-height: 36px;
  }

  .voucher-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .status-verified {
    margin-left: 0;
  }

  .tap-reveal-btn {
    padding: 8px 14px;
    font-size: 12px;
  }
}

/* Credit Card Details Page Styles */
.back-link-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 500;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.back-link-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.card-detail-header-banner {
  background: #ffffff;
  text-align: center;
  padding: 24px 20px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.card-detail-header-banner h2 {
  font-size: 24px;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.banner-subtext p {
  margin: 6px 0;
  font-size: 15px;
  font-weight: 400;
  color: #ef4444;
}

.card-detail-main-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 28px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.card-detail-img-wrapper {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-detail-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.digital-tag-overlay {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  color: #ffffff;
  font-weight: 600;
  font-size: 18px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.shop-confidence-banner {
  margin-top: 16px;
  padding: 14px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  text-align: center;
}

.confidence-badge-title {
  font-size: 14px;
  font-weight: 500;
  color: #2563eb;
}

.card-detail-title-large {
  font-size: 24px;
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 8px;
  border-bottom: 3px solid #f59e0b;
  display: inline-block;
  padding-bottom: 4px;
}

.card-detail-vendor {
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 6px;
}

.vendor-highlight {
  color: #3b82f6;
  font-weight: 500;
}

.card-detail-views {
  font-size: 13px;
  color: #475569;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-detail-price-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.card-detail-price-box .price-label {
  font-size: 16px;
  font-weight: 500;
  color: #1e293b;
}

.card-detail-price-box .price-value {
  font-size: 26px;
  font-weight: 600;
  color: #1e293b;
}

.shipping-method-box {
  background: #f1f5f9;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.shipping-title {
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
  margin-bottom: 8px;
  display: block;
}

.shipping-title .req {
  color: #ef4444;
}

.shipping-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #334155;
  font-weight: 400;
}

.protection-and-buy-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.buyer-protection-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.shield-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2563eb;
  font-size: 16px;
  margin-bottom: 10px;
}

.protection-title {
  font-size: 15px;
  font-weight: 500;
  color: #1e293b;
}

.protection-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  color: #475569;
}

.protection-list li {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.protection-list i {
  color: #16a34a;
  font-size: 14px;
}

.purchase-controls-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.payment-methods-badges {
  text-align: right;
  width: 100%;
}

.pm-title {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 8px;
  display: block;
}

.crypto-icons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.crypto-badge {
  font-size: 10.5px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #334155;
}

.crypto-badge.btc {
  background: #f7931a;
  color: #ffffff;
}

.add-to-cart-group {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  justify-content: flex-end;
}

.detail-qty-input {
  width: 60px;
  padding: 10px;
  text-align: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-weight: 500;
  font-size: 15px;
}

.primary-add-cart-btn {
  padding: 12px 24px;
  background: #3b82f6;
  color: #ffffff;
  border: 0;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease, transform 0.1s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.primary-add-cart-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.card-detail-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}

.section-heading {
  font-size: 22px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 16px;
}

.desc-text {
  font-size: 14.5px;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 10px;
}

.bold-lead {
  font-weight: 500;
  color: #0f172a;
}

.desc-list {
  list-style: none;
  padding-left: 0;
  font-size: 14.5px;
  color: #334155;
  line-height: 1.8;
  font-weight: 400;
  margin: 10px 0;
}

.middle-info p {
  font-size: 14.5px;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 16px;
}

.faq-heading {
  font-size: 16px;
  font-weight: 600;
  background: #dcfce7;
  color: #166534;
  padding: 4px 10px;
  display: inline-block;
  border-radius: 4px;
  margin: 24px 0 16px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 14px;
}

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

.faq-q {
  font-size: 14.5px;
  font-weight: 500;
  color: #1e293b;
  display: block;
  margin-bottom: 6px;
}

.faq-a {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
}

.card-detail-features-footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
  padding: 32px 20px 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}

.feature-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.feature-icon {
  font-size: 42px;
  color: #0f172a;
}

.feature-label {
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
}

@media (max-width: 768px) {
  .card-detail-main-box {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 18px;
  }

  .protection-and-buy-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .purchase-controls-box {
    align-items: stretch;
  }

  .payment-methods-badges {
    text-align: left;
  }

  .crypto-icons {
    justify-content: flex-start;
  }

  .add-to-cart-group {
    justify-content: stretch;
  }

  .primary-add-cart-btn {
    flex: 1;
    justify-content: center;
  }

  .card-detail-features-footer {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Catalog Mobile Responsiveness */
  .cards-grid, .credit-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gift-card, .credit-product-card {
    padding: 10px;
  }

  .gift-card-title, .credit-card-title {
    font-size: 14px;
  }

  .card-btn, .credit-card-btn {
    padding: 8px 10px;
    font-size: 12px;
  }

  /* My Orders Mobile Responsiveness */
  .voucher-card-item {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px;
  }

  .voucher-card-left {
    width: 100%;
  }

  .voucher-code-wrapper {
    width: 100%;
  }

  .voucher-code-box {
    padding: 14px;
  }

  .voucher-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 13.5px;
  }

  .code-value-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Payment Gateway Mobile Responsiveness */
  .gateway-layout {
    grid-template-columns: 1fr;
  }

  .gateway-card {
    padding: 16px;
  }

  .gateway-actions {
    flex-direction: column;
    gap: 10px;
  }

  .gateway-actions button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 8px 12px;
  }

  .header-content {
    gap: 8px;
  }

  .logo-text {
    font-size: 15px;
  }

  .nav-links {
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-item {
    font-size: 11.5px;
    white-space: nowrap;
  }

  .cards-grid, .credit-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .card-detail-section {
    padding: 16px;
  }

  .card-detail-features-footer {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 20px 12px;
  }

  .feature-icon {
    font-size: 32px;
  }

  .feature-label {
    font-size: 12.5px;
  }
}

/* Admin Panel Dashboard Styles */
.admin-dashboard-shell {
  max-width: 1200px;
  margin: 0 auto;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.admin-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 24px;
  flex-shrink: 0;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-val {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 2px;
}

.admin-subtabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
}

.admin-tab-btn {
  padding: 10px 18px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-tab-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.admin-tab-btn.active {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4338ca;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.admin-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.admin-card-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.admin-table th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 2px solid #cbd5e1;
  white-space: nowrap;
}

.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
  vertical-align: middle;
}

.admin-table tr:nth-child(even) {
  background: #f8fafc;
}

.admin-table tr:hover {
  background: #f1f5f9;
}

.admin-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-badge.badge-admin {
  background: #e0e7ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}

.admin-badge.badge-user {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.admin-badge.badge-success {
  background: #dcfce7;
  color: #166534;
}

.admin-badge.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

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

@media (max-width: 600px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
  .admin-subtabs {
    flex-direction: column;
  }
}

/* Password Strength & Suggestion Styles */
.pwd-strength-container {
  margin-top: 8px;
  margin-bottom: 12px;
}

.pwd-strength-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}

.pwd-strength-fill {
  height: 100%;
  width: 0%;
  background: #ef4444;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.pwd-strength-text {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
}

.pwd-suggestion-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 6px;
}

.pwd-suggestion-header {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.pwd-suggestion-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 10px;
}

.pwd-suggestion-code code {
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  color: #4f46e5;
}

.pwd-use-btn {
  background: #6366f1;
  color: #ffffff;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s ease;
}

.pwd-use-btn:hover {
  background: #4f46e5;
}

/* Payment Screenshot Section Styles */
.gateway-screenshot-container {
  margin-bottom: 18px;
}

.gateway-screenshot-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: #f8fafc;
  border: 2px dashed #818cf8;
  border-radius: 14px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.gateway-screenshot-dropzone:hover {
  background: #f0f4ff;
  border-color: #4f46e5;
  transform: translateY(-1px);
}

.screenshot-preview-box {
  margin-top: 14px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.screenshot-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 13.5px;
  color: #1e293b;
  margin-bottom: 10px;
}

.remove-ss-btn {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.remove-ss-btn:hover {
  background: #fee2e2;
}

.screenshot-img-wrapper {
  text-align: center;
  background: #0f172a;
  border-radius: 8px;
  padding: 8px;
  max-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.screenshot-img-wrapper img {
  max-height: 200px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.detected-utr-badge {
  margin-top: 12px;
  padding: 12px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1.5px solid #34d399;
  border-radius: 10px;
  text-align: center;
}

.utr-badge-title {
  font-size: 12px;
  font-weight: 700;
  color: #065f46;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.utr-badge-value {
  font-family: monospace;
  font-size: 22px;
  font-weight: 900;
  color: #047857;
  letter-spacing: 2px;
  margin: 4px 0;
}

.utr-badge-sub {
  font-size: 11.5px;
  color: #059669;
  font-weight: 600;
}

.view-ss-btn, .admin-ss-btn {
  background: #eef2ff;
  color: #4f46e5;
  border: 1px solid #c7d2fe;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.view-ss-btn:hover, .admin-ss-btn:hover {
  background: #e0e7ff;
  color: #3730a3;
}

/* Header Topbar User Profile Chip */
.topbar-user-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 4px 12px 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.user-profile-chip:hover {
  background: #eef2ff;
  border-color: #818cf8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
}

.profile-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.profile-label {
  font-size: 9.5px;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  background: #4f46e5;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.profile-badge.badge-admin-style {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* My Account Profile View Styles */
.profile-card {
  max-width: 620px;
  margin: 0 auto;
  padding: 24px;
}

.profile-header-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

.profile-big-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  flex-shrink: 0;
}

.profile-header-details h2 {
  margin: 0 0 4px 0;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.profile-email {
  margin: 0 0 6px 0;
  color: #64748b;
  font-weight: 500;
  font-size: 14px;
}

.profile-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}

@media (max-width: 640px) {
  .profile-details-grid {
    grid-template-columns: 1fr;
  }
}

.profile-info-item {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 10px 14px;
  border-radius: 10px;
}

.info-label {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}

.info-value {
  font-size: 14px;
  color: #1e293b;
  font-weight: 700;
  word-break: break-all;
}

/* Admin Approval Action Buttons */
.admin-approve-btn {
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
  transition: all 0.2s ease;
}

.admin-approve-btn:hover {
  background: #059669;
  transform: translateY(-1px);
}

.admin-reject-btn {
  background: #ef4444;
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
  transition: all 0.2s ease;
}

.admin-reject-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
}