/* BEFORE THE CLOSE — MAIN STYLESHEET */

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: radial-gradient(circle at top, #242424 0%, #111111 45%, #080808 100%);
    color: white;
}

button, input, select { font: inherit; }

.app {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 25px 20px 100px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
}

.brand {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 3px;
}

.streak {
    flex-shrink: 0;
    padding: 9px 14px;
    background: #1d1d1d;
    border: 1px solid #303030;
    border-radius: 50px;
    font-size: 13px;
    font-weight: bold;
}

.welcome { margin-bottom: 28px; }

.eyebrow {
    margin-bottom: 8px;
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.5;
}

h1 {
    margin: 0 0 8px;
    font-size: 34px;
    line-height: 1.15;
}

.subtitle {
    margin: 0;
    color: #aaa;
    line-height: 1.5;
}

.prayer-card {
    position: relative;
    overflow: hidden;
    padding: 30px 25px;
    background: linear-gradient(145deg, #202020, #151515);
    border: 1px solid #333;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

.prayer-card::before {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    top: -80px;
    right: -60px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    pointer-events: none;
}

.prayer-icon {
    position: relative;
    margin-bottom: 22px;
    font-size: 35px;
}

.prayer-label {
    position: relative;
    margin-bottom: 10px;
    color: #999;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.prayer-title {
    position: relative;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: bold;
    line-height: 1.3;
}

#prayerText {
    position: relative;
    margin: 0;
    color: #eee;
    font-size: 17px;
    line-height: 1.75;
}

.favorite-button {
    position: relative;
    width: 100%;
    margin-top: 25px;
    padding: 14px;
    border: 1px solid #3a3a3a;
    border-radius: 14px;
    background: #181818;
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .1s ease;
}

.favorite-button:hover { background: #222; }
.favorite-button:active { transform: scale(.98); }
.favorite-button.saved { background: white; color: black; }

.daily-message {
    margin-top: 22px;
    padding: 18px;
    border-radius: 16px;
    background: #151515;
    border: 1px solid #292929;
}

.daily-message-title {
    margin-bottom: 8px;
    color: #888;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.daily-message-text {
    font-size: 14px;
    line-height: 1.5;
}

.favorite-card {
    margin-bottom: 16px;
    padding: 22px;
    background: linear-gradient(145deg, #1d1d1d, #141414);
    border: 1px solid #303030;
    border-radius: 20px;
}

.favorite-industry {
    margin-bottom: 10px;
    color: #888;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.5px;
}

.favorite-title {
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.3;
}

.favorite-card p {
    margin: 0;
    color: #ddd;
    line-height: 1.7;
}

.remove-favorite {
    margin-top: 18px;
    padding: 0;
    border: none;
    background: transparent;
    color: #999;
    font-size: 13px;
    cursor: pointer;
}

.remove-favorite:hover { color: white; }

.empty-favorites {
    margin-top: 60px;
    color: #888;
    text-align: center;
    line-height: 1.6;
}

.settings-group { margin-bottom: 22px; }

.settings-group label {
    display: block;
    margin-bottom: 8px;
    color: #aaa;
    font-size: 12px;
    letter-spacing: 1.5px;
}

.settings-group input,
.settings-group select {
    width: 100%;
    padding: 15px;
    background: #191919;
    color: white;
    border: 1px solid #303030;
    border-radius: 14px;
    font-size: 15px;
    outline: none;
}

.settings-group input:focus,
.settings-group select:focus { border-color: #666; }

.settings-group input::placeholder { color: #666; }

.save-settings {
    width: 100%;
    padding: 15px;
    background: white;
    color: black;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.settings-saved {
    min-height: 18px;
    margin-top: 15px;
    color: #aaa;
    text-align: center;
    font-size: 13px;
}

.bottom-nav {
    position: fixed;
    z-index: 100;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    display: flex;
    justify-content: space-around;
    padding: 13px 10px 18px;
    background: rgba(15,15,15,.95);
    border-top: 1px solid #292929;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-item {
    width: 33.333%;
    color: #777;
    text-align: center;
    font-size: 11px;
    cursor: pointer;
    user-select: none;
    transition: color .2s ease;
}

.nav-icon {
    display: block;
    margin-bottom: 4px;
    font-size: 20px;
}

.nav-item.active { color: white; }

@media (max-width: 500px) {
    .app { padding-top: 20px; }
    h1 { font-size: 30px; }
}

@media (max-width: 360px) {
    .brand { font-size: 13px; letter-spacing: 2px; }
    .streak { padding: 8px 10px; font-size: 12px; }
    .prayer-card { padding: 25px 20px; }
}
/* ========================================
   DEV MODE
======================================== */

.brand {
    cursor: pointer;
    user-select: none;
}

.dev-panel {
    margin-top: 22px;
    padding: 18px;

    background: #101010;

    border:
        1px dashed
        #555555;

    border-radius: 16px;
}

.dev-title {
    margin-bottom: 8px;

    font-size: 12px;
    font-weight: bold;

    letter-spacing: 2px;

    color: #999999;
}

.dev-status {
    margin-bottom: 15px;

    font-size: 14px;

    color: #dddddd;
}

.dev-buttons {
    display: flex;
    gap: 10px;
}

.dev-buttons button,
.dev-random,
.dev-exit {
    padding: 12px;

    background: #1d1d1d;
    color: white;

    border:
        1px solid
        #3a3a3a;

    border-radius: 12px;

    font-weight: bold;

    cursor: pointer;
}

.dev-buttons button {
    flex: 1;
}

.dev-random {
    width: 100%;
    margin-top: 10px;
}

.dev-exit {
    width: 100%;
    margin-top: 10px;

    background: transparent;

    color: #999999;
}

.dev-buttons button:hover,
.dev-random:hover {
    background: #292929;
}

.dev-exit:hover {
    color: white;
}
/* ========================================
   TESTER FEEDBACK
======================================== */

.feedback-section {
    margin-top: 35px;
}

.feedback-divider {
    height: 1px;
    margin-bottom: 30px;

    background: #292929;
}

.feedback-heading {
    margin:
        0
        0
        10px;

    font-size: 24px;
}

.feedback-description {
    margin:
        0
        0
        20px;

    color: #aaaaaa;

    font-size: 14px;
    line-height: 1.6;
}

.feedback-open-button {
    width: 100%;

    padding: 15px;

    background: #191919;
    color: white;

    border:
        1px solid
        #363636;

    border-radius: 14px;

    font-weight: bold;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.1s ease;
}

.feedback-open-button:hover {
    background: #232323;
}

.feedback-open-button:active {
    transform: scale(0.98);
}


/* ========================================
   FEEDBACK MODAL
======================================== */

.feedback-overlay {
    position: fixed;

    z-index: 1000;

    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    display: none;

    align-items: flex-end;
    justify-content: center;

    padding: 20px;

    background:
        rgba(
            0,
            0,
            0,
            0.78
        );

    backdrop-filter:
        blur(8px);

    -webkit-backdrop-filter:
        blur(8px);
}

.feedback-overlay.open {
    display: flex;
}

.feedback-modal {
    position: relative;

    width: 100%;
    max-width: 480px;

    max-height: 90vh;

    overflow-y: auto;

    padding:
        30px
        22px;

    background:
        linear-gradient(
            145deg,
            #202020,
            #111111
        );

    border:
        1px solid
        #383838;

    border-radius:
        24px
        24px
        18px
        18px;

    box-shadow:
        0
        25px
        70px
        rgba(
            0,
            0,
            0,
            0.6
        );
}

.feedback-modal h2 {
    margin:
        0
        35px
        8px
        0;

    font-size: 27px;
}

.feedback-modal-description {
    margin:
        0
        0
        25px;

    color: #aaaaaa;

    font-size: 14px;
    line-height: 1.6;
}

.feedback-close {
    position: absolute;

    top: 18px;
    right: 18px;

    width: 36px;
    height: 36px;

    padding: 0;

    background: #292929;
    color: #aaaaaa;

    border:
        1px solid
        #3b3b3b;

    border-radius: 50%;

    font-size: 24px;
    line-height: 30px;

    cursor: pointer;
}

.feedback-close:hover {
    color: white;
}


/* ========================================
   FEEDBACK FIELDS
======================================== */

.feedback-field {
    margin-bottom: 22px;
}

.feedback-field label {
    display: block;

    margin-bottom: 9px;

    color: #aaaaaa;

    font-size: 11px;
    font-weight: bold;

    letter-spacing: 1.5px;
}

.feedback-field label span {
    color: #666666;

    font-weight: normal;

    letter-spacing: 0;
}

.feedback-field input,
.feedback-field select,
.feedback-field textarea {
    width: 100%;

    padding: 14px;

    background: #151515;
    color: white;

    border:
        1px solid
        #343434;

    border-radius: 13px;

    outline: none;
}

.feedback-field textarea {
    min-height: 130px;

    resize: vertical;

    line-height: 1.5;
}

.feedback-field input:focus,
.feedback-field select:focus,
.feedback-field textarea:focus {
    border-color: #777777;
}

.feedback-field textarea::placeholder,
.feedback-field input::placeholder {
    color: #666666;
}


/* ========================================
   RATING
======================================== */

.rating-buttons {
    display: grid;

    grid-template-columns:
        repeat(
            5,
            1fr
        );

    gap: 8px;
}

.rating-buttons button {
    padding:
        12px
        5px;

    background: #151515;
    color: #aaaaaa;

    border:
        1px solid
        #343434;

    border-radius: 11px;

    font-weight: bold;

    cursor: pointer;
}

.rating-buttons button:hover {
    background: #222222;
    color: white;
}

.rating-buttons button.selected {
    background: white;
    color: black;

    border-color: white;
}

.rating-labels {
    display: flex;

    justify-content:
        space-between;

    margin-top: 7px;

    color: #666666;

    font-size: 10px;
}


/* ========================================
   FEEDBACK SUBMIT
======================================== */

.feedback-error {
    min-height: 18px;

    margin-bottom: 10px;

    color: #ff8a8a;

    font-size: 12px;
}

.feedback-submit {
    width: 100%;

    padding: 15px;

    background: white;
    color: black;

    border: none;

    border-radius: 14px;

    font-size: 15px;
    font-weight: bold;

    cursor: pointer;

    transition:
        opacity 0.2s ease,
        transform 0.1s ease;
}

.feedback-submit:hover {
    opacity: 0.9;
}

.feedback-submit:active {
    transform: scale(0.98);
}

.feedback-note {
    margin:
        12px
        0
        0;

    color: #666666;

    text-align: center;

    font-size: 11px;
    line-height: 1.5;
}


/* ========================================
   SMALL SCREEN
======================================== */

@media (
    min-width: 500px
) {

    .feedback-overlay {
        align-items: center;
    }

}
/* ========================================
   PRAYER MODES
======================================== */

.prayer-modes-section {
    margin-top: 35px;
}

.prayer-modes-heading {
    margin-bottom: 18px;
}

.prayer-modes-heading h2 {
    margin: 0;

    font-size: 24px;
    line-height: 1.25;
}

.prayer-modes-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 12px;
}

.prayer-mode-button {
    min-height: 155px;

    padding: 18px;

    background:
        linear-gradient(
            145deg,
            #1c1c1c,
            #121212
        );

    color: white;

    border:
        1px solid
        #303030;

    border-radius: 18px;

    text-align: left;

    cursor: pointer;

    transition:
        transform 0.12s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.prayer-mode-button:hover {
    background:
        linear-gradient(
            145deg,
            #242424,
            #161616
        );

    border-color: #484848;
}

.prayer-mode-button:active {
    transform: scale(0.97);
}

.prayer-mode-icon {
    display: block;

    margin-bottom: 18px;

    font-size: 27px;
}

.prayer-mode-name {
    display: block;

    margin-bottom: 7px;

    font-size: 15px;
    font-weight: bold;

    line-height: 1.3;
}

.prayer-mode-description {
    display: block;

    color: #888888;

    font-size: 12px;
    line-height: 1.4;
}


/* ========================================
   PRAYER MODE SCREEN
======================================== */

.mode-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 32px;
}

.mode-back-button {
    padding:
        9px
        13px;

    background: #191919;
    color: #dddddd;

    border:
        1px solid
        #303030;

    border-radius: 50px;

    font-size: 12px;
    font-weight: bold;

    cursor: pointer;
}

.mode-back-button:hover {
    background: #222222;
}

.mode-intro {
    margin-bottom: 28px;
}

.mode-intro h1 {
    margin-bottom: 8px;
}

.mode-prayer-card {
    margin-bottom: 20px;
}

.another-prayer-button {
    position: relative;

    width: 100%;

    margin-top: 10px;

    padding: 14px;

    background: transparent;
    color: #dddddd;

    border:
        1px solid
        #3a3a3a;

    border-radius: 14px;

    font-size: 14px;
    font-weight: bold;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.1s ease;
}

.another-prayer-button:hover {
    background: #202020;
}

.another-prayer-button:active {
    transform: scale(0.98);
}

.mode-message {
    padding: 15px;

    color: #777777;

    text-align: center;

    font-size: 12px;
    line-height: 1.5;
}


/* ========================================
   SMALL PHONES
======================================== */

@media (max-width: 360px) {

    .prayer-modes-grid {
        grid-template-columns: 1fr;
    }

    .prayer-mode-button {
        min-height: auto;
    }

}

/* ========================================
   BETA v0.4 — CHECK-IN + JOURNEY
======================================== */
.daily-checkin-section,
.journey-section {
    margin: 24px 0;
    padding: 22px;
    border: 1px solid rgba(212,175,55,.28);
    border-radius: 18px;
    background: rgba(255,255,255,.025);
}
.daily-checkin-section h2 { margin: 6px 0 8px; }
.checkin-copy { opacity:.72; margin:0 0 16px; }
.checkin-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.checkin-btn {
    min-height:58px; border-radius:14px;
    border:1px solid rgba(212,175,55,.25);
    background:rgba(255,255,255,.035); color:inherit; font:inherit; cursor:pointer;
}
.checkin-btn span { display:block; margin-top:4px; font-size:.82rem; }
.checkin-btn.selected { border-color:#d4af37; box-shadow:0 0 0 1px rgba(212,175,55,.3); }
.checkin-response { margin-top:14px; padding:12px 14px; border-radius:12px; background:rgba(212,175,55,.08); line-height:1.45; }

.journey-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.journey-stat { padding:18px 10px; border-radius:14px; background:rgba(255,255,255,.035); text-align:center; }
.journey-stat strong { display:block; font-size:1.65rem; }
.journey-stat span { display:block; margin-top:3px; font-size:.76rem; opacity:.68; text-transform:uppercase; letter-spacing:.06em; }
.achievements-wrap { margin-top:22px; }
.achievement-list { display:grid; gap:8px; margin-top:10px; }
.achievement { display:flex; align-items:center; gap:11px; padding:11px 12px; border-radius:12px; background:rgba(255,255,255,.03); opacity:.48; }
.achievement.unlocked { opacity:1; border:1px solid rgba(212,175,55,.22); }
.achievement-icon { font-size:1.25rem; }
.achievement-copy strong,.achievement-copy span { display:block; }
.achievement-copy span { opacity:.68; font-size:.8rem; margin-top:2px; }

@media (min-width:700px) {
    .checkin-options,.journey-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}


/* ========================================
   BETA v0.5 — WEEKLY CHALLENGE + ACTIVITY
======================================== */
.weekly-challenge-card,
.recent-activity-card {
    margin-top: 18px;
    padding: 18px;
    border-radius: 16px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(212,175,55,.18);
}

.challenge-topline {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
}
.challenge-topline h2,
.recent-activity-card h2 { margin:5px 0 8px; }

.challenge-badge {
    flex:0 0 auto;
    padding:7px 10px;
    border-radius:999px;
    border:1px solid rgba(212,175,55,.3);
    font-size:.78rem;
    font-weight:700;
}

.weekly-challenge-card p { margin:0 0 14px; opacity:.72; line-height:1.45; }
.challenge-progress {
    height:8px;
    overflow:hidden;
    border-radius:999px;
    background:rgba(255,255,255,.08);
}
.challenge-progress-fill {
    height:100%;
    width:0%;
    border-radius:999px;
    background:#d4af37;
    transition:width .25s ease;
}
.challenge-days,
.activity-week {
    display:grid;
    grid-template-columns:repeat(7,minmax(0,1fr));
    gap:6px;
    margin-top:14px;
}
.challenge-day,
.activity-day {
    text-align:center;
    padding:9px 2px;
    border-radius:10px;
    background:rgba(255,255,255,.035);
    font-size:.7rem;
    opacity:.55;
}
.challenge-day.done,
.activity-day.active {
    opacity:1;
    border:1px solid rgba(212,175,55,.28);
}
.challenge-day strong,
.activity-day strong {
    display:block;
    font-size:.9rem;
    margin-top:3px;
}
.activity-day .activity-dot {
    width:7px;
    height:7px;
    margin:6px auto 0;
    border-radius:50%;
    background:rgba(255,255,255,.18);
}
.activity-day.active .activity-dot { background:#d4af37; }
.activity-summary {
    margin-top:12px;
    font-size:.82rem;
    line-height:1.45;
    opacity:.72;
}


/* ========================================
   BETA v0.6 — SHARE + PRAYER HISTORY
======================================== */
.btc-share-btn {
    width:100%;
    margin-top:12px;
    padding:13px 16px;
    border-radius:13px;
    border:1px solid rgba(212,175,55,.28);
    background:rgba(212,175,55,.08);
    color:inherit;
    font:inherit;
    font-weight:700;
    cursor:pointer;
}
.btc-share-btn:active { transform:scale(.99); }

.prayer-history-card {
    margin-top:18px;
    padding:18px;
    border-radius:16px;
    background:rgba(255,255,255,.035);
    border:1px solid rgba(212,175,55,.18);
}
.history-heading {
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
}
.history-heading h2 { margin:5px 0 4px; }
.history-copy { margin:0 0 14px; opacity:.65; font-size:.82rem; }
.history-clear-btn {
    border:1px solid rgba(255,255,255,.13);
    background:transparent;
    color:inherit;
    border-radius:999px;
    padding:6px 10px;
    font:inherit;
    font-size:.72rem;
    cursor:pointer;
}
.prayer-history-list { display:grid; gap:9px; }
.history-item {
    padding:12px;
    border-radius:12px;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.06);
}
.history-item-top {
    display:flex;
    justify-content:space-between;
    gap:10px;
    align-items:flex-start;
}
.history-item strong { font-size:.9rem; }
.history-item small { opacity:.5; white-space:nowrap; font-size:.67rem; }
.history-item p {
    margin:6px 0 0;
    opacity:.68;
    font-size:.78rem;
    line-height:1.4;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.history-empty {
    padding:16px 8px;
    text-align:center;
    opacity:.55;
    font-size:.82rem;
}


/* ========================================
   BETA v0.7 — WEEKLY GOALS + INTENTIONS
======================================== */
.focus-card {
    margin:24px 0;
    padding:20px;
    border-radius:18px;
    border:1px solid rgba(212,175,55,.24);
    background:rgba(255,255,255,.025);
}
.focus-card-top,.focus-goal-line,.journey-goal-top {
    display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.focus-card-top h2 { margin:5px 0 0; }
.focus-edit-btn,.focus-close-btn {
    border:1px solid rgba(255,255,255,.13); background:transparent; color:inherit;
    border-radius:999px; padding:7px 11px; font:inherit; cursor:pointer;
}
.focus-empty { margin-top:14px; }
.focus-empty p { opacity:.7; line-height:1.45; }
.focus-primary-btn,.focus-save-btn {
    width:100%; padding:13px 15px; border:0; border-radius:13px;
    background:#d4af37; color:#111; font:inherit; font-weight:800; cursor:pointer;
}
.focus-summary { margin-top:16px; }
.focus-goal-line { justify-content:flex-start; }
.focus-goal-line > span { font-size:1.4rem; }
.focus-goal-line small,.focus-intention-line small { display:block; opacity:.55; text-transform:uppercase; letter-spacing:.06em; font-size:.67rem; }
.focus-goal-line strong { display:block; margin-top:2px; }
.focus-progress-row { display:flex; align-items:center; gap:10px; margin:16px 0; }
.focus-progress-center { flex:1; }
.focus-progress-text { text-align:center; font-size:.76rem; margin-bottom:6px; opacity:.72; }
.focus-progress-track { height:8px; overflow:hidden; border-radius:999px; background:rgba(255,255,255,.08); }
.focus-progress-fill { height:100%; width:0%; border-radius:999px; background:#d4af37; transition:width .2s ease; }
.focus-step-btn {
    width:38px; height:38px; border-radius:50%; border:1px solid rgba(212,175,55,.28);
    background:rgba(212,175,55,.07); color:inherit; font-size:1.25rem; cursor:pointer;
}
.focus-intention-line { padding:12px; border-radius:12px; background:rgba(212,175,55,.06); }
.focus-intention-line p { margin:5px 0 0; line-height:1.4; }

.focus-modal[hidden] { display:none !important; }
.focus-modal { position:fixed; inset:0; z-index:1000; display:flex; align-items:flex-end; justify-content:center; }
.focus-modal-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.72); }
.focus-modal-panel {
    position:relative; z-index:1; width:min(100%,560px); max-height:90vh; overflow:auto;
    padding:22px; border-radius:22px 22px 0 0; background:#151515;
    border:1px solid rgba(212,175,55,.22);
}
.focus-modal-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.focus-modal-head h2 { margin:5px 0 12px; }
.focus-close-btn { font-size:1.2rem; padding:4px 10px; }
.focus-label { display:block; margin:14px 0 6px; font-size:.76rem; opacity:.7; }
.focus-input {
    width:100%; box-sizing:border-box; padding:12px; border-radius:12px;
    border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.05);
    color:inherit; font:inherit;
}
.focus-input option { color:#111; }
.focus-textarea { min-height:88px; resize:vertical; }
.focus-suggestions { display:flex; flex-wrap:wrap; gap:7px; margin:10px 0 16px; }
.focus-suggestions button {
    border:1px solid rgba(212,175,55,.2); background:rgba(212,175,55,.06);
    color:inherit; border-radius:999px; padding:7px 9px; font-size:.7rem; cursor:pointer;
}
.journey-goal-card {
    margin-top:14px; padding:16px; border-radius:14px;
    background:rgba(255,255,255,.035); border:1px solid rgba(212,175,55,.16);
}
.journey-goal-empty { margin-top:8px; opacity:.58; font-size:.8rem; }
.journey-goal-top { margin:9px 0; }
.journey-goal-top span { font-size:.78rem; opacity:.7; }
.journey-goal-card p { margin:11px 0 0; font-size:.8rem; opacity:.7; font-style:italic; }


/* ========================================
   BETA v0.8 — ONBOARDING + POLISH
======================================== */
.onboarding[hidden], .onboarding-step[hidden] { display:none !important; }
.onboarding {
    position:fixed; inset:0; z-index:5000; overflow:auto;
    background:#111; color:#f5f2e9;
    display:flex; align-items:center; justify-content:center;
    padding:20px;
}
.onboarding-card { width:min(100%,520px); padding:8px 4px 24px; }
.onboarding-progress { display:flex; justify-content:center; gap:7px; margin-bottom:28px; }
.onboarding-progress span {
    width:7px; height:7px; border-radius:50%; background:rgba(255,255,255,.18);
    transition:.2s ease;
}
.onboarding-progress span.active { width:24px; border-radius:999px; background:#d4af37; }
.onboarding-mark {
    width:58px; height:58px; display:grid; place-items:center; margin:0 auto 18px;
    border-radius:18px; border:1px solid rgba(212,175,55,.3);
    background:rgba(212,175,55,.07); font-size:1.6rem;
}
.onboarding-step > .eyebrow,
.onboarding-step > h1,
.onboarding-step > h2,
.onboarding-step > p { text-align:center; }
.onboarding-step h1 { margin:6px 0 8px; text-transform:uppercase; letter-spacing:.04em; }
.onboarding-step h2 { margin:7px 0 8px; }
.onboarding-step > p { opacity:.7; line-height:1.5; }
.onboarding-feature-list { display:grid; gap:9px; margin:24px 0; }
.onboarding-feature-list > div {
    display:grid; grid-template-columns:38px 1fr; padding:13px;
    border-radius:13px; background:rgba(255,255,255,.035);
}
.onboarding-feature-list span { grid-row:1/3; font-size:1.25rem; align-self:center; }
.onboarding-feature-list strong { font-size:.9rem; }
.onboarding-feature-list small { opacity:.58; margin-top:2px; }
.onboarding-primary,.onboarding-secondary {
    min-height:48px; border-radius:13px; padding:0 16px; font:inherit; font-weight:800; cursor:pointer;
}
.onboarding-primary { width:100%; border:0; background:#d4af37; color:#111; }
.onboarding-secondary { border:1px solid rgba(255,255,255,.14); background:transparent; color:inherit; }
.onboarding-actions { display:grid; grid-template-columns:1fr 2fr; gap:9px; margin-top:20px; }
.onboarding-copy { margin-bottom:22px; }
.onboarding-label { display:block; margin:13px 0 6px; font-size:.75rem; opacity:.65; }
.onboarding-input {
    width:100%; box-sizing:border-box; padding:13px; border-radius:12px;
    border:1px solid rgba(255,255,255,.13); background:rgba(255,255,255,.05);
    color:inherit; font:inherit;
}
.onboarding-input option { color:#111; }
.onboarding-mode-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin:22px 0; }
.onboarding-mode-grid div {
    min-height:88px; display:flex; flex-direction:column; justify-content:center; align-items:center;
    gap:7px; text-align:center; padding:10px; border-radius:14px;
    background:rgba(255,255,255,.035); border:1px solid rgba(212,175,55,.14);
}
.onboarding-mode-grid strong { font-size:.75rem; }
.onboarding-footnote { font-size:.76rem; margin:0 0 18px; }
.settings-help-card {
    display:flex; justify-content:space-between; align-items:center; gap:12px;
    margin:18px 0; padding:14px; border-radius:13px;
    background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.07);
}
.settings-help-card strong,.settings-help-card span { display:block; }
.settings-help-card span { margin-top:3px; opacity:.58; font-size:.75rem; }
.settings-help-card button {
    flex:0 0 auto; border:1px solid rgba(212,175,55,.25); background:rgba(212,175,55,.06);
    color:inherit; border-radius:999px; padding:7px 10px; font:inherit; font-size:.72rem; cursor:pointer;
}


/* ========================================
   BETA v0.9 — DAILY REMINDERS
======================================== */
.reminder-settings-card {
    margin:18px 0; padding:18px; border-radius:16px;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(212,175,55,.18);
}
.reminder-settings-card h2 { margin:5px 0 7px; }
.reminder-settings-card > p { margin:0 0 16px; opacity:.68; line-height:1.45; font-size:.84rem; }
.reminder-row { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.reminder-row strong,.reminder-row small { display:block; }
.reminder-row small { margin-top:3px; opacity:.55; font-size:.72rem; }
.reminder-switch { position:relative; width:48px; height:28px; flex:0 0 auto; }
.reminder-switch input { opacity:0; width:0; height:0; }
.reminder-switch span {
    position:absolute; inset:0; border-radius:999px; cursor:pointer;
    background:rgba(255,255,255,.12); transition:.2s ease;
}
.reminder-switch span:before {
    content:""; position:absolute; width:22px; height:22px; left:3px; top:3px;
    border-radius:50%; background:#eee; transition:.2s ease;
}
.reminder-switch input:checked + span { background:#d4af37; }
.reminder-switch input:checked + span:before { transform:translateX(20px); background:#111; }
.reminder-time-wrap { margin-top:16px; padding-top:14px; border-top:1px solid rgba(255,255,255,.07); }
.reminder-time-wrap label { display:block; font-size:.74rem; opacity:.65; margin-bottom:6px; }
.reminder-time-wrap input[type="time"] {
    width:100%; box-sizing:border-box; padding:11px 12px; border-radius:11px;
    border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.05);
    color:inherit; font:inherit;
}
.reminder-time-wrap p { font-size:.72rem; line-height:1.4; opacity:.58; margin:9px 0 12px; }
.reminder-test-btn {
    width:100%; padding:11px; border-radius:11px;
    border:1px solid rgba(212,175,55,.24); background:rgba(212,175,55,.07);
    color:inherit; font:inherit; font-weight:700; cursor:pointer;
}

/* v0.9 polish — share saved favorites */
.favorite-actions {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:9px;
    margin-top:14px;
}
.favorite-actions .remove-favorite { margin-top:0; }
.share-favorite {
    padding:11px 12px;
    border-radius:11px;
    border:1px solid rgba(212,175,55,.28);
    background:rgba(212,175,55,.07);
    color:inherit;
    font:inherit;
    font-weight:700;
    cursor:pointer;
}
@media (max-width:420px) {
    .favorite-actions { grid-template-columns:1fr; }
}

/* ========================================
   BEFORE THE CLOSE v1.0
======================================== */
.about-card {
    margin:18px 0; padding:18px; border-radius:16px;
    background:rgba(255,255,255,.025);
    border:1px solid rgba(212,175,55,.15);
}
.about-card h2 { margin:5px 0 4px; }
.about-card > p { margin:0 0 14px; opacity:.62; font-size:.82rem; }
.about-meta {
    display:flex; justify-content:space-between; align-items:center; gap:12px;
    padding:9px 0; border-top:1px solid rgba(255,255,255,.06); font-size:.78rem;
}
.about-meta span { opacity:.55; }
.about-meta strong { font-weight:700; }

/* Consistent tap behavior for the production PWA */
button, .nav-item { -webkit-tap-highlight-color:transparent; }
button { touch-action:manipulation; }


/* ========================================
   v1.0 RC2 — VISUAL SYSTEM + ACHIEVEMENTS
======================================== */
:root {
    --btc-gold:#d4af37;
    --btc-gold-soft:rgba(212,175,55,.12);
    --btc-line:rgba(212,175,55,.18);
    --btc-panel:rgba(255,255,255,.035);
}

/* Subtle depth without changing the black/gold identity */
body {
    background:
        radial-gradient(circle at 50% -10%, rgba(212,175,55,.09), transparent 32rem),
        #111;
}
.header {
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
}
.brand { letter-spacing:.13em; }
.welcome h1 {
    letter-spacing:-.025em;
    text-shadow:0 0 30px rgba(212,175,55,.08);
}

/* Give major cards a cleaner premium surface */
.prayer-card,
.daily-checkin-section,
.journey-section,
.focus-card,
.weekly-challenge-card,
.recent-activity-card,
.prayer-history-card,
.reminder-settings-card,
.about-card,
.journey-goal-card {
    box-shadow:0 14px 40px rgba(0,0,0,.16);
}

.journey-section {
    position:relative;
    overflow:hidden;
}
.journey-section:before {
    content:"";
    position:absolute;
    width:190px; height:190px;
    right:-95px; top:-95px;
    border-radius:50%;
    background:radial-gradient(circle, rgba(212,175,55,.11), transparent 68%);
    pointer-events:none;
}

.journey-grid { position:relative; z-index:1; }
.journey-stat {
    border:1px solid rgba(255,255,255,.055);
    transition:transform .18s ease,border-color .18s ease;
}
.journey-stat strong {
    font-size:1.8rem;
    background:linear-gradient(180deg,#f8e8a5,#d4af37);
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
}
.journey-stat-wide { grid-column:1 / -1; }
@media (min-width:700px) {
    .journey-stat-wide { grid-column:auto; }
}

.achievement-summary {
    display:grid;
    grid-template-columns:auto 1fr;
    align-items:center;
    gap:14px;
    margin:12px 0 14px;
    padding:13px;
    border-radius:13px;
    background:rgba(212,175,55,.055);
    border:1px solid rgba(212,175,55,.12);
}
.achievement-summary strong,.achievement-summary span { display:block; }
.achievement-summary strong { font-size:1rem; }
.achievement-summary span { opacity:.55; font-size:.67rem; text-transform:uppercase; letter-spacing:.07em; }
.achievement-overall-track {
    height:7px; overflow:hidden; border-radius:999px; background:rgba(255,255,255,.08);
}
.achievement-overall-fill {
    width:0%; height:100%; border-radius:999px;
    background:linear-gradient(90deg,#b68a1e,#f0d26c);
    transition:width .35s ease;
}
.achievement-filters {
    display:flex; gap:7px; overflow-x:auto; padding-bottom:4px; margin-bottom:11px;
    scrollbar-width:none;
}
.achievement-filters::-webkit-scrollbar { display:none; }
.achievement-filters button {
    flex:0 0 auto;
    border:1px solid rgba(255,255,255,.09);
    background:rgba(255,255,255,.025);
    color:inherit; border-radius:999px; padding:7px 10px;
    font:inherit; font-size:.68rem; cursor:pointer;
}
.achievement-filters button.active {
    border-color:rgba(212,175,55,.36);
    background:rgba(212,175,55,.1);
    color:#f4d96f;
}
.achievement {
    position:relative;
    overflow:hidden;
    min-height:54px;
    border:1px solid rgba(255,255,255,.055);
}
.achievement.unlocked {
    background:linear-gradient(135deg,rgba(212,175,55,.09),rgba(255,255,255,.025));
    border-color:rgba(212,175,55,.26);
}
.achievement.unlocked:after {
    content:"✓";
    position:absolute; right:10px; top:10px;
    width:19px; height:19px; display:grid; place-items:center;
    border-radius:50%; background:rgba(212,175,55,.16);
    color:#efd064; font-size:.65rem; font-weight:900;
}
.achievement-progress {
    margin-top:7px;
    height:4px; border-radius:999px; overflow:hidden;
    background:rgba(255,255,255,.07);
}
.achievement-progress > span {
    display:block; height:100%; border-radius:999px;
    background:rgba(212,175,55,.72);
}
.achievement-category {
    display:inline-block; margin-top:5px; opacity:.45;
    text-transform:uppercase; letter-spacing:.07em; font-size:.58rem;
}

/* Unlock toast */
.btc-achievement-toast {
    position:fixed; left:50%; bottom:88px; z-index:6000;
    width:min(calc(100% - 28px),420px);
    transform:translate(-50%,30px);
    opacity:0; pointer-events:none;
    padding:14px 16px; border-radius:16px;
    background:rgba(24,24,24,.96);
    border:1px solid rgba(212,175,55,.35);
    box-shadow:0 18px 50px rgba(0,0,0,.42),0 0 28px rgba(212,175,55,.08);
    transition:.3s ease;
}
.btc-achievement-toast.show { transform:translate(-50%,0); opacity:1; }
.btc-achievement-toast .toast-top { color:#e8c85e; font-size:.65rem; text-transform:uppercase; letter-spacing:.1em; }
.btc-achievement-toast strong { display:block; margin-top:3px; }

/* Slightly richer buttons */
.btc-share-btn,.share-favorite,.focus-primary-btn,.focus-save-btn,.onboarding-primary {
    box-shadow:0 8px 24px rgba(212,175,55,.08);
}
.nav-item.active .nav-icon { filter:drop-shadow(0 0 8px rgba(212,175,55,.35)); }


/* ========================================
   v1.0 RC3 — CINEMATIC SCREEN TRANSITIONS
======================================== */
:root { --btc-screen-transition: 260ms; }

.btc-screen-enter-right {
    animation: btcEnterRight var(--btc-screen-transition) cubic-bezier(.22,.8,.28,1) both;
}
.btc-screen-enter-left {
    animation: btcEnterLeft var(--btc-screen-transition) cubic-bezier(.22,.8,.28,1) both;
}
@keyframes btcEnterRight {
    from { opacity:0; transform:translate3d(18px,0,0) scale(.992); filter:blur(2px); }
    to   { opacity:1; transform:translate3d(0,0,0) scale(1); filter:blur(0); }
}
@keyframes btcEnterLeft {
    from { opacity:0; transform:translate3d(-18px,0,0) scale(.992); filter:blur(2px); }
    to   { opacity:1; transform:translate3d(0,0,0) scale(1); filter:blur(0); }
}
.bottom-nav .nav-item {
    transition: transform 180ms ease, opacity 180ms ease;
}
.bottom-nav .nav-item.active {
    transform:translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
    .btc-screen-enter-right,.btc-screen-enter-left { animation:none !important; }
    .bottom-nav .nav-item { transition:none !important; }
}


/* ========================================
   v1.0 RC4 — DELIGHT + PERSONAL JOURNEY
======================================== */
.btc-launch-splash {
    position:fixed; inset:0; z-index:99999; display:grid; place-content:center; text-align:center;
    background:#0d0d0d; transition:opacity .28s ease,visibility .28s ease;
}
.btc-launch-splash.hide { opacity:0; visibility:hidden; }
.btc-launch-mark { color:#e2bf4c; font-size:2.2rem; animation:btcLaunchGlow .7s ease both; }
.btc-launch-name { margin-top:8px; font-weight:900; letter-spacing:.18em; font-size:.9rem; animation:btcLaunchUp .6s .08s ease both; }
.btc-launch-tag { margin-top:6px; opacity:.45; letter-spacing:.16em; font-size:.58rem; animation:btcLaunchUp .6s .14s ease both; }
@keyframes btcLaunchGlow { from{opacity:0;transform:scale(.7)} to{opacity:1;transform:scale(1);text-shadow:0 0 28px rgba(212,175,55,.28)}}
@keyframes btcLaunchUp { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none}}

.quick-reset-card,.reflection-card,.weekly-recap-card,.records-card,.prayer-week-card,.btc-scripture-card,.btc-goal-prayer-card {
    margin:16px 0; padding:16px; border-radius:16px;
    border:1px solid rgba(212,175,55,.14);
    background:linear-gradient(145deg,rgba(212,175,55,.055),rgba(255,255,255,.025));
    box-shadow:0 14px 38px rgba(0,0,0,.15);
}
.quick-reset-card { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.quick-reset-card strong { display:block; margin:3px 0; font-size:.95rem; }
.quick-reset-card p { margin:0; opacity:.55; font-size:.72rem; }
.quick-reset-card button,.reflection-save,.btc-goal-prayer-btn {
    flex:0 0 auto; border:1px solid rgba(212,175,55,.3); border-radius:12px;
    background:rgba(212,175,55,.12); color:#efd064; padding:10px 12px; font:inherit; font-weight:800; font-size:.72rem;
}
.reflection-moods { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; margin:12px 0; }
.reflection-moods button {
    display:grid; gap:4px; place-items:center; min-height:62px; border-radius:12px;
    border:1px solid rgba(255,255,255,.07); background:rgba(255,255,255,.025); color:inherit; font:inherit;
}
.reflection-moods button.selected { border-color:rgba(212,175,55,.4); background:rgba(212,175,55,.1); }
.reflection-moods span { font-size:.61rem; opacity:.65; }
.reflection-card textarea { box-sizing:border-box; width:100%; min-height:70px; resize:vertical; border-radius:11px; padding:10px;
    border:1px solid rgba(255,255,255,.08); background:rgba(0,0,0,.2); color:inherit; font:inherit; }
.reflection-save { margin-top:8px; }
.reflection-saved { min-height:18px; margin-top:6px; opacity:.55; font-size:.68rem; }

.recap-grid,.records-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; margin:12px 0; }
.recap-grid div,.records-grid div { text-align:center; padding:10px 5px; border-radius:11px; background:rgba(255,255,255,.025); }
.recap-grid strong,.records-grid strong { display:block; color:#e5c34f; font-size:1.15rem; }
.recap-grid span,.records-grid small { display:block; margin-top:3px; opacity:.5; font-size:.58rem; }
.records-grid span { display:block; margin-bottom:3px; }
.weekly-recap-card p,.prayer-week-card p,.btc-scripture-card p,.btc-goal-prayer-card p { margin-bottom:0; opacity:.7; line-height:1.55; font-size:.78rem; }

.btc-tier { margin-left:6px; font-size:.55rem; text-transform:uppercase; letter-spacing:.07em; opacity:.58; }
.btc-tier.gold { color:#e6c44e; opacity:1; }
.btc-tier.diamond { color:#f3e9b1; opacity:1; text-shadow:0 0 10px rgba(255,239,170,.28); }

.btc-micro-pop { animation:btcMicroPop .3s cubic-bezier(.2,.9,.3,1.4); }
@keyframes btcMicroPop { 50%{transform:scale(1.055)} }
.btc-goal-celebrate { animation:btcGoalGlow .75s ease; }
@keyframes btcGoalGlow { 50%{box-shadow:0 0 0 1px rgba(212,175,55,.45),0 0 36px rgba(212,175,55,.16)} }

.btc-streak-evolved { filter:drop-shadow(0 0 7px rgba(212,175,55,.35)); }
.btc-scripture-card blockquote { margin:8px 0 0; font-size:.86rem; line-height:1.55; }
.btc-scripture-card cite { display:block; margin-top:7px; opacity:.5; font-size:.67rem; font-style:normal; }

@media(max-width:430px){
    .quick-reset-card { align-items:flex-start; }
    .quick-reset-card button { max-width:110px; }
    .recap-grid,.records-grid { grid-template-columns:repeat(2,1fr); }
}
@media(prefers-reduced-motion:reduce){
    .btc-launch-mark,.btc-launch-name,.btc-launch-tag,.btc-micro-pop,.btc-goal-celebrate { animation:none!important; }
}


/* ========================================
   BEFORE THE CLOSE v1.0.0 — PRODUCTION
======================================== */
body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}
.bottom-nav {
    padding-bottom: max(8px, env(safe-area-inset-bottom));
}
#todayScreen, #journeyScreen, #favoritesScreen, #settingsScreen {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
}
button, input, select, textarea {
    font-size: max(16px, 1em);
}
@media (min-width: 700px) {
    button, input, select, textarea { font-size: inherit; }
}
\n\n/* ========================================\n   v1.1 CLOUD DEV — ACCOUNT + AUTH\n========================================= */\n.btc-account-card{margin:24px 0;padding:22px;border:1px solid rgba(212,175,55,.28);border-radius:20px;background:linear-gradient(145deg,rgba(212,175,55,.08),rgba(255,255,255,.018));box-shadow:0 18px 50px rgba(0,0,0,.22)}\n.btc-account-card h2{margin:6px 0 8px}.btc-account-card p{opacity:.72;line-height:1.55}.btc-account-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}\n.btc-account-primary,.btc-account-secondary{border-radius:12px;padding:12px 16px;font-weight:800;cursor:pointer}.btc-account-primary{border:1px solid #d4af37;background:#d4af37;color:#111}.btc-account-secondary{border:1px solid rgba(212,175,55,.35);background:rgba(255,255,255,.03);color:inherit}.btc-account-user{display:flex;flex-direction:column;gap:3px;margin-top:14px}.btc-account-user span{font-size:.72rem;opacity:.55;text-transform:uppercase;letter-spacing:.08em}.btc-cloud-status{margin-top:12px;font-size:.86rem;opacity:.72}.btc-cloud-status.syncing{opacity:1}.btc-cloud-status.error{color:#ff9d9d;opacity:1}\n.btc-auth-modal[hidden]{display:none}.btc-auth-modal{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:18px}.btc-auth-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.78);backdrop-filter:blur(8px)}.btc-auth-panel{position:relative;width:min(440px,100%);padding:28px;border:1px solid rgba(212,175,55,.35);border-radius:22px;background:#111;box-shadow:0 30px 90px rgba(0,0,0,.55)}.btc-auth-panel h2{margin:6px 0}.btc-auth-panel>p{opacity:.68;line-height:1.5;margin-bottom:18px}.btc-auth-panel label{display:block;margin:13px 0 6px;font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;opacity:.68}.btc-auth-panel input{width:100%;box-sizing:border-box;padding:13px 14px;border-radius:11px;border:1px solid rgba(255,255,255,.13);background:#181818;color:#fff;font:inherit;outline:none}.btc-auth-panel input:focus{border-color:rgba(212,175,55,.75);box-shadow:0 0 0 3px rgba(212,175,55,.08)}.btc-auth-close{position:absolute;right:15px;top:13px;border:0;background:transparent;color:#fff;font-size:1.8rem;cursor:pointer;opacity:.7}.btc-auth-submit{width:100%;margin-top:18px}.btc-auth-link{display:block;width:100%;border:0;background:transparent;color:#d4af37;padding:11px 4px 0;cursor:pointer}.btc-auth-message{min-height:20px;margin-top:12px;font-size:.85rem;line-height:1.45}.btc-auth-message.error{color:#ff9d9d}.btc-auth-message.success{color:#b9e9bd}\n
/* ========================================
   v1.1.3 MOBILE SCROLL / SAFE-AREA FIX
   Keep the final card fully above fixed navigation on iOS.
========================================= */
#todayScreen, #journeyScreen, #favoritesScreen, #settingsScreen {
    padding-bottom: calc(150px + env(safe-area-inset-bottom));
}
@media (max-width: 500px) {
    #journeyScreen .daily-checkin-section { margin-bottom: 34px; }
    #journeyScreen .journey-section { margin-top: 0; }
}


/* ========================================
   v1.1.4 STRUCTURAL MOBILE SCROLL FIX
   Journey enhancement cards now live INSIDE journeyScreen.
========================================= */
html, body {
    scroll-padding-bottom: calc(140px + env(safe-area-inset-bottom));
}
.app {
    padding-bottom: calc(140px + env(safe-area-inset-bottom));
}
.journey-bottom-spacer {
    width: 100%;
    height: calc(110px + env(safe-area-inset-bottom));
    flex: 0 0 auto;
    pointer-events: none;
}

/* v1.2 Sales Style personalization */
.settings-helper{margin:.55rem 0 0;color:var(--muted,#a8a8a8);font-size:.82rem;line-height:1.45;}

/* ========================================
   v1.3 — JOURNEY PLUS
======================================== */
.btc-daypart-card,.btc-calendar-card,.btc-milestone-card{margin:18px 18px 0;padding:22px;border:1px solid rgba(212,175,55,.24);border-radius:22px;background:linear-gradient(145deg,rgba(22,22,22,.96),rgba(9,9,9,.98));box-shadow:0 18px 45px rgba(0,0,0,.2)}
.btc-daypart-card h3,.btc-calendar-card h3,.btc-milestone-card h3{margin:7px 0 8px}.btc-daypart-card>p,.btc-milestone-card>p{opacity:.72;line-height:1.55}
.btc-daypart-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:16px}.btc-daypart-actions button{min-height:94px;border:1px solid rgba(212,175,55,.2);border-radius:16px;background:rgba(255,255,255,.035);color:inherit;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:22px}.btc-daypart-actions span{font-size:13px;font-weight:800}.btc-daypart-actions small{font-size:10px;opacity:.55;text-transform:uppercase;letter-spacing:.08em}
.btc-section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.btc-calendar-nav{display:flex;gap:6px}.btc-calendar-nav button{width:36px;height:36px;border-radius:12px;border:1px solid rgba(212,175,55,.22);background:rgba(255,255,255,.035);color:inherit;font-size:24px}.btc-calendar-weekdays,.btc-calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.btc-calendar-weekdays{margin:16px 0 7px;text-align:center;font-size:10px;opacity:.45;font-weight:800}.btc-calendar-day{aspect-ratio:1;border:0;border-radius:10px;background:rgba(255,255,255,.025);color:inherit;font-size:12px;position:relative}.btc-calendar-day.empty{visibility:hidden}.btc-calendar-day.has-data{border:1px solid rgba(212,175,55,.32);background:rgba(212,175,55,.08)}.btc-calendar-day.today{box-shadow:inset 0 0 0 1px #d4af37}.btc-calendar-day.has-milestone:after{content:"★";position:absolute;right:3px;top:1px;font-size:7px;color:#d4af37}.btc-calendar-detail{margin-top:12px;padding:12px;border-radius:12px;background:rgba(255,255,255,.025);font-size:12px;line-height:1.5;opacity:.78;min-height:42px}
.btc-primary-action{width:100%;margin-top:12px;padding:14px 16px;border:1px solid rgba(212,175,55,.38);border-radius:14px;background:linear-gradient(135deg,rgba(212,175,55,.2),rgba(212,175,55,.08));color:inherit;font-weight:800}.btc-milestone-list{display:grid;gap:9px;margin-top:14px}.btc-milestone-item{padding:13px;border-radius:14px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06)}.btc-milestone-item strong{display:block;font-size:13px}.btc-milestone-item small{opacity:.5}.btc-milestone-item p{margin:6px 0 0;font-size:12px;opacity:.75;line-height:1.45}.btc-empty-state{font-size:12px;opacity:.55;padding:6px 0}
@media(max-width:380px){.btc-daypart-actions{grid-template-columns:1fr}.btc-daypart-actions button{min-height:64px;flex-direction:row}.btc-daypart-actions small{margin-left:4px}}

/* ========================================
   v1.4 — FOCUSED FIVE-TAB NAVIGATION
========================================= */
#prayScreen {
    padding-bottom: calc(150px + env(safe-area-inset-bottom));
}
.btc-pray-intro {
    margin: 0 0 20px;
    padding: 16px 18px;
    border: 1px solid rgba(212,175,55,.18);
    border-radius: 16px;
    background: rgba(212,175,55,.045);
    color: rgba(255,255,255,.72);
    line-height: 1.55;
    font-size: .92rem;
}
#prayScreen .quick-reset-card { margin-top: 0; }
#prayScreen .prayer-modes-section { margin-top: 24px; }
#prayScreen .btc-daypart-card { margin-top: 24px; }
#prayScreen #btcGoalPrayerCard { margin-top: 24px; }
.bottom-nav .nav-item {
    width: 20%;
    min-width: 0;
    padding-left: 2px;
    padding-right: 2px;
    font-size: 10px;
}
@media (max-width: 360px) {
    .bottom-nav { padding-left: 4px; padding-right: 4px; }
    .bottom-nav .nav-item { font-size: 9px; }
    .bottom-nav .nav-icon { font-size: 18px; }
}

/* ========================================
   v1.4.1 — PRAY NAV MOBILE TAP FIX
======================================== */
#prayNav {
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 2;
}
#prayScreen {
    padding-bottom: calc(150px + env(safe-area-inset-bottom));
}


/* ========================================
   v1.5 — SOCIAL SHARE STUDIO + MOBILE CLEANUP
========================================= */
.reminder-time-wrap,
.reminder-time-wrap * { box-sizing: border-box; min-width: 0; }
.reminder-time-wrap { width: 100%; max-width: 100%; overflow: hidden; }
.reminder-time-wrap input[type="time"] {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    -webkit-appearance: none;
    appearance: none;
}
.btc-share-studio {
    position: fixed; inset: 0; z-index: 12000;
    display: flex; align-items: flex-end; justify-content: center;
    padding: 18px 14px calc(18px + env(safe-area-inset-bottom));
    background: rgba(0,0,0,.78); backdrop-filter: blur(12px);
}
.btc-share-studio[hidden] { display:none !important; }
.btc-share-sheet {
    width: min(100%, 520px); max-height: min(88vh, 760px); overflow:auto;
    border:1px solid rgba(212,175,55,.35); border-radius:24px;
    background:linear-gradient(160deg,#191816,#0b0b0b 65%);
    box-shadow:0 28px 80px rgba(0,0,0,.58); padding:20px;
}
.btc-share-sheet-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.btc-share-sheet-head h3 { margin:4px 0 4px; font-size:1.35rem; }
.btc-share-sheet-head p { margin:0; color:rgba(255,255,255,.58); font-size:.82rem; line-height:1.4; }
.btc-share-close { width:38px; height:38px; flex:0 0 38px; border-radius:50%; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.05); color:#fff; font-size:20px; }
.btc-share-preview { margin:18px auto; width:min(72%,280px); aspect-ratio:9/16; border-radius:18px; overflow:hidden; border:1px solid rgba(212,175,55,.28); background:#0b0b0b; box-shadow:0 18px 40px rgba(0,0,0,.35); }
.btc-share-preview canvas { display:block; width:100%; height:100%; }
.btc-share-format-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.btc-share-format-grid button,.btc-share-link-btn { min-height:58px; border-radius:15px; border:1px solid rgba(212,175,55,.3); background:rgba(212,175,55,.08); color:#fff; font-weight:800; padding:10px; }
.btc-share-format-grid button small { display:block; margin-top:3px; font-weight:500; opacity:.55; }
.btc-share-link-btn { width:100%; margin-top:10px; border-color:rgba(255,255,255,.12); background:rgba(255,255,255,.04); }
.btc-share-note { margin:12px 2px 0; font-size:.7rem; line-height:1.45; color:rgba(255,255,255,.45); text-align:center; }
@media(min-width:700px){.btc-share-studio{align-items:center}.btc-share-preview{width:220px}}


/* ========================================
   v1.5.2 — STRUCTURAL POLISH PASS
========================================= */
#todayScreen,#journeyScreen,#prayScreen,#favoritesScreen,#settingsScreen{
    padding-bottom:calc(160px + env(safe-area-inset-bottom));
}
#settingsScreen{padding-top:max(0px,env(safe-area-inset-top));}
.btc-settings-section{margin-top:22px;}
.btc-settings-section:first-of-type{margin-top:10px;}
.btc-settings-section h2{margin:7px 0 10px;}
.btc-settings-section .settings-group:first-of-type{margin-top:16px;}
#settingsScreen .header{padding-top:max(16px,env(safe-area-inset-top));}
#settingsScreen .btc-account-user strong{overflow-wrap:anywhere;word-break:break-word;}
#settingsScreen .feedback-section{padding-top:22px;border-top:1px solid rgba(255,255,255,.09);}
#settingsScreen .feedback-divider{display:none;}
.btc-end-day-card{margin-top:24px;}
.btc-end-day-card[hidden]{display:none!important;}
.btc-end-day-copy{margin:6px 0 14px;opacity:.64;line-height:1.5;font-size:.78rem;}
.btc-end-day-card.is-complete{border-color:rgba(212,175,55,.34);}
.btc-end-day-card.is-complete .reflection-saved{color:#e5c34f;opacity:.9;}
.reminder-time-wrap input[type="time"]{inline-size:100%!important;max-inline-size:100%!important;}
button,.nav-item{-webkit-tap-highlight-color:transparent;touch-action:manipulation;}
.bottom-nav .nav-item.active{transform:translateY(-2px);}
.bottom-nav .nav-item.active .nav-icon{filter:drop-shadow(0 0 8px rgba(212,175,55,.22));}
@media(max-width:430px){
  .btc-settings-section,.btc-account-card,.reminder-settings-card,.about-card{max-width:100%;box-sizing:border-box;}
  #settingsScreen input,#settingsScreen select,#settingsScreen textarea{max-width:100%;box-sizing:border-box;min-width:0;}
  .reflection-moods{grid-template-columns:repeat(2,1fr);}
  .reflection-moods button{min-height:72px;}
}


/* ========================================
   v1.7 — ACCOUNT MANAGEMENT
========================================= */
.btc-danger-zone{margin-top:18px;padding-top:18px;border-top:1px solid rgba(255,255,255,.09)}
.btc-danger-zone>span{display:block;font-size:.68rem;letter-spacing:.12em;text-transform:uppercase;opacity:.55;font-weight:800}
.btc-danger-zone p{margin:7px 0 12px;font-size:.76rem;line-height:1.5;opacity:.62}
.btc-delete-account{width:100%;min-height:48px;border-radius:14px;border:1px solid rgba(255,95,95,.38);background:rgba(255,70,70,.07);color:#ffaaaa;font-weight:800}
.btc-delete-account:active{transform:scale(.99)}


/* v1.7.1 — signed-out privacy gate */
.btc-session-gate{position:fixed;inset:0;z-index:9000;background:#0b0b0c;display:flex;align-items:center;justify-content:center;padding:calc(24px + env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom));}
.btc-session-gate[hidden]{display:none!important;}
.btc-session-gate-card{width:min(100%,420px);text-align:center;background:#151516;border:1px solid rgba(218,174,45,.28);border-radius:22px;padding:30px 22px;box-shadow:0 24px 70px rgba(0,0,0,.5);}
.btc-session-gate-card h2{margin:8px 0 10px;}
.btc-session-gate-card p{margin:0 0 22px;color:#aaa;line-height:1.5;}
.btc-session-gate-card button{width:100%;margin-top:10px;}
body.btc-session-locked{overflow:hidden!important;}
body.btc-session-locked .bottom-nav{visibility:hidden!important;}
body.btc-session-locked #btcAuthModal{z-index:9500;}

/* v1.8 — Privacy, Terms & Support */
.btc-legal-links{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
.btc-legal-links button,.btc-legal-back{min-height:44px;border:1px solid rgba(212,175,55,.35);border-radius:12px;background:rgba(255,255,255,.03);color:#f3df98;font:inherit;font-weight:700;cursor:pointer}
.btc-legal-links button{padding:11px 10px}
.btc-legal-screen{padding-bottom:calc(110px + env(safe-area-inset-bottom))}
.btc-legal-back{display:block;margin:8px 18px 14px;padding:10px 14px}
.btc-legal-card{margin:0 18px 28px;padding:22px 20px;border:1px solid rgba(212,175,55,.25);border-radius:18px;background:rgba(255,255,255,.025)}
.btc-legal-card h1{margin:6px 0 18px;font-size:1.8rem}
.btc-legal-copy h2{font-size:1.05rem;margin:22px 0 8px;color:#f3df98}
.btc-legal-copy p,.btc-legal-copy li{line-height:1.6;color:rgba(255,255,255,.82)}
.btc-legal-copy ul{padding-left:20px}
.btc-legal-copy a{color:#f3df98;overflow-wrap:anywhere}
.btc-legal-note{padding:12px 14px;border-left:3px solid #d4af37;background:rgba(212,175,55,.07);border-radius:8px}
@media(max-width:390px){.btc-legal-links{grid-template-columns:1fr}.btc-legal-card{margin-left:14px;margin-right:14px;padding:20px 16px}}

/* v1.8.1 — Legal/Support navigation + iPhone safe-area patch */
#legalScreen.btc-legal-screen{
  padding-top:max(12px, env(safe-area-inset-top, 0px));
  padding-bottom:calc(110px + env(safe-area-inset-bottom, 0px));
  min-height:100dvh;
  box-sizing:border-box;
}
#legalScreen .header{
  padding-top:0;
}
#legalScreen .btc-legal-back{
  margin-top:12px;
}


/* RC2 — iPhone safe-area hardening.
   All top-level screens reserve the Dynamic Island/notch area consistently.
   Settings already behaved correctly; this normalizes the remaining screens. */
@supports (padding-top: env(safe-area-inset-top)) {
  #todayScreen,
  #journeyScreen,
  #prayScreen,
  #favoritesScreen,
  #prayerModeScreen,
  #legalScreen {
    box-sizing: border-box;
    padding-top: max(16px, env(safe-area-inset-top));
  }
}
