/* Bulletproof Reset for Standalone App */
.preferium-offer-clean,
.preferium-offer-clean body {
  margin: 0;
  padding: 0;
  background: #f6f7fb;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

#preferium-offer-dashboard-root,
.preferium-offer-public-shell,
.preferium-offer-gate {
  /* Targeted resets instead of all:revert */
  margin: 0;
  padding: 0;
  display: block;
  box-sizing: border-box;
  font-family: var(--po-font);
  color: var(--po-ink);
  line-height: 1.6;
  font-size: 14px;
  background: transparent;
}

#preferium-offer-dashboard-root *,
.preferium-offer-public-shell *,
.preferium-offer-gate * {
  box-sizing: border-box;
}

:root {
  /* BASE COLORS */
  --po-white: #ffffff;
  --po-ink: #0f172a;
  --po-ink-light: #1e293b;
  --po-muted: #64748b;
  --po-text-light: #94a3b8;
  --po-line: #f1f5f9;
  --po-border-soft: rgba(15, 23, 42, 0.05);
  --po-soft: #f8fafc;
  --po-bg: #fdfdfe;
  --po-accent: #4f46e5;
  --po-accent2: #7c3aed;
  --po-accent-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --po-accent-soft: rgba(79, 70, 229, 0.08);
  --po-success: #10b981;
  --po-success-bg: #ecfdf5;
  --po-danger: #ef4444;
  --po-danger-bg: #fef2f2;
  --po-warn: #f59e0b;
  --po-warn-bg: #fffbeb;
  --po-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  --po-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --po-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --po-shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --po-radius: 20px;
  --po-radius-md: 14px;
  --po-radius-sm: 8px;
  --po-font: 'Inter', system-ui, -apple-system, sans-serif;
  --po-transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --po-glass: rgba(255, 255, 255, 0.85);
  --po-topbar-height: 84px;
  --po-text: var(--po-ink);
  --po-info: #3b82f6;
  --po-info-bg: #eff6ff;
  --po-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --po-button-height-sm: 40px;
  --po-button-height-md: 44px;
  --po-button-height-lg: 52px;

  /* SPACING SYSTEM */
  --po-space-xs: 4px;
  --po-space-sm: 8px;
  --po-space-md: 12px;
  --po-space-lg: 16px;
  --po-space-xl: 24px;
  --po-space-2xl: 32px;
  --po-space-3xl: 40px;
  --po-space-4xl: 48px;

  /* EXTENDED BORDER RADIUS */
  --po-radius-xs: 6px;
  --po-radius-lg: 16px;
  --po-radius-xl: var(--po-radius);
  --po-radius-2xl: 24px;
  --po-radius-full: 999px;

  /* BREAKPOINTS (for reference - use in @media queries) */
  --po-breakpoint-mobile: 600px;
  --po-breakpoint-tablet: 900px;
  --po-breakpoint-desktop: 1100px;

  /* Z-INDEX SYSTEM */
  --po-z-loading: 100000;
  --po-z-toast: 10000;
  --po-z-confirm: 9000;
  --po-z-modal-overlay: 8000;
  --po-z-modal: 7000;
  --po-z-sticky: 1000;
  --po-z-dropdown: 100;
  --po-z-elevated: 10;
  --po-z-base: 1;
}

/* Dashboard Stats Tiles */
.po-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.po-stat-tile {
  background: var(--po-white);
  border: 1px solid var(--po-line);
  border-radius: var(--po-radius-md);
  /* Reduced radius slightly */
  padding: 16px 20px;
  /* Reduced padding */
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* Reduced gap */
  transition: var(--po-transition);
  box-shadow: var(--po-shadow-sm);
  /* Softer shadow */
  position: relative;
  overflow: hidden;
}

.po-stat-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  /* Thinner border-top */
  background: var(--po-accent-gradient);
  opacity: 0.15;
  transition: var(--po-transition);
}

.po-stat-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--po-shadow);
  border-color: var(--po-accent);
}

.po-stat-tile:hover::before {
  height: 4px;
  opacity: 1;
}

.po-stat-label {
  font-size: 10px;
  /* Smaller */
  font-weight: 700;
  color: var(--po-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.po-stat-value {
  font-size: 24px;
  /* Smaller */
  font-weight: 800;
  color: var(--po-ink);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.po-stat-meta {
  font-size: 12px;
  color: var(--po-success);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}



/* Admin page: full-bleed canvas inside wp-admin */
.toplevel_page_preferium-tilbud #wpbody {
  background: var(--po-soft);
}

.toplevel_page_preferium-tilbud .wrap {
  margin: 0;
}

.toplevel_page_preferium-tilbud #wpbody-content {
  padding-bottom: 0;
}

.toplevel_page_preferium-tilbud #wpfooter {
  display: none;
}

.preferium-offer-app-root--admin {
  padding: 24px 24px 32px 24px;
}

.preferium-offer-app-root--admin *,
.preferium-offer-public-shell * {
  box-sizing: border-box;
}

.po-h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--po-ink);
  margin: 0 0 8px 0;
}

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

.po-box {
  background: var(--po-soft);
  padding: 24px;
  border-radius: var(--po-radius-md);
  border: 1px solid var(--po-border-soft);
}

.po-hero {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: center;
  margin: 40px 0;
}

@media (max-width: 900px) {
  .po-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
}

.po-amount-big {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--po-ink);
  line-height: 1;
}

.po-receipt {
  margin-top: 24px;
  padding: 24px;
  background: var(--po-bg);
  border-radius: var(--po-radius-md);
  border: 1px solid var(--po-border-soft);
}

.po-receipt-total {
  font-size: 18px;
  font-weight: 800;
  color: var(--po-accent);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px dashed var(--po-line);
}

.preferium-offer-app-root label,
.preferium-offer-public-shell label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--po-muted);
  margin: 0 0 10px 4px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.preferium-offer-app-root input[type="text"],
.preferium-offer-app-root input[type="email"],
.preferium-offer-app-root input[type="tel"],
.preferium-offer-app-root input[type="number"],
.preferium-offer-app-root input[type="date"],
.preferium-offer-app-root select,
.preferium-offer-app-root textarea,
.preferium-offer-public-shell input[type="text"],
.preferium-offer-public-shell input[type="email"],
.preferium-offer-public-shell input[type="tel"],
.preferium-offer-public-shell input[type="number"],
.preferium-offer-public-shell input[type="date"],
.preferium-offer-public-shell select,
.preferium-offer-public-shell textarea {
  width: 100%;
  border: 2px solid var(--po-line);
  border-radius: var(--po-radius-md);
  padding: 14px 18px;
  background: var(--po-white);
  outline: none;
  font-family: var(--po-font);
  font-size: 15px;
  font-weight: 500;
  color: var(--po-ink);
  transition: var(--po-transition);
}

/* iOS Zoom Prevention */
@media (max-width: 900px) {

  .preferium-offer-app-root input[type="text"],
  .preferium-offer-app-root input[type="email"],
  .preferium-offer-app-root input[type="tel"],
  .preferium-offer-app-root input[type="number"],
  .preferium-offer-app-root input[type="date"],
  .preferium-offer-app-root select,
  .preferium-offer-app-root textarea,
  .preferium-offer-public-shell input,
  .preferium-offer-public-shell select,
  .preferium-offer-public-shell textarea {
    font-size: 16px;
    /* Prevents zoom on focus */
  }
}

.preferium-offer-app-root input:focus,
.preferium-offer-app-root select:focus,
.preferium-offer-app-root textarea:focus,
.preferium-offer-public-shell input:focus,
.preferium-offer-public-shell select:focus,
.preferium-offer-public-shell textarea:focus {
  border-color: var(--po-accent);
  background: var(--po-white);
  box-shadow: 0 0 0 5px var(--po-accent-soft);
  transform: translateY(-1px);
}

/* Better spacing between stacked fields */
.po-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


.preferium-offer-app-root,
.preferium-offer-public-shell {
  font-family: var(--po-font);
  color: var(--po-ink);
  scroll-behavior: smooth;
}

/* Spinner */
@keyframes poSpin {
  to {
    transform: rotate(360deg);
  }
}

.po-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-left-color: var(--po-white);
  border-radius: 50%;
  animation: poSpin 0.6s linear infinite;
  display: inline-block;
  margin-right: 8px;
}

.po-btn.loading {
  color: transparent;
  position: relative;
  pointer-events: none;
}

.po-btn.loading::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-left-color: currentColor;
  border-radius: 50%;
  animation: poSpin 0.6s linear infinite;
}

.po-btn-primary.loading::after {
  border-color: rgba(255, 255, 255, 0.3);
  border-left-color: var(--po-white);
}

/* Toast System */
.po-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: var(--po-z-toast);
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.po-toast {
  pointer-events: auto;
  min-width: 340px;
  max-width: 480px;
  background: var(--po-white);
  border: 1px solid var(--po-line);
  border-radius: var(--po-radius-lg);
  padding: 16px 20px;
  box-shadow: 0 20px 40px -10px rgba(16, 24, 40, 0.15), 0 10px 10px -5px rgba(16, 24, 40, 0.05);
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(60px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.po-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.po-toast-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.po-toast-success .po-toast-icon {
  background: var(--po-success-bg);
  color: #059669;
}

.po-toast-error .po-toast-icon {
  background: var(--po-danger-bg);
  color: #dc2626;
}

.po-toast-content {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--po-ink);
  line-height: 1.4;
}

.po-toast-close {
  cursor: pointer;
  color: var(--po-muted);
  font-size: 18px;
  line-height: 1;
  padding: 4px;
}

.po-toast-close:hover {
  color: var(--po-ink);
}

/* Gate - Dashboard wrapper */
.preferium-offer-gate {
  max-width: 100%;
  /* Allow full width for dashboard */
  width: 100%;
  margin: 0;
  padding: 0;
  background: #f6f7fb;
  min-height: 100vh;
}

.preferium-offer-gate h2 {
  margin: 0 0 8px 0;
  font-size: 20px;
}

.preferium-offer-gate p {
  margin: 0 0 10px 0;
  color: var(--po-muted);
}

/* Shell */
.preferium-offer-app-root {
  width: 100%;
  min-height: calc(100vh - 32px);
  background: #f6f7fb;
  padding: 18px;
}

.preferium-offer-app-root--admin {
  padding: 24px 24px 32px 24px;
}

.po-shell {
  width: 100%;
  max-width: 1600px;
  /* Relaxed width cap */
  margin: 0 auto;
  padding: 12px 32px 32px 32px;
  /* Reduced top padding */
  box-sizing: border-box;
}


.po-kv {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px 16px;
}

@media (max-width: 600px) {
  .po-kv {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.po-kv .k {
  font-size: 12px;
  font-weight: 600;
  color: var(--po-muted);
}

.po-kv .v {
  font-size: 14px;
  font-weight: 500;
  color: var(--po-ink);
  word-break: break-word;
  white-space: pre-line;
  line-height: 1.2;
}


.po-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.po-amount {
  font-size: 20px;
  font-weight: 700;
  color: var(--po-ink);
}

.po-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.po-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--po-button-height-md);
  min-height: var(--po-button-height-md);
  padding: 0 var(--po-space-xl);
  border: 1px solid var(--po-line);
  background: var(--po-white);
  color: var(--po-ink);
  border-radius: var(--po-radius-md);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.po-btn:hover {
  background: var(--po-soft);
  color: var(--po-ink);
  border-color: var(--po-line);
  transform: translateY(-2px);
  box-shadow: var(--po-shadow);
}

.po-btn-primary {
  background: var(--po-accent-gradient);
  border-color: transparent;
  color: var(--po-white);
  box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
}

.po-btn-primary:hover {
  background: var(--po-accent-gradient);
  color: var(--po-white);
  box-shadow: 0 10px 20px -3px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

.po-btn-danger {
  background: var(--po-danger);
  color: var(--po-white);
  border-color: transparent;
  box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
}

.po-btn-danger:hover {
  background: #dc2626;
  color: var(--po-white);
  border-color: transparent;
  box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.4);
  transform: translateY(-2px);
}

.po-btn-warning {
  color: var(--po-warn);
  border-color: #fcd34d;
}

.po-btn-warning:hover {
  background: var(--po-warn);
  color: var(--po-white);
  border-color: var(--po-warn);
}

.po-input,
.po-select,
.po-textarea {
  width: 100%;
  border: 1px solid var(--po-line);
  border-radius: var(--po-radius-md);
  padding: 10px 16px;
  /* Robust padding for centering */
  background-color: var(--po-soft);
  outline: none;
  font-family: var(--po-font);
  font-size: 14px;
  color: var(--po-ink);
  transition: all 0.2s ease;
  min-height: var(--po-button-height-md);
  line-height: 1.5;
}

#poFilterStatus,
#poFilterSeller,
#poSellerUserId {
  padding: 0 40px 0 16px;
  /* Specific padding for filters and dropdowns */
  height: var(--po-button-height-md);
}

.po-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  height: auto !important;
  min-height: var(--po-button-height-md);
}

.po-select option {
  background-color: var(--po-white) !important;
  color: var(--po-ink) !important;
  padding: 10px 12px !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  min-height: 44px !important;
  height: auto !important;
}

/* Specific fix for service dropdown text visibility */
.poInputServiceSelect {
  height: auto !important;
  min-height: 44px !important;
  line-height: 1.5 !important;
}

.poInputServiceSelect option {
  background: white !important;
  color: #0f172a !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  height: auto !important;
  min-height: 44px !important;
  white-space: normal !important;
}

.po-input:hover,
.po-select:hover,
.po-textarea:hover {
  background: var(--po-white);
  border-color: #cbd5e1;
}

.po-input:focus,
.po-select:focus,
.po-textarea:focus {
  border-color: var(--po-accent);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.po-label {
  display: block;
  font-size: 12px;
  font-weight: 900;
  color: var(--po-muted);
  margin: 0 0 6px 0;
  letter-spacing: .04em;
}

.po-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.po-form .full {
  grid-column: 1 / -1;
}

.po-textarea {
  min-height: 78px;
  resize: vertical;
}

.po-banner {
  border: 1px solid var(--po-line);
  background: var(--po-white);
  border-radius: var(--po-radius-md);
  padding: 12px 14px;
}

.po-tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--po-line);
  border-radius: var(--po-radius-md);
  align-self: center;
}

.po-tab {
  position: relative;
  padding: 8px 16px;
  border-radius: var(--po-radius-sm);
  background: transparent;
  font-weight: 700;
  font-size: 13px;
  color: var(--po-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.po-tab:hover {
  color: var(--po-ink);
  background: rgba(15, 23, 42, 0.03);
}

.po-tab.active,
.po-tab.active:hover {
  background: var(--po-accent-gradient);
  color: var(--po-white);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
  opacity: 1;
}

/* Premium Indicator Underline */
.po-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--po-accent-gradient);
  transform: translateX(-50%);
  transition: width 0.25s ease;
  border-radius: 2px;
  display: none;
  /* Hide by default if using full background */
}

.po-tab.active::after {
  width: 24px;
}

.po-list {
  margin-top: 24px;
  border: none;
  background: transparent;
  overflow: visible;
}

.po-li {
  display: grid;
  grid-template-columns: 1.4fr .7fr .6fr .9fr .6fr;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--po-line);
  align-items: center;
}

.po-li:last-child {
  border-bottom: none;
}

.po-li .meta {
  color: var(--po-muted);
  font-size: 12px;
}

.po-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--po-radius-full);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.po-status.neutral {
  background: var(--po-soft);
  color: var(--po-muted);
}

.po-status.info {
  background: #eef2ff;
  color: #4338ca;
}

.po-status.warning {
  background: var(--po-warn-bg);
  color: var(--po-warn);
}

.po-status.success {
  background: var(--po-success-bg);
  color: var(--po-success);
}

.po-status.danger {
  background: var(--po-danger-bg);
  color: var(--po-danger);
}

.po-status.primary {
  background: var(--po-accent-soft);
  color: var(--po-accent);
}


/* Offer list items - ROBUST REFACTOR */
.po-item {
  display: grid;
  grid-template-columns: 140px 1fr 160px auto;
  /* Fixed columns for desktop */
  gap: 24px;
  padding: 24px;
  background: var(--po-white);
  border: 1px solid var(--po-line);
  border-radius: var(--po-radius-md);
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  align-items: center;
  position: relative;
}

.po-item:last-child {
  margin-bottom: 0;
}

.po-item-status-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Ensure vertical centering */
  align-items: flex-start;
  gap: 6px;
}

.po-item-seller {
  font-size: 11px;
  font-weight: 500;
  color: var(--po-muted);
  opacity: 0.9;
  padding-left: 2px;
}

/* Main Info Column - Truncate text logic */
.po-item-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  /* Critical for Grid truncation */
  overflow: hidden;
}

.po-item-title,
.po-item-main .po-muted {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.po-item-title {
  font-weight: 600;
  color: var(--po-ink);
  font-size: 15px;
}

.po-item-price-col {
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  /* Prevent price wrapping */
}

.po-item-actions {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  /* FORCE single line on desktop */
}

.po-item-actions .po-link {
  white-space: nowrap;
  /* Prevent button text wrap */
  flex-shrink: 0;
  /* Prevent buttons squishing */
}

.po-item:hover {
  background: var(--po-soft);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  z-index: 2;
  border-color: var(--po-primary-light);
}

/* TABLET LAYOUT (Max 1000px) - Switch to Flex Wrap */
@media (max-width: 1100px) {
  .po-item {
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping */
    gap: 0;
    /* Control gap manually per section */
    padding: 20px;
    align-items: flex-start;
  }

  /* Top Row: Status (left) + Main Info (right) */
  .po-item-status-col {
    width: 30%;
    margin-bottom: 16px;
    padding-right: 12px;
  }

  .po-item-main {
    width: 70%;
    margin-bottom: 16px;
    align-items: flex-start;
    /* Align text to top-left */
  }

  /* Bottom Row: Price (left) + Actions (right) */
  .po-item-price-col {
    width: 40%;
    text-align: left;
    align-items: flex-start;
    border-top: 1px dashed var(--po-line);
    padding-top: 12px;
  }

  .po-item-actions {
    width: 60%;
    justify-content: flex-end;
    border-top: 1px dashed var(--po-line);
    padding-top: 12px;
  }
}

/* MOBILE LAYOUT (Max 600px) - Single Column Stack */
@media (max-width: 600px) {
  .po-item {
    display: flex;
    /* Force override Grid */
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 16px;
  }

  .po-item>div {
    width: 100%;
    /* Force full width */
    margin: 0;
    padding: 0;
    border: none;
  }

  /* 1. Status */
  .po-item-status-col {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  /* 2. Main Info */
  .po-item-main {
    gap: 4px;
  }

  /* 3. Price */
  .po-item-price-col {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 12px;
    border-top: 1px solid var(--po-line);
  }

  /* 4. Actions */
  .po-item-actions {
    flex-direction: column;
    gap: 8px;
  }

  .po-item-actions .po-link {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--po-soft);
    padding: 10px;
    border-radius: var(--po-radius-xs);
  }
}

/* .po-item:hover - Removed as per user request */

.po-item-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.po-seller-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--po-line);
  color: var(--po-muted);
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--po-radius-xs);
  letter-spacing: 0.02em;
  text-transform: none;
  box-shadow: none;
}

.po-item-status-pill {
  display: flex;
  align-items: center;
}

.po-item-main {
  min-width: 0;
}

.po-item-title {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--po-ink);
  margin-bottom: 4px;
}


.po-meta-seller {
  display: flex;
  align-items: center;
  gap: 6px;
}

.po-meta-seller-name {
  font-weight: 700;
  color: var(--po-ink);
}

.po-meta-seller-email {
  font-size: 12px;
  color: var(--po-muted);
}

.po-item-price {
  text-align: right;
  white-space: nowrap;
}

.po-price-primary {
  font-weight: 800;
  font-size: 16px;
  color: var(--po-ink);
}

.po-price-primary small {
  font-weight: 400;
  font-size: 11px;
  color: var(--po-muted);
  text-transform: uppercase;
  margin-left: 2px;
}

.po-price-secondary {
  font-size: 12px;
  color: var(--po-muted);
  margin-top: 2px;
}

.po-sep {
  color: var(--po-line);
}




/* Utility Classes for Spacing */
.mt-2 {
  margin-top: 2px;
}

.mt-4 {
  margin-top: 4px;
}

.mt-6 {
  margin-top: 6px;
}

.mt-8 {
  margin-top: 8px;
}

.mt-12 {
  margin-top: 12px;
}

.mt-14 {
  margin-top: 14px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-18 {
  margin-top: 18px;
}

.mt-20 {
  margin-top: 20px;
}

.mb-14 {
  margin-bottom: 14px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.py-6 {
  padding-top: 6px;
  padding-bottom: 6px;
}

.text-right {
  text-align: right;
}

.align-center {
  align-items: center;
}

.flex-1 {
  flex: 1;
}

.no-margin {
  margin: 0;
}

.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mt-24 {
  margin-top: 24px;
}

.mb-12 {
  margin-bottom: 12px;
}

.po-service-table {
  width: 100%;
  border-collapse: collapse;
}

.p-20 {
  padding: 20px;
}

.mt-10 {
  margin-top: 10px;
}

/* JS Refactor Utilities */
.po-flex-1 {
  flex: 1;
}

.po-w-70 {
  flex: 0 0 70px;
}

.po-w-80 {
  flex: 0 0 80px;
}

.po-w-100 {
  flex: 0 0 100px;
}

.po-w-110 {
  flex: 0 0 110px;
}

.po-w-120 {
  flex: 0 0 120px;
}

.po-min-w-120 {
  min-width: 120px;
}

.po-align-end {
  align-self: flex-end;
}

.po-gap-8 {
  gap: 8px;
}

.po-text-left {
  text-align: left;
}

.po-strong {
  font-weight: 700;
  color: var(--po-ink);
}

/* Component Helpers */
.po-send-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.po-mini-disclaimer {
  font-size: 8px;
  color: var(--po-muted);
  margin-top: 4px;
}

.po-mini-disclaimer {
  font-size: 8px;
  color: var(--po-muted);
  margin-top: 4px;
}

/* More JS Refactor Utilities */
.po-flex-2 {
  flex: 2;
}

.po-min-w-200 {
  min-width: 200px;
}

.po-min-w-140 {
  min-width: 140px;
}

.po-h-20 {
  height: 20px;
}

.mt-neg-6 {
  margin-top: -6px;
}

.po-font-600 {
  font-weight: 600;
}

.po-font-700 {
  font-weight: 700;
}

.po-font-800 {
  font-weight: 800;
}

.po-text-xs {
  font-size: 8px;
}

.po-text-sm {
  font-size: 11px;
}

.po-text-lg {
  font-size: 18px;
}

.po-text-xl {
  font-size: 24px;
}

.po-br-12 {
  border-radius: var(--po-radius-md);
}

.po-br-28 {
  border-radius: var(--po-radius-2xl);
}

.po-spinner-lg {
  width: 36px;
  height: 36px;
  border-width: 3px;
}

.po-scale-1-1 {
  transform: scale(1.1);
}

.po-z-10000 {
  z-index: var(--po-z-confirm) !important;
}

.po-max-w-400 {
  max-width: 400px;
}

.po-text-40 {
  font-size: 40px;
}

.po-text-right {
  text-align: right;
}

.po-bg-soft {
  background: var(--po-soft);
}

.po-accent {
  color: var(--po-accent);
}

.po-success {
  color: var(--po-success);
}

.po-font-700 {
  font-weight: 700;
}

.po-ls-neg-02 {
  letter-spacing: -0.02em;
}

.po-ls-neg-01 {
  letter-spacing: -0.01em;
}

.po-opacity-08 {
  opacity: 0.8;
}

.po-justify-center {
  justify-content: center;
}

.po-card-dashed {
  border: 1px dashed var(--po-line);
}

.po-bg-transparent {
  background: transparent;
}

.po-font-bold {
  font-weight: 700;
}

.po-max-w-720 {
  max-width: 720px;
}

.po-border-bottom {
  border-bottom: 1px solid var(--po-line);
}

.po-border-bottom-soft {
  border-bottom: 1px solid #eef2f7;
}

.po-max-w-60 {
  max-width: 60%;
}

.po-mb-40 {
  margin-bottom: 40px;
}

.po-w-full {
  width: 100%;
}

.po-bg-white {
  background: var(--po-white);
}

.po-flex {
  display: flex;
}

.po-flex-col {
  flex-direction: column;
}

.po-spinner-accent {
  border-top-color: var(--po-accent);
}

.po-border-soft-light {
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.po-shadow-xl-soft {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06);
}

.po-p-48-40 {
  padding: 48px 40px;
}

.po-p-40-30 {
  padding: 40px 30px;
}

.po-p-32 {
  padding: 32px;
}

.po-p-24 {
  padding: 24px;
}

@media (max-width: 600px) {
  .po-p-32 {
    padding: 20px;
  }

  .po-p-24 {
    padding: 16px;
  }

  .po-p-48-40 {
    padding: 32px 24px;
  }
}

@keyframes poFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.po-fade-in {
  animation: poFadeIn 0.5s ease-out forwards;
}


/* Loading state: fixed fullscreen overlay */
.preferium-offer-gate--loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: var(--po-z-loading);
  display: flex;
  align-items: center;
  justify-content: center;
}

.po-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.po-min-h-85vh {
  min-height: 85vh;
}

.po-min-h-100vh {
  min-height: 100vh;
}

.po-pre-wrap {
  white-space: pre-wrap;
}

.po-th-cell {
  text-align: left;
  padding: 12px;
  font-weight: 700;
  color: var(--po-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--po-soft);
}

.po-td-cell {
  padding: 12px;
  border-top: 1px solid var(--po-line);
  vertical-align: top;
  color: var(--po-ink);
  font-size: 14px;
}

.po-service-table tbody tr:hover {
  background: var(--po-soft);
}

.po-td-cell .po-muted {
  font-size: 13px;
  color: var(--po-muted);
  line-height: 1.5;
}


.po-item-actions a:hover {
  text-decoration: none;
  background: var(--po-success-bg);
  color: var(--po-success);
}

.po-item-actions .po-link {
  padding: 8px 12px;
  border-radius: var(--po-radius-sm);
  background: var(--po-soft);
  color: var(--po-ink);
  font-weight: 700;
  font-size: 12px;
  transition: var(--po-transition);
  border: 1px solid var(--po-line);
}

.po-item-actions .po-link:hover {
  background: var(--po-accent-gradient);
  color: var(--po-white);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--po-shadow);
}


.po-status.danger {
  background: var(--po-danger-bg);
  border-color: #fecaca;
  color: var(--po-danger);
}

/* .po-link consolidated */

.po-sellers {
  margin-top: 14px;
  background: var(--po-white);
  border: 1px solid var(--po-line);
  border-radius: var(--po-radius-md);
  overflow: hidden;
}

.po-sellers .row {
  display: grid;
  grid-template-columns: 1.4fr 1fr .6fr .6fr;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--po-line);
  align-items: center;
}

.po-sellers .row:last-child {
  border-bottom: none;
}

.po-callout {
  margin-top: 12px;
  background: var(--po-white);
  border: 1px solid var(--po-line);
  border-radius: var(--po-radius-md);
  padding: 10px 12px;
  color: var(--po-muted);
  font-size: 12px;
}

.po-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 10px;
  color: var(--po-muted);
  font-size: 13px;
}

.po-check input {
  margin-top: 2px;
}

.po-success,
.po-danger {
  border-radius: var(--po-radius-md);
  padding: 12px 14px;
  border: 1px solid;
}

.po-success {
  background: var(--po-success-bg);
  border-color: #bbf7d0;
}

.po-danger {
  background: var(--po-danger-bg);
  border-color: #fecaca;
}

.po-footer {
  max-width: 980px;
  margin: 14px auto 0 auto;
  color: #8a94a6;
  font-size: 12px;
  text-align: center;
}

/* Public page */
.preferium-offer-public-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px;
}

.po-public-topbar {
  height: 6px;
  border-radius: var(--po-radius-full);
  background: linear-gradient(90deg, var(--po-accent), var(--po-accent2));
}

.po-public-card {
  background: var(--po-white);
  border: 1px solid var(--po-border-soft);
  border-radius: var(--po-radius-2xl);
  box-shadow: var(--po-shadow-lg);
  margin-top: 24px;
  padding: 40px;
  max-width: 100%;
}

.po-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.po-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.po-accept .po-form-row {
  margin-top: 10px;
}

@media (max-width: 900px) {

  .po-grid,
  .po-form,
  .po-grid-2,
  .po-grid-3 {
    grid-template-columns: 1fr;
  }

  .po-li {
    grid-template-columns: 1.2fr .7fr .7fr .9fr;
  }

  .po-li .actions {
    grid-column: 1 / -1;
  }
}

@media print {
  body {
    background: var(--po-white);
  }

  .po-actions,
  .po-footer {
    display: none;
  }

  .preferium-offer-public-shell {
    padding: 0;
    max-width: none;
  }

  .po-public-topbar {
    border-radius: 0;
  }

  .po-public-card {
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 10mm;
  }
}


/* Public offer UX improvements */
.po-actions-public {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  justify-content: flex-start;
}

.po-actions-public .po-btn {
  flex: 0 0 auto;
}

.po-actions-public .po-btn-primary {
  flex: 0 0 auto;
  padding: 12px 28px;
}

.po-accept {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--po-radius-lg);
  border: 1px solid rgba(79, 70, 229, .18);
  background: rgba(79, 70, 229, .06);
}

.po-accept .po-section-title {
  color: var(--po-accent);
}

.po-btn:disabled,
.po-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

@media (max-width: 900px) {
  .po-actions-public .po-btn {
    flex: 1 1 100%;
  }

  .po-public-card {
    padding: 16px;
  }

  .po-kv {
    grid-template-columns: 1fr;
  }

  .po-kv .k {
    margin-top: 8px;
  }
}


/* Public offer mobile perfection */
@media (max-width: 900px) {
  .po-public-shell {
    padding: 14px 10px 40px 10px;
  }

  .po-public-card {
    border-radius: var(--po-radius-lg);
  }

  .po-header {
    gap: 10px;
  }

  .po-h1 {
    font-size: 18px;
    line-height: 1.25;
  }

  .po-sub {
    font-size: 13px;
    line-height: 1.5;
  }

  .po-chip {
    font-size: 11px;
    padding: 6px 10px;
  }

  .po-kv {
    gap: 10px;
  }

  .po-actions-public {
    gap: 8px;
  }

  .po-actions-public .po-btn {
    width: 100%;
  }

  .po-actions-public .po-btn-primary {
    width: 100%;
  }

  #poAcceptSection {
    margin-top: 32px;
  }

  /* Make service table usable on mobile */
  .po-table {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--po-radius-md);
  }

  .po-table table {
    min-width: 860px;
  }

  .po-accept {
    margin-top: 12px;
  }

  .po-input {
    font-size: 16px;
  }

  /* avoids iOS zoom */
}


/* Enterprise public offer header */
.po-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin: 10px 0 8px 0;
}

.po-hero-right {
  text-align: right;
  min-width: 220px;
}

.po-amount-big {
  font-size: 26px;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.02em;
  color: var(--po-text);
}

.po-mini-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 8px 0;
}

.po-mini-actions .po-btn {
  flex: 1 1 200px;
}

.po-details {
  margin-top: 10px;
}

.po-details.is-collapsed {
  display: none;
}

.po-details.is-open {
  display: block;
}

@media (max-width: 900px) {
  .po-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .po-hero-right {
    text-align: left;
    min-width: auto;
  }

  .po-amount-big {
    font-size: 24px;
  }

  .po-mini-actions .po-btn {
    flex: 1 1 100%;
  }
}

/* Print: always show details and remove sticky */
@media print {
  .po-details {
    display: block;
  }

  #poAcceptSection {
    position: static;
    box-shadow: none;
  }

  .po-mini-actions {
    display: none;
  }
}


/* Slightly more enterprise feel (subtle background + crisp borders) */
.po-public-shell {
  background: linear-gradient(180deg, #f6f7fb 0%, var(--po-white) 65%);
}

.po-public-card {
  border: 1px solid rgba(226, 232, 240, .9);
}


/* Public accept: progress + trust */
.po-progress {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: var(--po-radius-full);
  border: 1px solid rgba(79, 70, 229, .22);
  background: rgba(79, 70, 229, .10);
  color: var(--po-accent);
  font-weight: 950;
  font-size: 12px;
  letter-spacing: .02em;
}

.po-trust {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(226, 232, 240, .9);
}

.po-trust-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.po-trust-foot {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(100, 116, 139, .95);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .po-trust-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .po-trust-row>div:last-child {
    width: 100%;
    text-align: left;
  }
}



/* Public: key chips + meta row + receipt */
.po-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.po-chip-soft {
  background: rgba(15, 23, 42, .04);
  border: 1px solid rgba(226, 232, 240, .9);
  color: rgba(15, 23, 42, .85);
}

.po-meta-row {
  margin-top: 10px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
}

.po-receipt {
  margin-top: 12px;
  border: 1px solid rgba(226, 232, 240, .95);
  background: var(--po-white);
  border-radius: var(--po-radius-md);
  padding: 12px;
}

.po-receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(15, 23, 42, .86);
  padding: 4px 0;
}

.po-receipt-divider {
  height: 1px;
  background: rgba(226, 232, 240, .9);
  margin: 8px 0;
}

.po-receipt-total {
  font-weight: 950;
  color: var(--po-text);
  font-size: 13px;
}

@media (max-width: 900px) {
  .po-receipt {
    width: 100%;
  }
}


/* Public details accordion animation */
.po-details {
  overflow: hidden;
  transition: max-height .28s ease, opacity .18s ease;
  opacity: 1;
}

.po-details.is-collapsed {
  opacity: 0;
}

.po-details.is-open {
  opacity: 1;
}


/* Public: expired state */
.po-chip-danger {
  background: rgba(220, 38, 38, .08);
  border: 1px solid rgba(220, 38, 38, .22);
  color: rgba(185, 28, 28, .95);
}

.po-expired-note {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--po-radius-md);
  border: 1px solid rgba(220, 38, 38, .18);
  background: rgba(220, 38, 38, .06);
}


/* Disabled controls (enterprise feel) */
.po-btn[disabled],
.po-input[disabled] {
  opacity: .55;
  cursor: not-allowed;
}


/* Activity timeline */
.po-activity {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.po-activity-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.po-activity-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--po-radius-full);
  background: #0b1220;
  margin-top: 6px;
  flex: 0 0 10px;
}

.po-activity-body {
  flex: 1;
  border: 1px solid var(--po-border, #e7ecf3);
  border-radius: var(--po-radius-md);
  padding: 10px 12px;
  background: var(--po-white);
}



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

  .po-shell {
    max-width: 760px;
  }
}

@media (max-width: 600px) {
  .preferium-offer-app-root--admin {
    padding: 24px 24px 32px 24px;
  }

  .po-card-inner {
    padding: 16px;
  }

  .po-h1 {
    font-size: 20px;
  }
}


/* Filter bar layout */
.po-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.po-filters .po-filter {
  min-width: 160px;
  flex: 1 1 160px;
}

.po-filters .po-filter.small {
  flex: 0 1 140px;
}


/* Layout helpers */
.po-left {
  min-width: 0;
}

.po-right {
  min-width: 0;
}

.po-right .po-card {
  margin-top: 0;
}

.po-left .po-card {
  margin-top: 0;
}

/* Responsive */
@media (max-width: 1100px) {
  .po-grid {
    grid-template-columns: 1fr;
  }

  .po-right {
    position: static;
  }

  .po-panel {
    max-height: none;
    overflow: visible;
  }

  .po-shell {
    padding: 16px;
  }
}




.po-left,
.po-right {
  min-width: 0;
}

.po-left .po-card,
.po-right .po-card {
  width: 100%;
}


/* Topbar header */
.po-topbar {
  position: sticky;
  top: 0;
  z-index: var(--po-z-modal);
  background: var(--po-glass);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--po-border-soft);
  height: var(--po-topbar-height);
  display: flex;
  align-items: center;
  transition: var(--po-transition);
}

.po-topbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--po-accent-gradient);
}

.po-topbar-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.po-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.po-dot {
  width: 10px;
  height: 10px;
  background: var(--po-accent-gradient);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.po-logo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.po-brand-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 16px;
  color: var(--po-ink);
  line-height: 1;
}

.po-brand-sub {
  margin-top: -2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--po-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.po-user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  align-self: center;
  gap: 0;
  margin-right: 16px;
  line-height: 1;
  height: auto;
}

.po-user-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--po-ink);
  margin: 0;
  padding: 0;
  line-height: 1.2;
  display: block;
}

.po-user-email {
  font-size: 11px;
  font-weight: 600;
  color: var(--po-muted);
  margin: 0;
  padding: 0;
  line-height: 1.2;
  display: block;
}


/* Enterprise polish */

#preferium-offer-dashboard-root,
#preferium-offer-dashboard-root * {
  box-sizing: border-box;
}

.preferium-offer-app-root {
  background: #f6f7fb;
  min-height: 100vh;
}

.po-shell {
  padding: 24px 24px 40px 24px;
}


.po-card {
  border: 1px solid var(--po-border-soft);
  border-radius: var(--po-radius-xl);
  box-shadow: var(--po-shadow);
  background: var(--po-white);
  transition: var(--po-transition);
  margin-top: 16px;
  /* Preserved from original */
}

/* po-card:hover removed - lift effect was undesired on list container */

.po-card-inner {
  padding: 20px;
  /* Compromise between 18px and 24px */
}

.po-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--po-muted);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.po-muted {
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

/* CRITICAL: Base row class for flexbox layouts */
.po-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

/* Consolidated po-row-gap handling */
.po-row-gap {
  gap: 24px;
}

.po-row.po-row-gap>.po-field {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .po-row.po-row-gap {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .po-row.po-row-gap>.po-field {
    width: 100%;
    flex: 1 1 100%;
    margin-bottom: 12px;
  }
}

/* Base field class */
.po-field {
  display: block;
  margin-bottom: 12px;
}

/* .po-row-gap removed - consolidated above */

.po-row-between {
  justify-content: space-between;
}

.po-link {
  color: var(--po-accent);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.po-link:hover {
  color: var(--po-accent2);
  text-decoration: underline;
}

.po-btn {
  height: var(--po-button-height-sm);
  min-height: var(--po-button-height-sm);
  padding: 0 14px;
  border-radius: var(--po-radius-md);
  border: 1px solid rgba(16, 24, 40, 0.12);
  background: var(--po-white);
  color: #111827;
  font-weight: 600;
  cursor: pointer;
}

.po-btn:hover {
  background: #f2f4f7;
}

.po-btn.primary {
  border: none;
  background: linear-gradient(90deg, var(--po-accent), var(--po-accent2));
  color: var(--po-white);
  box-shadow: 0 10px 24px rgba(98, 71, 255, 0.25);
}

.po-btn.primary:hover {
  filter: brightness(1.02);
}

.po-field label {
  display: block;
  font-size: 13px;
  color: #374151;
  font-weight: 700;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}

.po-field input,
.po-field select,
.po-field textarea {
  width: 100%;
  height: var(--po-button-height-md);
  border-radius: var(--po-radius-sm);
  border: 1.5px solid rgba(16, 24, 40, 0.20);
  background: var(--po-white);
  padding: 0 14px;
  font-size: 14px;
  color: #101828;
  outline: none;
  line-height: var(--po-button-height-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.po-field select {
  padding-right: 36px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.po-field textarea {
  height: auto;
  min-height: 84px;
  resize: vertical;
  line-height: 1.5;
  padding: 12px 14px;
}

.po-field input:focus,
.po-field select:focus,
.po-field textarea:focus {
  border-color: var(--po-accent);
  box-shadow: 0 0 0 3px rgba(98, 71, 255, 0.15);
}

.po-field input:hover:not(:focus),
.po-field select:hover:not(:focus),
.po-field textarea:hover:not(:focus) {
  border-color: rgba(16, 24, 40, 0.35);
}

.po-field input::placeholder {
  color: #9CA3AF;
}

.po-empty {
  margin-top: 18px;
  border: 1px dashed rgba(16, 24, 40, 0.18);
  border-radius: var(--po-radius-lg);
  padding: 18px;
  background: linear-gradient(180deg, var(--po-white), #fbfbff);
}

.po-empty-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--po-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(98, 71, 255, 0.10);
  color: #3b2cff;
  font-weight: 900;
  margin-bottom: 10px;
}

.po-empty-title {
  font-weight: 800;
  color: #101828;
  margin-bottom: 4px;
}

.po-empty-sub {
  color: #667085;
  font-size: 13px;
  max-width: 52ch;
}

.po-item {
  display: grid;
  grid-template-columns: 180px 1fr 220px auto;
  gap: 32px;
  padding: 24px 32px;
  border: 1px solid var(--po-line);
  border-radius: var(--po-radius-md);
  margin-bottom: 16px;
  background: var(--po-white);
  transition: var(--po-transition);
  align-items: center;
  cursor: pointer;
  position: relative;
  box-shadow: var(--po-shadow-sm);
}

.po-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--po-shadow-lg);
  border-color: var(--po-accent);
  z-index: var(--po-z-elevated);
}

.po-btn-danger:active {
  transform: translateY(1px);
}

@keyframes poFadeIn {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.po-item-title {
  font-weight: 700;
  color: #101828;
}

.po-item-meta {
  margin-top: 4px;
  color: var(--po-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  flex-wrap: wrap;
}

.po-item-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.po-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--po-radius-full);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(16, 24, 40, 0.10);
  background: var(--po-white);
  color: #344054;
}

.po-pill.active {
  background: rgba(98, 71, 255, 0.10);
  border-color: rgba(98, 71, 255, 0.20);
  color: #3b2cff;
}

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

  .po-shell {
    padding: 16px;
  }
}



/* Ensure full-page background in wp-admin for this page */
body.toplevel_page_preferium-tilbud,
body.toplevel_page_preferium-tilbud #wpwrap,
body.toplevel_page_preferium-tilbud #wpcontent,
body.toplevel_page_preferium-tilbud #wpbody,
body.toplevel_page_preferium-tilbud #wpbody-content {
  background: #f6f7fb;
}

body.toplevel_page_preferium-tilbud #wpbody-content {
  min-height: calc(100vh - 32px);
}

body.toplevel_page_preferium-tilbud #wpbody-content>.wrap {
  padding: 0;
  margin: 0;
  max-width: none;
}


.preferium-offer-app-root {
  min-height: calc(100vh - 32px);
}

.po-shell {
  min-height: calc(100vh - 32px);
}


/* Clean standalone shell (no theme/wp chrome) */

body.preferium-offer-clean {
  margin: 0;
  background: #f6f7fb;
  color: #101828;
}

body.preferium-offer-clean .preferium-offer-app-root {
  min-height: 100vh;
}

/* Modal System */
.po-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(16, 24, 40, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: var(--po-z-modal-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.po-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.po-modal-container {
  background: var(--po-white);
  width: 100%;
  max-width: 1100px;
  max-height: 92vh;
  border-radius: var(--po-radius-2xl);
  box-shadow: var(--po-shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: poModalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

@keyframes poModalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Animation handled via poModalIn keyframes */

.po-modal-header {
  padding: 28px 40px;
  border-bottom: 1px solid var(--po-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--po-white);
  z-index: var(--po-z-elevated);
}

@media (max-width: 600px) {
  .po-modal-header {
    padding: 16px 20px;
  }
}

.po-modal-body {
  padding: 0;
  overflow-y: auto;
  flex: 1;
  background: var(--po-bg);
}

.po-modal-section {
  padding: 48px 40px;
  border-bottom: 1px solid var(--po-line);
  background: var(--po-white);
  transition: var(--po-transition);
}

.po-modal-section:hover {
  background: var(--po-soft);
}

@media (max-width: 600px) {
  .po-modal-section {
    padding: 20px 16px;
  }
}

.po-modal-section:last-child {
  border-bottom: none;
}

.po-section-header {
  font-size: 13px;
  font-weight: 900;
  color: var(--po-accent);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.po-modal-section>.po-field,
.po-modal-section>.po-row {
  margin-top: 20px;
}

.po-modal-section>*:first-child,
.po-modal-section>.po-section-header+* {
  margin-top: 0;
}

.po-section-header::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--po-accent-gradient);
}

.po-section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--po-line);
}

.po-modal-footer {
  padding: 24px 40px;
  border-top: 1px solid var(--po-line);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  background: var(--po-glass);
  backdrop-filter: blur(10px);
  z-index: var(--po-z-elevated);
}

@media (max-width: 600px) {
  .po-modal-footer {
    padding: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .po-modal-footer .po-btn {
    flex: 1 1 auto;
    width: 100%;
  }
}

.po-modal-close {
  cursor: pointer;
  padding: 8px;
  margin: -8px;
  color: var(--po-muted);
  transition: var(--po-transition);
  font-size: 24px;
  line-height: 1;
  font-weight: 400;
}

.po-modal-close:hover {
  color: var(--po-ink);
}

/* Wide modal for profile */
.po-modal-wide {
  max-width: 900px;
}

/* Profile grid: form left, preview right */
.po-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

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

.po-profile-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.po-profile-preview {
  flex: 1;
}

/* Confirmation Modal & Danger actions */
.po-modal-small {
  max-width: 440px;
  border-radius: var(--po-radius-2xl);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.po-btn-danger {
  background: var(--po-danger);
  color: var(--po-white);
  border: none;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--po-radius-md);
  cursor: pointer;
  transition: var(--po-transition);
}

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

.po-btn-danger.loading {
  color: transparent;
  pointer-events: none;
  position: relative;
}

.po-btn-danger.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--po-white);
  border-radius: 50%;
  animation: po-spin 0.6s linear infinite;
}

/* Signature Preview Styles - Modern Centered Design */
.po-signature-preview {
  background: var(--po-soft);
  border: 1px solid var(--po-line);
  border-radius: var(--po-radius-md);
  padding: 16px;
}

.po-signature-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--po-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.po-signature-card {
  background: var(--po-white);
  border: 1px solid var(--po-line);
  border-radius: var(--po-radius-sm);
  padding: 20px;
  box-shadow: var(--po-shadow);
}

.po-signature-greeting {
  font-size: 14px;
  color: var(--po-muted);
  font-style: italic;
  margin-bottom: 16px;
}

.po-signature-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.po-signature-logo-top {
  flex-shrink: 0;
  padding-top: 2px;
}

.po-signature-logo-top img {
  width: 90px;
  height: auto;
}

.po-signature-info {
  flex: 1;
  border-left: 3px solid var(--po-accent);
  padding-left: 14px;
}

.po-signature-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--po-ink);
  letter-spacing: -0.01em;
  margin-bottom: 1px;
  white-space: nowrap;
}

.po-signature-title {
  font-size: 12px;
  color: var(--po-accent);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.po-signature-divider {
  display: none;
}

.po-signature-contact {
  font-size: 12px;
  color: var(--po-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

/* Mobile Navigation Styles */
.po-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
}

.po-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--po-ink);
  border-radius: 2px;
  transition: var(--po-transition);
}

.po-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(16, 24, 40, 0.4);
  backdrop-filter: blur(4px);
  z-index: var(--po-z-confirm);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.po-mobile-drawer.active {
  opacity: 1;
  visibility: visible;
}

.po-mobile-drawer-inner {
  position: absolute;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: var(--po-white);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.po-mobile-drawer.active .po-mobile-drawer-inner {
  right: 0;
}

.po-mobile-drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--po-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.po-mobile-drawer-close {
  font-size: 32px;
  color: var(--po-muted);
  cursor: pointer;
  line-height: 1;
}

.po-mobile-drawer-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.po-mobile-user-info {
  margin-bottom: 24px;
}

.po-mobile-menu-divider {
  height: 1px;
  background: var(--po-line);
  margin: 16px 0;
}

.po-mobile-menu-item {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--po-ink);
  text-decoration: none;
  transition: color 0.2s;
}

.po-mobile-menu-item.item-primary {
  color: var(--po-accent);
  font-weight: 800;
}

.po-mobile-menu-item:hover {
  color: var(--po-accent);
}

/* Default: desktop-only visible, mobile-only hidden */
.mobile-only {
  display: none !important;
}

.po-hamburger {
  display: none;
}

/* Dashboard header spacing */
.po-header-row {
  margin-bottom: 40px !important;
  row-gap: 24px;
}

@media (max-width: 900px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  .po-hamburger {
    display: flex;
  }

  .po-topbar-inner {
    padding: 10px 16px;
  }

  .po-brand-title {
    font-size: 14px;
  }

  .po-brand-sub {
    font-size: 10px;
  }

  .po-logo-icon {
    width: 28px;
    height: 28px;
  }

  .po-topbar-right {
    gap: 12px;
  }

  .po-header-row {
    margin-bottom: 40px !important;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 20px;
  }
}

.po-signature-sep {
  color: var(--po-line);
  margin: 0 4px;
}

/* Flow Tooltip */
.po-info-icon {
  width: 20px;
  height: 20px;
  background: var(--po-soft);
  color: var(--po-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  cursor: help;
  position: relative;
  border: 1px solid var(--po-line);
}

.po-flow-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  right: -20px;
  width: 280px;
  background: var(--po-white);
  border: 1px solid var(--po-line);
  border-radius: var(--po-radius-md);
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: var(--po-z-modal);
  text-align: left;
}

.po-info-icon:hover .po-flow-tooltip {
  display: block;
}

.po-flow-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 24px;
  border-width: 6px;
  border-style: solid;
  border-color: var(--po-white) transparent transparent transparent;
}

.po-flow-step {
  font-size: 12px;
  color: var(--po-ink);
  line-height: 1.5;
  margin-bottom: 8px;
}

.po-flow-step strong {
  color: var(--po-accent);
}

.po-mini-preview {
  margin-top: 12px;
  background: var(--po-soft);
  border-radius: var(--po-radius-sm);
  padding: 10px;
  border: 1px dashed var(--po-line);
}

.po-mini-card {
  background: var(--po-white);
  border: 1px solid var(--po-line);
  border-radius: 4px;
  padding: 8px;
  text-align: center;
}

.po-mini-pill {
  font-size: 9px;
  font-weight: 700;
  color: #16a34a;
  background: #f0fdf4;
  display: inline-block;
  padding: 2px 6px;
  border-radius: var(--po-radius-full);
}

.po-mini-btn {
  margin-top: 8px;
  background: var(--po-accent);
  color: var(--po-white);
  font-size: 10px;
  font-weight: 600;
  padding: 6px;
  border-radius: 4px;
}

/* Responsive Design Fixes */
.po-service-row {
  border-bottom: 1px solid var(--po-line);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .po-service-row .po-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .po-service-row .po-field {
    flex: 1 1 100%;
    min-width: 0;
  }

  .po-service-row .po-field[style*="flex:0 0 70px"] {
    flex: 1 1 45%;
  }

  /* Qty */
  .po-service-row .po-field[style*="flex:0 0 80px"] {
    flex: 1 1 45%;
  }

  /* Disc */

  .po-modal-container {
    width: 95%;
    max-height: 95vh;
    border-radius: var(--po-radius-md);
  }

  .po-modal-header {
    padding: 16px;
  }
}

/* Admin Page Styles */
.po-admin-card {
  max-width: 600px;
  margin: 40px auto;
  text-align: center;
  background: var(--po-white);
  padding: 40px;
  border-radius: var(--po-radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.po-admin-dot {
  width: 12px;
  height: 12px;
  background: linear-gradient(90deg, var(--po-accent), var(--po-accent2));
  border-radius: var(--po-radius-full);
  margin: 0 auto 16px auto;
}

.po-admin-h1 {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.po-admin-p {
  margin: 0 0 24px 0;
  color: var(--po-muted);
  font-size: 15px;
}

.po-admin-btn {
  height: var(--po-button-height-md);
  min-height: var(--po-button-height-md);
  line-height: 42px;
  padding: 0 30px;
  border-radius: var(--po-radius-md);
  font-weight: 700;
  font-size: 15px;
  background: var(--po-accent);
  border-color: var(--po-accent);
}

.po-admin-sub {
  margin-top: 24px;
  color: var(--po-text-light);
  font-size: 12px;
}

/* Premium UI Utilities & Enhancements */
.po-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--po-radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.po-badge-info {
  background: var(--po-info-bg);
  color: var(--po-info);
}

.po-input-lg {
  height: 52px;
  font-size: 16px;
  padding: 0 16px;
}

.po-btn-lg {
  height: var(--po-button-height-lg);
  min-height: var(--po-button-height-lg);
  font-size: 16px;
  padding: 0 var(--po-space-2xl);
  border-radius: var(--po-radius-md);
}

.po-row-between {
  justify-content: space-between;
}

/* Glassmorphism for Modals */
.po-modal-container {
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.125);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Skeleton Loading Animation */
.po-skeleton {
  background: linear-gradient(90deg, var(--po-line) 25%, var(--po-soft) 50%, var(--po-line) 75%);
  background-size: 200% 100%;
  animation: poSkeletonLoading 1.5s infinite;
  border-radius: var(--po-radius-sm);
}

@keyframes poSkeletonLoading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.po-stat-tile.po-skeleton {
  min-height: 120px;
}

/* Validation & Feedback */
.po-invalid {
  border-color: var(--po-danger) !important;
  background-color: var(--po-danger-bg) !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

.po-invalid:focus {
  border-color: var(--po-danger) !important;
}

.po-error-msg {
  font-size: 11px;
  color: var(--po-danger);
  margin-top: 4px;
  font-weight: 600;
}

/* Signing Experience Visuals */
.po-signature-area {
  margin-top: 16px;
  padding: 32px;
  background: var(--po-soft);
  border: 2px dashed var(--po-line);
  border-radius: var(--po-radius-md);
  text-align: center;
  position: relative;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--po-transition);
}

.po-signature-area:hover {
  border-color: var(--po-accent);
  background: var(--po-white);
}

.po-signature-placeholder {
  font-family: "Cedarville Cursive", cursive, "Brush Script MT", "Apple Chancery", cursive;
  font-size: 36px;
  color: var(--po-muted);
  opacity: 0.3;
  user-select: none;
  pointer-events: none;
}

.po-signature-line {
  width: 240px;
  height: 1px;
  background: var(--po-line);
  margin-top: 4px;
}

.po-signature-name-display {
  font-family: "Cedarville Cursive", cursive, "Brush Script MT", "Apple Chancery", cursive;
  font-size: 42px;
  color: var(--po-accent);
  margin-bottom: -10px;
}

.po-signature-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
}


/* ============================
   UI/UX Polish v1.1.14
   ============================ */

/* Modal section spacing - tighter and cleaner */
.po-modal-section {
  padding: 24px 32px;
}

.po-modal-body.po-p-32 {
  padding: 24px;
}

/* Section header - reduced margin */
.po-section-header {
  margin-bottom: 14px;
}

/* Field label spacing - tighter */
.po-field label {
  margin-bottom: 6px;
  font-size: 12px;
}

/* Row gap - tighter for form fields */
.po-row-gap {
  gap: 16px;
}

/* Grid width utilities - balanced for forms */
.po-w-70 {
  flex: 0 0 70px;
  min-width: 70px;
}

.po-w-80 {
  flex: 0 0 80px;
  min-width: 80px;
}

.po-w-90 {
  flex: 0 0 90px;
  min-width: 90px;
}

.po-w-100 {
  flex: 0 0 100px;
  min-width: 100px;
}

.po-w-120 {
  flex: 0 0 120px;
  min-width: 120px;
}

.po-w-auto {
  flex: 0 0 auto;
}

.po-flex-1 {
  flex: 1 1 0%;
}

.po-flex-2 {
  flex: 2 1 0%;
}

.po-min-w-80 {
  min-width: 80px;
}

.po-min-w-100 {
  min-width: 100px;
}

.po-min-w-120 {
  min-width: 120px;
}

.po-min-w-150 {
  min-width: 150px;
}

/* Service row improvements */
.po-service-row {
  border: 1px solid var(--po-line);
  border-radius: var(--po-radius-md);
  padding: 20px;
  margin-bottom: 16px;
  background: var(--po-white);
  transition: var(--po-transition);
}

.po-service-row:hover {
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.06);
}

.po-service-row:last-child {
  margin-bottom: 0;
}

/* Service row inner spacing */
.po-service-row .po-field {
  margin-bottom: 12px;
}

.po-service-row .po-row.po-row-gap {
  margin-top: 12px;
  align-items: flex-end;
}

.po-service-row .po-row.po-row-gap .po-field {
  margin-bottom: 0;
}

/* Sum display in service rows - vertical alignment */
.po-service-row .po-row .po-field .po-font-600 {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 12px;
  background: var(--po-soft);
  border-radius: var(--po-radius-sm);
  font-weight: 700;
  color: var(--po-ink);
}

/* Delete button in service rows - icon style */
.po-service-row [data-act="removeService"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--po-radius-sm);
  background: var(--po-danger-bg);
  color: var(--po-danger);
  font-size: 16px;
  text-decoration: none;
  transition: var(--po-transition);
}

.po-service-row [data-act="removeService"]:hover {
  background: var(--po-danger);
  color: var(--po-white);
}

/* Hide text for delete link */
.po-service-row [data-act="removeService"]::before {
  content: "🗑";
}

.po-service-row [data-act="removeService"] {
  font-size: 0;
}

.po-service-row [data-act="removeService"]::before {
  font-size: 16px;
}

/* Vertical alignment for end items */
.po-align-end {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

/* Add service button - more prominent */
.po-modal-section .po-actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--po-line);
}

/* Consolidated in GHOST BUTTONS section */

/* Footer button improvements */
.po-modal-footer {
  padding: 16px 24px;
  gap: 12px;
}

.po-modal-footer .po-flex-1 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.po-modal-footer .po-send-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Test send button - remove emoji, more subtle */
#poTestSendBtn {
  font-size: 13px;
  color: var(--po-muted);
}

#poTestSendBtn:hover {
  color: var(--po-accent);
}

/* Total sum display - better alignment */
.po-modal-section .po-text-right .po-muted {
  margin-bottom: 2px;
}

.po-modal-section .po-text-right .po-brand-title {
  line-height: 1.2;
}

/* Input polish */
.po-field input,
.po-field select {
  font-size: 14px;
  font-weight: 500;
}

.po-field input::placeholder {
  color: #c4c4c4;
  font-weight: 400;
}

/* Responsive fixes */
@media (max-width: 600px) {
  .po-modal-section {
    padding: 16px;
  }

  .po-service-row {
    padding: 16px;
  }

  .po-service-row .po-row.po-row-gap {
    flex-wrap: wrap;
  }

  .po-service-row .po-row.po-row-gap .po-field {
    flex: 1 1 calc(50% - 8px);
    min-width: 80px;
  }

  .po-modal-footer {
    flex-direction: column;
  }

  .po-modal-footer .po-flex-1 {
    width: 100%;
    justify-content: center;
  }

  .po-modal-footer .po-send-wrap {
    width: 100%;
    justify-content: center;
  }

  .po-modal-footer .po-btn {
    flex: 1;
  }
}


/* ============================
   Admin Settings UI Polish v1.1.15
   ============================ */

/* Form cards for adding new items */
.po-card-form {
  background: var(--po-white);
  border: 1px solid var(--po-line);
  border-radius: var(--po-radius);
  padding: 24px;
  box-shadow: var(--po-shadow-sm);
}

.po-card-form .po-section-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--po-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0;
}

.po-card-form .po-field {
  margin-bottom: 0;
}

/* Form action button area */
.po-form-actions {
  padding-top: 20px;
  border-top: 1px solid var(--po-line);
  display: flex;
  justify-content: flex-start;
  gap: 12px;
}

.po-form-actions .po-btn-primary {
  padding: 0 24px;
  height: var(--po-button-height-md);
  min-height: var(--po-button-height-md);
  font-size: 14px;
  font-weight: 700;
}

/* List item improvements */
.po-list .po-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid var(--po-line);
  border-radius: var(--po-radius-md);
  margin-bottom: 12px;
  background: var(--po-white);
  transition: var(--po-transition);
}

.po-list .po-item:hover {
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.06);
}

.po-list .po-item:last-child {
  margin-bottom: 0;
}

/* Item main content */
.po-item-main {
  min-width: 0;
}

.po-item-main .po-strong {
  font-weight: 700;
  color: var(--po-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.po-item-main .po-muted {
  font-size: 13px;
  margin-top: 2px;
}

/* Item price section */
.po-item-price {
  text-align: right;
  min-width: 100px;
}

.po-price-primary {
  font-weight: 700;
  color: var(--po-ink);
  font-size: 14px;
}

.po-price-secondary {
  font-size: 12px;
  color: var(--po-muted);
  margin-top: 2px;
}

/* Item actions - horizontal with icons */
.po-item-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
}

.po-item-actions .po-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--po-radius-sm);
  background: var(--po-soft);
  color: var(--po-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: var(--po-transition);
}

.po-item-actions .po-link:hover {
  background: var(--po-accent);
  color: var(--po-white);
}

/* Danger action buttons */
.po-item-actions .po-link[data-act="deletePackage"],
.po-item-actions .po-link[data-act="deleteSeller"] {
  background: var(--po-danger-bg);
  color: var(--po-danger);
}

.po-item-actions .po-link[data-act="deletePackage"]:hover,
.po-item-actions .po-link[data-act="deleteSeller"]:hover {
  background: var(--po-danger);
  color: var(--po-white);
}

/* Remove seller button styling */
.po-item-actions .po-link[data-act="deleteSeller"] {
  background: var(--po-danger-bg);
  color: var(--po-danger);
}

.po-item-actions .po-link[data-act="deleteSeller"]:hover {
  background: var(--po-danger);
  color: var(--po-white);
}

/* Responsive for admin settings */
@media (max-width: 900px) {
  .po-list .po-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .po-item-price {
    text-align: left;
  }

  .po-item-actions {
    flex-wrap: wrap;
  }

  .po-card-form {
    padding: 16px;
  }

  .po-form-actions {
    flex-direction: column;
  }

  .po-form-actions .po-btn-primary {
    width: 100%;
  }
}


/* ============================
   Comprehensive UI/UX Polish v1.1.16
   ============================ */

/* === MICRO-ANIMATIONS === */
@keyframes poFadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes poPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes poShine {
  from {
    background-position: -200% 0;
  }

  to {
    background-position: 200% 0;
  }
}

@keyframes poSuccess {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Animate list items on load */
.po-list .po-item {
  animation: poFadeInUp 0.3s ease forwards;
}

.po-list .po-item:nth-child(1) {
  animation-delay: 0s;
}

.po-list .po-item:nth-child(2) {
  animation-delay: 0.05s;
}

.po-list .po-item:nth-child(3) {
  animation-delay: 0.1s;
}

.po-list .po-item:nth-child(4) {
  animation-delay: 0.15s;
}

.po-list .po-item:nth-child(5) {
  animation-delay: 0.2s;
}

/* Stat tiles animation */
.po-stat-tile {
  animation: poFadeInUp 0.4s ease forwards;
}

.po-stat-tile:nth-child(1) {
  animation-delay: 0s;
}

.po-stat-tile:nth-child(2) {
  animation-delay: 0.1s;
}

.po-stat-tile:nth-child(3) {
  animation-delay: 0.2s;
}

.po-stat-tile:nth-child(4) {
  animation-delay: 0.3s;
}

/* === LOADING STATES === */
.po-btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.po-btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--po-white);
  border-radius: 50%;
  animation: po-spin 0.6s linear infinite;
}

.po-btn-primary.loading::after {
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: var(--po-white);
}

.po-btn:not(.po-btn-primary).loading::after {
  border-color: rgba(99, 102, 241, 0.3);
  border-top-color: var(--po-accent);
}

/* Skeleton loading for cards */
.po-skeleton-card {
  background: linear-gradient(90deg, var(--po-soft) 25%, var(--po-white) 50%, var(--po-soft) 75%);
  background-size: 200% 100%;
  animation: poShine 1.5s infinite;
  border-radius: var(--po-radius);
  height: 80px;
  margin-bottom: 12px;
}

/* === EMPTY STATES === */
.po-empty {
  text-align: center;
  padding: 48px 24px;
  background: linear-gradient(180deg, var(--po-white) 0%, var(--po-soft) 100%);
  border: 2px dashed var(--po-line);
  border-radius: var(--po-radius);
}

.po-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px auto;
  background: var(--po-accent-gradient);
  border-radius: var(--po-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--po-white);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.po-empty-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--po-ink);
  margin-bottom: 8px;
}

.po-empty-text {
  font-size: 14px;
  color: var(--po-muted);
  max-width: 300px;
  margin: 0 auto 20px auto;
  line-height: 1.6;
}

.po-empty .po-btn {
  animation: poSuccess 0.3s ease;
}

/* === FOCUS STATES (A11Y) === */
.po-btn:focus-visible,
.po-field input:focus-visible,
.po-field select:focus-visible,
.po-field textarea:focus-visible {
  outline: 2px solid var(--po-accent);
  outline-offset: 2px;
}

.po-link:focus-visible {
  outline: 2px solid var(--po-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* === TOUCH-FRIENDLY SIZES === */
@media (max-width: 900px) {
  .po-btn {
    min-height: var(--po-button-height-lg);
    padding: 0 20px;
    font-size: 15px;
  }

  .po-field input,
  .po-field select {
    min-height: var(--po-button-height-lg);
    font-size: 16px;
    /* Prevents zoom on iOS */
  }

  .po-link {
    padding: 12px;
    margin: -12px;
  }
}

/* === MOBILE NAVIGATION === */
@media (max-width: 600px) {
  .po-topbar {
    padding: 0;
  }

  .po-topbar-inner {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .po-brand {
    flex: 1;
  }

  .po-brand-title {
    font-size: 16px;
  }

  .po-brand-sub {
    font-size: 11px;
  }

  .po-menu-group {
    gap: 8px;
  }

  .po-menu-group .po-btn {
    padding: 0 12px;
    font-size: 13px;
  }

  /* Refined mobile tabs - Prevent full-width stretching */
  .po-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: transparent;
    padding: 0;
    justify-content: flex-start;
  }

  .po-tab {
    flex: 0 1 auto;
    /* Don't grow to fill space */
    text-align: center;
    padding: 8px 14px;
    min-width: auto;
    font-size: 13px;
    background: var(--po-white);
    border: 1px solid var(--po-line);
    border-radius: var(--po-radius-sm);
    box-shadow: var(--po-shadow-sm);
  }

  .po-tab.active {
    background: var(--po-accent-gradient);
    color: var(--po-white);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
  }
}

/* === STATS TILES MOBILE === */
@media (max-width: 600px) {
  .po-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .po-stat-tile {
    padding: 16px;
  }

  .po-stat-tile .po-stat-value {
    font-size: 24px;
  }

  .po-stat-tile .po-stat-label {
    font-size: 11px;
  }
}

/* Consolidated to 600px mobile breakpoint */

/* === MODAL MOBILE === */
@media (max-width: 600px) {
  .po-modal-container {
    width: 100%;
    max-width: none;
    max-height: 100vh;
    border-radius: var(--po-radius-lg) 16px 0 0;
    margin-top: auto;
  }

  .po-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .po-modal-header {
    padding: 16px;
    position: sticky;
    top: 0;
    background: var(--po-white);
    z-index: var(--po-z-elevated);
  }

  .po-modal-body {
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .po-modal-footer {
    position: sticky;
    bottom: 0;
    background: var(--po-white);
    border-top: 1px solid var(--po-line);
    padding: 12px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .po-modal-footer .po-btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .po-modal-section {
    padding: 16px;
  }

  .po-row.po-row-gap {
    flex-direction: column;
    gap: 12px;
  }

  .po-row.po-row-gap>.po-field {
    width: 100%;
    flex: 1 1 100%;
    min-width: 0;
  }
}

/* === OFFER CARDS MOBILE === */
@media (max-width: 600px) {
  .po-list .po-item {
    padding: 14px;
  }

  .po-item-status {
    margin-bottom: 8px;
  }

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

  .po-item-meta {
    font-size: 12px;
  }

  .po-item-price {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--po-line);
  }

  .po-item-actions {
    margin-top: 12px;
    gap: 6px;
  }

  .po-item-actions .po-link {
    padding: 8px 12px;
    font-size: 11px;
  }
}

/* === ENHANCED HOVER STATES === */
@media (hover: hover) {
  .po-stat-tile:hover::before {
    opacity: 1;
  }

  .po-btn:not(:disabled):hover {
    transform: translateY(-1px);
  }

  .po-btn:not(:disabled):active {
    transform: translateY(0);
  }

  .po-card-form:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.06);
  }
}

/* === PRINT STYLES === */
@media print {

  .po-topbar,
  .po-modal-overlay,
  .po-btn,
  .po-hamburger,
  .po-mobile-drawer {
    display: none;
  }

  .po-list .po-item {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }

  body {
    background: var(--po-white);
  }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ============================
   Public Offer Page Polish v1.1.17
   ============================ */

/* Header improvements */
.po-public-card .po-h1 {
  font-size: clamp(24px, 5vw, 32px);
}

.po-pill {
  animation: poFadeInUp 0.3s ease;
}

/* Improved hero section */
.po-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 24px;
  background: linear-gradient(135deg, var(--po-soft) 0%, var(--po-white) 100%);
  border: 1px solid var(--po-line);
  border-radius: var(--po-radius);
}

.po-hero-right {
  text-align: right;
  flex-shrink: 0;
}

/* Amount styling */
.po-amount-big {
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: var(--po-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Receipt styling */
.po-receipt {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--po-line);
}

.po-receipt-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 4px;
}

/* Signature area improvements */
.po-signature-area {
  background: linear-gradient(180deg, #fafbfc 0%, var(--po-white) 100%);
  border: 2px dashed var(--po-line);
  border-radius: var(--po-radius);
  padding: 24px;
  position: relative;
}

.po-signature-placeholder {
  font-family: 'Cedarville Cursive', cursive;
  font-size: 32px;
  color: #d1d5db;
  text-align: center;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--po-transition);
}

.po-signature-placeholder.signed {
  color: var(--po-ink);
}

.po-signature-line {
  height: 2px;
  background: var(--po-line);
  margin-top: 12px;
}

.po-signature-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
}

/* Success/Danger boxes animation */
.po-success.shadow-lg {
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
}

/* Public page action buttons */
.po-actions-public {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.po-actions-public .po-btn-primary {
  min-height: var(--po-button-height-md);
  padding: 10px 24px;
  font-size: 14px;
}

.po-actions-public .po-btn-ghost {
  font-size: 13px;
  padding: 10px 16px;
}

/* Trust section */
.po-trust {
  background: var(--po-soft);
  border-radius: var(--po-radius);
  padding: 20px;
}

/* Better service table on mobile */
@media (max-width: 600px) {

  /* Stack hero section */
  .po-hero {
    flex-direction: column;
    padding: 16px;
  }

  .po-hero-right {
    text-align: left;
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid var(--po-line);
  }

  .po-receipt-row {
    justify-content: space-between;
  }

  /* Public card spacing */
  .po-public-card {
    padding: 16px;
    margin: 0 8px 8px 8px;
    border-radius: var(--po-radius-lg);
  }

  /* Key-value pairs */
  .po-kv {
    font-size: 13px;
  }

  .po-kv .k {
    color: var(--po-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  /* Signature area compact */
  .po-signature-area {
    padding: 16px;
  }

  .po-signature-placeholder {
    font-size: 24px;
    min-height: 48px;
  }

  /* Full-width buttons */
  .po-accept .po-btn {
    width: 100%;
  }

  /* Boxes stack */
  .po-box {
    padding: 16px;
  }

  /* Section titles */
  .po-section-title {
    font-size: 11px;
  }

  /* Footer */
  .po-footer {
    font-size: 10px;
    padding: 16px;
  }

  /* Trust section */
  .po-trust .po-row-between {
    flex-direction: column;
    gap: 16px;
  }

  .po-trust .po-text-right {
    text-align: left;
  }
}

/* Service table responsiveness */
@media (max-width: 900px) {
  .po-service-table {
    font-size: 12px;
  }

  .po-th-cell,
  .po-td-cell {
    padding: 10px 8px;
  }

  .po-service-table th:not(:first-child),
  .po-service-table td:not(:first-child) {
    padding-left: 8px;
  }
}

/* Improve CTA button prominence */
.po-btn-lg {
  height: var(--po-button-height-lg);
  min-height: var(--po-button-height-lg);
  padding: 0 var(--po-space-2xl);
  font-size: 16px;
  font-weight: 800;
  border-radius: var(--po-radius-md);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
  transition: all 0.2s ease;
}

.po-btn-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.35);
}


/* ============================
   PREMIUM UI/UX OVERHAUL v2.0
   ============================ */

/* === PREMIUM DESIGN TOKENS === */
:root {
  --po-premium-shadow: 0 4px 20px -4px rgba(99, 102, 241, 0.15),
    0 8px 40px -8px rgba(99, 102, 241, 0.1);
  --po-glass-blur: saturate(180%) blur(20px);
  --po-glow-accent: 0 0 40px rgba(99, 102, 241, 0.15);
  --po-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --po-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === PREMIUM GLASSMORPHISM STAT TILES === */
.po-stat-tile {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
  backdrop-filter: var(--po-glass-blur);
  -webkit-backdrop-filter: var(--po-glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06),
    0 2px 8px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  overflow: hidden;
}

.po-stat-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--po-accent-gradient);
  opacity: 0;
  transition: opacity 0.3s var(--po-smooth);
}

.po-stat-tile:hover::before {
  opacity: 1;
}

.po-stat-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--po-premium-shadow),
    0 20px 40px -15px rgba(99, 102, 241, 0.2);
}

.po-stat-value {
  font-size: clamp(32px, 5vw, 40px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--po-ink) 0%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.po-stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--po-muted);
}

/* === PREMIUM OFFER CARDS === */
.po-list .po-item {
  position: relative;
  background: var(--po-white);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04),
    0 4px 12px rgba(15, 23, 42, 0.02);
  transition: all 0.3s var(--po-smooth);
  overflow: hidden;
}

.po-list .po-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--po-accent-gradient);
  opacity: 0;
  transition: opacity 0.3s var(--po-smooth);
}

.po-list .po-item:hover {
  border-color: rgba(99, 102, 241, 0.15);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08),
    0 4px 12px rgba(99, 102, 241, 0.06);
  transform: translateY(-2px);
}

.po-list .po-item:hover::before {
  opacity: 1;
}

/* === PREMIUM TOPBAR === */
.po-topbar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: var(--po-glass-blur);
  -webkit-backdrop-filter: var(--po-glass-blur);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03),
    0 4px 20px rgba(15, 23, 42, 0.02);
}

.po-brand-title {
  background: linear-gradient(135deg, var(--po-ink) 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === PREMIUM BUTTONS === */
.po-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.25s var(--po-spring);
}

.po-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.po-btn:active::before {
  width: 300px;
  height: 300px;
}

.po-btn-primary {
  background: var(--po-accent-gradient);
  color: var(--po-white);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: none;
}

.po-btn-primary:hover {
  background: var(--po-accent-gradient);
  color: var(--po-white);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Consolidated in GHOST BUTTONS section */

/* === PREMIUM INPUT STYLING === */
.po-field input,
.po-field select,
.po-field textarea {
  background: rgba(248, 250, 252, 0.8);
  border: 1.5px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--po-radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--po-ink);
  transition: all 0.2s var(--po-smooth);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
}

.po-field input:hover,
.po-field select:hover,
.po-field textarea:hover {
  border-color: rgba(99, 102, 241, 0.2);
  background: rgba(255, 255, 255, 0.9);
}

.po-field input:focus,
.po-field select:focus,
.po-field textarea:focus {
  outline: none;
  border-color: var(--po-accent);
  background: var(--po-white);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08),
    inset 0 1px 2px rgba(15, 23, 42, 0.02);
}

.po-field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--po-muted);
  margin-bottom: 8px;
  display: block;
}


/* === PREMIUM STATUS BADGES === */
.po-badge,
.po-status-badge,
.po-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--po-radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: all 0.2s var(--po-smooth);
}

.po-badge-success,
.po-status-accepted {
  background: linear-gradient(135deg, var(--po-success-bg) 0%, #d1fae5 100%);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.po-badge-warning,
.po-status-sent {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.po-badge-danger,
.po-status-revoked {
  background: linear-gradient(135deg, var(--po-danger-bg) 0%, #fecaca 100%);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.po-badge-info,
.po-status-draft {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  color: var(--po-accent);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* === PREMIUM MODAL === */
.po-modal-container {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: var(--po-glass-blur);
  -webkit-backdrop-filter: var(--po-glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25),
    0 0 0 1px rgba(15, 23, 42, 0.05);
  border-radius: var(--po-radius);
}

.po-modal-overlay {
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.po-modal-header {
  background: linear-gradient(180deg, var(--po-white) 0%, rgba(248, 250, 252, 0.5) 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

/* === PREMIUM CARDS === */
.po-box,
.po-card,
.po-card-form {
  background: var(--po-white);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--po-radius);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02),
    0 4px 12px rgba(15, 23, 42, 0.01);
  transition: all 0.25s var(--po-smooth);
}

.po-box:hover,
.po-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

/* === SECTION TITLES === */
.po-section-title,
.po-section-header {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--po-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.po-section-title::after,
.po-section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--po-line) 0%, transparent 100%);
}

/* === PREMIUM DIVIDER === */
.po-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--po-line) 50%, transparent 100%);
  margin: 24px 0;
  border: none;
}

/* === PREMIUM SIGNATURE AREA === */
.po-signature-area {
  background: linear-gradient(180deg, #fafbfc 0%, var(--po-white) 100%);
  border: 2px dashed rgba(99, 102, 241, 0.2);
  border-radius: var(--po-radius);
  padding: 32px;
  position: relative;
  transition: all 0.3s var(--po-smooth);
}

.po-signature-area:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.08);
}

.po-signature-placeholder {
  font-family: 'Cedarville Cursive', cursive;
  font-size: 36px;
  color: #cbd5e1;
  text-align: center;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--po-smooth);
}

.po-signature-placeholder.signed {
  color: var(--po-ink);
  text-shadow: 0 2px 4px rgba(15, 23, 42, 0.1);
}

/* === PREMIUM SUCCESS/DANGER BOXES === */
.po-success {
  background: linear-gradient(135deg, var(--po-success-bg) 0%, #d1fae5 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--po-radius);
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
}

.po-success::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--po-success) 0%, #059669 100%);
}

.po-danger {
  background: linear-gradient(135deg, var(--po-danger-bg) 0%, #fecaca 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--po-radius);
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
}

.po-danger::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--po-danger) 0%, #dc2626 100%);
}

/* === PREMIUM ANIMATIONS === */
@keyframes poShimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes poPop {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }

  50% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes poSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes poGlow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
  }

  50% {
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
  }
}

/* Apply animations */
.po-modal-container {
  animation: poPop 0.35s var(--po-spring);
}

.po-success,
.po-danger {
  animation: poSlideUp 0.4s var(--po-smooth);
}

/* === PREMIUM SCROLLBAR === */
#preferium-offer-dashboard-root ::-webkit-scrollbar,
.preferium-offer-public-shell ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

#preferium-offer-dashboard-root ::-webkit-scrollbar-track,
.preferium-offer-public-shell ::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.02);
  border-radius: 4px;
}

#preferium-offer-dashboard-root ::-webkit-scrollbar-thumb,
.preferium-offer-public-shell ::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.1);
  border-radius: 4px;
  transition: background 0.2s;
}

#preferium-offer-dashboard-root ::-webkit-scrollbar-thumb:hover,
.preferium-offer-public-shell ::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.3);
}

/* === PREMIUM SELECTION === */
#preferium-offer-dashboard-root ::selection,
.preferium-offer-public-shell ::selection {
  background: rgba(99, 102, 241, 0.2);
  color: var(--po-ink);
}

/* === PREMIUM LOADING SKELETON === */
.po-skeleton {
  background: linear-gradient(90deg,
      rgba(15, 23, 42, 0.04) 25%,
      rgba(15, 23, 42, 0.08) 50%,
      rgba(15, 23, 42, 0.04) 75%);
  background-size: 200% 100%;
  animation: poShimmer 1.5s infinite;
  border-radius: var(--po-radius-sm);
}

/* === PREMIUM TOOLTIP === */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 8px 12px;
  background: var(--po-ink);
  color: var(--po-white);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--po-radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s var(--po-smooth);
  z-index: var(--po-z-modal);
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* === PREMIUM LINK STYLING === */
.po-link {
  color: var(--po-accent);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}

.po-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--po-accent-gradient);
  transition: width 0.25s var(--po-spring);
}

.po-link:hover::after {
  width: 100%;
}

/* === PREMIUM FILTER/SEARCH === */
.po-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.po-filters .po-field input,
.po-filters .po-field select {
  min-height: var(--po-button-height-md);
  border-radius: var(--po-radius-sm);
}

/* === SIMPLIFIED ACCEPTANCE SECTION === */
.po-accept-simple {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, rgba(168, 85, 247, 0.04) 100%);
  border: 2px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--po-radius);
  padding: 32px;
  text-align: center;
}

.po-accept-header {
  margin-bottom: 24px;
}

.po-accept-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
}

.po-accept-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--po-ink);
  margin: 0;
  letter-spacing: -0.02em;
}

.po-accept-form {
  margin-bottom: 24px;
}

.po-accept-label {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--po-muted);
  margin-bottom: 8px;
}

.po-accept-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 500;
  border: 2px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--po-radius-md);
  background: var(--po-white);
  transition: all 0.2s ease;
  text-align: center;
}

.po-accept-input:focus {
  outline: none;
  border-color: var(--po-accent);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.po-accept-input::placeholder {
  color: #cbd5e1;
}

.po-accept-terms {
  font-size: 12px;
  color: var(--po-muted);
  margin: 12px 0 0 0;
  text-align: center;
}

.po-accept-terms a {
  color: var(--po-accent);
  text-decoration: underline;
}

.po-accept-btn {
  width: 100%;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
}

/* Help toggle - hidden by default */
.po-help-toggle {
  margin-top: 24px;
  text-align: center;
}

.po-help-summary {
  font-size: 13px;
  color: var(--po-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--po-radius-sm);
  transition: all 0.2s;
  list-style: none;
}

.po-help-summary::-webkit-details-marker {
  display: none;
}

.po-help-summary:hover {
  color: var(--po-accent);
  background: rgba(99, 102, 241, 0.04);
}

.po-help-content {
  margin-top: 12px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.02);
  border-radius: var(--po-radius-sm);
  text-align: left;
}

.po-help-content p {
  font-size: 13px;
  color: var(--po-muted);
  margin: 0 0 8px 0;
}

.po-help-content p:last-child {
  margin-bottom: 0;
}

.po-link-btn {
  background: none;
  border: none;
  color: var(--po-accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.po-link-btn:hover {
  color: var(--po-accent);
}

/* Document management table */
.po-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.po-table th,
.po-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--po-line);
}

.po-table th {
  font-weight: 600;
  color: var(--po-muted);
  background: var(--po-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.po-table td {
  color: var(--po-ink);
}

.po-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.03);
}

.po-badge-green {
  background: var(--po-success-bg);
  color: var(--po-success);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}


/* ============================
   UI AUDIT FIXES v1.2.0 - Comprehensive
   ============================ */

/* === 1. DARKER LABELS (Global) === */
/* Make all labels darker and more readable */
.po-label,
.po-field label,
.po-section-header,
.preferium-offer-app-root label,
.preferium-offer-public-shell label {
  color: #374151;
  font-weight: 700;
}

/* Key-value labels on public page */
.po-kv .k {
  color: #4b5563;
  font-weight: 600;
}

/* Section titles */
.po-section-title {
  color: #1f2937;
  font-weight: 800;
}

/* === 2. MUTED TEXT - Better Contrast === */
.po-muted {
  color: #4b5563;
}

.po-muted.po-small {
  color: #6b7280;
}

/* === 3. TABLE HEADERS - Better Visibility === */
.po-service-table th,
.po-table th {
  background: var(--po-soft);
}

/* === 4. PLACEHOLDER TEXT - More Visible === */
input::placeholder,
textarea::placeholder,
.po-accept-input::placeholder,
.po-field input::placeholder,
.po-field textarea::placeholder {
  color: #9ca3af;
  opacity: 1;
}

/* === 5. GHOST BUTTONS - Darker Borders === */
.po-btn-ghost,
.po-btn.po-btn-ghost {
  border: 1px solid var(--po-line);
  color: var(--po-muted);
  background: var(--po-white);
  font-weight: 600;
  transition: var(--po-transition);
}

.po-btn-ghost:hover,
.po-btn.po-btn-ghost:hover {
  border-color: var(--po-accent);
  color: var(--po-accent);
  background: rgba(99, 102, 241, 0.04);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* === 6. LOG MODAL - Better Padding === */
.po-modal-container[data-modal="log"] .po-modal-body,
.po-modal-body.po-log-body {
  padding: 24px 32px;
}

/* Log modal activity items */
.po-activity-item {
  padding: 12px 0;
}

.po-activity-body {
  padding: 14px 16px;
}

/* === 7. PUBLIC PAGE - Enhanced Contrast === */
/* Accept section label */
.po-accept-label {
  color: #374151;
  font-weight: 700;
  font-size: 14px;
}

/* Accept input placeholder */
.po-accept-input::placeholder {
  color: var(--po-text-light);
}

/* Terms link text */
.po-accept-terms {
  color: #4b5563;
  font-size: 13px;
}

/* Help toggle summary */
.po-help-summary {
  color: #6b7280;
  font-weight: 600;
}

/* Help content paragraphs */
.po-help-content p {
  color: #4b5563;
}

/* === 8. FOOTER - Better Visibility === */
.po-footer {
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
}

/* === 9. CHIPS & PILLS - Better Contrast === */
.po-chip,
.po-pill {
  color: #374151;
  border-color: #d1d5db;
  font-weight: 600;
}

.po-chip-soft {
  color: #374151;
  background: rgba(15, 23, 42, 0.06);
}

/* === 10. RECEIPT/SUMMARY ROWS === */
.po-receipt-row {
  color: #374151;
  font-weight: 500;
}

.po-receipt-row .po-strong {
  color: #1f2937;
  font-weight: 700;
}

/* === 11. META ROW ON PUBLIC PAGE === */
.po-meta-row {
  font-size: 13px;
}

.po-meta-row .po-muted {
  color: #6b7280;
}

.po-meta-row .po-strong {
  color: #1f2937;
  font-weight: 700;
}

/* === 12. TRUST SECTION === */
.po-trust .po-muted {
  color: #4b5563;
}

/* === 13. CALLOUT STYLING === */
.po-callout {
  background: var(--po-soft);
  border: 1px solid #e2e8f0;
  color: #374151;
  padding: 12px 16px;
  border-radius: var(--po-radius-sm);
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
}

/* === 14. DIVIDER === */
.po-divider {
  background: #e2e8f0;
  height: 1px;
  margin: 32px 0;
}

/* === 15. HERO META === */
.po-h-meta {
  color: #4b5563;
  font-weight: 500;
  font-size: 15px;
}

/* === 16. FILTER INPUTS - Better Visibility === */
.po-filters input,
.po-filters select {
  border: 1.5px solid rgba(15, 23, 42, 0.15);
}

.po-filters input:focus,
.po-filters select:focus {
  border-color: var(--po-accent);
}

/* === 17. SELLER/ARCHIVE TAB ITEMS === */
.po-item-meta {
  color: #4b5563;
}

/* === 18. MODAL TITLE === */
.po-modal-title,
.po-brand-title {
  color: #1f2937;
}

/* === 19. SECTION HEADER LINE === */
.po-section-header {
  color: #6b7280;
}

.po-section-header::after {
  background: #e2e8f0;
}

/* === 20. BOX STYLING === */
.po-box {
  background: var(--po-soft);
  border: 1px solid #e2e8f0;
}

/* === 21. ACTION LINKS IN OFFER LIST === */
.po-item-actions a {
  color: #4b5563;
  font-weight: 600;
}

.po-item-actions a:hover {
  color: var(--po-accent);
}

/* === 22. DOCUMENT HISTORY TABLE === */
.po-table tbody td {
  color: #374151;
}

.po-table .po-link {
  color: var(--po-accent);
  font-weight: 600;
}

/* Overhauled Deal Builder Components */

.po-service-card {
  background: var(--po-white);
  border: 2px solid var(--po-line);
  border-radius: var(--po-radius-md);
  padding: 24px;
  margin-bottom: 24px;
  transition: var(--po-transition);
  position: relative;
  box-shadow: var(--po-shadow-sm);
}

.po-service-card:hover {
  border-color: var(--po-accent);
  box-shadow: var(--po-shadow);
}

.po-service-card-header {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
}

.po-service-desc-text {
  padding: 12px 16px;
  background-color: var(--po-soft);
  border-radius: var(--po-radius-sm);
  line-height: 1.6;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.po-service-grid {
  display: grid;
  grid-template-columns: 80px 1fr 100px 180px;
  gap: 16px;
  margin-top: 20px;
  align-items: flex-end;
}

@media (max-width: 900px) {
  .po-service-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.po-service-row-total {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-weight: 800;
  font-size: 16px;
  color: var(--po-ink);
  background: var(--po-soft);
  padding: 0 16px;
  border-radius: var(--po-radius-sm);
}

.po-total-card {
  background: var(--po-accent-gradient);
  color: var(--po-white);
  padding: 24px;
  border-radius: var(--po-radius-md);
  box-shadow: var(--po-shadow-lg);
}

.po-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 8px;
}

.po-total-main {
  font-size: 24px;
  font-weight: 950;
  opacity: 1;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.po-btn-icon {
  width: var(--po-button-height-sm);
  height: var(--po-button-height-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--po-radius-sm);
  font-size: 20px;
  text-decoration: none;
  transition: var(--po-transition);
}

.po-btn-danger-soft {
  background: var(--po-danger-bg);
  color: var(--po-danger);
}

.po-btn-danger-soft:hover {
  background: var(--po-danger);
  color: var(--po-white);
  transform: rotate(90deg);
}

.po-btn-xl {
  height: 54px;
  padding: 0 32px;
  font-size: 16px;
  border-radius: var(--po-radius-lg);
}

/* Consolidated in section 5/base */


/* Navigation & Topbar Polish */

.po-brand-sub {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--po-accent);
  margin-top: -2px;
}

.po-topbar-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.po-menu-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.po-user {
  text-align: right;
  line-height: 1.2;
}

.po-user-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--po-ink);
}

.po-user-email {
  font-size: 11px;
  color: var(--po-muted);
}

/* Confirm Modal Enhancements */

.po-confirm-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 24px;
  background: var(--po-soft);
}

.po-confirm-icon-wrap.danger {
  background: var(--po-danger-bg);
  color: var(--po-danger);
}

.po-confirm-icon-wrap.warning {
  background: #fff8eb;
  color: #f79009;
}

.po-confirm-icon-wrap.primary {
  background: #f0f5ff;
  color: var(--po-accent);
}

/* Layout Utilities */

.po-shell {
  max-width: 1400px;
  margin: 0 auto;
}

.po-p-32 {
  padding: 32px;
}

/* FORCED MOBILE FIX: Ensures sign-off box NEVER floats */
@media (max-width: 900px) {
  .desktop-only {
    display: none !important;
  }

  #poAcceptSection {
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    width: 100%;
    z-index: var(--po-z-base);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    margin-top: 40px;
  }

  .po-public-shell {
    padding-bottom: 40px;
  }
}

/* MOBILE OVERHAUL: SERVICES */
.po-service-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.po-service-card-mobile {
  background: var(--po-white);
  border: 1px solid var(--po-line);
  border-radius: var(--po-radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.po-service-card-top {
  padding: 16px;
  border-bottom: 1px dashed var(--po-line);
  background: var(--po-soft);
}

.po-service-card-name {
  font-weight: 800;
  font-size: 15px;
  color: var(--po-ink);
}

.po-service-card-desc {
  font-size: 13px;
  color: var(--po-muted);
  margin-top: 4px;
}

.po-service-card-grid {
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.po-service-card-item .k {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--po-muted);
  font-weight: 700;
  margin-bottom: 2px;
}

.po-service-card-item .v {
  font-size: 14px;
  font-weight: 600;
  color: var(--po-ink);
}

.po-service-card-total {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--po-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.po-service-card-total .k {
  margin-bottom: 0;
}

.po-service-card-total .v {
  font-size: 16px;
  color: var(--po-accent);
  font-weight: 800;
}

/* GLOBAL MOBILE SPACING REFINEMENTS */
@media (max-width: 900px) {
  .preferium-offer-public-shell {
    padding: 12px 12px 40px 12px;
  }

  .po-public-card {
    padding: 20px;
    border-radius: var(--po-radius-xl);
  }

  .po-hero {
    margin: 24px 0;
    gap: 16px;
  }

  .po-amount-big {
    font-size: 32px;
  }

  .po-h1 {
    font-size: 24px;
  }

  .po-box {
    padding: 16px;
    border-radius: var(--po-radius-lg);
  }

  .po-kv {
    gap: 8px;
  }

  .po-divider {
    margin: 24px 0;
  }
}

/* TABLET REFINEMENTS */
@media (min-width: 601px) and (max-width: 1100px) {
  .po-public-card {
    padding: 32px;
  }

  .po-hero {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

/* HEADER REFINEMENT: Spacing between pill and title on mobile */
@media (max-width: 900px) {
  .po-pill {
    margin-bottom: 12px;
    display: inline-block;
  }
}

/* HERO ALIGNMENT: Left-align offer details on mobile */
@media (max-width: 900px) {
  .po-hero {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .po-hero-right {
    text-align: left;
    margin-top: 12px;
    min-width: 0;
  }

  .po-amount-big {
    text-align: left;
  }
}

/* FOOTER ALIGNMENT: Center contact details on mobile to match acceptance section */
@media (max-width: 900px) {
  .po-trust .po-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .po-trust .po-text-right {
    text-align: center;
    margin-top: 16px;
  }
}

/* BRANDING: Public offer header logo */
.po-brand-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.po-header-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--po-radius-lg);
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

@media (max-width: 900px) {
  .po-brand-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .po-header-logo {
    width: 56px;
    height: 56px;
  }

  .po-muted-header {
    margin-top: 8px;
    font-size: 13px;
  }
}

/* ============================
   Responsive fixes: offers list + public offer actions/services
   ============================ */

/* Public offer: action buttons layout */
.preferium-offer-public .po-actions-public {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.preferium-offer-public .po-actions-public .po-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
  min-height: var(--po-button-height-md);
}

@media (max-width: 1100px) {
  .preferium-offer-public .po-actions-public {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Show card list on tablets as well */
  .preferium-offer-public .desktop-only {
    display: none;
  }

  .preferium-offer-public .mobile-only {
    display: block;
  }
}

@media (max-width: 900px) {
  .preferium-offer-public .po-actions-public {
    grid-template-columns: 1fr;
  }
}

/* Public offer: service list card polish */
.preferium-offer-public .po-service-card-mobile {
  border-radius: var(--po-radius-lg);
}

.preferium-offer-public .po-service-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 12px;
}

.preferium-offer-public .po-service-card-item .v {
  word-break: break-word;
}

@media (max-width: 600px) {
  .preferium-offer-public .po-service-card-grid {
    grid-template-columns: 1fr;
  }
}

/* Admin offer list: responsive stacking and action spacing */
@media (max-width: 1100px) {
  .preferium-offer-gate .po-list .po-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
  }

  .preferium-offer-gate .po-item-price-col {
    text-align: left;
  }

  .preferium-offer-gate .po-item-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .preferium-offer-gate .po-item-actions .po-link {
    flex: 1 1 auto;
    min-width: 140px;
    text-align: center;
  }
}

@media (max-width: 900px) {
  .preferium-offer-gate .po-item-actions .po-link {
    flex-basis: 100%;
    min-width: 100%;
  }
}

/* Admin offer list: clarity and touch-friendly actions on smaller screens */
@media (max-width: 1100px) {

  .preferium-offer-gate .po-item-title,
  .preferium-offer-gate .po-item-main .po-muted {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .preferium-offer-gate .po-item-price-col,
  .preferium-offer-gate .po-item-actions {
    border-top: 1px dashed var(--po-line);
    padding-top: 10px;
  }
}

@media (max-width: 900px) {
  .preferium-offer-gate .po-item-actions .po-link {
    margin: 0;
    padding: 10px 12px;
    min-height: var(--po-button-height-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .preferium-offer-gate .po-item {
    padding: 16px;
    gap: 10px;
  }
}

/* ============================
   Offer list visual refresh (admin)
   ============================ */
.preferium-offer-gate .po-offer-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.preferium-offer-gate .po-offer-list .po-item {
  margin: 0;
  padding: 18px 20px;
  border-radius: var(--po-radius-lg);
  background: var(--po-white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05),
    0 8px 24px rgba(15, 23, 42, 0.04);
  display: grid;
  grid-template-columns: minmax(130px, 160px) minmax(0, 1fr) minmax(170px, 200px) auto;
  grid-template-areas: "status main price actions";
  gap: 16px;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: var(--po-transition);
}

.preferium-offer-gate .po-offer-list .po-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  background: var(--po-accent-gradient);
  opacity: 0.25;
  border-radius: var(--po-radius-full);
}

.preferium-offer-gate .po-offer-list .po-item:hover {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08),
    0 6px 18px rgba(99, 102, 241, 0.08);
  transform: translateY(-2px);
}

.preferium-offer-gate .po-offer-list .po-item-status-col {
  grid-area: status;
  gap: 8px;
}

.preferium-offer-gate .po-offer-list .po-item-seller {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: var(--po-radius-full);
  font-size: 11px;
  font-weight: 700;
  color: var(--po-muted);
  background: var(--po-soft);
  border: 1px solid var(--po-line);
}

.preferium-offer-gate .po-offer-list .po-item-main {
  grid-area: main;
  min-width: 0;
}

.preferium-offer-gate .po-offer-list .po-item-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--po-ink);
}

.preferium-offer-gate .po-offer-list .po-item-main .po-muted {
  font-size: 13px;
  color: var(--po-muted);
}

.preferium-offer-gate .po-offer-list .po-item-price-col {
  grid-area: price;
  text-align: right;
}

.preferium-offer-gate .po-offer-list .po-price-primary {
  font-size: 17px;
  font-weight: 800;
}

.preferium-offer-gate .po-offer-list .po-price-secondary {
  font-size: 12px;
}

.preferium-offer-gate .po-offer-list .po-item-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.preferium-offer-gate .po-offer-list .po-item-actions .po-link {
  position: relative;
  padding: 8px 12px;
  border-radius: var(--po-radius-sm);
  border: 1px solid var(--po-line);
  background: var(--po-soft);
  color: var(--po-ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--po-transition);
}

.preferium-offer-gate .po-offer-list .po-item-actions .po-link::after {
  display: none;
}

.preferium-offer-gate .po-offer-list .po-item-actions .po-link:hover {
  background: var(--po-ink);
  color: var(--po-white);
  border-color: transparent;
  transform: translateY(-1px);
}


.preferium-offer-gate .po-offer-list .po-item-actions .po-link:first-child:hover {
  filter: brightness(1.03);
}

.preferium-offer-gate .po-offer-list .po-item-actions .po-link[data-act="archive"] {
  background: var(--po-soft);
  border-color: var(--po-line);
  color: var(--po-muted);
}

.preferium-offer-gate .po-offer-list .po-item-actions .po-link[data-act="archive"]:hover {
  background: var(--po-ink);
  color: var(--po-white);
  border-color: var(--po-ink);
}

/* Accent link (diffuse purple) */
.po-link-accent {
  background: var(--po-accent-soft);
  color: var(--po-ink);
  border-color: rgba(79, 70, 229, 0.15);
}

.po-link-accent:hover {
  background: var(--po-accent);
  color: var(--po-white);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(79, 102, 241, 0.2);
}

/* Soft Button (diffuse neutral) */
.po-btn-soft {
  background: var(--po-soft);
  color: var(--po-ink);
  border: 1px solid var(--po-line);
  box-shadow: none;
}

.po-btn-soft:hover {
  background: var(--po-line);
  color: var(--po-ink);
  border-color: var(--po-link);
  transform: translateY(-1px);
}

/* Destructive / Danger link */
.po-link-danger {
  background: var(--po-danger-bg);
  border-color: #fecaca;
  color: var(--po-danger);
}

.po-link-danger:hover {
  background: var(--po-danger);
  color: var(--po-white);
  border-color: var(--po-danger);
}

@media (max-width: 1100px) {
  .preferium-offer-gate .po-offer-list .po-item {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "status price"
      "main main"
      "actions actions";
    align-items: start;
  }

  .preferium-offer-gate .po-offer-list .po-item-price-col {
    text-align: right;
  }

  .preferium-offer-gate .po-offer-list .po-item-main .po-muted,
  .preferium-offer-gate .po-offer-list .po-item-title {
    white-space: normal;
  }

  .preferium-offer-gate .po-offer-list .po-item-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .preferium-offer-gate .po-offer-list .po-item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "status"
      "main"
      "price"
      "actions";
    gap: 12px;
    padding: 16px;
  }

  .preferium-offer-gate .po-offer-list .po-item-status-col {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .preferium-offer-gate .po-offer-list .po-item-price-col {
    text-align: left;
    border-top: 1px dashed var(--po-line);
    padding-top: 10px;
  }

  .preferium-offer-gate .po-offer-list .po-item-actions .po-link {
    flex: 1 1 100%;
    text-align: center;
    min-height: var(--po-button-height-md);
  }
}

/* Force white text on purple/primary buttons */
.po-btn-primary,
.po-btn.po-btn-primary,
.po-btn.primary,
.po-btn-primary:hover,
.po-btn.po-btn-primary:hover,
.po-btn.primary:hover {
  color: var(--po-white);
}

/* === 24. CONFIRM MODAL ALIGNMENT FIX (FINAL) === */
.po-modal-container.text-center,
.po-modal-container.po-text-center,
.po-modal-container .po-text-center,
.po-modal-container .text-center {
  text-align: left;
}

.po-confirm-body,
.po-confirm-body * {
  text-align: left;
  align-items: flex-start;
  justify-content: flex-start;
}

.po-confirm-icon-wrap {
  margin-left: 0;
  margin-right: auto;
  display: flex;
}

.po-confirm-title,
.po-confirm-text,
.po-modal-container .po-muted,
.po-modal-container .po-section-title {
  text-align: left;
  width: 100%;
  display: block;
}

.po-modal-container {
  text-align: left;
}