/* Mobile-first glass UI for the personalized fasting assistant. */
:root { --fasting-lime: #c8ff00; --fasting-blue: #75b9ff; --fasting-purple: #9378ff; --fasting-orange: #ffad32; --fasting-panel: rgba(11, 24, 34, .82); }
.fasting-screen { width: min(100%, 980px); margin: 0 auto; padding: 18px 16px calc(32px + env(safe-area-inset-bottom)); color: #fff; }
.fasting-home-widget, .fasting-meals-widget, .fasting-result, .fasting-active-card, .fasting-history-card, .fasting-notification-card, .fasting-profile-summary, .fasting-empty-state, .fasting-modal { position: relative; overflow: hidden; border: 1px solid rgba(160, 210, 235, .16); border-radius: 24px; background: linear-gradient(135deg, rgba(25, 43, 55, .9), rgba(8, 17, 26, .78)); box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 18px 40px rgba(0,0,0,.2); -webkit-backdrop-filter: blur(22px) saturate(135%); backdrop-filter: blur(22px) saturate(135%); }
.fasting-home-widget::before, .fasting-meals-widget::before, .fasting-active-card::before, .fasting-result::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 90% 0, rgba(157,252,84,.18), transparent 42%), linear-gradient(120deg, rgba(255,255,255,.06), transparent 38%); }
.fasting-home-widget { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; margin: 0 0 18px; color: #fff; }
.fasting-home-widget h2, .fasting-meals-widget h3 { margin: 3px 0; font-size: 18px; font-weight: 900; }
.fasting-home-widget p, .fasting-muted { margin: 5px 0; color: #aab9c5; font-size: 13px; line-height: 1.5; }
.fasting-home-copy { position: relative; z-index: 1; min-width: 0; }
.fasting-home-widget .fasting-home-subtitle { margin: 6px 0 0; color: #d7e2e7; font-size: 14px; font-weight: 700; }
.fasting-home-widget .fasting-home-slogan-kicker { margin: 0 0 7px; color: var(--fasting-lime); font-size: 12px; font-weight: 800; letter-spacing: 0; line-height: 1.4; text-transform: none; }
.fasting-home-warning { border-color: rgba(255, 173, 50, .42); }
.fasting-kicker { position: relative; z-index: 1; display: block; color: var(--fasting-lime); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.fasting-widget-main { position: relative; z-index: 1; display: grid; gap: 3px; min-width: 0; }
.fasting-widget-main strong { font-size: 25px; }
.fasting-widget-main span:not(.fasting-kicker) { color: #dbe8ed; font-size: 13px; }
.fasting-widget-main small { color: #aab9c5; font-size: 12px; }
.fasting-cta, .fasting-link, .fasting-outline-button { position: relative; z-index: 1; min-height: 44px; border-radius: 14px; padding: 10px 13px; font-size: 13px; font-weight: 800; }
.fasting-cta { background: linear-gradient(135deg, var(--fasting-orange), #ff8a00); color: #121820; box-shadow: 0 10px 24px rgba(255,138,0,.18); }
.fasting-link { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--fasting-lime); }
.fasting-link:hover, .fasting-outline-button:hover { background: rgba(255,255,255,.08); }
.fasting-meals-widget { padding: 18px; margin: 0 0 18px; }
.fasting-section-head, .fasting-page-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fasting-page-head { justify-content: flex-start; margin-bottom: 18px; }
.fasting-page-head h2 { margin: 2px 0 0; font-size: clamp(21px, 6vw, 30px); font-weight: 900; }
.fasting-meal-summary, .fasting-recommendation-grid, .fasting-detail-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.fasting-meal-summary div, .fasting-recommendation-grid div, .fasting-detail-grid div { padding: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(255,255,255,.045); }
.fasting-meal-summary small, .fasting-recommendation-grid small, .fasting-detail-grid small { display: block; color: #9fb0bc; font-size: 11px; }
.fasting-meal-summary strong, .fasting-recommendation-grid b, .fasting-detail-grid b { display: block; margin-top: 4px; color: #fff; font-size: 14px; overflow-wrap: anywhere; }
.fasting-widget-detail { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px 16px; color: #aab9c5; font-size: 12px; }
.fasting-progress { position: relative; z-index: 1; height: 7px; margin: 16px 0 10px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.fasting-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--fasting-purple), var(--fasting-blue), var(--fasting-lime)); transition: width .25s ease; }
.fasting-outline-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin-top: 12px; border: 1px solid rgba(200,255,0,.28); color: var(--fasting-lime); background: rgba(200,255,0,.06); }
.fasting-danger-button { border-color: rgba(255,120,120,.3); color: #ffb5b5; background: rgba(255,80,80,.05); }
.fasting-profile-summary { display: grid; gap: 5px; padding: 15px 16px; margin-bottom: 16px; color: #d7e3e9; font-size: 13px; }
.fasting-profile-summary strong { color: var(--fasting-lime); font-size: 12px; }
.fasting-profile-summary small { color: #9fb0bc; line-height: 1.45; }
.fasting-intro { position: relative; z-index: 1; max-width: 720px; margin: 0 0 16px; color: #b9c6ce; font-size: 14px; line-height: 1.55; }
.fasting-form { position: relative; z-index: 1; display: grid; gap: 14px; }
.fasting-form fieldset { min-width: 0; margin: 0; padding: 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; background: rgba(255,255,255,.035); }
.fasting-form legend { max-width: 100%; padding: 0 6px; color: #fff; font-size: 15px; font-weight: 800; line-height: 1.4; }
.fasting-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.fasting-choice-grid-inline { margin: 0; }
.fasting-choice { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 9px 10px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: rgba(255,255,255,.035); color: #dbe8ed; font-size: 13px; line-height: 1.35; cursor: pointer; }
.fasting-choice:has(input:checked) { border-color: rgba(200,255,0,.4); background: rgba(200,255,0,.09); color: #fff; }
.fasting-choice input { width: 18px; height: 18px; accent-color: var(--fasting-lime); flex: 0 0 auto; }
.fasting-field { display: grid; gap: 6px; margin-top: 12px; color: #aab9c5; font-size: 12px; }
.fasting-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fasting-label { display: block; margin-top: 14px; color: #aab9c5; font-size: 12px; }
.fasting-form textarea { min-height: 72px; width: 100%; margin-top: 10px; resize: vertical; }
.fasting-form .ng-input { min-width: 0; }
.fasting-submit { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; }
.fasting-loading { display: flex; align-items: center; gap: 10px; padding: 18px; color: #dbe8ed; }
.fasting-result { padding: 18px; }
.fasting-result h3, .fasting-safety-result h3 { position: relative; z-index: 1; margin: 7px 0; font-size: 20px; font-weight: 900; }
.fasting-result p { position: relative; z-index: 1; color: #d1dde2; font-size: 13px; line-height: 1.55; }
.fasting-safety-result { border-color: rgba(255,173,50,.45); }
.fasting-safety-result > i, .fasting-empty-state > i { position: relative; z-index: 1; color: var(--fasting-orange); font-size: 28px; }
.fasting-recommendation { border-color: rgba(147,120,255,.45); }
.fasting-big-protocol { position: relative; z-index: 1; display: block; margin: 8px 0 15px; color: var(--fasting-lime); font-size: clamp(34px, 10vw, 54px); line-height: 1; }
.fasting-active-card { padding: 22px 18px; text-align: center; border-color: rgba(117,185,255,.36); }
.fasting-active-card > * { position: relative; z-index: 1; }
.fasting-active-card > strong { display: block; margin-top: 5px; font-size: 31px; }
.fasting-active-card > p { margin: 6px 0; color: #c5d4db; }
.fasting-active-card.is-complete { border-color: rgba(200,255,0,.42); }
.fasting-countdown { margin: 20px 0 0; color: #fff; font-size: clamp(38px, 12vw, 66px); font-variant-numeric: tabular-nums; font-weight: 900; letter-spacing: -.04em; }
.fasting-detail-grid { text-align: left; }
.fasting-detail-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 6px; margin-top: 10px; }
.fasting-detail-actions .fasting-outline-button { flex: 1 1 145px; }
.fasting-history-card, .fasting-notification-card { padding: 18px; margin-top: 16px; }
.fasting-history-card h3, .fasting-notification-card h3 { margin: 0; font-size: 17px; font-weight: 900; }
.fasting-history-list { position: relative; z-index: 1; margin-top: 12px; }
.fasting-history-row { display: grid; grid-template-columns: 1.2fr .7fr 1fr 1fr; gap: 6px; align-items: center; min-height: 42px; border-bottom: 1px solid rgba(255,255,255,.07); color: #dbe8ed; font-size: 12px; }
.fasting-history-row:last-child { border-bottom: 0; }
.fasting-history-row b { color: #fff; }
.fasting-history-row strong { text-align: right; font-size: 11px; }
.fasting-history-row .is-good { color: var(--fasting-lime); }
.fasting-history-row .is-flexible { color: #aab9c5; }
.fasting-notification-card label { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; border-bottom: 1px solid rgba(255,255,255,.07); color: #dbe8ed; font-size: 13px; }
.fasting-notification-card label:last-child { border-bottom: 0; }
.fasting-notification-card input { width: 20px; height: 20px; accent-color: var(--fasting-lime); }
.fasting-modal { width: min(100%, 480px); padding: 20px; }
.fasting-modal > * { position: relative; z-index: 1; }
.fasting-modal .ng-btn-primary { width: 100%; margin-top: 16px; min-height: 46px; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.25); border-top-color: var(--fasting-lime); border-radius: 50%; animation: fasting-spin .8s linear infinite; }
@keyframes fasting-spin { to { transform: rotate(360deg); } }
.fasting-in-app-notification { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.07); color: #dbe8ed; font-size: 12px; }
.fasting-in-app-notification small { color: #8fa1ac; white-space: nowrap; }
@media (max-width: 420px) { .fasting-home-widget { align-items: flex-start; flex-direction: column; } .fasting-cta { width: 100%; } .fasting-choice-grid, .fasting-form-grid, .fasting-recommendation-grid { grid-template-columns: 1fr; } .fasting-detail-actions { flex-direction: column; } .fasting-detail-actions .fasting-outline-button { width: 100%; } .fasting-history-row { grid-template-columns: 1.1fr .6fr 1fr; } .fasting-history-row strong { grid-column: 3; grid-row: 1; } }
@media (min-width: 800px) { .fasting-home-widget, .fasting-meals-widget { max-width: 900px; } .fasting-form { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } .fasting-form fieldset, .fasting-submit, .fasting-result { grid-column: 1 / -1; } }
