/* ═══════════════════════════════════════
   POST AN AD PAGE
   ═══════════════════════════════════════ */

/* Subcategory slide-in animation */
@keyframes subcatSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.post-field--subcat-in {
  animation: subcatSlideDown 0.2s ease forwards;
}

/* Video thumbnail overlay */
.post-photo-thumb--video {
  position: relative;
}
.post-photo-thumb--video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  border-radius: inherit;
  pointer-events: none;
}
.post-photo-thumb--video .post-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}
.post-photo-thumb--video .post-video-play svg {
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

/* ── Page header ── */
.post-hero {
  padding: 40px 0 36px;
  border-bottom: 1px solid var(--white-14);
  margin-bottom: 40px;
  transition: border-color 0.3s;
}

.post-hero-title {
  font-family: 'Unbounded', 'RoadRadio', sans-serif;
  font-size: 30px;
  font-weight: 500;
  color: var(--white);
  margin: 0 0 8px;
  transition: color 0.3s;
}

.post-hero-sub {
  font-size: 15px;
  color: var(--white-40);
  transition: color 0.3s;
}

/* ── Two-column layout ── */
.post-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding-bottom: 0;
}

.post-form-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-sidebar-col {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Form section card ── */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--white-14);
  border-radius: var(--r-l);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background 0.3s, border-color 0.3s;
}

.post-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  transition: color 0.3s;
}

.post-card-title svg {
  flex-shrink: 0;
  color: var(--purple);
}

.post-card-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lime);
  background: rgba(178,239,44,0.1);
  border: 1px solid rgba(178,239,44,0.2);
  border-radius: var(--r-xxl);
  padding: 3px 10px;
}

/* ── Form fields ── */
.post-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--white-70);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
}

.post-label-req {
  color: var(--purple);
  font-size: 15px;
  line-height: 1;
}

.post-input,
.post-select,
.post-textarea {
  background: var(--bg-light);
  border: 1.5px solid var(--white-14);
  border-radius: var(--r-m);
  padding: 12px 16px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, background 0.3s, color 0.3s;
  width: 100%;
  box-sizing: border-box;
}

.post-input:focus,
.post-select:focus,
.post-textarea:focus {
  border-color: var(--purple);
  background: var(--white-08);
}

.post-input::placeholder,
.post-textarea::placeholder { color: var(--white-40); }

.post-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23ffffff66' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.post-textarea {
  resize: none;
  height: 140px;
  line-height: 1.6;
}

.post-textarea--sm { height: 90px; }

.post-field-counter {
  font-size: 12px;
  color: var(--white-40);
  text-align: right;
  margin-top: -4px;
  transition: color 0.3s;
}

.post-field-counter.warn { color: #f97316; }

.post-field-hint {
  font-size: 12px;
  color: var(--white-40);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(139,93,246,0.06);
  border-radius: var(--r-s);
  border: 1px solid rgba(139,93,246,0.15);
  transition: color 0.3s;
}

.post-field-hint svg { flex-shrink: 0; color: var(--purple); margin-top: 1px; }

/* ── Price row ── */
.post-price-row {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 12px;
}

/* ── Photo upload ── */
.post-upload-zone {
  border: 2px dashed var(--white-14);
  border-radius: var(--r-l);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.post-upload-zone:hover {
  border-color: var(--purple);
  background: rgba(139,93,246,0.04);
}

.post-upload-zone.dragover {
  border-color: var(--lime);
  background: rgba(178,239,44,0.04);
}

.post-upload-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white-08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-40);
}

.post-upload-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  transition: color 0.3s;
}

.post-upload-sub {
  font-size: 13px;
  color: var(--white-40);
  transition: color 0.3s;
}

.post-upload-btn {
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: var(--r-xxl);
  padding: 10px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.post-upload-btn:hover  { background: #7a4de8; }
.post-upload-btn:active { transform: scale(0.97); }

/* Preview grid */
.post-photos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.post-photo-thumb {
  aspect-ratio: 1;
  border-radius: var(--r-m);
  background: var(--white-08);
  border: 1.5px dashed var(--white-14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-40);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}

.post-photo-thumb:hover { border-color: var(--purple); }
.post-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Map placeholder ── */
.post-map-wrap {
  border-radius: var(--r-l);
  overflow: hidden;
  height: 180px;
  background: var(--white-08);
  position: relative;
}

.post-map-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  background: rgba(10,10,18,0.45);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.post-map-overlay:hover { background: rgba(10,10,18,0.3); }

.post-map-overlay svg { opacity: 0.8; }

/* ── Two-col grid for fields ── */
.post-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── Phone from profile ── */
.post-phone-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-light);
  border: 1.5px solid var(--white-14);
  border-radius: var(--r-m);
  padding: 12px 16px;
  transition: background 0.3s, border-color 0.3s;
}

.post-phone-value {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  transition: color 0.3s;
}

.post-phone-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--purple);
  background: var(--purple-mid);
  border-radius: var(--r-xxl);
  padding: 3px 10px;
}

/* ── Phone toggle ── */
.post-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: var(--white-08);
  border-radius: var(--r-m);
  border: 1px solid var(--white-14);
  cursor: pointer;
  transition: background 0.15s;
}

.post-toggle-row:hover { background: var(--bg-light); }

.post-toggle-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.post-toggle-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  transition: color 0.3s;
}

.post-toggle-sub {
  font-size: 12px;
  color: var(--white-40);
  transition: color 0.3s;
}

.post-toggle-track {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--purple);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}

.post-toggle-track.off { background: var(--white-14); }

.post-toggle-thumb {
  position: absolute;
  top: 3px; right: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}

.post-toggle-track.off .post-toggle-thumb { transform: translateX(-20px); }

/* ── Submit button ── */
.post-submit-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
}

.btn-post-submit {
  flex: 1;
  background: var(--lime);
  color: #1a1a2e;
  border: none;
  border-radius: var(--r-xxl);
  padding: 16px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.btn-post-submit:hover  { background: #c8ff30; }
.btn-post-submit:active { transform: scale(0.98); }

.post-submit-note {
  font-size: 12px;
  color: var(--white-40);
  line-height: 1.5;
  max-width: 200px;
  transition: color 0.3s;
}

/* ════════════════════════════════════════
   SIDEBAR CARDS
   ════════════════════════════════════════ */
.post-tip-card {
  background: var(--bg-card);
  border: 1px solid var(--white-14);
  border-radius: var(--r-l);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.3s, border-color 0.3s;
}

.post-tip-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  transition: color 0.3s;
}

.post-tip-title svg { color: var(--lime); flex-shrink: 0; }

.post-tip-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-tip-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--white-70);
  line-height: 1.5;
  transition: color 0.3s;
}

.post-tip-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white-08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--lime);
}

/* Stats card */
.post-stats-card {
  background: var(--bg-card);
  border: 1px solid var(--white-14);
  border-radius: var(--r-l);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.3s, border-color 0.3s;
}

.post-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.post-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.post-stat-num {
  font-family: 'Unbounded', 'RoadRadio', sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--lime);
  line-height: 1;
}

.post-stat-label {
  font-size: 11px;
  color: var(--white-40);
  line-height: 1.3;
  transition: color 0.3s;
}

/* Safe deal card */
.post-safe-card {
  background: linear-gradient(135deg, rgba(139,93,246,0.2) 0%, rgba(53,24,130,0.3) 100%);
  border: 1px solid rgba(139,93,246,0.3);
  border-radius: var(--r-l);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-safe-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  transition: color 0.3s;
}

.post-safe-title svg { color: var(--purple); flex-shrink: 0; }

.post-safe-text {
  font-size: 13px;
  color: var(--white-70);
  line-height: 1.5;
  transition: color 0.3s;
}

.post-safe-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  transition: opacity 0.15s;
}

.post-safe-link:hover { opacity: 0.8; }

/* ── Steps progress ── */
.post-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 8px;
}

.post-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--white-40);
  font-weight: 500;
  transition: color 0.3s;
}

.post-step.active { color: var(--white); }
.post-step.done   { color: var(--lime); }

.post-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--white-14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  transition: all 0.2s;
}

.post-step.active .post-step-num {
  border-color: var(--purple);
  background: var(--purple);
  color: #fff;
}

.post-step.done .post-step-num {
  border-color: var(--lime);
  background: rgba(178,239,44,0.15);
  color: var(--lime);
}

.post-step-line {
  flex: 1;
  height: 1px;
  background: var(--white-14);
  margin: 0 8px;
  min-width: 16px;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1100px) {
  .post-sidebar-col { width: 280px; }
}

@media (max-width: 900px) {
  .post-layout { flex-direction: column; gap: 24px; }
  .post-sidebar-col { width: 100%; position: static; flex-direction: row; flex-wrap: wrap; }
  .post-tip-card, .post-stats-card, .post-safe-card { flex: 1; min-width: 260px; }
  .post-photos-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 700px) {
  .post-hero { padding: 24px 0 20px; margin-bottom: 24px; }
  .post-hero-title { font-size: 22px; }
  .post-card { padding: 20px; gap: 16px; }
  .post-price-row { grid-template-columns: 1fr; }
  .post-fields-grid { grid-template-columns: 1fr; }
  .post-photos-grid { grid-template-columns: repeat(3, 1fr); }
  .post-stats-grid { grid-template-columns: 1fr 1fr 1fr; }
  .post-submit-row { flex-direction: column; align-items: stretch; }
  .post-submit-note { max-width: none; text-align: center; }
}

@media (max-width: 510px) {
  .post-hero { padding: 16px 0 14px; margin-bottom: 16px; border-bottom: none; }
  .post-hero-title { font-size: 18px; }
  .post-layout { padding-bottom: 0; }
  .post-sidebar-col { display: none; }
  .post-photos-grid { grid-template-columns: repeat(3, 1fr); }
  .post-upload-zone { padding: 24px 16px; }
  .post-steps { display: none; }
}


/* ══════════════════════════════════════════
   CUSTOM DROPDOWN
   ══════════════════════════════════════════ */
.post-dropdown {
  position: relative;
  width: 100%;
}

.post-dropdown-btn {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-light);
  border: 1.5px solid var(--white-14);
  border-radius: var(--r-m);
  padding: 12px 40px 12px 16px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  position: relative;
  transition: border-color 0.2s, background 0.2s, color 0.3s;
  -webkit-tap-highlight-color: transparent;
  /*user-select: none;*/
}

.post-dropdown-btn.placeholder { color: var(--white-40); }

.post-dropdown-btn:hover { border-color: var(--white-40); }

.post-dropdown.open .post-dropdown-btn {
  border-color: var(--purple);
  background: var(--white-08);
}

.post-dropdown-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white-40);
  transition: transform 0.2s, color 0.2s;
  pointer-events: none;
}

.post-dropdown.open .post-dropdown-arrow {
  transform: translateY(-50%) rotate(180deg);
  color: var(--purple);
}

.post-dropdown-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--bg-card);
  border: 1px solid var(--white-14);
  border-radius: var(--r-m);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  z-index: 50;
  overflow: hidden;
  max-height: 240px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  scrollbar-width: thin;
  scrollbar-color: var(--white-14) transparent;
}

.post-dropdown.open .post-dropdown-list {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.post-dropdown-item {
  padding: 11px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--white-70);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-dropdown-item:hover  { background: var(--white-08); color: var(--white); }
.post-dropdown-item.active { color: var(--purple); font-weight: 600; }

/* Light theme */
[data-theme="light"] .post-dropdown-list { background: #fff; }

/* Light theme tweaks */
[data-theme="light"] .post-select {
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%2300000066' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}


/* ════════════════════════════════════════
   MOBILE MULTI-STEP FORM (≤510px)
   ════════════════════════════════════════ */

/* ── Step wrapper ── */
/* Desktop: dissolve wrappers so cards flow normally */
@media (min-width: 511px) {
  .post-step-wrap { display: contents; }
}

/* Mobile: show only the active step */
@media (max-width: 510px) {
  .post-step-wrap {
    display: none;
    flex-direction: column;
    gap: 16px;
  }
  .post-step-wrap.active {
    display: flex;
    animation: stepIn 0.22s ease;
	max-width: 100%;
  }
  @keyframes stepIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  /* Hide desktop submit row on mobile (handled by nav button) */
  .post-submit-row { display: none; }
  /* No extra padding needed — nav is inline */
}

/* ── Mobile step header ── */
.post-mobile-header {
  display: none;
}

@media (max-width: 510px) {
  .post-mobile-header {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-bottom: 4px;
  }
}

/* Progress bars */
.post-mobile-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.post-mobile-dot {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: var(--white-14);
  transition: background 0.25s ease;
}

.post-mobile-dot.active { background: var(--purple); }
.post-mobile-dot.done   { background: var(--lime); opacity: 0.75; }

/* Step name */
.post-mobile-step-name {
  font-family: 'Unbounded', 'RoadRadio', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
  transition: color 0.3s;
}

/* ── Inline mobile nav buttons ── */
.post-mobile-nav {
  display: none;
}

@media (max-width: 510px) {
  .post-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 8px;
    padding-bottom: 0;
  }
}

.btn-mobile-next {
  width: 100%;
  height: 52px;
  border-radius: var(--r-xxl);
  background: var(--purple);
  border: none;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.btn-mobile-next:hover  { background: var(--purple-dark); }
.btn-mobile-next:active { transform: scale(0.98); }

.btn-mobile-next.is-final {
  background: var(--lime);
  color: #1a1a2e;
}

.btn-mobile-next.is-final:hover { background: #c8ff30; }

.btn-mobile-back {
  width: 100%;
  height: 48px;
  border-radius: var(--r-xxl);
  background: transparent;
  border: 1px solid var(--white-14);
  color: var(--white-70);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.btn-mobile-back:hover { background: var(--white-08); border-color: var(--white-40); color: var(--white); }
.btn-mobile-back:active { transform: scale(0.98); }
.btn-mobile-back:disabled { display: none; }

/* ═══════════════════════════════════════
   DYIZI-DROP CARD
   ═══════════════════════════════════════ */
.post-drop-card {
  position: relative;
  border: 1px solid var(--white-14);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.3s;
}
.post-drop-card.is-active {
  border-color: var(--purple);
  box-shadow: 0 0 0 1px var(--purple), 0 8px 28px rgba(139,93,246,0.18);
}

/* Header row with title + checkbox */
.post-drop-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.post-drop-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.post-drop-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  transition: color 0.3s;
  flex-wrap: wrap;
}

.post-drop-icon {
  display: inline-flex;
  width: 14px;
  height: 17px;
  flex-shrink: 0;
}
.post-drop-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }

.post-drop-sub {
  font-size: 13px;
  color: var(--white-40);
  line-height: 1.45;
  transition: color 0.3s;
}

/* Help button + tooltip */
.post-drop-help {
  position: relative;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: help;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.post-drop-help-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--white-40);
  font-size: 11px;
  font-weight: 600;
  color: var(--white-70);
  line-height: 1;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.post-drop-help:hover .post-drop-help-mark,
.post-drop-help.open .post-drop-help-mark {
  color: #fff;
  border-color: var(--purple);
  background: var(--purple);
}

.post-drop-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 280px;
  padding: 12px 14px;
  background: #1a1a26;
  color: rgba(255,255,255,0.92);
  border: 1px solid var(--white-14);
  border-radius: var(--r-s);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
  z-index: 30;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.post-drop-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1a1a26;
}
.post-drop-help:hover .post-drop-tooltip,
.post-drop-help:focus-visible .post-drop-tooltip,
.post-drop-help.open .post-drop-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

[data-theme="light"] .post-drop-tooltip {
  background: #1a1a2e;
  color: #fff;
  border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .post-drop-tooltip::after { border-top-color: #1a1a2e; }

/* Custom checkbox */
.post-drop-toggle {
  flex-shrink: 0;
  width: 48px;
  height: 28px;
  border-radius: 14px;
  border: none;
  background: var(--white-14);
  cursor: pointer;
  padding: 3px;
  display: flex;
  align-items: center;
  transition: background 0.22s;
  -webkit-tap-highlight-color: transparent;
}
.post-drop-toggle-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  transition: transform 0.22s cubic-bezier(.4,0,.2,1);
  transform: translateX(0);
}
.post-drop-toggle.on {
  background: var(--purple);
}
.post-drop-toggle.on .post-drop-toggle-thumb {
  transform: translateX(20px);
}

/* Extra block — always visible, but disabled when checkbox off */
.post-drop-extra {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--white-14);
  transition: opacity 0.2s ease, border-color 0.3s;
}
.post-drop-extra.is-locked { opacity: 0.55; }
.post-drop-extra.is-locked .post-label-req { opacity: 0.5; }

.post-drop-extra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Native date/time picker icon — match theme */
[data-theme="dark"] .post-drop-extra .post-input[type="date"],
[data-theme="dark"] .post-drop-extra .post-input[type="time"] {
  color-scheme: dark;
}
[data-theme="light"] .post-drop-extra .post-input[type="date"],
[data-theme="light"] .post-drop-extra .post-input[type="time"] {
  color-scheme: light;
}

[data-theme="dark"] .post-drop-extra .post-input::-webkit-calendar-picker-indicator {
  filter: invert(0) brightness(1.2);
  opacity: 0.45;
  transition: opacity 0.15s;
}
[data-theme="dark"] .post-drop-extra .post-input:not(:disabled):hover::-webkit-calendar-picker-indicator {
  opacity: 0.75;
}

/* Disabled inputs / dropdown */
.post-drop-extra .post-input:disabled {
  cursor: not-allowed;
  background: var(--white-08);
  color: var(--white-40);
}
.post-drop-extra .post-input:disabled::-webkit-calendar-picker-indicator {
  opacity: 0.25 !important;
  cursor: not-allowed;
}

.post-dropdown.is-disabled .post-dropdown-btn {
  cursor: not-allowed;
  background: var(--white-08);
  color: var(--white-40);
  pointer-events: none;
}
.post-dropdown.is-disabled .post-dropdown-arrow { opacity: 0.4; }

@media (max-width: 510px) {
  .post-drop-row { gap: 12px; }
  .post-drop-title { font-size: 14px; gap: 8px; }
  .post-drop-sub { font-size: 12px; }
  .post-drop-tooltip { width: 240px; left: auto; right: -8px; transform: translateY(4px); }
  .post-drop-tooltip::after { left: auto; right: 12px; transform: none; }
  .post-drop-help:hover .post-drop-tooltip,
  .post-drop-help:focus-visible .post-drop-tooltip,
  .post-drop-help.open .post-drop-tooltip {
    transform: translateY(0);
  }
  .post-drop-extra { margin-top: 16px; padding-top: 16px; gap: 14px; }
  .post-drop-extra-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* ═══════════════════════════════════════
   PROMO MODAL — after submit
   ═══════════════════════════════════════ */
.promo-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.promo-modal.open { opacity: 1; pointer-events: auto; }

.promo-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.promo-modal-dialog {
  position: relative;
  width: min(960px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--white-14);
  border-radius: var(--r-l);
  padding: 36px 32px 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
}
.promo-modal.open .promo-modal-dialog { transform: translateY(0) scale(1); }

[data-theme="light"] .promo-modal-dialog {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
}

.promo-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--white-14);
  background: var(--white-08);
  border-radius: 50%;
  color: var(--white-70);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.promo-modal-close:hover {
  background: var(--white-14);
  color: var(--white);
  border-color: var(--white-40);
}

/* Header */
.promo-modal-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 0 24px;
}
.promo-modal-success-icon {
  display: inline-flex;
  margin-bottom: 4px;
}
.promo-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
}
.promo-modal-sub {
  font-size: 15px;
  color: var(--white-70);
  margin: 0;
  line-height: 1.45;
}
.promo-modal-link-inline {
  color: var(--purple);
  text-decoration: underline;
  text-decoration-color: rgba(139, 93, 246, 0.4);
  text-underline-offset: 2px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.promo-modal-link-inline:hover {
  color: #a479ff;
  text-decoration-color: var(--purple);
}

/* Services intro row */
.promo-services {
  background: var(--white-08);
  border: 1px solid var(--white-14);
  border-radius: var(--r-m);
  padding: 16px 20px;
  margin-bottom: 18px;
}
.promo-services-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.promo-services-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 2px;
}
.promo-services-sub {
  font-size: 13px;
  color: var(--white-40);
  margin: 0;
}
.promo-balance {
  flex-shrink: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 8px 14px;
  background: rgba(178, 239, 44, 0.12);
  border: 1px solid rgba(178, 239, 44, 0.3);
  border-radius: var(--r-s);
  line-height: 1.1;
}
.promo-balance-label { font-size: 11px; color: var(--white-40); }
.promo-balance-value { font-size: 16px; font-weight: 700; color: var(--lime); }

/* Cards */
.promo-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.promo-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--white-14);
  border-radius: var(--r-m);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.promo-card:hover {
  transform: translateY(-2px);
  border-color: var(--white-40);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.promo-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--r-xxl);
  background: rgba(254, 224, 109, 0.18);
  color: #fee06d;
  border: 1px solid rgba(254, 224, 109, 0.4);
  z-index: 2;
}

.promo-card-head {
  padding: 22px 20px 18px;
  text-align: center;
  color: #fff;
}
.promo-card-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  opacity: 0.92;
}
.promo-card-price {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.promo-card--bronze .promo-card-head { background: linear-gradient(135deg, #e89441 0%, #c97a2c 100%); }
.promo-card--silver .promo-card-head { background: linear-gradient(135deg, #b8b8c4 0%, #8e8e9a 100%); }
.promo-card--gold   .promo-card-head { background: linear-gradient(135deg, #ffe066 0%, #f5c842 100%); color: #3a2e0a; }

.promo-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.promo-card-desc {
  font-size: 13px;
  color: var(--white-70);
  line-height: 1.45;
  margin: 0;
}

.promo-card-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.promo-card-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 13px;
  color: var(--white);
  border-top: 1px solid var(--white-14);
}
.promo-card-features li:first-child { border-top: none; padding-top: 0; }
.promo-card-features svg {
  flex-shrink: 0;
  color: var(--white-70);
}
.promo-card-features strong { font-weight: 700; }

/* Selectable card */
.promo-card { cursor: pointer; outline: none; }
.promo-card:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}
.promo-card.is-selected {
  border-color: var(--purple);
  box-shadow: 0 0 0 1px var(--purple), 0 12px 28px rgba(139, 93, 246, 0.22);
  transform: translateY(-2px);
}

.promo-card-pick {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--white-08);
  border: 1px solid var(--white-14);
  border-radius: var(--r-s);
  font-size: 13px;
  font-weight: 600;
  color: var(--white-70);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.promo-card:hover .promo-card-pick { border-color: var(--white-40); color: var(--white); }
.promo-card.is-selected .promo-card-pick {
  background: rgba(139, 93, 246, 0.18);
  border-color: var(--purple);
  color: var(--white);
}

.promo-card-radio {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.6px solid var(--white-40);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.promo-card-radio svg { width: 14px; height: 14px; transform: scale(0.5); transition: transform 0.18s; }
.promo-card.is-selected .promo-card-radio {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}
.promo-card.is-selected .promo-card-radio svg { transform: scale(1); }

/* In-form promo block */
.post-promo-card { position: relative; }

.post-card-badge--soft {
  background: var(--white-08);
  color: var(--white-70);
  border: 1px solid var(--white-14);
}

.promo-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  background: var(--white-08);
  border: 1px solid var(--white-14);
  border-radius: var(--r-m);
  margin-bottom: 14px;
}
.promo-balance-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
  min-width: 0;
}
.promo-balance-label { font-size: 12px; color: var(--white-40); }
.promo-balance-value { font-size: 18px; font-weight: 700; color: var(--lime); font-feature-settings: 'tnum' 1; }

.promo-topup-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
  background: rgba(139, 93, 246, 0.14);
  border: 1px solid rgba(139, 93, 246, 0.4);
  border-radius: var(--r-xxl);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}
.promo-topup-btn:hover {
  background: rgba(139, 93, 246, 0.22);
  border-color: var(--purple);
  color: #fff;
}
.promo-topup-btn.is-urgent {
  background: rgba(252, 82, 82, 0.16);
  border-color: rgba(252, 82, 82, 0.5);
  color: #ff6b6b;
  animation: promo-topup-pulse 1.4s ease-in-out infinite;
}
.promo-topup-btn.is-urgent:hover {
  background: rgba(252, 82, 82, 0.26);
  color: #fff;
}
@keyframes promo-topup-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(252, 82, 82, 0.4); }
  50%      { box-shadow: 0 0 0 6px rgba(252, 82, 82, 0); }
}

.promo-cards-hint {
  font-size: 12px;
  color: var(--white-40);
  margin: 0 0 12px;
  line-height: 1.45;
}

.promo-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--r-s);
  font-size: 13px;
  line-height: 1.4;
}
.promo-cards .promo-status { grid-column: 1 / -1; }
.promo-status[hidden] { display: none; }
.promo-status--ok {
  background: rgba(178, 239, 44, 0.12);
  border: 1px solid rgba(178, 239, 44, 0.35);
  color: var(--lime);
}
.promo-status--warn {
  background: rgba(252, 82, 82, 0.14);
  border: 1px solid rgba(252, 82, 82, 0.4);
  color: #ff6b6b;
}
.promo-status svg { flex-shrink: 0; }

/* Modal applied summary */
.promo-modal-applied {
  margin: 8px 0 0;
  padding: 10px 14px;
  background: rgba(178, 239, 44, 0.12);
  border: 1px solid rgba(178, 239, 44, 0.35);
  border-radius: var(--r-s);
  font-size: 13px;
  color: var(--lime);
}
.promo-modal-applied strong { color: var(--white); font-weight: 700; }

/* Footer */
/* ── SERVICE CHECKBOXES ── */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-m);
  border: 1.5px solid var(--white-14);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}
.service-item:hover { border-color: var(--white-30); }
.service-item.is-selected {
  border-color: var(--purple);
  background: rgba(139, 93, 246, 0.08);
}

.service-cb { display: none; }

.service-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--white-30);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.service-check svg { opacity: 0; transition: opacity 0.12s; width: 12px; height: 12px; }
.service-item.is-selected .service-check {
  background: var(--purple);
  border-color: var(--purple);
}
.service-item.is-selected .service-check svg { opacity: 1; }

.service-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.service-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}
.service-desc {
  font-size: 13px;
  color: var(--white-40);
}

.service-price {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}
.service-item--free .service-price { color: var(--white-40); font-weight: 400; }

/* ── MODAL PACKAGE SELECTION ── */
.modal-pkg-section {
  margin-top: 20px;
  border-top: 1px solid var(--white-14);
  padding-top: 20px;
}
.modal-pkg-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  transition: color 0.3s;
}
.modal-pkg-hint {
  font-size: 13px;
  color: var(--white-40);
  margin-bottom: 16px;
  transition: color 0.3s;
}

/* Balance row */
.modal-pkg-balance {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(178, 239, 44, 0.08);
  border: 1px solid rgba(178, 239, 44, 0.2);
  border-radius: var(--r-m);
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--white-70);
  transition: color 0.3s;
}
.modal-pkg-balance strong {
  color: var(--lime);
  font-weight: 700;
}

/* Package grid */
.modal-pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.modal-pkg-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--white-14);
  transition: border-color 0.2s, transform 0.15s;
}
.modal-pkg-card:hover { transform: translateY(-3px); }

.modal-pkg-card-header {
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.modal-pkg-card-name {
  font-size: 15px;
  font-weight: 700;
}
.modal-pkg-card-price {
  font-family: 'Unbounded', 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 700;
}

/* Bronze */
.modal-pkg-card--bronze .modal-pkg-card-header { background: #d98c35; color: #fff; }
.modal-pkg-card--bronze:hover { border-color: #d98c35; }
.modal-pkg-card--bronze .modal-pkg-buy-card { background: #d98c35; color: #fff; }

/* Silver */
.modal-pkg-card--silver .modal-pkg-card-header { background: #6b7280; color: #fff; }
.modal-pkg-card--silver:hover { border-color: #6b7280; }
.modal-pkg-card--silver .modal-pkg-buy-card { background: #6b7280; color: #fff; }

/* Gold */
.modal-pkg-card--gold .modal-pkg-card-header { background: #e8b800; color: #1a1a26; }
.modal-pkg-card--gold:hover { border-color: #e8b800; }
.modal-pkg-card--gold .modal-pkg-buy-card { background: #e8b800; color: #1a1a26; }

.modal-pkg-card-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-card);
  transition: background 0.3s;
}
.modal-pkg-card-desc {
  font-size: 13px;
  color: var(--white-40);
  line-height: 1.5;
  margin: 0;
  transition: color 0.3s;
}

.modal-pkg-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.modal-pkg-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--white-08);
  font-size: 14px;
  color: var(--white-70);
  transition: color 0.3s, border-color 0.3s;
}
.modal-pkg-features li:last-child { border-bottom: none; }
.modal-pkg-features li svg { flex-shrink: 0; opacity: 0.65; }

.modal-pkg-buy-card {
  width: 100%;
  padding: 13px;
  border-radius: var(--r-xxl);
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
}
.modal-pkg-buy-card:hover { filter: brightness(1.08); }
.modal-pkg-buy-card:active { transform: scale(0.97); }

[data-theme="light"] .modal-pkg-card-body { background: #fff; }
[data-theme="light"] .modal-pkg-card--silver .modal-pkg-card-header { background: #9ca3af; }

.promo-modal-foot {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}
.promo-modal-skip {
  background: none;
  border: none;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--white-40);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s;
}
.promo-modal-skip:hover { color: var(--white-70); }

@media (max-width: 800px) {
  .promo-cards { grid-template-columns: 1fr 1fr; }
  .promo-card--gold { grid-column: 1 / -1; }
  .promo-services-row { flex-direction: column; align-items: flex-start; }
  .promo-balance { align-self: stretch; flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (max-width: 510px) {
  .promo-modal { padding: 12px 8px; }
  .promo-modal-dialog { padding: 28px 18px 20px; max-height: calc(100vh - 24px); border-radius: var(--r-m); }
  .promo-modal-title { font-size: 19px; }
  .promo-modal-sub { font-size: 13px; }
  .promo-cards { grid-template-columns: 1fr; }
  .promo-card--gold { grid-column: auto; }
  .promo-card-head { padding: 18px 16px 14px; }
  .promo-card-price { font-size: 22px; }
  .promo-card-body { padding: 16px; }
  .promo-services { padding: 14px 16px; }
}

/* Стилизация стандартного загрузчика Osclass под ваш дизайн */
#restricted-fine-uploader .qq-upload-button {
    background: transparent !important;
    border: 2px dashed #e5e7eb !important;
    border-radius: 16px !important;
    padding: 48px !important;
    text-align: center !important;
    color: #6b7280 !important;
}

#restricted-fine-uploader .qq-upload-button:before {
    content: "📸 Перетащите фото или видео сюда" !important;
    display: block !important;
    font-size: 16px !important;
    margin-bottom: 8px !important;
}

#restricted-fine-uploader .qq-upload-button div {
    display: none !important;
}

#restricted-fine-uploader .qq-upload-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
    gap: 12px !important;
    margin-top: 20px !important;
}

#restricted-fine-uploader .qq-upload-list li {
    border-radius: 12px !important;
    overflow: hidden !important;
}

#select_1 {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: var(--bg-light);
    border: 1px solid var(--white-08);
    border-radius: 9px;
    padding: 9px 12px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--white);
    transition: border-color var(--transition);
}

#select_2 {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: var(--bg-light);
    border: 1px solid var(--white-08);
    border-radius: 9px;
    padding: 9px 12px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--white);
    transition: border-color var(--transition);
}

/* Принудительное отключение серого стиля для активных полей дропа */
.post-drop-extra .post-input:not(:disabled),
.post-drop-extra .post-dropdown-btn:not(:disabled) {
    background: var(--bg-light);
    border-color: var(--white-14);
    color: var(--white);
    cursor: pointer;
    opacity: 1;
}

/* Убираем серый фон у раскрытого блока */
.post-drop-extra:not(.is-locked) {
    opacity: 1;
    pointer-events: auto;
}

/* Применяем стили post-field к родительскому контейнеру */
.plugin-hook-data .row {
    margin-bottom: 20px;
}

/* Каждый блок meta превращаем в post-field */
.plugin-hook-data .meta {
    margin-bottom: 25px;
    position: relative;
}

/* Стилизуем label как post-label */
.plugin-hook-data .meta label {
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    display: block;
    margin-bottom: 8px;
    font-family: inherit;
}

/* Добавляем звездочку для обязательных полей */
.plugin-hook-data .meta[data-required="1"] label:after {
    content: " *";
    color: #e74c3c;
}

/* Стили для input и select */
.plugin-hook-data .meta input,
.plugin-hook-data .meta select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    background-color: #fff;
}

/* Стиль для select чтобы выглядел как cat-drop-btn */
.plugin-hook-data .meta select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

/* Hover и focus состояния */
.plugin-hook-data .meta input:hover:not(:disabled),
.plugin-hook-data .meta select:hover:not(:disabled) {
    border-color: #bbb;
}

.plugin-hook-data .meta input:focus,
.plugin-hook-data .meta select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Для текстовых полей добавляем счетчик (имитация post-field-counter) */
.plugin-hook-data .meta[data-type="TEXT"] {
    position: relative;
}

.plugin-hook-data .meta[data-type="TEXT"] input {
    padding-right: 60px;
}

.plugin-hook-data .meta[data-type="TEXT"]:after {
    content: "0 / 100";
    position: absolute;
    right: 12px;
    bottom: 12px;
    font-size: 11px;
    color: #999;
    background: #fff;
    padding-left: 8px;
    pointer-events: none;
}

/* Обновляем счетчик при вводе (через JS можно динамически) */
.plugin-hook-data .meta[data-type="TEXT"] input:valid:not([value=""]) {
    /* для динамики нужен JS, это визуальная имитация */
}

/* Добавляем подсказку к первому полю (как в примере с заголовком) */
.plugin-hook-data .meta[data-slug="-sostoyanie"] {
    position: relative;
}

/* Стили для подсказки - можно добавить к любому полю через data-атрибут */
.plugin-hook-data .meta[data-hint] {
    position: relative;
}

.plugin-hook-data .meta[data-hint]:after {
    content: attr(data-hint);
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    padding-left: 22px;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='7' cy='7' r='6' stroke='%23666' stroke-width='1.2'/%3E%3Cpath d='M7 6v4' stroke='%23666' stroke-width='1.3' stroke-linecap='round'/%3E%3Ccircle cx='7' cy='4.5' r='.6' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0 2px;
}

/* Пример как добавить подсказку через атрибут - используйте в HTML:
<div class="meta" data-hint="Хорошее описание привлекает больше внимания. Укажите бренд, модель и ключевые характеристики.">
*/

/* Для поля Состояние - делаем стиль как в целевом примере */
.plugin-hook-data .meta[data-slug="-sostoyanie"] select {
    background-color: #fff;
}

/* Медиа-запрос для мобильных */
@media (max-width: 768px) {
    .plugin-hook-data .meta input,
    .plugin-hook-data .meta select {
        font-size: 16px; /* чтобы не было зума на iOS */
    }
}

/* Стили для лейбла с состоянием чтобы совпадал с примером */
.plugin-hook-data .meta[data-slug="-sostoyanie"] label {
    font-weight: 500;
}

/* Опционально: добавляем отступы как в post-field */
.plugin-hook-data .meta:last-child {
    margin-bottom: 0;
}

/* Стиль для placeholder */
.plugin-hook-data .meta input::placeholder {
    color: #aaa;
    font-size: 13px;
}

.plugin-hook-data {
    /*display: flex;*/
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background: var(--white-08);
    border-radius: var(--r-m);
    border: 1px solid var(--white-14);
    cursor: pointer;
    transition: background 0.15s;
}