/** Shopify CDN: Minification failed

Line 7:0 Unexpected "<"
Line 1245:0 Unexpected "<"

**/
<style>
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --v-bg: #0a0a0c;
  --v-card: #131316;
  --v-purple: #5c0e9c;
  --v-purple-l: #7c3aed;
  --v-accent: #d2a8ff;
  --v-border: rgba(210, 168, 255, 0.12);
  --v-text-main: #e2d8ff;
  --v-text-muted: #a19bb1;
}

body { background: var(--v-bg); font-family: 'Plus Jakarta Sans', sans-serif; color: var(--v-text-main); margin: 0; -webkit-font-smoothing: antialiased; }

/* Intro */

.header-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 2rem; margin-bottom: 2rem; }
.header-row h2 { margin: 0; font-size: 1.8rem; font-weight: 800; }
.header-row svg { width: 34px; height: 34px; fill: var(--v-accent); }

.seller-notice {
  grid-column: 1 / -1 !important;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem;
  border-radius: 28px;
  background: linear-gradient(165deg, #16161a 0%, #0c0c0f 100%);
  border: 0px solid rgba(210, 168, 255, 0.16);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
  text-align: center;
  box-sizing: border-box;
  animation: slideUp 0.6s ease-out forwards;
}

.seller-notice-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.4rem auto;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--v-purple-l), var(--v-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(92, 14, 156, 0.35);
}

.seller-notice h3 {
  margin: 0 0 1rem 0;
  font-size: 1.8rem;
  line-height: 1.25;
  font-weight: 800;
  color: #fff;
}

.seller-notice p {
  margin: 0 auto;
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--v-text-muted);
}

.seller-notice-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.description-scroll p {
  overflow-wrap: anywhere;
  word-break: break-word;
}



.seller-notice-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--v-purple-l), var(--v-purple));
  color: #fff !important;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none !important;
  transition: 0.3s;
  box-shadow: 0 10px 25px rgba(92, 14, 156, 0.28);
}

.seller-notice-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
  box-shadow: 0 10px 25px rgba(92, 14, 156, 0.4);
}

.seller-notice-btn.secondary {
  background: #1f1f23;
  border: 0px solid var(--v-border);
  color: var(--v-accent) !important;
  box-shadow: none;
}

.seller-notice-btn.secondary:hover {
  background: rgba(124, 58, 237, 0.16);
  border-color: rgba(210, 168, 255, 0.25);
}

/* Spinner i tekst ładowania rozciągnięte na całą szerokość siatki */
.loading-spinner, 
#loading-text, 
.empty-state, 
.error-text {
  grid-column: 1 / -1 !important;
  justify-self: center !important;
  text-align: center !important;
  width: 100% !important;
  display: block !important; /* Gwarantuje, że text-align zadziała */
  margin: 0 auto !important;
}

/* 1. Powiększenie samego okna popupu */
.custom-popup-content {
  max-width: 900px !important; /* Znacznie szerszy */
  padding: 5rem !important;    /* Więcej oddechu wewnątrz */
  border-radius: 40px !important;
}

/* 2. Powiększenie kart instrukcji */
.instruction-card {
  gap: 3rem !important;
  padding: 3.5rem !important;
  border-radius: 28px !important;
  margin-bottom: 2.5rem !important;
}

/* 3. Powiększenie numerów kroków (01, 02) */
.step-num {
  font-size: 4.5rem !important; /* Bardzo wyraźne */
  opacity: 0.4 !important;
  min-width: 80px !important;  /* Żeby numer miał swoje stałe miejsce */
}

/* 4. Powiększenie głównego tekstu w kroku */
.step-content p {
  font-size: 1.6rem !important; 
  line-height: 1.4 !important;
  margin-bottom: 1.5rem !important;
}

/* 5. Powiększenie tekstu instrukcji i linków */
.step-action {
  font-size: 1.25rem !important;
  line-height: 1.8 !important;
}

.step-link {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
}

/* 6. Powiększenie wyróżnień (highlight) */
.highlight, .highlight-alt {
  font-size: 1.25rem !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
}

/* 7. Powiększenie przycisku zamknięcia (X) */
.custom-popup-close {
  font-size: 4rem !important;
  top: 1.5rem !important;
  right: 2rem !important;
}

.header-filter select { background: #1f1f23; border: 1px solid var(--v-border); color: #fff; padding: 0.7rem 1.2rem; border-radius: 10px; font-weight: 600; cursor: pointer; }

.intro-text { font-size: 1.1rem; line-height: 1.7; color: var(--v-text-muted); margin-bottom: 2rem; }
.v-link { color: var(--v-purple-l); text-decoration: none; font-weight: 700; border-bottom: 1px solid transparent; transition: 0.3s; }
.v-link:hover { border-bottom-color: var(--v-accent); }

.main-actions { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.seller-portal-link { 
  background: linear-gradient(135deg, var(--v-purple-l), var(--v-purple));
  color: #fff !important; padding: 1rem 2.5rem; border-radius: 12px; font-weight: 700; text-decoration: none; transition: 0.3s;
}
.seller-portal-link:hover { transform: translateY(-3px); filter: brightness(1.1); box-shadow: 0 10px 25px rgba(92, 14, 156, 0.4); }

/* Nowy styl licznika - Prawy dolny róg */
.orders-counter-badge {
  background: #1f1f23;
  border: 1px solid var(--v-border);
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  color: var(--v-text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}


#orders-container { 
  display: grid; 
  /* Zmieniamy 2 na 3, aby uzyskać trzy kolumny o równej szerokości */
  grid-template-columns: repeat(3, 1fr); 
  gap: 2rem; 
  max-width: 1600px; 
  margin: 4rem auto; 
  padding: 0 20px; 
}

.highlight {
  color: #ffb86c;
  font-weight: 700;
}



@media (max-width: 900px) {
  #orders-container {
    /* Na mniejszych ekranach wracamy do jednej kolumny */
    grid-template-columns: 1fr;
  }
  
  /* Pozostałe Twoje style... */
  .card-layout { grid-template-columns: 1fr; }
  .meta-sidebar { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); flex-direction: row; flex-wrap: wrap; padding: 2rem; }
  .btn-realizuj { width: 100%; }
  .main-actions { flex-direction: column; align-items: flex-start; }

  /* NOWE: na mniejszych ekranach status/licencja schodzą pod nagłówek karty */
  .card-header { flex-direction: column; align-items: flex-start; }
  .card-status-info { flex-direction: row; align-items: center; flex-wrap: wrap; }
}

/* Karta zlecenia */
.order-card { 
  background: var(--v-card); border: 0px solid var(--v-border); border-radius: 28px;
  overflow: hidden; transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  animation: slideUp 0.6s ease-out forwards;
  display: flex;
  flex-direction: column;

}
.order-card:hover { transform: translateY(-8px); border-color: rgba(210, 168, 255, 0.25); box-shadow: 0 30px 60px rgba(0,0,0,0.5); }

.card-header { 
  display: block; 
  justify-content: space-between; 
  align-items: flex-start; 
  gap: 1.5rem; 
  padding: 2rem 3rem; 
  border-bottom: 1px solid rgba(255,255,255,0.03); 
  background: rgba(255,255,255,0.01); 
}
.card-header-main { display: flex; flex-direction: column; min-width: 0; gap: 12px; }
.card-header h3 { margin: 0; font-size: 1.6rem; font-weight: 800; color: #fff; }
.badge { display: inline-block; background: rgba(124, 58, 237, 0.2); color: var(--v-accent); padding: 5px 14px; border-radius: 8px; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; margin-bottom: 0.8rem; }




/* NOWE: status finansowy + licencja w prawym górnym rogu karty */
.card-status-info {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 5px;
}

.status-finansowy-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  background: rgba(255,255,255,0.06);
  color: var(--v-text-muted);
}
.status-finansowy-badge.status-paid { background: rgba(80,250,123,0.15); color: #50fa7b; }
.status-finansowy-badge.status-unpaid { background: rgba(255,77,77,0.15); color: #ff4d4d; }
.status-finansowy-badge.status-pending { background: rgba(255,184,108,0.15); color: #ffb86c; }
.status-finansowy-badge.status-unknown { background: rgba(255,255,255,0.06); color: var(--v-text-muted); }

.licencja-badge {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--v-accent);
  background: rgba(124, 58, 237, 0.12);
  border: 0px solid rgba(210, 168, 255, 0.18);
  padding: 4px 12px;
  border-radius: 7px;
  white-space: nowrap;
}

.card-layout { display: grid; grid-template-columns: 260px 1fr; flex-grow: 1; }

.meta-sidebar { background: rgba(0,0,0,0.15); padding: 2.5rem 3rem; display: flex; flex-direction: column; gap: 1.8rem; border-right: 1px solid rgba(255,255,255,0.03); }
.meta-box { display: flex; flex-direction: column; gap: 6px; }
.meta-box label { font-size: 0.85rem; text-transform: uppercase; color: #6e6e77; font-weight: 700; letter-spacing: 1px; }
.meta-box span { font-size: 1.15rem; color: #fff; font-weight: 600; }
.val-budget { color: #fff !important; font-weight: 700 !important; }

.content-area { padding: 2.5rem 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.description-scroll { 
  max-height: 140px; overflow-y: auto; margin-bottom: 2rem; 
  scrollbar-width: none; -ms-overflow-style: none;
}
.description-scroll::-webkit-scrollbar { display: none; }
.description-scroll p { font-size: 1.05rem; line-height: 1.7; color: #b4acc7; margin: 0; }

.footer-actions { display: flex; justify-content: flex-end; }
.btn-realizuj { 
  background: var(--v-purple-l); color: #fff !important; 
  padding: 1.2rem 4rem; border-radius: 14px; font-weight: 800; 
  font-size: 1.1rem; border: none; cursor: pointer; transition: 0.3s;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.2);
}
.btn-realizuj:hover { 
  background: #fff; color: var(--v-purple) !important;
  transform: scale(1.03); box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.custom-overlay-vibranta { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); backdrop-filter: blur(12px); z-index: 99999; display: flex; justify-content: center; align-items: center; padding: 20px; }
.custom-popup-content { background: #111114; border: 1px solid var(--v-border); border-radius: 32px; width: 100%; max-width: 650px; position: relative; padding: 3.5rem; animation: popScale 0.4s ease-out; }

.custom-popup-close:hover { color: #fff; transform: rotate(90deg); }

.custom-popup-close { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 2.2rem; color: #444; border: none; background: none; cursor: pointer; transition: 0.3s; }

.seller-panel-intro {  
  background: linear-gradient(165deg, #16161a 0%, #0c0c0f 100%);
  border: 0px solid var(--v-border); border-radius: 24px; padding: 3rem; 
  margin: 2rem auto; max-width: 1560px; box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  position: relative; /* Dodane dla pozycjonowania licznika */
}

.instruction-card { display: flex; gap: 2rem; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04); border-radius: 20px; padding: 2rem; margin-bottom: 1.5rem; align-items: flex-start; }
.step-num { font-size: 2.5rem; font-weight: 900; color: var(--v-purple-l); opacity: 0.2; line-height: 1; }
.step-content p { font-size: 1.1rem; color: #fff; margin: 0 0 1rem 0; font-weight: 600; }
.step-action { color: #b4acc7; line-height: 1.6; font-size: 1rem; }

.highlight { color: #ffb86c; font-weight: 700; }


.urgent { color: #ff4d4d !important; font-weight: 800; }
.overdue { text-decoration: line-through; opacity: 0.5; }

@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popScale { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 900px) {
  .card-layout { grid-template-columns: 1fr; }
  .meta-sidebar { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); flex-direction: row; flex-wrap: wrap; padding: 2rem; }
  .btn-realizuj { width: 100%; }
  .main-actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .seller-notice {
    padding: 2rem 1.4rem;
    border-radius: 22px;
  }

  .seller-notice h3 {
    font-size: 1.45rem;
  }

  .seller-notice p {
    font-size: 0.95rem;
  }

  .seller-notice-btn {
    width: 100%;
    box-sizing: border-box;
  }

  /* Reset wielkości kontenera popupu */
  .custom-popup-content {
    max-width: 95% !important;
    padding: 2rem !important; /* Mniejszy padding, żeby tekst się zmieścił */
    border-radius: 20px !important;
  }

  /* Reset kart instrukcji */
  .instruction-card {
    flex-direction: column !important; /* Na telefonie numer nad tekstem */
    gap: 1rem !important;
    padding: 1.5rem !important;
    border-radius: 16px !important;
  }

  /* Reset numerów kroków */
  .step-num {
    font-size: 2.5rem !important; 
    min-width: auto !important;
  }

  /* Reset tekstów */
  .step-content p {
    font-size: 1.1rem !important;
    margin-bottom: 0.8rem !important;
  }

  .step-action, .step-link, .highlight, .highlight-alt {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }

  /* Mniejszy przycisk zamknięcia, żeby nie zasłaniał treści */
  .custom-popup-close {
    font-size: 2.5rem !important;
    top: 1rem !important;
    right: 1rem !important;
  }

  /* NOWE: lekko mniejsze badge'e statusu/licencji na telefonie */
  .status-finansowy-badge, .licencja-badge {
    font-size: 0.68rem;
    padding: 4px 10px;
  }
}

.header-filter select:focus,
.header-filter select:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.order-card {
  position: relative;
}

.card-header h3 {
  padding-right: 60px;
}

.file-icon-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--v-purple-l), var(--v-purple));
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(92, 14, 156, 0.35);
  transition: 0.3s;
  z-index: 5;
}

.file-icon-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 10px 26px rgba(92, 14, 156, 0.5);
}

.file-icon-btn svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.card-order-number {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  opacity: 0.65;
  margin-bottom: -4px;
}

/* ==========================================================================
   NOWE: TOOLTIP NA IKONCE PRZESYŁANIA PLIKÓW
   ========================================================================== */

.file-icon-btn::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 10px);
  right: 50%;
  transform: translateX(50%) translateY(-6px);
  white-space: nowrap;
  background: #ffffff;
  border: 1px solid rgba(210, 168, 255, 0.22);
  color: #5c0e9c;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 7px 13px;
  border-radius: 9px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.file-icon-btn:hover::after {
  opacity: 1;
  transform: translateX(50%) translateY(0);
}

@media (max-width: 600px) {
  .file-icon-btn::after { display: none; }
}

/* ==========================================================================
   NOWE: STATUS WYSYŁKI PLIKÓW (pod ikonką)
   ========================================================================== */

.upload-status {
  position: absolute;
  top: 72px;
  right: 20px;
  width: 180px;
  z-index: 6;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--v-text-muted);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.upload-status.is-visible { opacity: 1; transform: translateY(0); }

.upload-status.is-busy { color: var(--v-accent); }
.upload-status.is-ok { color: #50fa7b; }
.upload-status.is-error { color: #ff4d4d; }

.upload-status.is-busy .us-text::after {
  content: '';
  animation: usDots 1.2s steps(4, end) infinite;
}
@keyframes usDots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
}

.order-card.uploading .card-header h3 { padding-right: 205px; }

@media (max-width: 600px) {
  .upload-status { width: 140px; top: 70px; font-size: 0.74rem; }
  .order-card.uploading .card-header h3 { padding-right: 160px; }
}

/* ==========================================================================
   NOWE: PRZEBUDOWANY POPUP — ciemniejszy, z numerem zlecenia w tle
   ========================================================================== */

.custom-overlay-vibranta {
  background: rgba(2, 2, 4, 0.96) !important;
  backdrop-filter: blur(18px) !important;
}

.custom-popup-content {
  background: radial-gradient(120% 90% at 50% 0%, #101018 0%, #08080b 55%, #050507 100%) !important;
  border: 1px solid rgba(210, 168, 255, 0.14) !important;
  box-shadow: 0 40px 90px rgba(0,0,0,0.75), inset 0 1px 0 rgba(255,255,255,0.04) !important;
  overflow: hidden !important;
  padding: 4rem !important;
}

/* Numer zlecenia jako tło */
.popup-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  font-size: clamp(6rem, 17vw, 15rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(210,168,255,0.16) 0%, rgba(124,58,237,0.05) 70%, transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  filter: blur(0.4px);
}

/* Wszystko poza watermarkiem ponad tłem */
.custom-popup-content > *:not(.popup-watermark) {
  position: relative;
  z-index: 1;
}

/* Nagłówek popupu */
.popup-head {
  margin-bottom: 3rem;
  padding-right: 4rem;
}

.popup-order-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--v-accent);
  background: rgba(124, 58, 237, 0.14);
  border: 1px solid rgba(210, 168, 255, 0.2);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}

.popup-title {
  margin: 0 0 0.8rem 0;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.02em;
}

.popup-subtitle {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--v-text-muted);
  max-width: 560px;
}

/* Karty kroków — ciemniejsze */
.instruction-card {
  background: rgba(255,255,255,0.022) !important;
  border: 1px solid rgba(255,255,255,0.05) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.025);
  transition: 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.instruction-card:hover {
  background: rgba(255,255,255,0.035) !important;
  border-color: rgba(210, 168, 255, 0.16) !important;
  transform: translateY(-3px);
}

.instruction-card:last-child { margin-bottom: 0 !important; }

.step-num {
  background: linear-gradient(180deg, var(--v-accent), var(--v-purple-l));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  opacity: 0.55 !important;
}
.step-link {
  color: var(--v-accent) !important;
  text-decoration: none !important;
  border-bottom: 2px solid rgba(210, 168, 255, 0.35);
  padding-bottom: 1px;
  transition: 0.25s;
}
.step-link:hover {
  border-bottom-color: var(--v-accent);
  filter: brightness(1.15);
}
.highlight {
  background: rgba(255, 184, 108, 0.1);
  border: 1px solid rgba(255, 184, 108, 0.18);
}
.highlight-alt {
  background: rgba(80, 250, 123, 0.09);
  border: 1px solid rgba(80, 250, 123, 0.18);
}

/* Mała ikonka wpleciona w tekst kroku 01 */
.inline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--v-purple-l), var(--v-purple));
  box-shadow: 0 5px 14px rgba(92, 14, 156, 0.4);
  vertical-align: -9px;
  margin: 0 3px;
}
.inline-icon svg { width: 14px; height: 14px; fill: #fff; }
.custom-popup-close { color: #55555f !important; }
.custom-popup-close:hover { color: var(--v-accent) !important; }

@media (max-width: 900px) {
  .popup-title { font-size: 2rem; }
  .popup-head { padding-right: 3rem; }
}
@media (max-width: 600px) {
  .custom-popup-content {
    padding: 2.2rem 1.5rem !important;
    max-height: 88vh;
    overflow-y: auto !important;
  }
  .popup-head { margin-bottom: 2rem; padding-right: 2.5rem; }
  .popup-title { font-size: 1.6rem; }
  .popup-subtitle { font-size: 0.95rem; }
  .popup-order-label { font-size: 0.7rem; padding: 6px 13px; margin-bottom: 1rem; }
  .popup-watermark { font-size: 5rem; opacity: 0.8; }
  .inline-icon { width: 24px; height: 24px; vertical-align: -7px; }
  .inline-icon svg { width: 12px; height: 12px; }
}
/* ===== ODDECH + ŁAMANIE TEKSTU ===== */
.custom-popup-content { max-width: 820px !important; padding: 3.5rem !important; }
.popup-head { margin-bottom: 2.2rem; }
.popup-title { font-size: 2rem; }
.instruction-card {
  gap: 1.8rem !important;
  padding: 2.2rem 2.4rem !important;
  margin-bottom: 1.4rem !important;
  border-radius: 22px !important;
}
.step-num { font-size: 3rem !important; min-width: 56px !important; }
.step-content p {
  font-size: 1.25rem !important;
  line-height: 1.35 !important;
  margin-bottom: 1rem !important;
}

.step-action {
  font-size: 1.05rem !important;
  line-height: 1.9 !important;   /* miejsce na obramowane wyróżnienia */
  text-wrap: pretty;
  hyphens: none;
}

.step-link { font-size: 1.05rem !important; }

/* wyróżnienia nie łamią się w środku */
.highlight, .highlight-alt {
  font-size: 1.05rem !important;
  display: inline-block;
  white-space: nowrap;
  line-height: 1.3;
  padding: 2px 8px !important;
}

/* ikonka nie rozpycha wiersza */
.inline-icon {
  width: 26px; height: 26px;
  vertical-align: -8px;
  margin: 0 2px;
}
.inline-icon svg { width: 13px; height: 13px; }

@media (max-width: 600px) {
  .highlight, .highlight-alt { white-space: normal; }
  .step-action { line-height: 1.75 !important; }
}

/* numer zlecenia — prawy górny róg popupa */
.popup-watermark {
  top: -1.5rem !important;
  left: auto !important;
  right: 1.5rem !important;
  transform: rotate(-6deg) !important;
  transform-origin: top right;
  font-size: clamp(3.5rem, 8vw, 7rem) !important;
  background: linear-gradient(180deg, rgba(210,168,255,0.20) 0%, rgba(124,58,237,0.04) 85%, transparent 100%) !important;
  -webkit-background-clip: text;
  background-clip: text;
}
.popup-head { padding-right: 9rem; }

@media (max-width: 600px) {
  .popup-watermark { font-size: 2.8rem !important; top: -0.5rem !important; right: 1rem !important; }
  .popup-head { padding-right: 5rem; }
}
.popup-watermark {
  top: 1.8rem !important;
  left: auto !important;
  right: 2rem !important;
  bottom: auto !important;
  transform: rotate(-5deg) !important;
  transform-origin: top right;
  font-size: clamp(3rem, 6.5vw, 5.5rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: rgba(210, 168, 255, 0.22) !important;
  filter: none !important;
  text-shadow: 0 0 40px rgba(124, 58, 237, 0.25);
}
/* krzyżyk przeniesiony w lewy górny róg */
.custom-popup-close {
  left: 2rem !important;
  right: auto !important;
  top: 1.5rem !important;
}
/* nagłówek robi miejsce: po lewej na X, po prawej na numer */
.popup-head {
  padding-left: 3.5rem;
  padding-right: 9rem;
  padding-top: 1rem;
}

@media (max-width: 600px) {
  .popup-watermark { font-size: 2.6rem !important; top: 1.2rem !important; right: 1.2rem !important; }
  .custom-popup-close { left: 1rem !important; right: auto !important; }
  .popup-head { padding-left: 2.5rem; padding-right: 4.5rem; padding-top: 0.5rem; }
}

.custom-popup-content {
  border: none !important;
  box-shadow: 0 40px 90px rgba(0,0,0,0.75) !important;
}

/* krzyżyk w samym lewym górnym rogu */
.custom-popup-close {
  left: 1.2rem !important;
  right: auto !important;
  top: 1.2rem !important;
  font-size: 2.6rem !important;
  line-height: 1 !important;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}
.popup-head { padding-left: 3rem; padding-top: 0.6rem; }

@media (max-width: 600px) {
  .custom-popup-close {
    left: 0.8rem !important;
    top: 0.8rem !important;
    font-size: 2.2rem !important;
    width: 38px;
    height: 38px;
  }
  .popup-head { padding-left: 2.2rem; }
}
.icon-box > svg {
margin-bottom: 10px;
  width: 46px !important; height: 46px !important;
  padding: 11px; box-sizing: border-box;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--v-purple-l), var(--v-purple));
  box-shadow: 0 10px 24px rgba(92, 14, 156, 0.35);
  fill: #fff !important;
  flex-shrink: 0;
}
#loading-text span:first-child::after {
  content: '';
  animation: usDots 1.2s steps(4, end) infinite;
}
.has-unread::before {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff4d4d;
  border: 2px solid #131316;
  box-shadow: 0 0 8px rgba(255,77,77,0.6);
  z-index: 10;
}


/* ---------- ODEBRANE ZLECENIA ---------- */

.done-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  align-self: stretch;
  transition: transform .25s, filter .25s;
}



.done-toggle:hover { transform: translateY(-2px); }
.done-toggle svg { width: 15px; height: 15px; flex-shrink: 0; }
.done-chev { transition: transform .3s cubic-bezier(.16,.84,.44,1); opacity: .55; }
.done-toggle[aria-expanded="true"] .done-chev { transform: rotate(180deg); }


.done-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s cubic-bezier(.16,.84,.44,1), margin-top .4s;
  margin-top: 0;
}
.done-panel.is-open { grid-template-rows: 1fr; margin-top: 16px; }
.done-inner { overflow: hidden; }

.done-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 15px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,.022);
  margin-bottom: 8px;
  animation: fadeInUp .4s ease both;
}
.done-row:last-child { margin-bottom: 0; }

.done-main { flex: 1; min-width: 0; }

.done-top { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }

.done-oid {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .07em;
  color: #8b5cf6;
}

.done-lic {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #b78cf5;
  border: 1px solid rgba(124,58,237,.25);
  padding: 3px 9px;
  border-radius: 999px;
}

.done-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.done-meta {
  font-size: 11px;
  color: #5a5a63;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.done-meta b { color: #8d8d96; font-weight: 700; }

.done-files {
  flex-shrink: 0;
  padding: 9px 17px;
  border-radius: 11px;
  background: rgba(124,58,237,.1);
  border: 1px solid rgba(210,168,255,.2);
  color: #b78cf5;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .25s, color .25s;
}
.done-files:hover { background: rgba(124,58,237,.22); color: #d2a8ff; }

.done-filelist {
  display: none;
  flex-basis: 100%;
  flex-direction: column;
  gap: 7px;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.done-filelist.is-open { display: flex; }

.done-filelist a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  color: #ddd;
  text-decoration: none;
  font-size: 12.5px;
  transition: background .2s, color .2s;
}
.done-filelist a:hover { background: rgba(124,58,237,.15); color: #fff; }

.done-empty {
  font-size: 12.5px;
  color: #5a5a63;
  padding: 6px 2px;
}

@media (max-width: 700px) {
  .done-toggle { width: 100%; justify-content: flex-start; }
  .done-row { flex-direction: column; align-items: stretch; }
  .done-files { width: 100%; }
}


.main-actions {
  justify-content: flex-start;
  gap: 10px;
}
.seller-portal-link { margin-right: auto; }


.main-actions {
  align-items: stretch;
}

.done-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-family: inherit;
  align-self: stretch;
  transition: transform .25s, filter .25s;
}


.chat-msg.is-fix .chat-msg-text,
.msg-bubble.is-fix .msg-bubble-text {
  background: rgba(255, 176, 92, .12) !important;
  border: 1px solid rgba(255, 176, 92, .3);
  color: #ffd9b0;
  position: relative;
  padding-left: 40px;
  white-space: pre-line;
}

.chat-msg.is-fix .chat-msg-text::before,
.msg-bubble.is-fix .msg-bubble-text::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 13px;
  width: 15px;
  height: 15px;
  background: #ffb05c;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.5 2.5a2.1 2.1 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.5 2.5a2.1 2.1 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* pierwsza linia (nagłówek) wyróżniona */
.chat-msg.is-fix .chat-msg-text,
.msg-bubble.is-fix .msg-bubble-text {
  font-weight: 500;
}



/* ---------- ZGŁASZANIE SPORU ---------- */

.btn-dispute {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  color: #8d8d96;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background .25s, border-color .25s, color .25s;
}
.btn-dispute svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-dispute:hover:not(:disabled) {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .14);
  color: #b8b3c2;
}
.btn-dispute.is-reported,
.btn-dispute:disabled {
  color: #5a5a63;
  cursor: not-allowed;
  background: rgba(255,255,255,.02);
}

.dispute-form {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .38s cubic-bezier(.16,.84,.44,1), margin-top .38s;
  margin-top: 0;
}
.dispute-form.is-open { grid-template-rows: 1fr; margin-top: 12px; }
.dispute-form-inner { overflow: hidden; }

.dispute-form textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 92px;
  resize: vertical;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.035);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.55;
  outline: none;
}
.dispute-form textarea::placeholder { color: #5a5a63; }
.dispute-form textarea:focus { border-color: rgba(255,255,255,.16); }

.dispute-form-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 9px;
}

.dispute-send {
  padding: 10px 20px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: #d8d8d8;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.dispute-send:hover:not(:disabled) { background: rgba(255,255,255,.09); }
.dispute-send:disabled { opacity: .5; cursor: default; }

@media (max-width: 700px) {
  .footer-actions { flex-direction: column; }
  .btn-dispute { width: 100%; justify-content: center; }
}





.card-layout {
  align-items: stretch !important;
}

.content-area {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.description-scroll {
  flex: 1 !important;
}

.footer-actions {
  margin-top: auto !important;
  padding-top: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.footer-actions .btn-realizuj,
.footer-actions .btn-dispute {
  width: 100% !important;
  justify-content: center !important;
  white-space: nowrap !important;
}



/* wiadomość systemowa */
.chat-msg.is-system,
.msg-bubble.is-system {
  align-self: center !important;
  max-width: 90% !important;
}
.chat-msg.is-system .chat-msg-text,
.msg-bubble.is-system .msg-bubble-text {
  background: rgba(255,255,255,.04) !important;
  border: 1px dashed rgba(255,255,255,.14);
  color: #8d8d96;
  font-size: 12.5px;
  text-align: center;
  white-space: pre-line;
}

/* wiadomość moderatora */
.chat-msg.is-mod .chat-msg-text,
.msg-bubble.is-mod .msg-bubble-text {
  background: rgba(56, 189, 248, .1) !important;
  border: 1px solid rgba(56, 189, 248, .28);
  color: #cfeeff;
  position: relative;
  padding-top: 24px;
}
.chat-msg.is-mod .chat-msg-text::before,
.msg-bubble.is-mod .msg-bubble-text::before {
  content: 'MODERATOR';
  position: absolute;
  top: 7px;
  left: 14px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  color: #7dd3fc;
}

</style>