/* Singh.in stylesheet — pink primary, indigo accent, charcoal text */

:root {
  --pink: #F31C67;
  --pink-dark: #C01551;
  --indigo: #185FA5;
  --indigo-dark: #0C447C;
  --charcoal: #1A1A1A;
  --gray-900: #1F2937;
  --gray-700: #374151;
  --gray-500: #6B7280;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50: #FAF7F4;
  --cream: #FAF7F4;
  --success: #1D9E75;
  --success-bg: #EAF3DE;
  --error: #A32D2D;
  --error-bg: #FCEBEB;
  --warning: #BA7517;
  --warning-bg: #FAEEDA;
  --info: #185FA5;
  --info-bg: #E6F1FB;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 2px 6px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  font-size: 15px;
}
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.container-form { max-width: 480px; margin: 0 auto; padding: 0 20px; }

.nav { background: white; border-bottom: 1px solid var(--gray-200); padding: 14px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img { height: 32px; width: auto; }
.nav-brand .brand-text { font-weight: 500; font-size: 17px; color: var(--charcoal); }
.nav-brand .brand-text span { color: var(--pink); }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 14px; }
.nav-links a { color: var(--gray-700); }
.nav-links a:hover { color: var(--charcoal); text-decoration: none; }
.nav-cta { background: var(--pink); color: white !important; padding: 7px 16px; border-radius: var(--radius); font-weight: 500; }
.nav-cta:hover { background: var(--pink-dark); text-decoration: none !important; }

.footer { margin-top: 64px; padding: 32px 0; border-top: 1px solid var(--gray-200); background: white; font-size: 13px; color: var(--gray-500); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--gray-500); }

/* Inline banner flashes (no-JS fallback; hidden by ui.js when JS loads) */
.flashes { margin-bottom: 16px; }
.flash { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 8px; font-size: 14px; }
.flash-success { background: var(--success-bg); color: #1A4A0A; border: 1px solid #C0DD97; }
.flash-error { background: var(--error-bg); color: #791F1F; border: 1px solid #F09595; }
.flash-info { background: var(--info-bg); color: var(--indigo-dark); border: 1px solid #B5D4F4; }

.btn {
  display: inline-block; padding: 9px 18px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; cursor: pointer; border: 1px solid transparent;
  background: white; color: var(--charcoal); text-decoration: none; line-height: 1.4;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--pink); color: white; border-color: var(--pink); }
.btn-primary:hover { background: var(--pink-dark); border-color: var(--pink-dark); color: white; }
.btn-secondary { background: white; color: var(--charcoal); border-color: var(--gray-300); }
.btn-secondary:hover { background: var(--gray-100); }
.btn-indigo { background: var(--indigo); color: white; border-color: var(--indigo); }
.btn-indigo:hover { background: var(--indigo-dark); color: white; }
.btn-danger { background: white; color: var(--error); border-color: #F09595; }
.btn-danger:hover { background: var(--error-bg); }
.btn-danger-solid { background: var(--error); color: white; border-color: var(--error); }
.btn-danger-solid:hover { background: #841F1F; border-color: #841F1F; color: white; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 16px; }
.btn-block { display: block; width: 100%; text-align: center; }

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--gray-700); margin-bottom: 5px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--gray-300);
  border-radius: var(--radius); font-size: 14px; background: white;
  font-family: inherit; color: var(--charcoal);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(243,28,103,0.12);
}
.form-textarea { min-height: 90px; resize: vertical; }
.form-help { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.form-char-count { font-size: 11px; color: var(--gray-500); text-align: right; margin-top: 3px; }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; }
.checkbox-row input[type="checkbox"] { margin-top: 4px; }
.checkbox-row label { font-size: 14px; cursor: pointer; }
.checkbox-row .sub { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

.card {
  background: white; border-radius: var(--radius-lg); border: 1px solid var(--gray-200);
  padding: 20px 24px; margin-bottom: 16px;
}
.card-title {
  font-size: 14px; font-weight: 500; color: var(--charcoal); margin-bottom: 14px;
  display: flex; justify-content: space-between; align-items: center;
}

.pill { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 20px; font-weight: 500; }
.pill-pink { background: #FBEAF0; color: #72243E; }
.pill-indigo { background: var(--info-bg); color: var(--indigo-dark); }
.pill-green { background: var(--success-bg); color: #1A4A0A; }
.pill-amber { background: var(--warning-bg); color: #633806; }
.pill-gray { background: var(--gray-100); color: var(--gray-700); }

.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: white; font-weight: 500; background: var(--pink); object-fit: cover; flex-shrink: 0; }
.avatar-sm { width: 28px; height: 28px; font-size: 12px; }
.avatar-md { width: 40px; height: 40px; font-size: 15px; }
.avatar-lg { width: 64px; height: 64px; font-size: 24px; }
.avatar-xl { width: 96px; height: 96px; font-size: 36px; }

.hero { position: relative; min-height: 460px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--charcoal); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: opacity 1.2s ease; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,26,26,0.45) 0%, rgba(26,26,26,0.5) 50%, rgba(26,26,26,0.75) 100%); }
.hero-inner { position: relative; text-align: center; padding: 60px 20px; color: white; max-width: 600px; z-index: 2; }
.hero-title { font-size: 36px; font-weight: 500; margin: 0 0 10px; line-height: 1.2; }
.hero-title .accent { color: var(--pink); }
.hero-sub { font-size: 16px; color: rgba(255,255,255,0.85); margin: 0 0 28px; }
.hero-search { display: flex; border-radius: var(--radius); overflow: hidden; background: white; box-shadow: var(--shadow-lg); margin: 0 auto; max-width: 480px; }
.hero-search input { flex: 1; padding: 13px 16px; border: none; font-size: 15px; outline: none; color: var(--charcoal); }
.hero-search .at { display: flex; align-items: center; padding: 0 14px; background: var(--gray-50); border-left: 1px solid var(--gray-200); font-size: 14px; color: var(--gray-700); font-family: ui-monospace, "SF Mono", Consolas, monospace; }
.hero-search button { padding: 13px 22px; background: var(--pink); color: white; border: none; font-size: 14px; font-weight: 500; cursor: pointer; }
.hero-search button:hover { background: var(--pink-dark); }
.hero-availability { margin-top: 14px; font-size: 13px; font-weight: 500; min-height: 18px; color: rgba(255,255,255,0.95); }
.hero-availability.ok { color: #88e7c2; }
.hero-availability.bad { color: #ffb4b4; }

.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .profile-grid { grid-template-columns: 1fr; } }
.profile-card { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 16px; text-decoration: none; color: var(--charcoal); transition: border-color 0.15s, transform 0.15s; display: block; }
.profile-card:hover { border-color: var(--gray-300); transform: translateY(-1px); text-decoration: none; }
.profile-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.profile-card-name { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.profile-card-handle { font-size: 12px; color: var(--gray-500); font-family: ui-monospace, monospace; margin-top: 1px; }
.profile-card-tag { font-size: 13px; color: var(--gray-700); line-height: 1.4; margin-bottom: 10px; min-height: 36px; }
.profile-card-loc { font-size: 11px; color: var(--gray-500); }
.verified-badge { color: var(--indigo); font-size: 13px; }

.profile-fullbleed { position: relative; min-height: 100vh; }
.profile-bg-layer { position: fixed; inset: 0; background-size: cover; background-position: center; background-color: var(--charcoal); z-index: 0; }
.profile-bg-overlay { position: fixed; inset: 0; background: linear-gradient(180deg, rgba(26,26,26,0.55) 0%, rgba(26,26,26,0.5) 50%, rgba(26,26,26,0.85) 100%); z-index: 1; }
.profile-content { position: relative; z-index: 2; min-height: 100vh; display: flex; flex-direction: column; }
.profile-nav { padding: 16px 20px; }
.profile-nav a { color: rgba(255,255,255,0.8); font-size: 13px; }
.profile-card-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px; }
.profile-card-inner { max-width: 480px; width: 100%; text-align: center; color: white; }
.profile-avatar { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 18px; background: var(--pink); display: flex; align-items: center; justify-content: center; font-size: 42px; font-weight: 500; color: white; border: 4px solid rgba(255,255,255,0.95); object-fit: cover; }
.profile-display-name { font-size: 32px; font-weight: 500; margin: 0 0 6px; display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
.profile-display-name .verified { color: #B5D4F4; font-size: 18px; }
.profile-pronunciation { font-size: 12px; color: rgba(255,255,255,0.7); font-style: italic; margin-bottom: 8px; letter-spacing: 0.2px; }
.profile-tagline { font-size: 15px; color: rgba(255,255,255,0.85); margin: 0 0 16px; }
.profile-bio { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.9); max-width: 400px; margin: 0 auto 24px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 22px; }
.profile-action { padding: 9px 16px; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); border-radius: var(--radius); color: white; font-size: 13px; cursor: pointer; text-decoration: none; backdrop-filter: blur(8px); }
.profile-action:hover { background: rgba(255,255,255,0.25); color: white; text-decoration: none; }
.profile-action.primary { background: white; color: var(--charcoal); border-color: white; font-weight: 500; }
.profile-action.primary:hover { background: var(--gray-100); }
.profile-socials { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.profile-social { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; color: white; font-size: 13px; font-weight: 500; text-decoration: none; }
.profile-social:hover { background: rgba(255,255,255,0.25); color: white; text-decoration: none; }
.profile-meta { font-size: 12px; color: rgba(255,255,255,0.65); font-family: ui-monospace, monospace; margin-top: 14px; }
.profile-foot { text-align: center; padding: 16px; font-size: 11px; color: rgba(255,255,255,0.6); }
.profile-foot a { color: rgba(255,255,255,0.85); }

.dash-layout { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 24px 20px; max-width: 1100px; margin: 0 auto; }
@media (max-width: 760px) { .dash-layout { grid-template-columns: 1fr; } }
.dash-side { background: white; border-radius: var(--radius-lg); padding: 16px 0; border: 1px solid var(--gray-200); height: fit-content; }
.dash-side a { display: block; padding: 9px 18px; color: var(--gray-700); font-size: 13px; border-left: 2px solid transparent; }
.dash-side a:hover { color: var(--charcoal); background: var(--gray-50); text-decoration: none; }
.dash-side a.active { color: var(--charcoal); border-left-color: var(--pink); font-weight: 500; }
.dash-main h1 { font-size: 22px; font-weight: 500; margin-bottom: 4px; }
.dash-sub { color: var(--gray-500); font-size: 13px; margin-bottom: 20px; }

.addr-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--gray-100); gap: 10px; }
.addr-row:last-child { border-bottom: none; }
.addr-name { font-family: ui-monospace, monospace; font-size: 13px; color: var(--charcoal); font-weight: 500; }
.addr-fwd { font-size: 12px; color: var(--gray-500); font-family: ui-monospace, monospace; margin-top: 2px; }
.addr-action { font-size: 12px; color: var(--indigo); cursor: pointer; }

.meter-bar { background: var(--gray-100); border-radius: 4px; height: 6px; overflow: hidden; margin-bottom: 12px; }
.meter-fill { background: var(--success); height: 100%; transition: width 0.3s; }
.meter-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--gray-500); margin-bottom: 4px; }

.stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-box { background: var(--gray-50); padding: 10px 12px; border-radius: var(--radius); }
.stat-label { font-size: 11px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-num { font-size: 22px; font-weight: 500; margin-top: 2px; }

/* ============ PROFILE EDITOR ============ */
.profile-edit-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px; gap: 12px; flex-wrap: wrap;
}
.profile-edit-header h1 { margin: 0; }
.profile-edit-header-actions { display: flex; gap: 8px; align-items: center; }

.image-uploads-grid {
  display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: start;
}
@media (max-width: 600px) { .image-uploads-grid { grid-template-columns: 1fr; } }

.preview-wrapper { position: relative; display: inline-block; }
.preview-wrapper--avatar { width: 110px; }
.preview-wrapper--bg { display: block; width: 100%; }

.img-preview-frame {
  background: var(--gray-100); display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px; overflow: hidden; position: relative;
  color: var(--gray-500); font-size: 13px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.img-preview-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-preview-frame--avatar { width: 110px; height: 110px; border-radius: 50%; border: 2px solid var(--gray-200); }
.img-preview-frame--bg { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); border: 1px solid var(--gray-200); }
.img-preview-frame.has-preview { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(243, 28, 103, 0.15); }
.frame-placeholder { color: var(--gray-500); font-size: 13px; }

.img-remove-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  border: 2px solid white;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  padding: 0;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: background 0.15s, transform 0.15s;
}
.img-remove-btn:hover {
  background: var(--pink);
  transform: scale(1.05);
}

.upload-indicator {
  font-size: 12px; color: var(--gray-500);
  margin-top: 4px; margin-bottom: 6px; min-height: 16px; line-height: 1.4;
}
.upload-indicator.has-file { color: var(--success); font-weight: 500; }

.form-save-bar {
  position: sticky; bottom: 0; background: var(--cream);
  margin: 24px -24px 0; padding: 14px 24px;
  border-top: 1px solid var(--gray-200);
  display: flex; gap: 10px; align-items: center;
  z-index: 10; box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
}

/* ============ AUTH PAGES ============ */
.auth-wrap { display: flex; align-items: center; justify-content: center; min-height: 70vh; padding: 40px 20px; }
.auth-card { background: white; padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); max-width: 420px; width: 100%; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 22px; font-weight: 500; margin-bottom: 6px; }
.auth-card .sub { color: var(--gray-500); font-size: 14px; margin-bottom: 20px; }

/* ============ TOASTS ============ */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 380px;
  width: calc(100% - 40px);
}

@media (max-width: 600px) {
  .toast-container {
    top: auto;
    bottom: 20px;
    left: 20px;
    right: 20px;
    width: calc(100% - 40px);
    max-width: none;
  }
}

.toast {
  background: white;
  color: var(--charcoal);
  padding: 12px 38px 12px 16px;
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
  font-size: 14px;
  line-height: 1.45;
  max-width: 380px;
  pointer-events: auto;
  border-left: 4px solid var(--info);
  position: relative;
  animation: toast-in 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.toast-text {
  word-wrap: break-word;
}

.toast-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  background: transparent;
  border: 0;
  color: var(--gray-500);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-weight: 300;
}
.toast-close:hover {
  background: var(--gray-100);
  color: var(--charcoal);
}

.toast-success { border-left-color: var(--success); }
.toast-error   { border-left-color: var(--error); }
.toast-warning { border-left-color: var(--warning); }
.toast-info    { border-left-color: var(--info); }

.toast-leaving {
  animation: toast-out 0.2s cubic-bezier(0.6, 0, 1, 0.4) forwards;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateX(20px) scale(0.95); }
}

@media (max-width: 600px) {
  @keyframes toast-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes toast-out {
    to { opacity: 0; transform: translateY(20px); }
  }
}

/* ============ MODAL DIALOG (confirm) ============ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 20, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: backdrop-in 0.15s ease-out forwards;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.modal-card {
  background: white;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
  animation: modal-in 0.18s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.modal-title {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--charcoal);
}

.modal-message {
  color: var(--gray-700);
  font-size: 14px;
  margin-bottom: 22px;
  line-height: 1.55;
}

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.modal-leaving {
  animation: backdrop-out 0.15s ease-in forwards;
}
.modal-leaving .modal-card {
  animation: modal-out 0.15s ease-in forwards;
}

@keyframes backdrop-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes backdrop-out {
  to { opacity: 0; }
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes modal-out {
  to { opacity: 0; transform: scale(0.97) translateY(4px); }
}

/* ============ MISC ============ */
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.no-pad { padding: 0; }
