:root {
    --gold: #F5A843;
    --gold-deep: #C97318;
    --gold-light: #FEF3E2;
    --dark: #12121E;
    --dark2: #1C1C2E;
    --dark3: #2A2A3E;
    --slate: #4A4A5A;
    --muted: #8A8A9A;
    --cream: #F9F6F2;
    --white: #fff;
    --shadow: 0 8px 32px rgba(0,0,0,.12);
}

* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color: transparent; }

body { 
    font-family: 'Manrope', sans-serif; 
    background: #0e0e1a; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100dvh; 
    padding: 20px; 
}

.shell { 
    width: 390px; 
    height: 844px; 
    max-width: 100%;
    max-height: 100dvh;
    background: var(--cream); 
    border-radius: 48px; 
    overflow: hidden; 
    box-shadow: 0 60px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); 
    position: relative; 
}
@media (max-width: 480px) {
    body { padding: 0; background: #fff; }
    .shell { width: 100vw; height: 100dvh; border-radius: 0; }
}

.screen { 
    position: absolute;
    inset: 0;
    width: 100%; 
    height: 100%; 
    display: none; 
    overflow-y: auto; 
    -webkit-overflow-scrolling: touch;
    padding-bottom: 90px;
    background: var(--cream);
    box-sizing: border-box;
}
.screen.active { display: flex; flex-direction: column; opacity: 1; pointer-events: auto; }
.screen.active { 
    display: flex !important; 
    animation: fadeIn 0.4s ease forwards; 
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* WELCOME */
#sw { 
    background: linear-gradient(150deg, #E8820A 0%, #F5A843 50%, #FDE8B0 100%); 
    align-items: center; 
    justify-content: space-between; 
    padding: 80px 40px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
#sw::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.4) 0%, transparent 70%);
    opacity: 0.8;
    z-index: 1;
    pointer-events: none;
}
#sw > * { position: relative; z-index: 2; }

.logo-circle {
    width: 140px; height: 140px;
    margin: 0 auto 20px;
    position: relative;
    z-index: 10;
}
.logo-circle img {
    width: 100%; height: 100%;
    object-fit: contain;
}

.logo-block { text-align: center; color:#fff; }
.logo-name { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 56px; font-weight: 800; letter-spacing: -2px; }
.logo-by { font-size: 11px; font-weight: 600; opacity: 0.7; letter-spacing: 3px; text-transform: uppercase; margin-top: 6px; }

.lang-btns { width: 100%; display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 100; }
.lang-btn { 
    width: 100%; padding: 18px; border-radius: 22px; border: none; 
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: 16px; font-weight: 700; 
    cursor: pointer; transition: all 0.3s; position: relative; z-index: 101;
}
.lang-btn.pri { background: #fff; color: var(--gold-deep); box-shadow: var(--shadow); }
.lang-btn.sec { background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); color: #fff; border: 1.5px solid rgba(255,255,255,0.4); }
.lang-btn:active { transform: scale(0.98); }

/* HOME */
.home-top { padding: 52px 24px 16px; }
.greeting { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.home-top h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 26px; font-weight: 800; color: #1a1a2a; margin-top: 4px; }

.quote-card { margin: 0 20px; background: linear-gradient(135deg, #1a1a2e, #2a2a42); border-radius: 28px; padding: 28px 24px; position: relative; overflow: hidden; }
.quote-card::before { content: '"'; position: absolute; font-size: 120px; color: rgba(245,168,67,0.1); top: -20px; left: 10px; }
.qlabel { font-size: 10px; letter-spacing: 2px; color: var(--gold); font-weight: 700; text-transform: uppercase; margin-bottom: 12px; position: relative; }
.qtext { font-size: 16px; color: #fff; font-weight: 500; line-height: 1.6; font-style: italic; position: relative; }
.qsub { font-size: 13px; color: rgba(255,255,255,0.5); display: none; margin-top: 8px; font-style: italic; }
.qauthor { margin-top: 14px; font-size: 12px; color: var(--gold); font-weight: 700; position: relative; }

/* MOMENTS */
.j-section { padding: 22px 20px 0; }
.sec-head { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 17px; font-weight: 800; color: #1a1a2a; }
.sec-sub { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.moments { display: flex; flex-direction: column; gap: 10px; }
.m-card { 
    background: #fff; border-radius: 20px; padding: 16px; display: flex; align-items: center; gap: 14px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.03); cursor: pointer; border: 2px solid transparent; transition: 0.2s; 
}
.m-card.done { border-color: var(--gold); background: var(--gold-light); }
.m-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.m-icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; }
.morning { background: linear-gradient(135deg, #FFE0A3, #F5A843); }
.afternoon { background: linear-gradient(135deg, #FFD580, #E8920A); }
.evening { background: linear-gradient(135deg, #C4B5FD, #7C3AED); }

.m-info { flex: 1; }
.m-title { font-size: 14px; font-weight: 700; color: #1a1a2a; }
.m-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.m-status { 
    width: 26px; height: 26px; border-radius: 50%; border: 2px solid #e0e0e8; 
    display: flex; align-items: center; justify-content: center; transition: 0.3s; 
}
.m-card.done .m-status { background: var(--gold); border-color: var(--gold); }
.m-status svg { width: 14px; height: 14px; stroke: #fff; display: none; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.m-card.done .m-status svg { display: block; }

/* CONTROL SECTION */
.ctrl-section { padding: 20px 20px 0; }
.ctrl-card { background: #fff; border-radius: 24px; padding: 20px; border: 1px solid #eee; }
.ctrl-input { 
    width: 100%; border: none; background: var(--cream); border-radius: 14px; 
    padding: 12px 14px; font-family: inherit; font-size: 14px; resize: none; outline: none; margin-top: 12px;
}

/* PROGRESS DASHBOARD */
#sp { background: var(--cream); }
.prog-top { padding: 52px 24px 20px; }
.week-strip { display: flex; flex-wrap: nowrap; gap: 12px; padding: 10px 20px; overflow-x: auto; scrollbar-width: none; margin-bottom: 24px; -webkit-overflow-scrolling: touch; }
.week-strip::-webkit-scrollbar { display: none; }
.d-dots { display: flex; justify-content: center; gap: 2px; margin-top: 4px; }
.d-pill { 
    flex-shrink: 0; width: 55px; background: #fff; border-radius: 20px; 
    padding: 14px 8px; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.02);
}
.d-pill.today { border: 2px solid var(--gold); background: var(--gold-light); }
.d-name { font-size: 11px; font-weight: 800; color: var(--slate); text-transform: uppercase; }
.d-ico { font-size: 18px; margin: 4px 0; display: block; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: #e0e0e8; display: inline-block; margin: 0 1px; }
.dot.on { background: var(--gold); }

.chart-sec { margin: 0 20px; background: #fff; border-radius: 24px; padding: 24px 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.bar-item { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; width: 100%; }
.bar-lbl { font-size: 13px; font-weight: 700; color: var(--slate); width: 90px; flex-shrink: 0; }
.bar-track { flex: 1; height: 10px; background: #f0f0f5; border-radius: 10px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 10px; transition: width 1s ease; }
.bar-pct { font-size: 12px; font-weight: 800; color: var(--muted); width: 40px; text-align: right; }

.insight-card { margin: 20px; background: var(--dark2); border-radius: 24px; padding: 24px; color: #fff; }
.ic-label { font-size: 11px; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.ic-text { font-size: 15px; line-height: 1.5; font-weight: 500; opacity: 0.95; }
.ic-sub { font-size: 13px; margin-top: 12px; color: var(--muted); font-style: italic; }

#sb { background: var(--dark); color: #fff; text-align: center; }
.breath-top { padding: 60px 24px 20px; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; }
.breath-top h2 { font-size: 32px; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 8px; color: var(--white); text-align: center; }
#breath-sub { color: var(--muted); font-size: 15px; text-align: center; margin-bottom: 20px; line-height: 1.4; }
.orb-wrap { 
    flex: 1; display: flex; align-items: center; justify-content: center; 
    position: relative; width: 100%; min-height: 280px; align-self: center;
}
.orb { 
    width: 180px; height: 180px; border-radius: 50%; 
    background: radial-gradient(circle at 30% 30%, #ffd9a0, var(--gold), var(--gold-deep)); 
    box-shadow: 0 0 80px rgba(245,168,67,0.4); display: flex; align-items: center; justify-content: center; 
    cursor: pointer; z-index: 5;
}
.orb.active { animation: orbBreathe 12s ease-in-out infinite; }
@keyframes orbBreathe {
    0%, 100% { transform: scale(1); }
    33% { transform: scale(1.3); }
    66% { transform: scale(0.9); }
}
.orb-lbl { font-weight: 800; font-size: 14px; text-align: center; color: #fff; }

.timer-wrap { position: relative; width: 76px; height: 76px; margin: 0 auto 30px; }
.t-num { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-weight: 800; font-size: 18px; }
.t-bg { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 5; }
.t-ring { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }

/* PROFILE CARD */
.profile-card { 
    margin: 16px; 
    background: #fff; border: 1.5px solid #f0f0f5; 
    padding: 20px; border-radius: 28px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.p-header { display: flex; align-items: center; gap: 15px; margin-bottom: 12px; }
.p-avatar { 
    width: 50px; height: 50px; background: var(--gold-light); 
    color: var(--gold-deep); border-radius: 15px; 
    display: flex; align-items: center; justify-content: center; 
    font-weight: 800; font-size: 18px;
}
.p-name { font-weight: 800; font-size: 17px; color: var(--dark2); }
.p-role { font-size: 11px; color: var(--gold-deep); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.p-desc { font-size: 13px; line-height: 1.5; color: var(--slate); }
.p-desc small { color: var(--muted); font-size: 11px; display: block; margin-top: 4px; border-top: 1px solid #f9f9f9; padding-top: 4px; }

.cta-btn { 
    margin: 16px 20px 30px; background: linear-gradient(135deg, var(--gold-deep), var(--gold)); 
    border: none; border-radius: 22px; padding: 20px; display: flex; align-items: center; 
    justify-content: space-between; cursor: pointer; box-shadow: 0 12px 30px rgba(245,168,67,0.3); 
}
.cta-title { font-weight: 800; color: #fff; font-size: 15px; }
.cta-sub { color: rgba(255,255,255,0.8); font-size: 11px; margin-top: 2px; }

.nav { 
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 12px 10px 30px; background: rgba(255,255,255,0.92); 
    backdrop-filter: blur(20px); display: flex; border-top: 1px solid rgba(0,0,0,0.05); 
    z-index: 50;
}
.nav-dark { background: rgba(18,18,30,0.95); border-color: rgba(255,255,255,0.08); }
.ni { flex: 1; background: none; border: none; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; color: var(--muted); }
.ni svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; }
.nlbl { font-size: 10px; font-weight: 600; }
.ni.on { color: var(--gold-deep); }
.ni-dark { color: rgba(255,255,255,0.3); }
.ni-dark.on { color: var(--gold); }

/* MODALS */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: none; align-items: flex-end; z-index: 1000; backdrop-filter: blur(4px); }
#emo-modal { align-items: center; justify-content: center; padding: 20px; }
.modal-bg.open { display: flex; }
.modal { width: 100%; max-width: 390px; background: #fff; border-radius: 32px 32px 0 0; padding: 30px 24px; animation: slideUp 0.3s ease; }
.emo-modal { background: var(--dark2); color: #fff; width: 100%; max-width: 380px; border-radius: 32px; padding: 30px 24px; text-align: center; animation: slideUp 0.3s ease; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-handle { width: 40px; height: 5px; background: #ddd; border-radius: 10px; margin: 0 auto 20px; }
.modal-icon { width: 64px; height: 64px; border-radius: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 32px; }
.modal h2 { text-align: center; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 22px; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.m-desc { text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 24px; line-height: 1.5; }
.modal-q { background: var(--gold-light); padding: 16px; border-radius: 18px; margin-bottom: 12px; }
.mq-label { font-size: 10px; font-weight: 800; color: var(--gold-deep); text-transform: uppercase; margin-bottom: 4px; }
.mq-text { font-size: 14px; font-weight: 600; color: #1a1a2a; margin-bottom: 10px; }
.modal-q textarea { width: 100%; border: none; padding: 12px; border-radius: 12px; font-family: inherit; font-size: 13px; outline: none; transition: 0.3s; }
.modal-q textarea:focus { background: #fff; box-shadow: 0 4px 12px rgba(245,168,67,0.1); }
.modal-save { width: 100%; padding: 18px; border-radius: 20px; background: var(--gold); border: none; color: #fff; font-weight: 800; cursor: pointer; margin-top: 10px; }

/* EMOTIONS GRID */
.emo-big-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.emo-big-btn { background: rgba(255,255,255,0.05); border: 1.5px solid rgba(255,255,255,0.1); border-radius: 18px; padding: 16px 8px; cursor: pointer; color: #fff; }
.emo-big-btn.on { border-color: var(--gold); background: rgba(245,168,67,0.2); }
.emo-big-ico { font-size: 28px; display: block; margin-bottom: 4px; }
.emo-big-lbl { font-size: 12px; font-weight: 700; }
.emo-big-lbl small { display: block; opacity: 0.5; font-weight: 400; font-size: 10px; }
.emo-result { margin-top: 20px; background: rgba(245,168,67,0.1); padding: 20px; border-radius: 20px; display: none; }
.emo-result.show { display: block; }

/* BOOKING SCREEN */
#sk { background: var(--white); }
.book-top { padding: 52px 24px 10px; text-align: center; }
.srv-row { display: flex; gap: 10px; padding: 0 20px; margin-top: 15px; }
.srv-btn { flex: 1; padding: 18px 10px; border-radius: 22px; border: 1.5px solid #f0f0f5; background: #fff; font-size: 13px; font-weight: 800; cursor: pointer; transition: 0.3s; color: var(--slate); }
.srv-btn.on { border-color: var(--gold); background: var(--gold-light); color: var(--gold-deep); box-shadow: 0 4px 12px rgba(245,168,67,0.15); }

.cal-sec { padding: 24px 20px 0; }
.days-row { display: flex; gap: 10px; margin-top: 10px; }
.c-day { flex: 1; background: #fff; border-radius: 16px; padding: 14px 8px; text-align: center; border: 1.5px solid #eee; cursor: pointer; transition: 0.2s; }
.c-day.on { border-color: var(--gold); background: var(--gold-light); }
.c-dname { font-size: 10px; font-weight: 800; color: var(--muted); margin-bottom: 4px; }
.c-dnum { font-size: 16px; font-weight: 800; color: var(--dark); }
.c-day.on .c-dname { color: var(--gold-deep); }

.time-sec { padding: 20px 0 0; }
.time-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 20px; }

/* BOOKING PROFILE */
.bk-profile { display: flex; align-items: center; gap: 12px; padding: 20px; background: var(--cream); border-radius: 20px; margin: 20px; }
.bk-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--dark2); display: flex; align-items: center; justify-content: center; color: #fff; }
.bk-avatar svg { width: 32px; height: 32px; stroke: #fff; }
.bk-name { font-size: 16px; font-weight: 700; color: #1a1a2a; }
.bk-title { font-size: 13px; color: var(--muted); line-height: 1.4; }
.bk-badge { display: inline-block; margin-top: 6px; padding: 4px 8px; background: var(--gold-light); color: var(--gold-deep); border-radius: 12px; font-size: 11px; font-weight: 600; }
.t-btn { padding: 14px; background: #fff; border: 1.5px solid #eee; border-radius: 15px; font-weight: 700; font-size: 13px; cursor: pointer; }
.t-btn.on { background: var(--gold); color: #fff; border-color: var(--gold); }
.t-btn.busy { opacity: 0.3; cursor: not-allowed; }
.confirm-btn { margin: 20px; width: calc(100% - 40px); background: var(--dark); color: #fff; padding: 18px; border-radius: 20px; border: none; font-weight: 800; cursor: pointer; }

@media (max-width: 430px) {
    .shell { width: 100%; height: 100dvh; border-radius: 0; }
    body { padding: 0; align-items: flex-start; }
}
/ *   D A R K   M O D E   o v e r r i d e s   * / 
 b o d y . d a r k - t h e m e   . s h e l l   {   b a c k g r o u n d :   v a r ( - - d a r k ) ;   b o x - s h a d o w :   0   6 0 p x   1 2 0 p x   r g b a ( 0 , 0 , 0 , . 8 ) ,   0   0   0   1 p x   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , . 0 4 ) ;   } 
 b o d y . d a r k - t h e m e   . s c r e e n   {   b a c k g r o u n d :   v a r ( - - d a r k ) ;   c o l o r :   # f f f ;   } 
 b o d y . d a r k - t h e m e   . s e c - h e a d ,   b o d y . d a r k - t h e m e   . m - t i t l e ,   b o d y . d a r k - t h e m e   . h o m e - t o p   h 1 ,   b o d y . d a r k - t h e m e   . m - s u b   {   c o l o r :   # f f f ;   } 
 b o d y . d a r k - t h e m e   . m - c a r d   {   b a c k g r o u n d :   v a r ( - - d a r k 2 ) ;   b o r d e r - c o l o r :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 0 5 ) ;   } 
 b o d y . d a r k - t h e m e   . c t r l - c a r d ,   b o d y . d a r k - t h e m e   . p r o f i l e - c a r d   {   b a c k g r o u n d :   v a r ( - - d a r k 2 ) ;   b o r d e r - c o l o r :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 0 5 ) ;   c o l o r :   # c c c ;   } 
 b o d y . d a r k - t h e m e   . c t r l - i n p u t   {   b a c k g r o u n d :   v a r ( - - d a r k ) ;   c o l o r :   # c c c ;   } 
 b o d y . d a r k - t h e m e   . n a v   {   b a c k g r o u n d :   r g b a ( 1 8 , 1 8 , 3 0 , 0 . 9 2 ) ;   b o r d e r - t o p :   1 p x   s o l i d   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 0 5 ) ;   } 
 b o d y . d a r k - t h e m e   . n i   {   c o l o r :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 5 ) ;   } 
 b o d y . d a r k - t h e m e   . n i . o n   {   c o l o r :   v a r ( - - g o l d ) ;   } 
 b o d y . d a r k - t h e m e   . d - p i l l   {   b a c k g r o u n d :   v a r ( - - d a r k 2 ) ;   b o r d e r - c o l o r :   t r a n s p a r e n t ;   } 
 b o d y . d a r k - t h e m e   . c - d a y ,   b o d y . d a r k - t h e m e   . t - b t n   {   b a c k g r o u n d :   v a r ( - - d a r k 2 ) ;   b o r d e r - c o l o r :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 1 ) ;   c o l o r :   # f f f ;   } 
 b o d y . d a r k - t h e m e   . c - d n u m ,   b o d y . d a r k - t h e m e   . b k - n a m e   {   c o l o r :   # f f f ;   } 
 b o d y . d a r k - t h e m e   . c h a r t - s e c   {   b a c k g r o u n d :   v a r ( - - d a r k 2 ) ;   b o x - s h a d o w :   n o n e ;   c o l o r :   # f f f ;   } 
 b o d y . d a r k - t h e m e   . b a r - l b l ,   b o d y . d a r k - t h e m e   . b a r - p c t   {   c o l o r :   # e e e ;   } 
 b o d y . d a r k - t h e m e   . m o d a l   {   b a c k g r o u n d :   v a r ( - - d a r k 2 ) ;   } 
 b o d y . d a r k - t h e m e   . m o d a l   h 2   {   c o l o r :   # f f f ;   } 
 b o d y . d a r k - t h e m e   . m o d a l - q   {   b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 0 5 ) ;   c o l o r : # f f f ;   } 
 b o d y . d a r k - t h e m e   . m q - t e x t   {   c o l o r :   # f f f ;   } 
 b o d y . d a r k - t h e m e   . m o d a l - q   t e x t a r e a   {   b a c k g r o u n d :   v a r ( - - d a r k ) ;   c o l o r :   # f f f ;   } 
 b o d y . d a r k - t h e m e   . s r v - b t n   {   b a c k g r o u n d :   v a r ( - - d a r k 2 ) ;   c o l o r :   # c c c ;   b o r d e r - c o l o r :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 1 ) ;   } 
 b o d y . d a r k - t h e m e   # t h e m e - b t n   {   b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 1 )   ! i m p o r t a n t ;   c o l o r :   # f f f ;   }  
 