@import url('https://fonts.googleapis.com/css2?family=Allura&family=Bricolage+Grotesque:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Sora:wght@500;600;700&display=swap');

:root {
    --ink: #20184f;
    --text: #182033;
    --muted: #65738a;
    --paper: #f8fbff;
    --surface: rgba(255, 255, 255, .86);
    --solid: #ffffff;
    --line: rgba(92, 109, 138, .18);
    --violet: #7c3aed;
    --cyan: #06b6d4;
    --green: #22c55e;
    --amber: #facc15;
    --rose: #f43f5e;
    --blue: #3b82f6;
    --shadow: 0 24px 70px rgba(65, 45, 146, .16);
    --soft-shadow: 0 14px 34px rgba(72, 82, 119, .12);
    --radius: 14px;
    --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", sans-serif;
    --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
    --font-ui: "Sora", "Plus Jakarta Sans", sans-serif;
    --font-signature: "Allura", "Bricolage Grotesque", cursive;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, .16), transparent 34rem),
        radial-gradient(circle at 85% 8%, rgba(6, 182, 212, .18), transparent 32rem),
        linear-gradient(180deg, #ffffff 0, #f8fbff 42%, #eef7ff 100%);
    font-family: var(--font-body);
    line-height: 1.58;
}

::selection {
    color: #fff;
    background: rgba(32, 24, 79, .82);
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(1220px, calc(100% - 36px));
    margin: 0 auto;
}

.site-shell {
    min-height: 100vh;
    overflow: clip;
}

.topbar {
    color: #fff;
    background: linear-gradient(90deg, var(--violet), var(--cyan), var(--green));
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
}

.topbar .container,
.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.topbar .container {
    min-height: 38px;
}

.topbar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.main-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .80);
    border-bottom: 1px solid rgba(255, 255, 255, .62);
    box-shadow: 0 12px 40px rgba(87, 97, 135, .08);
    backdrop-filter: blur(22px);
}

.main-nav .container {
    min-height: 78px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-width: 286px;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1;
}

.brand-mark {
    width: 58px;
    height: 58px;
    filter: drop-shadow(0 14px 24px rgba(6, 182, 212, .20));
}

.brand-copy {
    display: grid;
    gap: 4px;
}

.brand-title {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
    color: var(--ink);
    white-space: nowrap;
}

.brand-script {
    color: #5b21b6;
    font-family: var(--font-signature);
    font-size: 34px;
    font-weight: 400;
    line-height: .82;
}

.brand-domain {
    color: #0f766e;
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 800;
}

.brand small {
    display: block;
    color: var(--muted);
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #27324a;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
}

.nav-links > a:not(.btn) {
    padding: 9px 0;
}

.nav-links > a:not(.btn):hover {
    color: var(--violet);
}

.theme-switch {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 42px;
    padding: 4px;
    border: 1px solid rgba(92, 109, 138, .18);
    border-radius: 5px;
    color: var(--ink);
    background: rgba(255, 255, 255, .70);
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(87, 97, 135, .08);
}

.theme-switch span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    min-height: 32px;
    padding: 7px 9px;
    border-radius: 4px;
    color: var(--muted);
}

.theme-switch span:first-child {
    color: #fff;
    background: linear-gradient(135deg, var(--violet), var(--cyan));
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #fff;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: var(--ink);
}

.hero {
    position: relative;
    min-height: min(780px, calc(100vh - 66px));
    display: grid;
    align-items: center;
    overflow: hidden;
    padding: 76px 0 64px;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(76, 29, 149, .72), rgba(6, 182, 212, .24), rgba(255, 255, 255, .16)),
        linear-gradient(180deg, rgba(32, 24, 79, .08), rgba(32, 24, 79, .58));
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(circle at 22% 20%, rgba(255, 255, 255, .28), transparent 18rem),
        radial-gradient(circle at 74% 24%, rgba(250, 204, 21, .22), transparent 16rem);
    pointer-events: none;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.18) contrast(1.04);
}

.hero > .container {
    position: relative;
    z-index: 3;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 430px);
    gap: 34px;
    align-items: center;
}

.hero-copy {
    max-width: 850px;
}

.eyebrow,
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.eyebrow {
    color: #20184f;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(255, 255, 255, .58);
    box-shadow: 0 12px 30px rgba(32, 24, 79, .12);
}

.hero h1,
.presentation-slide h1 {
    margin: 18px 0 18px;
    max-width: 940px;
    font-family: var(--font-display);
    font-size: clamp(44px, 5.7vw, 82px);
    font-weight: 800;
    line-height: .96;
    letter-spacing: 0;
}

.hero p {
    max-width: 690px;
    color: rgba(255, 255, 255, .92);
    font-size: clamp(17px, 2vw, 22px);
}

.hero-actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 5px;
    color: #fff;
    background: linear-gradient(135deg, var(--violet), var(--cyan));
    font-family: var(--font-ui);
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(86, 74, 201, .24);
    filter: saturate(1.08);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--violet), var(--cyan) 54%, var(--green));
    box-shadow: 0 15px 32px rgba(6, 182, 212, .20);
}

.btn-gold {
    color: #2c2202;
    background: linear-gradient(135deg, #fff0a3, #facc15);
}

.btn-teal {
    background: linear-gradient(135deg, #06b6d4, #22c55e);
}

.btn-light {
    color: var(--ink);
    background: rgba(255, 255, 255, .92);
    border-color: rgba(255, 255, 255, .74);
}

.btn-ghost,
.btn-outline {
    color: #fff;
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .36);
    backdrop-filter: blur(12px);
}

.hero-console,
.quote-panel,
.admin-form,
.glass-panel {
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .20);
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
}

.hero-console {
    color: #fff;
    padding: 22px;
    background: rgba(255, 255, 255, .16);
}

.console-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .24);
}

.console-row:last-child {
    border-bottom: 0;
}

.console-row strong {
    font-family: var(--font-display);
    font-size: 23px;
}

.console-row span,
.hero-console p {
    color: rgba(255, 255, 255, .82);
}

.section {
    position: relative;
    padding: 86px 0;
}

.section-tight {
    padding: 42px 0;
}

.section-white {
    background: rgba(255, 255, 255, .58);
}

.section-dark {
    color: #fff;
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, .44), transparent 32rem),
        linear-gradient(135deg, #4c1d95, #0e7490 55%, #15803d);
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.section-header h2,
.admin-title h1 {
    margin: 0;
    max-width: 790px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 58px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.section-dark .section-header h2 {
    color: #fff;
}

.section-header p {
    margin: 12px 0 0;
    max-width: 670px;
    color: var(--muted);
}

.section-dark .section-header p {
    color: rgba(255, 255, 255, .80);
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.metric {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .56);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .76);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(18px);
}

.section-dark .metric,
.hero .metric {
    background: rgba(255, 255, 255, .18);
}

.metric strong {
    display: block;
    color: var(--violet);
    font-family: var(--font-display);
    font-size: 38px;
    line-height: 1;
}

.metric span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-family: var(--font-ui);
    font-weight: 700;
}

.section-dark .metric strong,
.section-dark .metric span {
    color: #fff;
}

.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .82);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(20px);
}

.card-dark {
    color: #fff;
    background: linear-gradient(135deg, rgba(124, 58, 237, .76), rgba(6, 182, 212, .72));
}

.card-body {
    padding: 22px;
}

.card h2,
.card h3 {
    color: var(--ink);
    font-family: var(--font-display);
    letter-spacing: 0;
}

.card p {
    color: #58677d;
}

.card-dark h2,
.card-dark h3,
.section-dark .card h2,
.section-dark .card h3 {
    color: var(--ink);
}

.section-dark .card p {
    color: #58677d;
}

.media-card img,
.media-card video,
.event-card img,
.service-card img {
    width: 100%;
    object-fit: cover;
}

.event-card img {
    aspect-ratio: 16 / 10;
}

.service-card img,
.media-card img,
.media-card video {
    aspect-ratio: 4 / 3;
}

.service-card,
.event-card,
.media-card {
    transition: transform .18s ease, box-shadow .18s ease;
}

.service-card:hover,
.event-card:hover,
.media-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.service-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--violet), var(--cyan));
    font-family: var(--font-display);
    font-weight: 800;
}

.event-meta,
.admin-meta,
.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.pill {
    color: #38206d;
    background: rgba(124, 58, 237, .12);
    border: 1px solid rgba(124, 58, 237, .20);
}

.pill-green {
    color: #166534;
    background: rgba(34, 197, 94, .14);
    border-color: rgba(34, 197, 94, .24);
}

.pill-red {
    color: #be123c;
    background: rgba(244, 63, 94, .13);
    border-color: rgba(244, 63, 94, .24);
}

.pill-blue {
    color: #075985;
    background: rgba(6, 182, 212, .14);
    border-color: rgba(6, 182, 212, .25);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 450px);
    gap: 30px;
    align-items: start;
}

.quote-panel {
    position: sticky;
    top: 104px;
    padding: 26px;
    color: var(--text);
    border-color: rgba(255, 255, 255, .78);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(239, 248, 255, .93)),
        radial-gradient(circle at 100% 0, rgba(6, 182, 212, .20), transparent 18rem);
    box-shadow: 0 24px 70px rgba(20, 28, 54, .20);
}

.quote-panel h2 {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 34px;
    line-height: 1;
}

.quote-panel p {
    color: var(--muted);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.quote-form {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.field {
    display: grid;
    gap: 7px;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    color: #28334d;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 45px;
    border: 1px solid rgba(92, 109, 138, .24);
    border-radius: 6px;
    padding: 11px 12px;
    color: #1e293b;
    background: rgba(255, 255, 255, .98);
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, .16);
}

.field textarea {
    min-height: 112px;
    resize: vertical;
}

.error-list,
.flash {
    margin: 0 0 16px;
    padding: 13px 16px;
    border-radius: 8px;
    font-weight: 800;
}

.error-list {
    border: 1px solid rgba(244, 63, 94, .24);
    color: #9f1239;
    background: #fff1f5;
}

.flash {
    color: #14532d;
    border: 1px solid rgba(34, 197, 94, .24);
    background: #ecfdf3;
}

.footer {
    padding: 58px 0;
    color: #334155;
    background:
        radial-gradient(circle at 10% 20%, rgba(124, 58, 237, .13), transparent 24rem),
        linear-gradient(180deg, #ffffff, #edf8ff);
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
}

.footer a,
.footer p {
    color: #526179;
}

.admin-page {
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, .13), transparent 30rem),
        radial-gradient(circle at top right, rgba(6, 182, 212, .15), transparent 30rem),
        #f8fbff;
}

.admin-layout {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 282px minmax(0, 1fr);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 22px;
    color: #fff;
    background: linear-gradient(180deg, #7c3aed, #0ea5e9 48%, #22c55e);
    border-right: 1px solid rgba(255, 255, 255, .26);
}

.admin-sidebar nav {
    display: grid;
    gap: 8px;
    margin-top: 30px;
}

.admin-sidebar a,
.admin-sidebar button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 5px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-ui);
    font-weight: 700;
}

.admin-sidebar a.active,
.admin-sidebar a:hover,
.admin-sidebar button:hover {
    color: #20184f;
    background: rgba(255, 255, 255, .82);
}

.admin-main {
    padding: 30px;
}

.admin-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.admin-table {
    width: 100%;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .88);
    box-shadow: var(--soft-shadow);
}

.admin-table th,
.admin-table td {
    padding: 14px 15px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.admin-table th {
    color: #526179;
    background: rgba(6, 182, 212, .08);
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-form {
    color: var(--text);
    background: rgba(255, 255, 255, .90);
    border-color: rgba(255, 255, 255, .70);
    box-shadow: var(--soft-shadow);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination {
    margin-top: 18px;
}

.pagination nav > div:first-child {
    display: none;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 42px 0;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(124, 58, 237, .66), rgba(6, 182, 212, .42)),
        url('/media/corporate-event-poster.jpg?v=20260618f') center / cover fixed;
}

.login-card {
    width: min(1060px, calc(100% - 36px));
    display: grid;
    grid-template-columns: 1fr 440px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 14px;
    background: rgba(255, 255, 255, .18);
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
}

.login-intro,
.login-form {
    padding: 34px;
}

.login-intro {
    display: grid;
    align-content: end;
    min-height: 560px;
}

.login-form {
    color: var(--text);
    background: rgba(255, 255, 255, .92);
}

.presentation {
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #06b6d4 50%, #22c55e);
}

.presentation-slide {
    min-height: 100vh;
    display: grid;
    align-items: center;
    padding: 76px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .24);
}

.presentation-slide p {
    max-width: 850px;
    color: rgba(255, 255, 255, .86);
    font-size: clamp(18px, 2vw, 24px);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 28px 0 0;
    padding: 0;
}

.feature-list li {
    list-style: none;
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .18);
}

.install-strip {
    display: none;
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 50;
    align-items: center;
    gap: 8px;
    width: auto;
    max-width: min(228px, calc(100% - 28px));
    padding: 8px 38px 8px 10px;
    border-radius: 10px;
    color: var(--text);
    background: rgba(255, 255, 255, .76);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, .72);
    backdrop-filter: blur(22px);
}

.install-strip strong {
    display: block;
    padding-right: 0;
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 12px;
    line-height: 1.25;
    white-space: nowrap;
}

.install-strip p {
    display: none;
}

.install-strip .btn {
    min-height: 30px;
    padding: 7px 11px;
    border-radius: 5px;
    font-size: 11px;
}

.install-close {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(124, 58, 237, .14);
    border-radius: 999px;
    color: #4c1d95;
    background: rgba(255, 255, 255, .72);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.install-strip.show {
    display: flex;
}

html[data-theme="devotional"] {
    --ink: #4a2600;
    --text: #2d210f;
    --muted: #7a6040;
    --paper: #fff9e6;
    --surface: rgba(255, 251, 235, .90);
    --solid: #fffaf0;
    --line: rgba(180, 83, 9, .20);
    --violet: #ea580c;
    --cyan: #f59e0b;
    --green: #facc15;
    --amber: #facc15;
    --rose: #fb923c;
    --blue: #d97706;
    --shadow: 0 24px 70px rgba(180, 83, 9, .14);
    --soft-shadow: 0 14px 34px rgba(180, 83, 9, .11);
}

html[data-theme="devotional"] ::selection {
    color: #fff8ed;
    background: rgba(127, 29, 29, .86);
}

html[data-theme="devotional"] body {
    background:
        repeating-linear-gradient(135deg, rgba(250, 204, 21, .08) 0 1px, transparent 1px 28px),
        linear-gradient(180deg, #fffdf2 0, #fff7d6 48%, #fff2c0 100%);
}

html[data-theme="devotional"] .topbar {
    color: #3b2207;
    background: linear-gradient(90deg, #fff1b8, #facc15 48%, #fb923c);
}

html[data-theme="devotional"] .main-nav {
    background: rgba(255, 251, 235, .92);
    border-bottom-color: rgba(180, 83, 9, .14);
}

html[data-theme="devotional"] .brand-mark {
    filter: drop-shadow(0 14px 24px rgba(250, 204, 21, .28));
}

html[data-theme="devotional"] .brand-script {
    color: #c2410c;
}

html[data-theme="devotional"] .brand-domain {
    color: #b45309;
}

html[data-theme="devotional"] .nav-links {
    color: #442807;
}

html[data-theme="devotional"] .nav-links > a:not(.btn):hover {
    color: #b23b1f;
}

html[data-theme="devotional"] .theme-switch {
    border-color: rgba(234, 88, 12, .20);
    background: rgba(255, 253, 242, .86);
}

html[data-theme="devotional"] .theme-switch span:first-child {
    color: var(--muted);
    background: transparent;
}

html[data-theme="devotional"] .theme-switch span:last-child {
    color: #3b2207;
    background: linear-gradient(135deg, #facc15, #fb923c);
}

html[data-theme="devotional"] .hero::before {
    background:
        linear-gradient(90deg, rgba(92, 36, 8, .68), rgba(217, 119, 6, .34) 52%, rgba(250, 204, 21, .10)),
        linear-gradient(180deg, rgba(92, 36, 8, .06), rgba(92, 36, 8, .58));
}

html[data-theme="devotional"] .hero::after {
    background:
        radial-gradient(circle at 16% 22%, rgba(255, 238, 169, .18), transparent 20rem),
        linear-gradient(180deg, rgba(255, 246, 205, .10), rgba(180, 83, 9, .10));
}

html[data-theme="devotional"] .hero-video {
    filter: sepia(.13) saturate(1.22) contrast(1.05);
}

html[data-theme="devotional"] .eyebrow {
    color: #4a1d05;
    background: rgba(255, 247, 214, .92);
    border-color: rgba(245, 178, 27, .36);
    box-shadow: 0 12px 30px rgba(105, 45, 13, .14);
}

html[data-theme="devotional"] .btn-primary,
html[data-theme="devotional"] .btn-teal {
    color: #3b2207;
    background: linear-gradient(135deg, #fb923c, #facc15 58%, #f97316);
    box-shadow: 0 15px 32px rgba(234, 88, 12, .20);
}

html[data-theme="devotional"] .btn-light {
    color: #431407;
    background: rgba(255, 250, 240, .94);
    border-color: rgba(255, 229, 158, .72);
}

html[data-theme="devotional"] .btn-ghost,
html[data-theme="devotional"] .btn-outline {
    color: #fffaf0;
    background: rgba(255, 248, 220, .14);
    border-color: rgba(255, 229, 158, .40);
}

html[data-theme="devotional"] .hero-console {
    color: #3b2207;
    background: rgba(255, 248, 220, .86);
    border-color: rgba(250, 204, 21, .55);
}

html[data-theme="devotional"] .console-row {
    border-bottom-color: rgba(180, 83, 9, .18);
}

html[data-theme="devotional"] .console-row strong {
    color: #9a3412;
}

html[data-theme="devotional"] .console-row span,
html[data-theme="devotional"] .hero-console p {
    color: #65451f;
}

html[data-theme="devotional"] .section-white {
    background: rgba(255, 253, 242, .72);
}

html[data-theme="devotional"] .section-dark {
    color: #3b2207;
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .22) 0 1px, transparent 1px 22px),
        linear-gradient(135deg, #fff0b8, #facc15 46%, #fb923c);
}

html[data-theme="devotional"] .section-dark .section-header h2 {
    color: #4a2600;
}

html[data-theme="devotional"] .section-dark .section-header p {
    color: #68471f;
}

html[data-theme="devotional"] .section-dark .metric {
    background: rgba(255, 255, 255, .38);
    border-color: rgba(255, 255, 255, .62);
}

html[data-theme="devotional"] .section-dark .metric strong,
html[data-theme="devotional"] .section-dark .metric span {
    color: #4a2600;
}

html[data-theme="devotional"] .card,
html[data-theme="devotional"] .admin-table {
    border-color: rgba(250, 204, 21, .46);
    background: rgba(255, 253, 242, .90);
}

html[data-theme="devotional"] .card p,
html[data-theme="devotional"] .section-dark .card p {
    color: #6d5942;
}

html[data-theme="devotional"] .service-icon {
    color: #3b2207;
    background: linear-gradient(135deg, #fb923c, #facc15);
}

html[data-theme="devotional"] .pill {
    color: #7f1d1d;
    background: rgba(245, 178, 27, .18);
    border-color: rgba(194, 65, 12, .20);
}

html[data-theme="devotional"] .pill-green {
    color: #0f513d;
    background: rgba(15, 118, 110, .14);
    border-color: rgba(15, 118, 110, .24);
}

html[data-theme="devotional"] .quote-panel {
    border-color: rgba(250, 204, 21, .48);
    background:
        linear-gradient(180deg, rgba(255, 253, 242, .98), rgba(255, 246, 205, .95)),
        repeating-linear-gradient(135deg, rgba(250, 204, 21, .06) 0 1px, transparent 1px 20px);
    box-shadow: 0 24px 70px rgba(180, 83, 9, .14);
}

html[data-theme="devotional"] .field input,
html[data-theme="devotional"] .field select,
html[data-theme="devotional"] .field textarea {
    border-color: rgba(130, 75, 22, .25);
    background: rgba(255, 255, 250, .98);
}

html[data-theme="devotional"] .field input:focus,
html[data-theme="devotional"] .field select:focus,
html[data-theme="devotional"] .field textarea:focus {
    border-color: #d97706;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, .18);
}

html[data-theme="devotional"] .footer {
    background:
        repeating-linear-gradient(135deg, rgba(250, 204, 21, .08) 0 1px, transparent 1px 28px),
        linear-gradient(180deg, #fffdf2, #fff2c0);
}

html[data-theme="devotional"] .install-strip {
    border-color: rgba(250, 204, 21, .46);
    background: rgba(255, 253, 242, .90);
}

html[data-theme="devotional"] .presentation {
    background: linear-gradient(135deg, #9a3412, #f97316 50%, #facc15);
}

@media (max-width: 980px) {
    .nav-toggle {
        display: inline-block;
    }

    .nav-links {
        position: absolute;
        left: 18px;
        right: 18px;
        top: 84px;
        display: none;
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
        background: rgba(255, 255, 255, .96);
        border: 1px solid rgba(255, 255, 255, .72);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }

    html[data-theme="devotional"] .nav-links {
        background: rgba(255, 248, 235, .97);
        border-color: rgba(245, 178, 27, .32);
    }

    .theme-switch {
        width: 100%;
    }

    .nav-links.open {
        display: flex;
    }

    .hero-grid,
    .grid-3,
    .grid-4,
    .metrics,
    .footer-grid,
    .feature-list,
    .split,
    .login-card {
        grid-template-columns: 1fr;
    }

    .quote-panel {
        position: static;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .admin-sidebar nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .login-intro {
        min-height: 360px;
    }
}

@media (max-width: 640px) {
    .topbar .container,
    .section-header,
    .admin-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .brand {
        min-width: 0;
    }

    .brand-mark {
        width: 48px;
        height: 48px;
    }

    .brand-script {
        font-size: 28px;
    }

    .brand-domain {
        font-size: 13px;
    }

    .brand small {
        font-size: 9px;
    }

    .hero {
        min-height: 720px;
        padding: 58px 0 46px;
    }

    .hero h1,
    .presentation-slide h1 {
        font-size: clamp(42px, 13vw, 62px);
    }

    .grid-2,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .admin-main {
        padding: 18px;
    }

    .admin-sidebar nav {
        grid-template-columns: 1fr;
    }

    .admin-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .login-intro,
    .login-form {
        padding: 24px;
    }
}

/* Compact manager dashboard */
.admin-page {
    font-size: 15px;
    background:
        radial-gradient(circle at 18% 0, rgba(124, 58, 237, .10), transparent 28rem),
        radial-gradient(circle at 100% 10%, rgba(6, 182, 212, .14), transparent 30rem),
        linear-gradient(180deg, #f8fbff 0, #eef6ff 100%);
}

.admin-layout {
    grid-template-columns: 252px minmax(0, 1fr);
}

.admin-sidebar {
    z-index: 60;
    padding: 18px;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(180deg, #6d28d9, #0ea5e9 48%, #10b981);
}

.admin-sidebar-head {
    display: block;
}

.admin-brand {
    min-width: 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, .14);
}

.admin-brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    filter: drop-shadow(0 10px 18px rgba(12, 18, 36, .18));
}

.admin-brand-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.admin-brand-name {
    color: #fff;
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.16;
    white-space: nowrap;
}

.admin-brand-subtitle {
    color: rgba(255, 255, 255, .72);
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
    line-height: 1;
    text-transform: uppercase;
}

.admin-nav-toggle {
    display: none;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, .88);
}

.admin-theme-switch {
    width: 100%;
    margin-top: 16px;
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .24);
}

.admin-theme-switch span {
    min-width: 0;
    color: rgba(255, 255, 255, .82);
}

.admin-theme-switch span:first-child {
    color: var(--ink);
    background: rgba(255, 255, 255, .90);
}

.admin-sidebar .admin-nav {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.admin-sidebar .admin-nav a,
.admin-sidebar .admin-nav button {
    min-height: 41px;
    padding: 10px 12px;
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .12);
}

.admin-main {
    min-width: 0;
    padding: 24px;
}

.admin-page .admin-title {
    margin-bottom: 18px;
}

.admin-page .admin-title h1 {
    max-width: none;
    font-size: clamp(32px, 3.2vw, 48px);
    line-height: .98;
}

.admin-page .admin-title p {
    margin: 6px 0 0;
    font-size: 14px;
}

.admin-page .grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-page .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.admin-page .grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.admin-page .card {
    border-radius: 10px;
    background: rgba(255, 255, 255, .90);
    box-shadow: 0 12px 32px rgba(72, 82, 119, .10);
}

.admin-page .card-body {
    padding: 18px;
}

.admin-page .card h2,
.admin-page .card h3 {
    margin-top: 8px;
}

.admin-page .section-header {
    align-items: center;
    margin-bottom: 14px !important;
}

.admin-page .section-header h2 {
    max-width: none;
    font-size: clamp(24px, 2.5vw, 36px);
    line-height: 1;
}

.admin-page .btn {
    min-height: 40px;
    padding: 9px 13px;
    font-size: 13px;
}

.admin-page .pill {
    min-height: 26px;
    padding: 5px 10px;
    font-size: 10px;
}

.admin-page .admin-table {
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 12px 32px rgba(72, 82, 119, .10);
}

.admin-page .admin-table th,
.admin-page .admin-table td {
    padding: 12px 14px;
}

.admin-page .actions {
    gap: 7px;
}

.admin-page .actions .btn {
    min-height: 35px;
    padding: 7px 10px;
    font-size: 12px;
}

.admin-page .admin-form {
    padding: 20px;
    border-radius: 10px;
}

.admin-page .form-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.admin-page .field input,
.admin-page .field select,
.admin-page .field textarea {
    min-height: 42px;
}

html[data-theme="devotional"] .admin-page {
    background:
        repeating-linear-gradient(135deg, rgba(250, 204, 21, .06) 0 1px, transparent 1px 28px),
        linear-gradient(180deg, #fffdf2 0, #fff4c2 100%);
}

html[data-theme="devotional"] .admin-sidebar {
    color: #3b2207;
    background: linear-gradient(180deg, #fff1b8, #facc15 48%, #fb923c);
    border-right-color: rgba(180, 83, 9, .18);
}

html[data-theme="devotional"] .admin-brand {
    color: #3b2207;
    border-color: rgba(180, 83, 9, .18);
    background: rgba(255, 253, 242, .52);
}

html[data-theme="devotional"] .admin-brand-name {
    color: #3b2207;
}

html[data-theme="devotional"] .admin-brand-subtitle {
    color: #7a6040;
}

html[data-theme="devotional"] .admin-theme-switch {
    background: rgba(255, 253, 242, .52);
    border-color: rgba(180, 83, 9, .18);
}

html[data-theme="devotional"] .admin-theme-switch span {
    color: #7a6040;
}

html[data-theme="devotional"] .admin-theme-switch span:first-child {
    color: #7a6040;
    background: transparent;
}

html[data-theme="devotional"] .admin-theme-switch span:last-child {
    color: #3b2207;
    background: linear-gradient(135deg, #facc15, #fb923c);
}

html[data-theme="devotional"] .admin-sidebar .admin-nav a,
html[data-theme="devotional"] .admin-sidebar .admin-nav button {
    color: #3b2207;
    border-color: rgba(180, 83, 9, .18);
    background: rgba(255, 253, 242, .36);
}

html[data-theme="devotional"] .admin-sidebar .admin-nav a.active,
html[data-theme="devotional"] .admin-sidebar .admin-nav a:hover,
html[data-theme="devotional"] .admin-sidebar .admin-nav button:hover {
    color: #3b2207;
    background: rgba(255, 253, 242, .82);
}

html[data-theme="devotional"] .admin-page .card,
html[data-theme="devotional"] .admin-page .admin-table,
html[data-theme="devotional"] .admin-page .admin-form {
    background: rgba(255, 253, 242, .90);
    border-color: rgba(250, 204, 21, .44);
}

html[data-theme="devotional"] .admin-page .admin-table th {
    color: #7a6040;
    background: rgba(250, 204, 21, .14);
}

@media (max-width: 1100px) {
    .admin-layout {
        grid-template-columns: 226px minmax(0, 1fr);
    }

    .admin-main {
        padding: 20px;
    }

    .admin-sidebar {
        padding: 15px;
    }

    .admin-brand-name {
        font-size: 14px;
    }
}

@media (max-width: 820px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: sticky;
        top: 0;
        height: auto;
        padding: 10px 14px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .24);
    }

    .admin-brand {
        width: 100%;
    }

    .admin-theme-switch {
        width: min(100%, 320px);
        margin-top: 10px;
    }

    .admin-sidebar .admin-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 10px;
    }

    .admin-main {
        padding: 16px;
    }

    .admin-page .admin-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-page .grid-2,
    .admin-page .grid-3,
    .admin-page .grid-4,
    .admin-page .form-grid {
        grid-template-columns: 1fr;
    }

    .admin-page .admin-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 520px) {
    .admin-brand-mark {
        width: 44px;
        height: 44px;
    }

    .admin-brand-name {
        font-size: 11px;
    }

    .admin-sidebar .admin-nav {
        grid-template-columns: 1fr;
    }

    .admin-theme-switch {
        width: 100%;
    }

    .admin-page .admin-title h1 {
        font-size: 32px;
    }

    .admin-page .card-body,
    .admin-page .admin-form {
        padding: 15px;
    }
}
