/* =========================
   Mobile Map - stable + premium (MOBILE FIRST)
   ========================= */
*{ margin:0; padding:0; box-sizing:border-box; }
img{ max-width:100%; display:block; }
button, select, input{ font:inherit; }
a{ color:inherit; }

:root{
  --bg:#ffffff;
  --text:#0b1220;
  --muted:rgba(11,18,32,0.65);
  --line:rgba(11,18,32,0.10);

  --blue:#3aa9ff;
  --pink:#ff4fd8;
  --mint:#38f2d3;
  --grad:linear-gradient(90deg, var(--blue), var(--pink));
  --grad-soft:linear-gradient(135deg, rgba(58,169,255,0.14), rgba(255,79,216,0.12));

  --shadow: 0 22px 70px rgba(11,18,32,0.14);
  --r: 22px;
  --r-lg: 26px;

  --tap: 48px; /* minimum touch target */
}

body{
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.screen{
  min-height: 100svh;
  display:flex;
  flex-direction:column;
  padding: 16px;
  gap: 12px;
}

/* =========================
   Header
   ========================= */
.top{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
}

.title h1{
  font-size: 1.6rem;
  line-height: 1.1;
  background: var(--grad);
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
  font-weight: 900;
}

.title .sub{
  margin-top: 4px;
  font-size: 0.95rem;
  color: var(--muted);
}

.back{
  text-decoration:none;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: rgba(11,18,32,0.85);
  background: rgba(255,255,255,0.94);
}

/* =========================
   Controls
   ========================= */
.controls{
  display:grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 14px 45px rgba(11,18,32,0.06);
}

.btn{
  height: var(--tap);
  border-radius: 999px;
  border: 1px solid rgba(58,169,255,0.18);
  background: var(--grad);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.2px;
  box-shadow: 0 18px 50px rgba(58,169,255,0.18);
}

.field span,
.range span{
  display:block;
  font-size: 0.85rem;
  font-weight: 900;
  color: rgba(11,18,32,0.70);
  margin: 2px 0 6px;
}

.field select,
.field input{
  width: 100%;
  height: var(--tap);
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.92);
  padding: 0 14px;
  font-weight: 900;
  color: rgba(11,18,32,0.85);
  outline: none;
}

.field input[type="search"]{
  font-weight: 800;
}

.field select:focus,
.field input:focus{
  border-color: rgba(58,169,255,0.35);
  box-shadow: 0 0 0 3px rgba(58,169,255,0.12);
}

.range-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.range-row input[type="range"]{
  width: 100%;
  accent-color: var(--blue);
}

.range-row strong{
  min-width: 78px;
  text-align:right;
  font-weight: 950;
  color: rgba(11,18,32,0.86);
}

/* =========================
   VOICE SEARCH (single clean version)
   ========================= */
.voice{
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(58,169,255,0.14) 0%, rgba(255,79,216,0.10) 40%, rgba(255,255,255,0.80) 70%),
    rgba(255,255,255,0.90);
  box-shadow:
    0 18px 55px rgba(11,18,32,0.10),
    0 0 0 1px rgba(255,79,216,0.06);
  padding: 14px;
  display: grid;
  gap: 12px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.voice::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: linear-gradient(90deg, rgba(58,169,255,0.55), rgba(255,79,216,0.55));
  opacity: 0.07;
  filter: blur(12px);
  pointer-events:none;
}

.voice-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.voice-title{
  font-size: 1.05rem;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: 0.1px;
  background: var(--grad);
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}

.voice-sub{
  margin-top: 6px;
  font-size: 0.92rem;
  color: rgba(11,18,32,0.62);
}

.voice-mark{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  border: 1px solid rgba(11,18,32,0.10);
  background: rgba(255,255,255,0.74);
  box-shadow: 0 12px 30px rgba(11,18,32,0.08);
}

.voice-mark svg{
  fill: rgba(255,79,216,0.95);
  filter: drop-shadow(0 8px 20px rgba(255,79,216,0.18));
}

/* ✅ STACKED layout: button row + text row (FULL WIDTH) */
.voice-box{
  display:flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.voice-row{ width: 100%; }

/* Mic button: edge-to-edge */
.mic{
  width: 100%;
  min-height: 62px;
  border-radius: 18px;
  border: 1px solid rgba(11,18,32,0.10);
  background:
    radial-gradient(90% 120% at 30% 30%, rgba(58,169,255,0.16) 0%, rgba(255,79,216,0.12) 55%, rgba(255,255,255,0.90) 100%);
  box-shadow: 0 16px 50px rgba(11,18,32,0.10);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;

  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 14px;
  text-align:center;
  position: relative;
  overflow: hidden;

  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.mic:active{ transform: scale(0.99); }

.mic-ring{
  position:absolute;
  inset: 10px;
  border-radius: 14px;
  border: 2px solid rgba(58,169,255,0.18);
  opacity: 0;
  transform: scale(0.98);
  pointer-events:none;
}

.mic-core{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background: var(--grad);
  box-shadow: 0 18px 50px rgba(58,169,255,0.18);
  flex: 0 0 auto;
}

.mic-core svg{ fill:#fff; }

.mic-label{
  font-size: 0.95rem;
  font-weight: 950;
  color: rgba(11,18,32,0.84);
  letter-spacing: 0.1px;
}

/* Voice text field: edge-to-edge */
.voice-field{
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(11,18,32,0.10);
  background: rgba(255,255,255,0.90);
  box-shadow: 0 14px 45px rgba(11,18,32,0.08);
  padding: 12px;

  display:flex;
  flex-direction:column;
  gap: 10px;
  justify-content:center;
}

.voice-pill{
  display:inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(58,169,255,0.18);
  background: rgba(58,169,255,0.10);
  color: rgba(11,18,32,0.80);
  font-weight: 950;
  font-size: 0.82rem;
}

/* TEXT INPUT (typing + voice fallback) */
.voice-text{
  width: 100%;
  resize: none;
  border: none;
  outline: none;

  font-size: 0.98rem;
  line-height: 1.45;
  color: rgba(11,18,32,0.82);

  background: transparent;
  padding: 0;

  min-height: 2.8em; /* ≈ 2 rows */
}

/* wrapper already has padding & border */
.voice-field{
  padding: 12px;
}

/* focus state = discreet but clear */
.voice-text:focus{
  outline: none;
}

/* placeholder – discreet, not “loud” */
.voice-text::placeholder{
  color: rgba(11,18,32,0.45);
}

/* Listening state */
.voice.is-listening .mic{
  border-color: rgba(255,79,216,0.22);
  box-shadow: 0 18px 70px rgba(255,79,216,0.14);
}

.voice.is-listening .mic-ring{
  opacity: 1;
  animation: micPulse 900ms ease-in-out infinite;
}

.voice.is-listening .voice-pill{
  border-color: rgba(255,79,216,0.28);
  background: rgba(255,79,216,0.12);
}

@keyframes micPulse{
  0%   { transform: scale(0.98); box-shadow: 0 0 0 0 rgba(255,79,216,0.00); }
  60%  { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(255,79,216,0.10); }
  100% { transform: scale(0.98); box-shadow: 0 0 0 0 rgba(255,79,216,0.00); }
}

/* Actions */
.voice-actions{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.btn-lite{
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(11,18,32,0.12);
  background: rgba(255,255,255,0.92);
  color: rgba(11,18,32,0.84);
  font-weight: 950;
  letter-spacing: 0.1px;
  cursor: pointer;
  box-shadow: 0 14px 45px rgba(11,18,32,0.08);
}

.btn-lite:active{ transform: translateY(1px); }

.btn-lite.primary{
  border-color: rgba(58,169,255,0.18);
  background: var(--grad);
  color: #fff;
  box-shadow: 0 18px 55px rgba(58,169,255,0.18);
}

/* Small phones */
@media (max-width: 360px){
  .screen{ padding: 14px; }
  .mic{ min-height: 58px; }
  .mic-core{ width: 42px; height: 42px; }
  .voice-text{ font-size: 0.95rem; }
}

/* =========================
   Radar
   ========================= */
.radar-wrap{
  flex: 1 1 auto;
  min-height: 0;
}

.radar{
  position: relative;
  height: 100%;
  min-height: 420px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
  background:
    radial-gradient(80% 80% at 30% 20%, rgba(58,169,255,0.14) 0%, rgba(255,255,255,0.0) 55%),
    radial-gradient(80% 80% at 80% 70%, rgba(255,79,216,0.12) 0%, rgba(255,255,255,0.0) 60%),
    rgba(255,255,255,0.96);
}

.radar-grid{
  position:absolute;
  inset:0;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at center, rgba(11,18,32,0.10) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Nodes */
.node{
  position:absolute;
  left: calc(var(--x) * 1%);
  top:  calc(var(--y) * 1%);
  transform: translate(-50%, -50%) scale(var(--s, 1));

  width: 76px;
  height: 76px;
  border-radius: 999px;
  border: 1px solid rgba(11,18,32,0.10);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 16px 55px rgba(11,18,32,0.16);

  padding: 0;
  cursor:pointer;
  -webkit-tap-highlight-color: transparent;

  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.node img{
  width:100%;
  height:100%;
  border-radius: 999px;
  object-fit: cover;
}

.node-ring{
  position:absolute;
  inset:-6px;
  border-radius: 999px;
  border: 2px solid rgba(58,169,255,0.28);
  box-shadow:
    0 0 0 4px rgba(58,169,255,0.08),
    0 0 26px rgba(255,79,216,0.16);
}

.node:hover{
  border-color: rgba(58,169,255,0.28);
  box-shadow: 0 26px 90px rgba(11,18,32,0.18);
}

.node.is-nearest .node-ring{
  border-color: rgba(56,242,211,0.55);
  box-shadow:
    0 0 0 5px rgba(56,242,211,0.12),
    0 0 34px rgba(56,242,211,0.22);
}

.node-name{
  position:absolute;
  left:50%;
  bottom:-12px;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(11,18,32,0.10);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  font-weight: 950;
  color: rgba(11,18,32,0.80);
  white-space: nowrap;
}

.dist{
  position:absolute;
  left:50%;
  top:-12px;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(11,18,32,0.10);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  font-weight: 950;
  color: rgba(11,18,32,0.76);
  white-space: nowrap;
}

.node.is-hidden{ display:none; }

/* Empty state */
.empty{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  padding: 16px;
}

.empty-card{
  width: min(92%, 360px);
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 22px 70px rgba(11,18,32,0.14);
  padding: 14px;
  text-align:center;
}

.empty-card strong{
  display:block;
  font-weight: 950;
  background: var(--grad);
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
  font-size: 1.1rem;
}

.empty-card p{
  margin-top: 6px;
  color: rgba(11,18,32,0.65);
}

/* Tablet+ */
@media (min-width: 768px){
  .screen{ max-width: 520px; margin: 0 auto; }
  .radar{ min-height: 560px; }
  .node{ width: 92px; height: 92px; }
}
/* =========================
   RESULTS (ranked list)
   ========================= */
.results{
  border: 1px solid rgba(11,18,32,0.10);
  border-radius: 22px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 14px 45px rgba(11,18,32,0.06);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.results-head h2{
  font-size: 1.05rem;
  font-weight: 950;
}

.results-head p{
  color: rgba(11,18,32,0.62);
  font-size: 0.92rem;
  margin-top: 4px;
}

.results-list{
  display: grid;
  gap: 10px;
}

.result-card{
  display:flex;
  gap: 10px;
  align-items:center;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(11,18,32,0.10);
  background: rgba(255,255,255,0.92);
}

.result-card img{
  width: 54px;
  height: 54px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
}

.result-main{
  flex: 1 1 auto;
  min-width: 0;
}

.result-name{
  font-weight: 950;
  color: rgba(11,18,32,0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-sub{
  margin-top: 4px;
  font-size: 0.90rem;
  color: rgba(11,18,32,0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-score{
  font-weight: 950;
  font-size: 0.86rem;
  color: rgba(11,18,32,0.70);
  padding-left: 8px;
}
/* =========================
   SEARCH RESULTS
   ========================= */

.results{
  margin-top: 14px;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(11,18,32,0.10);
  background: rgba(255,255,255,0.94);
  box-shadow: 0 18px 55px rgba(11,18,32,0.10);
}

.results-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.results-head h2{
  font-size: 1.05rem;
  font-weight: 950;
  background: linear-gradient(90deg, #3aa9ff, #ff4fd8);
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}

#resultsMeta{
  font-size: 0.85rem;
  color: rgba(11,18,32,0.60);
}

/* list */
.results-list{
  display:grid;
  gap: 10px;
}

/* card */
.result-card{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(11,18,32,0.10);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 12px 40px rgba(11,18,32,0.10);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.result-card:active{
  transform: scale(0.985);
  box-shadow: 0 8px 26px rgba(11,18,32,0.12);
}

/* image */
.result-card img{
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(11,18,32,0.08);
}

/* text */
.result-main{
  flex: 1 1 auto;
  min-width: 0;
}

.result-name{
  font-size: 0.95rem;
  font-weight: 950;
  color: rgba(11,18,32,0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-sub{
  margin-top: 3px;
  font-size: 0.82rem;
  color: rgba(11,18,32,0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* score */
.result-score{
  font-size: 0.78rem;
  font-weight: 900;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(58,169,255,0.20);
  background: rgba(58,169,255,0.10);
  color: rgba(11,18,32,0.78);
  flex-shrink: 0;
}

/* Desktop polish */
@media (min-width: 768px){
  .results-list{
    grid-template-columns: 1fr 1fr;
  }
}


/* =========================
   PROFILE PAGE (mobile-first)
   ========================= */

.screen.profile{
  gap: 12px;
}

/* profile header (nicer alignment) */
.profile .top{
  align-items:center;
}

.profile-hero{
  border-radius: var(--r-lg);
  overflow:hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,0.92);
}

.profile-hero img{
  width: 100%;
  height: 320px;
  object-fit: cover;
}

@media (max-width: 380px){
  .profile-hero img{ height: 280px; }
}

/* gallery */
.profile-gallery{
  display:flex;
  gap: 10px;
  overflow:auto;
  padding-bottom: 2px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.profile-gallery img{
  width: 120px;
  height: 120px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(11,18,32,0.10);
  background: rgba(255,255,255,0.92);
  scroll-snap-align: start;
  flex: 0 0 auto;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-gallery img:active{
  transform: scale(0.95);
}

/* Fullscreen Gallery Overlay */
.gallery-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: galleryFadeIn 0.3s ease;
}

.gallery-overlay:not([hidden]){
  display: flex;
}

@keyframes galleryFadeIn{
  from { opacity: 0; }
  to { opacity: 1; }
}

.gallery-close{
  position: absolute;
  top: 22px;
  right: 36px;
  width: auto;
  height: auto;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 45px;
  line-height: 1;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.3s ease, transform 0.2s ease;
  user-select: none;
  font-weight: 300;
}

.gallery-close:hover{
  color: #dc143c;
  transform: scale(1.1);
}

.gallery-close:active{
  transform: scale(0.95);
}

.gallery-container{
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-slider{
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  touch-action: pan-y pinch-zoom;
}

.gallery-slide{
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
}

/* OPTION 1: Standardized portrait format (recommended for profile photos) */
.gallery-slide img{
  width: auto;
  height: 75vh;
  max-width: 90vw;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 0 35px #dc143c, 0 0 60px rgba(220, 20, 60, 0.4);
  user-select: none;
  -webkit-user-drag: none;
}

/* OPTION 2: If you prefer contained images (uncomment to use)
.gallery-slide img{
  max-width: 85vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 0 35px #dc143c, 0 0 60px rgba(220, 20, 60, 0.4);
  user-select: none;
  -webkit-user-drag: none;
}
*/

.gallery-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10001;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-nav:hover{
  background: rgba(220, 20, 60, 0.2);
  color: #dc143c;
  border-color: rgba(220, 20, 60, 0.4);
  transform: translateY(-50%) scale(1.08);
}

.gallery-nav:active{
  transform: translateY(-50%) scale(0.95);
}

.gallery-prev{
  left: 24px;
}

.gallery-next{
  right: 24px;
}

.gallery-counter{
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 22px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 25px;
  z-index: 10001;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(220, 20, 60, 0.3);
  letter-spacing: 1px;
}

/* Mobile adjustments */
@media (max-width: 640px){
  .gallery-slide img{
    height: 70vh;
    max-width: 92vw;
  }
  
  .gallery-nav{
    width: 52px;
    height: 52px;
    font-size: 40px;
  }
  
  .gallery-prev{ left: 16px; }
  .gallery-next{ right: 16px; }
  
  .gallery-close{
    top: 16px;
    right: 24px;
    font-size: 40px;
  }
  
  .gallery-counter{
    bottom: 24px;
    font-size: 14px;
    padding: 10px 18px;
  }
  
  .gallery-slide{
    padding: 100px 12px 100px;
  }
}

/* video */
.profile-video{
  border-radius: var(--r-lg);
  overflow:hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 55px rgba(11,18,32,0.10);
  background: rgba(255,255,255,0.92);
}

.profile-video video{
  width: 100%;
  height: auto;
  display:block;
}

/* info card */
.card{
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 14px 45px rgba(11,18,32,0.06);
  padding: 12px;
  display:grid;
  gap: 10px;
}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}

.chip{
  display:inline-flex;
  align-items:center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(58,169,255,0.18);
  background: var(--grad-soft);
  font-weight: 950;
  font-size: 0.84rem;
  color: rgba(11,18,32,0.85);
}

.desc{
  color: rgba(11,18,32,0.78);
  font-size: 0.98rem;
  line-height: 1.5;
}

.tags{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}

.tags span{
  display:inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(11,18,32,0.10);
  background: rgba(255,255,255,0.92);
  color: rgba(11,18,32,0.75);
  font-weight: 900;
  font-size: 0.82rem;
}

/* actions */
.profile-actions{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.profile-actions .btn,
.profile-actions .btn-lite{
  width: 100%;
}
/* =========================
   Profile polish
   ========================= */
.profile-hero img{
  width: 100%;
  height: 52vh;
  max-height: 520px;
  object-fit: cover;
  border-radius: 18px;
}

.profile-gallery{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.profile-gallery img{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
}

.profile-video video{
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
}

.profile .card{
  border-radius: 18px;
}

.profile-actions{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 768px){
  .profile-gallery{ grid-template-columns: repeat(5, 1fr); }
  .profile-actions{ grid-template-columns: 1fr 1fr; }
}

/* --- Services (premium) --- */
.card.services {
  margin-top: 12px;
}

.services-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

.services-note {
  font-size: 12px;
  color: #777;
  letter-spacing: .2px;
}

.services-table {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden; /* zebra rows clean corners */
  border: 1px solid #eee;
  background: #fff;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 88px; /* fixed right column => PERFECT alignment */
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  font-size: 14px;
}

.service-row:nth-child(even) {
  background: #f6f6f6; /* zebra */
}

.service-name {
  color: #222;
  line-height: 1.2;
  word-break: break-word;
}

.service-badge {
  justify-self: end;        /* right align inside grid column */
  text-align: right;        /* right align text */
  min-width: 64px;          /* consistent badge width */
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  border: 1px solid transparent;
}

/* clean, premium badges */
.service-badge.is-yes {
  background: rgba(31, 168, 79, 0.12);
  border-color: rgba(31, 168, 79, 0.25);
  color: #1a7e3d;
}

.service-badge.is-no {
  background: rgba(192, 57, 43, 0.10);
  border-color: rgba(192, 57, 43, 0.22);
  color: #9f2f24;
}
/* HERO: vedno "poln" profilni kader */
.profile-hero{
  border-radius: 18px;
  overflow: hidden;
}

/* Portrait frame (npr. 4:5) + responsiven */
.profile-hero img{
  width: 100%;
  aspect-ratio: 4 / 5;          /* <-- glavni trik */
  height: auto;                 /* height naj sledi aspect-ratio */
  object-fit: cover;
  object-position: center;      /* po potrebi center 20% */
  display: block;
}

/* malo nižji kader na zelo malih ekranih */
@media (max-width: 380px){
  .profile-hero img{ aspect-ratio: 3 / 4; }
}
