/* Base */
:root{
  --gold:#C9A227;
  --gold-200:#f5c518;
  --bg:#0d0d0f;
  --bg2:#151518;
  --panel:#101012;
  --ink:#fff;
  --muted:#c7c7c7;
  --stroke:rgba(201,162,39,.18);
  --stroke2:rgba(255,255,255,.08);
  --glow:0 0 18px rgba(201,162,39,.55);
  --shadow:0 16px 40px rgba(0,0,0,.55);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  background:radial-gradient(1200px 500px at 30% 0%, rgba(201,162,39,.10), transparent 55%), var(--bg);
  color:var(--ink);
}
a{text-decoration:none}

/* Layout */
.container{padding:2rem; max-width:1100px; margin:auto}
.page-title{color:var(--gold-200); margin:0 0 10px; letter-spacing:.2px}

/* Buttons */
.btn{
  padding:10px 16px;
  border:none;
  cursor:pointer;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  letter-spacing:.2px;
  transition:.18s ease;
}
.btn.ghost{
  border:1px solid rgba(201,162,39,.45);
  background:transparent;
  color:var(--gold-200);
}
.btn.ghost:hover{background:rgba(201,162,39,.10); box-shadow:var(--glow); transform:translateY(-1px)}
.btn.solid{
  background:linear-gradient(180deg,var(--gold-200),var(--gold));
  color:#14110a;
}
.btn.solid:hover{filter:brightness(1.05); box-shadow:var(--glow); transform:translateY(-1px)}

/* Search */
.search-bar{
  margin-top:1rem;
  display:flex;
  gap:10px;
  align-items:center;
}
.search-bar input{
  flex:1;
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  background:rgba(15,15,15,.75);
  color:#fff;
  outline:none;
}
.search-bar input:focus{
  border-color:rgba(201,162,39,.45);
  box-shadow:0 0 0 2px rgba(201,162,39,.20);
}

/* Cards Grid */
.profiles{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:18px;
  margin-top:1.5rem;
}

/* Card */
.card{
  background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.0)), var(--bg2);
  border:1px solid var(--stroke);
  border-radius:16px;
  padding:16px 16px 14px;
  text-align:left;
  box-shadow:0 0 0 1px rgba(0,0,0,.25) inset;
  transition:.2s transform, .2s box-shadow, .2s border-color;
  min-height:320px;

  /* ✅ makes button stick to bottom */
  display:flex;
  flex-direction:column;
}

.card:hover{
  transform:translateY(-3px);
  border-color:rgba(201,162,39,.32);
  box-shadow:var(--shadow);
}

.card h3{
  margin:0;
  color:var(--gold-200);
  font-size:1.1rem;
  letter-spacing:.2px;
  display:flex;
  align-items:center;
  gap:8px;
}

/* (optional TEAM badge if your JS injects it) */
.card .badge{
  border:1px solid rgba(201,162,39,.35);
  color:var(--gold-200);
  border-radius:999px;
  padding:4px 10px;
  font-weight:900;
  font-size:.72rem;
  letter-spacing:.6px;
}

/* Rating row */
.rating{
  margin:10px 0 6px;
  font-size:.92rem;
  color:#ffb547;
  font-weight:800;
  opacity:.95;
}

/* Bio – clamp for clean grid */
.card .bio{
  color:#ddd;
  font-size:.95rem;
  line-height:1.45;
  margin:0 0 10px;

  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* Rate line */
.card .rate{
  color:#fff;
  font-weight:900;
  margin:0 0 14px;
}

/* CTA pinned at bottom */
.card .btn{
  margin-top:auto;
  width:100%;
  padding:11px 14px;
  border-radius:12px;
}

/* Detailed Profile */
.detailed{
  background:linear-gradient(180deg, rgba(255,255,255,.02), transparent), var(--bg2);
  border-radius:16px;
  padding:16px;
  border:1px solid var(--stroke);
  box-shadow:0 0 0 1px rgba(0,0,0,.25) inset;
}
.hero{
  display:grid;
  grid-template-columns:130px 1fr;
  gap:18px;
  align-items:start;
}
.profile-pic{
  width:130px;
  height:130px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid var(--gold-200);
  box-shadow:0 10px 26px rgba(0,0,0,.45);
}
.dp-role{color:var(--gold-200); margin:.25rem 0 .35rem; font-weight:800}
.dp-bio{color:#e6e6e6; line-height:1.55}

.chips{display:flex; flex-wrap:wrap; gap:8px; margin:.7rem 0}
.chip{
  border:1px solid rgba(201,162,39,.35);
  color:var(--gold-200);
  border-radius:999px;
  padding:6px 10px;
  font-weight:700;
  font-size:.92rem;
  background:rgba(201,162,39,.06);
}

/* Rating blocks */
.rates{
  display:grid;
  grid-template-columns:280px 1fr;
  gap:18px;
  align-items:center;
  margin-top:.8rem;
}
.big-rating{
  background:var(--panel);
  border:1px solid var(--stroke);
  border-radius:14px;
  padding:14px;
  text-align:center;
}
.big-rating #dpRatingScore{
  font-size:2.25rem;
  font-weight:950;
  display:block;
}
.stars{display:flex; gap:4px; justify-content:center; margin:6px 0}
.star{font-size:18px; color:#ffb547}
.rate-line{margin-top:6px; color:#ddd}

.breakdown .row{
  display:grid;
  grid-template-columns:28px 1fr 36px;
  align-items:center;
  gap:8px;
  margin:8px 0;
}
.breakdown .bar{
  background:#0b0b0c;
  border-radius:999px;
  height:10px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.06);
}
.breakdown .bar span{
  display:block;
  height:10px;
  background:linear-gradient(180deg,var(--gold-200),var(--gold));
}
.breakdown em{font-style:normal; color:#bbb; font-size:.9rem; text-align:right}

.dp-actions{display:flex; gap:10px; margin-top:12px; flex-wrap:wrap}
.dp-actions .btn{border-radius:12px}

/* Gallery */
.section-title{margin:1.2rem 0 .6rem; color:#fff}
.gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px,1fr));
  gap:12px;
}
.gallery .shot{
  border-radius:12px;
  overflow:hidden;
  border:1px solid var(--stroke2);
  background:#0f0f0f;
}
.gallery img{display:block; width:100%; height:160px; object-fit:cover}

/* Reviews */
.reviews{display:grid; gap:12px}
.review{
  background:var(--panel);
  border:1px solid var(--stroke2);
  border-radius:14px;
  padding:14px;
}
.r-meta{display:flex; gap:8px; align-items:center; margin-bottom:6px; color:#ddd}
.r-name{font-weight:900}
.r-stars{color:#ffb547; font-size:14px}
.r-text{color:#ccc; line-height:1.55}

/* Modal */
.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.65);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:1000
}
.modal-card{
  width:min(640px,95%);
  background:#141414;
  color:#fff;
  border-radius:14px;
  box-shadow:0 18px 55px rgba(0,0,0,.65);
  border:1px solid rgba(255,215,0,.18)
}
.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:12px 16px;
  border-bottom:1px solid rgba(255,215,0,.12)
}
.icon-btn{
  background:transparent;
  border:none;
  color:var(--gold-200);
  font-size:22px;
  line-height:1;
  cursor:pointer
}
.modal-body{padding:14px 16px 16px}
.modal-actions{display:flex; gap:10px; justify-content:flex-end; margin-top:12px}
.msg{font-size:.95rem; margin-top:8px}

.grid{display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px}
.field{display:flex; flex-direction:column; gap:6px}
.field input,.field textarea{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:#0f0f0f;
  color:#fff;
  outline:none
}
.field input:focus,.field textarea:focus{
  border-color:rgba(201,162,39,.45);
  box-shadow:0 0 0 2px rgba(201,162,39,.20)
}
.span2{grid-column:1/-1}

/* Utils */
.hidden{display:none !important}
.not-found{
  text-align:center;
  padding:1rem;
  background:#151515;
  border-radius:14px;
  border:1px solid rgba(255,215,0,.12);
}
.footer{
  padding:1rem;
  text-align:center;
  background:#000;
  color:#777;
  border-top:1px solid rgba(201,162,39,.18)
}

@media (max-width: 720px){
  .hero{grid-template-columns:1fr}
  .rates{grid-template-columns:1fr}
  .profiles{grid-template-columns:1fr}
  .search-bar{flex-direction:column}
  .search-bar .btn{width:100%}
  .card{min-height:auto}
}
.review-box{
  margin-top:14px;
  padding:14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(15,15,15,.55);
}

.review-title{
  margin:0 0 10px;
  color:#fff;
}

.review-form input,
.review-form select,
.review-form textarea{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:#0f0f0f;
  color:#fff;
  outline:none;
}

.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus{
  border-color:rgba(201,162,39,.45);
  box-shadow:0 0 0 2px rgba(201,162,39,.20);
}

.review-row{
  display:grid;
  grid-template-columns:1fr 160px;
  gap:10px;
  margin-bottom:10px;
}

.review-actions{
  display:flex;
  gap:12px;
  align-items:center;
  margin-top:10px;
  flex-wrap:wrap;
}

@media (max-width:720px){
  .review-row{ grid-template-columns:1fr; }
}
/* ===== Offer Sender Chip (Active State) ===== */
#cr-sender .chip {
  transition: 
    box-shadow .18s ease,
    background .18s ease,
    border-color .18s ease,
    transform .08s ease;
}

#cr-sender .chip.active {
  background: linear-gradient(180deg, rgba(201,162,39,.25), rgba(201,162,39,.12));
  border-color: var(--gold);
  color: #fff;
  box-shadow:
    0 0 0 2px rgba(201,162,39,.35),
    0 0 22px rgba(201,162,39,.65);
  transform: translateY(-1px);
}

#cr-sender .chip:active {
  transform: translateY(0);
}

