* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hidden {
    display: none !important;
}

:root {
    --primary-color: #b8a58e;
    --primary-hover: #a39280;
    --text-dark: #5a4a3a;
    --text-light: #8b7b6b;
    --background: #f5f3f0;
    --white: #ffffff;
    --cream: #e8e3dc;
    --beige: #d4cdc3;
    --tan: #b8a58e;
    --shadow-sm: 0 1px 3px 0 rgba(90, 74, 58, 0.08), 0 1px 2px -1px rgba(90, 74, 58, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(90, 74, 58, 0.08), 0 2px 4px -2px rgba(90, 74, 58, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(90, 74, 58, 0.08), 0 4px 6px -4px rgba(90, 74, 58, 0.06);
    --shadow-xl: 0 20px 25px -5px rgba(90, 74, 58, 0.1), 0 8px 10px -6px rgba(90, 74, 58, 0.08);
    --border-radius: 20px;
}

.cross-icon {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9em;
}

/* Intro overlay (iOS-inspired) */
.intro-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(245, 243, 240, 0.95) 0%, rgba(232, 227, 220, 0.92) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    font-family: 'Bropella', serif;
}

.intro-shell {
    width: min(430px, 100vw);
    height: min(820px, 100vh);
    padding: 50px 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 24px;
}

.intro-header {
    width: 100%;
    text-align: center;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Bropella', serif;
    letter-spacing: 0.03em;
    line-height: 1.25;
    margin-top: 14px;
    margin-bottom: 18px;
}

.intro-mascot {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.intro-mascot img {
    width: min(46vw, 150px);
    height: auto;
    object-fit: contain;
    filter: none;
    animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

.intro-button {
    width: 100%;
    background: #b8a58ed9;
    color: white;
    border: none;
    border-radius: 14px;
    padding: 18px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: transform 0.12s ease, filter 0.12s ease;
    text-transform: none;
    font-family: 'Playfair Display', serif;
    margin-top: auto;
}

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

.intro-overlay.hidden {
    display: none;
}

/* Onboarding overlay */
.onboard-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(245, 243, 240, 0.95) 0%, rgba(232, 227, 220, 0.92) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9997;
    font-family: 'Bropella', serif;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.onboard-overlay.hidden {
    display: none;
}

.onboard-shell {
    width: min(430px, 100vw);
    height: min(820px, 100vh);
    padding: 48px 22px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: flex-start;
}

.onboard-logo {
    width: 100%;
    display: flex;
    justify-content: center;
}

.onboard-logo img {
    width: min(140px, 50vw);
    height: auto;
    object-fit: contain;
}

.onboard-logo .logo-text {
    font-size: clamp(1.9rem, 7vw, 2.6rem);
    gap: 8px;
}

.onboard-logo .logo-t-script {
    font-size: 1.32em;
}

.onboard-steps {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.onboard-step {
    display: grid;
    grid-template-columns: 32px 1fr;
    align-items: start;
    gap: 12px;
}

.onboard-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #b8a58ed9;
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 0.55s ease, transform 0.55s ease;
    justify-self: center;
    align-self: center;
}

.onboard-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.onboard-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-dark);
    font-family: 'Playfair Display', serif;
}

.onboard-body {
    font-size: 0.98rem;
    color: var(--text-dark);
    line-height: 1.5;
    font-family: 'Playfair Display', serif;
}

.onboard-connector {
    display: grid;
    grid-template-columns: 32px 1fr;
    align-items: start;
}

.onboard-line {
    grid-column: 1;
    justify-self: center;
    width: 2px;
    height: 34px;
    background: #b8a58ed9;
    opacity: 0;
    transform: scaleY(0.2);
    transform-origin: top;
    transition: opacity 0.65s ease, transform 0.65s ease;
    margin-top: -4px;
}

.onboard-button {
    width: 100%;
    background: #b8a58ed9;
    color: white;
    border: none;
    border-radius: 14px;
    padding: 15px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    text-transform: none;
    transition: transform 0.12s ease;
    font-family: 'Playfair Display', serif;
}

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

.onboard-link {
    text-align: center;
    color: var(--text-light);
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    cursor: pointer;
    margin-top: -6px;
    transition: color 0.15s ease;
}

.onboard-link:hover,
.onboard-link:focus {
    color: var(--text-dark);
}

/* Zip overlays */
.zip-overlay,
.zip-fullmap-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(245, 243, 240, 0.96) 0%, rgba(232, 227, 220, 0.95) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9996;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.zip-overlay.hidden,
.zip-fullmap-overlay.hidden {
    display: none;
}

.zip-shell {
    width: min(430px, 100vw);
    height: min(820px, 100vh);
    padding: 44px 22px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.zip-header {
    font-family: 'Bropella', serif;
    font-size: 2rem;
    color: var(--text-dark);
    text-align: center;
    letter-spacing: 0.03em;
}

.zip-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: var(--shadow-sm);
}

.zip-input {
    width: 100%;
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.05rem;
    color: var(--text-dark);
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.04em;
}

.zip-send {
    width: 52px;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #b8a58e, #d7c7af);
    color: #1f1a15;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateX(6px) scale(0.96);
    transition: opacity 0.18s ease, transform 0.18s ease, filter 0.2s ease;
}

.zip-send .icon {
    width: 22px;
    height: 22px;
}

.zip-send:hover {
    filter: brightness(1.03);
}

.zip-send:active {
    transform: translateX(6px) scale(0.94);
}

.zip-input-row.send-visible .zip-send {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) scale(1);
}

.zip-input::placeholder {
    color: var(--text-light);
}

.zip-status {
    min-height: 20px;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-family: 'Playfair Display', serif;
}

.zip-note {
    min-height: 18px;
    font-size: 0.95rem;
    color: var(--text-light);
    font-family: 'Playfair Display', serif;
    text-align: center;
}

.zip-map-preview {
    width: 100%;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.8);
}

.zip-submit,
.zip-close {
    width: 100%;
    background: #b8a58ed9;
    color: white;
    border: none;
    border-radius: 14px;
    padding: 15px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    text-transform: none;
    transition: transform 0.12s ease;
    font-family: 'Playfair Display', serif;
}

.zip-submit:active,
.zip-close:active {
    transform: scale(0.98);
}

.zip-fullmap-shell {
    width: min(900px, 94vw);
    height: min(720px, 88vh);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zip-fullmap-header {
    font-family: 'Bropella', serif;
    font-size: 2rem;
    color: var(--text-dark);
    text-align: center;
}

.zip-fullmap {
    flex: 1;
    width: 100%;
    min-height: 320px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.85);
}

.leaflet-container {
    width: 100%;
    height: 100%;
    font: inherit;
}

/* Timeline animation states */
.onboard-steps.animate .onboard-step:nth-child(1) .onboard-circle { opacity: 1; transform: scale(1); transition-delay: 0.10s; }
.onboard-steps.animate .onboard-step:nth-child(1) .onboard-text { opacity: 1; transform: translateY(0); transition-delay: 0.20s; }
.onboard-steps.animate .onboard-connector:nth-child(2) .onboard-line { opacity: 1; transform: scaleY(1); transition-delay: 0.80s; }
.onboard-steps.animate .onboard-step:nth-child(3) .onboard-circle { opacity: 1; transform: scale(1); transition-delay: 1.05s; }
.onboard-steps.animate .onboard-step:nth-child(3) .onboard-text { opacity: 1; transform: translateY(0); transition-delay: 1.20s; }
.onboard-steps.animate .onboard-connector:nth-child(4) .onboard-line { opacity: 1; transform: scaleY(1); transition-delay: 1.70s; }
.onboard-steps.animate .onboard-step:nth-child(5) .onboard-circle { opacity: 1; transform: scale(1); transition-delay: 1.95s; }
.onboard-steps.animate .onboard-step:nth-child(5) .onboard-text { opacity: 1; transform: translateY(0); transition-delay: 2.10s; }

@font-face {
    font-family: 'Bropella';
    src: url('Bropella.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Playfair Display', Georgia, serif;
    background: var(--background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    color: var(--text-dark);
    position: relative;
}

.background-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.background-image.active {
    opacity: 0.6;
}

.background-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 243, 240, 0.4) 0%, rgba(232, 227, 220, 0.4) 50%, rgba(212, 205, 195, 0.4) 100%);
}

.titlebar {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 20px 40px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.account-button {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: none;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}


.logo {
    font-family: 'Bropella', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: lowercase;
}

.logo-text {
    display: inline-flex;
    gap: 6px;
    align-items: baseline;
}

.logo-word {
    font-family: 'Bropella', serif;
    text-transform: lowercase;
}

.logo-the {
    display: inline-flex;
    gap: 2px;
    align-items: baseline;
}

.logo-t-script {
    font-family: 'Segoe Script', cursive;
    font-size: 1.12em;
}

.container {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 20px 20px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

main {
    position: relative;
    width: 100%;
}

.verse-box {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 50px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    margin-bottom: 20px;
    min-height: 40vh;
    max-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.verse-box.showing-saved {
    overflow-y: auto;
}

.verse-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 25px;
    font-weight: 400;
}

.holy-word {
    text-shadow: 0 0 8px rgba(255, 223, 0, 1),
                 0 0 16px rgba(255, 223, 0, 0.8),
                 0 0 24px rgba(255, 223, 0, 0.6),
                 0 0 32px rgba(255, 215, 0, 0.4);
    font-weight: 500;
    color: #fff;
    animation: holy-glow 2s ease-in-out infinite alternate;
}

@keyframes holy-glow {
    from {
        text-shadow: 0 0 8px rgba(255, 223, 0, 1),
                     0 0 16px rgba(255, 223, 0, 0.8),
                     0 0 24px rgba(255, 223, 0, 0.6),
                     0 0 32px rgba(255, 215, 0, 0.4);
    }
    to {
        text-shadow: 0 0 12px rgba(255, 223, 0, 1),
                     0 0 24px rgba(255, 223, 0, 0.9),
                     0 0 36px rgba(255, 223, 0, 0.7),
                     0 0 48px rgba(255, 215, 0, 0.5);
    }
}

.verse-reference {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
    text-align: right;
    letter-spacing: 0.5px;
}

.button-container {
    display: flex;
    gap: 15px;
    align-items: stretch;
}

.save-button {
    flex: 1;
    background: rgba(184, 165, 142, 0.85);
    color: var(--white);
    border: none;
    padding: 18px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    font-family: 'Playfair Display', serif;
    transition: background 0.2s;
}

.save-button:hover {
    background: rgba(163, 146, 128, 0.95);
    box-shadow: var(--shadow-lg);
}

.save-button.saved {
    background: rgba(139, 123, 107, 0.85);
}

.save-button.saved:hover {
    background: rgba(122, 107, 91, 0.95);
}

.share-button {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: none;
    padding: 18px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: background 0.2s;
}

.share-button:hover {
    background: rgba(232, 227, 220, 0.85);
    box-shadow: var(--shadow-lg);
}

.saved-verses-button {
    width: 100%;
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--beige);
    padding: 18px 32px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: var(--shadow-md);
    font-family: 'Playfair Display', serif;
    margin-top: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.saved-verses-button span {
    transition: opacity 0.2s ease;
}

.saved-verses-button.showing-close span {
    display: none;
}

.saved-verses-button.showing-close {
    padding: 18px 20px;
    gap: 0;
}

.saved-verses-button.showing-close .icon {
    transform: rotate(0deg);
}

.saved-verses-button:hover {
    background: var(--cream);
    border-color: var(--tan);
    box-shadow: var(--shadow-lg);
}

.saved-verses-button .icon {
    color: var(--primary-color);
}

.icon {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

footer {
    text-align: center;
    padding: 30px 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.date {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: lowercase;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 18px;
    border-radius: 25px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(90, 74, 58, 0.15);
}

.visit-counter {
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: lowercase;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 18px;
    border-radius: 25px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(90, 74, 58, 0.15);
}

.notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(184, 165, 142, 0.95);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 16px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    box-shadow: var(--shadow-xl);
    text-transform: lowercase;
}

/* Auth and streak UI removed */

.notification.show {
    opacity: 1;
}

.saved-verses-view {
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Assist bubble + FAB */
.assist-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    z-index: 1200;
}

.assist-fab:active {
    transform: scale(0.96);
    box-shadow: var(--shadow-lg);
}

.assist-fab img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.assist-bubble {
    position: fixed;
    bottom: 96px;
    right: 20px;
    max-width: 260px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(6px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1201;
}

.assist-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 18px;
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.9);
    transform: rotate(45deg);
    box-shadow: var(--shadow-sm);
}

.assist-bubble.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.saved-verses-view.active {
    display: flex;
    opacity: 1;
}

.saved-verses-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--cream);
}

.saved-verses-header h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
    text-transform: lowercase;
}

.close-saved-verses {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-saved-verses:hover {
    background: var(--cream);
    color: var(--text-dark);
}

.close-saved-verses svg {
    width: 24px;
    height: 24px;
}

.saved-verses-container {
    flex: 1;
    overflow-y: auto;
}

.daily-verse-view {
    transition: opacity 0.3s ease;
}

.daily-verse-view.hidden {
    display: none;
    opacity: 0;
}

.no-verses {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    padding: 40px 20px;
    text-transform: lowercase;
}

.saved-verse-item {
    background: rgba(232, 227, 220, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 15px;
}

.saved-verse-item:last-child {
    margin-bottom: 0;
}

.saved-verse-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.saved-verse-reference {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 10px;
}

.saved-verse-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 12px;
    text-transform: lowercase;
}

.saved-verse-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.share-saved-verse {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: background 0.2s;
}

.share-saved-verse:hover {
    background: rgba(212, 205, 195, 0.85);
}

.share-saved-verse .icon {
    width: 18px;
    height: 18px;
}

.delete-saved-verse {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: background 0.2s;
}

.delete-saved-verse:hover {
    background: rgba(212, 205, 195, 0.85);
}

.delete-saved-verse .icon {
    width: 18px;
    height: 18px;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(90, 74, 58, 0.2);
    border-top: 4px solid var(--text-dark);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-family: 'Bropella', serif;
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: lowercase;
}

.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(90, 74, 58, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    padding: 20px;
    overflow-y: auto;
}

.auth-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    max-width: 400px;
    width: 100%;
    padding: 40px 30px;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.auth-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.auth-modal-close:hover {
    background: var(--cream);
    color: var(--text-dark);
}

.auth-modal-close svg {
    width: 24px;
    height: 24px;
}

.auth-form-container {
    width: 100%;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form.hidden,
.account-profile.hidden {
    display: none;
}

.auth-form h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 0 0 15px 0;
    text-transform: lowercase;
}

.auth-form input {
    padding: 12px 15px;
    border: 2px solid var(--beige);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
    transition: border-color 0.2s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.auth-submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Playfair Display', serif;
    text-transform: lowercase;
    transition: background 0.2s;
}

.auth-submit-btn:hover {
    background: var(--primary-hover);
}

.auth-switch {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    text-transform: lowercase;
}

.link-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
    padding: 0;
    text-transform: lowercase;
}

.link-btn:hover {
    color: var(--primary-hover);
}

.account-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Streak panel */
.streak-panel-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(90, 74, 58, 0.25);
    backdrop-filter: blur(2px);
    z-index: 1500;
}

.streak-panel {
    position: fixed;
    top: 80px;
    right: 30px;
    width: min(420px, 90vw);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    padding: 24px;
    z-index: 1600;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}

.streak-panel-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 0 6px 0;
}

.streak-hero-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(184, 165, 142, 0.15);
    display: grid;
    place-items: center;
    color: var(--primary-color);
    box-shadow: inset 0 0 0 1px rgba(184, 165, 142, 0.25);
}

.streak-hero-icon svg {
    width: 46px;
    height: 46px;
}

.streak-hero-count {
    font-family: 'Bropella', serif;
    font-size: 3rem;
    color: var(--text-dark);
    font-weight: 400;
    line-height: 1.1;
    text-align: center;
}

.streak-hero-label {
    font-size: 1rem;
    color: var(--text-light);
    text-transform: lowercase;
    text-align: center;
    letter-spacing: 0.5px;
}

.streak-close {
    background: rgba(232, 227, 220, 0.6);
    border: none;
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    color: var(--text-light);
    transition: background 0.2s ease, color 0.2s ease;
    align-self: flex-end;
}

.streak-close:hover {
    background: rgba(212, 205, 195, 0.9);
    color: var(--text-dark);
}

.streak-calendar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}

.streak-day {
    background: rgba(232, 227, 220, 0.6);
    border-radius: 14px;
    padding: 12px 10px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(184, 165, 142, 0.25);
    min-height: 78px;
}

.streak-day .day-number {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.streak-day .day-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: lowercase;
    margin-top: 6px;
}

.streak-day .day-fire {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(184, 165, 142, 0.18);
    color: var(--primary-color);
    margin-bottom: 8px;
}

.streak-day.done {
    background: rgba(184, 165, 142, 0.18);
    border-color: rgba(184, 165, 142, 0.45);
    box-shadow: var(--shadow-md);
}

.streak-day.missed {
    opacity: 0.4;
}

.streak-panel-footer {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: lowercase;
}

.streak-section {
    width: 100%;
    padding: 25px;
    background: rgba(232, 227, 220, 0.6);
    border-radius: 15px;
    text-align: center;
}

.streak-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.streak-number {
    font-family: 'Bropella', serif;
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: 400;
}

.streak-label {
    font-size: 0.95rem;
    color: var(--text-light);
    text-transform: lowercase;
}

.user-email {
    color: var(--text-dark);
    font-size: 0.95rem;
    text-transform: lowercase;
}

.logout-btn {
    width: 100%;
    background: rgba(184, 165, 142, 0.85);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Playfair Display', serif;
    text-transform: lowercase;
    transition: background 0.2s;
}

.logout-btn:hover {
    background: var(--primary-hover);
}

@media (max-width: 768px) {
    .titlebar {
        padding: 18px 25px;
    }

    .streak-panel {
        top: 70px;
        right: 16px;
    }

    .logo {
        font-size: 1.5rem;
    }

    .container {
        padding: 40px 20px 20px;
    }

    .verse-box {
        padding: 35px 25px;
        min-height: 45vh;
    }

    .verse-text {
        font-size: 1.5rem;
        line-height: 1.7;
    }

    .verse-reference {
        font-size: 0.9rem;
    }

    .save-button {
        padding: 16px 18px;
        min-height: 44px;
    }

    .share-button {
        padding: 16px 18px;
        min-height: 44px;
    }

    .saved-verses-button {
        padding: 16px 28px;
        font-size: 1rem;
        margin-top: 12px;
        min-height: 44px;
    }

    .icon {
        width: 22px;
        height: 22px;
    }

    footer {
        padding: 25px 20px;
    }
    
    .assist-fab {
        bottom: 25px;
        right: 25px;
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .titlebar {
        padding: 16px 20px;
    }

    .streak-panel {
        right: 10px;
        left: 10px;
        width: auto;
    }

    .logo {
        font-size: 1.6rem;
    }

    .container {
        padding: 30px 15px 15px;
    }

    .verse-box {
        padding: 30px 20px;
        margin-bottom: 15px;
        min-height: auto;
    }

    .verse-text {
        font-size: 1.4rem;
        line-height: 1.65;
        margin-bottom: 20px;
    }

    .verse-reference {
        font-size: 0.85rem;
    }

    .button-container {
        gap: 10px;
    }

    .save-button {
        padding: 14px 16px;
        min-height: 48px;
    }

    .share-button {
        padding: 14px 16px;
        min-height: 48px;
    }

    .saved-verses-button {
        padding: 14px 20px;
        font-size: 0.95rem;
        gap: 10px;
        margin-top: 10px;
        min-height: 48px;
    }

    .icon {
        width: 20px;
        height: 20px;
    }

    footer {
        padding: 20px 15px;
    }

    .date {
        font-size: 0.85rem;
    }

    .notification {
        bottom: 20px;
        padding: 12px 20px;
        font-size: 0.9rem;
        max-width: 90%;
    }
    
    .assist-fab {
        bottom: 20px;
        right: 16px;
        width: 56px;
        height: 56px;
    }
    
    .intro-header {
        font-size: 1.7rem;
    }
    
    .onboard-logo {
        font-size: 1.5rem;
    }
    
    .zip-header {
        font-size: 1.3rem;
    }
    
    .zip-input {
        font-size: 1.1rem;
        padding: 14px;
        min-height: 48px;
    }
    
    .zip-submit {
        min-height: 48px;
        font-size: 1rem;
        padding: 14px;
    }
}
