/* ===========================================
   OPTIMIZED CSS
   Duplicate exact selectors were merged using cascade order: later duplicate declarations overwrite earlier duplicate declarations.
   Generated from uploaded CSS. Review flagged notes before replacing production CSS.
   =========================================== */
:root {
  --bg: #0f1318;
  --card: #151b22;
  --muted: #9ca3af;
  --text: #e5e7eb;
  --border: #273142;
  --accent: #3b82f6;
  --danger: #ef4444;
  --sidebar-bg: #111827;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --table-row: #151b22;
  --gs-palette-w: 225px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

html, body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.layout {
  flex: 1;
  min-height: calc(100vh - var(--topbar-height, 64px));
  display: flex;
}

.topbar {
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #020617;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-logo {
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.dtf-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
}

.btn {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  margin: 2px;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn-outline,
.btn.btn-outline {
  background: transparent;
  color: var(--accent);
}

.btn.btn-outline:hover:not([disabled]) {
  background: var(--accent);
  color: #fff;
  filter: brightness(1.08);
}

.btn.btn-outline[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  background: transparent;
  color: var(--accent);
  filter: none;
}

.btn-disabled {
  opacity: 0.5;
  filter: none;
}

.btn-disabled:hover {
  filter: none;
}

.btn-ghost {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
}

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

.btn-sm {
  padding: 4px 10px;
  font-size: 0.75rem;
}

.user-chip {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #020617;
  cursor: pointer;
}

.user-chip-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.user-chip-name {
  line-height: 1.1;
  white-space: nowrap;
}

.user-chip-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.user-chip-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 1px 8px;
  font-size: 0.68rem;
  line-height: 1.2;
  white-space: nowrap;
}

.user-chip-badge-discount {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.6);
  color: #d1fae5;
}

.user-chip-badge-tax {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.6);
  color: #fef3c7;
}

.avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 600;
}

.user-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.user-menu-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 2px;
  min-width: 180px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 8px 0;
  opacity: 0;
  transform: translateY(-2px);
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
  z-index: 50;
}

.user-menu:hover .user-menu-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.user-menu-name {
  padding: 8px 14px 6px;
  font-size: 0.8rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.user-menu-item {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
}

.user-menu-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.account-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: linear-gradient(145deg, #b91c1c, #7f1d1d);
  color: #fff;
  border: 1px solid #dc2626;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: all 0.2s ease;
}

.nav-admin-btn:hover {
  background: linear-gradient(145deg, #dc2626, #991b1b);
  border-color: #fca5a5;
  transform: translateY(-1px);
}

.sidebar {
  position: fixed;
  top: 80px;
  left: 0;
  width: 230px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  padding-top: 16px;
  height: calc(100vh - 80px);
  overflow: hidden;
  z-index: 100;
}

.sidebar-title {
  padding: 10px 18px 0 8px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.75rem;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 8px 18px;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(59,130,246,0.1);
  border-left: 3px solid var(--accent);
  padding-left: 15px;
  color: var(--text);
}

.nav-disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: not-allowed;
}

.dashboard-announcement-card {
  border: 2px solid var(--danger) !important;
}

.announcement-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f87171;
}

.announcement-content {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.content {
  flex: 1;
  padding: 18px;
}

main.content {
  margin-left: 260px;
  padding: 24px;
  min-height: calc(100vh - 64px);
}

.content-header h1 {
  margin: 0 0 4px;
}

.tile-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.tile-thumb {
  width: 100%;
  border-radius: 10px;
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.tile-title {
  padding: 0 0 20px 0;
  font-weight: 700;
}

.tile-desc {
  color: var(--muted);
  font-size: 0.9rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-backdrop.active {
  display: flex;
}

.modal-dialog {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  position: relative;
  box-shadow: var(--shadow);
}

.modal-title {
  margin: 0 0 6px;
}

.modal-text {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.modal-actions {
  text-align: right;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 1.3rem;
  cursor: pointer;
}

body.whats-new-modal-open {
  overflow: hidden;
}

.whats-new-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
}

.whats-new-modal.is-open {
  display: flex;
}

.whats-new-dialog {
  width: min(860px, 100%);
  max-height: min(86vh, 900px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.whats-new-header {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.whats-new-header h2 {
  margin: 0;
}

.whats-new-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.whats-new-close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #020617;
  color: var(--text);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.whats-new-close:hover,
.whats-new-close:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.whats-new-scroll {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
}

.whats-new-post {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0a1020;
}

.whats-new-post + .whats-new-post {
  margin-top: 16px;
}

.whats-new-post-heading {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.whats-new-post-heading h3 {
  margin: 0 0 5px;
}

.whats-new-post-heading time {
  color: var(--muted);
  font-size: 0.82rem;
}

.whats-new-rich-content {
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.whats-new-rich-content img,
.whats-new-rich-content video {
  max-width: 100%;
  height: auto;
}

.whats-new-rich-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.whats-new-rich-content a {
  color: var(--accent);
}

.whats-new-rich-content > :first-child {
  margin-top: 0;
}

.whats-new-rich-content > :last-child {
  margin-bottom: 0;
}

.whats-new-empty {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.whats-new-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

.whats-new-read-status {
  margin-right: auto;
  color: var(--muted);
  font-size: 0.86rem;
}

.whats-new-count-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(2, 6, 23, 0.95);
}

@media (max-width: 640px) {
  .whats-new-modal {
    padding: 10px;
  }

  .whats-new-dialog {
    max-height: 92vh;
  }

  .whats-new-header,
  .whats-new-scroll,
  .whats-new-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .whats-new-post {
    padding: 14px;
  }
}

.google-button {
  background: #fff;
  color: #111;
  padding: 8px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid var(--border);
}

.viewer-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.viewer-controls {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.viewer-btn {
  padding: 6px 12px;
  background: #222;
  color: #ddd;
  border: 1px solid #444;
  cursor: pointer;
  border-radius: 4px;
}

.viewer-btn:hover {
  background: #333;
}

.zoom-label {
  margin-left: 12px;
  color: #ccc;
}

.viewer-minimap {
  position: absolute;
  right: 15px;
  bottom: 20px;
  width: 150px;
  height: 150px;
  border: 1px solid #666;
  background: #111;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0.85;
}

.minimap-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.4;
}

.minimap-viewbox {
  position: absolute;
  border: 2px solid #0af;
  background: rgba(0, 170, 255, 0.15);
  pointer-events: none;
}

.cart-root {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-loading,
.cart-empty,
.cart-error {
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 0.95rem;
}

.cart-loading {
  background: #111;
  color: #ccc;
}

.cart-empty {
  background: #111;
  color: #888;
}

.cart-error {
  background: #331111;
  color: #f88;
}

.cart-table-wrapper {
  overflow-x: auto;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.cart-table th,
.cart-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #222;
  text-align: left;
}

.cart-col-thumb {
  width: 80px;
}

.cart-thumb {
  display: block;
  max-width: 64px;
  max-height: 64px;
  border-radius: 4px;
  border: 1px solid #333;
}

.cart-thumb-btn {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: zoom-in;
}

.cart-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cart-lightbox.hidden {
  display: none;
}

.cart-lightbox-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.cart-lightbox-img {
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.5);
  background: rgba(255,255,255,0.02);
}

.cart-qty-input {
  width: 70px;
}

.cart-notes-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.cart-notes-input {
  display: block;
  width: min(320px, 100%);
  min-width: 220px;
  margin-top: 4px;
  padding: 7px 8px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #111827;
  color: inherit;
  font: inherit;
  line-height: 1.35;
}

.cart-notes-status {
  min-height: 1em;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.cart-notes-status.is-saved {
  color: #86efac;
}

.cart-notes-status.is-error {
  color: #fca5a5;
}

.alert-banner {
  margin: 8px 0 14px;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(248,113,113,0.15);
  border: 1px solid #f97373;
  color: #fecaca;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
}

.alert-banner.hidden {
  display: none;
}

.alert-close {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.cart-promo {
  margin: 10px 0 14px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.95rem;
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid #eab308;
  color: #fde68a;
  display: flex;
  align-items: center;
  transition: background .25s, border .25s, color .25s;
}

.cart-promo.hidden {
  display: none;
}

.cart-promo.qualified {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid #22c55e;
  color: #bbf7d0;
}

.cart-bottom-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-top: 10px;
}

.cart-summary {
  flex: 1.4;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--table-row);
  border: 1px solid var(--border);
  border-top: 1px solid #222;
  border-radius: 12px;
  padding: 14px 20px 16px;
  margin-top: 0;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

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

.cart-delivery-options label {
  margin-right: 12px;
  font-size: 0.9rem;
}

.cart-summary-total span:last-child {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.cart-tax-card {
  flex: 1;
  background: #020617;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 16px 18px 14px;
}

.cart-tax-card .form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-tax-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.cart-tax-subtitle {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.cart-tax-label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 4px;
}

#tax_state {
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.cart-actions-row {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

.cart-actions-row #paypalLaunchBtn {
  margin: 0;
  min-width: 220px;
}

#cartTotalsContainer {
  display: none;
}

@media (max-width: 800px) {
  .cart-bottom-row {
    flex-direction: column;
  }

  .cart-tax-card {
    width: 100%;
  }
}

.orders-root {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.orders-card {
  padding: 16px 18px;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-card {
  background: var(--card);
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 12px 16px 10px;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}

.order-card-header {
  cursor: pointer;
}

.order-main-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.order-id,
.order-total {
  font-weight: 600;
}

.order-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.order-items-summary {
  margin-left: auto;
}

.order-txn {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.order-txn-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
}

.order-status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.order-status-completed,
.order-status-paid {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  border-color: #16a34a;
}

.order-status-pending {
  background: rgba(234,179,8,0.15);
  color: #eab308;
  border-color: #eab308;
}

.order-status-failed {
  background: rgba(248,113,113,0.15);
  color: #f87171;
  border-color: #ef4444;
}

.order-status-jg {
  background: rgba(147,51,234,0.20);
  color: #c084fc;
  border: 1px solid rgba(147,51,234,0.35);
}

.order-items {
  margin-top: 8px;
  display: none;
}

.order-card.order-expanded .order-items {
  display: block;
}

.order-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.order-items-table th,
.order-items-table td {
  padding: 4px 6px;
  text-align: left;
}

.order-items-table thead tr {
  border-bottom: 1px solid var(--border);
}

.order-items-table tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.02);
}

.order-item-thumb {
  max-width: 64px;
  max-height: 64px;
  border-radius: 4px;
  cursor: pointer;
  display: block;
}

.order-card .order-breakdown,
.order-card .order-breakdown-actions {
  display: none;
}

.order-card.order-expanded .order-breakdown,
.order-card.order-expanded .order-breakdown-actions {
  display: block;
}

.tracking-row {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.tracking-row strong {
  color: var(--text);
}

.tracking-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tracking-input,
.carrier-select {
  padding: 6px 8px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  font-size: 0.85rem;
}

.tracking-save-btn {
  padding: 6px 10px;
  font-size: 0.8rem;
  border-radius: 6px;
  cursor: pointer;
}

.tracking-msg {
  margin-top: 4px;
  font-size: 0.8rem;
}

.tracking-link-container {
  margin-top: 4px;
  font-size: 0.8rem;
}

.tracking-link-container a {
  color: #3b82f6;
  text-decoration: underline;
}

.order-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.order-actions .btn {
  font-size: 0.8rem;
  padding: 6px 10px;
}

.design-card-horizontal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow);
  width: 100%;
}

.design-thumb-h {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.design-thumb-stack {

  display: flex;

  flex-direction: column;

  gap: 6px;

  align-items: center;

  flex-shrink: 0;

}

.design-thumb-h img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.design-info-h {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.design-info-h .design-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

.design-meta-h {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--muted);
}

.design-meta-h span:nth-child(3) {
  color: var(--accent);
  font-weight: 600;
}

.design-date-h {
  font-size: 0.7rem;
  color: var(--muted);
}

.design-actions-h {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.design-thumb-download {

  font-size: 0.72rem;

  color: #93c5fd;

  text-decoration: none;

}

.design-thumb-download:hover {

  text-decoration: underline;

}

@media (max-width: 700px) {
  .design-card-horizontal {
    flex-direction: column;
    text-align: center;
  }

  .design-thumb-h {
    margin-bottom: 10px;
  }

  .design-thumb-stack {

    margin-bottom: 10px;

  }

  .design-meta-h {
    justify-content: center;
  }

  .design-actions-h {
    flex-direction: row;
    justify-content: center;
    width: 100%;
  }
}

.design-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.design-lightbox.is-open {
  display: flex;
}

.design-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
}

.design-lightbox-inner img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.design-lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: rgba(15,23,42,0.85);
  color: #e5e7eb;
  font-size: 22px;
  line-height: 1;
}

.design-lightbox.is-open .design-lightbox-inner {
  max-height: calc(100vh - 80px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.design-lightbox.is-open #designLightboxImg {
  display: block;
  max-width: 100%;
  height: auto;
}

.design-lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  background-color: #fafafa;
  background-image: linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
    linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
    linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
  background-size: 20px 20px;
  background-position: 0 0,
    0 10px,
    10px -10px,
    -10px 0;
}

.design-lightbox-close:hover {
  background: rgba(37,99,235,0.95);
}

.preview-details-grid,
.preview-qty-panel {
  border: 1px solid var(--muted);
  border-radius: 10px;
  width: 500px;
  margin: 10px;
}

.detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 1px;
}

.detail-label {
  font-size: 1rem;
  color: var(--muted);
  width: 225px;
  padding: 2px;
  margin: 1px;
  text-align: right;
}

.detail-value {
  font-size: 1rem;
  width: 225px;
  padding: 2px;
  margin: 1px;
  text-align: left;
}

.price-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.price-original {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.95rem;
}

.price-current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.price-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.preview-discount-note {
  margin: 0 10px 10px;
  color: #86efac;
  font-size: 0.9rem;
}

.detail-value input#singleQty.input-number {
  max-width: 125px;
}

.form-group {
  margin: 10px 10px 0 0;
  padding: 15px;
  border: 1px solid #273142;
  border-radius: 10px;
  width: 400px;
}

.form-image {
  float: left;
  margin: 0 10px 10px 0;
  width: 150px;
  height: auto;
}

.form-group label {
  margin: 10px;
}

.form-group input-text {
  margin: 10px;
}

.single-upload-root {
  clear: both;
  margin: 10px 10px 0 0;
}

.field-hint {
  font-size: 0.7rem;
  color: var(--muted);
}

.pickup-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.pickup-modal.hidden {
  display: none;
}

.pickup-modal-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.menu-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  vertical-align: middle;
}

.seo-footer-block {
  margin-top: 48px;
  margin-left: 24px;
  margin-right: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.seo-footer-block h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text);
}

.seo-footer-block p {
  margin-bottom: 10px;
}

.seo-service-areas {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.business-info-block {
  margin: 24px 24px 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.business-info-block h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text);
}

.business-info-block p {
  margin-bottom: 10px;
}

.business-info-block a {
  color: var(--accent);
  text-decoration: none;
}

.business-info-block a:hover {
  text-decoration: underline;
}

.app-footer {
  width: 100%;
  padding: 20px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
  margin-top: 30px;
}

.footer-inner {
  font-size: 0.85rem;
  color: var(--muted);
}

.app-footer a {
  color: var(--accent);
  text-decoration: none;
}

.app-footer a:hover {
  text-decoration: underline;
}

.gs-builder {
  padding: 16px;
}

.gs-left-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gs-topbar {
  display: grid;
  grid-template-columns: 1fr var(--gs-palette-w);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}

.gs-manage {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gs-manage-box {
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(15,23,42,.60);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  width: 100%;
  height: 100%;
}

.gs-manage-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.gs-manage-select {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 6px;
}

.gs-manage-prefix {
  color: rgba(255,255,255,.75);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  transform: translateY(1px);
}

#gsSizeSelect {
  height: 38px;
  padding: 6px 10px;
}

.gs-arrange-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(15,23,42,.6);
  width: 100%;
  height: 100%;
}

.gs-arrange-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 4px;
}

.gs-arrange-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gs-actions {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding-bottom: 2px;
}

.gs-actions > .btn,
.gs-actions > #gsSaveMsg,
.gs-actions > #gsDirtyPill {
  flex-shrink: 0;
}

.gs-arrange-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 16px;
  margin-left: 8px;
  border-left: 1px solid rgba(255,255,255,.12);
}

.gs-field label {
  display: block;
  font-size: .85rem;
  opacity: .85;
  margin-bottom: 6px;
}

.gs-zoom {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gs-my-designs {
  background: transparent;
}

.gs-my-designs-row {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.gs-upload-left {
  flex: 0 0 360px;
  max-width: 420px;
}

.gs-palette-right {
  flex: 1 1 auto;
  min-width: 0;
}

.gs-palette-right .gs-palette-list {
  max-height: 280px;
  overflow: auto;
  padding-right: 6px;
}

.gs-work {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 16px;
  align-items: start;
}

.gs-arrange-sticky {
  position: sticky;
  top: 16px;
}

@media (max-width: 1100px) {
  .gs-work {
    grid-template-columns: 1fr;
  }

  .gs-arrange-sticky {
    position: static;
  }

  .gs-my-designs-row {
    flex-direction: column;
  }

  .gs-upload-left {
    flex: 1 1 auto;
    max-width: none;
  }
}

.gs-canvas-wrap {
  width: 100%;
  box-sizing: border-box;
  padding: 14px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: visible;
  position: relative;
  min-width: max-content;
}

#gsCanvas {
  display: block;
  background: #0b1220;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  border-radius: 0px;
}

#gsCanvas + canvas,
.canvas-container canvas {
  display: block;
}

.lower-canvas {
  border-style: dashed;
  border-color: #3b82f6;
}

.gs-tooltip {
  position: fixed;
  z-index: 9999;
  background: rgba(0,0,0,.75);
  color: #fff;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 12px;
  pointer-events: none;
}

.gs-tooltip.hidden {
  display: none;
}

.gs-hint {
  margin-top: 10px;
  opacity: .85;
  font-size: .9rem;
}

.gs-palette-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.gs-palette-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gs-asset {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255,255,255,0.02);
}

.gs-asset-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 64px;
}

.gs-asset-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gs-asset-meta {
  flex: 1;
  min-width: 0;
}

.gs-asset-name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gs-asset-sub {
  opacity: .8;
  font-size: .85rem;
  margin-top: 2px;
}

.gs-asset-actions {
  flex: 0 0 auto;
}

.gs-dirty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
  border: 1px solid #f59e0b;
  background: rgba(245,158,11,0.12);
  color: #fbbf24;
}

.gs-dirty.hidden {
  display: none;
}

.gs-upload {
  padding: 2px 2px;
}

.gs-upload-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.gs-upload input[type="file"],
.gs-upload input[type="text"] {
  width: 100%;
  margin-bottom: 8px;
}

.gs-upload-msg {
  margin-top: 8px;
  font-size: .9rem;
}

.gs-current-bar {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  margin: 2px 0 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(180deg, rgba(15,23,42,.92), rgba(2,6,23,.92));
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.08);
}

.gs-current-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: nowrap;
}

.gs-current-left {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 260px;
}

.gs-current-controls {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
  overflow-x: auto;
  scrollbar-width: thin;
}

.gs-current-controls::-webkit-scrollbar {
  height: 8px;
}

.gs-current-controls .gs-arrange-buttons {
  white-space: nowrap;
}

.gs-current-title {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 2px;
}

.gs-current-value {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-weight: 900;
  line-height: 1;
  margin-top: 4px;
}

#gsCurrentSizeText {
  font-size: 2.1rem;
  color: #fff;
}

#gsCurrentCostText {
  font-size: 2.1rem;
  color: #60a5fa;
}

.gs-dot {
  font-size: 1.4rem;
  color: rgba(255,255,255,.45);
  font-weight: 700;
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .gs-topbar,
  .gs-body {
    grid-template-columns: 1fr;
  }

  .gs-palette {
    width: 120px;
    max-width: none;
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 16px;
  }
}

.gs-sizebox {
  margin-top: 10px;
}

.gs-size-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.gs-size-label {
  font-size: .8rem;
  color: rgba(255,255,255,.7);
}

.gs-size-input {
  width: 90px;
  padding: 6px 8px;
  background: rgba(2,6,23,.55);
  border: 1px solid rgba(255,255,255,.14);
  color: #e5e7eb;
  border-radius: 8px;
}

.gs-size-lock {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: rgba(255,255,255,.7);
}

.gs-size-hint {
  margin-top: 6px;
  font-size: .8rem;
  color: rgba(255,255,255,.6);
}

.gs-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gs-canvas-panel {
  flex: 1 1 auto;
  min-width: 0;
  margin-top: 6px;
  overflow: auto;
}

.gs-palette {
  width: 120px;
  flex: 0 0 120px;
}

@media (max-width: 900px) {
  .gs-body {
    flex-direction: column;
  }

  .gs-palette {
    flex: 0 0 auto;
    width: 100%;
  }
}

.design-type {
  font-size: 0.85em;
  color: #9ca3af;
  font-weight: 400;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #020617;
  color: var(--text);
  height: 40px;
  width: 44px;
  border-radius: 10px;
  cursor: pointer;
  margin-right: 10px;
}

.nav-overlay {
  display: none;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .topbar {
    padding: 10px 12px;
  }

  main.content {
    margin-left: 0;
    padding: 16px;
    min-height: auto;
  }

  .tiles-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    top: 80px;
    width: min(86vw, 320px);
    height: calc(100vh - 80px);
    transform: translateX(-110%);
    transition: transform 0.18s ease;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1000;
  }

  .nav-overlay {
    position: fixed;
    inset: 80px 0 0 0;
    background: rgba(0,0,0,0.55);
    display: none;
    z-index: 999;
  }

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

  body.nav-open .nav-overlay {
    display: block;
  }
}

.single-wait-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
}

.single-wait-overlay.hidden {
  display: none;
}

.single-wait-card {
  width: min(420px, 92vw);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  text-align: center;
}

.single-wait-title {
  margin-top: 10px;
  font-weight: 700;
  font-size: 16px;
}

.single-wait-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.single-wait-spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.18);
  border-top-color: rgba(255,255,255,.9);
  animation: singleSpin .9s linear infinite;
}

@keyframes singleSpin {
to { transform: rotate(360deg); }
}

.tile-thumb-btn {
  all: unset;
  display: block;
  width: 100%;
  cursor: pointer;
}

.tile-thumb-btn img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.tile-thumb-btn:hover img {
  filter: brightness(1.05);
}

.google-icon {
  width: 18px;
  height: 18px;
  background: #ea4335;
  border-radius: 3px;
  display: inline-block;
  background-image: url("/img/google-g.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-color: transparent;
}

.viewer-frame {
  position: relative;
  width: 100%;
  height: calc(100vh - 260px);
  background: #0d0d0d;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #333;
  touch-action: none;
  background-color: #fff;
  background-image: linear-gradient(45deg, rgba(0,0,0,.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0,0,0,.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(0,0,0,.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(0,0,0,.08) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.viewer-image {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  pointer-events: all;
  cursor: grab;
  user-select: none;
  display: block;
  background: transparent;
}

.info-tip {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.85);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

.info-tip:hover {
  background: rgba(255,255,255,.10);
}

.info-pop::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 18px;
  width: 14px;
  height: 14px;
  background: rgba(20, 24, 30, .98);
  border-left: 1px solid rgba(255,255,255,.14);
  border-top: 1px solid rgba(255,255,255,.14);
  transform: rotate(45deg);
}

.info-tip.is-open + .info-pop {
  display: block;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-row .label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.summary-row .value {
  text-align: right;
  min-width: 80px;
}

.hidden {
  display: none !important;
}

.design-film-type-h {
  font-size: 0.8rem;
  color: var(--muted);
}

.info-pop {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: min(360px, 78vw);
  background: rgba(20, 24, 30, .98);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  padding: 12px 14px;
  color: rgba(255,255,255,.92);
  font-size: 14px;
  line-height: 1.35;
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
  z-index: 999;
}

.info-tip:hover + .info-pop {
  display: block;
}

.dashboard-notice-card {
  margin: 0;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.dashboard-notice-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.dashboard-notice-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.dashboard-notice-content p {
  margin: 0 0 8px;
}

.dashboard-notice-content ul {
  margin: 6px 0 6px 18px;
}

.dashboard-notice-content a {
  color: var(--accent);
  text-decoration: underline;
}

.dashboard-notice-wrap {
  width: 100%;
  clear: both;
  margin: 10px 0 22px;
}

.tiles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  clear: both;
}

.dashboard-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

@keyframes pickupOptionShake {
0%, 100% { transform: translateX(0); }
  10% { transform: translateX(-4px); }
  20% { transform: translateX(4px); }
  30% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  50% { transform: translateX(-3px); }
  60% { transform: translateX(3px); }
  70% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
  90% { transform: translateX(-1px); }
}

@keyframes pickupOptionGlow {
0%, 100% {
    box-shadow: 0 0 0 rgba(59,130,246,0);
    background: transparent;
  }
  25% {
    box-shadow: 0 0 0 2px rgba(59,130,246,0.30);
    background: rgba(59,130,246,0.08);
  }
  50% {
    box-shadow: 0 0 0 2px rgba(59,130,246,0.45);
    background: rgba(59,130,246,0.12);
  }
  75% {
    box-shadow: 0 0 0 2px rgba(59,130,246,0.25);
    background: rgba(59,130,246,0.06);
  }
}

.pickup-switch-row {
  border-radius: 8px;
  animation: pickupOptionShake 0.45s ease-in-out 3;
}

.pickup-switch-attention {
  border-radius: 8px;
  padding: 2px 8px;
  animation: pickupOptionShake 0.45s ease-in-out 3,
    pickupOptionGlow 2.2s ease-in-out 1;
}

.pickup-warning {
  font-weight: 500;
  text-align: center;
  margin-bottom: 12px;
}

.pickup-modal-card {
  background: #0f172a;
  border: 1px solid transparent;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  border-radius: 10px;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pickup-modal-card:hover {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
}

@keyframes subtleShake {
0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-2px); }
  40% { transform: translateX(2px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}

.pickup-warning.shake {
  animation: subtleShake 0.4s ease-in-out 2;
  text-shadow: 0 0 6px rgba(255,255,255,0.3);
}

#shipping-carrier-wrap {
  display: block;
  max-width: 260px;
}

#shipping-carrier-wrap label {
  display: block;
  white-space: normal;
  line-height: 1.3;
}

.cart-delivery-options {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.order-breakdown {
  margin-top: 14px;
  max-width: 320px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ob-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

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

.ob-value {
  text-align: right;
  min-width: 80px;
  font-variant-numeric: tabular-nums;
}

.ob-total {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
  font-weight: 700;
  font-size: 1rem;
}
.simpire-splash {

  display: flex;

  flex-direction: column;

  gap: 24px;

}

.simpire-hero {

  display: flex;

  flex-direction: column;

  gap: 24px;

  align-items: flex-start;

  padding: 24px;

  border: 1px solid rgba(255,255,255,0.08);

  border-radius: 24px;

  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.22), transparent 38%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.94));

  box-shadow: var(--shadow);

}

.simpire-copy {

  display: flex;

  flex-direction: column;

  align-items: flex-start;

  text-align: left;

}

.simpire-tagline {

  margin: 0 0 12px;

  font-size: 1.15rem;

  color: #fde68a;

}

.simpire-body {

  max-width: 56ch;

  margin: 0;

  color: #d1d5db;

  line-height: 1.6;

}

.simpire-actions {

  display: flex;

  flex-wrap: wrap;

  justify-content: flex-start;

  gap: 12px;

  margin: 0 0 16px;

}

.simpire-art img,

.simpire-modal-media img {

  display: block;

  width: 100%;

  height: auto;

  border-radius: 18px;

  border: 1px solid rgba(255,255,255,0.12);

  box-shadow: 0 18px 40px rgba(0,0,0,0.35);

}

.simpire-modal-dialog {

  width: min(92vw, 640px);

  max-width: 640px;

  max-height: 88vh;

  overflow-y: auto;

  margin: 0;

}

#simpireGameModal.active {

  align-items: flex-start;

  justify-content: flex-start;

  padding: 20px;

}

.simpire-modal-media {

  display: flex;

  align-items: center;

  justify-content: flex-start;

  overflow: visible;

  width: min(100%, 520px);

  max-width: calc(100% - 20px);

  height: auto;

  min-height: 0;

  flex: 0 1 520px;

}

.simpire-modal-media img {

  display: block;

  width: min(100%, 520px);

  height: auto;

  max-height: 140px;

  object-fit: contain;

  border: none;

  border-radius: 0;

  box-shadow: none;

}

.simpire-modal-topbar {

  display: grid;

  grid-template-columns: minmax(280px, 520px) minmax(180px, 240px);

  align-items: start;

  justify-content: space-between;

  margin-bottom: 10px;

  padding-right: 36px;

  column-gap: 18px;

}

.simpire-game-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 8px;
}

.simpire-notice-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  pointer-events: none;
  width: 100%;
  margin-bottom: 8px;
}

.simpire-game-banner,
.simpire-modal-status {

  max-width: 240px;

  padding: 8px 10px;

  border-radius: 10px;

  background: rgba(59,130,246,0.12);

  border: 1px solid rgba(59,130,246,0.24);

  color: #dbeafe;

  font-size: 0.8rem;

  line-height: 1.35;

  box-shadow: 0 10px 24px rgba(0,0,0,0.24);

  opacity: 0;

  transform: translateY(-4px);

  transition: opacity 0.35s ease, transform 0.35s ease;

}

.simpire-game-banner.is-visible,
.simpire-modal-status.is-visible {

  opacity: 1;

  transform: translateY(0);

}

.simpire-game-banner.is-fading,
.simpire-modal-status.is-fading {

  opacity: 0;

  transform: translateY(-6px);

}

#simpireGameModal.simpire-drawer-shell {
  display: block;
  inset: 0;
  background: transparent;
  pointer-events: none;
  overflow: hidden;
  z-index: 1100;
}

#simpireGameModal.simpire-drawer-shell.active {
  background: rgba(2, 6, 23, 0.58);
  pointer-events: auto;
}

.simpire-drawer-panel {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translate3d(calc(100% + 24px), -50%, 0);
  width: min(92vw, 720px);
  max-width: min(92vw, 720px);
  max-height: min(88vh, 860px);
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 20px 0 0 20px;
  background:
    radial-gradient(circle at top center, rgba(59, 130, 246, 0.10), transparent 28%),
    linear-gradient(180deg, rgb(12, 18, 30), rgb(9, 14, 24));
  padding: 0 20px 20px 20px;
  box-shadow: -22px 0 48px rgba(0, 0, 0, 0.38);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  pointer-events: auto;
}

#simpireGameModal.is-open .simpire-drawer-panel {
  transform: translate3d(0, -50%, 0);
}

#simpireGameModal.is-tucked .simpire-drawer-panel {
  transform: translate3d(calc(100% + 24px), -50%, 0);
}

.simpire-drawer-handle {
  position: fixed;
  right: 0;
  top: 50%;
  width: 44px;
  height: 150px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-right: none;
  border-radius: 16px 0 0 16px;
  background:
    linear-gradient(180deg, rgba(44, 58, 80, 0.98), rgba(15, 23, 42, 0.98));
  color: #f8fafc;
  box-shadow: -10px 0 24px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0;
  z-index: 1205;
  pointer-events: auto;
  overflow: hidden;
}

.simpire-drawer-handle:hover {
  filter: brightness(1.08);
}

.simpire-drawer-tab-label {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.simpire-drawer-tab-icon {
  font-size: 1.1rem;
  line-height: 1;
}

#simpireGameModal.is-open + .simpire-drawer-handle,
.simpire-drawer-handle.is-open {
  width: 34px;
  height: 122px;
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.95), rgba(29, 78, 216, 0.95));
}

.simpire-drawer-panel .modal-actions {
  padding-right: 0;
}

@media (max-width: 900px) {

  .simpire-modal-topbar {

    grid-template-columns: 1fr;

    padding-right: 0;

  }

  .simpire-modal-media {
    width: min(100%, 360px);
    flex-basis: auto;
  }

  .simpire-modal-media img {
    max-height: 110px;
  }

  .simpire-notice-stack {
    position: static;
    align-items: stretch;
    margin-bottom: 2px;
    width: 100%;
  }

  .simpire-game-banner,
  .simpire-modal-status {
    max-width: none;
  }

  .simpire-drawer-panel {
    width: min(94vw, 600px);
    max-width: min(94vw, 600px);
    padding-right: 68px;
  }

  .simpire-hero {

    grid-template-columns: 1fr;

  }

}

.nav-link {

  justify-content: space-between;

  gap: 12px;

}

.nav-link-label {

  min-width: 0;

}

.topbar-cart-btn {

  position: relative;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  width: 42px;

  height: 42px;

  border-radius: 14px;

  border: 1px solid rgba(148, 163, 184, 0.25);

  background: rgba(15, 23, 42, 0.9);

  color: #e5e7eb;

  text-decoration: none;

  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;

}

.topbar-cart-btn:hover,
.topbar-cart-btn:focus-visible {

  transform: translateY(-1px);

  border-color: rgba(57, 255, 20, 0.85);

  box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.14);

  outline: none;

}

.topbar-cart-icon {

  display: inline-flex;

  align-items: center;

  justify-content: center;

}

.topbar-cart-icon svg {

  width: 22px;

  height: 22px;

}

.cart-count-badge {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-width: 18px;

  height: 18px;

  padding: 0 5px;

  border-radius: 999px;

  background: #39ff14;

  color: #04130a;

  font-size: 0.7rem;

  font-weight: 800;

  line-height: 1;

  box-shadow: 0 0 0 2px rgba(2, 6, 23, 0.95), 0 0 14px rgba(57, 255, 20, 0.55);

}

.topbar-cart-btn .cart-count-badge {

  position: absolute;

  top: -4px;

  right: -4px;

}

.nav-link-cart .cart-count-badge {

  flex: 0 0 auto;

}

.nav-item-badge {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  flex: 0 0 auto;

  padding: 1px 5px;

  border-radius: 999px;

  font-size: 0.52rem;

  font-weight: 800;

  letter-spacing: 0.04em;

  line-height: 1;

}

.nav-item-badge-new {

  background: rgba(249, 115, 22, 0.18);

  border: 1px solid rgba(249, 115, 22, 0.65);

  color: #fdba74;

}

.nav-link-game {

  justify-content: flex-start;

}

.nav-link-game .nav-link-label {

  display: inline-flex;

  align-items: center;

  gap: 8px;

}

.nav-link-icon {

  display: inline-flex;

  align-items: center;

  justify-content: center;

}

.nav-link-icon-game {

  position: relative;

  width: 20px;

  height: 20px;

  flex: 0 0 20px;

}

.nav-link-game .nav-item-badge {

  position: absolute;

  top: -7px;

  right: -11px;

  padding: 1px 4px;

  transform: rotate(-18deg);

  transform-origin: center;

  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);

}
.white-divider {    border: none;    height: 5px;    background-color: #767c89;    margin: 20px 0;}
