:root {
  --primary: #c5a880; /* Elegant champagne/gold clinical accent */
  --primary-hover: #b09168;
  --bg-main: #fcfbfa; /* Warm off-white clinic look */
  --bg-card: #ffffff;
  --text-main: #2c2a29;
  --text-muted: #7e7a77;
  --border: #f0ede9;
  --shadow: 0 4px 20px -2px rgba(197, 168, 128, 0.08);
  --shadow-lg: 0 10px 30px -5px rgba(197, 168, 128, 0.15);
  --radius: 16px;
  --success: #6ba388;
  --warning: #dca368;
  --danger: #c36b6b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

main {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.hero {
  text-align: center;
  margin-bottom: 3.5rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: #1a1918;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Card */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  margin-bottom: 2rem;
}

/* Upload Box */
.upload-zone {
  border: 2px dashed #e5dec9;
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  text-align: center;
  cursor: pointer;
  background-color: #faf9f6;
  transition: all 0.2s;
}

.upload-zone:hover {
  background-color: #f7f5ef;
  border-color: var(--primary);
}

.upload-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.file-input {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: 9999px; /* Pill design */
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #f3f0eb;
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: #eae5dc;
}

/* Loader styling */
.loading-box {
  text-align: center;
  padding: 3rem 0;
}

.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.loading-subtext {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Results Layout */
.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .results-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

/* Image Marking Container */
.face-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  line-height: 0; /* fixes height alignment */
}

.face-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Botox Pin Dots */
.botox-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
  transition: all 0.2s;
}

.botox-dot:hover {
  transform: translate(-50%, -50%) scale(1.4);
  z-index: 20;
}

.botox-dot::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: white;
}

.botox-arrow {
  position: absolute;
  width: 18px;
  height: 18px;
  transform: translate(-100%, -100%); /* Places the tip exactly on the dot */
  pointer-events: none;
  z-index: 9;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}

.arrow-recommended { color: var(--danger); }
.arrow-optional { color: var(--warning); }
.arrow-not_recommended { color: var(--success); }

.dot-recommended {
  background-color: var(--danger);
  animation: pulse-red 1.5s infinite;
}

.dot-optional {
  background-color: var(--warning);
  animation: pulse-yellow 1.5s infinite;
}

.dot-not_recommended {
  background-color: var(--success);
  animation: pulse-green 1.5s infinite;
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(195, 107, 107, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(195, 107, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(195, 107, 107, 0); }
}

@keyframes pulse-yellow {
  0% { box-shadow: 0 0 0 0 rgba(220, 163, 104, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(220, 163, 104, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 163, 104, 0); }
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(107, 163, 136, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(107, 163, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(107, 163, 136, 0); }
}

/* Zone Detail panel */
.score-box {
  text-align: center;
  padding: 1.5rem;
  background-color: #fcfbfa;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.score-num {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.score-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.zone-details {
  background-color: #fbfaf8;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  min-height: 150px;
}

.zone-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.tag-recommended { background-color: #fee2e2; color: var(--danger); }
.tag-optional { background-color: #fef3c7; color: var(--warning); }
.tag-not_recommended { background-color: #d1fae5; color: var(--success); }

/* Disclaimer */
.disclaimer-box {
  background-color: #fafafa;
  border: 1px solid #eee;
  padding: 1.25rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 3rem;
  border-left: 4px solid var(--primary);
}

.hidden {
  display: none !important;
}
