/* =========================================================
   PPRINT UPLOAD PAGE
   UNIFIED RESPONSIVE CSS
   ---------------------------------------------------------
   Shared:
   - Header / Navbar
   - Footer

   Page-specific:
   - Upload / Order
   - Guide
   - Image Guide
   - Lightbox
   - Form
   - Upload Status
   - Pricing
========================================================= */

/* =========================================================
   GLOBAL
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f5f9fd 0%, #eef4f9 100%);
  color: #172b3a;
  font-family: Vazirmatn, Tahoma, Arial, sans-serif;
  line-height: 1.8;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  width: 100%;
}

/* =========================================================
   SHARED HEADER
   Mobile-First + RTL
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background-color: var(--surface-color, #fff);
  border-bottom: 1px solid var(--border-color, #e5e7eb);
  box-shadow: 0 2px 10px rgb(0 0 0 / 3%);
}

.header-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  min-height: 64px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: rtl;
}

/* =========================================================
   HEADER - LOGO
========================================================= */

.logo-container {
  display: block;
  flex-shrink: 0;
}

.logo-container img {
  display: block;
  width: auto;
  height: 42px;
  object-fit: contain;
}

/* =========================================================
   HEADER - MOBILE MENU BUTTON
========================================================= */

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  border: none;
  background: transparent;
  color: var(--text-color, #1f2937);
  font-size: 1.5rem;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.menu-toggle:hover {
  color: var(--primary-color, #2563eb);
}

.menu-toggle:active {
  transform: scale(0.9);
}

/* =========================================================
   HEADER - MOBILE NAVIGATION
========================================================= */

.main-nav {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background-color: var(--surface-color, #fff);
  border-bottom: 1px solid var(--border-color, #e5e7eb);
  box-shadow: 0 10px 25px -5px rgb(0 0 0 / 10%);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav.active {
  max-height: 500px;
}

/* =========================================================
   HEADER - NAV LIST
========================================================= */

.nav-list {
  margin: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  list-style: none;
}

/* =========================================================
   HEADER - NAV LINKS
========================================================= */

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: var(--text-color, #4b5563);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.nav-link i {
  width: 20px;
  color: var(--text-muted, #6b7280);
  font-size: 1rem;
  text-align: center;
  transition: color 0.2s ease;
}

.nav-link:hover {
  background-color: rgb(37 99 235 / 6%);
  color: var(--primary-color, #2563eb);
}

.nav-link:hover i {
  color: var(--primary-color, #2563eb);
}

.nav-link.active {
  background-color: rgb(37 99 235 / 8%);
  color: var(--primary-color, #2563eb);
  font-weight: 600;
  border-right: 4px solid var(--primary-color, #2563eb);
  border-radius: 4px 8px 8px 4px;
}

.nav-link.active i {
  color: var(--primary-color, #2563eb);
}

/* =========================================================
   HEADER - TABLET
========================================================= */

@media (width >= 640px) {
  .header-container {
    padding-inline: 1.25rem;
  }

  .nav-link {
    font-size: 0.92rem;
  }
}

/* =========================================================
   HEADER - DESKTOP
========================================================= */

@media (width >= 993px) {
  .header-container {
    min-height: 56px;
    padding: 0.35rem 0.65rem;
  }

  .logo-container img {
    height: 36px;
  }

  .menu-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    width: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    background: transparent;
    border: none;
    box-shadow: none;
    max-height: none;
    overflow: visible;
  }

  .nav-list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.05rem;
  }

  .nav-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 40px;
    padding: 0.35rem 0.45rem;
    border-radius: 5px;
    font-size: 0.82rem;
    white-space: nowrap;
    border-right: none;
  }

  .nav-link i {
    width: auto;
    font-size: 0.9rem;
  }

  .nav-link.active {
    background-color: rgb(37 99 235 / 8%);
    color: var(--primary-color, #2563eb);
    border-right: none;
    border-bottom: 2px solid var(--primary-color, #2563eb);
    border-radius: 5px 5px 0 0;
  }
}

/* =========================================================
   ORDER PAGE
========================================================= */

.order-section {
  width: min(900px, calc(100% - 24px));
  margin: 30px auto 0;
}

.order-card {
  padding: 22px;
  border: 1px solid #dbe5ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 35px rgb(15 23 42 / 7%);
}

/* =========================================================
   GUIDE
========================================================= */

.interactive-guide-box {
  position: relative;
  margin-bottom: 18px;
  padding: 17px 18px;
  border: 1px solid #fbbf24;
  border-radius: 14px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  box-shadow: 0 5px 18px rgb(245 158 11 / 10%);
}

.guide-box-content {
  padding-left: 100px;
}

.guide-icon-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  color: #92400e;
  font-weight: 900;
}

.guide-icon-title i {
  color: #d97706;
}

.interactive-guide-box p {
  margin: 0;
  color: #713f12;
  font-size: 0.88rem;
  line-height: 1.9;
  text-align: justify;
}

.guide-close-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  min-height: 38px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #f59e0b;
  border-radius: 9px;
  background: #fff;
  color: #92400e;
  font-size: 0.78rem;
}

/* =========================================================
   IMAGE GUIDE
========================================================= */

.ps-guide-container {
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid #dbe5ee;
  border-radius: 14px;
  background: #f8fafc;
}

.ps-guide-header {
  min-height: 52px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #eff6ff;
  border-bottom: 1px solid #dbeafe;
}

.ps-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1e40af;
  font-weight: 800;
  font-size: 0.88rem;
}

.ps-toggle-btn {
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #fff;
  color: #1d4ed8;
  font-size: 0.75rem;
}

.ps-guide-body {
  padding: 10px;
}

.ps-guide-img-wrapper {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #e2e8f0;
  cursor: zoom-in;
}

.ps-guide-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 650px;
  object-fit: contain;
}

.zoom-overlay-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  background: rgb(15 23 42 / 78%);
  color: #fff;
  font-size: 0.72rem;
}

/* =========================================================
   LIGHTBOX
========================================================= */

.ps-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  background: rgb(2 6 23 / 94%);
}

.ps-lightbox-modal.active,
.ps-lightbox-modal.visible {
  display: block;
}

.lightbox-close-btn {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 3010;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 95%);
  color: #0f172a;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 65px 15px;
}

.lightbox-image-stage {
  display: inline-block;
  transform-origin: center center;
  touch-action: none;
}

.lightbox-image-stage img {
  display: block;
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  user-select: none;
  touch-action: none;
}

.lightbox-caption {
  position: fixed;
  left: 50%;
  bottom: 15px;
  width: max-content;
  max-width: calc(100% - 30px);
  padding: 7px 12px;
  transform: translateX(-50%);
  border-radius: 8px;
  background: rgb(15 23 42 / 80%);
  color: #fff;
  font-size: 0.72rem;
  text-align: center;
}

/* =========================================================
   UPLOAD HERO
========================================================= */

.upload-hero {
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid #dbe7f3;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbff, #eef7ff);
}

.upload-hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.upload-hero-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #e0f2fe;
  color: #0284c7;
  font-size: 21px;
}

.upload-hero h1 {
  margin: 0 0 3px;
  color: #17324d;
  font-size: 1rem;
  text-align: center;
}

.upload-hero p {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
  text-align: center;
}

.upload-hero p strong {
  color: #f59e0b;
}

.quick-steps {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.quick-step {
  min-height: 62px;
  padding: 9px 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-radius: 9px;
  background: #fff;
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.7;
}

.quick-step i {
  margin-top: 3px;
  color: #0284c7;
}

/* =========================================================
   ORDER TITLE
========================================================= */

.order-title {
  margin: 20px 0 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1e3a8a;
  font-size: 1rem;
}

/* =========================================================
   FORM
========================================================= */

.form-group {
  margin-bottom: 18px;
}

.form-label {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #334155;
  font-weight: 700;
  font-size: 0.9rem;
}

.form-label i {
  color: #0284c7;
}

.form-label small {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  min-height: 45px;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  outline: none;
  background: #fff;
  color: #242424;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

textarea.form-control {
  min-height: 80px;
  resize: vertical;
}

.form-control:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgb(14 165 233 / 12%);
}

/* =========================================================
   HIGHLIGHT - ITEM COUNT
========================================================= */

.highlight-box-item-count {
  padding: 16px;
  border: 2px solid #f59e0b;
  border-radius: 12px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  box-shadow: 0 4px 12px rgb(245 158 11 / 12%);
}

.highlight-box-item-count .form-label {
  color: #92400e;
}

.highlight-box-item-count .form-label i {
  color: #d97706;
}

.highlight-box-item-count .form-control {
  border: 2px solid #cbd5e1;
  color: #1e3a8a;
  font-weight: 800;
}

/* =========================================================
   HIGHLIGHT - PHONE
========================================================= */

.highlight-box-phone {
  padding: 16px;
  border: 2px solid #22c55e;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  box-shadow: 0 4px 12px rgb(34 197 94 / 12%);
}

.highlight-box-phone .form-label {
  color: #166534;
}

.highlight-box-phone .form-label i {
  color: #16a34a;
}

.highlight-box-phone .form-control {
  border: 2px solid #86efac;
  color: #14532d;
  font-weight: 800;
  text-align: center;
  font-size: 1.05rem;
}

.field-help {
  margin-top: 6px;
  color: #64748b;
  font-size: 0.72rem;
  text-align: center;
}

/* =========================================================
   ORDER ITEM
========================================================= */

.order-item-box {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #dbe5ee;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 18px rgb(15 23 42 / 5%);
}

.order-item-header {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.order-item-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-item-number {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 900;
}

.order-item-title-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.order-item-title-text strong {
  color: #1e293b;
  font-size: 0.9rem;
}

.order-file-name {
  overflow: hidden;
  color: #64748b;
  font-size: 0.73rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================
   FILE UPLOAD
========================================================= */

.file-upload-area {
  position: relative;
  margin-bottom: 12px;
}

.file-upload-label {
  min-height: 82px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px dashed #93c5fd;
  border-radius: 12px;
  background: #f8fbff;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.file-upload-label:hover {
  border-color: #0284c7;
  background: #eff6ff;
}

.file-upload-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #e0f2fe;
  color: #0284c7;
  font-size: 1.1rem;
}

.file-upload-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.file-upload-text strong {
  color: #1e3a8a;
  font-size: 0.86rem;
}

.file-upload-text span {
  color: #64748b;
  font-size: 0.7rem;
}

.item-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-upload-area.has-file .file-upload-label {
  border-color: #22c55e;
  background: #f0fdf4;
}

/* =========================================================
   UPLOAD STATUS
========================================================= */

.upload-status {
  display: none;
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #f8fafc;
}

.upload-status.visible {
  display: block;
}

.upload-status-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #475569;
  font-size: 0.75rem;
}

.progress-percent-text {
  direction: ltr;
  color: #0284c7;
  font-weight: 900;
}

.progress-track {
  height: 8px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.progress-bar-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #22c55e;
  transition: width 0.2s ease;
}

.upload-progress-detail {
  margin-top: 5px;
  color: #64748b;
  font-size: 0.68rem;
  direction: rtl;
  text-align: center;
}

.cancel-upload-btn {
  display: none;
  margin: 8px auto 0;
  padding: 5px 9px;
  border: 1px solid #fecaca;
  border-radius: 7px;
  background: #fff;
  color: #b91c1c;
  font-size: 0.7rem;
}

.cancel-upload-btn.visible {
  display: block;
}

.upload-success {
  display: none;
  margin-top: 7px;
  color: #15803d;
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}

.upload-success.visible {
  display: block;
}

.order-item-box.upload-completed {
  border-color: #86efac;
}

/* =========================================================
   SMART MESSAGE
========================================================= */

.smart-message {
  display: none;
  margin: 10px 0;
  padding: 8px 10px;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: #f0f9ff;
  color: #0369a1;
  font-size: 0.75rem;
  line-height: 1.8;
}

.smart-message.visible {
  display: block;
}

.smart-message i {
  margin-left: 4px;
}

/* =========================================================
   SETTINGS
========================================================= */

.item-settings {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.field {
  min-width: 0;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 5px;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
}

.field select,
.field input {
  width: 100%;
  min-height: 40px;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: #1e293b;
}

.field select:focus,
.field input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgb(14 165 233 / 10%);
}

.item-custom-box {
  grid-column: 1 / -1;
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px dashed #93c5fd;
  border-radius: 10px;
  background: #f8fbff;
}

.item-custom-box.visible {
  display: grid;
}

/* =========================================================
   PRICE
========================================================= */

.item-total-row {
  margin-top: 14px;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #e2e8f0;
}

.item-total-label {
  color: #64748b;
  font-size: 0.8rem;
}

.item-total-price {
  color: #166534;
  font-size: 0.95rem;
}

/* =========================================================
   SUMMARY
========================================================= */

.price-summary-box {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff, #f8fbff);
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.total-row {
  color: #17324d;
  font-size: 1.05rem;
  font-weight: 800;
}

.total-row strong {
  color: #166534;
  white-space: nowrap;
}

/* =========================================================
   ORDER STATUS
========================================================= */

#order-status-message {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 0.8rem;
}

#order-status-message:not(:empty) {
  display: block;
}

/* =========================================================
   PAYMENT BUTTONS
========================================================= */

.submit-section {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.btn-payment {
  min-height: 65px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.btn-payment:hover:not(:disabled) {
  transform: translateY(-2px);
}

.btn-payment:disabled {
  cursor: wait;
  opacity: 0.65;
}

.btn-payment > i {
  font-size: 1.25rem;
}

.btn-payment-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
}

.btn-payment-text strong {
  font-size: 0.9rem;
}

.btn-payment-text span {
  margin-top: 1px;
  font-size: 0.67rem;
  opacity: 0.88;
}

.btn-payment-in-person {
  background: #15803d;
}

.btn-payment-online {
  background: #2563eb;
}

/* =========================================================
   SOCIAL ORDER BUTTONS
========================================================= */

.social-order-section {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.social-order-btn {
  min-height: 42px;
  padding: 7px 9px;
  border: 1px solid #dbe5ee;
  border-radius: 9px;
  background: #fff;
  color: #475569;
  font-size: 0.72rem;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.social-order-btn:hover {
  transform: translateY(-1px);
  background: #f8fafc;
}

.telegram-btn {
  color: #0284c7;
}

.whatsapp-btn {
  color: #15803d;
}

.bale-btn {
  color: #2563eb;
}

/* =========================================================
   INTERNAL LINKS
========================================================= */

.internal-links-section {
  width: min(900px, calc(100% - 24px));
  margin: 22px auto 30px;
}

.internal-links-wrapper {
  padding: 20px;
  border: 1px solid #dbe5ee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 25px rgb(15 23 42 / 5%);
}

.internal-links-header {
  margin-bottom: 14px;
  text-align: center;
}

.internal-links-header h3 {
  margin: 0;
  color: #1e3a8a;
  font-size: 1rem;
}

.internal-links-header p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.75rem;
}

.internal-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.internal-link-card {
  min-height: 100px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #f8fafc;
  text-align: center;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.internal-link-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  background: #eff6ff;
}

.internal-link-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #dbeafe;
  color: #1d4ed8;
}

.internal-link-title {
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
}

/* =========================================================
   SHARED FOOTER
========================================================= */

.site-footer {
  position: relative;
  margin-top: auto;
  padding: 3rem 1rem 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 8%);
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  color: #f8fafc;
}

.footer-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* =========================================================
   FOOTER - BRAND
========================================================= */

.footer-brand {
  text-align: center;
}

.footer-brand h3 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-brand p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.88rem;
}

/* =========================================================
   FOOTER - PHONES
========================================================= */

.footer-phones {
  width: 100%;
  max-width: 480px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.phone-card {
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 12px;
  background: rgb(255 255 255 / 3%);
  color: #f1f5f9;
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.phone-card:hover {
  background: rgb(37 99 235 / 15%);
  border-color: var(--primary-color, #2563eb);
  transform: translateY(-2px);
}

.phone-card-full {
  grid-column: auto;
}

.phone-info {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.phone-icon-box {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgb(37 99 235 / 20%);
  color: #60a5fa;
  font-size: 1rem;
}

.phone-label {
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-align: right;
}

.phone-label span {
  color: #94a3b8;
  font-size: 0.75rem;
}

.phone-label small {
  color: #94a3b8;
  font-size: 0.65rem;
}

.phone-number {
  direction: ltr;
  color: #fff;
  font-family: monospace, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* =========================================================
   FOOTER - SOCIAL
========================================================= */

.social-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.social-title {
  color: #94a3b8;
  font-size: 0.85rem;
  text-align: center;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-icon-btn {
  width: 44px;
  height: 44px;
  padding: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 12px;
  background: rgb(255 255 255 / 5%);
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.social-icon-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.social-icon-btn:hover {
  transform: translateY(-4px) scale(1.05);
  background: rgb(255 255 255 / 12%);
  box-shadow: 0 8px 20px rgb(0 0 0 / 30%);
}

.social-icon-btn:hover img {
  transform: scale(1.1);
}

/* =========================================================
   FOOTER - DIVIDER
========================================================= */

.footer-divider {
  width: 100%;
  height: 1px;
  margin: 0.5rem 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(255 255 255 / 10%),
    transparent
  );
}

/* =========================================================
   FOOTER - COPYRIGHT
========================================================= */

.copyright {
  margin: 0;
  color: #64748b;
  font-size: 0.8rem;
  text-align: center;
}

.smart-preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgb(0 0 0 / 5%);
  color: inherit;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  margin-right: 10px;
  transition: all 0.2s ease;
  border: 1px solid rgb(0 0 0 / 8%);
}

.smart-preview-btn:hover {
  background-color: rgb(0 0 0 / 10%);
  transform: translateY(-1px);
}

/* =========================================================
   FOOTER - TABLET
========================================================= */

@media (width >= 640px) {
  .site-footer {
    padding-inline: 1.25rem;
  }

  .footer-phones {
    grid-template-columns: repeat(2, 1fr);
  }

  .phone-card-full {
    grid-column: 1 / -1;
  }
}

/* =========================================================
   PAGE TABLET
========================================================= */

@media (width <= 850px) {
  .item-settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   PAGE MOBILE
========================================================= */

@media (width <= 600px) {
  .header-container {
    width: calc(100% - 18px);
  }

  .logo-container img {
    height: 39px;
  }

  .order-section,
  .internal-links-section {
    width: calc(100% - 14px);
  }

  .order-card {
    padding: 12px;
    border-radius: 13px;
  }

  .interactive-guide-box {
    padding: 14px;
  }

  .guide-box-content {
    padding-left: 0;
  }

  .guide-close-btn {
    position: static;
    margin-top: 10px;
  }

  .ps-guide-header {
    align-items: flex-start;
  }

  .ps-header-title {
    font-size: 0.78rem;
  }

  .ps-toggle-btn span {
    display: none;
  }

  .upload-hero {
    padding: 13px;
  }

  .upload-hero-top {
    gap: 9px;
  }

  .upload-hero-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .quick-steps {
    grid-template-columns: 1fr;
  }

  .quick-step {
    min-height: auto;
  }

  .item-settings {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .item-custom-box {
    grid-template-columns: 1fr;
  }

  .submit-section {
    grid-template-columns: 1fr;
  }

  .social-order-section {
    grid-template-columns: 1fr;
  }

  .internal-links-grid {
    grid-template-columns: 1fr;
  }

  .footer-phones {
    grid-template-columns: 1fr;
  }

  .phone-card-full {
    grid-column: auto;
  }

  .footer-container {
    width: calc(100% - 18px);
  }
}

/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (width <= 380px) {
  .order-card {
    padding: 9px;
  }

  .item-settings {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .order-item-box {
    padding: 11px;
  }

  .order-item-title-text strong {
    font-size: 0.8rem;
  }

  .btn-payment {
    min-height: 60px;
  }
}

/* =========================================================
   IMAGE GUIDE - MINIMIZE
========================================================= */

.ps-guide-container.minimized .ps-guide-body {
  display: none;
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

:focus-visible {
  outline: 3px solid rgb(14 165 233 / 35%);
  outline-offset: 2px;
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
