
/* ====== Theme: dark luxury purple (urology-style) ====== */
:root{
  --bg0:#07060a;
  --bg1:#0b0712;
  --glass: rgba(15, 10, 22, .72);
  --glass2: rgba(15, 10, 22, .58);
  --stroke: rgba(210, 170, 255, .18);
  --stroke2: rgba(210, 170, 255, .12);
  --text:#f4f1ff;
  --muted: rgba(244, 241, 255, .72);
  --muted2: rgba(244, 241, 255, .55);
  --purple:#a855f7;
  --purple2:#7c3aed;
  --glow: rgba(168, 85, 247, .32);
  --glow2: rgba(168, 85, 247, .18);
  --radius: 20px;
  --radius2: 16px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background:
    radial-gradient(1200px 700px at 20% 30%, rgba(168,85,247,.35), transparent 60%),
    radial-gradient(900px 700px at 80% 20%, rgba(124,58,237,.22), transparent 55%),
    radial-gradient(1100px 900px at 60% 90%, rgba(168,85,247,.14), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
}

/* ===== Header ===== */
.site-header{
  position:relative;
  background: rgba(8, 6, 12, .55);
  backdrop-filter: blur(10px);
}
.header-inner{
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 16px 14px;
  display:flex;
  justify-content:center;
}
.logo{
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:10px;
}
.logo-text{
  font-size: 22px;
  letter-spacing: .2px;
  font-weight: 650;
  color: rgba(244,241,255,.92);
  text-shadow: 0 0 18px rgba(168,85,247,.22);
}
.header-sep{
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,85,247,.25), transparent);
}

/* ===== Layout ===== */
.page{ width:100%; }
.hero{
  padding: 46px 16px 26px;
  display:flex;
  justify-content:center;
}
.card{
  width:100%;
  max-width: 760px; /* premium medium width */
  border-radius: var(--radius);
  padding: 30px;
  position:relative;
}
.glass{
  background: var(--glass);
  border: 1px solid var(--stroke);
  box-shadow:
    0 0 0 1px rgba(168,85,247,.06) inset,
    0 30px 90px rgba(0,0,0,.55),
    0 0 80px rgba(168,85,247,.10);
  backdrop-filter: blur(16px);
}
.glass::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: var(--radius);
  pointer-events:none;
  background: radial-gradient(800px 300px at 50% 0%, rgba(168,85,247,.18), transparent 70%);
  opacity: .85;
}

.card-title{
  margin: 10px 0 6px;
  text-align:center;
  font-size: 30px;
  font-weight: 750;
  letter-spacing: .2px;
}
.card-subtitle{
  margin: 0 0 14px;
  text-align:center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.badge-row{
  display:flex;
  justify-content:center;
  margin: 10px 0 18px;
}
.badge{
  display:inline-flex;
  align-items:center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke2);
  background: rgba(10,8,16,.45);
  color: rgba(244,241,255,.82);
  font-size: 12px;
}

/* ===== Tab switcher (single) ===== */
.tab-switcher{
  display:flex;
  justify-content:center;
  align-items:center;
  gap: 12px;
  margin-top: 2px;
}
.icon-btn{
  width: 44px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--stroke2);
  background: rgba(10,8,16,.45);
  color: rgba(244,241,255,.85);
  cursor:pointer;
  font-size: 20px;
  line-height: 1;
  transition: transform .08s ease, box-shadow .15s ease, border-color .15s ease;
}
.icon-btn:hover{
  border-color: rgba(168,85,247,.35);
  box-shadow: 0 0 0 3px rgba(168,85,247,.10);
}
.icon-btn:active{ transform: translateY(1px); }

.tab-pill{
  min-width: 140px;
  height: 36px;
  display:flex;
  justify-content:center;
  align-items:center;
  border-radius: 999px;
  border: 1px solid rgba(168,85,247,.28);
  background: rgba(168,85,247,.14);
  box-shadow: 0 0 24px rgba(168,85,247,.14);
}
.tab-pill-label{
  font-weight: 700;
  color: rgba(244,241,255,.92);
}

/* ===== Sections inside card ===== */
.section{
  border-radius: var(--radius2);
  padding: 18px;
  margin: 14px 0;
}
.glass-soft{
  background: var(--glass2);
  border: 1px solid var(--stroke2);
  box-shadow: 0 0 0 1px rgba(168,85,247,.05) inset;
  backdrop-filter: blur(14px);
}
.section-title{
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(244,241,255,.62);
  margin-bottom: 12px;
   text-align: center;
}

/* ===== Dropzone ===== */
.dropzone{
  border-radius: 16px;
  border: 2px dashed rgba(168,85,247,.35);
  padding: 22px;
  text-align:center;
  position:relative;
  transition: border-color .15s ease, box-shadow .15s ease;
  cursor:pointer;
}
.dropzone.dragover{
  border-color: rgba(168,85,247,.65);
  box-shadow: 0 0 0 4px rgba(168,85,247,.12);
}
#imageUpload{ display:none; }
.dz-icon{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  margin: 0 auto 10px;
  background: rgba(168,85,247,.18);
  border: 1px solid rgba(168,85,247,.30);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  color: rgba(244,241,255,.92);
}
.dz-main{ font-weight: 800; margin: 2px 0 4px; }
.dz-sub{ color: var(--muted2); font-size: 13px; margin-bottom: 12px; }
.dz-actions{
  display:flex;
  justify-content:center;
  align-items:center;
  gap: 12px;
  flex-wrap: wrap;
}
.file-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(10,8,16,.55);
  border: 1px solid var(--stroke2);
  color: rgba(244,241,255,.92);
  cursor:pointer;
  transition: box-shadow .15s ease, border-color .15s ease;
  /* Ensure proper touch handling on mobile */
  position: relative;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}
.file-btn:hover{
  border-color: rgba(168,85,247,.35);
  box-shadow: 0 0 0 3px rgba(168,85,247,.10);
}
.file-name{
  color: rgba(244,241,255,.72);
  font-size: 13px;
}

.hint{
  margin-top: 10px;
  text-align:center;
  color: rgba(244,241,255,.58);
  font-size: 12px;
}

/* ===== Guide list ===== */
.guide-list{
  margin: 0;
  padding-left: 18px;
  color: rgba(244,241,255,.82);
}
.guide-list li{ margin: 7px 0; }

/* ===== Buttons ===== */
.primary-btn{
  width:100%;
  border: none;
  cursor:pointer;
  padding: 14px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  color: #0c0612;
  background: linear-gradient(90deg, var(--purple2), var(--purple));
  box-shadow: 0 10px 30px rgba(168,85,247,.25), 0 0 40px rgba(168,85,247,.18);
  transition: transform .08s ease, filter .15s ease;
  margin-top: 14px;
}
.primary-btn:hover{ filter: brightness(1.05); }
.primary-btn:active{ transform: translateY(1px); }

.secondary-btn{
  display:inline-flex;
  justify-content:center;
  width:100%;
  text-decoration:none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(168,85,247,.28);
  color: rgba(244,241,255,.92);
  background: rgba(10,8,16,.40);
}
.micro-disclaimer{
  margin-top: 12px;
  text-align:center;
  color: rgba(244,241,255,.50);
  font-size: 12px;
}

/* ===== Below sections ===== */
.below{
  padding: 18px 16px 60px;
  display:flex;
  justify-content:center;
}
.below-inner{
  width:100%;
  max-width: 980px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.below-inner{
  width:100%;
  max-width: 760px;      /* la fel ca main card */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}


.below-card{
  width: 75%;
  border-radius: var(--radius);
  padding: 22px;
}

.below-title{
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
}
.steps{ display:grid; gap: 10px; }
.step{
  display:flex;
  gap: 12px;
  align-items:flex-start;
}
.step-num{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(168,85,247,.18);
  border: 1px solid rgba(168,85,247,.30);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
}
.step-text{ color: rgba(244,241,255,.78); font-size: 14px; line-height: 1.45; }

.faq details{
  border: 1px solid var(--stroke2);
  background: rgba(10,8,16,.35);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 10px 0;
}
.faq summary{
  cursor:pointer;
  font-weight: 750;
}
.faq p{
  color: rgba(244,241,255,.72);
  margin: 10px 0 0;
  line-height: 1.45;
  font-size: 14px;
}

/* ===== Result ===== */
.result .result-media{
  padding: 12px;
  margin-top: 18px;
}
.result img{
  width:100%;
  border-radius: 14px;
  display:block;
}

/* Rating Label */
.rating-label {
  text-align: center;
  font-size: 28px;
  font-weight: 850;
  background: linear-gradient(90deg, var(--purple), var(--purple2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 8px 0 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Star Rating */
.star-rating {
  text-align: center;
  margin: 8px 0 18px;
  font-size: 28px;
  letter-spacing: 4px;
}
.star-rating .star {
  display: inline-block;
  transition: transform 0.15s ease;
}
.star-rating .star.filled {
  color: #f5c518;
  text-shadow: 0 0 12px rgba(245, 197, 24, 0.5);
}
.star-rating .star.empty {
  color: rgba(244, 241, 255, 0.25);
}

.result-headline{
  text-align:center;
  font-weight: 850;
  font-size: 18px;
  margin: 14px 0 6px;
}
.result-body{
  text-align:center;
  color: rgba(244,241,255,.76);
  margin: 0 0 8px;
  line-height: 1.55;
}

/* ===== Loading Overlay ===== */
#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 6, 10, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#loadingOverlay.visible {
  opacity: 1;
  visibility: visible;
}

.loading-content {
  text-align: center;
}

.spinner {
  width: 56px;
  height: 56px;
  border: 4px solid rgba(168, 85, 247, 0.2);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

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

.loading-text {
  color: rgba(244, 241, 255, 0.85);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ===== Footer ===== */
.site-footer{
  padding: 22px 16px 36px;
  color: rgba(244,241,255,.55);
}
.footer-inner{
  max-width: 980px;
  margin: 0 auto;
  text-align:center;
}

/* --- v2.1 fine tweaks --- */
.header-inner{text-align:center;}
.logo{font-size:calc(1em + 4px);}

/* example image inside card */
.example-wrap {
  margin: 16px 0;
  border-radius: 14px;
  overflow: hidden;
}

.example-wrap img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
 
}


/* quick guide slim */
.quick-guide{
  margin:12px 0 18px;
  font-size:0.9em;
  opacity:0.85;
}

/* center lower cards */
.below-section{display:flex;flex-direction:column;align-items:center;}

/* Quick Photo Guide – inverted style */
.quick-guide {
  text-align: center;!important
  margin: 18px 0 22px;
}

.quick-guide-title {
  font-size: 15px;        
  color: #ffffff;
  margin-bottom: 10px;
  opacity: 0.95;
}

.quick-guide-tips {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(244,241,255,.62);
  margin-bottom: 12px;
}

/* ===== Image preview in dropzone ===== */
.dropzone.has-preview {
  padding: 12px;
}

.dropzone img.preview-image {
  max-width: 100%;
  max-height: 180px;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.preview-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 14px;
}

.preview-wrap img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.preview-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}


