/* ── CREATE LISTING PAGE ── */
.create-page { padding-top: 32px; }

.create-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.create-back {
  width: 36px; height: 36px;
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #64748b; text-decoration: none;
  transition: border-color .15s, color .15s;
  flex-shrink: 0; margin-top: 3px;
}
.create-back:hover { border-color: #a5b4fc; color: #4338ca; }
.create-back span  { font-size: 1.1rem; }
.create-title { font-size: 1.4rem; font-weight: 700; color: #1e2139; margin-bottom: 4px; }
.create-sub   { font-size: .84rem; color: #94a3b8; }

.create-alert {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fef2f2; border: 1px solid #fecaca;
  color: #991b1b; font-size: .83rem;
  padding: 13px 16px; border-radius: 12px;
  margin-bottom: 20px; line-height: 1.6;
}
.create-alert span { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }

.create-guest-banner {
  display: flex; gap: 10px; align-items: flex-start;
  background: #eff6ff; border: 1px solid #bfdbfe;
  color: #1e40af; font-size: .83rem;
  padding: 13px 16px; border-radius: 12px;
  margin-bottom: 20px; line-height: 1.6;
}
.create-guest-banner span { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.create-guest-banner a { color: #2563eb; font-weight: 600; text-decoration: none; }
.create-guest-banner a:hover { text-decoration: underline; }

.create-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px; align-items: start; margin-bottom: 60px;
}
.create-main    { display: flex; flex-direction: column; gap: 20px; }
.create-sidebar { display: flex; flex-direction: column; gap: 16px; }

.create-card {
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 16px; padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.create-card-title {
  display: flex; align-items: center; gap: 8px;
  font-size: .88rem; font-weight: 700; color: #1e2139;
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}
.create-card-title span { font-size: 1.1rem; color: #6366f1; }

/* Fields */
.cf-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.cf-field:last-child { margin-bottom: 0; }

.cf-field label {
  font-size: .74rem; font-weight: 700;
  color: #8a8ea8; letter-spacing: .05em; text-transform: uppercase;
}
.cf-req      { color: #ef4444; }
.cf-optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: #c4c8d8; }
.cf-hint     { font-size: .72rem; color: #b0b8cc; margin-top: -2px; }

.cf-field input,
.cf-field textarea,
.cf-field select {
  background: #f8f9fc; border: 1px solid #e2e5ef;
  border-radius: 10px;
  font-family: inherit; font-size: .88rem; color: #1e2139;
  padding: 11px 14px;
  transition: border-color .18s, box-shadow .18s, background .18s;
  outline: none; width: 100%;
}
.cf-field input:focus,
.cf-field textarea:focus,
.cf-field select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
  background: #fff;
}
.cf-field input::placeholder,
.cf-field textarea::placeholder { color: #c4c8d8; }
.cf-field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.cf-counter { font-size: .7rem; color: #b0b8cc; align-self: flex-end; margin-top: -4px; }

.cf-input-icon-wrap {
  display: flex; align-items: center;
  background: #f8f9fc; border: 1px solid #e2e5ef;
  border-radius: 10px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.cf-input-icon-wrap:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
  background: #fff;
}
.cf-input-icon-wrap > span { padding: 0 11px; color: #c4c8d8; font-size: 1rem; flex-shrink: 0; }
.cf-input-icon-wrap input {
  flex: 1; background: none; border: none; outline: none;
  padding: 11px 14px 11px 0;
  font-family: inherit; font-size: .88rem; color: #1e2139;
}
.cf-input-icon-wrap input::placeholder { color: #c4c8d8; }

.cf-select-wrap {
  display: flex; align-items: center;
  background: #f8f9fc; border: 1px solid #e2e5ef;
  border-radius: 10px; position: relative;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.cf-select-wrap:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
  background: #fff;
}
.cf-select-wrap > .material-icons-round:first-child { padding: 0 11px; color: #c4c8d8; font-size: 1rem; flex-shrink: 0; pointer-events: none; }
.cf-select-caret { padding: 0 10px; color: #c4c8d8; pointer-events: none; flex-shrink: 0; }
.cf-select-wrap select {
  flex: 1; background: none; border: none; outline: none;
  padding: 11px 0; font-family: inherit; font-size: .88rem; color: #1e2139;
  appearance: none; cursor: pointer;
}
.cf-select-wrap select option { background: #fff; }

.cf-emoji-row   { display: flex; flex-direction: column; gap: 8px; }
.cf-emoji-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.cf-emoji-pick {
  width: 34px; height: 34px;
  background: #f8f9fc; border: 1px solid #e2e5ef;
  border-radius: 8px; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .13s;
}
.cf-emoji-pick:hover { background: #eef2ff; border-color: #a5b4fc; }
.cf-emoji-pick.on    { background: #eef2ff; border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,.15); }

.cf-upload-area {
  border: 2px dashed #e2e5ef; border-radius: 12px;
  overflow: hidden; cursor: pointer;
  transition: border-color .18s, background .18s;
  position: relative; min-height: 180px;
  display: flex; align-items: center; justify-content: center;
}
.cf-upload-area:hover,
.cf-upload-area.dragover { border-color: #6366f1; background: #fafafe; }
.cf-upload-area.dragover { background: #eef2ff; }
.cf-upload-area input[type="file"]:not([style*="display:none"]) { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }

.cf-upload-placeholder {
  display: flex; flex-direction: column; align-items: center;
  padding: 36px 24px; text-align: center; pointer-events: none;
}
.cf-upload-icon {
  width: 56px; height: 56px; background: #eef2ff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.cf-upload-icon span    { font-size: 1.6rem; color: #6366f1; }
.cf-upload-label        { font-size: .88rem; font-weight: 500; color: #475569; margin-bottom: 5px; }
.cf-upload-label span   { color: #6366f1; font-weight: 700; }
.cf-upload-hint         { font-size: .75rem; color: #94a3b8; }

.cf-upload-preview {
  width: 100%; position: relative;
  display: flex; flex-direction: column; align-items: center;
}
.cf-upload-preview img { width: 100%; max-height: 280px; object-fit: cover; display: block; }
.cf-remove-img {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px;
  background: rgba(0,0,0,.55); color: #fff; border: none;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .13s; z-index: 2;
}
.cf-remove-img:hover { background: #ef4444; }
.cf-remove-img span  { font-size: .95rem; }
.cf-preview-info {
  width: 100%; padding: 8px 14px;
  font-size: .72rem; color: #94a3b8;
  background: #f8f9fc; border-top: 1px solid #e2e5ef;
}

/* ── Multi-image grid (create) ── */
.cf-upload-area-sm { min-height: 100px; }
.cf-multi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px; margin-top: 10px;
}
.cf-multi-card {
  position: relative; border-radius: 10px; overflow: hidden;
  border: 2px solid #e2e5ef; aspect-ratio: 1;
  background: #f8f9fc;
}
.cf-multi-card.cf-multi-primary { border-color: #6366f1; }
.cf-multi-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cf-multi-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(99,102,241,.85); color: #fff;
  font-size: .6rem; font-weight: 700; text-align: center;
  padding: 3px 0; text-transform: uppercase; letter-spacing: .05em;
}
.cf-multi-remove {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px;
  background: rgba(0,0,0,.55); color: #fff; border: none;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .13s; z-index: 2;
}
.cf-multi-remove:hover { background: #ef4444; }
.cf-multi-remove span  { font-size: .78rem; }

/* ── Gallery images (edit) ── */
.cf-gal-existing {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px; margin-bottom: 4px;
}
.cf-gal-item {
  position: relative; border-radius: 8px; overflow: hidden;
  border: 2px solid #e2e5ef; aspect-ratio: 1;
}
.cf-gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cf-gal-del {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent; cursor: pointer;
  transition: background .15s;
}
.cf-gal-del input { display: none; }
.cf-gal-del span  { font-size: 1.3rem; color: transparent; transition: color .15s; }
.cf-gal-del:hover { background: rgba(239,68,68,.65); }
.cf-gal-del:hover span { color: #fff; }
.cf-gal-item:has(input:checked) { border-color: #ef4444; }
.cf-gal-item:has(input:checked) .cf-gal-del { background: rgba(239,68,68,.55); }
.cf-gal-item:has(input:checked) .cf-gal-del span { color: #fff; }

.create-submit-card { border-color: #e2e5ef; }
.cf-submit-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px;
  background: #6366f1; color: #fff; border: none;
  border-radius: 11px; font-family: inherit; font-size: .92rem; font-weight: 700;
  cursor: pointer; transition: opacity .15s, transform .1s;
  margin-bottom: 10px;
}
.cf-submit-btn:hover  { opacity: .9; }
.cf-submit-btn:active { transform: scale(.98); }
.cf-submit-btn span   { font-size: 1.05rem; }
.cf-cancel-btn {
  display: block; text-align: center;
  font-size: .82rem; color: #94a3b8;
  text-decoration: none; padding: 6px; transition: color .13s;
}
.cf-cancel-btn:hover { color: #475569; }
.cf-submit-note {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: .74rem; color: #b0b8cc; line-height: 1.5;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid #f1f5f9;
}
.cf-submit-note span { font-size: .88rem; flex-shrink: 0; color: #c4c8d8; }

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

/* ── MY LISTINGS PAGE ── */
.myl-page { padding-top: 36px; }

.myl-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 24px;
}
.myl-title { font-size: 1.4rem; font-weight: 700; color: #1e2139; margin-bottom: 4px; }
.myl-sub   { font-size: .84rem; color: #94a3b8; }

.myl-btn-new {
  display: inline-flex; align-items: center; gap: 6px;
  background: #6366f1; color: #fff; border: none;
  border-radius: 10px; padding: 10px 18px;
  font-family: inherit; font-size: .85rem; font-weight: 700;
  text-decoration: none; transition: opacity .15s;
  white-space: nowrap; flex-shrink: 0;
}
.myl-btn-new:hover { opacity: .88; }
.myl-btn-new span  { font-size: 1rem; }

.myl-chips    { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.myl-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 30px; font-size: .8rem; font-weight: 600;
  color: #64748b; cursor: pointer; transition: all .15s;
}
.myl-chip span.material-icons-round { font-size: .95rem !important; }
.myl-chip:hover { border-color: #a5b4fc; color: #4338ca; background: #eef2ff; }
.myl-chip.active-chip { background: #6366f1; border-color: #6366f1; color: #fff; }
.myl-chip-num {
  background: rgba(0,0,0,.1); border-radius: 20px;
  padding: 1px 6px; font-size: .72rem;
}
.myl-chip.active-chip .myl-chip-num { background: rgba(255,255,255,.25); }

.myl-empty {
  text-align: center; padding: 80px 24px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
}
.myl-empty-icon {
  width: 64px; height: 64px; background: #eef2ff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.myl-empty-icon span { font-size: 1.8rem; color: #6366f1; }
.myl-empty h2 { font-size: 1.1rem; font-weight: 700; color: #1e2139; margin-bottom: 8px; }
.myl-empty p  { font-size: .85rem; color: #94a3b8; margin-bottom: 24px; }

.myl-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }

.myl-row {
  display: grid;
  grid-template-columns: 96px 1fr auto auto auto auto;
  align-items: center; gap: 16px;
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 14px; padding: 14px;
  transition: box-shadow .15s, border-color .15s;
}
.myl-row:hover { border-color: #c7d2fe; box-shadow: 0 4px 16px rgba(99,102,241,.08); }

.myl-thumb {
  position: relative; width: 96px; height: 68px;
  border-radius: 8px; overflow: hidden; flex-shrink: 0;
}
.myl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.myl-thumb-badge {
  position: absolute; top: 5px; left: 5px;
  background: #f59e0b; color: #fff;
  font-size: .6rem; font-weight: 800;
  padding: 2px 5px; border-radius: 4px; letter-spacing: .05em;
}

.myl-info { min-width: 0; }
.myl-name {
  font-size: .9rem; font-weight: 700; color: #1e2139;
  text-decoration: none; display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 7px; transition: color .13s;
}
.myl-name:hover { color: #6366f1; }
.myl-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 5px;
  font-size: .76rem; color: #94a3b8;
}
.myl-meta .material-icons-round { font-size: .85rem !important; }
.myl-cat-dot {
  width: 18px; height: 18px; border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.myl-cat-dot span { font-size: .65rem !important; color: #fff; }
.myl-dot { color: #cbd5e1; }

.myl-stats { flex-shrink: 0; }
.myl-stat {
  display: flex; align-items: center; gap: 4px;
  font-size: .8rem; font-weight: 600; color: #475569; white-space: nowrap;
}
.myl-stat .material-icons-round { font-size: .95rem !important; color: #94a3b8; }
.myl-stat-label { font-weight: 400; color: #94a3b8; font-size: .72rem; }

.myl-price { font-size: .88rem; font-weight: 700; color: #1e2139; white-space: nowrap; flex-shrink: 0; }
.myl-price.free { color: #94a3b8; font-weight: 400; font-style: italic; }

.myl-status { flex-shrink: 0; }
.myl-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 20px; white-space: nowrap;
}
.myl-badge-dot { width: 6px; height: 6px; border-radius: 50%; }
.myl-badge.active   { background: #dcfce7; color: #166534; }
.myl-badge.active   .myl-badge-dot { background: #22c55e; }
.myl-badge.inactive { background: #f1f5f9; color: #64748b; }
.myl-badge.inactive .myl-badge-dot { background: #94a3b8; }

.myl-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.myl-action-btn {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; text-decoration: none;
  transition: background .13s, color .13s;
  border: 1px solid transparent;
}
.myl-action-btn span { font-size: 1.1rem !important; }
.myl-action-btn:hover       { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.myl-action-btn.pause:hover { background: #fef9c3; color: #a16207; border-color: #fde68a; }
.myl-action-btn.play:hover  { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.myl-action-btn.del:hover   { background: #fef2f2; color: #ef4444; border-color: #fecaca; }

@media (max-width: 768px) {
  .myl-row { grid-template-columns: 72px 1fr auto; }
  .myl-stats, .myl-price, .myl-status { display: none; }
  .myl-actions { grid-column: 3; }
  .myl-thumb { width: 72px; height: 52px; }
}
