/* Portal-specific styles, layered on top of main.css */

.portal-body { min-height: 100vh; background: #06060F; }
.dashboard-body { display: flex; flex-direction: column; }

/* ── Portal Header ────────────────────── */
.portal-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 6, 15, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #1E1E35;
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 56px;
  gap: 16px;
}

.portal-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  color: #6B6B8A;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 16px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color 0.15s;
}
.tab-btn.active { color: #7C3AED; border-bottom-color: #7C3AED; font-weight: 700; }
.tab-btn:hover:not(.active) { color: #E8E8F0; }

.badge-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: #EF4444;
  border-radius: 50%;
  position: absolute;
  top: 10px; right: 4px;
}

.btn-logout {
  color: #6B6B8A;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}
.btn-logout:hover { color: #E8E8F0; }

/* ── Portal Main ──────────────────────── */
.portal-main {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 16px 60px;
  width: 100%;
}

.tab-panel { display: flex; flex-direction: column; gap: 16px; }

/* ── Cards ────────────────────────────── */
.card {
  background: #0F0F1A;
  border: 1px solid #1E1E35;
  border-radius: 12px;
  padding: 20px 22px;
}

.card-label {
  color: #6B6B8A;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 14px;
}

.card-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.card-label-row .card-label { margin-bottom: 0; }

/* ── Event Hero ───────────────────────── */
.event-hero {
  background: linear-gradient(120deg, #1a0a3a 0%, #0a1a3a 100%);
  border: 1px solid #2a1a5a;
  border-radius: 16px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}
.event-hero::after {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, #7C3AED33 0%, transparent 70%);
  pointer-events: none;
}
.event-hero.loading { color: #6B6B8A; font-size: 14px; }
.event-eyebrow { color: #9B8FCC; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; font-weight: 700; }
.event-title { color: #fff; font-size: 24px; font-weight: 800; font-family: Georgia, serif; margin-bottom: 4px; }
.event-date { color: #9B8FCC; font-size: 14px; margin-bottom: 20px; }
.event-badges { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Badges ───────────────────────────── */
.badge {
  display: inline-block;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-purple { background: #7C3AED22; color: #9F67FF; border: 1px solid #7C3AED44; }
.badge-green  { background: #10B98122; color: #10B981; border: 1px solid #10B98144; }
.badge-yellow { background: #F59E0B22; color: #F59E0B; border: 1px solid #F59E0B44; }
.badge-red    { background: #EF444422; color: #EF4444; border: 1px solid #EF444444; }

/* ── Stat row ─────────────────────────── */
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.stat-card {
  background: #0F0F1A;
  border: 1px solid #1E1E35;
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
}
.stat-value { font-size: 26px; font-weight: 800; color: #fff; font-family: Georgia, serif; }
.stat-label { font-size: 10px; color: #7C3AED; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin: 4px 0 2px; }
.stat-sub { font-size: 11px; color: #444; }

/* ── Checklist ────────────────────────── */
.check-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #1a1a2e;
}
.check-item:last-child { border-bottom: none; }

.check-circle {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 11px; color: #fff; font-weight: 700;
}
.check-circle.done { background: #7C3AED; }
.check-circle.todo { border: 2px solid #2a2a4a; background: transparent; }
.check-text { font-size: 14px; }
.check-text.done { color: #444; text-decoration: line-through; }
.check-text.todo { color: #ccc; }

/* ── Sub tabs ─────────────────────────── */
.tab-row { display: flex; gap: 8px; margin-bottom: 4px; }
.sub-tab {
  background: #0F0F1A; color: #666;
  border: 1px solid #1E1E35;
  border-radius: 8px; padding: 8px 16px;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.sub-tab.active { background: #7C3AED; color: #fff; border-color: #7C3AED; }

/* ── Song list ────────────────────────── */
.song-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid #1a1a2e;
}
.song-item:last-child { border-bottom: none; }
.song-title { color: #fff; font-size: 14px; font-weight: 600; }
.song-artist { color: #555; font-size: 12px; }
.song-delete {
  background: transparent; border: none; color: #444;
  font-size: 16px; cursor: pointer; padding: 4px 8px;
  border-radius: 4px; transition: color 0.15s;
}
.song-delete:hover { color: #EF4444; }

.btn-add {
  background: #7C3AED22; color: #7C3AED;
  border: 1px solid #7C3AED44;
  border-radius: 6px; padding: 6px 14px;
  font-size: 12px; font-weight: 700; cursor: pointer;
}

/* ── Vibe form ────────────────────────── */
.vibe-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { color: #9B8FCC; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.form-group input, .form-group select, .form-group textarea {
  background: #08080F; border: 1px solid #1E1E35;
  border-radius: 8px; padding: 10px 14px;
  color: #fff; font-size: 14px; font-family: inherit;
  outline: none; transition: border-color 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: #7C3AED;
}
.form-group select option { background: #0F0F1A; }

/* ── Payments ─────────────────────────── */
.payment-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid #1a1a2e;
}
.payment-item:last-child { border-bottom: none; }
.payment-label { color: #fff; font-size: 14px; font-weight: 600; }
.payment-date { color: #555; font-size: 12px; }
.payment-amount { font-family: Georgia, serif; font-size: 20px; font-weight: 800; }
.payment-amount.paid { color: #10B981; }
.payment-amount.due { color: #F59E0B; }

.btn-pay {
  display: block; width: 100%; margin-top: 16px;
  background: #7C3AED; color: #fff; border: none;
  border-radius: 10px; padding: 14px 0;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: opacity 0.15s;
}
.btn-pay:hover { opacity: 0.88; }

.btn-pay-now {
  background: #7C3AED; color: #fff;
  border: none; border-radius: 6px;
  padding: 7px 14px; font-size: 12px;
  font-weight: 700; cursor: pointer;
  transition: opacity 0.15s;
  margin-top: 4px;
}
.btn-pay-now:hover { opacity: 0.85; }

/* ── Messages ─────────────────────────── */
.messages-shell {
  background: #0F0F1A; border: 1px solid #1E1E35;
  border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
}
.messages-header {
  padding: 16px 20px; border-bottom: 1px solid #1E1E35;
  display: flex; align-items: center; gap: 12px;
}
.dj-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED, #0EA5E9);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 13px; flex-shrink: 0;
}
.dj-name { color: #fff; font-size: 14px; font-weight: 700; }
.dj-status { color: #10B981; font-size: 11px; }
.messages-list {
  padding: 16px 20px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 240px; max-height: 400px; overflow-y: auto;
}
.msg-bubble { display: flex; flex-direction: column; }
.msg-bubble.client { align-items: flex-end; }
.msg-bubble.admin { align-items: flex-start; }
.msg-text {
  padding: 10px 14px; border-radius: 12px;
  font-size: 13px; line-height: 1.5; max-width: 80%;
}
.msg-bubble.client .msg-text { background: #7C3AED; color: #fff; border-radius: 12px 12px 2px 12px; }
.msg-bubble.admin .msg-text { background: #1a1a2e; color: #E8E8F0; border-radius: 12px 12px 12px 2px; }
.msg-time { color: #333; font-size: 11px; margin-top: 4px; }
.messages-input-row {
  padding: 12px 16px; border-top: 1px solid #1E1E35;
  display: flex; gap: 10px; align-items: center;
}
.messages-input-row input {
  flex: 1; background: #08080F; border: 1px solid #1E1E35;
  border-radius: 8px; padding: 10px 14px; color: #fff;
  font-size: 13px; outline: none; font-family: inherit;
}
.messages-input-row input:focus { border-color: #7C3AED; }

/* ── Modal ────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal {
  background: #0F0F1A; border: 1px solid #1E1E35;
  border-radius: 16px; padding: 28px 24px;
  width: 100%; max-width: 420px;
  display: flex; flex-direction: column; gap: 16px;
}
.modal h3 { color: #fff; font-size: 18px; font-weight: 800; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ── Login ────────────────────────────── */
.login-wrap {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(ellipse 50% 60% at 50% 40%, #7C3AED18 0%, transparent 60%);
}
.login-logo { margin-bottom: 32px; }
.login-card {
  background: #0F0F1A; border: 1px solid #1E1E35;
  border-radius: 16px; padding: 32px 28px;
  width: 100%; max-width: 400px;
  display: flex; flex-direction: column; gap: 16px;
}
.login-card h1 { color: #fff; font-size: 22px; font-weight: 800; }
.login-sub { color: #6B6B8A; font-size: 14px; }
.btn-full { width: 100%; text-align: center; }
.login-footer { color: #444; font-size: 12px; text-align: center; line-height: 1.5; }

.error-banner {
  background: #EF444422; border: 1px solid #EF444444;
  color: #EF4444; border-radius: 8px;
  padding: 10px 14px; font-size: 13px;
}
