/* MecaGrossesse — Light Industrial Theme */

:root {
    --orange:        #FF6600;
    --orange-light:  #FF8533;
    --orange-glow:   rgba(255, 102, 0, 0.12);
    --gold:          #CC8800;

    --bg:            #F0EDE8;   /* béton clair */
    --bg2:           #FFFFFF;
    --bg3:           #E8E4DD;
    --bg4:           #D2CCC4;
    --bg5:           #C4BDB4;

    --text:          #1A1714;
    --text-2:        #3D3830;
    --text-muted:    #7A736A;

    --success:       #1E7A3C;
    --error:         #C0392B;

    --header-h:      56px;
    --nav-h:         64px;
    --radius:        14px;
    --shadow:        0 2px 12px rgba(0,0,0,0.08);
    --shadow-md:     0 4px 24px rgba(0,0,0,0.12);

    --safe-top:    env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }

body {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ─── AUTH PAGES ─────────────────────────────── */

.auth-page {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    padding: 24px 16px 48px;
    overflow-x: hidden;
    background: var(--bg);
}

.auth-container {
    width: 100%;
    max-width: 440px;
    z-index: 1;
    padding-top: 20px;
}

.auth-container--wide { max-width: 640px; }

.logo-block {
    text-align: center;
    margin-bottom: 32px;
}

.logo-icon {
    font-size: 52px;
    display: inline-block;
    animation: spin 10s linear infinite;
}

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

.logo-title {
    font-family: 'Orbitron', monospace;
    font-size: 28px;
    font-weight: 900;
    color: var(--text);
    letter-spacing: 2px;
    line-height: 1;
    margin-top: 10px;
}

.logo-title span { color: var(--orange); }

.logo-tagline {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 6px;
}

.auth-form {
    background: var(--bg2);
    border: 1px solid var(--bg4);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-md);
}

.form-section-title {
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    color: var(--orange);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bg3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.required { color: var(--orange); }

.form-group input,
.form-group select {
    width: 100%;
    background: var(--bg);
    border: 1.5px solid var(--bg4);
    border-radius: 8px;
    color: var(--text);
    padding: 10px 14px;
    font-size: 15px;
    font-family: 'Rajdhani', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-glow);
}

.form-group input::placeholder { color: var(--bg5); }

.form-group small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(232,85,0,0.3);
    margin-top: 8px;
}

.btn-primary:hover  { background: var(--orange-light); box-shadow: 0 6px 20px rgba(232,85,0,0.4); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-danger {
    display: block;
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--error);
    border: 1.5px solid var(--error);
    border-radius: 10px;
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
    margin-top: 8px;
}

.btn-danger:hover { background: rgba(192,57,43,0.08); }

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.auth-switch a { color: var(--orange); text-decoration: none; font-weight: 700; }

.alert {
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 14px;
}

.alert-error {
    background: rgba(192,57,43,0.08);
    border: 1.5px solid rgba(192,57,43,0.25);
    color: var(--error);
}

.alert-success {
    background: rgba(30,122,60,0.08);
    border: 1.5px solid rgba(30,122,60,0.25);
    color: var(--success);
}

.week-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--orange-glow);
    border: 1.5px solid rgba(232,85,0,0.25);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 14px;
}

.week-badge {
    background: var(--orange);
    color: #fff;
    border-radius: 6px;
    padding: 3px 10px;
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

/* Gear background auth */
.bg-gears { position: fixed; top:0; left:0; right:0; bottom:0; pointer-events:none; z-index:0; overflow:hidden; }
.gear { position:absolute; font-size:160px; opacity:0.04; animation: spin linear infinite; color: var(--orange); }
.gear-1 { top:-40px; right:-40px; animation-duration:30s; }
.gear-2 { bottom:20%; left:-60px; animation-duration:20s; animation-direction:reverse; font-size:200px; }
.gear-3 { bottom:-60px; right:20%; animation-duration:45s; font-size:120px; }

/* ─── APP PAGES ──────────────────────────────── */

.app-page {
    padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 8px);
}

/* Header */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(240, 237, 232, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1.5px solid var(--bg4);
    height: var(--header-h);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 16px;
}

.header-logo {
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    font-weight: 900;
    color: var(--text);
    letter-spacing: 1px;
}

.header-logo span { color: var(--orange); }

.header-back {
    color: var(--orange);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
}

.header-title {
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.5px;
}

.nav-link {
    font-size: 20px;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.nav-link:hover { background: var(--bg3); }
.header-nav { display:flex; gap:4px; }

/* Welcome banner */
.welcome-banner {
    background: linear-gradient(135deg, var(--orange-glow), transparent);
    border-bottom: 1.5px solid rgba(232,85,0,0.2);
    padding: 12px 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--text-2);
}

.close-banner {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 0 4px;
    flex-shrink: 0;
}

/* Main */
.app-main {
    padding: 16px 16px 24px;
    max-width: 500px;
    margin: 0 auto;
}

/* Top info block */
.top-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding: 16px 20px;
    background: var(--orange);
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(232,85,0,0.25);
}

.baby-name {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.week-label {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.week-number {
    font-family: 'Orbitron', monospace;
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.trimester-badge {
    background: rgba(255,255,255,0.25);
    color: #fff;
    font-family: 'Orbitron', monospace;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-align: center;
    margin-top: 4px;
}

/* Progress bar */
.progress-section { margin-bottom: 14px; }

.progress-bar {
    height: 8px;
    background: var(--bg3);
    border-radius: 4px;
    overflow: visible;
    position: relative;
    border: 1px solid var(--bg4);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--orange), var(--orange-light));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-flame {
    position: absolute;
    top: -10px;
    transform: translateX(-50%);
    font-size: 18px;
    transition: left 0.5s ease;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Week scroll */
.week-scroll-container {
    overflow-x: auto;
    margin-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.week-scroll-container::-webkit-scrollbar { display: none; }

.week-scroll {
    display: flex;
    gap: 4px;
    padding: 4px 0;
    width: max-content;
}

.week-dot {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg2);
    border: 1.5px solid var(--bg4);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
}

.week-dot:hover { background: var(--bg3); color: var(--text); border-color: var(--bg5); }

.week-dot.active {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(232,85,0,0.35);
}

.week-dot.today:not(.active) {
    border-color: var(--orange);
    color: var(--orange);
}

.semaines-sublabel {
    font-size: 10px;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 12px;
    font-weight: 700;
}

/* ─── CAROUSEL ───────────────────────────────── */

.carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
    position: relative;
    overflow: hidden;
}

.carousel-wrapper--full {
    padding: 0 8px;
    justify-content: center;
    overflow: visible;
}

.carousel-arrow {
    background: var(--bg2);
    border: 1.5px solid var(--bg4);
    color: var(--text);
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.carousel-arrow:hover:not(:disabled) { background: var(--orange); border-color: var(--orange); color: #fff; }
.carousel-arrow:disabled { opacity: 0.3; cursor: default; }

.carousel-track {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
    overflow: hidden;
}

.carousel-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    transition: transform 0.3s, opacity 0.3s;
    cursor: pointer;
}

.carousel-item.active { cursor: default; }

.carousel-item.past,
.carousel-item.future {
    opacity: 0.45;
    transform: scale(0.72);
}

/* ─── PART VISUAL ────────────────────────────── */

.part-visual {
    display: flex;
    justify-content: center;
}

.part-icon-bg {
    width: 90px;
    height: 90px;
    background: var(--bg2);
    border: 2px solid var(--bg4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow);
}

.part-icon-bg--active {
    width: 160px !important;
    height: 160px !important;
    border-color: var(--orange) !important;
    box-shadow: 0 0 0 4px var(--orange-glow), var(--shadow-md) !important;
    background: var(--bg2) !important;
}

.part-icon-bg--side {
    width: 80px;
    height: 80px;
    background: var(--bg2);
    border-color: var(--bg4);
}

.part-icon-bg--main {
    width: 200px;
    height: 200px;
    border-color: var(--orange);
    box-shadow: 0 0 0 4px var(--orange-glow), var(--shadow-md);
    background: var(--bg2);
}

/* Photos réelles */
.part-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.part-photo--active { padding: 10px; }
.part-photo--side   { padding: 8px; }

/* Fallback SVG */
.part-svg-fallback {
    width: 55%;
    height: 55%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.part-svg-fallback svg { width: 100%; height: 100%; }

.part-svg-container { width: 55%; height: 55%; }
.part-svg-container svg { width: 100%; height: 100%; }

.side-item .part-icon-bg { width: 80px; height: 80px; }
.main-item .part-icon-bg {
    width: 200px;
    height: 200px;
    border-color: var(--orange);
    box-shadow: 0 0 0 4px var(--orange-glow), var(--shadow-md);
}

.part-name-active {
    font-size: 12px;
    font-weight: 700;
    color: var(--orange);
    text-align: center;
    max-width: 160px;
    line-height: 1.2;
}

/* ─── PART DETAILS CARD ──────────────────────── */

.part-details {
    background: var(--bg2);
    border: 1.5px solid var(--bg4);
    border-radius: var(--radius);
    padding: 18px;
    margin: 12px 0;
    box-shadow: var(--shadow);
}

.part-details__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 8px;
}

.part-full-name {
    font-family: 'Orbitron', monospace;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.part-category {
    background: var(--orange-glow);
    border: 1.5px solid rgba(232,85,0,0.25);
    color: var(--orange);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    font-weight: 700;
    flex-shrink: 0;
}

/* Measurements */
.measurements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.measurements-grid--semaine { margin: 16px 0; }

.measurement-card {
    background: var(--bg);
    border-radius: 10px;
    padding: 16px;
    border: 1.5px solid var(--bg4);
}

.measurement-value {
    font-family: 'Orbitron', monospace;
    font-size: 26px;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
    margin-bottom: 6px;
}

.unit {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 2px;
}

.measurement-label {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.3;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Fun fact */
.fun-fact-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #FFFBF0;
    border: 1.5px solid #F0DC8A;
    border-radius: 10px;
    padding: 14px;
    margin-top: 8px;
}

.fun-fact-icon { font-size: 20px; flex-shrink: 0; }

.fun-fact-text {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.45;
    font-style: italic;
    font-weight: 600;
}

/* ─── COMPARISON DROPDOWN ────────────────────── */

.comparison-section { margin: 8px 0; }

.comparison-toggle {
    width: 100%;
    background: var(--orange);
    border: none;
    color: #fff;
    padding: 13px 16px;
    border-radius: 10px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 10px rgba(232,85,0,0.25);
    transition: background 0.2s;
}

.comparison-toggle:hover { background: var(--orange-light); }
.toggle-arrow { font-size: 12px; }

.comparison-list {
    background: var(--bg2);
    border: 1.5px solid var(--bg4);
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
}

.comparison-row {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--bg3);
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    transition: background 0.15s;
    align-items: center;
    font-size: 13px;
}

.comparison-row:hover { background: var(--bg); }
.comparison-row:last-child { border-bottom: none; }

.comparison-row--current {
    background: var(--orange-glow) !important;
    border-left: 3px solid var(--orange);
}

.comparison-row--today { font-weight: 700; }

.comp-week {
    font-family: 'Orbitron', monospace;
    font-size: 10px;
    color: var(--orange);
    font-weight: 700;
}

.comp-part { color: var(--text); }
.comp-size { color: var(--text-muted); font-size: 12px; white-space: nowrap; }

/* ─── COUNTDOWN ──────────────────────────────── */

.countdown-section {
    margin: 12px 0;
    background: var(--bg2);
    border: 1.5px solid var(--bg4);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.countdown-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 8px;
    flex-wrap: wrap;
}

.countdown-item { text-align: center; }

.countdown-val {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.countdown-lbl {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
    font-weight: 600;
}

.countdown-sep { color: var(--bg4); font-size: 24px; }

/* ─── BOTTOM NAV ─────────────────────────────── */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--nav-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1.5px solid var(--bg4);
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    padding-top: 8px;
    padding-left: 8px;
    padding-right: 8px;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}

.bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: var(--text-muted);
    flex: 1;
    padding: 6px 4px;
    border-radius: 10px;
    transition: color 0.2s;
}

.bottom-nav__item.active { color: var(--orange); }
.bottom-nav__item:hover  { color: var(--text); }

.bnav-icon  { font-size: 20px; }
.bnav-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* ─── SEMAINES PAGE ──────────────────────────── */

.semaines-main { padding-top: 12px; }

.semaine-part-title {
    font-family: 'Orbitron', monospace;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin: 16px 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.share-icon {
    font-size: 14px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    padding: 4px;
    color: var(--orange);
}

.share-icon:hover { opacity: 1; }

.current-week-badge {
    text-align: center;
    font-size: 13px;
    color: var(--orange);
    font-weight: 700;
    margin: 8px 0;
    padding: 6px 14px;
    background: var(--orange-glow);
    border-radius: 6px;
    border: 1.5px solid rgba(232,85,0,0.2);
}

/* ─── GARAGE PAGE ────────────────────────────── */

.garage-main { padding-top: 16px; }

.garage-intro {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 20px;
    padding: 0 8px;
    font-weight: 600;
}

.garage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

@media (min-width: 400px) { .garage-grid { grid-template-columns: repeat(4, 1fr); } }

.garage-card {
    background: var(--bg2);
    border: 1.5px solid var(--bg4);
    border-radius: 10px;
    padding: 10px 6px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
    position: relative;
    display: block;
    box-shadow: var(--shadow);
}

.garage-card:hover { border-color: var(--orange); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.garage-card--current {
    border-color: var(--orange);
    background: var(--orange-glow);
    box-shadow: 0 0 0 2px var(--orange-glow), var(--shadow-md);
}

.garage-card--past { opacity: 0.55; }

.garage-card__week {
    font-family: 'Orbitron', monospace;
    font-size: 9px;
    color: var(--orange);
    font-weight: 700;
    margin-bottom: 6px;
}

.garage-card__svg { width: 40px; height: 40px; margin: 0 auto 6px; }
.garage-card__svg svg { width: 100%; height: 100%; }
.garage-card__img { width: 64px; height: 64px; margin: 0 auto 6px; overflow: hidden; border-radius: 6px; }
.garage-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.garage-card__name {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.2;
    margin-bottom: 2px;
    font-weight: 600;
}

.garage-card__size {
    font-family: 'Orbitron', monospace;
    font-size: 9px;
    color: var(--text);
    font-weight: 700;
}

.garage-card__current-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--orange);
    color: #fff;
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    white-space: nowrap;
}

/* ─── PROFIL PAGE ────────────────────────────── */

.profil-main { padding-top: 20px; }

.profil-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 18px;
    background: var(--bg2);
    border: 1.5px solid var(--bg4);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.profil-avatar {
    width: 60px;
    height: 60px;
    background: var(--orange-glow);
    border: 2px solid var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    animation: spin 10s linear infinite;
    flex-shrink: 0;
}

.profil-username {
    font-family: 'Orbitron', monospace;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.profil-email { font-size: 13px; color: var(--text-muted); margin-top: 4px; font-weight: 600; }

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg2);
    border: 1.5px solid var(--bg4);
    border-radius: 10px;
    padding: 14px 8px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-val {
    font-family: 'Orbitron', monospace;
    font-size: 17px;
    font-weight: 700;
    color: var(--orange);
}

.stat-lbl {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    font-weight: 700;
}

.profil-form { margin-bottom: 20px; }

.danger-zone {
    background: rgba(192,57,43,0.04);
    border: 1.5px solid rgba(192,57,43,0.15);
    border-radius: var(--radius);
    padding: 16px;
}

/* Responsive */
@media (max-width: 360px) {
    .week-number { font-size: 36px; }
    .measurement-value { font-size: 20px; }
    .logo-title { font-size: 22px; }
}
