/* ========================================
   Bel Ağrısı Rehabilitasyon — Premium Design
   ======================================== */

:root {
    --primary:       #0d9488;
    --primary-light: #ccfbf1;
    --primary-dark:  #0f766e;
    --bg:            #ffffff;
    --bg2:           #f8fafc;
    --bg3:           #f1f5f9;
    --text:          #0f172a;
    --text2:         #475569;
    --text3:         #94a3b8;
    --border:        #e2e8f0;
    --border2:       #f1f5f9;
    --shadow-sm:  0 1px 3px rgba(0,0,0,.06);
    --shadow-md:  0 4px 12px rgba(0,0,0,.08);
    --shadow-lg:  0 12px 32px rgba(0,0,0,.10);
    --radius:    14px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --font: 'Inter', -apple-system, sans-serif;
    --ease: .22s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { font-family:var(--font); background:var(--bg); color:var(--text);
       line-height:1.6; -webkit-font-smoothing:antialiased; }
.container { max-width:920px; margin:0 auto; padding:0 24px; }

/* ════════════════════════════════════════
   WELCOME SCREEN — Cinematic
════════════════════════════════════════ */

.welcome-screen {
    position: fixed; inset: 0;
    background: #050d12;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    z-index: 9999; overflow: hidden;
    transition: opacity .8s cubic-bezier(.4,0,.2,1), transform .8s cubic-bezier(.4,0,.2,1);
}
.welcome-screen.hide {
    opacity: 0; pointer-events: none; transform: scale(1.03);
}

/* ── grid bg ── */
.ws-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(13,148,136,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13,148,136,.07) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}

/* ── orbs ── */
.ws-orb {
    position: absolute; border-radius: 50%;
    filter: blur(90px); pointer-events: none;
}
.orb1 { width:520px; height:520px; background:rgba(13,148,136,.22); top:-140px; right:-120px;
         animation: orbFloat 10s ease-in-out infinite alternate; }
.orb2 { width:380px; height:380px; background:rgba(6,182,212,.14); bottom:-100px; left:-80px;
         animation: orbFloat 13s ease-in-out infinite alternate-reverse; }
.orb3 { width:260px; height:260px; background:rgba(99,102,241,.10); top:45%; left:20%;
         animation: orbFloat 8s ease-in-out infinite alternate; }
@keyframes orbFloat {
    from { transform: translateY(0) scale(1); }
    to   { transform: translateY(-40px) scale(1.06); }
}

/* ── top bar ── */
.ws-topbar {
    position: absolute; top: 0; left: 0; right: 0;
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 36px;
    border-bottom: 1px solid rgba(255,255,255,.04);
    animation: fadeSlideDown .8s .1s both;
}
.ws-logo {
    font-size: 14px; font-weight: 800; letter-spacing: .5px;
    color: #2dd4bf;
}
.ws-version {
    font-size: 11px; color: rgba(255,255,255,.25); letter-spacing: .8px;
}

/* ── main body ── */
.ws-body {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
    padding: 20px 32px;
    max-width: 680px;
}

/* ── eyebrow ── */
.ws-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
    color: rgba(255,255,255,.35);
    margin-bottom: 28px;
    animation: fadeSlideUp .7s .2s both;
}
.ws-dot-live {
    width: 8px; height: 8px; border-radius: 50%;
    background: #2dd4bf;
    box-shadow: 0 0 0 3px rgba(45,212,191,.2);
    animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
    0%,100% { box-shadow: 0 0 0 3px rgba(45,212,191,.2); }
    50%      { box-shadow: 0 0 0 7px rgba(45,212,191,.05); }
}

/* ── greeting ── */
.ws-greeting {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 400; color: rgba(255,255,255,.45);
    letter-spacing: .2px; margin-bottom: 6px;
    animation: fadeSlideUp .7s .35s both;
}

/* ── name ── */
.ws-name {
    display: block;
    font-size: clamp(54px, 11vw, 96px);
    font-weight: 900;
    line-height: .95;
    letter-spacing: -4px;
    margin-bottom: 28px;
    animation: fadeSlideUp .8s .45s both;
}
.ws-name-first {
    display: block;
    color: #ffffff;
}
.ws-name-last {
    display: block;
    background: linear-gradient(135deg, #2dd4bf 0%, #06b6d4 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}
/* underline glow */
.ws-name-last::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: -4px;
    height: 3px; border-radius: 2px;
    background: linear-gradient(90deg, #2dd4bf, #06b6d4, #818cf8);
    opacity: .5;
}

/* ── tagline ── */
.ws-tagline {
    font-size: clamp(15px, 2.2vw, 18px);
    color: rgba(255,255,255,.45); line-height: 1.7;
    margin-bottom: 36px;
    animation: fadeSlideUp .7s .55s both;
}
.ws-tagline-accent {
    color: rgba(255,255,255,.72); font-style: italic;
}

/* ── divider ── */
.ws-divider {
    display: flex; align-items: center; gap: 14px;
    width: 100%; max-width: 420px;
    margin-bottom: 24px;
    animation: fadeIn .7s .65s both;
}
.ws-divider span:not(.ws-divider-text) {
    flex: 1; height: 1px;
    background: rgba(255,255,255,.08);
}
.ws-divider-text {
    font-size: 11px; font-weight: 700; letter-spacing: 1px;
    color: rgba(255,255,255,.25);
    white-space: nowrap;
}

/* ── pills ── */
.ws-pills {
    display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
    margin-bottom: 40px;
    animation: fadeSlideUp .7s .7s both;
}
.ws-pill {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    padding: 9px 18px; border-radius: 30px;
    font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7);
    backdrop-filter: blur(8px);
    transition: .2s ease;
}
.ws-pill:hover { background: rgba(45,212,191,.08); border-color: rgba(45,212,191,.3); color: #fff; }
.ws-pill-icon { font-size: 15px; }

/* ── CTA button ── */
.ws-cta {
    display: inline-flex; align-items: center; gap: 16px;
    position: relative;
    background: transparent;
    border: 1.5px solid rgba(45,212,191,.6);
    color: #fff;
    font-family: var(--font); font-size: 17px; font-weight: 700;
    letter-spacing: -.2px;
    padding: 18px 48px 18px 52px;
    border-radius: 50px; cursor: pointer;
    overflow: hidden;
    transition: border-color .3s ease, transform .25s ease;
    margin-bottom: 20px;
    animation: fadeSlideUp .7s .8s both;
}
/* fill on hover */
.ws-cta::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #0d9488, #0891b2);
    opacity: 0; transition: opacity .35s ease;
}
.ws-cta:hover { border-color: transparent; transform: translateY(-2px); }
.ws-cta:hover::before { opacity: 1; }
.ws-cta:active { transform: translateY(0); }
.ws-cta-text { position: relative; z-index: 1; }
.ws-cta-icon {
    position: relative; z-index: 1;
    display: flex; align-items: center;
    transition: transform .25s ease;
}
.ws-cta:hover .ws-cta-icon { transform: translateX(5px); }

/* ── disclaimer ── */
.ws-disclaimer {
    font-size: 11px; color: rgba(255,255,255,.2);
    letter-spacing: .4px;
    animation: fadeIn .7s 1s both;
}

/* ── bottom bar ── */
.ws-bottombar {
    position: absolute; bottom: 0; left: 0; right: 0;
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 36px;
    border-top: 1px solid rgba(255,255,255,.04);
    font-size: 11px; color: rgba(255,255,255,.18);
    letter-spacing: .5px;
    animation: fadeIn .8s .5s both;
}

/* ── keyframes ── */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; } to { opacity: 1; }
}

/* ════════════════════════════════════════
   MAIN APP
════════════════════════════════════════ */

.main-app { min-height:100vh; }
.hidden { display:none; }

/* ════ HERO ════ */

.hero {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 60%, #14b8a6 100%);
    color: white;
    padding: 44px 0 36px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content:''; position:absolute; top:-60%; right:-15%;
    width:420px; height:420px; border-radius:50%;
    background:rgba(255,255,255,.05);
}
.hero::after {
    content:''; position:absolute; bottom:-40%; left:-8%;
    width:300px; height:300px; border-radius:50%;
    background:rgba(255,255,255,.04);
}
.hero-inner {
    position:relative; z-index:1;
    display:flex; align-items:flex-end; justify-content:space-between; gap:32px;
    flex-wrap: wrap;
}

.hero-badge {
    display:inline-block;
    background:rgba(255,255,255,.15);
    border:1px solid rgba(255,255,255,.2);
    padding:5px 16px; border-radius:20px;
    font-size:13px; font-weight:600; letter-spacing:.4px;
    margin-bottom:14px;
}
.hero-left h1 {
    font-size: clamp(26px,5vw,38px);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 8px;
}
.hero-left h1 span { opacity:.85; }
.hero-sub { font-size:14px; opacity:.8; margin-bottom:16px; }

.patient-info { display:flex; gap:24px; flex-wrap:wrap; }
.pi-item { display:flex; flex-direction:column; gap:1px; }
.pi-label { font-size:11px; opacity:.65; text-transform:uppercase; letter-spacing:.5px; }
.pi-item strong { font-size:15px; font-weight:700; }

.hero-stats {
    display:flex; gap:12px; flex-shrink:0;
}
.stat {
    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.18);
    border-radius:var(--radius-sm);
    padding:14px 22px; text-align:center;
    backdrop-filter:blur(8px);
}
.stat-value { display:block; font-size:30px; font-weight:900; letter-spacing:-2px; line-height:1; margin-bottom:4px; }
.stat-label { font-size:11px; opacity:.7; font-weight:600; text-transform:uppercase; letter-spacing:.5px; }

/* ════ TABS ════ */

.tabs {
    position:sticky; top:0; z-index:100;
    background:rgba(255,255,255,.92);
    backdrop-filter:blur(12px);
    border-bottom:1px solid var(--border);
    box-shadow: 0 1px 0 var(--border);
}
.tabs-inner {
    max-width:920px; margin:0 auto; padding:0 24px;
    display:flex; gap:0;
}
.tab {
    background:none; border:none; cursor:pointer;
    font-family:var(--font); font-size:14px; font-weight:600;
    color:var(--text3); padding:16px 28px;
    border-bottom:2px solid transparent;
    transition:var(--ease); letter-spacing:-.2px;
}
.tab:hover { color:var(--primary); }
.tab.active { color:var(--primary); border-bottom-color:var(--primary); }

/* ════ SECTION INTRO ════ */

.section-intro { margin-bottom:28px; }
.section-intro h2 {
    font-size:26px; font-weight:800; letter-spacing:-.6px; margin-bottom:6px;
}
.section-intro p { font-size:15px; color:var(--text2); }

.tab-content { display:none; padding:36px 0 64px; animation:fadeUp .3s ease both; }
.tab-content.active { display:block; }
@keyframes fadeUp {
    from { opacity:0; transform:translateY(10px); }
    to { opacity:1; transform:translateY(0); }
}

/* ════ WARNING BOX ════ */

.warning-box {
    display:flex; align-items:flex-start; gap:12px;
    background:#fffbeb; border:1px solid #fde68a;
    border-radius:var(--radius); padding:16px 20px;
    margin-bottom:32px; font-size:14px; line-height:1.55;
}
.warning-icon { font-size:20px; flex-shrink:0; margin-top:1px; }
.warning-box p { color:#92400e; }

/* ════ EXERCISE CARDS ════ */

.exercise-card {
    display:flex;
    background:var(--bg);
    border:1px solid var(--border);
    border-radius:var(--radius-lg);
    margin-bottom:24px;
    overflow:hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--ease), transform var(--ease);
}
.exercise-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.ex-stripe { width:6px; flex-shrink:0; }

.ex-inner { flex:1; display:flex; flex-direction:column; }

.ex-header {
    display:flex; align-items:center; gap:16px;
    padding:20px 24px 18px;
    background:var(--bg2);
    border-bottom:1px solid var(--border2);
    flex-wrap:wrap;
}

.ex-num {
    width:42px; height:42px; border-radius:50%;
    color:white; display:flex; align-items:center; justify-content:center;
    font-size:17px; font-weight:800; flex-shrink:0;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.ex-title-block { flex:1; min-width:0; display: flex; flex-direction: column; }
.ex-title-block h2 {
    font-size:18px; font-weight:800; letter-spacing:-.4px;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
    margin-bottom:2px;
}
.ex-meta { font-size:13px; color:var(--text2); font-weight:500; display:block; margin-bottom:5px; }

.ex-alert {
    display: flex; align-items: flex-start; gap: 10px;
    background: #fee2e2; border-left: 4px solid #dc2626;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 13px; color: #991b1b; line-height: 1.5;
}
.ex-alert strong { font-weight: 800; color: #7f1d1d; }
.ex-pain-limit strong { font-weight: 900; }

.ex-tags { display:flex; gap:6px; flex-wrap:wrap; }
.tag {
    font-size:11px; font-weight:700; padding:3px 10px;
    border-radius:20px; letter-spacing:.3px;
}
.tag-green   { background:#dcfce7; color:#15803d; }
.tag-blue    { background:#dbeafe; color:#1d4ed8; }
.tag-amber   { background:#fef3c7; color:#b45309; }
.tag-purple  { background:#ede9fe; color:#6d28d9; }
.tag-pink    { background:#fce7f3; color:#be185d; }
.tag-orange  { background:#ffedd5; color:#c2410c; }
.tag-teal    { background:#ccfbf1; color:#0f766e; }

.ex-body {
    display:grid; grid-template-columns:260px 1fr;
}

.ex-visual {
    display:flex; align-items:center; justify-content:center;
    padding:28px 24px;
    border-right:1px solid var(--border2);
}
.ex-visual svg { width:100%; max-width:240px; height:auto; }

.ex-info { padding:24px 28px; }

.steps-label {
    font-size:11px; font-weight:800; letter-spacing:1px;
    color:var(--primary-dark); margin-bottom:10px;
}

.steps { padding-left:20px; margin-bottom:16px; }
.steps li {
    font-size:14px; line-height:1.75; color:var(--text);
    margin-bottom:4px; padding-left:4px;
}
.steps li::marker { color:var(--primary); font-weight:800; }
.steps li strong { color:var(--text); }

.ex-target {
    background:var(--primary-light);
    border-radius:var(--radius-sm);
    padding:10px 14px;
    font-size:13px; color:var(--primary-dark); line-height:1.5;
}
.ex-target strong { font-weight:800; }

/* ════ TIPS ════ */

.tips-section { margin-top:44px; padding-top:36px; border-top:2px solid var(--border2); }
.tips-section h3 { font-size:20px; font-weight:800; letter-spacing:-.4px; margin-bottom:20px; }
.tips-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.tip {
    display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
    gap:10px;
    padding:24px 18px; background:var(--bg2);
    border:1px solid var(--border2); border-radius:var(--radius);
    transition:var(--ease);
}
.tip:hover { box-shadow:var(--shadow-sm); }
.tip-icon { font-size:26px; flex-shrink:0; }
.tip p { font-size:14px; color:var(--text2); line-height:1.5; font-weight:500; }

/* ════ WEEK TRACKER ════ */

.week-header {
    display:flex; align-items:baseline; gap:14px;
    margin-bottom:24px;
}
.week-header h2 { font-size:26px; font-weight:800; letter-spacing:-.5px; }
.week-dates { font-size:14px; color:var(--text3); font-weight:500; }

.tracker-grid { display:flex; flex-direction:column; gap:14px; }

.tracker-day {
    background:var(--bg);
    border:1px solid var(--border);
    border-radius:var(--radius);
    overflow:hidden;
    transition:box-shadow var(--ease);
}
.tracker-day:hover { box-shadow:var(--shadow-sm); }

.tracker-day.completed {
    border-color:#0d9488;
    box-shadow: 0 0 0 1px #0d9488;
}

.tracker-day-header {
    display:flex; align-items:center; justify-content:space-between;
    padding:16px 20px; cursor:pointer; user-select:none;
    transition:background var(--ease);
}
.tracker-day-header:hover { background:var(--bg2); }

.tracker-day-left { display:flex; align-items:center; gap:14px; }

.tracker-day-num {
    width:38px; height:38px; border-radius:10px;
    background:var(--bg3); display:flex;
    align-items:center; justify-content:center;
    font-size:14px; font-weight:800; color:var(--text2);
    flex-shrink:0; transition:var(--ease);
}
.tracker-day.completed .tracker-day-num { background:var(--primary); color:white; }

.tracker-day-info h4 { font-size:15px; font-weight:700; letter-spacing:-.2px; }
.tracker-day-info span { font-size:12px; color:var(--text3); }

.tracker-day-right { display:flex; align-items:center; gap:12px; }

.tracker-prog-mini {
    width:72px; height:5px; background:var(--bg3); border-radius:3px; overflow:hidden;
}
.tracker-prog-fill {
    height:100%; background:var(--primary); border-radius:3px;
    transition:width .5s cubic-bezier(.4,0,.2,1);
}

.tracker-pct {
    font-size:13px; font-weight:800; color:var(--text2);
    min-width:38px; text-align:right;
}
.tracker-day.completed .tracker-pct { color:var(--primary); }

.tracker-chevron {
    font-size:14px; color:var(--text3);
    transition:transform .2s ease;
}
.tracker-day.open .tracker-chevron { transform:rotate(180deg); }

.tracker-day-body {
    display:none;
    padding:4px 20px 20px;
    border-top:1px solid var(--border2);
}
.tracker-day.open .tracker-day-body { display:block; }

.tracker-ex {
    display:flex; align-items:center; gap:12px;
    padding:11px 0;
    border-bottom:1px solid var(--border2);
}
.tracker-ex:last-of-type { border-bottom:none; }

.tracker-cb {
    width:22px; height:22px; border-radius:6px;
    border:2px solid var(--border); cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    flex-shrink:0; transition:var(--ease); background:var(--bg);
}
.tracker-cb:hover { border-color:var(--primary); }
.tracker-cb.checked { background:var(--primary); border-color:var(--primary); }
.tracker-cb.checked::after { content:'✓'; color:white; font-size:13px; font-weight:800; }

.tracker-ex-name { font-size:14px; font-weight:500; flex:1; }
.tracker-ex.done .tracker-ex-name { text-decoration:line-through; color:var(--text3); }

/* Pain Check */
.pain-check-section {
    background: #fafafa;
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 16px;
    text-align: center;
}
.pain-question {
    font-size: 14px; color: var(--text); margin-bottom: 12px; line-height: 1.5;
}
.pain-question strong { color: var(--primary-dark); }
.pain-yn-btns { display: flex; gap: 10px; margin-bottom: 0; justify-content: center; }
.pain-yn {
    flex: 1; padding: 10px; border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    background: var(--bg); font-family: var(--font);
    font-size: 14px; font-weight: 700; cursor: pointer;
    transition: var(--ease);
}
.pain-yn:hover { border-color: var(--primary); }
.pain-yn.selected-no { background: #dcfce7; border-color: #16a34a; color: #15803d; }
.pain-yn.selected-yes { background: #fee2e2; border-color: #dc2626; color: #b91c1c; }
.pain-yn-btns.answered .pain-yn:not(.selected-no):not(.selected-yes) { opacity: .5; }

.pain-scale-wrap { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border2); }
.pain-scale-wrap.hidden { display: none; }
.pain-scale-label { font-size: 12px; color: var(--text2); font-weight: 600; margin-bottom: 10px; }
.pain-numbers {
    display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
}
.pain-num {
    width: 38px; height: 38px; border-radius: 8px;
    border: 2px solid transparent; font-family: var(--font);
    font-size: 14px; font-weight: 800; cursor: pointer;
    transition: var(--ease); color: var(--text);
}
.pain-num:hover { transform: scale(1.1); border-color: #374151; }
.pain-num.selected { border-color: #374151; transform: scale(1.12); box-shadow: var(--shadow-md); }

.pain-good {
    margin-top: 10px; font-size: 13px; color: #15803d;
    font-weight: 600; background: #dcfce7;
    padding: 8px 12px; border-radius: var(--radius-sm);
}
.pain-score-display {
    margin-top: 10px; font-size: 13px; color: var(--text2);
    font-weight: 500;
}
.pain-score-display strong { color: var(--text); font-size: 15px; }

/* note textarea */
.tracker-note { margin-top:12px; }
.tracker-note textarea {
    width:100%; height:64px;
    border:1px solid var(--border); border-radius:var(--radius-sm);
    padding:10px 14px;
    font-family:var(--font); font-size:13px;
    color:var(--text); resize:vertical;
    transition:var(--ease);
}
.tracker-note textarea:focus {
    outline:none; border-color:var(--primary);
    box-shadow:0 0 0 3px var(--primary-light);
}
.tracker-note textarea::placeholder { color:var(--text3); }

/* ════ PROGRESS RINGS ════ */

.progress-overview {
    display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-bottom:36px;
}
.progress-card {
    background:var(--bg); border:1px solid var(--border);
    border-radius:var(--radius-lg); padding:30px;
    text-align:center; box-shadow:var(--shadow-sm);
}
.progress-card h3 { font-size:16px; font-weight:800; margin-bottom:20px; letter-spacing:-.3px; }

.ring-wrap {
    position:relative; width:120px; height:120px;
    margin:0 auto 14px;
}
.progress-ring { transform:rotate(-90deg); width:120px; height:120px; }
.ring-bg { fill:none; stroke:var(--bg3); stroke-width:9; }
.ring-fill {
    fill:none; stroke:var(--primary); stroke-width:9;
    stroke-linecap:round;
    transition:stroke-dashoffset .8s cubic-bezier(.4,0,.2,1);
}
.ring-text {
    position:absolute; top:50%; left:50%;
    transform:translate(-50%,-50%);
    font-size:22px; font-weight:900; color:var(--primary); letter-spacing:-1px;
}
.ring-detail { font-size:14px; color:var(--text2); font-weight:600; }

/* ════ CHARTS ════ */

.chart-section { margin-bottom:36px; }
.chart-header { display:flex; align-items:baseline; gap:12px; margin-bottom:16px; }
.chart-section h3 { font-size:18px; font-weight:800; letter-spacing:-.4px; }
.chart-header p { font-size:13px; color:var(--text3); }

.pain-chart {
    background:var(--bg); border:1px solid var(--border);
    border-radius:var(--radius); padding:24px;
    min-height:190px; display:flex; align-items:flex-end; gap:6px;
    box-shadow:var(--shadow-sm);
}
.pain-bar-group { flex:1; display:flex; flex-direction:column; align-items:center; gap:6px; }
.pain-bar-wrap { width:100%; height:140px; display:flex; align-items:flex-end; justify-content:center; }
.pain-bar {
    width:65%; max-width:30px; border-radius:5px 5px 0 0;
    transition:height .5s ease; min-height:2px; position:relative;
}
.pain-bar-lbl { font-size:10px; color:var(--text3); font-weight:700; text-align:center; }
.pain-bar-val {
    position:absolute; top:-20px; left:50%; transform:translateX(-50%);
    font-size:11px; font-weight:800; color:var(--text2);
}

.bar-chart {
    background:var(--bg); border:1px solid var(--border);
    border-radius:var(--radius); padding:24px;
    box-shadow:var(--shadow-sm);
}
.bar-row { display:flex; align-items:center; gap:14px; margin-bottom:14px; }
.bar-row:last-child { margin-bottom:0; }
.bar-lbl { font-size:14px; font-weight:700; min-width:68px; }
.bar-track {
    flex:1; height:30px; background:var(--bg3); border-radius:8px; overflow:hidden;
}
.bar-fill {
    height:100%; border-radius:8px;
    display:flex; align-items:center; justify-content:flex-end;
    padding-right:12px; font-size:12px; font-weight:800; color:white;
    transition:width .8s cubic-bezier(.4,0,.2,1);
}
.bar-fill.w1 { background:linear-gradient(90deg,#0d9488,#2dd4bf); }
.bar-fill.w2 { background:linear-gradient(90deg,#3b82f6,#60a5fa); }

/* ════ NOTES ════ */

.notes-section { margin-bottom:32px; }
.notes-section h3 { font-size:18px; font-weight:800; letter-spacing:-.4px; margin-bottom:12px; }
.notes-section textarea {
    width:100%; min-height:120px;
    border:1px solid var(--border); border-radius:var(--radius);
    padding:16px; font-family:var(--font); font-size:14px;
    color:var(--text); resize:vertical; line-height:1.6;
    transition:var(--ease);
}
.notes-section textarea:focus {
    outline:none; border-color:var(--primary);
    box-shadow:0 0 0 3px var(--primary-light);
}
.notes-section textarea::placeholder { color:var(--text3); }

.actions { text-align:center; padding-top:8px; }

/* ════ BUTTONS ════ */

.btn {
    font-family:var(--font); font-size:14px; font-weight:700;
    padding:12px 28px; border:none; border-radius:var(--radius-sm);
    cursor:pointer; transition:var(--ease); letter-spacing:-.2px;
}
.btn-primary {
    background:linear-gradient(135deg,#0d9488,#14b8a6);
    color:white; width:100%; padding:15px;
    font-size:16px; border-radius:var(--radius);
    box-shadow:0 4px 16px rgba(13,148,136,.35);
}
.btn-primary:hover { transform:translateY(-1px); box-shadow:0 8px 24px rgba(13,148,136,.4); }
.btn-danger {
    background:#fee2e2; color:#dc2626;
    border:1px solid #fecaca;
}
.btn-danger:hover { background:#dc2626; color:white; }

/* ════ MODAL ════ */

.modal-overlay {
    position:fixed; inset:0;
    background:rgba(15,23,42,.65);
    backdrop-filter:blur(6px);
    display:flex; align-items:center; justify-content:center;
    z-index:5000; padding:24px;
    opacity:0; visibility:hidden; transition:.3s ease;
}
.modal-overlay.visible { opacity:1; visibility:visible; }

.modal {
    background:white; border-radius:var(--radius-lg);
    padding:40px; width:100%; max-width:420px;
    box-shadow:0 30px 60px rgba(0,0,0,.18);
    transform:translateY(24px); transition:transform .3s ease;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}
.modal-overlay.visible .modal { transform:translateY(0); }

.modal-icon { font-size:44px; margin-bottom:12px; }
.modal h2 { font-size:24px; font-weight:900; letter-spacing:-.5px; margin-bottom:6px; }
.modal p { font-size:14px; color:var(--text2); margin-bottom:28px; }

.form-group { margin-bottom:16px; }
.form-group label { display:block; font-size:12px; font-weight:700; color:var(--text2); margin-bottom:6px; letter-spacing:.3px; text-transform:uppercase; }
.form-group input {
    width:100%; padding:13px 16px;
    border:1px solid var(--border); border-radius:var(--radius-sm);
    font-family:var(--font); font-size:15px; color:var(--text);
    transition:var(--ease);
}
.form-group input:focus {
    outline:none; border-color:var(--primary);
    box-shadow:0 0 0 3px var(--primary-light);
}

/* ════ FOOTER ════ */

footer {
    text-align:center; padding:32px 24px;
    border-top:1px solid var(--border);
}
footer p { font-size:13px; color:var(--text3); }

/* ════ RESPONSIVE ════ */

@media (max-width:680px) {
    .hero-inner { flex-direction:column; align-items:flex-start; gap:20px; }
    .hero-stats { width:100%; }
    .stat { flex:1; padding:12px; }
    .stat-value { font-size:24px; }
    .ex-body { grid-template-columns:1fr; }
    .ex-visual { border-right:none; border-bottom:1px solid var(--border2); }
    .tips-grid { grid-template-columns:1fr; }
    .progress-overview { grid-template-columns:1fr; }
    .tab { padding:14px 16px; font-size:13px; }
    .tracker-prog-mini { display:none; }
    .welcome-features { flex-direction:column; align-items:center; }
    .welcome-title { font-size:clamp(32px,9vw,52px); }
}
@media (max-width:400px) {
    .hero-left h1 { font-size:22px; }
    .tab { padding:12px 12px; font-size:12px; }
}
