@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Italianno&family=Jacques+Francois&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #1f1120;
  --plum-900: #2f1a2c;
  --plum-700: #5a3556;
  --orchid: #c47fc0;
  --orchid-soft: #a96aa3;
  --pink: #f7b6f5;
  --champagne: #ecd3b0;
  --light: #d9d9d9;
  --serif: 'Jacques Francois', serif;
}

body {
  font-family: 'Inter', sans-serif; color: #fff; min-height: 100vh;
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(196, 127, 192, .20), transparent 65%),
    radial-gradient(800px 600px at 8% 100%, rgba(122, 63, 120, .32), transparent 65%),
    var(--bg);
  background-attachment: fixed;
}

.topnav {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: center; gap: 8px; padding: 14px 20px;
  background: rgba(47, 26, 44, .82); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(236, 211, 176, .25);
}
.tab {
  position: relative; padding: 9px 24px; border-radius: 999px;
  color: rgba(255, 255, 255, .78); text-decoration: none; font-size: .95rem; letter-spacing: .06em;
  border: 1px solid transparent; background: none; font-family: inherit; cursor: pointer; transition: color .2s, background .2s, border-color .2s;
}
.tab:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.tab[aria-selected="true"] {
  color: var(--plum-900); font-weight: 500; border-color: transparent;
  background: linear-gradient(135deg, #f6e7d0, var(--champagne) 55%, #d9b98f);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

.hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 28px;
  padding: 20px clamp(20px, 6vw, 56px) 44px; min-height: 215px;
  background:
    radial-gradient(520px 260px at 78% 30%, rgba(247, 182, 245, .22), transparent 70%),
    linear-gradient(180deg, var(--plum-900) 0%, #6a3f66 58%, var(--orchid-soft) 100%);
}
.hero::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--champagne), transparent); opacity: .7;
}

.profile { display: flex; align-items: center; gap: 24px; flex: 1 1 380px; }
.avatar {
  position: relative; flex: none; width: 148px; height: 148px; border-radius: 50%;
  display: grid; place-items: center; background: var(--light); color: var(--plum-700);
  font: 4rem var(--serif);
  box-shadow: 0 0 0 4px rgba(236, 211, 176, .85), 0 0 0 10px rgba(247, 182, 245, .18), 0 18px 40px rgba(0, 0, 0, .35);
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.name { font: 400 1.7rem var(--serif); letter-spacing: .01em; }
.socials { margin-top: 14px; display: flex; gap: 10px; }
.socials a {
  color: #fff; text-decoration: none; font-size: .8rem; letter-spacing: .04em;
  padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .08); transition: background .2s, border-color .2s;
}
.socials a:hover { background: rgba(255, 255, 255, .2); border-color: var(--champagne); }

.brand { flex: 1 1 340px; display: flex; justify-content: center; line-height: 1; }
.brand-word { position: relative; display: inline-block; }
.brand-main {
  font: 400 clamp(4.2rem, 8vw, 6.6rem) var(--serif); letter-spacing: .04em;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .3);
}
.brand-script {
  position: absolute; left: 4%; bottom: -.28em; transform: rotate(-8deg); transform-origin: left bottom;
  font: 400 clamp(2.6rem, 5vw, 4.2rem) 'Italianno', cursive; color: var(--pink);
  text-shadow: 0 0 22px rgba(247, 182, 245, .55);
}

.content {
  display: grid; grid-template-columns: 3fr 1.75fr; gap: 30px; align-items: stretch;
  padding: 34px clamp(20px, 6vw, 56px) 48px; min-height: calc(100vh - 275px);
}
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.badge {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 36px 20px 24px; min-height: 440px; text-align: center;
  border: 2px solid transparent; border-radius: 30px;
  background-image:
    radial-gradient(260px 200px at 50% 0%, rgba(196, 127, 192, .22), transparent 75%),
    linear-gradient(170deg, #3a2037, #241324),
    linear-gradient(145deg, #f0b9ec, #8a4c86 55%, var(--champagne));
  background-origin: border-box; background-clip: padding-box, padding-box, border-box;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .35);
  transition: transform .35s ease, box-shadow .35s ease;
  animation: rise .8s cubic-bezier(.2, .7, .2, 1) both;
}
.badge:nth-child(2) { animation-delay: .12s; }
.badge:nth-child(3) { animation-delay: .24s; }
.badge:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 40px rgba(196, 127, 192, .25); }

.icon-wrap {
  display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(196, 127, 192, .30), rgba(47, 26, 44, 0) 70%);
  border: 1px solid rgba(236, 211, 176, .45);
  box-shadow: inset 0 0 22px rgba(196, 127, 192, .25), 0 0 28px rgba(196, 127, 192, .18);
}
.icon { width: 52px; height: 52px; fill: none; stroke: var(--pink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.badge h2 { margin-top: 10px; font: 400 1.35rem/1.25 var(--serif); letter-spacing: .1em; }
.badge h2::after { content: ''; display: block; width: 44px; height: 1px; margin: 16px auto 0; background: var(--champagne); opacity: .8; }
.badge p { max-width: 17ch; font-weight: 300; font-size: .92rem; line-height: 1.6; color: rgba(255, 255, 255, .72); }
.spark { width: 30px; height: 30px; margin-top: auto; filter: drop-shadow(0 0 8px rgba(196, 127, 192, .7)); }

.vouch {
  display: flex; flex-direction: column; gap: 16px; padding: 26px 24px 22px; border-radius: 34px;
  border: 1px solid rgba(236, 211, 176, .35);
  background: linear-gradient(180deg, #bd7bb9 0%, #84507f 48%, var(--plum-900) 100%);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
  animation: rise .8s .36s cubic-bezier(.2, .7, .2, 1) both;
}
.vouch-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.vouch h2 { font: 400 1.6rem var(--serif); letter-spacing: .03em; }
.user-chip { display: flex; align-items: center; gap: 8px; font-size: .8rem; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(47, 26, 44, .45); }
.user-chip:empty { display: none; }
.user-chip img { width: 26px; height: 26px; border-radius: 50%; }

.reviews { list-style: none; flex: 1; overflow-y: auto; max-height: 420px; display: flex; flex-direction: column; gap: 12px; padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--orchid) transparent; }
.review { background: rgba(31, 17, 32, .55); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 14px 16px; backdrop-filter: blur(6px); }
.review-top { display: flex; align-items: center; gap: 10px; font-size: .88rem; }
.review-top img { width: 28px; height: 28px; border-radius: 50%; background: var(--light); }
.review-top .rating { margin-left: auto; color: var(--champagne); letter-spacing: 2px; }
.review p { margin-top: 10px; font-size: .92rem; font-weight: 300; line-height: 1.55; overflow-wrap: anywhere; }
.empty { margin: auto; max-width: 24ch; font: 400 1.05rem/1.5 var(--serif); opacity: .85; text-align: center; }

.btn-write {
  margin-top: auto; padding: 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, #f6e7d0, var(--champagne) 55%, #d9b98f); color: #2a1428;
  font: 500 1.05rem 'Inter', sans-serif; letter-spacing: .04em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .3); transition: transform .2s, box-shadow .2s;
}
.btn-write:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .4), 0 0 24px rgba(236, 211, 176, .35); }

.composer {
  padding: 18px; border-radius: 20px; border: 1px solid rgba(236, 211, 176, .3);
  background: rgba(31, 17, 32, .72); backdrop-filter: blur(6px);
  animation: rise .35s both;
}
.composer h3 { font: 400 1.2rem var(--serif); margin-bottom: 4px; }
.user-bar { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.btn-signout {
  padding: 5px 14px; border-radius: 999px; cursor: pointer; color: #fff;
  border: 1px solid rgba(255, 255, 255, .4); background: rgba(47, 26, 44, .35); font: 400 .78rem 'Inter', sans-serif;
}
.btn-signout:hover { background: rgba(47, 26, 44, .7); border-color: var(--champagne); }
.review-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.review-who time { font-size: .72rem; font-weight: 300; opacity: .65; }
.muted { font-size: .85rem; opacity: .75; margin: 6px 0 16px; min-height: 1.2em; }
.login-step { display: flex; flex-direction: column; align-items: center; }
.login-step h3, .login-step .muted { align-self: flex-start; width: 100%; }
.login-step .muted { margin-bottom: 18px; }

.login-step .g-btn, .login-step .fb-btn, .login-step .btn-ghost { width: 100%; max-width: 400px; height: 40px; margin: 0 auto 12px; }
.login-step .btn-ghost { margin-bottom: 0; }
.g-btn { display: flex; justify-content: center; align-items: center; font-size: .85rem; overflow: hidden; border-radius: 999px; }
.fb-btn, .btn-submit, .btn-ghost { width: 100%; padding: 12px; border-radius: 999px; font: 500 .95rem 'Inter', sans-serif; cursor: pointer; border: 0; }
.fb-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; background: #1877f2; color: #fff; transition: background .2s, transform .2s; }
.fb-btn:hover { background: #166fe5; transform: translateY(-1px); }
.fb-logo { width: 22px; height: 22px; flex: none; }
.login-step .btn-ghost { transition: background .2s, border-color .2s; }
.login-step .btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: var(--champagne); }
.btn-submit { background: linear-gradient(135deg, var(--pink), var(--orchid)); color: var(--plum-900); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .4); }
.row { display: flex; gap: 10px; }
textarea { width: 100%; resize: vertical; padding: 14px; border-radius: 16px; border: 1px solid var(--orchid-soft); background: rgba(255, 255, 255, .06); color: #fff; font: 300 .95rem 'Inter', sans-serif; margin-top: 12px; }
.stars { display: flex; gap: 4px; margin-top: 10px; }
.stars button { background: none; border: 0; font-size: 1.9rem; color: #6d4a69; cursor: pointer; transition: transform .15s; }
.stars button:hover { transform: scale(1.15); }
.stars button.on { color: var(--champagne); }

:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

@media (max-width: 960px) { .content { grid-template-columns: 1fr; min-height: 0; } }
@media (max-width: 640px) {
  .badges { grid-template-columns: 1fr; }
  .badge { min-height: 280px; }
  .profile { flex-direction: column; text-align: center; }
  .socials { justify-content: center; }
  .tab { padding: 8px 14px; font-size: .85rem; }
}

[hidden] { display: none !important; }
.page { padding: 40px clamp(20px, 6vw, 56px) 56px; min-height: calc(100vh - 275px); }
.page-title { font: 400 2rem var(--serif); letter-spacing: .04em; margin-bottom: 28px; animation: rise .6s both; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; max-width: 1000px; }
.badge.compact { min-height: 300px; }
.badge.compact .btn-write { display: block; width: 100%; margin-top: auto; text-decoration: none; text-align: center; font-size: .95rem; }
.price { font: 400 1.6rem var(--serif); color: var(--champagne); }

.review-actions { margin-top: 10px; display: flex; align-items: center; gap: 12px; font-size: .78rem; color: rgba(255, 255, 255, .75); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: rgba(255, 255, 255, .7); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: #fff; }
.link-btn.danger { color: #ffb4c6; }

.icon.fill { fill: var(--pink); stroke: none; width: 46px; height: 46px; }
a.btn-write { display: block; width: 100%; margin-top: auto; text-decoration: none; text-align: center; font-size: .95rem; }
#panel-socials .page-title { text-align: center; }
#panel-socials .cards { margin-inline: auto; max-width: 820px; }

#panel-offers .page-title { text-align: center; }
#panel-offers .cards { margin-inline: auto; max-width: 820px; }
.offer { padding-top: 22px; }
.offer-img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; padding: 8px; border-radius: 20px; border: 1px solid rgba(236, 211, 176, .45); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); background: var(--plum-900); }
.offer h2 { margin-top: 4px; }

.bio { margin-top: 8px; max-width: 42ch; font-weight: 300; font-size: .92rem; line-height: 1.5; color: rgba(255, 255, 255, .82); }
.bio + .socials { margin-top: 12px; }
@media (max-width: 640px) { .bio { margin-inline: auto; } }

.hero {
  background:
    radial-gradient(480px 300px at 82% 20%, rgba(247, 182, 245, .38), transparent 70%),
    radial-gradient(420px 260px at 55% 110%, rgba(196, 127, 192, .45), transparent 70%),
    radial-gradient(360px 220px at 6% 0%, rgba(236, 211, 176, .12), transparent 70%),
    linear-gradient(180deg, var(--plum-900) 0%, #6a3f66 55%, #b078ab 100%);
}
.profile { position: relative; z-index: 1; }
.hero-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-deco .sp { position: absolute; fill: var(--pink); filter: drop-shadow(0 0 10px rgba(247, 182, 245, .8)); animation: twinkle 3.6s ease-in-out infinite; }
.hero-deco .sp:nth-of-type(even) { fill: var(--champagne); filter: drop-shadow(0 0 10px rgba(236, 211, 176, .7)); }
.s1 { width: 54px; right: 24%; top: 16%; }
.s2 { width: 28px; right: 36%; top: 58%; animation-delay: .8s; }
.s3 { width: 40px; right: 10%; top: 62%; animation-delay: 1.5s; }
.s4 { width: 18px; right: 44%; top: 20%; animation-delay: 2.2s; }
.s5 { width: 24px; right: 4%; top: 18%; animation-delay: .4s; }
.s6 { width: 16px; right: 30%; top: 78%; animation-delay: 1.1s; }
.s7 { width: 22px; right: 52%; top: 66%; animation-delay: 1.9s; }
.s8 { width: 14px; right: 18%; top: 10%; animation-delay: 2.6s; }
.moon { position: absolute; right: 16%; top: 14%; width: clamp(90px, 11vw, 150px); fill: var(--champagne); opacity: .92; filter: drop-shadow(0 0 22px rgba(236, 211, 176, .55)); animation: bob 7s ease-in-out infinite; }
.orb { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .55), rgba(247, 182, 245, .22) 55%, rgba(196, 127, 192, .05) 75%); border: 1px solid rgba(255, 255, 255, .22); animation: bob 9s ease-in-out infinite; }
.o1 { width: 70px; height: 70px; right: 40%; top: 30%; }
.o2 { width: 36px; height: 36px; right: 28%; top: 72%; animation-delay: 1.5s; }
.o3 { width: 100px; height: 100px; right: 6%; top: 34%; animation-delay: 3s; }
.o4 { width: 22px; height: 22px; right: 48%; top: 80%; animation-delay: 2s; }
.o5 { width: 48px; height: 48px; right: 22%; top: 8%; animation-delay: 4s; }
@keyframes twinkle { 0%, 100% { opacity: .35; transform: scale(.8) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(12deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (max-width: 640px) { .moon, .o3, .o1 { display: none; } .s1 { right: 10%; } }

.name { font-size: clamp(2.4rem, 4.2vw, 3.2rem); line-height: 1.1; letter-spacing: .03em; text-shadow: 0 4px 24px rgba(0, 0, 0, .35), 0 0 28px rgba(247, 182, 245, .35); }

.content { align-items: start; }
.badges { align-items: stretch; align-content: start; }

.vouch { min-height: 440px; }

:root { --panel-h: max(440px, calc(100vh - 380px)); }
.content { min-height: 0; }
.badges .badge { height: var(--panel-h); min-height: 0; }
.vouch { min-height: var(--panel-h); }
@media (max-width: 960px) {
  .badges .badge { height: auto; min-height: 280px; }
  .vouch { min-height: 0; }
}

@media (max-width: 960px) {
  .vouch { order: -1; }
}

/* ---------- Footer + legal pages ---------- */
.site-footer { display: flex; justify-content: center; gap: 22px; padding: 8px 20px 32px; font-size: .85rem; }
.site-footer a, .legal a { color: rgba(255, 255, 255, .7); }
.site-footer a:hover, .legal a:hover { color: var(--champagne); }
.legal { max-width: 760px; margin: 0 auto; padding: 48px 24px 72px; line-height: 1.7; font-weight: 300; }
.legal h1 { font: 400 2.2rem var(--serif); letter-spacing: .03em; margin-bottom: 6px; }
.legal h2 { font: 400 1.35rem var(--serif); margin: 32px 0 8px; color: var(--champagne); }
.legal ul { padding-left: 22px; }
.legal .updated { opacity: .65; font-size: .9rem; margin-bottom: 8px; }
.legal .back { display: inline-block; margin-bottom: 28px; }

/* ---------- Skeleton loading ---------- */
.skeleton { pointer-events: none; }
.sk {
  display: block; border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .08) 25%, rgba(255, 255, 255, .22) 50%, rgba(255, 255, 255, .08) 75%);
  background-size: 200% 100%; animation: shimmer 1.3s linear infinite;
}
.sk-avatar { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.sk-line { height: 12px; }
.sk-line.sm { height: 9px; }
.sk-line + .sk-line { margin-top: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Google button (redirect link) ---------- */
.google-btn { gap: 10px; padding: 0 16px; background: #fff; color: #3c4043; border: 1px solid #dadce0; font: 500 .95rem 'Inter', sans-serif; text-decoration: none; transition: background .2s, transform .2s; }
.google-btn:hover { background: #f8f9fa; transform: translateY(-1px); }
.google-btn[hidden] { display: none; }
.g-logo { width: 20px; height: 20px; flex: none; }

/* ---------- Review count ---------- */
.vouch-title-wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-width: 0; }
.count-pill {
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
  font: 500 .75rem 'Inter', sans-serif; letter-spacing: .03em; color: var(--champagne);
  background: rgba(47, 26, 44, .5); border: 1px solid rgba(236, 211, 176, .4);
}
.count-pill[hidden] { display: none; }

/* ---------- Disabled write button (daily limit) ---------- */
.btn-write:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
