/* ui_theme.css
 Pyara Rishta — Modern UI Theme (Glass Edition 2025)
 ---------------------------------------------------
 - Glassmorphic UI with blur and translucency
 - Fixed visible dropdown arrows (cross-browser)
 - Uniform alignment for labeled/unlabeled fields
 - Consistent buttons, forms, cards, and focus states
 - Fixed field-icon alignment inside text fields
*/

/* ================================
   GREAT VIBES FONT
================================ */

@font-face {
  font-family: 'Great Vibes';
  src: url('/assets/fonts/Inter-SemiBold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


:root {
  --brand-1: #ff6b81; /* primary pink */
  --brand-2: #ff7f50; /* coral */
  --accent: #e63946;
  --muted: #6b7280;
  --bg-1: #fffaf7;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --card-radius: 16px;
  --control-radius: 12px;
  --shadow-1: 0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-2: 0 10px 30px rgba(0, 0, 0, 0.12);
  --focus-ring: 0 0 0 0.18rem rgba(230, 57, 70, 0.18);
  --max-width: 1100px;
}

/* ---------------- Base ---------------- */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Inter', system-ui, -apple-system,
               'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background: linear-gradient(135deg, var(--bg-1), #fff9fb);
  color: #222;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.container-max {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 18px;
}

/* ---------------- Navbar ---------------- */
.glass-navbar {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-1);
}
.navbar-brand img { height: 50px; }
.navbar .nav-link {
  color: #333;
  font-weight: 600;
  transition: color .18s ease;
}
.navbar .nav-link:hover { color: var(--accent) !important; }
/* ---------------- Cards ---------------- */
.universal-card {
  background: var(--glass);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-1);
  padding: 1.6rem;
  transition: transform .28s ease, box-shadow .28s ease;
}
.universal-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
}

/* ---------------- Form Header ---------------- */
.form-header {
  text-align: center;
  margin-bottom: 1rem;
}
.form-header .title {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.3rem;
}
.form-header .subtitle {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------------- Inputs ---------------- */
.input-group-modern {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.input-group-modern input,
.input-group-modern textarea,
.input-group-modern select {
  width: 100%;
  padding: 14px 14px;
  border-radius: var(--control-radius);
  border: 1px solid rgba(16,24,40,0.08);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  transition: box-shadow .18s ease, border-color .18s ease, transform .12s ease;
  font-size: 0.95rem;
}
.input-group-modern input::placeholder,
.input-group-modern textarea::placeholder {
  color: #9aa3ad;
  font-weight: 500;
}
.input-group-modern input:focus,
.input-group-modern textarea:focus,
.input-group-modern select:focus {
  outline: none;
  box-shadow: var(--focus-ring);
  border-color: var(--accent);
}
.input-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #2b2b2b;
}
.helper-text {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------------- Dropdowns ---------------- */
.form-select.custom {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(16,24,40,0.08);
  border-radius: var(--control-radius);
  padding: 14px 40px 14px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #2b2b2b;
  transition: box-shadow .18s ease, border-color .18s ease, transform .12s ease;
  cursor: pointer;
}
.form-select.custom::-ms-expand { display: none; }
.form-select.custom {
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' fill='%236b7280' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
}
.form-select.custom:focus {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' fill='%23e63946' viewBox='0 0 24 24'><path d='M7 14l5-5 5 5z'/></svg>");
  background-size: 14px;
  background-position: right 14px center;
  transition: background-image 0.3s ease;
}
.form-select.custom:hover {
  border-color: rgba(230,57,70,0.3);
}

/* ---------------- Textareas ---------------- */
textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

/* ---------------- Buttons ---------------- */
.btn-primary-modern {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(45deg, var(--brand-1), var(--brand-2));
  color: white;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(255,107,129,0.14);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-primary-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255,107,129,0.18);
}

/* ---------------- Ripple ---------------- */
.ripple {
  position: relative;
  overflow: hidden;
}
.ripple::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255,255,255,0.35);
  width: 100px;
  height: 100px;
  opacity: 0;
  pointer-events: none;
  transition: transform .6s ease, opacity .6s ease;
}
.ripple:active::after {
  transform: scale(2);
  opacity: 1;
  transition: 0s;
}

/* ---------------- Validation ---------------- */
.is-invalid { border-color: #dc3545 !important; }
.invalid-feedback { color: #dc3545; font-size: 0.88rem; }
.is-valid { border-color: #28a745 !important; }

/* ---------------- Profile Picture ---------------- */
.profile-pic {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.8);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* ---------------- Icon Alignment Fix ---------------- */
.with-icon.input-group-modern {
  position: relative;
  display: block !important;
}
.with-icon.input-group-modern input.form-control {
  position: relative;
  z-index: 1;
  padding-left: 42px !important;
}
.with-icon .field-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.05rem;
  opacity: 0.9;
  pointer-events: none;
  transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
  z-index: 2;
}
.with-icon input.form-control:focus ~ .field-icon {
  color: var(--accent);
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

/* ---------------- Utilities ---------------- */
.text-muted { color: var(--muted); }
.center { display: flex; justify-content: center; align-items: center; }
.mt-1 { margin-top: 8px; }
.mb-1 { margin-bottom: 8px; }

@media (max-width: 992px) {
  .container-max { padding: 0 14px; }
}
:focus { outline: none; box-shadow: var(--focus-ring); }


#safetyTipsCard {
  background: #fffdfc;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  border-radius: 1rem;
  transition: all 0.3s ease;
}
#safetyTipsCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* Login Form Activity Indicator */

/* ---------------- Fullscreen Loading Overlay ---------------- */
#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#loadingOverlay .loader-wrapper {
  display: flex;
  align-items: center;
  flex-direction: column;
}

#loadingOverlay p {
  margin-top: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}

/* 🌸 Animated Circular Loader */
#loadingOverlay .loader {
  width: 55px;
  height: 55px;
  border: 5px solid rgba(255, 107, 129, 0.2);
  border-top-color: var(--brand-1);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* for toast CSS */

/* --------------------------------------------------
   Modern Toast Notification (for showToast)
-------------------------------------------------- */
.toast-modern {
  position: fixed;
  top: 18px;
  right: 18px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.96rem;
  color: #fff;
  z-index: 999999;
  opacity: 0;
  transform: translateY(-15px);
  transition: opacity .35s ease, transform .35s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  backdrop-filter: blur(12px);
}

.toast-modern.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  background: linear-gradient(45deg, #4ade80, #22c55e);
}

.toast-error {
  background: linear-gradient(45deg, #ef4444, #dc2626);
}

.toast-info {
  background: linear-gradient(45deg, #3b82f6, #2563eb);
}

.toast-body {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-body .icon {
  font-size: 1.15rem;
}


/* For Profile Picture of home view */


/* -----------------------------------------
   🌟 PERFECT RESPONSIVE PROFILE GRID
   Mobile → Tablet → Desktop
----------------------------------------- */

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.4rem;
}

/* Mobile first (default) --> 1 card per row */
@media (max-width: 480px) {
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Medium screens (2 cards per row) */
@media (min-width: 481px) and (max-width: 768px) {
  .profile-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem;
  }
}

/* Tablets (up to 3 per row) */
@media (min-width: 769px) and (max-width: 1024px) {
  .profile-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
  }
}

/* Big desktops */
@media (min-width: 1025px) {
  .profile-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
  }
}
h1, h2, h3, h4, h5,
.navbar,
.form-header .title {
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  font-weight: 600;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Regular.otf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-SemiBold.otf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
body {
  font-family: 'Inter', system-ui, sans-serif;
}

.thumb-blur {
    filter: blur(8px) brightness(0.8);
    transform: scale(1.05);
}

.photo-privacy-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    z-index: 10;
}

.field-hint {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.55);
  letter-spacing: 0.2px;
}

/* ===============================
   FIX: Navbar Overlapping Content
   =============================== */

:root {
    --navbar-offset: 75px; /* default offset */
}

/* Keep navbar fixed, DO NOT force height */
.navbar.fixed-top {
    z-index: 1030;
}

/* Push page content below navbar */
body {
    padding-top: var(--navbar-offset);
}

/* Mobile adjustment */
@media (max-width: 768px) {
    :root {
        --navbar-offset: 85px;
    }
}

/* ===============================
   FIX: Overlay leaking outside circle
   =============================== */

.lock-container {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;          /* 🔑 THIS IS THE KEY */
    display: inline-block;
}

/* For Kundli CSS */
/* =========================
   Diamond Kundli (North Indian)
========================= */

.kundli-diamond {
  width: 420px;
  height: 420px;
  margin: 30px auto;
  position: relative;
  transform: rotate(45deg);
  border: 2px solid #1f2937;
  background: #fff;
}

.kundli-diamond .house {
  position: absolute;
  width: 140px;
  height: 140px;
  border: 1px solid #374151;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  padding: 4px;
}

.kundli-diamond .house-no {
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 10px;
  opacity: 0.6;
}

.kundli-diamond .planets {
  font-weight: 600;
  line-height: 1.3;
}

/* Lagna highlight */
.kundli-diamond .lagna-house {
  background: rgba(255, 215, 0, 0.25);
  border: 2px solid #f59e0b;
}

/* Positioning */
.h1  { top: 140px; left: 140px; }
.h2  { top: 0;   left: 140px; }
.h3  { top: 70px; left: 280px; }
.h4  { top: 140px; left: 280px; }
.h5  { top: 210px; left: 280px; }
.h6  { top: 280px; left: 140px; }
.h7  { top: 210px; left: 0; }
.h8  { top: 140px; left: 0; }
.h9  { top: 70px; left: 0; }
.h10 { top: 0; left: 140px; }
.h11 { top: 70px; left: 140px; }
.h12 { top: 210px; left: 140px; }


/* ===============================
   PYARARISHTA WATERMARK SECURITY
   =============================== */

.watermark-layer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    overflow: hidden;
}

.watermark-text {
    position: absolute;
    white-space: nowrap;
    font-size: 14px;
    color: rgba(255, 0, 0, 0.07);
    transform: rotate(-30deg);
    user-select: none;
    font-weight: 500;
    font-family: Arial, sans-serif;
}

@media (max-width: 768px) {
    .watermark-text {
        font-size: 11px;
        color: rgba(255, 0, 0, 0.05);
    }
}


/* Filters */

.pr-filter-modal {
  position:fixed;
  inset:0;
  background:rgba(15,23,42,0.5);
  backdrop-filter:blur(4px);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:9999;
}

.pr-filter-content {
  width:650px;
  max-height:85vh;
  background:#fff;
  border-radius:20px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  box-shadow:0 20px 50px rgba(0,0,0,0.2);
}

.pr-filter-header {
  padding:18px 22px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-weight:600;
  border-bottom:1px solid #f1f5f9;
}

.pr-filter-body {
  padding:20px;
  overflow-y:auto;
  flex:1;
}

.pr-section {
  margin-bottom:25px;
}

.pr-section h4 {
  margin-bottom:12px;
}

.pr-row {
  margin-bottom:12px;
}

.pr-row select {
  width:100%;
  height:42px;
  border-radius:12px;
  border:1px solid #e5e7eb;
  padding:0 12px;
}

.pr-range {
  display:flex;
  gap:10px;
  align-items:center;
}

.pr-filter-footer {
  padding:16px 22px;
  border-top:1px solid #f1f5f9;
  display:flex;
  justify-content:flex-end;
}

.pr-apply-btn {
  background:linear-gradient(135deg,#ec4899,#f97316);
  border:none;
  padding:10px 22px;
  border-radius:25px;
  color:#fff;
  font-weight:600;
}




.photo-lock-overlay {
    background: rgba(0,0,0,0.25);
}

/* ===============================
   FILTERS PAGE TYPOGRAPHY
================================= */

.profile-card h6 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937; /* Dark elegant grey */
}

.profile-card .text-muted {
    color: #6b7280 !important; /* Soft muted tone */
}

.profile-card small {
    font-size: 13px;
}



/* ===============================
   PROFILE CARD
================================= */

.profile-card {
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.profile-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.profile-img-wrapper {
    overflow: hidden;
}

.profile-img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
    
}

.profile-card:hover .profile-img {
    transform: scale(1.05);
}

/* ===============================
   TYPOGRAPHY
================================= */

.profile-card h6 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.profile-card .text-muted {
    color: #6b7280 !important;
    font-size: 14px;
}

/* ===============================
   BUTTON
================================= */

.btn-theme {
    background: linear-gradient(135deg, #ff6b00, #ff8c42);
    border: none;
    color: #fff;
    font-weight: 500;
    transition: all 0.25s ease;
}

.btn-theme:hover {
    background: linear-gradient(135deg, #ff8c42, #ff6b00);
    box-shadow: 0 6px 18px rgba(255,107,0,0.3);
}

/* ===============================
   MOBILE
================================= */

@media (max-width: 768px) {

    .profile-card {
        margin-bottom: 20px;
    }

    .profile-card h6 {
        font-size: 15px;
    }

    .profile-card .text-muted {
        font-size: 13px;
    }

    .btn-theme {
        font-size: 14px;
        padding: 8px 12px;
    }
}


.chip-btn {
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.chip-btn:hover {
    background: #fff3eb;
    border-color: #ff6b00;
    color: #ff6b00;
}

.chip-btn.active {
    background: #ff6b00;
    color: #fff;
    border-color: #ff6b00;
    box-shadow: 0 4px 12px rgba(255,107,0,0.25);
}

/* Mobile */
@media (max-width: 768px) {
    .profile-img {
        aspect-ratio: 1 / 1;
    }
}
/* ===============================
   MOBILE CARD FIX
================================= */

@media (max-width: 768px) {

    

    /* ===============================
   PROFILE IMAGE (GLOBAL)
================================= */

.profile-img-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}



.profile-img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

}


/* ======================================
   🔥 MOBILE COMPACT PROFILE CARD FIX
====================================== */

@media (max-width: 576px) {

  .profile-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .profile-card {
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  }

  .profile-img-wrapper {
    border-radius: 14px 14px 0 0;
  }

  /* Make image slightly shorter */
  .profile-img {
    aspect-ratio: 3 / 4;   /* was 4/5 → reduced height */
  }

  .profile-card .card-body {
    padding: 12px 14px;
  }

  .profile-card h6 {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .profile-card .text-muted {
    font-size: 12px;
  }

  .btn-theme {
    font-size: 13px;
    padding: 7px 12px;
    border-radius: 20px;
  }

}


@media (max-width: 576px) {
  .profile-img {
    aspect-ratio: 1 / 1;
  }

  .profile-card .p-3 {
    padding: 12px !important;
  }

  .profile-card h6 {
    font-size: 14px;
  }

  .profile-card .small {
    font-size: 12px;
  }
}


/* ===============================
   PROFILE BADGES
================================= */

.badge-premium {
  background: linear-gradient(135deg,#f59e0b,#fbbf24);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 576px) {
  .badge-premium {
    font-size: 10px;
    padding: 4px 7px;
  }
}

