* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0f1013;
  color: #f5f5f5;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 640px; padding-top: 24px; padding-bottom: 60px; }

.header {
  background: #16171c;
  border-bottom: 1px solid #262730;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.logo { font-weight: 700; font-size: 20px; color: #6c5ce7; }

.search-form { display: flex; }

.search {
  background: #24252c;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 8px 14px;
  color: #fff;
  width: 260px;
}
.search:focus { outline: none; border-color: #6c5ce7; }

.header-right { display: flex; align-items: center; gap: 16px; }
.admin-link {
  color: #a0a0aa;
  font-size: 14px;
  padding: 6px 12px;
  border: 1px solid #333;
  border-radius: 8px;
}
.admin-link:hover { color: #fff; border-color: #6c5ce7; }
.admin-link-accent { background: #6c5ce7; border-color: #6c5ce7; color: #fff; }
.admin-link-accent:hover { background: #5a4bd1; }
.admin-label { color: #a0a0aa; font-size: 14px; }

.auth-box {
  background: #16171c;
  border: 1px solid #262730;
  border-radius: 12px;
  padding: 32px;
}
.auth-box h1 { font-size: 22px; margin-bottom: 6px; }
.auth-subtitle { color: #a0a0aa; font-size: 14px; margin-bottom: 20px; }
.auth-switch { text-align: center; margin-top: 16px; color: #a0a0aa; font-size: 14px; }
.auth-switch a { color: #6c5ce7; }

.form-error {
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid #e74c3c;
  color: #e74c3c;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 14px;
}

.logout-btn {
  background: none;
  border: 1px solid #333;
  color: #a0a0aa;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}
.logout-btn:hover { color: #fff; border-color: #e74c3c; }

.payment-summary {
  background: #1e1f26;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}
.payment-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: #ccc;
}
.payment-row strong { color: #fff; }
.payment-total {
  border-top: 1px solid #333;
  margin-top: 6px;
  padding-top: 12px;
  font-size: 16px;
}
.payment-total strong { color: #6c5ce7; }

.paid-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.paid-yes { background: rgba(46, 204, 113, 0.15); color: #2ecc71; }
.paid-no { background: rgba(241, 196, 15, 0.15); color: #f1c40f; }

.note-form { display: flex; flex-direction: column; gap: 6px; min-width: 160px; }
.note-textarea {
  background: #24252c;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 6px 8px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  min-height: 44px;
}
.note-textarea:focus { outline: none; border-color: #6c5ce7; }
.note-save-btn {
  background: #24252c;
  border: 1px solid #333;
  color: #a0a0aa;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  align-self: flex-start;
}
.note-save-btn:hover { color: #fff; border-color: #6c5ce7; }

.video-cell { min-width: 160px; }
.video-link {
  display: block;
  color: #6c5ce7;
  font-size: 13px;
  margin-bottom: 6px;
}
.video-link:hover { text-decoration: underline; }

.wa-btn {
  display: inline-block;
  background: #25D366;
  color: #04340F;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
}
.wa-btn:hover { background: #1EBE5A; }

.upload-form { display: flex; flex-direction: column; gap: 6px; min-width: 160px; }
.upload-input {
  font-size: 12px;
  color: #a0a0aa;
  max-width: 160px;
}
.upload-btn {
  background: #24252c;
  border: 1px solid #333;
  color: #a0a0aa;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  align-self: flex-start;
}
.upload-btn:hover { color: #fff; border-color: #6c5ce7; }

.video-player {
  width: 100%;
  border-radius: 8px;
  background: #000;
  margin-top: 8px;
}

.admin-hero { text-align: left; padding: 32px 0 20px; }
.admin-hero h1 { font-size: 26px; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #16171c;
  border: 1px solid #262730;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 60px;
  font-size: 14px;
}
.admin-table th, .admin-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #262730;
}
.admin-table th {
  background: #1a1b21;
  color: #a0a0aa;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #1a1b21; }

.nowrap { white-space: nowrap; color: #a0a0aa; }
.instructions-cell { max-width: 220px; color: #ccc; }

.status-select {
  background: #24252c;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 6px 10px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}
.status-pending { border-color: #f1c40f; color: #f1c40f; }
.status-in_progress { border-color: #3498db; color: #3498db; }
.status-done { border-color: #2ecc71; color: #2ecc71; }
.status-cancelled { border-color: #e74c3c; color: #e74c3c; }

.hero { text-align: center; padding: 48px 0 24px; }
.hero h1 { font-size: 32px; margin-bottom: 8px; }
.hero p { color: #a0a0aa; }

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 16px 0 32px;
}

.filter-btn {
  background: #1e1f26;
  border: 1px solid #333;
  color: #ddd;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  display: inline-block;
}
.filter-btn.active, .filter-btn:hover { background: #6c5ce7; border-color: #6c5ce7; color: #fff; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding-bottom: 60px;
}

.card {
  background: #16171c;
  border: 1px solid #262730;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  display: block;
}
.card:hover { transform: translateY(-4px); border-color: #6c5ce7; }

.card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }

.card-body { padding: 12px 14px; }
.card-name { font-weight: 600; font-size: 15px; }
.card-category { color: #a0a0aa; font-size: 13px; margin: 2px 0 8px; }
.card-price { color: #6c5ce7; font-weight: 600; font-size: 14px; }

.back-link {
  display: inline-block;
  color: #a0a0aa;
  font-size: 14px;
  margin-bottom: 20px;
}
.back-link:hover { color: #fff; }

.talent-detail {
  background: #16171c;
  border: 1px solid #262730;
  border-radius: 12px;
  padding: 28px;
}

.talent-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
}

.talent-info h1 { margin-bottom: 4px; font-size: 24px; }
.modal-category { color: #a0a0aa; font-size: 14px; margin-bottom: 4px; }
.modal-price { color: #6c5ce7; font-weight: 600; margin-bottom: 16px; }
.modal-bio { color: #ccc; font-size: 14px; margin-bottom: 20px; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; color: #ccc; margin-bottom: 4px; }
.form-group input, .form-group textarea {
  width: 100%;
  background: #24252c;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
}
.form-group textarea { resize: vertical; min-height: 70px; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #6c5ce7; }

.submit-btn {
  width: 100%;
  background: #6c5ce7;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  display: block;
}
.submit-btn:hover { background: #5a4bd1; }

.link-btn { margin-top: 20px; }

.success-box {
  text-align: center;
  padding: 60px 20px;
  background: #16171c;
  border: 1px solid #262730;
  border-radius: 12px;
}
.success-box .checkmark { font-size: 48px; margin-bottom: 12px; }
.success-box p { color: #ccc; margin: 12px 0; }

.empty-state { text-align: center; color: #888; padding: 60px 0; grid-column: 1 / -1; }
