/* =========================
   SHIPPABLES TAB
========================= */

.ship-row-urgent{
  background:#fff5f5;
  box-shadow:inset 4px 0 #ef4444;
}

.ship-fan-cell{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.ship-fan-name-row{
  font-weight:600;
  color:#111827;
}

.ship-profile-row{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.ship-profile-row .of-profile-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
}

.ship-profile-row .account-badge{
  white-space:nowrap;
}

#shippablesMobileList{
  display:none;
}

/* =========================
   FORM MODAL
========================= */

.ship-form-modal{
  width:540px;
  max-width:95%;
}

.ship-form-modal .custom-textarea{
  min-height:90px;
  resize:vertical;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid #e5e7eb;
  font-size:14px;
  font-family:inherit;
}

.ship-form-modal .custom-textarea:focus{
  outline:none;
  border-color:#2563eb;
  box-shadow:0 0 0 2px rgba(37,99,235,.15);
}

/* =========================
   VIEW MODAL OVERLAY
========================= */

.ship-modal-overlay{
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.18), transparent 28%),
    radial-gradient(circle at top left, rgba(16,185,129,.10), transparent 24%),
    rgba(15,23,42,.58);
  backdrop-filter:blur(8px);
  opacity:0;
  transition:opacity .22s ease;
}

.ship-modal-overlay.show{
  opacity:1;
}

.ship-modal-overlay.hide{
  opacity:0;
}

.ship-view-modal.ship-view-shell{
  width:min(1120px,94vw);
  max-width:1120px;
  max-height:92vh;
  padding:0;
  overflow-y:auto;
  overflow-x:hidden;
  border-radius:28px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  border:1px solid rgba(255,255,255,.7);
  box-shadow:
    0 30px 90px rgba(15,23,42,.24),
    0 8px 24px rgba(15,23,42,.12);
  transform:translateY(30px) scale(.96);
  opacity:0;
  animation:shipModalIn .28s cubic-bezier(.2,.8,.2,1) forwards;
}

.ship-view-modal.ship-view-shell::-webkit-scrollbar{
  width:8px;
}

.ship-view-modal.ship-view-shell::-webkit-scrollbar-thumb{
  background:#cbd5e1;
  border-radius:999px;
}

.ship-modal-overlay.hide .ship-view-modal.ship-view-shell{
  animation:shipModalOut .2s ease forwards;
}

@keyframes shipModalIn{
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

@keyframes shipModalOut{
  to{
    opacity:0;
    transform:translateY(20px) scale(.97);
  }
}

/* =========================
   HERO
========================= */

.ship-badge{
  padding:8px 14px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  white-space:nowrap;
}

.ship-badge.pending{
  background:#f1f5f9;
  color:#64748b;
}

.ship-badge.urgent{
  background:#fee2e2;
  color:#dc2626;
}

.ship-badge.replaced{
  background:#dbeafe;
  color:#2563eb;
}

.ship-badge.completed{
  background:#dcfce7;
  color:#16a34a;
}

.ship-view-hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding:28px 30px 22px;
  background:linear-gradient(135deg,#eff6ff 0%,#ffffff 45%,#f8fafc 100%);
  border-bottom:1px solid #e5e7eb;
}

.ship-hero-kicker{
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#64748b;
  margin-bottom:8px;
}

.ship-view-hero h2{
  margin:0;
  font-size:34px;
  line-height:1;
  color:#0f172a;
}

.ship-hero-meta{
  margin-top:12px;
}

.ship-hero-fan{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.ship-hero-name{
  font-size:18px;
  font-weight:700;
  color:#111827;
}

.ship-hero-subline{
  margin-top:8px;
  font-size:13px;
  color:#64748b;
}

.ship-hero-right{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:12px;
}

.ship-profile-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:12px;
  background:linear-gradient(135deg,#2563eb,#1d4ed8);
  color:#fff;
  text-decoration:none;
  font-size:13px;
  font-weight:600;
}

.ship-profile-btn.hero{
  padding:10px 16px;
  border-radius:14px;
  box-shadow:0 12px 24px rgba(37,99,235,.18);
}

/* =========================
   SUMMARY BAR
========================= */

.ship-summary-bar{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  padding:20px 30px 8px;
}

.ship-summary-pill{
  background:linear-gradient(180deg,#ffffff,#f8fafc);
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:16px 18px;
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}

.ship-summary-label{
  display:block;
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#64748b;
  margin-bottom:6px;
}

.ship-summary-pill strong{
  font-size:20px;
  color:#111827;
}

/* =========================
   DESKTOP TIMELINE
========================= */

.ship-route-card.premium.ship-route-modern{
  position:relative;
  display:block;
  margin:16px 30px 0;
  padding:26px 34px 22px;
  border-radius:22px;
  background:linear-gradient(180deg,#ffffff,#f8fbff);
  border:1px solid #e5e7eb;
  box-shadow:0 14px 30px rgba(15,23,42,.07);
  overflow:hidden;
}

.ship-route-modern .ship-route-track{
  position:absolute;
  left:78px;
  right:78px;
  top:72px;
  height:8px;
  background:linear-gradient(90deg,#dbeafe,#e5e7eb);
  border-radius:999px;
  z-index:0;
}

.ship-route-modern .ship-route-progress{
  width:50%;
  height:100%;
  background:linear-gradient(90deg,#3b82f6,#60a5fa);
  border-radius:999px;
  box-shadow:0 0 18px rgba(59,130,246,.18);
}

.ship-route-modern .ship-route-progress.completed{
  width:100%;
  background:linear-gradient(90deg,#22c55e,#16a34a);
  box-shadow:0 0 18px rgba(34,197,94,.18);
}

.ship-route-modern .ship-route-points{
  position:relative;
  z-index:2;
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
}

.ship-route-modern .ship-route-node{
  display:flex;
  align-items:center;
  gap:14px;
  max-width:260px;
}

.ship-route-modern .ship-route-node-start{
  justify-content:flex-start;
  text-align:left;
}

.ship-route-modern .ship-route-node-end{
  justify-content:flex-end;
  text-align:right;
  flex-direction:row-reverse;
}

.ship-route-modern .ship-route-node-end .ship-node-content{
  text-align:right;
}

.ship-route-modern .ship-node-dot{
  width:22px;
  height:22px;
  border-radius:50%;
  background:#cbd5e1;
  border:5px solid #ffffff;
  box-shadow:0 0 0 7px rgba(203,213,225,.35);
  flex-shrink:0;
}

.ship-route-modern .ship-route-node.done .ship-node-dot{
  background:#2563eb;
  box-shadow:0 0 0 8px rgba(37,99,235,.14);
}

.ship-route-modern .ship-route-node-end.done .ship-node-dot{
  background:#16a34a;
  box-shadow:0 0 0 8px rgba(22,163,74,.14);
}

.ship-route-modern .ship-node-content{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.ship-route-modern .ship-node-title{
  font-size:15px;
  font-weight:800;
  color:#0f172a;
  line-height:1.1;
}

.ship-route-modern .ship-node-date{
  font-size:13px;
  color:#64748b;
  line-height:1.2;
}

/* =========================
   DESKTOP LAYOUT
========================= */

.ship-desktop-layout{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);
  gap:18px;
  padding:20px 30px 26px;
}

.ship-main-column,
.ship-side-column{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.ship-panel,
.ship-side-panel{
  background:linear-gradient(180deg,#ffffff,#fbfdff);
  border:1px solid #e5e7eb;
  border-radius:22px;
  box-shadow:0 14px 30px rgba(15,23,42,.06);
}

.ship-panel{
  padding:18px;
}

.ship-side-panel{
  padding:18px 18px 16px;
}

.ship-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:14px;
  font-size:13px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#64748b;
}

.ship-panel-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.ship-info-box{
  background:#f8fafc;
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:16px;
}

.ship-info-box.full{
  grid-column:1 / -1;
}

.ship-view-label{
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#64748b;
  margin-bottom:8px;
}

.ship-view-value{
  font-size:15px;
  color:#111827;
  line-height:1.6;
  word-break:break-word;
}

/* =========================
   ADDRESS CARD
========================= */

.ship-address-card.modern{
  background:linear-gradient(180deg,#ffffff,#f8fbff);
  color:#0f172a;
  border:1px solid #e5e7eb;
  border-radius:20px;
  padding:18px;
  box-shadow:0 14px 28px rgba(15,23,42,.06);
}

.ship-address-block{
  background:#f8fafc;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:16px;
  margin-bottom:14px;
}

.ship-address-label{
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#64748b;
  margin-bottom:8px;
  margin-top: 14px;
}

.ship-name-label{
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#64748b;
  margin-bottom:8px;

}


.ship-address-main{
  font-size:16px;
  font-weight:700;
  color:#0f172a;
  line-height:1.5;
}

.ship-address-detail-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.ship-address-detail{
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:14px 16px;
}

.ship-address-detail span{
  display:block;
  font-size:12px;
  font-weight:600;
  color:#64748b;
  margin-bottom:6px;
}

.ship-address-detail strong{
  display:block;
  font-size:15px;
  color:#111827;
  line-height:1.4;
}

/* =========================
   PAYMENT PANEL
========================= */

.payment-panel-premium{
  background:linear-gradient(180deg,#ffffff,#f9fbff);
}

.ship-side-title{
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#64748b;
  margin-bottom:14px;
}

.ship-payment-total{
  background:linear-gradient(135deg,#0f172a,#1e3a8a);
  color:#fff;
  border-radius:18px;
  padding:18px 18px 16px;
  margin-bottom:14px;
  box-shadow:0 16px 30px rgba(15,23,42,.18);
}

.ship-payment-total span{
  display:block;
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(255,255,255,.7);
  margin-bottom:8px;
}

.ship-payment-total strong{
  font-size:28px;
  line-height:1;
  color:#fff;
}

.ship-payment-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.ship-payment-card{
  background:#f8fafc;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:14px 14px 13px;
}

.ship-payment-card label{
  display:block;
  font-size:11px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#64748b;
  margin-bottom:8px;
}

.ship-payment-card strong{
  display:block;
  font-size:16px;
  color:#0f172a;
  line-height:1.3;
}



.ship-side-link{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:#1d4ed8;
  background:#eff6ff;
  border:1px solid #dbeafe;
  border-radius:14px;
  padding:12px 14px;
  font-size:14px;
  font-weight:600;
  margin-bottom:10px;
}

.ship-side-link.muted{
  color:#475569;
  background:#f8fafc;
  border-color:#e5e7eb;
}

.ship-side-empty{
  background:#f8fafc;
  border:1px dashed #cbd5e1;
  border-radius:14px;
  padding:12px 14px;
  color:#64748b;
  font-size:14px;
}

/* =========================
   ACTIONS
========================= */

.ship-view-actions{
  padding:0;
  margin:0;
  background:none;
  position:static;
}

.ship-complete-premium-btn{
  min-width:180px;
  border:none;
  border-radius:14px;
  background:linear-gradient(135deg,#16a34a,#15803d);
  color:#fff;
  padding:12px 18px;
  font-size:14px;
  font-weight:700;
  box-shadow:0 12px 24px rgba(22,163,74,.22);
  cursor:pointer;
}

.ship-complete-premium-btn:hover{
  transform:translateY(-1px);
}

.ship-close-premium-btn{
  min-width:140px;
  border:none;
  border-radius:14px;
  background:linear-gradient(135deg,#2563eb,#1d4ed8);
  color:#fff;
  padding:12px 18px;
  font-size:14px;
  font-weight:700;
  box-shadow:0 12px 24px rgba(37,99,235,.22);
  cursor:pointer;
}

.ship-close-premium-btn:hover{
  transform:translateY(-1px);
}

/* =========================
   MOBILE
========================= */

.ship-mobile-layout{
  display:none;
}

.ship-mobile-address-box{
  background:#f8fafc;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:14px;
  margin-bottom:12px;
}

.ship-mobile-address-box span{
  display:block;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#64748b;
  margin-bottom:8px;
}

.ship-mobile-address-box strong{
  display:block;
  font-size:15px;
  color:#111827;
  line-height:1.5;
}

.ship-mobile-address-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.ship-mobile-address-detail{
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:12px;
}

.ship-mobile-address-detail span{
  display:block;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  color:#64748b;
  margin-bottom:6px;
}

.ship-mobile-address-detail strong{
  display:block;
  font-size:14px;
  color:#111827;
}

@media (max-width:768px){
  .table-wrapper{
    display:none;
  }

  #shippablesMobileList{
    display:block;
  }

  .ship-view-modal.ship-view-shell{
    width:100%;
    max-width:100%;
    height:100%;
    max-height:100%;
    border-radius:0;
    display:flex;
    flex-direction:column;
    padding:0;
    overflow-y:auto;
    overflow-x:hidden;
  }

  .ship-view-hero{
    padding:22px 18px 18px;
    border-bottom:none;
  }

  .ship-view-hero h2{
    font-size:28px;
  }

  .ship-hero-right{
    align-items:flex-start;
  }

  .ship-summary-bar,
  .ship-desktop-layout,
  .ship-route-card.premium{
    display:none;
  }

  .ship-mobile-layout{
    display:flex;
    flex-direction:column;
    gap:14px;
    padding:0 16px 16px;
    overflow-y:auto;
  }

  .ship-mobile-card{
    background:linear-gradient(180deg,#ffffff,#f8fbff);
    border:1px solid #e5e7eb;
    border-radius:22px;
    padding:16px;
    box-shadow:0 10px 24px rgba(15,23,42,.07);
  }

  .ship-mobile-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
  }

  .ship-mobile-order{
    font-size:12px;
    font-weight:700;
    color:#64748b;
    letter-spacing:.06em;
  }

  .ship-mobile-name{
    margin-top:4px;
    font-size:22px;
    font-weight:800;
    color:#0f172a;
    line-height:1.1;
  }

  .ship-mobile-account{
    margin-top:12px;
  }

  .ship-profile-btn.mobile{
    width:100%;
    justify-content:center;
    margin-top:14px;
    padding:12px 14px;
    border-radius:14px;
  }

  .ship-mobile-section-title{
    font-size:12px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:#64748b;
    margin-bottom:12px;
  }

  .ship-mobile-timeline{
    display:flex;
    flex-direction:column;
    gap:16px;
  }

  .ship-mobile-timeline-item{
    display:flex;
    align-items:flex-start;
    gap:12px;
  }

  .ship-mobile-timeline-item .dot{
    width:14px;
    height:14px;
    border-radius:50%;
    background:#cbd5e1;
    margin-top:3px;
    flex-shrink:0;
  }

  .ship-mobile-timeline-item.done .dot{
    background:#2563eb;
    box-shadow:0 0 0 6px rgba(37,99,235,.12);
  }

  .ship-mobile-timeline-item strong{
    display:block;
    font-size:14px;
    color:#111827;
  }

  .ship-mobile-timeline-item span{
    display:block;
    margin-top:4px;
    font-size:12px;
    color:#64748b;
  }

  .ship-mobile-stat-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
  }

  .ship-mobile-stat{
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:16px;
    padding:14px;
  }

  .ship-mobile-stat span{
    display:block;
    font-size:11px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.06em;
    color:#64748b;
    margin-bottom:6px;
  }

  .ship-mobile-stat strong{
    font-size:16px;
    color:#111827;
  }

  .ship-mobile-line{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:12px;
    font-size:14px;
    color:#475569;
  }

  .ship-mobile-line strong{
    color:#0f172a;
  }

  .ship-mobile-block,
  .ship-mobile-extra{
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:16px;
    padding:14px;
    font-size:14px;
    line-height:1.6;
    color:#111827;
  }

  .ship-mobile-extra{
    margin-top:10px;
  }

  .ship-mobile-address-name{
    font-size:16px;
    font-weight:700;
    color:#111827;
    margin-bottom:10px;
  }

  .ship-mobile-address-lines{
    line-height:1.7;
    color:#475569;
    font-size:14px;
  }

  .ship-view-actions{
    display:flex;
    flex-direction:column;
    gap:10px;
    padding:0 16px 18px;
  }

  .ship-complete-premium-btn,
  .ship-close-premium-btn{
    width:100%;
  }

  .ship-close-premium-btn{
    padding:14px 18px;
    border-radius:16px;
  }
}

/* DESKTOP: actions inside Quick Access */
.ship-side-actions-desktop{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:14px;
}

.ship-side-actions-desktop .ship-complete-premium-btn,
.ship-side-actions-desktop .ship-close-premium-btn{
  width:100%;
}

/* hide bottom action bar on desktop */
.ship-view-actions-mobile{
  display:none;
}

/* keep mobile as is */
@media (max-width:768px){
  .ship-side-actions-desktop{
    display:none;
  }

  .ship-view-actions-mobile{
    display:flex;
    flex-direction:column;
    gap:10px;
    padding:0 16px 18px;
  }

  .ship-view-actions-mobile .ship-complete-premium-btn,
  .ship-view-actions-mobile .ship-close-premium-btn{
    width:100%;
  }
}

@media (max-width:768px){
  .ship-route-card.premium.ship-route-modern{
    display:none !important;
  }

  .ship-summary-bar{
    display:none !important;
  }

  .ship-desktop-layout{
    display:none !important;
  }

  .ship-mobile-layout{
    display:flex !important;
    flex-direction:column;
    gap:14px;
    padding:0 16px 16px;
    overflow-y:auto;
  }
}

