:root {
    --navy: #17324d;
    --navy-soft: #2b4762;
    --green: #315f4d;
    --green-dark: #244a3c;
    --green-light: #e8f0eb;
    --gold: #d2a65b;
    --cream: #f6f1e7;
    --cream-light: #fbf8f2;
    --white: #ffffff;
    --text: #20364b;
    --muted: #6f7b86;
    --border: rgba(23, 50, 77, 0.11);
    --shadow-soft: 0 16px 40px rgba(23, 50, 77, 0.08);
    --shadow-card: 0 22px 60px rgba(23, 50, 77, 0.12);
    --radius-large: 30px;
    --radius-medium: 22px;
    --radius-small: 16px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 84% 10%, rgba(210, 166, 91, 0.10), transparent 24%),
        radial-gradient(circle at 10% 28%, rgba(49, 95, 77, 0.06), transparent 24%),
        var(--cream-light);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.container {
    width: min(calc(100% - 36px), var(--container));
    margin: 0 auto;
}


/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(251, 248, 242, 0.94);
    border-bottom: 1px solid rgba(23, 50, 77, 0.06);
    backdrop-filter: blur(16px);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-text strong {
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 700;
}

.brand-text small {
    margin-top: 6px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.9px;
}

.desktop-nav {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.76);
    border-color: var(--border);
    color: var(--navy);
}

.btn-outline:hover {
    background: var(--white);
    border-color: rgba(23, 50, 77, 0.18);
}

.btn-primary {
    background: var(--green);
    color: var(--white);
    box-shadow: 0 12px 28px rgba(49, 95, 77, 0.22);
}

.btn-primary:hover {
    background: var(--green-dark);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.92);
    border-color: var(--border);
    color: var(--navy);
    box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
    background: var(--white);
}

.btn-large {
    min-height: 54px;
    padding: 0 26px;
}

.menu-toggle {
    width: 44px;
    height: 44px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    width: 21px;
    height: 2px;
    border-radius: 2px;
    background: var(--navy);
}

.mobile-nav {
    display: none;
    padding: 12px 18px 18px;
    background: var(--cream-light);
    border-top: 1px solid var(--border);
}

.mobile-nav.open {
    display: grid;
}

.mobile-nav a {
    padding: 13px 8px;
    border-bottom: 1px solid rgba(23, 50, 77, 0.07);
    color: var(--navy);
    font-weight: 700;
}


/* HERO */

.hero {
    position: relative;
    overflow: hidden;
    padding: 52px 0 68px;
}

.hero::before {
    content: "";
    position: absolute;
    top: -170px;
    right: -140px;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: rgba(210, 166, 91, 0.10);
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -170px;
    left: -170px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: rgba(49, 95, 77, 0.05);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 48px;
}

.hero-copy {
    max-width: 660px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.hero h1,
.section-heading h2,
.signature-card h2,
.cta-card h2 {
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.hero h1 {
    margin: 0;
    font-size: clamp(54px, 12vw, 84px);
    line-height: 0.95;
}

.hero-description {
    max-width: 610px;
    margin: 24px 0 0;
    color: #46596b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(20px, 4.4vw, 28px);
    line-height: 1.45;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.hero-community {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
}

.hero-community p {
    max-width: 360px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.avatar-stack {
    display: flex;
    padding-left: 8px;
}

.avatar-stack span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin-left: -8px;
    border: 3px solid var(--cream-light);
    border-radius: 50%;
    background: var(--green-light);
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
}


/* HERO IMAGE */

.hero-image-wrap {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-wrap::before {
    content: "";
    position: absolute;
    width: 92%;
    height: 92%;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(232, 240, 235, 0.92) 0%,
        rgba(232, 240, 235, 0.42) 42%,
        rgba(232, 240, 235, 0) 72%
    );
}

.hero-image-card {
    position: relative;
    z-index: 2;
    width: min(100%, 520px);
    overflow: hidden;
    border-radius: 34px;
    box-shadow: 0 30px 70px rgba(23, 50, 77, 0.18);
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.floating-card {
    position: absolute;
    z-index: 3;
    display: flex;
    gap: 12px;
    padding: 15px;
    border: 1px solid rgba(23, 50, 77, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
}

.prayer-notice {
    top: 22px;
    right: -6px;
    width: 220px;
}

.notice-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f9e8eb;
    color: #c55e72;
    font-size: 22px;
}

.floating-card strong {
    display: block;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    line-height: 1.3;
}

.floating-card p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.promise-mini {
    right: 0;
    bottom: 20px;
    width: 225px;
}

.sun-icon {
    color: var(--gold);
    font-size: 26px;
}

.promise-mini div {
    display: grid;
    gap: 4px;
}

.promise-mini small {
    color: var(--green);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.promise-mini span:last-child {
    color: var(--muted);
    font-size: 10px;
}


/* GENERAL SECTIONS */

.section {
    padding: 74px 0;
}


/* TODAY'S PROMISE */

.promise-card {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.98),
            rgba(246, 241, 231, 0.95)
        );
    box-shadow: var(--shadow-soft);
}

.promise-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(210, 166, 91, 0.08);
}

.promise-card::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -110px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(49, 95, 77, 0.06);
}

.promise-card > * {
    position: relative;
    z-index: 1;
}

.promise-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.promise-label span {
    color: var(--gold);
    font-size: 25px;
}

.promise-label small {
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.promise-card blockquote {
    max-width: 860px;
    margin: 26px 0 12px;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(29px, 5.2vw, 44px);
    line-height: 1.24;
}

.verse-reference {
    margin: 0;
    color: var(--green);
    font-weight: 800;
}

.reflection {
    max-width: 760px;
    margin: 22px 0;
    color: var(--muted);
}

.text-link {
    color: var(--green);
    font-weight: 800;
}


/* COMMUNITY */

.community-section {
    background: rgba(255, 255, 255, 0.48);
    border-top: 1px solid rgba(23, 50, 77, 0.05);
    border-bottom: 1px solid rgba(23, 50, 77, 0.05);
}

.section-heading {
    max-width: 790px;
    margin-bottom: 34px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(38px, 6vw, 58px);
    line-height: 1.05;
}

.feature-grid {
    display: grid;
    gap: 18px;
}

.feature-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--green-light);
    color: var(--green);
    font-size: 26px;
}

.feature-card h3 {
    margin: 0 0 8px;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    line-height: 1.2;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
}


/* SIGNATURE */

.signature-section {
    padding-top: 54px;
    padding-bottom: 54px;
}

.signature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.signature-heart {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #f9e8eb;
    color: #c55e72;
    font-size: 38px;
}

.signature-card h2 {
    margin: 0;
    font-size: clamp(34px, 5vw, 48px);
    line-height: 1.05;
}

.signature-card p:last-child {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 18px;
}


/* FINAL CTA */

.final-cta {
    padding-top: 42px;
}

.cta-card {
    position: relative;
    overflow: hidden;
    padding: 52px 28px;
    border-radius: var(--radius-large);
    background:
        linear-gradient(
            135deg,
            rgba(232, 240, 235, 0.98),
            rgba(246, 241, 231, 0.98)
        );
    text-align: center;
}

.cta-card::before {
    content: "";
    position: absolute;
    top: -140px;
    left: -130px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(49, 95, 77, 0.07);
}

.cta-card::after {
    content: "";
    position: absolute;
    right: -150px;
    bottom: -160px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(210, 166, 91, 0.08);
}

.cta-card > * {
    position: relative;
    z-index: 1;
}

.cta-card h2 {
    max-width: 820px;
    margin: 0 auto 28px;
    font-size: clamp(40px, 6.2vw, 62px);
    line-height: 1.08;
}


/* FOOTER */

.site-footer {
    margin-top: 20px;
    padding: 38px 0;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.62);
}

.footer-inner {
    display: grid;
    gap: 24px;
    text-align: center;
}

.footer-brand .brand {
    justify-content: center;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    color: var(--muted);
    font-size: 14px;
}

.footer-nav a:hover {
    color: var(--navy);
}

.footer-inner > p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}


/* TABLET */

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }

    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .signature-card {
        flex-direction: row;
        align-items: center;
    }

    .hero-image-wrap {
        min-height: 600px;
    }
}


/* DESKTOP */

@media (min-width: 900px) {
    .header-inner {
        min-height: 90px;
    }

    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 30px;
        color: #475c70;
        font-size: 14px;
        font-weight: 700;
    }

    .desktop-nav a {
        position: relative;
        padding: 33px 0;
    }

    .desktop-nav a::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 23px;
        left: 0;
        height: 2px;
        transform: scaleX(0);
        transform-origin: center;
        background: var(--green);
        transition: transform 0.2s ease;
    }

    .desktop-nav a:hover::after,
    .desktop-nav a.active::after {
        transform: scaleX(1);
    }

    .menu-toggle {
        display: none;
    }

    .mobile-nav,
    .mobile-nav.open {
        display: none;
    }

    .hero {
        padding: 80px 0 88px;
    }

    .hero-grid {
        grid-template-columns: 0.9fr 1.1fr;
        align-items: center;
        gap: 70px;
    }

    .hero-image-wrap {
        min-height: 620px;
    }

    .hero-image-card {
        width: 540px;
    }

    .prayer-notice {
        top: 42px;
        right: -18px;
        width: 260px;
    }

    .promise-mini {
        right: -6px;
        bottom: 44px;
        width: 255px;
    }

    .section {
        padding: 94px 0;
    }

    .promise-card {
        padding: 52px;
    }

    .feature-card {
        padding: 32px;
    }

    .signature-card {
        padding: 44px;
    }

    .footer-inner {
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        text-align: left;
    }

    .footer-brand .brand {
        justify-content: flex-start;
    }

    .footer-inner > p {
        text-align: right;
    }
}


/* MOBILE */

@media (max-width: 639px) {
    .btn-outline {
        display: none;
    }

    .header-inner {
        min-height: 72px;
    }

    .brand-logo {
        width: 38px;
        height: 38px;
    }

    .app-header .brand-text {
        display: none;
    }

    .brand {
        gap: 8px;
        flex-shrink: 0;
    }

    .header-actions {
        margin-left: 16px;
    }

    .brand-text small {
        font-size: 7px;
        letter-spacing: 1.5px;
    }

    .hero {
        padding-top: 42px;
    }

    .hero-copy {
        text-align: left;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-image-wrap {
        min-height: 470px;
        margin-top: 4px;
    }

    .hero-image-card {
        width: min(100%, 390px);
        border-radius: 28px;
    }

    .prayer-notice {
        top: 0;
        right: -12px;
        width: 182px;
        padding: 12px;
    }

    .promise-mini {
        right: -12px;
        bottom: 6px;
        width: 192px;
        padding: 12px;
    }

    .floating-card strong {
        font-size: 12px;
    }

    .floating-card p {
        font-size: 9px;
    }

    .promise-card,
    .feature-card,
    .signature-card {
        padding: 24px;
    }

    .section {
        padding: 66px 0;
    }

    .signature-card {
        align-items: flex-start;
    }

    .cta-card {
        padding: 44px 24px;
    }
}


/* VERY SMALL MOBILE */

@media (max-width: 380px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .hero h1 {
        font-size: 50px;
    }

    .hero-description {
        font-size: 20px;
    }

    .hero-image-wrap {
        min-height: 430px;
    }

    .prayer-notice {
        width: 168px;
    }

    .promise-mini {
        width: 178px;
    }
}

/* LOGIN */

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 0;
}

.login-card {
    width: min(100%, 520px);
    margin: 0 auto;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-card);
}

.login-brand {
    margin-bottom: 30px;
}

.login-heading h1 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    line-height: 1.08;
}

.login-heading > p:last-child {
    margin: 12px 0 0;
    color: var(--muted);
}

.login-error {
    margin-top: 22px;
    padding: 14px 16px;
    border: 1px solid rgba(160, 55, 55, 0.16);
    border-radius: 14px;
    background: #fff1f1;
    color: #8b2f2f;
    font-size: 14px;
}

.login-form {
    display: grid;
    gap: 20px;
    margin-top: 28px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    color: var(--text);
    outline: none;
}

.form-group input:focus {
    border-color: rgba(49, 95, 77, 0.45);
    box-shadow: 0 0 0 4px rgba(49, 95, 77, 0.08);
}

#comments textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    resize: vertical;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.remember-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.remember-row input {
    width: 16px;
    height: 16px;
}

.forgot-link {
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
}

.login-button {
    width: 100%;
    border: 0;
    cursor: pointer;
}

.login-back {
    margin: 24px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 639px) {
    .login-page {
        padding: 24px 0;
    }

    .login-card {
        padding: 24px;
    }

    .login-heading h1 {
        font-size: 32px;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
    }
}

.login-create {
    margin: 22px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.login-create a {
    color: var(--green);
    font-weight: 800;
}

.login-success {
    margin-top: 22px;
    padding: 14px 16px;
    border: 1px solid rgba(49, 95, 77, 0.18);
    border-radius: 14px;
    background: #edf6f0;
    color: var(--green-dark);
    font-size: 14px;
}

/* DASHBOARD */

.dashboard-page {
    padding: 56px 0 80px;
}

.dashboard-welcome {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 30px;
}

.dashboard-welcome h1 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 6vw, 56px);
    line-height: 1.05;
}

.dashboard-username {
    margin: 10px 0 0;
    color: var(--muted);
}

.dashboard-username-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.dashboard-username-share .dashboard-username {
    margin: 0;
}

.dashboard-share-button {
    display: none;
}

@media (max-width: 639px) {
    .dashboard-username-share {
        gap: 10px;
    }

    .dashboard-share-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 32px;
        padding: 0 12px;
        font-size: 11px;
    }
}

.dashboard-role {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--green-light);
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 800;
}

.dashboard-grid {
    display: grid;
    gap: 22px;
}

.dashboard-main-card,
.dashboard-side-card,
.dashboard-activity {
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.dashboard-main-card {
    padding: 30px;
}

.dashboard-main-card blockquote {
    margin: 24px 0 12px;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 5vw, 42px);
    line-height: 1.25;
}

.dashboard-side-card {
    padding: 30px;
}

.dashboard-side-card h2 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    line-height: 1.15;
}

.dashboard-actions {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.dashboard-activity {
    margin-top: 22px;
    padding: 30px;
}

.dashboard-section-heading h2 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
}

.dashboard-empty-state {
    margin-top: 24px;
    padding: 34px 20px;
    border: 1px dashed rgba(23, 50, 77, 0.15);
    border-radius: var(--radius-medium);
    background: var(--cream-light);
    text-align: center;
}

.dashboard-empty-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #f9e8eb;
    color: #c55e72;
    font-size: 28px;
}

.dashboard-empty-state h3 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
}

.dashboard-empty-state p {
    max-width: 560px;
    margin: 10px auto 0;
    color: var(--muted);
}

@media (min-width: 900px) {
    .dashboard-welcome {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    .dashboard-grid {
        grid-template-columns: 1.35fr 0.65fr;
    }

    .dashboard-main-card,
    .dashboard-side-card,
    .dashboard-activity {
        padding: 38px;
    }
}

/* LOGGED-IN USER NAV */

.user-nav {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 4px 10px 4px 5px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
}

.user-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
}

.user-nav-name {
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 639px) {
    .user-nav {
        padding-right: 5px;
    }

    .user-nav-name {
        display: none;
    }
}

/* PROFILE */

.profile-avatar-section {
    display: grid;
    gap: 26px;
}

.profile-avatar-image,
.profile-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.profile-avatar-image {
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-soft);
}

.profile-avatar-placeholder {
    display: grid;
    place-items: center;
    background: var(--green);
    color: var(--white);
    font-size: 42px;
    font-weight: 800;
}

.profile-avatar-section .login-form {
    max-width: 460px;
}

.user-avatar-image {
    object-fit: cover;
}

/* DASHBOARD STATS */

.dashboard-stats {
    display: grid;
    gap: 16px;
    margin-bottom: 22px;
}

.dashboard-stat-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.dashboard-stat-label {
    display: block;
    margin-bottom: 8px;
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.dashboard-stat-card strong {
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
}

@media (min-width: 700px) {
    .dashboard-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ADMIN */

.admin-user-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.admin-user-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.admin-user-row:last-child {
    border-bottom: 0;
}

.admin-user-row strong {
    display: block;
    color: var(--navy);
    font-size: 16px;
}

.admin-user-row span {
    color: var(--muted);
    font-size: 13px;
}

.admin-user-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-user-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--green-light);
    color: var(--green-dark);
    font-size: 11px;
    font-weight: 800;
}

@media (min-width: 700px) {
    .admin-user-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.admin-user-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-user-dates {
    display: grid;
    gap: 3px;
}

.admin-user-dates small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.admin-user-dates strong {
    color: var(--navy);
    font-size: 13px;
}

@media (min-width: 900px) {
    .admin-user-row {
        display: grid;
        grid-template-columns: minmax(0, 1.5fr) auto minmax(180px, 0.7fr);
        align-items: center;
        gap: 20px;
    }
}

/* ADMIN USER MANAGEMENT */

.admin-user-link {
    color: inherit;
    text-decoration: none;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.admin-user-link:hover {
    background: rgba(49, 95, 77, 0.04);
    transform: translateY(-1px);
}

.form-group select {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    color: var(--text);
    outline: none;
}

.form-group select:focus {
    border-color: rgba(49, 95, 77, 0.45);
    box-shadow: 0 0 0 4px rgba(49, 95, 77, 0.08);
}

[hidden] {
    display: none !important;
}

/* PWA OFFLINE */

.offline-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding:
        calc(32px + env(safe-area-inset-top))
        0
        calc(32px + env(safe-area-inset-bottom));
}

.offline-card {
    width: min(100%, 560px);
    margin: 0 auto;
    padding: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-card);
    text-align: center;
}

.offline-logo {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
}

.offline-card h1 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 8vw, 54px);
    line-height: 1.05;
}

.offline-card p {
    max-width: 430px;
    margin: 14px auto 0;
    color: var(--muted);
}

.offline-card .btn {
    margin-top: 26px;
}

/* PHASE 2 APP SHELL */

.app-body {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
}

.app-header {
    padding-top: env(safe-area-inset-top);
}

.app-dashboard {
    padding-top: 34px;
}

.app-greeting {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.app-greeting h1 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 8vw, 54px);
    line-height: 1.05;
}

.app-promise-card {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.98),
            rgba(246, 241, 231, 0.96)
        );
    box-shadow: var(--shadow-soft);
}

.app-promise-card blockquote {
    margin: 22px 0 12px;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 6vw, 40px);
    line-height: 1.22;
}

.app-primary-actions {
    display: grid;
    gap: 14px;
    margin: 20px 0 24px;
}

.app-action-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 96px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.app-action-primary {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

.app-action-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(49, 95, 77, 0.10);
    color: var(--green);
    font-size: 24px;
}

.app-action-primary .app-action-icon {
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
}

.app-action-card strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    line-height: 1.15;
}

.app-action-card small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.app-action-primary small {
    color: rgba(255, 255, 255, 0.78);
}

.app-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: 72px;
    padding:
        8px
        8px
        calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: #ffffff;
    box-shadow: 0 -10px 30px rgba(23, 50, 77, 0.08);
    transform: translateZ(0);
    will-change: transform;
}

.app-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 52px;
    border-radius: 14px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.app-nav-item.active {
    background: var(--green-light);
    color: var(--green-dark);
}

.app-nav-icon {
    font-size: 21px;
    line-height: 1;
}

@media (min-width: 700px) {
    .app-primary-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-greeting {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

@media (min-width: 900px) {
    .app-body {
        padding-bottom: 0;
    }

    .app-bottom-nav {
        display: none;
    }
}

@media (max-width: 639px) {
    .app-desktop-action {
        display: none;
    }

    .app-header .brand-text small {
        display: none;
    }

    .app-header .header-inner {
        min-height: 66px;
    }

    .app-dashboard {
        padding-top: 24px;
    }

    .app-promise-card {
        padding: 22px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-activity {
        margin-bottom: 12px;
    }

    .dashboard-role {
        display: none;
    }

    .dashboard-username-share {
        margin-top: 8px;
    }
}

@media (display-mode: standalone) {
    .app-header {
        padding-top: max(
            env(safe-area-inset-top),
            6px
        );
    }

    .app-dashboard {
        padding-top: 20px;
    }
}

.dashboard-cover {
    box-sizing: border-box;
    width: 100%;
    max-width: 1100px;
    height: clamp(150px, 28vw, 340px);
    margin: 0 auto 1.5rem;
    padding: 0.4rem;
    border-radius: 1.4rem;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.dashboard-cover-image {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    object-fit: cover;
    object-position: center;
}

.live-prayer-popup {
    position: fixed;
    top: calc(92px + env(safe-area-inset-top));
    left: 50%;
    z-index: 1500;
    width: min(calc(100% - 32px), 520px);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    transform: translateX(-50%);
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 45px rgba(23, 50, 77, 0.18);
}

.live-prayer-popup-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--green-light);
    font-size: 22px;
}

.live-prayer-popup-content {
    min-width: 0;
    flex: 1;
}

.live-prayer-popup-content strong {
    display: block;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.25;
}

.live-prayer-popup-content span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.live-prayer-popup-close {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 639px) {
    .live-prayer-popup {
        top: calc(76px + env(safe-area-inset-top));
        padding: 14px;
    }
}

/* Phase 8 — Language switcher */

.language-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.language-switcher label {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 16px;
}

.language-switcher select {
    min-height: 36px;
    padding: 0 28px 0 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    color: inherit;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

@media (max-width: 639px) {
    .language-switcher label .sr-only {
        display: none;
    }

    .language-switcher select {
        max-width: 105px;
        min-height: 34px;
        font-size: 12px;
    }
}
