/* =========================
   CREATE FORM UI (like image)
========================= */
.ovw-form-wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
}

.ovw-left{
  border-right: 1px solid #eee;
  padding-right: 16px;
}
.ovw-left-title{
  font-weight: 900;
  margin-bottom: 12px;
  color:#222;
}
.ovw-nav{display:flex;flex-direction:column;gap:8px;}
.ovw-nav-item{
  text-align:left;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor:pointer;
  font-weight:800;
  color:#3b2a74;
}
.ovw-nav-item.active{
  color:#e11d74;
  background:#fff3f9;
  border-left: 4px solid #e11d74;
}

.ovw-right-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 12px;
}
.ovw-right-title{font-size:18px;font-weight:900;color:#111;}
.ovw-message{
  padding: 10px 12px;
  border-radius: 10px;
  font-weight:800;
}
.ovw-message.success{background:#ecfdf5;color:#047857;}
.ovw-message.error{background:#fef2f2;color:#b91c1c;}

.ovw-field{margin-bottom:18px;}
.ovw-label{display:block;font-weight:900;margin-bottom:8px;color:#111;}
.req{color:#e11d74;margin-left:4px;}
.ovw-input{
  width:100%;
  height:46px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding:0 12px;
  font-size:15px;
  outline:none;
}
.ovw-textarea{height:110px;padding:10px 12px;}
.ovw-error{color:#dc2626;font-size:13px;margin-top:6px;}
.ovw-row{display:grid;grid-template-columns:repeat(12,1fr);gap:16px;margin-bottom:16px;}
.ovw-col{grid-column:span 12;}
.ovw-row-label{font-weight:900;color:#111;margin:6px 0 8px;}
.ovw-options-group{display:grid;gap:8px;}
.ovw-option{display:flex;align-items:center;gap:8px;font-weight:700;color:#111;}
.ovw-hidden{display:none;}
.ovw-control{width:100%;}
.ovw-photo-preview{margin-top:10px;display:flex;gap:8px;flex-wrap:wrap;}
.ovw-photo-item{
  position: relative;
  display: inline-block;
}
.ovw-photo-preview img{
  max-width:160px;
  max-height:160px;
  border-radius:8px;
  display:block;
  border:1px solid #e5e7eb;
}
.ovw-photo-remove{
  position:absolute;
  top:6px;
  right:6px;
  width:24px;
  height:24px;
  border:none;
  border-radius:50%;
  background:#ef4444;
  color:#fff;
  font-size:18px;
  line-height:24px;
  text-align:center;
  cursor:pointer;
  padding:0;
  box-shadow:0 2px 6px rgba(0,0,0,0.2);
}
.ovw-photo-remove:hover{
  background:#dc2626;
}
.ovw-photo-hint{font-size:12px;color:#6b7280;margin-top:6px;}
.ovw-inline-photos{display:flex;gap:8px;flex-wrap:wrap;}
.ovw-inline-photos img{
  width:72px;
  height:72px;
  object-fit:cover;
  border-radius:8px;
  border:1px solid #e5e7eb;
  cursor: zoom-in;
}

.ovw-label-left,
.ovw-label-right{
  display:grid;
  grid-template-columns:160px 1fr;
  align-items:center;
  gap:12px;
}
.ovw-label-left .ovw-label,
.ovw-label-right .ovw-label{
  margin-bottom:0;
}
.ovw-label-right .ovw-label{order:2;}
.ovw-label-bottom{display:flex;flex-direction:column;}
.ovw-label-bottom .ovw-label{order:2;margin-top:8px;margin-bottom:0;}
.ovw-label-hide .ovw-label{display:none;}

.ovw-step-actions{
  display:flex;
  gap:10px;
  margin-top:10px;
}
.ovw-step-btn{
  height:46px;
  border-radius:10px;
  border:1px solid #e5e7eb;
  cursor:pointer;
  background:#fff;
  color:#111;
  font-weight:900;
  padding:0 18px;
}

.ovw-submit{
  height:46px;
  border-radius:10px;
  border:none;
  cursor:pointer;
  background:linear-gradient(90deg,#512BD4,#E11D74);
  color:#fff;
  font-weight:900;
  padding:0 20px;
}

/* =========================
   TOP SEARCH PAGE
========================= */
.ovw-search-top-wrap{
  max-width: 1100px;
  margin: 24px auto;
  padding: 24px;
  background: #f4eaf9;
  border-radius: 20px;
}
.ovw-search-top-box{
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(53, 20, 90, .08);
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr)) 180px;
  gap: 14px;
  align-items: end;
}
.ovw-top-field{min-width:0;}
.ovw-top-action{display:flex;}

/* =========================
   SEARCH + PROFILE LIST
========================= */
.ovw-search-layout{
  max-width: 1480px;
  margin: 10px auto 24px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 18px;
}
.ovw-all-profiles-page{
  max-width: 1480px;
  margin: 0 auto;
}
.ovw-page-title{
  margin: 8px 0 14px;
  color: #4b1f84;
  font-size: 52px;
  line-height: 1.1;
  font-weight: 900;
}
.ovw-search-sidebar{
  background: #f9f6fc;
  border: 1px solid #ece3f5;
  border-radius: 12px;
  padding: 12px;
  height: fit-content;
}
.ovw-sidebar-tabs{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 10px;
  border-bottom: 1px solid #ece3f5;
}
.ovw-sidebar-tabs button{
  height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #4c2a74;
  font-weight: 700;
  font-size: 14px;
}
.ovw-sidebar-tabs .active{
  color: #3b2a74;
  border-bottom: 2px solid #5d2d93;
}
.ovw-filter-panel{
  display: grid;
  gap: 10px;
}
.ovw-filter-section{
  background: #fff;
  border: 1px solid #eadff5;
  border-radius: 8px;
  padding: 10px;
}
.ovw-ts-label{
  font-weight: 900;
  color:#3b2a74;
  margin-bottom: 7px;
  font-size: 14px;
}
.ovw-ts-select{
  width: 100%;
  height: 44px;
  border: 1px solid #e9e2f2;
  border-radius: 8px;
  padding: 0 12px;
  background:#fff;
  font-size: 16px;
}
.ovw-ts-btn{
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: linear-gradient(90deg,#512BD4,#E11D74);
  color:#fff;
  font-weight: 900;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.ovw-clear-btn{
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  font-weight: 800;
  cursor: pointer;
}
.ovw-sidebar-actions{
  display: grid;
  gap: 8px;
}
.ovw-search-content{
  min-width: 0;
}
.ovw-search-title{
  font-size: 56px;
  line-height: 1.2;
  font-weight: 900;
  color: #4c2a74;
  margin: 0 0 4px;
}
.ovw-search-meta{
  padding: 0 0 14px;
}
.ovw-search-actions{
  padding: 16px 0 0 0;
  text-align:center;
}

.ovw-muted{color:#6b7280;font-size:16px;}

/* Results grid */
.ovw-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 4px 0;
}
.ovw-profile-card{
  background:#fff;
  border-radius:10px;
  padding:16px 16px;
  box-shadow:none;
  border: 1px solid #e6dbf1;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 128px;
  position: relative;
}
.ovw-card-clickable{
  cursor: pointer;
}
.ovw-card-clickable:focus-visible{
  outline: 2px solid #5d2d93;
  outline-offset: 2px;
}
.ovw-card-tools{
  position: absolute;
  top: 8px;
  right: 10px;
  display: flex;
  gap: 8px;
}
.ovw-tool-btn{
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #d9c8eb;
  background: #fff;
  color: #9a7cbc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.ovw-tool-btn:hover{
  border-color: #e11d74;
  color: #e11d74;
}
.ovw-tool-btn.is-active{
  background: #fff1f7;
  border-color: #e11d74;
  color: #e11d74;
}
.ovw-tool-btn.ovw-tool-ignore.is-active{
  background: #f5f3ff;
  border-color: #6d28d9;
  color: #6d28d9;
}
.ovw-card-avatar{
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #d8c5ee;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ovw-card-avatar-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ovw-card-avatar-fallback{
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #5c2a90;
}
.ovw-card-no{font-weight:900;color:#3b2a74;margin-bottom:4px;font-size:17px;line-height:1.15;}
.ovw-card-btn{
  display:inline-block;
  font-weight:600;
  text-decoration:none;
  color:#e11d74;
  border:1px solid #e11d74;
  padding:3px 12px;
  border-radius:50px;
  font-size: 12px;
  white-space: nowrap;
  text-decoration: none !important;
}
.ovw-card-action{
  text-align: right;
}
.ovw-card-body .ovw-muted{
  font-size: 13px;
  line-height: 1.3;
  color: #4f4f5f;
}
.ovw-load{
  height:46px;
  border-radius:10px;
  border:none;
  cursor:pointer;
  background:linear-gradient(90deg,#512BD4,#E11D74);
  color:#fff;
  font-weight:900;
  padding:0 20px;
}

/* =========================
   VIEW PAGE
========================= */
.ovw-view-wrap{
  max-width:1360px;
  margin:0 auto;
  padding:16px;
  display:grid;
  grid-template-columns:320px 1fr;
  gap:16px;
  align-items: start;
  overflow-x: hidden;
}
.ovw-view-right{
  min-width: 0;
}
.ovw-view-left{
  background:#fff;
  border-radius:14px;
  padding:14px;
  box-shadow:0 8px 22px rgba(0,0,0,.06);
}
.ovw-view-no{font-weight:900;color:#3b2a74;font-size:18px;margin-bottom:8px;}
.ovw-section-card{
  background:#fff;
  border-radius:6px;
  padding:10px;
  box-shadow:none;
  margin-bottom:16px;
}
.ovw-section-title{font-weight:900;margin-bottom:8px;color:#4c2a74;font-size:20px;}
.ovw-table{width:100%;border-collapse:collapse;}
.ovw-table td{padding:10px;border-bottom:1px solid #f1f5f9;vertical-align:top;word-break:break-word;}
.ovw-table td.k{font-weight:900;width:34%;color:#111;}
.ovw-table td.v{color:#334155;}

.ovw-view-static{
  align-items: start;
}
.ovw-view-static .ovw-view-left{
  background: #4b1f84;
  color: #fff;
  border-radius: 2px;
  position: sticky;
  top: 20px;
  padding: 14px 12px;
}
.ovw-view-avatar{
  width: 100px;
  height: 100px;
  margin: 4px auto 14px;
  border-radius: 50%;
  border: 3px solid #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.15);
}
.ovw-view-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
.ovw-view-avatar span{
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
}
.ovw-view-static .ovw-view-no{
  color: #fff;
  text-align: center;
  margin-bottom: 12px;
  font-size: 40px;
  line-height: 1;
}
.ovw-view-mini{
  width: 100%;
  border-collapse: collapse;
}
.ovw-view-mini td{
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  padding: 9px 8px;
  font-size: 14px;
}
.ovw-view-mini td:first-child{
  font-weight: 700;
  width: 45%;
}
.ovw-view-right .ovw-section-card{
  border: 1px solid #e6dbf1;
  border-radius: 6px;
  box-shadow: none;
}
.ovw-view-right .ovw-section-title{
  border-bottom: 1px solid #ece3f5;
  padding: 2px 4px 8px;
  color: #4c2a74;
}
.ovw-view-right .ovw-table td{
  border-color: #efe7f7;
  font-size: 15px;
}

/* Contact section under profile details */
.ovw-contact-box{
  border: 1px solid #d9c8eb;
  border-top: 2px solid #5b2a90;
  border-radius: 8px;
  margin: 18px 0 0;
  background: #fff;
  overflow: hidden;
}
.ovw-contact-head{
  text-align: center;
  font-size: 32px;
  font-weight: 900;
  color: #4b1f84;
  padding: 16px 12px 14px;
  border-bottom: 1px solid #eee3f6;
}
.ovw-contact-body{
  text-align: center;
  padding: 20px 16px 26px;
}
.ovw-contact-note{
  color: #4a4a55;
  font-size: 15px;
  margin: 0 0 14px;
}
.ovw-contact-text{
  color: #4a4a55;
  font-size: 18px;
  margin: 0 0 18px;
}
.ovw-contact-primary{
  display: inline-block;
  min-width: 240px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(90deg,#5a2ea6,#e62c8c);
  box-shadow: 0 8px 18px rgba(90, 46, 166, .25);
}
.ovw-contact-body .ovw-contact-primary{
  display: inline-block;
}
.ovw-contact-secondary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 300px;
  margin-top: 18px;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  color: #44286e;
  border: 1px solid #ddd;
  background: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
  font-weight: 700;
}
.ovw-contact-secondary-wrap{
  margin-top: 18px;
}
.ovw-contact-secondary-wrap .ovw-contact-secondary{
  margin-top: 0;
}

/* Guest create-profile popup */
.ovw-guest-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99999;
}
.ovw-guest-modal.is-open{
  display: block;
}
.ovw-guest-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(19, 9, 34, .55);
}
.ovw-guest-dialog{
  position: relative;
  width: min(92vw, 520px);
  margin: 12vh auto 0;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eadff5;
  box-shadow: 0 18px 40px rgba(43, 16, 74, .28);
  padding: 28px 24px 24px;
}
.ovw-guest-close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #f5f0fb;
  color: #6f3ca8;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.ovw-guest-dialog h3{
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.15;
  color: #4c2a74;
  font-weight: 900;
}
.ovw-guest-text{
  margin: 0;
  color: #514866;
  font-size: 17px;
}
.ovw-guest-actions{
  margin-top: 20px;
  display: flex;
  gap: 10px;
}
.ovw-guest-btn{
  flex: 1;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  font-weight: 800;
}
.ovw-guest-login{
  color: #fff;
  background: linear-gradient(90deg,#512BD4,#E11D74);
}
.ovw-guest-register{
  color: #4c2a74;
  border: 1px solid #d8c8ea;
  background: #fff;
}
html.ovw-modal-open{
  overflow: hidden;
}
.ovw-yt-icon{
  width: 30px;
  height: 22px;
  border-radius: 6px;
  background: #ff0000;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}

@media (max-width: 900px){
  .ovw-form-wrap{grid-template-columns:1fr;}
  .ovw-left{border-right:none;padding-right:0;}
  .ovw-search-top-box{grid-template-columns:1fr;}
  .ovw-search-layout{grid-template-columns:1fr;}
  .ovw-page-title{font-size:40px;}
  .ovw-search-title{font-size:34px;}
  .ovw-grid{grid-template-columns:1fr;}
  .ovw-profile-card{grid-template-columns:62px 1fr;}
  .ovw-card-body .ovw-muted{font-size:18px;}
  .ovw-card-no{font-size:26px;}
  .ovw-card-action{grid-column: 1 / -1; text-align: left;}
  .ovw-view-wrap{grid-template-columns:1fr;}
  .ovw-view-static .ovw-view-left{position: static;}
  .ovw-contact-head{font-size:24px;}
  .ovw-contact-secondary,.ovw-contact-primary{min-width: auto; width: 100%;}
}

.ovw-photo-lightbox{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100000;
}
.ovw-photo-lightbox.is-open{
  display: flex;
}
.ovw-photo-lightbox-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 20, .78);
}
.ovw-photo-lightbox-img{
  position: relative;
  z-index: 2;
  max-width: min(96vw, 1200px);
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .45);
  background: #fff;
}
.ovw-photo-lightbox-close{
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #4c2a74;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  overflow: hidden;
  cursor: pointer;
}
.ovw-photo-lightbox-close svg{
  width: 18px;
  height: 18px;
  display: block;
}
