/* ========================================
   DERMA GLOW — Premium Skin Analysis
   Design System & Styles
   ======================================== */
:root {
    --color-bg: #0a0a0f;
    --color-bg-elevated: #111118;
    --color-surface: #18181f;
    --color-border: rgba(201, 168, 124, 0.12);
    --color-border-hover: rgba(201, 168, 124, 0.3);
    --color-gold: #c9a87c;
    --color-gold-light: #e8d5b7;
    --color-gold-dark: #8a7045;
    --color-text-primary: #f0ece4;
    --color-text-secondary: rgba(240, 236, 228, 0.55);
    --color-text-tertiary: rgba(240, 236, 228, 0.3);
    --color-accent: #d4a574;
    --font-display: 'Playfair Display', 'Cormorant Garamond', serif;
    --font-body: 'Noto Sans KR', sans-serif;
    --font-mono: 'Cormorant Garamond', serif;
    --radius-sm: 8px; --radius-md: 16px; --radius-lg: 24px; --radius-xl: 32px;
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); background: var(--color-bg); color: var(--color-text-primary); min-height: 100vh; overflow-x: hidden; position: relative; }

/* --- Ambient BG --- */
.ambient-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.25; }
.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(201,168,124,0.3), transparent 70%); top: -200px; right: -100px; animation: orbFloat1 20s ease-in-out infinite; }
.orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(180,140,100,0.2), transparent 70%); bottom: -150px; left: -100px; animation: orbFloat2 25s ease-in-out infinite; }
.orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(232,213,183,0.15), transparent 70%); top: 40%; left: 40%; animation: orbFloat3 18s ease-in-out infinite; }
@keyframes orbFloat1 { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(-80px,60px) scale(1.1)} 66%{transform:translate(40px,-40px) scale(.95)} }
@keyframes orbFloat2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(100px,-80px) scale(1.15)} }
@keyframes orbFloat3 { 0%,100%{transform:translate(0,0)} 25%{transform:translate(-60px,40px)} 75%{transform:translate(60px,-30px)} }

/* --- Pages --- */
.page { display: none; position: relative; z-index: 1; min-height: 100vh; animation: pageFadeIn .8s var(--ease-smooth); }
.page.active { display: block; }
@keyframes pageFadeIn { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeInUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
@keyframes pulse { 0%,100%{opacity:.5} 50%{opacity:1} }

/* --- Header --- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(10,10,15,0.7); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid var(--color-border); }
.header-inner { max-width: 1400px; margin: 0 auto; padding: 0 48px; height: 72px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 14px; cursor: pointer; transition: opacity .3s; }
.logo:hover { opacity: .8; }
.logo-icon { font-size: 24px; color: var(--color-gold); animation: logoGlow 3s ease-in-out infinite; }
@keyframes logoGlow { 0%,100%{text-shadow:0 0 8px rgba(201,168,124,.3)} 50%{text-shadow:0 0 20px rgba(201,168,124,.6)} }
.logo-text { display: flex; flex-direction: column; }
.logo-main { font-family: var(--font-display); font-size: 18px; font-weight: 500; letter-spacing: 3px; color: var(--color-text-primary); }
.logo-sub { font-size: 9px; letter-spacing: 4px; color: var(--color-gold); text-transform: uppercase; margin-top: 1px; }
.nav { display: flex; gap: 36px; }
.nav-link { font-size: 13px; color: var(--color-text-secondary); text-decoration: none; letter-spacing: .5px; padding: 6px 0; position: relative; transition: color .3s; }
.nav-link::after { content:''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--color-gold); transition: width .4s var(--ease-smooth); }
.nav-link:hover,.nav-link.active { color: var(--color-gold-light); }
.nav-link:hover::after,.nav-link.active::after { width: 100%; }

/* --- Hero --- */
.hero { text-align: center; padding: 80px 48px 40px; }
.hero-content { max-width: 700px; margin: 0 auto; }
.hero-eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: 5px; text-transform: uppercase; color: var(--color-gold); margin-bottom: 24px; animation: fadeInUp .8s var(--ease-smooth) .1s both; }
.hero-title { font-family: var(--font-display); font-size: clamp(36px,5vw,56px); font-weight: 400; line-height: 1.3; letter-spacing: -.5px; color: var(--color-text-primary); margin-bottom: 24px; animation: fadeInUp .8s var(--ease-smooth) .2s both; }
.title-accent { font-style: italic; color: var(--color-gold); position: relative; }
.title-accent::after { content:''; position: absolute; bottom: 4px; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg,var(--color-gold),transparent); opacity: .4; }
.hero-desc { font-size: 15px; line-height: 1.8; color: var(--color-text-secondary); font-weight: 300; animation: fadeInUp .8s var(--ease-smooth) .3s both; }

/* --- Upload --- */
.upload-section { padding: 20px 48px 80px; }
.upload-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: center; align-items: stretch; gap: 28px; }
.upload-card { flex: 0 0 220px; cursor: pointer; animation: fadeInUp .8s var(--ease-smooth) both; }
.upload-card:nth-child(1){animation-delay:.4s} .upload-card:nth-child(2){animation-delay:.5s} .upload-card:nth-child(3){animation-delay:.6s}
.card-inner { position: relative; height: 400px; border-radius: var(--radius-lg); border: 1px solid var(--color-border); background: linear-gradient(165deg,rgba(24,24,31,.9),rgba(14,14,20,.95)); overflow: hidden; transition: all .5s var(--ease-smooth); }
.upload-card:hover .card-inner { border-color: var(--color-border-hover); transform: translateY(-8px); box-shadow: 0 24px 64px -16px rgba(201,168,124,.12); }
.upload-card.card-center .card-inner { height: 440px; }
.card-glow { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(ellipse at 50% 0%,rgba(201,168,124,.06),transparent 60%); opacity: 0; transition: opacity .5s; pointer-events: none; }
.upload-card:hover .card-glow { opacity: 1; }
.card-preview { position: absolute; top: 0; left: 0; width: 100%; height: calc(100% - 56px); display: flex; align-items: center; justify-content: center; }
.card-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.card-placeholder { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 20px; }
.placeholder-icon { width: 64px; height: 64px; color: var(--color-gold); opacity: .5; transition: all .4s; }
.upload-card:hover .placeholder-icon { opacity: .9; transform: scale(1.1); }
.placeholder-label { font-size: 18px; font-weight: 500; color: var(--color-text-primary); letter-spacing: 1px; }
.placeholder-hint { font-size: 12px; color: var(--color-text-tertiary); letter-spacing: .5px; text-align: center; transition: color .3s; }
.upload-card:hover .placeholder-hint { color: var(--color-text-secondary); }
.card-footer { position: absolute; bottom: 0; left: 0; width: 100%; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-top: 1px solid var(--color-border); background: rgba(10,10,15,.5); }
.card-number { font-family: var(--font-display); font-size: 14px; color: var(--color-gold); opacity: .6; }
.card-title { font-size: 10px; letter-spacing: 3px; color: var(--color-text-tertiary); }
.upload-card.uploaded .card-placeholder { display: none; }
.upload-card.uploaded .card-inner { border-color: var(--color-gold-dark); }
.analyze-wrapper { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; animation: fadeInUp .8s var(--ease-smooth) .7s both; }
.btn-analyze { position: relative; width: 120px; height: 400px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: linear-gradient(180deg,rgba(201,168,124,.08),rgba(201,168,124,.02)); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 20px; overflow: hidden; transition: all .5s var(--ease-smooth); }
.btn-analyze:hover { border-color: var(--color-gold); background: linear-gradient(180deg,rgba(201,168,124,.15),rgba(201,168,124,.05)); transform: translateY(-8px); box-shadow: 0 24px 64px -16px rgba(201,168,124,.2); }
.btn-text { font-family: var(--font-body); font-size: 16px; font-weight: 500; color: var(--color-gold-light); letter-spacing: 2px; writing-mode: vertical-rl; text-orientation: upright; }
.btn-icon { width: 32px; height: 32px; color: var(--color-gold); transition: transform .4s var(--ease-smooth); }
.btn-icon svg { width: 100%; height: 100%; transform: rotate(90deg); }
.btn-analyze:hover .btn-icon { transform: translateY(4px); }
.btn-shimmer { position: absolute; top: -100%; left: -100%; width: 300%; height: 300%; background: linear-gradient(135deg,transparent 30%,rgba(201,168,124,.06) 50%,transparent 70%); animation: shimmer 4s ease-in-out infinite; pointer-events: none; }
@keyframes shimmer { 0%{transform:translate(-30%,-30%)} 100%{transform:translate(30%,30%)} }
.analyze-hint { font-size: 11px; color: var(--color-text-tertiary); text-align: center; line-height: 1.6; }

/* --- Footer --- */
.footer { border-top: 1px solid var(--color-border); padding: 28px 48px; }
.footer-inner { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-text { font-size: 12px; color: var(--color-text-tertiary); letter-spacing: .5px; }

/* ===================================
   PAGE 2: Analysis
   =================================== */
.btn-back { display: flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 8px 20px; color: var(--color-text-secondary); font-family: var(--font-body); font-size: 13px; cursor: pointer; transition: all .3s; }
.btn-back svg { width: 16px; height: 16px; }
.btn-back:hover { border-color: var(--color-gold); color: var(--color-gold-light); }

/* Scan Overlay */
.scan-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 200; background: rgba(6,6,10,.95); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(20px); opacity: 0; pointer-events: none; transition: opacity .6s var(--ease-smooth); }
.scan-overlay.active { opacity: 1; pointer-events: all; }
.scan-content { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 48px; }
.scan-visual { position: relative; width: 180px; height: 220px; }
.scan-face-outline { position: relative; width: 100%; height: 100%; }
.scan-face-outline svg { width: 100%; height: 100%; }
.scan-ellipse { stroke-dasharray: 6 4; animation: scanRotate 8s linear infinite; }
@keyframes scanRotate { to{stroke-dashoffset:-100} }
.scan-line { position: absolute; top: 10%; left: 10%; width: 80%; height: 3px; background: linear-gradient(90deg,transparent,var(--color-gold),transparent); border-radius: 2px; box-shadow: 0 0 20px rgba(201,168,124,.5); animation: scanMove 2.5s ease-in-out infinite; }
@keyframes scanMove { 0%,100%{top:10%;opacity:.8} 50%{top:85%;opacity:1} }
.scan-particles span { position: absolute; width: 3px; height: 3px; background: var(--color-gold); border-radius: 50%; opacity: 0; animation: particleFly 2s ease-out infinite; }
.scan-particles span:nth-child(1){left:20%;top:30%;animation-delay:0s} .scan-particles span:nth-child(2){left:70%;top:40%;animation-delay:.3s} .scan-particles span:nth-child(3){left:40%;top:60%;animation-delay:.6s} .scan-particles span:nth-child(4){left:60%;top:20%;animation-delay:.9s} .scan-particles span:nth-child(5){left:30%;top:70%;animation-delay:1.2s} .scan-particles span:nth-child(6){left:80%;top:50%;animation-delay:1.5s}
@keyframes particleFly { 0%{opacity:0;transform:scale(0) translateY(0)} 30%{opacity:1;transform:scale(1) translateY(-10px)} 100%{opacity:0;transform:scale(.5) translateY(-40px)} }
.scan-progress-wrap { width: 300px; }
.scan-progress-bar { width: 100%; height: 4px; background: rgba(255,255,255,.06); border-radius: 2px; overflow: hidden; margin-bottom: 16px; }
.scan-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg,var(--color-gold-dark),var(--color-gold),var(--color-gold-light)); border-radius: 2px; transition: width .3s; }
.scan-status { font-size: 13px; color: var(--color-text-secondary); letter-spacing: 1px; animation: pulse 1.5s ease-in-out infinite; }

/* Analysis Section */
.analysis-section { max-width: 1200px; margin: 0 auto; padding: 60px 48px 40px; display: none; }
.analysis-section.visible { display: block; animation: fadeInUp .8s var(--ease-smooth) both; }
.analysis-header { text-align: center; margin-bottom: 48px; }
.analysis-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 5px; color: var(--color-gold); margin-bottom: 16px; }
.analysis-title { font-family: var(--font-display); font-size: clamp(28px,4vw,40px); font-weight: 400; color: var(--color-text-primary); margin-bottom: 12px; }
.analysis-subtitle { font-size: 14px; color: var(--color-text-secondary); font-weight: 300; max-width: 600px; margin: 0 auto; line-height: 1.7; }

/* Photo Panels */
.analysis-panels { display: flex; justify-content: center; gap: 24px; margin-bottom: 48px; }
.analysis-panel { flex: 0 0 280px; opacity: 0; transform: translateY(20px); transition: all .6s var(--ease-smooth); }
.analysis-panel.show { opacity: 1; transform: translateY(0); }
.analysis-panel.panel-main { flex: 0 0 320px; }
.panel-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--color-text-secondary); letter-spacing: .5px; margin-bottom: 12px; }
.panel-label-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-text-tertiary); }
.panel-label-dot.dot-active { background: var(--color-gold); box-shadow: 0 0 8px rgba(201,168,124,.5); }
.panel-photo-wrap { position: relative; border-radius: var(--radius-lg); border: 1px solid var(--color-border); background: var(--color-surface); overflow: hidden; cursor: crosshair; }
.panel-photo { width: 100%; height: 400px; display: flex; align-items: center; justify-content: center; color: var(--color-text-tertiary); font-size: 13px; overflow: hidden; }
.panel-main .panel-photo { height: 440px; }
.panel-photo img { width: 100%; height: 100%; object-fit: cover; }
.magnifier { position: absolute; width: 140px; height: 140px; border-radius: 50%; border: 2px solid var(--color-gold); box-shadow: 0 0 0 4px rgba(201,168,124,.15), 0 8px 32px rgba(0,0,0,.5); background-repeat: no-repeat; pointer-events: none; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .25s var(--ease-smooth); z-index: 20; display: none; }
.magnifier.active { display: block; opacity: 1; transform: scale(1); }

/* Problem Markers */
.markers-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 10; }
.problem-marker { position: absolute; pointer-events: all; cursor: pointer; z-index: 11; }
.marker-dot { width: 24px; height: 24px; border-radius: 50%; background: rgba(220,80,60,.7); border: 2px solid rgba(255,120,100,.9); display: flex; align-items: center; justify-content: center; animation: markerPulse 2s ease-in-out infinite; transition: transform .3s, background .3s; position: relative; }
.marker-dot::after { content:''; position: absolute; width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(255,120,100,.4); animation: markerRipple 2s ease-out infinite; }
.marker-dot-icon { font-size: 10px; color: #fff; font-weight: 700; }
@keyframes markerPulse { 0%,100%{box-shadow:0 0 0 0 rgba(220,80,60,.4)} 50%{box-shadow:0 0 0 8px rgba(220,80,60,0)} }
@keyframes markerRipple { 0%{transform:scale(1);opacity:.6} 100%{transform:scale(2.5);opacity:0} }
.problem-marker:hover .marker-dot { transform: scale(1.3); background: rgba(255,90,70,.9); }
.marker-tooltip { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px); background: rgba(16,16,22,.95); border: 1px solid var(--color-border-hover); border-radius: var(--radius-sm); padding: 12px 16px; min-width: 180px; max-width: 220px; opacity: 0; pointer-events: none; transition: all .3s var(--ease-smooth); backdrop-filter: blur(16px); z-index: 30; }
.marker-tooltip::after { content:''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--color-border-hover); }
.problem-marker:hover .marker-tooltip { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: all; }
.tooltip-title { font-size: 12px; font-weight: 500; color: var(--color-gold-light); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.tooltip-severity { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.severity-high{background:#dc503c} .severity-medium{background:#e8a840} .severity-low{background:#5dba72}
.tooltip-desc { font-size: 11px; color: var(--color-text-secondary); line-height: 1.6; }
.tooltip-zoom { width: 100%; height: 80px; border-radius: 6px; margin-bottom: 8px; background-size: cover; background-position: center; border: 1px solid var(--color-border); }

/* Scores Grid */
.scores-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; margin-bottom: 48px; opacity: 0; transform: translateY(20px); transition: all .6s var(--ease-smooth); }
.scores-grid.show { opacity: 1; transform: translateY(0); }
.score-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 8px; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: linear-gradient(165deg,rgba(24,24,31,.8),rgba(14,14,20,.9)); transition: all .3s; }
.score-tile:hover { border-color: var(--color-border-hover); transform: translateY(-4px); }
.score-tile.tile-overall { border-color: rgba(201,168,124,.25); background: linear-gradient(165deg,rgba(201,168,124,.08),rgba(14,14,20,.9)); }
.tile-ring { position: relative; width: 56px; height: 56px; }
.tile-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tile-progress { transition: stroke-dashoffset 1.5s var(--ease-smooth); }
.tile-value { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-family: var(--font-display); font-size: 16px; color: var(--color-gold-light); }
.tile-value-lg { font-size: 20px; font-weight: 500; }
.tile-label { font-size: 11px; color: var(--color-text-secondary); text-align: center; letter-spacing: .3px; line-height: 1.3; }

/* Detail Section */
.detail-section { margin-bottom: 48px; opacity: 0; transform: translateY(20px); transition: all .6s var(--ease-smooth); }
.detail-section.show { opacity: 1; transform: translateY(0); }
.detail-section-header { margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--color-border); }
.detail-section-title { font-family: var(--font-display); font-size: 24px; font-weight: 400; color: var(--color-text-primary); margin-bottom: 8px; }
.detail-section-sub { font-size: 13px; color: var(--color-text-tertiary); }
.detail-cards { display: flex; flex-direction: column; gap: 16px; }
.detail-card { border-radius: var(--radius-lg); border: 1px solid var(--color-border); background: linear-gradient(165deg,rgba(24,24,31,.7),rgba(14,14,20,.85)); overflow: hidden; transition: all .4s; opacity: 0; transform: translateY(16px); }
.detail-card.show { opacity: 1; transform: translateY(0); }
.detail-card:hover { border-color: var(--color-border-hover); box-shadow: 0 8px 40px -12px rgba(201,168,124,.08); }
.detail-card-header { display: flex; align-items: center; gap: 14px; padding: 20px 24px 0; }
.detail-icon-wrap { width: 40px; height: 40px; border-radius: 12px; background: rgba(201,168,124,.06); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.detail-icon { font-size: 20px; }
.detail-title { font-size: 15px; font-weight: 500; color: var(--color-text-primary); margin-bottom: 2px; }
.detail-score { font-family: var(--font-mono); font-size: 12px; color: var(--color-gold); }
.detail-badge { margin-left: auto; padding: 3px 12px; border-radius: 20px; font-size: 10px; font-weight: 500; letter-spacing: .5px; white-space: nowrap; }
.badge-good { background: rgba(93,186,114,.12); color: #7dda92; border: 1px solid rgba(93,186,114,.2); }
.badge-caution { background: rgba(232,168,64,.12); color: #e8c860; border: 1px solid rgba(232,168,64,.2); }
.badge-warning { background: rgba(220,80,60,.12); color: #e88070; border: 1px solid rgba(220,80,60,.2); }
.detail-bar-wrap { padding: 12px 24px; }
.detail-bar { width: 100%; height: 4px; background: rgba(255,255,255,.06); border-radius: 2px; overflow: hidden; }
.detail-bar-fill { height: 100%; width: 0; background: linear-gradient(90deg,var(--color-gold-dark),var(--color-gold),var(--color-gold-light)); border-radius: 2px; transition: width 1.2s var(--ease-smooth); }
.detail-body { padding: 0 24px 20px; }
.detail-text { font-size: 13px; line-height: 1.8; color: var(--color-text-secondary); font-weight: 300; margin-bottom: 12px; }
.detail-text strong { color: var(--color-text-primary); font-weight: 500; }
.detail-advice { padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(201,168,124,.04); border: 1px solid rgba(201,168,124,.1); }
.advice-label { font-size: 11px; font-weight: 500; color: var(--color-gold); letter-spacing: .5px; display: block; margin-bottom: 6px; }
.detail-advice p { font-size: 12px; line-height: 1.7; color: var(--color-text-secondary); font-weight: 300; }

/* Overall Comment */
.overall-comment-box { padding: 28px; border-radius: var(--radius-lg); border: 1px solid rgba(201,168,124,.2); background: linear-gradient(135deg,rgba(201,168,124,.05),rgba(14,14,20,.9)); margin-top: 24px; opacity: 0; transform: translateY(16px); transition: all .6s var(--ease-smooth); }
.overall-comment-box.show { opacity: 1; transform: translateY(0); }
.comment-box-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.comment-box-icon { font-size: 22px; }
.comment-box-title { font-size: 15px; font-weight: 500; color: var(--color-gold-light); letter-spacing: .5px; }
.comment-box-text { font-size: 13px; line-height: 1.9; color: var(--color-text-secondary); font-weight: 300; margin-bottom: 16px; }
.comment-box-text strong { color: var(--color-text-primary); font-weight: 500; }
.comment-box-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 5px 14px; border-radius: 20px; font-size: 11px; background: rgba(201,168,124,.08); border: 1px solid rgba(201,168,124,.15); color: var(--color-gold-light); transition: all .3s; }
.tag:hover { background: rgba(201,168,124,.15); border-color: var(--color-gold); }

/* Treatment CTA Button */
.treatment-cta { margin-top: 48px; margin-bottom: 20px; opacity: 0; transform: translateY(16px); transition: all .6s var(--ease-smooth); }
.treatment-cta.show { opacity: 1; transform: translateY(0); }
.btn-treatment { position: relative; width: 100%; padding: 28px 36px; border: 1px solid rgba(201,168,124,.25); border-radius: var(--radius-lg); background: linear-gradient(135deg,rgba(201,168,124,.08),rgba(14,14,20,.9)); cursor: pointer; display: flex; align-items: center; gap: 20px; overflow: hidden; transition: all .4s var(--ease-smooth); }
.btn-treatment:hover { border-color: var(--color-gold); box-shadow: 0 16px 48px -12px rgba(201,168,124,.15); transform: translateY(-4px); }
.btn-treatment-icon { font-size: 32px; }
.btn-treatment-text { flex: 1; text-align: left; }
.btn-treatment-main { display: block; font-family: var(--font-body); font-size: 18px; font-weight: 500; color: var(--color-gold-light); letter-spacing: 1px; margin-bottom: 4px; }
.btn-treatment-sub { display: block; font-size: 12px; color: var(--color-text-secondary); font-weight: 300; }
.btn-treatment-arrow { width: 32px; height: 32px; color: var(--color-gold); transition: transform .3s; }
.btn-treatment-arrow svg { width: 100%; height: 100%; }
.btn-treatment:hover .btn-treatment-arrow { transform: translateX(6px); }

/* ===================================
   PAGE 3: Treatment
   =================================== */
.treatment-section { max-width: 1200px; margin: 0 auto; padding: 60px 48px 40px; }
.treatment-header { text-align: center; margin-bottom: 56px; }
.treatment-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 5px; color: var(--color-gold); margin-bottom: 16px; }
.treatment-title { font-family: var(--font-display); font-size: clamp(28px,4vw,40px); font-weight: 400; color: var(--color-text-primary); margin-bottom: 12px; }
.treatment-subtitle { font-size: 14px; color: var(--color-text-secondary); font-weight: 300; max-width: 600px; margin: 0 auto; line-height: 1.7; }

/* Section Label */
.section-label { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 22px; font-weight: 400; color: var(--color-text-primary); margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--color-border); }
.section-label-icon { font-size: 20px; }

/* Symptom Treatment Cards */
.symptom-treatments { margin-bottom: 56px; }
.symptom-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.symptom-card { border-radius: var(--radius-lg); border: 1px solid var(--color-border); background: linear-gradient(165deg,rgba(24,24,31,.7),rgba(14,14,20,.85)); padding: 24px; transition: all .3s; opacity: 0; transform: translateY(16px); }
.symptom-card.show { opacity: 1; transform: translateY(0); }
.symptom-card:hover { border-color: var(--color-border-hover); transform: translateY(-4px); box-shadow: 0 12px 40px -12px rgba(201,168,124,.1); }
.symptom-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.symptom-icon { font-size: 24px; }
.symptom-name { font-size: 15px; font-weight: 500; color: var(--color-text-primary); }
.symptom-severity { margin-left: auto; font-size: 10px; padding: 3px 10px; border-radius: 12px; }
.symptom-treatments-list { list-style: none; margin-bottom: 14px; }
.symptom-treatments-list li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.04); font-size: 13px; color: var(--color-text-secondary); }
.symptom-treatments-list li:last-child { border-bottom: none; }
.treatment-name-col { flex: 1; }
.treatment-price-col { color: var(--color-gold-light); font-family: var(--font-mono); font-size: 14px; white-space: nowrap; margin-left: 12px; }
.per-session { font-size: 10px; color: var(--color-text-tertiary); margin-left: 4px; }

/* Plan Blocks */
.plans-section { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 48px; }
.plan-block { border-radius: var(--radius-lg); border: 1px solid var(--color-border); overflow: hidden; opacity: 0; transform: translateY(20px); transition: all .6s var(--ease-smooth); }
.plan-block.show { opacity: 1; transform: translateY(0); }
.plan-header { padding: 28px 28px 20px; }
.plan-budget-header { background: linear-gradient(135deg,rgba(93,186,114,.06),rgba(14,14,20,.9)); border-bottom: 1px solid rgba(93,186,114,.15); }
.plan-premium-header { background: linear-gradient(135deg,rgba(201,168,124,.08),rgba(14,14,20,.9)); border-bottom: 1px solid rgba(201,168,124,.2); }
.plan-badge { display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: 10px; font-weight: 700; letter-spacing: 2px; background: rgba(93,186,114,.12); color: #7dda92; border: 1px solid rgba(93,186,114,.2); margin-bottom: 12px; }
.plan-badge.badge-premium { background: rgba(201,168,124,.12); color: var(--color-gold-light); border: 1px solid rgba(201,168,124,.25); }
.plan-title { font-family: var(--font-display); font-size: 22px; font-weight: 400; color: var(--color-text-primary); margin-bottom: 8px; }
.plan-desc { font-size: 12px; color: var(--color-text-secondary); line-height: 1.6; font-weight: 300; }

/* Timeline Steps */
.plan-timeline { padding: 0 28px 20px; }
.timeline-step { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.timeline-step:last-child { border-bottom: none; }
.step-order { width: 32px; height: 32px; border-radius: 50%; background: rgba(201,168,124,.08); border: 1px solid rgba(201,168,124,.2); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 14px; color: var(--color-gold); flex-shrink: 0; }
.step-content { flex: 1; }
.step-name { font-size: 14px; font-weight: 500; color: var(--color-text-primary); margin-bottom: 4px; }
.step-detail { font-size: 11px; color: var(--color-text-tertiary); line-height: 1.5; margin-bottom: 6px; }
.step-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.step-duration { font-size: 11px; color: var(--color-text-secondary); display: flex; align-items: center; gap: 4px; }
.step-price { font-family: var(--font-mono); font-size: 14px; color: var(--color-gold-light); margin-left: auto; white-space: nowrap; }

/* Total */
.plan-total { padding: 20px 28px; background: rgba(201,168,124,.04); border-top: 1px solid rgba(201,168,124,.15); display: flex; justify-content: space-between; align-items: center; }
.total-label { font-size: 14px; font-weight: 500; color: var(--color-text-primary); }
.total-amount { font-family: var(--font-display); font-size: 28px; color: var(--color-gold-light); }
.total-vat { font-size: 10px; color: var(--color-text-tertiary); margin-left: 8px; font-family: var(--font-body); }

/* Disclaimer */
.disclaimer-box { padding: 20px 24px; border-radius: var(--radius-md); background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06); margin-bottom: 40px; }
.disclaimer-box p { font-size: 12px; color: var(--color-text-tertiary); line-height: 1.7; }

/* =========================================================================
   PAGE 4: Medical Directory & Services Guide
   ========================================================================= */
.services-hero {
    padding: 70px 48px 30px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.services-hero-content {
    max-width: 860px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--color-gold);
    background: rgba(201,168,124,.1);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(201,168,124,.25);
    margin-bottom: 18px;
    text-transform: uppercase;
}
.services-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.services-subtitle {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* Directory Section */
.directory-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 48px 80px;
    position: relative;
    z-index: 1;
}

/* Controls: Search & Filter Tabs */
.directory-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(12px);
}
.search-box {
    position: relative;
    width: 100%;
}
.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--color-text-tertiary);
}
#dir-search {
    width: 100%;
    padding: 14px 44px 14px 48px;
    background: rgba(10,10,15,.6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-size: 14px;
    font-family: var(--font-body);
    outline: none;
    transition: all .3s ease;
}
#dir-search:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 15px rgba(201,168,124,.2);
}
.search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-tertiary);
    font-size: 14px;
    cursor: pointer;
    display: none;
    padding: 6px;
}
.search-clear:hover { color: var(--color-text-primary); }

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.cat-tab {
    background: rgba(255,255,255,.04);
    border: 1px solid var(--color-border);
    border-radius: 30px;
    color: var(--color-text-secondary);
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cat-tab:hover {
    color: var(--color-text-primary);
    border-color: rgba(201,168,124,.4);
    background: rgba(201,168,124,.08);
}
.cat-tab.active {
    background: linear-gradient(135deg, rgba(201,168,124,.3), rgba(201,168,124,.1));
    border-color: var(--color-gold);
    color: var(--color-gold-light);
    box-shadow: 0 4px 15px rgba(201,168,124,.15);
}
.tab-count {
    background: rgba(0,0,0,.4);
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-tertiary);
}
.cat-tab.active .tab-count {
    color: var(--color-gold-light);
    background: rgba(201,168,124,.25);
}

/* Category Groups */
.dir-category-group {
    margin-bottom: 60px;
}
.group-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.group-icon-title {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.group-icon {
    font-size: 28px;
    background: rgba(201,168,124,.1);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid rgba(201,168,124,.2);
    flex-shrink: 0;
}
.group-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 6px;
}
.group-desc {
    font-size: 13px;
    color: var(--color-text-tertiary);
    line-height: 1.6;
}

/* Directory Grid */
.dir-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}
.dir-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all .35s cubic-bezier(.16,1,.3,1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.dir-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    opacity: 0;
    transition: opacity .35s;
}
.dir-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201,168,124,.4);
    box-shadow: 0 16px 32px rgba(0,0,0,.4), 0 0 20px rgba(201,168,124,.1);
}
.dir-card:hover::before { opacity: 1; }

.dir-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-gold);
    background: rgba(201,168,124,.12);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid rgba(201,168,124,.2);
    margin-bottom: 12px;
}
.dir-card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}
.dir-card-sub {
    font-size: 12px;
    color: var(--color-gold-light);
    margin-bottom: 14px;
    font-weight: 400;
}
.dir-card-desc {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dir-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.dir-tag {
    font-size: 11px;
    padding: 3px 8px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 4px;
    color: var(--color-text-secondary);
}
.dir-indications {
    background: rgba(0,0,0,.25);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,.03);
}
.ind-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-tertiary);
    margin-bottom: 6px;
    text-transform: uppercase;
}
.ind-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ind-list li {
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    position: relative;
    padding-left: 12px;
}
.ind-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-gold);
}
.dir-card-footer {
    border-top: 1px solid rgba(255,255,255,.06);
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.card-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--color-text-tertiary);
}
.card-meta-item span:last-child {
    color: var(--color-text-secondary);
}
.meta-icon {
    font-size: 13px;
    color: var(--color-gold);
}
.dir-card-arrow {
    margin-top: 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-gold);
    text-align: right;
    transition: transform .2s;
}
.dir-card:hover .dir-card-arrow {
    transform: translateX(4px);
    color: var(--color-gold-light);
}

/* =========================================================================
   Python AI Skin Science Lab Styling
   ========================================================================= */
.python-lab-box {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(12px);
}
.python-lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}
.algo-card {
    background: rgba(10,10,15,.6);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: var(--radius-md);
    padding: 20px;
    position: relative;
    transition: border-color .3s;
}
.algo-card:hover {
    border-color: rgba(201,168,124,.4);
}
.algo-num {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--color-gold);
    opacity: .6;
    margin-bottom: 8px;
}
.algo-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}
.algo-desc {
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}
.algo-code {
    background: rgba(0,0,0,.6);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 4px;
    padding: 8px 12px;
    font-family: 'Consolas', 'Fira Code', monospace;
    font-size: 11px;
    color: #79c0ff;
    overflow-x: auto;
}

/* Python Live Terminal Console */
.python-console-box {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.console-header {
    background: #161b22;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #30363d;
}
.console-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Consolas', monospace;
    font-size: 12px;
    color: #c9d1d9;
}
.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.btn-run-python {
    background: linear-gradient(135deg, #238636, #2ea043);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all .2s;
}
.btn-run-python:hover:not(:disabled) {
    background: #2ea043;
    box-shadow: 0 0 15px rgba(46,160,67,.5);
    transform: scale(1.02);
}
.btn-run-python:disabled {
    opacity: .6;
    cursor: not-allowed;
}
.console-body {
    padding: 16px 20px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.8;
    max-height: 220px;
    overflow-y: auto;
}
.console-line {
    margin-bottom: 4px;
    word-break: break-all;
}
.text-gold { color: var(--color-gold-light); }
.text-dim { color: #8b949e; }
.text-white { color: #f0f6fc; }

/* Python Result Metrics Grid */
.python-results-preview {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.results-preview-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-gold-light);
    margin-bottom: 16px;
}
.results-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.metric-card {
    background: rgba(10,10,15,.7);
    border: 1px solid rgba(201,168,124,.2);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.metric-lbl {
    font-size: 11px;
    color: var(--color-text-tertiary);
    margin-bottom: 6px;
}
.metric-val {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text-primary);
}
.metric-val.gold { color: var(--color-gold-light); }
.metric-sub {
    font-size: 10px;
    color: var(--color-text-tertiary);
    margin-top: 4px;
}

.compare-card {
    background: rgba(10,10,15,.6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}
.compare-card h5 {
    font-size: 14px;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}
.compare-img-wrap {
    margin-top: 14px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(201,168,124,.3);
    box-shadow: 0 10px 30px rgba(0,0,0,.6);
}
.compare-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================================================================
   Directory Detail Modal
   ========================================================================= */
.dir-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,.75);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
.dir-modal.active {
    opacity: 1;
    pointer-events: auto;
}
.dir-modal-content {
    background: var(--color-surface);
    border: 1px solid var(--color-gold);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 720px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 36px;
    position: relative;
    box-shadow: 0 24px 60px rgba(0,0,0,.8), 0 0 30px rgba(201,168,124,.2);
    transform: translateY(20px);
    transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.dir-modal.active .dir-modal-content {
    transform: translateY(0);
}
.dir-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color: var(--color-text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
.dir-modal-close:hover {
    background: rgba(201,168,124,.2);
    color: var(--color-gold-light);
    border-color: var(--color-gold);
}

.modal-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.modal-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 500;
    color: var(--color-text-primary);
    margin: 8px 0 4px;
}
.modal-sub {
    font-size: 13px;
    color: var(--color-gold-light);
    margin-bottom: 12px;
}
.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.modal-content-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}
.modal-sec-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}
.modal-text {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.8;
}
.modal-ind-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
}
.modal-ind-list li {
    font-size: 13px;
    color: var(--color-gold-light);
    background: rgba(201,168,124,.06);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(201,168,124,.15);
}
.modal-section-box {
    background: rgba(10,10,15,.6);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.info-row {
    display: flex;
    font-size: 13px;
    line-height: 1.6;
}
.info-label {
    width: 140px;
    flex-shrink: 0;
    color: var(--color-text-tertiary);
    font-weight: 500;
}
.info-val {
    color: var(--color-text-primary);
}
.info-row.highlight-price .info-val {
    color: var(--color-gold-light);
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}
.btn-primary-glow {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: #0a0a0f;
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s;
}
.btn-primary-glow:hover {
    box-shadow: 0 0 20px rgba(201,168,124,.5);
    transform: translateY(-2px);
}
.btn-link-sec {
    background: rgba(255,255,255,.05);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all .3s;
}
.btn-link-sec:hover {
    background: rgba(255,255,255,.1);
    color: var(--color-text-primary);
}

/* --- Visitor Counter --- */
.visitor-counter {
    position: absolute;
    top: 90px;
    right: 5%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    backdrop-filter: blur(8px);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    animation: fadeInDown 0.8s var(--ease-bounce) 0.2s backwards;
}

.visitor-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.visitor-label {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.visitor-value {
    font-size: 1.1rem;
    color: var(--color-gold);
    font-weight: 500;
    font-family: var(--font-mono);
}

@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1024px) {
    .upload-container { flex-wrap: wrap; }
    .upload-card { flex: 0 0 calc(33% - 20px); min-width: 180px; }
    .analyze-wrapper { flex: 0 0 100%; flex-direction: row; margin-top: 20px; }
    .btn-analyze { width: 100%; height: 80px; flex-direction: row; }
    .btn-text { writing-mode: horizontal-tb; }
    .btn-icon svg { transform: rotate(0); }
    .analysis-panels { flex-wrap: wrap; }
    .analysis-panel, .analysis-panel.panel-main { flex: 0 0 calc(50% - 12px); }
    .plans-section { grid-template-columns: 1fr; }
    .dir-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .header-inner { padding: 0 24px; }
    .nav { display: none; }
    .hero { padding: 48px 24px 24px; }
    .upload-section { padding: 20px 24px 60px; }
    .upload-container { flex-direction: column; align-items: center; }
    .upload-card { flex: none; width: 100%; max-width: 300px; }
    .card-inner, .upload-card.card-center .card-inner { height: 320px; }
    .analyze-wrapper { width: 100%; max-width: 300px; }
    .btn-analyze { width: 100%; height: 72px; flex-direction: row; }
    .btn-text { writing-mode: horizontal-tb; }
    .btn-icon svg { transform: rotate(0); }
    .analysis-section, .treatment-section, .directory-section { padding: 40px 24px 20px; }
    .analysis-panels { flex-direction: column; align-items: center; }
    .analysis-panel, .analysis-panel.panel-main { flex: none; width: 100%; max-width: 340px; }
    .panel-photo, .panel-main .panel-photo { height: 320px; }
    .scores-grid { grid-template-columns: repeat(3, 1fr); }
    .symptom-cards { grid-template-columns: 1fr; }
    .plans-section { grid-template-columns: 1fr; }
    .btn-treatment { padding: 20px 24px; }
    .dir-grid { grid-template-columns: 1fr; }
    .dir-modal-content { padding: 24px 18px; }
    .info-row { flex-direction: column; }
    .info-label { width: 100%; margin-bottom: 2px; }
    .modal-actions { flex-direction: column; }
}

