* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'DM Sans', sans-serif; }

:root {
  --pink:      #e6008d;
  --pink-soft: #ff2bd6;
  --pink-pale: #ffb3f0;
  --deep:      #0d0118;
  --mid:       #160328;
  --border:    rgba(255,255,255,0.09);
  --glass:     rgba(255,255,255,0.05);
  --dim:       rgba(255,255,255,0.5);
}

html, body { height: 100%; }

body {
  background: var(--deep);
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ========== ORBS ========== */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(100px); animation: orbDrift ease-in-out infinite; }
.orb-1 { width: 650px; height: 650px; background: radial-gradient(circle, rgba(74,0,128,0.4), transparent 70%); top: -250px; left: -200px; animation-duration: 22s; }
.orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(230,0,141,0.18), transparent 70%); bottom: -150px; right: -100px; animation-duration: 28s; animation-delay: -9s; }
.orb-3 { width: 350px; height: 350px; background: radial-gradient(circle, rgba(255,43,214,0.12), transparent 70%); top: 45%; left: 45%; animation-duration: 19s; animation-delay: -4s; }
@keyframes orbDrift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(25px,-30px) scale(1.07); } }

/* ========== TOP BAR ========== */
.top-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  background: rgba(13,1,24,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-weight: 600; letter-spacing: 1px;
  background: linear-gradient(135deg, #fff, #ffb3f0);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.nav-actions { display: flex; gap: 10px; }

.nav-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 20px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: rgba(255,255,255,0.75);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.25s;
}

.nav-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}

.nav-btn-primary {
  background: rgba(255,43,214,0.12);
  border-color: rgba(255,43,214,0.3);
  color: var(--pink-pale);
}

.nav-btn-primary:hover {
  background: rgba(255,43,214,0.22);
  border-color: rgba(255,43,214,0.55);
  color: #fff;
}

/* ========== DASHBOARD ========== */
.dashboard {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 92px 36px 36px;
  min-height: 100vh;
}

/* ========== PANELS ========== */
.panel {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.07);
  animation: panelIn 0.6s ease both;
}

.request-panel { animation-delay: 0s; }
.convo-panel   { animation-delay: 0.1s; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.panel-tag {
  display: inline-block;
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--pink-soft);
  margin-bottom: 8px;
}

.panel-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px; font-weight: 300; line-height: 1.1;
  margin-bottom: 8px;
}

.panel-header h2 em {
  font-style: italic;
  background: linear-gradient(135deg, #ff2bd6, #e6008d);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.panel-header p {
  font-size: 13px; color: var(--dim); line-height: 1.65; font-weight: 300;
}

/* ========== REQUEST FORM ========== */
.request-form { display: flex; flex-direction: column; gap: 16px; flex: 1; }

.field-group { display: flex; flex-direction: column; gap: 7px; }

.field-label {
  font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.select-wrap { position: relative; }

.sel-ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px;
  color: rgba(255,255,255,0.28); pointer-events: none;
}

.select-wrap select {
  width: 100%;
  padding: 13px 14px 13px 40px;
  border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  outline: none;
  cursor: pointer;
  --webkit-appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.select-wrap select option { background: #1a0535; color: #fff; }

.select-wrap select:focus {
  border-color: rgba(255,43,214,0.55);
  box-shadow: 0 0 0 3px rgba(255,43,214,0.1);
}

/* Urgency chips */
.urgency-row { display: flex; gap: 10px; }

.urgency-chip { flex: 1; }

.urgency-chip input { display: none; }

.urgency-chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 11px 8px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
}

.urgency-chip input:checked + span {
  border-color: rgba(255,43,214,0.55);
  background: rgba(255,43,214,0.12);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(255,43,214,0.1);
}

.urgency-chip span:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* Textarea */
.textarea-wrap { position: relative; }

.textarea-wrap textarea {
  width: 100%;
  padding: 14px 16px 36px;
  border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  line-height: 1.65;
  outline: none;
  resize: none;
  height: 130px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.textarea-wrap textarea::placeholder { color: rgba(255,255,255,0.22); }

.textarea-wrap textarea:focus {
  border-color: rgba(255,43,214,0.55);
  box-shadow: 0 0 0 3px rgba(255,43,214,0.1);
}

.char-pill {
  position: absolute; bottom: 12px; right: 14px;
  font-size: 11px; color: rgba(255,255,255,0.25);
}

/* Submit button */
.btn-submit {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 15px;
  border-radius: 14px; border: none;
  background: linear-gradient(135deg, #ff2bd6, #e6008d);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(230,0,141,0.4);
  transition: transform 0.25s, box-shadow 0.25s;
  margin-top: 4px;
}

.btn-submit svg { transition: transform 0.25s; }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(230,0,141,0.55); }
.btn-submit:hover svg { transform: translateX(3px) translateY(-3px); }
.btn-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.submit-msg {
  font-size: 13px; border-radius: 12px;
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s, padding 0.3s;
  text-align: center;
}

.submit-msg.success { background: rgba(60,255,160,0.1); border: 1px solid rgba(60,255,160,0.2); color: #90ffcc; padding: 10px; max-height: 60px; }
.submit-msg.error   { background: rgba(255,60,60,0.1); border: 1px solid rgba(255,60,60,0.2); color: #ff9090; padding: 10px; max-height: 60px; }

/* ========== CONVERSATIONS ========== */
.convo-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px;
}

.convo-list::-webkit-scrollbar { width: 4px; }
.convo-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 10px; }

.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px;
  gap: 10px;
  opacity: 0.6;
  flex: 1;
}

.empty-icon { font-size: 48px; }
.empty-state p { font-size: 17px; font-weight: 600; }
.empty-state span { font-size: 13px; opacity: 0.7; line-height: 1.5; }

.conversation-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.conversation-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, #ff2bd6, #e6008d);
  opacity: 0;
  transition: opacity 0.25s;
}

.conversation-card:hover {
  background: rgba(255,43,214,0.07);
  border-color: rgba(255,43,214,0.2);
  transform: translateX(4px);
}

.conversation-card:hover::before { opacity: 1; }

.conversation-card h4 {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--pink-pale); margin-bottom: 10px;
}

.conversation-card p {
  font-size: 13px; line-height: 1.55; opacity: 0.85; margin-bottom: 5px;
}

.giver-name {
  display: block; margin-top: 10px;
  font-size: 12px; opacity: 0.45; font-style: italic;
}

/* ========== MODALS ========== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}

.modal-overlay.hidden { display: none; }

.modal-box {
  position: relative;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 28px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  animation: modalIn 0.35s ease both;
  color: #fff;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.93) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}

.modal-close:hover { background: rgba(255,43,214,0.25); border-color: rgba(255,43,214,0.4); color: #fff; transform: rotate(90deg); }

/* Profile modal */
.profile-modal-box { width: 460px; max-width: 100%; padding: 40px 36px; max-height: 90vh; overflow-y: auto; }
.profile-modal-box::-webkit-scrollbar { width: 4px; }
.profile-modal-box::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 10px; }

/* Action modal */
.action-modal-box { width: 380px; max-width: 100%; padding: 40px 32px; text-align: center; }

.action-icon { font-size: 42px; margin-bottom: 14px; }

.action-modal-box h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 300; margin-bottom: 6px;
}

.action-sub { font-size: 13px; color: var(--dim); margin-bottom: 24px; }

.action-btns { display: flex; flex-direction: column; gap: 10px; }

.action-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px;
  border-radius: 14px; border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.25s;
}

.action-btn.continue {
  background: linear-gradient(135deg, #ff2bd6, #e6008d);
  color: #fff;
  box-shadow: 0 10px 24px rgba(230,0,141,0.4);
}
.action-btn.continue:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(230,0,141,0.55); }

.action-btn.end {
  background: rgba(255,200,50,0.12);
  border: 1.5px solid rgba(255,200,50,0.3);
  color: #ffd666;
}
.action-btn.end:hover { background: rgba(255,200,50,0.22); }

.action-btn.report {
  background: rgba(255,60,60,0.1);
  border: 1.5px solid rgba(255,60,60,0.3);
  color: #ff8080;
}
.action-btn.report:hover { background: rgba(255,60,60,0.22); }

.action-btn.cancel {
  background: transparent;
  color: rgba(255,255,255,0.35);
  font-weight: 400; font-size: 13px;
}
.action-btn.cancel:hover { color: rgba(255,255,255,0.7); }

/* ========== PROFILE VIEW (inside modal) ========== */
.profile-view {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; text-align: center;
}

.profile-avatar-wrap {
  position: relative; width: 110px; height: 110px; margin-bottom: 6px;
}

.profile-avatar-wrap img {
  width: 110px; height: 110px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(255,43,214,0.6);
  box-shadow: 0 8px 28px rgba(255,43,214,0.3);
}

.avatar-edit-overlay {
  display: none; position: absolute; inset: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  align-items: center; justify-content: center;
  cursor: pointer; font-size: 24px;
  transition: opacity 0.2s;
}

.avatar-edit-overlay.visible { display: flex; }

.profile-view h2 { font-size: 22px; font-weight: 600; }

.username-tag { font-size: 13px; color: var(--dim); margin-top: -4px; }

.profile-info-grid { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 6px; text-align: left; }

.info-item {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 12px 16px;
}

.info-label { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 4px; }
.info-value { font-size: 14px; color: #fff; font-weight: 400; line-height: 1.5; }

.profile-edit-trigger {
  padding: 10px 26px; border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff; font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: all 0.2s; margin-top: 6px;
}

.profile-edit-trigger:hover { background: rgba(255,43,214,0.2); border-color: rgba(255,43,214,0.4); }

/* Edit form */
.profile-edit-form { display: flex; flex-direction: column; gap: 12px; width: 100%; }

.edit-title { font-size: 20px; font-weight: 600; text-align: center; margin-bottom: 4px; }

.form-label { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 4px; display: block; }

.profile-edit-form input[type="text"],
.profile-edit-form textarea {
  width: 100%; padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.07);
  color: #fff; font-family: 'DM Sans', sans-serif; font-size: 14px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-edit-form input::placeholder,
.profile-edit-form textarea::placeholder { color: rgba(255,255,255,0.3); }

.profile-edit-form input:focus,
.profile-edit-form textarea:focus {
  border-color: rgba(255,43,214,0.5);
  box-shadow: 0 0 0 3px rgba(255,43,214,0.1);
}

.profile-edit-form textarea { height: 90px; resize: none; }

#picInput { display: none; }

.edit-actions { display: flex; gap: 10px; margin-top: 4px; }

.btn-save {
  flex: 1; padding: 12px; border-radius: 12px; border: none;
  background: linear-gradient(135deg, #ff2bd6, #e6008d);
  color: #fff; font-weight: 600; font-size: 14px;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  box-shadow: 0 8px 20px rgba(255,43,214,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-save:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,43,214,0.5); }

.btn-cancel-edit {
  flex: 1; padding: 12px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.7); font-weight: 500; font-size: 14px;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: background 0.2s;
}
.btn-cancel-edit:hover { background: rgba(255,255,255,0.14); color: #fff; }

.profile-message { text-align: center; font-size: 13px; color: var(--pink-pale); min-height: 18px; }

.hidden { display: none !important; }

/* ========== MOBILE ========== */
@media (max-width: 860px) {
  .dashboard { grid-template-columns: 1fr; padding: 86px 20px 30px; gap: 20px; }
  .top-bar { padding: 0 20px; }
  .panel { padding: 28px 22px; }
  .panel-header h2 { font-size: 28px; }
  .urgency-row { gap: 8px; }
  .urgency-chip span { font-size: 11.5px; padding: 10px 6px; }
}

@media (max-width: 480px) {
  .top-bar { height: auto; padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
  .nav-btn { padding: 8px 14px; font-size: 12px; }
  .dashboard { padding-top: 20px; }
  .profile-modal-box { padding: 32px 22px; }
  .action-modal-box { padding: 32px 22px; }
  .edit-actions { flex-direction: column; }
}

/* ========== COOLDOWN CARD ========== */
.cooldown-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  gap: 12px;
  flex: 1;
  animation: panelIn 0.5s ease both;
}

.cooldown-icon { font-size: 48px; margin-bottom: 4px; }

.cooldown-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 300;
  color: #fff;
}

.cooldown-text {
  font-size: 13.5px;
  color: var(--dim);
  line-height: 1.75;
  max-width: 340px;
  font-weight: 300;
}

.cooldown-timer-wrap {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.cooldown-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.cooldown-timer {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 300;
  background: linear-gradient(135deg, #ff2bd6, #e6008d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: 2px;
}

.cooldown-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
  margin: 4px 0;
}

.cooldown-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #ff2bd6, #e6008d);
  border-radius: 4px;
  transform-origin: left;
  transition: transform 1s linear;
}

.cooldown-note {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  font-style: italic;
  line-height: 1.6;
  max-width: 300px;
}

/* ========== LOGOUT BUTTON ========== */
.profile-logout-btn {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border-radius: 14px;
  border: 1px solid rgba(255,80,80,0.35);
  background: rgba(255,60,60,0.1);
  color: #ff8080;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
}
.profile-logout-btn:hover {
  background: rgba(255,60,60,0.25);
  border-color: rgba(255,80,80,0.55);
  transform: translateY(-1px);
}