/* ===================================================================
   PriceLantern Component Library
   Reusable BEM-style components built on design tokens.
   =================================================================== */

/* ======================== BUTTONS ======================== */
.pl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--pl-font);
  font-weight: var(--pl-font-weight-semi);
  font-size: var(--pl-text-sm);
  line-height: 1;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 14px 28px;
  cursor: pointer;
  transition:
    background var(--duration-normal),
    border-color var(--duration-normal),
    transform var(--duration-fast),
    box-shadow var(--duration-normal),
    color var(--duration-normal);
  letter-spacing: 0.01em;
  text-transform: none;
}
.pl-btn:focus-visible {
  outline: 2px solid var(--pl-orange);
  outline-offset: 2px;
}
.pl-btn svg { flex-shrink: 0; }

.pl-btn--primary {
  background: var(--pl-orange);
  color: var(--pl-white);
  border-color: rgba(255, 140, 70, 0.5);
  box-shadow: var(--shadow-glow-orange);
}
.pl-btn--primary:hover {
  background: var(--pl-orange-hover);
  border-color: rgba(255, 200, 160, 0.45);
  color: var(--pl-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-orange-hover);
}

.pl-btn--secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--pl-border-light);
  color: var(--pl-white);
}
.pl-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--pl-white);
  transform: translateY(-1px);
}

.pl-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--pl-white);
}
.pl-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--pl-white);
}

.pl-btn--outline-orange {
  background: var(--pl-orange-light);
  border: 2px solid var(--pl-orange);
  color: var(--pl-white);
}
.pl-btn--outline-orange:hover {
  background: rgba(236, 100, 29, 0.18);
  border-color: #f07830;
  color: var(--pl-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(236, 100, 29, 0.22);
}

.pl-btn--pill {
  border-radius: var(--radius-pill);
  padding: 8px 24px;
}

.pl-btn--sm {
  padding: 8px 16px;
  font-size: var(--pl-text-xs);
}

.pl-btn--lg {
  padding: 18px 42px;
  font-size: 1.02rem;
}

.pl-btn--block {
  width: 100%;
}

.pl-btn--icon {
  padding: 12px;
  border-radius: 10px;
}

.pl-btn--light {
  background: var(--pl-orange);
  color: var(--pl-white);
  border-color: transparent;
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0;
  border-radius: var(--radius-sm);
}
.pl-btn--light:hover {
  background: var(--pl-orange-hover);
  color: var(--pl-white);
  transform: translateY(-1px);
}

.pl-btn--light-blue {
  background: #1976d2;
  color: var(--pl-white);
  border-color: transparent;
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0;
  border-radius: var(--radius-sm);
}
.pl-btn--light-blue:hover {
  background: #1565c0;
  color: var(--pl-white);
  transform: translateY(-1px);
}

.pl-btn--danger {
  background: var(--pl-red);
  color: var(--pl-white);
  border-color: transparent;
  text-transform: none;
  letter-spacing: 0;
}
.pl-btn--danger:hover {
  background: #e04345;
  color: var(--pl-white);
}

/* ======================== CARDS ======================== */
.pl-card {
  border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-6);
  transition: background var(--duration-normal), border-color var(--duration-normal);
}

.pl-card--dark {
  background: var(--pl-surface-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.pl-card--dark:hover {
  background: var(--pl-surface-hover);
  border-color: rgba(255, 255, 255, 0.1);
}

.pl-card--glass {
  background: var(--pl-surface-dark);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--pl-border-subtle);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.pl-card--light {
  background: var(--pl-ghost-light);
  border-radius: var(--radius-2xl);
  border: none;
}

.pl-card--white {
  background: var(--pl-white);
  border: 1px solid var(--pl-border-light-solid);
  border-radius: var(--radius-md);
}

.pl-card--teal {
  background: var(--pl-teal);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.pl-card--elevated {
  background: var(--pl-white);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-md);
  border: none;
}

.pl-card--hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ======================== SECTION LABEL / PILL ======================== */
.pl-label {
  display: inline-block;
  font-family: var(--pl-font);
  font-weight: var(--pl-font-weight-semi);
  font-size: var(--pl-text-xs);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--pl-blue);
  color: var(--pl-carbon);
  margin-bottom: 1rem;
}
.pl-label--light {
  border-color: var(--pl-border-light);
  color: var(--pl-text-muted-dark);
}

/* ======================== STAT ITEM ======================== */
.pl-stat {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--pl-border-subtle);
  transition: background var(--duration-normal), border-color var(--duration-normal);
}
.pl-stat:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.pl-stat__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pl-stat__icon--orange { background: var(--pl-orange-light); color: var(--pl-orange); }
.pl-stat__icon--blue   { background: var(--pl-blue-light);   color: var(--pl-blue); }
.pl-stat__icon--green  { background: var(--pl-green-light);  color: var(--pl-green); }
.pl-stat__icon--red    { background: var(--pl-red-light);    color: var(--pl-red); }

.pl-stat__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.pl-stat__value {
  font-family: var(--pl-font);
  font-weight: var(--pl-font-weight-bold);
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--pl-white);
  letter-spacing: -0.02em;
}
.pl-stat__label {
  font-family: var(--pl-font);
  font-weight: var(--pl-font-weight-regular);
  font-size: var(--pl-text-xs);
  line-height: var(--pl-leading-snug);
  color: var(--pl-text-muted-dark);
}

.pl-stat--light {
  background: var(--pl-white);
  border-color: var(--pl-border-light-solid);
}
.pl-stat--light:hover {
  background: var(--pl-ghost-light);
}
.pl-stat--light .pl-stat__value {
  color: var(--pl-text-dark);
}
.pl-stat--light .pl-stat__label {
  color: var(--pl-text-muted);
}

/* ======================== ICON BOX ======================== */
.pl-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pl-icon-box--orange { background: var(--pl-orange-light); color: var(--pl-orange); }
.pl-icon-box--blue   { background: var(--pl-blue-light);   color: var(--pl-blue); }
.pl-icon-box--green  { background: var(--pl-green-light);  color: var(--pl-green); }
.pl-icon-box--lg     { width: 48px; height: 48px; border-radius: 50%; }

/* ======================== BADGES ======================== */
.pl-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--pl-font);
  font-weight: var(--pl-font-weight-semi);
  font-size: var(--pl-text-xs);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  line-height: 1.4;
}
.pl-badge--orange  { background: var(--pl-orange);  color: var(--pl-white); }
.pl-badge--blue    { background: var(--pl-blue);    color: var(--pl-dark); }
.pl-badge--green   { background: var(--pl-green);   color: var(--pl-dark); }
.pl-badge--red     { background: var(--pl-red);     color: var(--pl-white); }
.pl-badge--muted   { background: var(--pl-ghost-light); color: var(--pl-carbon); }
.pl-badge--outline {
  background: transparent;
  border: 1.5px solid var(--pl-border-light);
  color: var(--pl-text-muted-dark);
}
.pl-badge--success { background: #198754; color: var(--pl-white); }
.pl-badge--warning { background: #ffc107; color: var(--pl-dark); }
.pl-badge--info    { background: #0dcaf0; color: var(--pl-dark); }
.pl-badge--secondary { background: var(--pl-grey); color: var(--pl-white); }

/* ======================== AVATAR ======================== */
.pl-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pl-font);
  font-weight: var(--pl-font-weight-bold);
  font-size: var(--pl-text-sm);
  flex-shrink: 0;
}
.pl-avatar--sm { width: 32px; height: 32px; font-size: var(--pl-text-xs); }
.pl-avatar--lg { width: 64px; height: 64px; font-size: 2rem; }
.pl-avatar--orange { background: #ffe5cc; color: #cc5500; }
.pl-avatar--blue   { background: #dbe8f7; color: var(--pl-dark); }
.pl-avatar--green  { background: #d4f5e0; color: var(--pl-dark); }
.pl-avatar--purple { background: #ede4f8; color: var(--pl-dark); }

/* ======================== TABLES ======================== */
.pl-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--pl-font);
  font-size: var(--pl-text-sm);
}
.pl-table th {
  font-weight: var(--pl-font-weight-semi);
  text-transform: uppercase;
  font-size: var(--pl-text-xs);
  letter-spacing: 0.3px;
  color: var(--pl-text-muted);
  padding: var(--space-3) var(--space-4);
  border-bottom: 2px solid var(--pl-border-light-solid);
  text-align: left;
}
.pl-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--pl-border-light-solid);
  color: var(--pl-text-body);
  vertical-align: middle;
}
.pl-table tbody tr:hover {
  background: var(--pl-ghost-light);
}
.pl-table--dark th {
  color: var(--pl-text-muted-dark);
  border-bottom-color: var(--pl-border-subtle);
}
.pl-table--dark td {
  color: rgba(255, 255, 255, 0.7);
  border-bottom-color: var(--pl-border-subtle);
}
.pl-table--dark tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* ======================== FORM INPUTS ======================== */
.pl-input,
.pl-select,
.pl-textarea {
  font-family: var(--pl-font);
  font-size: var(--pl-text-body);
  font-weight: var(--pl-font-weight-regular);
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--pl-border-light-solid);
  border-radius: var(--radius-sm);
  background: var(--pl-white);
  color: var(--pl-text-dark);
  transition: border-color var(--duration-normal), box-shadow var(--duration-normal);
  width: 100%;
}
.pl-input:focus,
.pl-select:focus,
.pl-textarea:focus {
  outline: none;
  border-color: var(--pl-orange);
  box-shadow: 0 0 0 3px rgba(236, 100, 29, 0.15);
}
.pl-input::placeholder,
.pl-textarea::placeholder {
  color: var(--pl-text-muted);
}

.pl-form-label {
  font-family: var(--pl-font);
  font-weight: var(--pl-font-weight-semi);
  font-size: var(--pl-text-body);
  color: var(--pl-text-dark);
  margin-bottom: var(--space-1);
  display: block;
}

.pl-form-group {
  margin-bottom: var(--space-4);
}

/* ======================== STARS ======================== */
.pl-stars {
  color: var(--pl-orange);
  font-size: var(--pl-text-sm);
  letter-spacing: 2px;
}

/* ======================== TESTIMONIAL ======================== */
.pl-testimonial {
  background: var(--pl-white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.04);
}
.pl-testimonial__text {
  font-family: var(--pl-font);
  font-weight: var(--pl-font-weight-regular);
  font-size: 0.88rem;
  color: var(--pl-carbon);
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--space-4);
}
.pl-testimonial__author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pl-testimonial__name {
  font-family: var(--pl-font);
  font-weight: var(--pl-font-weight-semi);
  font-size: var(--pl-text-sm);
  color: var(--pl-dark);
}
.pl-testimonial__role {
  font-family: var(--pl-font);
  font-weight: var(--pl-font-weight-regular);
  font-size: var(--pl-text-xs);
  color: var(--pl-grey);
}

/* ======================== FEATURE CARD ======================== */
.pl-feature {
  background: var(--pl-surface-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-6);
  transition: background var(--duration-normal), border-color var(--duration-normal);
}
.pl-feature:hover {
  background: var(--pl-surface-hover);
  border-color: rgba(255, 255, 255, 0.1);
}
.pl-feature__title {
  font-family: var(--pl-font);
  font-weight: var(--pl-font-weight-semi);
  font-size: 1rem;
  color: var(--pl-white);
  margin-bottom: 6px;
}
.pl-feature__desc {
  font-family: var(--pl-font);
  font-weight: var(--pl-font-weight-regular);
  font-size: var(--pl-text-sm);
  color: var(--pl-text-muted-dark);
  line-height: var(--pl-leading-normal);
  margin: 0;
}
/* Give the feature icon room to breathe above the title (was jammed against it),
   and a touch more presence. */
.pl-feature .pl-icon-box {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-5);
}
.pl-feature .pl-icon-box svg {
  width: 24px;
  height: 24px;
}

/* ======================== ALERT ======================== */
.pl-alert {
  font-family: var(--pl-font);
  font-size: var(--pl-text-sm);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}
.pl-alert--danger  { background: var(--pl-red-light); color: var(--pl-red); border: 1px solid rgba(255,77,79,0.2); }
.pl-alert--success { background: var(--pl-green-light); color: #0f5132; border: 1px solid rgba(115,196,133,0.3); }
.pl-alert--warning { background: #fff3cd; color: #664d03; border: 1px solid rgba(255,193,7,0.3); }
.pl-alert--info    { background: var(--pl-blue-light); color: #084298; border: 1px solid rgba(111,173,219,0.3); }

/* ======================== TOAST ======================== */
.pl-toast {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  z-index: var(--z-toast);
  background: var(--pl-green);
  color: var(--pl-white);
  font-family: var(--pl-font);
  font-weight: var(--pl-font-weight-semi);
  font-size: var(--pl-text-sm);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ======================== LINK STYLES ======================== */
.pl-link {
  color: var(--pl-orange);
  text-decoration: underline;
  transition: color var(--duration-fast);
}
.pl-link:hover {
  color: var(--pl-orange-hover);
}
.pl-link--blue {
  color: #0074e8;
}
.pl-link--blue:hover {
  color: #005bb5;
}

/* ======================== FEEDBACK MODAL ========================
   On-brand dark-navy + orange skin over Bootstrap's #feedbackModal.
   Scoped to `.pl-feedback-modal` so other modals are unaffected.
   ================================================================ */
.pl-feedback-modal .modal-dialog {
  max-width: 520px;
}
.pl-feedback-modal .modal-content {
  border: 1px solid var(--pl-border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(236, 100, 29, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, var(--pl-mid) 0%, var(--pl-dark) 100%);
  color: var(--pl-white);
}

/* Header */
.pl-feedback-modal .modal-header {
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-6) var(--space-4);
  border-bottom: 1px solid var(--pl-border-subtle);
  background: linear-gradient(180deg, rgba(236, 100, 29, 0.08) 0%, transparent 100%);
}
.pl-feedback-modal__header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 1;
  min-width: 0;
}
.pl-feedback-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--pl-orange-light);
  color: var(--pl-orange);
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(236, 100, 29, 0.35), 0 4px 14px rgba(236, 100, 29, 0.22);
}
.pl-feedback-modal__header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.pl-feedback-modal .modal-title {
  font-family: var(--pl-font);
  font-weight: var(--pl-font-weight-semi);
  font-size: 1.05rem;
  color: var(--pl-white);
  line-height: 1.2;
  margin: 0;
}
.pl-feedback-modal__subtitle {
  margin: 0;
  font-size: var(--pl-text-xs);
  color: var(--pl-text-muted-dark);
  line-height: var(--pl-leading-snug);
}
.pl-feedback-modal .btn-close {
  padding: 0.5rem;
  margin: -0.25rem -0.25rem 0 0;
  opacity: 0.7;
  filter: invert(1) grayscale(100%) brightness(200%);
  transition: opacity var(--duration-fast);
}
.pl-feedback-modal .btn-close:hover { opacity: 1; }
.pl-feedback-modal .btn-close:focus {
  box-shadow: 0 0 0 3px var(--pl-orange-light);
}

/* Body */
.pl-feedback-modal .modal-body {
  padding: var(--space-5) var(--space-6) var(--space-6);
}
.pl-feedback-modal__field {
  margin-bottom: var(--space-4);
}
.pl-feedback-modal__label {
  display: block;
  font-family: var(--pl-font);
  font-weight: var(--pl-font-weight-semi);
  font-size: var(--pl-text-sm);
  color: var(--pl-white);
  margin-bottom: var(--space-2);
}
.pl-feedback-modal__required { color: var(--pl-orange); }
.pl-feedback-modal__optional {
  font-weight: var(--pl-font-weight-regular);
  color: var(--pl-text-muted-dark);
  font-size: var(--pl-text-xs);
}

/* Shared form control look */
.pl-feedback-modal__select,
.pl-feedback-modal__textarea {
  width: 100%;
  font-family: var(--pl-font);
  font-size: var(--pl-text-sm);
  color: var(--pl-white);
  background: var(--pl-surface-card);
  border: 1.5px solid var(--pl-border-light);
  border-radius: var(--radius-sm);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast), background var(--duration-fast);
}
.pl-feedback-modal__select::placeholder,
.pl-feedback-modal__textarea::placeholder {
  color: var(--pl-text-muted-dark);
}
.pl-feedback-modal__select:hover,
.pl-feedback-modal__textarea:hover {
  background: var(--pl-surface-hover);
  border-color: rgba(255, 255, 255, 0.22);
}
.pl-feedback-modal__select:focus,
.pl-feedback-modal__select:focus-visible,
.pl-feedback-modal__textarea:focus,
.pl-feedback-modal__textarea:focus-visible {
  outline: none;
  border-color: var(--pl-orange);
  box-shadow: 0 0 0 3px var(--pl-orange-light);
  background: var(--pl-surface-hover);
}

/* Select */
.pl-feedback-modal__select-wrap {
  position: relative;
}
.pl-feedback-modal__select-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 14px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--pl-ghost);
  border-bottom: 2px solid var(--pl-ghost);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
  transition: border-color var(--duration-fast);
}
.pl-feedback-modal__select {
  padding: 11px 40px 11px 14px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.pl-feedback-modal__select-wrap:focus-within::after {
  border-color: var(--pl-orange);
}
/* Dropdown options need their own colour in most browsers */
.pl-feedback-modal__select option {
  background: var(--pl-dark);
  color: var(--pl-white);
}

/* Textarea */
.pl-feedback-modal__textarea-wrap {
  position: relative;
}
.pl-feedback-modal__textarea {
  line-height: var(--pl-leading-normal);
  padding: 12px 14px 28px;
  resize: vertical;
  min-height: 120px;
}
.pl-feedback-modal__char-count {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: var(--pl-text-xs);
  color: var(--pl-text-muted-dark);
  pointer-events: none;
  background: rgba(10, 30, 44, 0.7);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  transition: color var(--duration-fast);
}
.pl-feedback-modal__char-count.is-near { color: #f0b35a; }
.pl-feedback-modal__char-count.is-max  { color: var(--pl-red); font-weight: var(--pl-font-weight-semi); }

/* Drop-zone */
.pl-feedback-modal__dropzone {
  position: relative;
  display: block;
  border: 1.5px dashed var(--pl-border-light);
  border-radius: var(--radius-sm);
  background: var(--pl-surface-card);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  cursor: pointer;
  transition: background var(--duration-fast), border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.pl-feedback-modal__dropzone:hover {
  background: var(--pl-surface-hover);
  border-color: var(--pl-orange);
}
.pl-feedback-modal__dropzone:focus-within {
  border-color: var(--pl-orange);
  box-shadow: 0 0 0 3px var(--pl-orange-light);
}
.pl-feedback-modal__file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}
.pl-feedback-modal__dropzone-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--pl-text-muted-dark);
}
.pl-feedback-modal__dropzone-empty svg {
  color: var(--pl-orange);
}
.pl-feedback-modal__dropzone-title {
  font-weight: var(--pl-font-weight-semi);
  font-size: var(--pl-text-sm);
  color: var(--pl-white);
}
.pl-feedback-modal__dropzone-hint {
  font-size: var(--pl-text-xs);
  color: var(--pl-text-muted-dark);
  line-height: var(--pl-leading-snug);
}
.pl-feedback-modal__dropzone-filled {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  text-align: left;
}
.pl-feedback-modal__dropzone.has-file {
  border-style: solid;
  border-color: var(--pl-orange);
  background: var(--pl-orange-light);
  box-shadow: 0 0 0 1px rgba(236, 100, 29, 0.35);
}
.pl-feedback-modal__dropzone.has-file .pl-feedback-modal__dropzone-empty { display: none; }
.pl-feedback-modal__dropzone.has-file .pl-feedback-modal__dropzone-filled { display: inline-flex; }
.pl-feedback-modal__file-icon { color: var(--pl-orange); flex-shrink: 0; }
.pl-feedback-modal__file-name {
  font-family: var(--pl-font);
  font-size: var(--pl-text-sm);
  color: var(--pl-white);
  font-weight: var(--pl-font-weight-medium);
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pl-feedback-modal__file-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  color: var(--pl-ghost);
  cursor: pointer;
  transition: background var(--duration-fast), color var(--duration-fast);
  flex-shrink: 0;
}
.pl-feedback-modal__file-remove:hover {
  background: var(--pl-red-light);
  color: var(--pl-red);
}

/* Status */
.pl-feedback-modal__status {
  min-height: 1.25rem;
  font-size: var(--pl-text-sm);
  margin-bottom: var(--space-2);
  color: var(--pl-ghost);
}
.pl-feedback-modal__status.text-success { color: var(--pl-green); }
.pl-feedback-modal__status.text-danger  { color: var(--pl-red); }

/* Actions */
.pl-feedback-modal__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
  margin-top: var(--space-5);
}
.pl-feedback-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--pl-font);
  font-weight: var(--pl-font-weight-semi);
  font-size: var(--pl-text-sm);
  line-height: 1;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast), transform var(--duration-fast), box-shadow var(--duration-normal);
  letter-spacing: 0.01em;
}
.pl-feedback-modal__btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--pl-orange-light);
}
.pl-feedback-modal__btn--cancel {
  background: transparent;
  color: var(--pl-ghost);
  border-color: var(--pl-border-light);
}
.pl-feedback-modal__btn--cancel:hover {
  background: var(--pl-surface-hover);
  color: var(--pl-white);
  border-color: rgba(255, 255, 255, 0.35);
}
.pl-feedback-modal__btn--send {
  background: var(--pl-orange);
  color: var(--pl-white);
  border-color: rgba(255, 140, 70, 0.5);
  box-shadow: var(--shadow-glow-orange);
}
.pl-feedback-modal__btn--send:hover:not(:disabled) {
  background: var(--pl-orange-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-orange-hover);
}
.pl-feedback-modal__btn--send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Auto-attached analysis context note (shown only on the analysis page) */
.pl-feedback-modal__attached {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  padding: var(--space-2) var(--space-3);
  font-size: var(--pl-text-xs);
  color: var(--pl-ghost);
  background: var(--pl-surface-card);
  border: 1px solid var(--pl-border-subtle);
  border-radius: var(--radius-sm);
  line-height: var(--pl-leading-snug);
}
.pl-feedback-modal__attached svg {
  flex: 0 0 auto;
  color: var(--pl-green);
}

/* Backdrop tint — slightly warmer to match brand */
.pl-feedback-modal + .modal-backdrop,
.modal-backdrop.show {
  background-color: #060f18;
}

/* Small screens */
@media (max-width: 480px) {
  .pl-feedback-modal .modal-header,
  .pl-feedback-modal .modal-body {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
  .pl-feedback-modal__actions {
    flex-direction: column-reverse;
  }
  .pl-feedback-modal__btn {
    width: 100%;
  }
}
