:root {
    --navy: #162033;
    --navy2: #202c43;
    --text: #1d2939;
    --muted: #667085;
    --line: #e6e9ef;
    --bg: #f6f8fb;
    --blue: #356ae6;
    --green: #16875d;
    --amber: #b7791f;
    --red: #c2414b;
    --shadow: 0 1px 3px rgba(16,24,40,.06),0 1px 2px rgba(16,24,40,.04)
}

* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    font-family: Inter,Segoe UI,Arial,sans-serif;
    color: var(--text);
    background: var(--bg);
    font-size: 14px
}

a {
    text-decoration: none;
    color: inherit
}

.app-shell {
    min-height: 100vh;
    display: flex
}

.sidebar {
    width: 245px;
    background: var(--navy);
    color: #d9e0ec;
    padding: 22px 15px;
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column
}

.brand {
    display: flex;
    gap: 11px;
    align-items: center;
    padding: 0 9px 25px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 18px
}

.brand-mark {
    width: 39px;
    height: 39px;
    border-radius: 10px;
    background: #4077ef;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800
}

.brand strong {
    display: block;
    color: #fff;
    font-size: 15px
}

.brand span, .top-actions span {
    display: block;
    font-size: 11px;
    color: #92a0b6;
    margin-top: 2px
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin: 3px 0;
    border-radius: 8px;
    color: #bcc6d7;
    font-weight: 600
}

    .nav-link span {
        width: 20px;
        text-align: center
    }

    .nav-link:hover, .nav-link.active {
        background: var(--navy2);
        color: #fff
    }

    .nav-link.active {
        box-shadow: inset 3px 0 #4c7df0
    }

.nav-heading {
    font-size: 10px;
    letter-spacing: 1.2px;
    color: #6f7e95;
    font-weight: 800;
    padding: 19px 12px 7px
}

.sidebar-footer {
    margin-top: auto;
    padding: 13px 12px;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: 12px;
    color: #93a0b4
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #37c98b;
    border-radius: 50%;
    margin-right: 8px
}

.main-area {
    margin-left: 245px;
    min-width: 0;
    flex: 1
}

.topbar {
    height: 66px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 5
}

.org-name {
    color: #8a6518 !important;
    font-weight: 800 !important;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px
}

    .top-actions strong {
        font-size: 12px
    }

.icon-button {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    width: 34px;
    height: 34px
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e9eefb;
    color: #3158b8;
    display: grid;
    place-items: center;
    font-weight: 800
}

    .avatar.small {
        width: 32px;
        height: 32px
    }

.content-wrap {
    padding: 31px 34px 50px;
    max-width: 1540px;
    margin: auto
}

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px
}

    .page-head.compact {
        align-items: center
    }

.eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #5273bf;
    margin-bottom: 5px
}

.page-head h1 {
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 6px
}

.page-head p, .panel-head p {
    color: var(--muted);
    margin: 0
}

.page-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap
}

.btn {
    border: 1px solid var(--line);
    padding: 10px 14px;
    border-radius: 8px;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px
}

    .btn.primary {
        background: var(--blue);
        border-color: var(--blue);
        color: #fff
    }

    .btn.secondary:hover {
        background: #f8fafc
    }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 15px;
    margin-bottom: 18px
}

    .stats-grid.three {
        grid-template-columns: repeat(3,1fr)
    }

.stat-card, .panel, .testimonial-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow)
}

.stat-card {
    padding: 18px 20px
}

    .stat-card > span {
        display: block;
        color: var(--muted);
        font-weight: 600;
        font-size: 12px
    }

    .stat-card strong {
        display: block;
        font-size: 29px;
        margin: 7px 0 4px
    }

    .stat-card small {
        color: var(--muted)
    }

        .stat-card small.positive {
            color: var(--green)
        }

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px
}

.panel {
    padding: 19px
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef0f4
}

    .panel-head h2, .quick-panel h2 {
        font-size: 16px;
        margin: 0 0 4px
    }

    .panel-head a {
        font-size: 12px;
        color: var(--blue);
        font-weight: 700
    }

.event-row, .activity-row, .history-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f2f5
}

    .event-row:last-child, .activity-row:last-child, .history-row:last-child {
        border-bottom: 0
    }

.grow {
    flex: 1
}

    .grow strong, .grow span {
        display: block
    }

    .grow span {
        color: var(--muted);
        font-size: 12px;
        margin-top: 3px
    }

.date-tile {
    width: 42px;
    height: 47px;
    border: 1px solid #dfe5ef;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center
}

    .date-tile strong {
        font-size: 16px
    }

    .date-tile span {
        font-size: 9px;
        color: var(--blue);
        font-weight: 800
    }

.event-count, .delivery {
    text-align: right
}

    .event-count strong, .event-count span, .delivery strong, .delivery span {
        display: block
    }

    .event-count span, .delivery span {
        font-size: 10px;
        color: var(--muted)
    }

.comm-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 800;
    background: #eef3ff;
    color: #356ae6
}

    .comm-icon.sms {
        background: #edf9f3;
        color: var(--green)
    }

.quick-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

    .quick-panel p {
        margin: 0;
        color: var(--muted)
    }

.quick-actions {
    display: flex;
    gap: 10px
}

    .quick-actions a {
        padding: 10px 12px;
        background: #f8fafc;
        border: 1px solid var(--line);
        border-radius: 8px;
        font-weight: 700;
        font-size: 12px
    }

.grid-panel {
    padding: 0;
    overflow: hidden
}

.k-grid {
    border: 0 !important;
    border-radius: 12px !important
}

    .k-grid .k-toolbar {
        padding: 12px !important;
        background: #fff !important
    }

    .k-grid .k-grid-header {
        background: #f9fafb !important
    }

.member-link strong, .member-link span {
    display: block
}

.member-link strong {
    color: #24385f
}

.member-link span {
    color: var(--muted);
    font-size: 11px;
    margin-top: 2px
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800
}

.status-active {
    background: #e9f7f1;
    color: #107652
}

.status-expired {
    background: #fdecec;
    color: #b23a42
}

.status-pending {
    background: #fff4de;
    color: #9b6714
}

.status-neutral {
    background: #eef1f5;
    color: #667085
}

.modal-backdrop-custom {
    position: fixed;
    inset: 0;
    background: rgba(17,24,39,.5);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 20px
}

.compose-card {
    width: min(620px,100%);
    background: #fff;
    border-radius: 13px;
    box-shadow: 0 30px 70px rgba(0,0,0,.2)
}

.compose-head, .compose-actions {
    padding: 18px 21px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line)
}

    .compose-head h2 {
        margin: 0
    }

    .compose-head button {
        border: 0;
        background: none;
        font-size: 25px;
        color: #667085
    }

.compose-body {
    padding: 20px
}

    .compose-body label {
        display: block;
        font-size: 12px;
        font-weight: 800;
        margin: 13px 0 6px
    }

.recipient-box {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px
}

    .recipient-box strong, .recipient-box span {
        display: block
    }

    .recipient-box span {
        font-size: 11px;
        color: var(--muted);
        margin-top: 3px
    }

.form-control-custom, .compose-body textarea {
    width: 100%;
    border: 1px solid #d9dee8;
    border-radius: 8px;
    padding: 10px;
    font: inherit
}

.compose-meta {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 11px;
    margin-top: 7px
}

.compose-actions {
    border-top: 1px solid var(--line);
    border-bottom: 0;
    justify-content: flex-end;
    gap: 8px
}

.back-link {
    color: var(--blue);
    font-size: 12px;
    font-weight: 700
}

.member-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 13px
}

    .member-heading h1 {
        margin: 0
    }

.member-avatar {
    width: 52px;
    height: 52px;
    background: #e8eefc;
    color: #355db6;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 800
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px
}

.details-list {
    display: grid;
    grid-template-columns: 145px 1fr;
    margin: 12px 0 0
}

    .details-list dt, .details-list dd {
        padding: 10px 0;
        border-bottom: 1px solid #f0f2f5
    }

    .details-list dt {
        color: var(--muted);
        font-weight: 600
    }

    .details-list dd {
        margin: 0;
        font-weight: 600
    }

.history-row {
    display: grid;
    grid-template-columns: 100px 1fr auto
}

    .history-row > span:first-child {
        color: var(--muted);
        font-size: 12px
    }

.calendar-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line)
}

    .calendar-strip div {
        text-align: center
    }

    .calendar-strip strong, .calendar-strip span {
        display: block
    }

    .calendar-strip span {
        font-size: 11px;
        color: var(--muted);
        margin-top: 2px
    }

    .calendar-strip button {
        width: 34px;
        height: 34px;
        border-radius: 8px;
        border: 1px solid var(--line);
        background: #fff
    }

.event-list-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 17px 0;
    border-bottom: 1px solid #f0f2f5
}

.date-tile.large {
    width: 48px;
    height: 53px
}

.progress-wrap {
    width: 190px
}

    .progress-wrap > div:first-child {
        display: flex;
        justify-content: space-between;
        font-size: 11px;
        color: var(--muted)
    }

.progress {
    height: 5px;
    background: #eef1f5;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 6px
}

    .progress i {
        display: block;
        height: 100%;
        background: var(--blue);
        border-radius: 10px
    }

.row-action {
    border: 0;
    background: none
}

.clean-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 3px
}

    .clean-table th {
        text-align: left;
        color: var(--muted);
        font-size: 11px;
        padding: 12px 10px;
        background: #fafbfc
    }

    .clean-table td {
        padding: 14px 10px;
        border-bottom: 1px solid #eef0f4
    }

.type-chip {
    padding: 5px 8px;
    background: #eef3ff;
    color: #355db6;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px
}

.testimonial-card {
    padding: 21px
}

.quote-mark {
    font-size: 46px;
    line-height: 1;
    color: #b8c8f2
}

.testimonial-card > p {
    font-size: 15px;
    line-height: 1.6;
    min-height: 72px
}

.testimonial-person {
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding-top: 15px
}

    .testimonial-person strong, .testimonial-person span {
        display: block
    }

    .testimonial-person span {
        font-size: 11px;
        color: var(--muted);
        margin-top: 2px
    }

.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px
}

    .testimonial-footer button {
        border: 0;
        background: none
    }

@media(max-width:1100px) {
    .stats-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .two-col, .detail-grid {
        grid-template-columns: 1fr
    }

    .testimonial-grid {
        grid-template-columns: 1fr 1fr
    }

    .quick-panel {
        align-items: flex-start;
        flex-direction: column
    }
}

@media(max-width:800px) {
    .sidebar {
        width: 74px;
        padding: 18px 10px
    }

    .brand > div:last-child, .nav-link:not(.active) {
        font-size: 0
    }

    .brand {
        padding-left: 6px
    }

    .nav-link {
        justify-content: center
    }

        .nav-link span {
            font-size: 16px
        }

    .nav-heading, .sidebar-footer {
        display: none
    }

    .main-area {
        margin-left: 74px
    }

    .topbar {
        padding: 0 18px
    }

    .content-wrap {
        padding: 22px 18px
    }

    .page-head {
        align-items: flex-start;
        flex-direction: column
    }

    .stats-grid, .stats-grid.three, .testimonial-grid {
        grid-template-columns: 1fr
    }

    .quick-actions {
        flex-wrap: wrap
    }

    .event-list-row {
        align-items: flex-start;
        flex-wrap: wrap
    }

    .progress-wrap {
        width: 100%
    }
}

/* Members page - fill remaining browser height */
.grid-panel {
    height: calc(100vh - 240px);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

    /* Telerik grid fills the panel */
    .grid-panel .k-grid {
        flex: 1 1 auto;
        min-height: 0;
        height: 100%;
    }

    /* Rows scroll inside the grid */
    .grid-panel .k-grid-content {
        overflow-y: scroll;
    }

/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.dashboard-kpi {
    padding: 20px;
}

.dashboard-number {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    margin: 8px 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

@media (max-width: 1000px) {
    .dashboard-kpis {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .dashboard-kpis {
        grid-template-columns: 1fr;
    }
}

.communication-table-scroll {
    width: 100%;
    max-height: calc(100vh - 620px);
    min-height: 150px;
    overflow-y: scroll;
    overflow-x: hidden;
}

.communication-history-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

    .communication-history-table th,
    .communication-history-table td {
        padding: 11px 14px;
        text-align: left;
        vertical-align: top;
        border-bottom: 1px solid #e2e8f0;
        overflow-wrap: anywhere;
    }

    .communication-history-table th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #fff;
        font-weight: 600;
    }

    .communication-history-table tbody tr:hover {
        background: #f8fafc;
    }

    .communication-history-table th:nth-child(3),
    .communication-history-table td:nth-child(3) {
        text-align: center;
    }

.communication-error {
    overflow-wrap: anywhere;
}

.communication-empty {
    padding: 32px !important;
    text-align: center !important;
    color: #64748b;
}

.communications-grid-panel {
    width: 100%;
    overflow: hidden;
}

.communications-grid-scroll {
    height: calc(100vh - 250px);
    min-height: 350px;
    overflow-y: scroll;
    overflow-x: auto;
}

#communicationsGrid {
    width: 100%;
}

    /* Keep the Kendo header visible while the wrapper scrolls */
    #communicationsGrid .k-grid-header {
        position: sticky;
        top: 0;
        z-index: 5;
    }

.communications-grid-panel {
    height: calc(100vh - 220px);
    min-height: 420px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#communicationsGrid {
    height: 100%;
    display: flex;
    flex-direction: column;
}

    /* Header stays at top */
    #communicationsGrid .k-grid-header {
        flex: 0 0 auto;
    }

    /* Only rows scroll */
    #communicationsGrid .k-grid-content {
        flex: 1 1 auto;
        overflow-y: scroll;
        min-height: 0;
    }

    /* Pager stays at bottom */
    #communicationsGrid .k-grid-pager {
        flex: 0 0 auto;
        margin-top: auto;
    }

/* ---------------------------------------------------------
   Application notifications
   --------------------------------------------------------- */

#notification-container {
    position: fixed;
    top: 85px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 380px;
    max-width: calc(100vw - 48px);
    pointer-events: none;
}

.app-notification {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: auto;
}

    .app-notification.show {
        opacity: 1;
        transform: translateX(0);
    }

.app-notification-success {
    background: #198754;
}

.app-notification-error {
    background: #dc3545;
}

.app-notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.20);
    font-weight: 700;
}

.app-notification-message {
    flex: 1;
    font-weight: 500;
}

.app-notification-close {
    border: 0;
    background: transparent;
    color: white;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
}

    .app-notification-close:hover {
        opacity: 1;
    }

/* =========================================================
   COMMUNICATION RESULT POPUP
   ========================================================= */

.communication-result-card {
    width: min(1100px, 92vw);
    height: min(500px, 85vh);
    max-width: 1100px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

#communicationResultWindow .communication-result-card {
    width: 850px;
    max-width: 92vw;
    height: 500px;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
}

/* =========================================================
   RESULT SUMMARY
   Status | Recipients | Sent | Failed
   ========================================================= */

.communication-summary-line {
    display: flex;
    align-items: center;
    gap: 36px;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

    .communication-summary-line > div {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .communication-summary-line span {
        color: #64748b;
        font-size: 13px;
        font-weight: 500;
    }

    .communication-summary-line strong {
        color: #0f172a;
        font-size: 15px;
        font-weight: 700;
    }


/* =========================================================
   COMMUNICATION RESULT GRID
   ========================================================= */

.communication-result-grid {
    width: 100%;
    height: 245px;
    overflow-x: auto;
    overflow-y: scroll;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}


/* =========================================================
   RESULT TABLE
   ========================================================= */

.communication-result-table {
    width: 100%;
    min-width: 900px;
    table-layout: fixed;
    border-collapse: collapse;
    background: #ffffff;
}

    .communication-result-table th,
    .communication-result-table td {
        padding: 11px 12px;
        text-align: left;
        vertical-align: middle;
        border-bottom: 1px solid #e2e8f0;
        font-size: 13px;
        overflow-wrap: anywhere;
        word-break: normal;
    }


    /* =========================================================
   TABLE HEADER
   ========================================================= */

    .communication-result-table thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #f8fafc;
        color: #475569;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        border-bottom: 1px solid #cbd5e1;
    }


    /* =========================================================
   TABLE ROWS
   ========================================================= */

    .communication-result-table tbody tr {
        transition: background-color 0.15s ease;
    }

        .communication-result-table tbody tr:hover {
            background: #f8fafc;
        }

        .communication-result-table tbody tr:last-child td {
            border-bottom: 0;
        }


    /* =========================================================
   STATUS COLUMN
   ========================================================= */

    .communication-result-table th:nth-child(3),
    .communication-result-table td:nth-child(3) {
        text-align: center;
    }


    /* =========================================================
   PROVIDER ID
   ========================================================= */

    .communication-result-table td:nth-child(4) {
        font-family: Consolas, Monaco, monospace;
        font-size: 12px;
        color: #475569;
    }


    /* =========================================================
   ERROR COLUMN
   ========================================================= */

    .communication-result-table td:nth-child(5) {
        color: #64748b;
    }


/* =========================================================
   STATUS BADGES
   ========================================================= */

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.status-sent {
    color: #166534;
    background: #dcfce7;
}

.status-failed {
    color: #991b1b;
    background: #fee2e2;
}

.status-pending {
    color: #92400e;
    background: #fef3c7;
}


/* =========================================================
   RESULT POPUP BODY
   ========================================================= */

.communication-result-card .compose-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}


/* =========================================================
   RESULT POPUP FOOTER
   ========================================================= */

.communication-result-card .compose-actions {
    flex-shrink: 0;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 800px) {

    .communication-result-card {
        width: 96vw;
        max-height: 92vh;
    }

    .communication-summary-line {
        gap: 18px;
        flex-wrap: wrap;
    }

        .communication-summary-line > div {
            min-width: 120px;
        }

    .communication-result-grid {
        margin-top: 16px;
        height: calc(100% - 70px);
        min-height: 300px;
        overflow: auto;
    }
}

/* =========================================================
   COMPOSE EMAIL / SMS WINDOW
   ========================================================= */

.compose-card {
    width: min(620px, 94vw);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
}


/* Header */

.compose-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid #e2e8f0;
}

    .compose-head h2 {
        margin: 4px 0 0 0;
    }

    .compose-head button {
        border: 0;
        background: transparent;
        color: #64748b;
        font-size: 22px;
        font-weight: 700;
        cursor: pointer;
    }


/* Body */

.compose-body {
    padding: 20px 22px;
    overflow-y: auto;
}


/* Selected recipient information */

.compose-summary {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    color: #475569;
}

    .compose-summary strong {
        color: #1e293b;
    }

    .compose-summary span {
        color: #64748b;
    }


/* Labels */

.compose-body label {
    display: block;
    margin-bottom: 16px;
    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
}


/* Subject and message controls */

.compose-body .form-control {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
}

.compose-body input.form-control {
    height: 42px;
}

.compose-body textarea.form-control {
    min-height: 150px;
    resize: vertical;
    line-height: 1.5;
}


/* Focus */

.compose-body .form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}


/* Character count */

#charCount {
    margin-top: -6px;
    color: #64748b;
    font-size: 12px;
}


/* Footer */

.compose-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 22px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}

.status-bounced {
    color: #991b1b;
    background: #fee2e2;
}

.member-textbox {
    width: 100%;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
    outline: none;
}

    .member-textbox:focus {
        border-color: #86b7fe;
        box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.15);
    }

    .member-textbox.input-validation-error {
        border-color: #dc3545;
    }

.member-required-error {
    border: 1px solid #dc3545 !important;
}

.member-required-message {
    display: block;
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}

.member-textbox.member-invalid {
    border-color: #f3173e !important;
}

.member-textbox.k-invalid {
    border-color: var(--kendo-color-error, #dc3545) !important;
}

.member-validation-message {
    display: block;
    margin-top: 4px;
}

.member-textbox.member-invalid {
    border-color: #f3173e !important;
}

.member-textbox {
    width: 100%;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
    outline: none;
}

    .member-textbox:focus {
        border-color: #86b7fe;
        box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.15);
    }

.member-invalid,
.k-input.member-invalid,
.k-picker.member-invalid {
    border-color: #dc3545 !important;
}

.member-validation-message {
    position: relative;
    display: inline-block;
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 5px;
    background: #f3173e;
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

.member-validation-callout {
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #f3173e;
    transform: translateX(-50%) rotate(45deg);
}

.member-textbox.member-invalid {
    border-color: #f3173e !important;
}

/* Hide Kendo's "field is required" popup messages
   inside the Member editor only. */
.k-edit-form-container .k-form-error,
.k-edit-form-container .k-invalid-msg {
    display: none !important;
}

.member-validation-message {
    position: relative;
    display: inline-block;
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 5px;
    background: #f3173e;
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

.member-validation-callout {
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #f3173e;
    transform: translateX(-50%) rotate(45deg);
}

.event-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 1px #dc3545 !important;
}

input.event-invalid,
textarea.event-invalid,
.k-input.event-invalid,
.k-picker.event-invalid,
.k-datepicker.event-invalid,
.k-datetimepicker.event-invalid,
.k-dropdownlist.event-invalid,
.k-dropdown.event-invalid,
.k-numerictextbox.event-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 1px #dc3545 !important;
}


/*
 * EVENT REQUIRED FIELD VALIDATION  
 *
 * We put the invalid class on .k-edit-field
 * and then target whichever visible control
 * Telerik has rendered inside it.
 */

.event-field-invalid > input,
.event-field-invalid > textarea,
.event-field-invalid .k-input,
.event-field-invalid .k-picker,
.event-field-invalid .k-dropdownlist,
.event-field-invalid .k-dropdown,
.event-field-invalid .k-numerictextbox,
.event-field-invalid .k-input-solid,
.event-field-invalid .k-picker-solid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 1px #dc3545 !important;
}

/* =========================================================
   EDGE-SAFE EVENT TEXT BOXES
   ========================================================= */

.k-edit-form-container .event-textbox {
    display: block !important;
    width: 100% !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 6px 10px !important;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
    border-radius: 4px !important;
    color: #212529 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    line-height: 20px !important;
    outline: none !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}


    /*
 * Focus
 */
    .k-edit-form-container .event-textbox:focus {
        border-color: #86b7fe !important;
        box-shadow: 0 0 0 1px #86b7fe !important;
    }


    /*
 * Validation
 */
    .k-edit-form-container .event-textbox.event-invalid {
        border-color: #ff1744 !important;
        box-shadow: 0 0 0 1px #ff1744 !important;
    }


/*
 * Make sure the Kendo edit field
 * does not collapse around contenteditable.
 */
.k-edit-form-container .k-edit-field {
    min-height: 34px;
}

/* =========================================================
   KENDO POPUP - SCROLL WHEN TOO TALL
   ========================================================= */

.k-window {
    max-height: calc(100vh - 40px) !important;
}


    /*
 * Scroll the popup content rather than allowing
 * the window to extend beyond the screen.
 */
    .k-window .k-window-content {
        max-height: calc(100vh - 140px) !important;
        overflow-y: scroll !important;
        overflow-x: hidden !important;
    }

.event-validation-message {
    position: relative;
    display: inline-block;
    margin-top: 6px;
    padding: 6px 10px;
    background-color: #f3173e !important;
    color: #ffffff !important;
    border-radius: 5px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

.event-validation-callout {
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    background-color: #f3173e !important;
    transform: translateX(-50%) rotate(45deg);
}

/* =========================================================
   MEMBER POPUP - FIXED HEIGHT WITH SCROLLING BODY
   ========================================================= */

.member-edit-popup {
    height: 740px !important;
    max-height: calc(100vh - 40px) !important;
    display: flex !important;
    flex-direction: column !important;
}


    /*
 * Fixed title bar.
 */
    .member-edit-popup .k-window-titlebar {
        flex: 0 0 auto !important;
    }


    /*
 * The Kendo window content occupies all
 * remaining vertical space.
 */
    .member-edit-popup .k-window-content {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }


    /*
 * Member editor body.
 *
 * Popup height does not change when validation
 * messages appear. The body scrolls instead.
 */
    .member-edit-popup .k-edit-form-container {
        flex: 1 1 auto !important;
        width: 100% !important;
        max-width: none !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        padding-left: 4px !important;
        padding-right: 35px !important;
    }


    /*
 * Balanced form layout.
 */
    .member-edit-popup .k-edit-label {
        width: 30% !important;
        box-sizing: border-box !important;
        padding-right: 13px;
    }

    .member-edit-popup .k-edit-field {
        width: 70% !important;
        box-sizing: border-box !important;
    }

/* =========================================================
   EVENT POPUP - CENTERED FORM LAYOUT
   ========================================================= */

.event-edit-popup .k-edit-form-container {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    padding-left: 0px !important;
    padding-right: 45px !important;
}


/*
 * Match Members:
 * labels 30%, controls 70%.
 */
.event-edit-popup .k-edit-label {
    width: 30% !important;
    box-sizing: border-box !important;
    padding-right: 13px;
}

.event-edit-popup .k-edit-field {
    width: 70% !important;
    box-sizing: border-box !important;
}

/* =========================================================
   DASHBOARD COMMUNICATIONS
   ========================================================= */

.dashboard-communications {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
    margin-bottom: 20px;
}


.dashboard-communication-card {
    padding: 20px;
}


.communication-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}


    .communication-card-head h3 {
        margin: 5px 0 0 0;
        font-size: 18px;
    }


.communication-total {
    font-size: 34px;
    line-height: 1;
    font-weight: 700;
    color: #0f172a;
}


.communication-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 18px;
}


    .communication-stats > div {
        padding: 12px 14px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        background: #f8fafc;
    }


    .communication-stats span {
        display: block;
        margin-bottom: 3px;
        font-size: 12px;
        color: #64748b;
    }


    .communication-stats strong {
        display: block;
        font-size: 20px;
        color: #0f172a;
    }


@media (max-width: 900px) {

    .dashboard-communications {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   DASHBOARD COMMUNICATIONS
   ========================================================= */

.communications-dashboard {
    margin-top: 20px;
    margin-bottom: 20px;
}

.communications-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.communication-summary {
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
}

.communication-summary-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

    .communication-summary-head h3 {
        margin: 4px 0 0 0;
        font-size: 18px;
    }

.communication-total {
    font-size: 34px;
    line-height: 1;
    font-weight: 700;
    color: #0f172a;
}

.communication-content {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    align-items: center;
    margin-top: 12px;
}

.communication-figures {
    display: grid;
    gap: 10px;
}

    .communication-figures > div {
        padding: 10px 12px;
        background: #f8fafc;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
    }

    .communication-figures span {
        display: block;
        font-size: 12px;
        color: #64748b;
    }

    .communication-figures strong {
        display: block;
        margin-top: 2px;
        font-size: 22px;
        color: #0f172a;
    }

.communication-chart {
    min-width: 0;
}

@media (max-width: 1000px) {

    .communications-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   EVENTS GRID
   Keep header and rows using identical column geometry
   ========================================================= */

.events-grid-panel {
    overflow: hidden;
}

#eventsGrid {
    width: 100% !important;
    height: 100% !important;
}

    #eventsGrid .k-grid-header,
    #eventsGrid .k-grid-content {
        width: 100% !important;
    }

        /*
 * Kendo uses separate tables for the header and body.
 * Keep both tables using their declared column widths.
 */
        #eventsGrid .k-grid-header table,
        #eventsGrid .k-grid-content table {
            table-layout: fixed !important;
            width: 100% !important;
        }


    /*
 * Do not let command buttons alter the cell geometry.
 */
    #eventsGrid .k-command-cell {
        white-space: nowrap !important;
    }

        #eventsGrid .k-command-cell .k-button {
            display: inline-flex !important;
            width: auto !important;
            margin-right: 4px;
            margin-bottom: 0 !important;
        }

    /*
 * This is the important part:
 * body consumes ALL remaining height.
 */
    #eventsGrid .k-grid-content {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        height: auto !important;
        overflow-y: scroll !important;
        overflow-x: hidden !important;
    }

/* =========================================================
   COMMUNICATION DATE FILTER
   ========================================================= */

.communication-filter {
    margin: 0 0 20px 0;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

    .communication-filter form {
        display: flex;
        align-items: flex-end;
        gap: 14px;
        flex-wrap: wrap;
    }

.communication-filter-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .communication-filter-field label {
        font-size: 12px;
        font-weight: 600;
        color: #64748b;
    }

    .communication-filter-field select,
    .communication-filter-field input {
        height: 38px;
        padding: 0 10px;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        background: #ffffff;
        color: #0f172a;
    }

    .communication-filter-field select {
        min-width: 170px;
    }

    .communication-filter-field input {
        min-width: 150px;
    }

.communication-filter-action {
    display: flex;
    align-items: flex-end;
}

/* =========================================================
   FINDING GOD - PUBLIC WEBSITE
   ========================================================= */

.public-site {
    margin: 0;
    min-height: 100vh;
    background: #f7f9fc;
    color: #172033;
}


/* =========================================================
   HEADER
   ========================================================= */

.public-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e5e9f0;
    backdrop-filter: blur(10px);
}

.public-header-inner {
    max-width: 1320px;
    min-height: 82px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


/* =========================================================
   BRAND
   ========================================================= */

.public-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #15213b;
    text-decoration: none;
}

    .public-brand:hover {
        color: #15213b;
        text-decoration: none;
    }

.public-brand-mark {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #3264e8;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.public-brand-text {
    display: flex;
    flex-direction: column;
}

    .public-brand-text strong {
        font-size: 18px;
        line-height: 1.2;
    }

    .public-brand-text span {
        margin-top: 3px;
        color: #7b8497;
        font-size: 12px;
    }


/* =========================================================
   NAVIGATION
   ========================================================= */

.public-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.public-nav-link {
    padding: 10px 15px;
    border-radius: 8px;
    color: #4e586c;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

    .public-nav-link:hover {
        background: #f0f3f8;
        color: #172033;
        text-decoration: none;
    }

.public-nav-login {
    margin-left: 8px;
    padding: 11px 20px;
    border-radius: 9px;
    background: #3264e8;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

    .public-nav-login:hover {
        background: #2454d3;
        color: #ffffff;
        text-decoration: none;
    }


/* =========================================================
   MAIN
   ========================================================= */

.public-main {
    min-height: calc(100vh - 260px);
}


/* =========================================================
   HERO
   ========================================================= */

.public-hero {
    position: relative;
    min-height: 416px;
    padding: 70px 70px 75px 32px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: linear-gradient( rgba(55, 35, 8, 0.42), rgba(35, 22, 5, 0.52) ), url('/images/border.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid #e6ebf3;
    color: #ffffff;
}

/*
 * Keep the complete hero message physically
 * on the right-hand side of the banner.
 */
.public-hero-content {
    position: relative;
    z-index: 1;
    width: 46%;
    max-width: 720px;
    margin: 0;
    text-align: right;
}

.public-hero h1 {
    width: 100%;
    max-width: none;
    margin: 0;
    color: #ffffff;
    font-size: clamp(42px, 4vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.04em;
    text-align: right;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.public-hero p {
    width: 100%;
    max-width: none;
    margin: 25px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 19px;
    line-height: 1.7;
    text-align: right;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
}

.public-hero-actions {
    width: 100%;
    margin-top: 34px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* =========================================================
   HERO - MOBILE
   ========================================================= */

@media (max-width: 820px) {

    .public-hero {
        min-height: 520px;
        padding: 80px 20px;
        justify-content: center;
        background-position: center;
    }

    .finding-god-hero {
        display: none;
    }
    

    .public-hero-content {
        width: 100%;
        max-width: 700px;
        margin: 0 auto;
        text-align: center;
    }

    .public-hero h1 {
        font-size: clamp(38px, 10vw, 54px);
    }

    .public-hero p {
        font-size: 17px;
    }
}


/* =========================================================
   SECTIONS
   ========================================================= */

.public-section {
    max-width: 1320px;
    margin: 0 auto;
    padding: 80px 32px;
}

.public-section-head {
    margin-bottom: 34px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

    .public-section-head h2 {
        margin: 0;
        color: #172033;
        font-size: 34px;
        letter-spacing: -0.025em;
    }

    .public-section-head p {
        max-width: 650px;
        margin: 9px 0 0;
        color: #747e91;
        line-height: 1.6;
    }


/* =========================================================
   EVENT CARDS
   ========================================================= */

.event-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.event-card {
    overflow: hidden;
    display: flex;
    min-height: 240px;
    background: #ffffff;
    border: 1px solid #e3e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(31, 42, 68, 0.06);
}

.event-card-date {
    width: 90px;
    min-width: 90px;
    padding-top: 30px;
    background: #f0f5ff;
    color: #3264e8;
    text-align: center;
}

    .event-card-date span {
        display: block;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.12em;
    }

    .event-card-date strong {
        display: block;
        margin-top: 4px;
        font-size: 30px;
        line-height: 1;
    }

.event-card-body {
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
}

.event-card-meta {
    margin-bottom: 9px;
    color: #778196;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.event-card h3 {
    margin: 0;
    color: #17264a;
    font-size: 20px;
}

.event-card p {
    margin: 12px 0 22px;
    color: #70798b;
    line-height: 1.6;
}

.event-card-link {
    margin-top: auto;
    color: #3264e8;
    font-weight: 700;
    text-decoration: none;
}

    .event-card-link:hover {
        text-decoration: underline;
    }


/* =========================================================
   ACCOUNT CALLOUT
   ========================================================= */

.public-account-callout {
    max-width: 1256px;
    margin: 0 auto 80px;
    padding: 48px 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background: #17264a;
    border-radius: 20px;
    color: #ffffff;
}

    .public-account-callout h2 {
        max-width: none;
        margin: 0;
        color: #ffffff;
        font-size: 32px;
    }

    .public-account-callout p {
        max-width: 700px;
        margin: 12px 0 0;
        color: #c5cee0;
        line-height: 1.6;
    }

    .public-account-callout .public-eyebrow {
        color: #8eacff;
    }


/* =========================================================
   FOOTER
   ========================================================= */

.public-footer {
    background: #ffffff;
    border-top: 1px solid #e5e9f0;
}

.public-footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 48px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.public-footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

    .public-footer-brand strong {
        color: #172033;
        font-size: 17px;
    }

    .public-footer-brand p {
        margin: 4px 0 0;
        color: #7a8496;
        font-size: 13px;
    }

.public-footer-links {
    display: flex;
    gap: 26px;
}

    .public-footer-links a {
        color: #626d80;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
    }

        .public-footer-links a:hover {
            color: #3264e8;
        }

.public-footer-bottom {
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px 32px 30px;
    border-top: 1px solid #edf0f5;
    color: #8b94a4;
    font-size: 12px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .event-card-grid {
        grid-template-columns: 1fr;
    }

    .public-account-callout {
        margin-left: 20px;
        margin-right: 20px;
        flex-direction: column;
        align-items: flex-start;
    }
}



.public-section {
    padding: 60px 20px;
}

.public-section-head {
    align-items: flex-start;
    flex-direction: column;
}

.public-account-callout {
    padding: 36px 28px;
}

.public-footer-inner {
    padding: 40px 20px;
    align-items: flex-start;
    flex-direction: column;
}

.public-footer-bottom {
    padding: 20px;
}


.event-card-time {
    margin-top: 12px;
    color: #49566c;
    font-size: 14px;
    line-height: 1.5;
}

.event-card-venue {
    margin-top: 10px;
    color: #778196;
    font-size: 13px;
}

.event-card-footer {
    margin-top: auto;
    padding-top: 24px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.event-price {
    color: #17264a;
    font-size: 20px;
    font-weight: 800;
}

    .event-price.free {
        color: #16845b;
    }

.event-availability {
    margin-top: 3px;
    color: #7c8698;
    font-size: 12px;
}

.event-card-button {
    padding: 10px 16px;
    border-radius: 9px;
    background: #3264e8;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

    .event-card-button:hover {
        background: #2454d3;
        color: #ffffff;
        text-decoration: none;
    }

.public-empty-state {
    padding: 50px;
    background: #ffffff;
    border: 1px solid #e3e8f0;
    border-radius: 16px;
    text-align: center;
}

    .public-empty-state h3 {
        margin: 0;
        color: #172033;
    }

    .public-empty-state p {
        margin: 10px 0 0;
        color: #778196;
    }

/* =========================================================
   PUBLIC EVENT DETAILS
   ========================================================= */

.public-event-detail {
    padding: 70px 32px 90px;
}

.public-event-detail-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.public-back-link {
    display: inline-block;
    margin-bottom: 28px;
    color: #657087;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

    .public-back-link:hover {
        color: #3264e8;
    }

.public-event-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 60px;
    align-items: start;
}

.public-event-detail-main h1 {
    max-width: 800px;
    margin: 0 0 28px;
    color: #14213d;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.public-event-date-large {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 40px;
    color: #283750;
}

    .public-event-date-large > div:last-child {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

        .public-event-date-large > div:last-child strong {
            font-size: 18px;
        }

        .public-event-date-large > div:last-child span {
            color: #748096;
            font-size: 14px;
        }

.public-event-date-box {
    width: 76px;
    height: 82px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #edf3ff;
    color: #3264e8;
}

    .public-event-date-box span {
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.12em;
    }

    .public-event-date-box strong {
        margin-top: 2px;
        font-size: 28px;
    }

.public-event-description {
    max-width: 760px;
    margin-bottom: 45px;
    color: #59657a;
    font-size: 17px;
    line-height: 1.8;
    white-space: pre-line;
}

.public-event-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.public-event-info {
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2e7ef;
    border-radius: 14px;
}

    .public-event-info > span {
        display: block;
        margin-bottom: 7px;
        color: #7e899d;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .public-event-info > strong {
        color: #17264a;
        font-size: 17px;
    }

    .public-event-info p {
        margin: 8px 0 0;
        color: #7b8597;
        font-size: 13px;
        line-height: 1.5;
    }


/* =========================================================
   REGISTRATION CARD
   ========================================================= */

.public-registration-card {
    position: sticky;
    top: 110px;
}

.public-registration-card-inner {
    padding: 32px;
    background: #ffffff;
    border: 1px solid #dde4ee;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(31, 42, 68, 0.08);
}

.public-registration-price {
    margin-top: 6px;
    color: #17264a;
    font-size: 34px;
    font-weight: 800;
}

    .public-registration-price.free {
        color: #16845b;
    }

.public-registration-price-note {
    margin-top: 2px;
    color: #8993a5;
    font-size: 12px;
}

.public-registration-card p {
    margin: 24px 0;
    color: #687489;
    line-height: 1.6;
}

.public-register-button {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border-radius: 10px;
    background: #3264e8;
    color: #ffffff;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

    .public-register-button:hover {
        background: #2454d3;
        color: #ffffff;
    }

.public-registration-closed {
    margin-top: 22px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f3f5f8;
    color: #687489;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.public-registration-close-date {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #edf0f5;
    color: #8993a5;
    font-size: 12px;
}

    .public-registration-close-date strong {
        display: block;
        margin-top: 4px;
        color: #4f5b70;
        font-size: 13px;
    }


/* =========================================================
   RESPONSIVE EVENT DETAIL
   ========================================================= */

@media (max-width: 900px) {

    .public-event-detail-grid {
        grid-template-columns: 1fr;
    }

    .public-registration-card {
        position: static;
    }

    .public-event-info-grid {
        grid-template-columns: 1fr;
    }
}

.public-registration-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 60px;
    align-items: start;
}

.public-registration-page-title {
    max-width: 800px;
    margin: 0 0 36px;
    color: #14213d;
    font-size: clamp(36px, 4vw, 50px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.public-registration-form {
    padding: 34px;
    background: #ffffff;
    border: 1px solid #e1e6ee;
    border-radius: 18px;
}

.public-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.public-form-field {
    margin-bottom: 22px;
}

    .public-form-field label {
        display: block;
        margin-bottom: 7px;
        color: #42506a;
        font-size: 13px;
        font-weight: 700;
    }

.public-form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ced6e2;
    border-radius: 9px;
    background: #ffffff;
    color: #172033;
    font-size: 15px;
    box-sizing: border-box;
}

    .public-form-input:focus {
        outline: none;
        border-color: #3264e8;
        box-shadow: 0 0 0 3px rgba(50, 100, 232, 0.12);
    }

.public-field-validation {
    display: block;
    margin-top: 5px;
    color: #c43c3c;
    font-size: 12px;
}

.public-validation-summary {
    margin-bottom: 20px;
    color: #c43c3c;
}

.public-registration-form-actions {
    margin-top: 10px;
}

@media (max-width: 900px) {

    .public-registration-page-grid {
        grid-template-columns: 1fr;
    }

    .public-form-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   PAYMENT
   ========================================================= */

.payment-summary-row {
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    border-bottom: 1px solid #edf0f5;
}

    .payment-summary-row span {
        color: #7c8799;
    }

    .payment-summary-row strong {
        color: #27344e;
        text-align: right;
    }

.payment-summary-total {
    margin: 10px 0 28px;
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

    .payment-summary-total span {
        color: #39475e;
        font-size: 16px;
        font-weight: 700;
    }

    .payment-summary-total strong {
        color: #17264a;
        font-size: 28px;
        font-weight: 800;
    }

.public-payment-security {
    margin-top: 16px;
    color: #8791a3;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

/* =========================================================
   REGISTRATION COMPLETE
   ========================================================= */

.public-registration-complete {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.public-registration-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e7f7ef;
    color: #16845b;
    font-size: 34px;
    font-weight: 800;
}

.public-registration-complete h1 {
    margin: 0;
    color: #14213d;
    font-size: 44px;
    letter-spacing: -0.035em;
}

.public-registration-complete-intro {
    max-width: 620px;
    margin: 18px auto 34px;
    color: #687489;
    font-size: 17px;
    line-height: 1.7;
}

.public-registration-complete-card {
    padding: 28px 32px;
    background: #ffffff;
    border: 1px solid #e1e6ee;
    border-radius: 18px;
    text-align: left;
}

.public-registration-complete-actions {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.public-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.public-brand-logo {
    display: block;
    width: auto;
    height: 58px;
    object-fit: contain;
}

.public-header-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.public-header-logo {
    display: block;
    width: auto;
    height: 62px;
    max-width: 320px;
    object-fit: contain;
}

.public-header-inner {
    min-height: 86px;
}

.public-footer-logo {
    display: block;
    width: auto;
    height: 158px;
    max-width: 240px;
    object-fit: contain;
}

.public-footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 34px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* =========================================================
   HERO SIGN IN BUTTON
   ========================================================= */

.public-hero .public-hero-actions a:nth-child(2) {
    background: rgba(7, 20, 48, 0.70) !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
    padding: 11px 20px;
    border-radius: 9px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

    .public-hero .public-hero-actions a:nth-child(2):hover {
        background: #ffffff !important;
        border-color: #ffffff !important;
        color: #14213d !important;
    }

/* =========================================================
   EMBEDDED STRIPE CHECKOUT
   ========================================================= */

.embedded-payment-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(480px, 1.25fr);
    gap: 48px;
    align-items: start;
}


.embedded-payment-summary h1 {
    max-width: 580px;
    margin: 0 0 34px;
    color: #14213d;
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1.06;
    letter-spacing: -0.035em;
}


.embedded-payment-event {
    padding: 34px;
    background: #ffffff;
    border: 1px solid #e1e6ee;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(31, 42, 68, 0.07);
}


.embedded-payment-logo {
    display: block;
    width: auto;
    height: 68px;
    max-width: 300px;
    object-fit: contain;
    margin-bottom: 30px;
}


.embedded-payment-event-name {
    padding-bottom: 22px;
    color: #17264a;
    font-size: 24px;
    font-weight: 800;
    border-bottom: 1px solid #edf0f5;
}


.embedded-payment-detail {
    padding: 18px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid #edf0f5;
}


    .embedded-payment-detail span {
        color: #8993a5;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }


    .embedded-payment-detail strong {
        color: #27344e;
        font-size: 15px;
    }


    .embedded-payment-detail small {
        color: #7c8799;
        font-size: 13px;
    }


.embedded-payment-total {
    padding-top: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


    .embedded-payment-total span {
        color: #39475e;
        font-size: 16px;
        font-weight: 700;
    }


    .embedded-payment-total strong {
        color: #17264a;
        font-size: 34px;
        font-weight: 800;
    }


.embedded-payment-checkout {
    padding: 34px;
    background: #ffffff;
    border: 1px solid #e1e6ee;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(31, 42, 68, 0.07);
}


.embedded-payment-checkout-head {
    margin-bottom: 26px;
}


    .embedded-payment-checkout-head h2 {
        margin: 0;
        color: #17264a;
        font-size: 28px;
    }


    .embedded-payment-checkout-head p {
        max-width: 580px;
        margin: 10px 0 0;
        color: #748096;
        line-height: 1.6;
    }


.embedded-payment-loading {
    padding: 35px;
    color: #778196;
    text-align: center;
}


.embedded-payment-error {
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fef2f2;
    color: #991b1b;
}


@media (max-width: 1000px) {

    .embedded-payment-layout {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {

    .embedded-payment-checkout,
    .embedded-payment-event {
        padding: 22px;
    }

    .embedded-payment-logo {
        height: 54px;
    }
}

/* =========================================================
   PUBLIC ACCOUNT
   ========================================================= */

.public-account-page {
    max-width: 760px;
    margin: 0 auto;
}

.public-account-login {
    max-width: 560px;
}

.public-account-page h1 {
    margin: 0;
    color: #14213d;
    font-size: 46px;
    letter-spacing: -0.035em;
}

.public-account-intro {
    margin: 14px 0 30px;
    color: #687489;
    font-size: 16px;
    line-height: 1.65;
}

.public-account-logo {
    display: block;
    width: auto;
    height: 72px;
    max-width: 320px;
    margin-bottom: 36px;
}

.public-account-remember {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 24px;
    color: #59657a;
}

.public-account-switch {
    margin-top: 24px;
    text-align: center;
    color: #7b8597;
}

    .public-account-switch a {
        color: #3264e8;
        font-weight: 700;
    }

.registration-message {
    margin: 22px 0 28px;
    padding: 16px 18px;
    border: 1px solid #b9ccff;
    border-radius: 10px;
    background: #eef4ff;
    color: #1f4fbf;
    font-size: 15px;
    font-weight: 700;
}

/* =========================================================
   PUBLIC ACCOUNT DASHBOARD
   ========================================================= */

.public-account-dashboard {
    padding: 70px 32px 90px;
}

.public-account-dashboard-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.public-account-dashboard-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 34px;
}

    .public-account-dashboard-head h1 {
        margin: 4px 0 8px;
        color: #14213d;
        font-size: 46px;
        letter-spacing: -0.035em;
    }

    .public-account-dashboard-head p {
        margin: 0;
        color: #748096;
    }

.public-account-dashboard-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .public-account-dashboard-actions form {
        margin: 0;
    }

.public-account-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 50px;
}

.public-account-summary-card {
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e2e7ef;
    border-radius: 14px;
}

    .public-account-summary-card span {
        display: block;
        margin-bottom: 7px;
        color: #8993a5;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .public-account-summary-card strong {
        color: #17264a;
        font-size: 16px;
    }

.public-account-section {
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e1e6ee;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(31, 42, 68, 0.06);
}

.public-account-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 28px;
}

    .public-account-section-head h2 {
        margin: 4px 0 5px;
        color: #17264a;
        font-size: 28px;
    }

    .public-account-section-head p {
        margin: 0;
        color: #778196;
    }

.public-account-registrations {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.public-account-registration {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto auto;
    gap: 30px;
    align-items: center;
    padding: 24px;
    border: 1px solid #e6eaf0;
    border-radius: 14px;
    background: #fbfcfe;
}

.public-account-event-number {
    margin-bottom: 4px;
    color: #3264e8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.public-account-registration h3 {
    margin: 0 0 8px;
    color: #17264a;
    font-size: 20px;
}

.public-account-registration-date {
    color: #59657a;
    font-size: 14px;
}

    .public-account-registration-date span {
        color: #7e899b;
    }

.public-account-registration-venue {
    margin-top: 5px;
    color: #8993a5;
    font-size: 13px;
}

.public-account-registration-status {
    display: flex;
    gap: 26px;
}

    .public-account-registration-status div {
        min-width: 85px;
    }

    .public-account-registration-status span {
        display: block;
        margin-bottom: 5px;
        color: #8993a5;
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.07em;
    }

    .public-account-registration-status strong {
        color: #27344e;
        font-size: 14px;
    }

.public-account-registration-actions {
    display: flex;
    gap: 8px;
}

.public-account-empty {
    padding: 55px 25px;
    text-align: center;
    border: 1px dashed #d9e0ea;
    border-radius: 14px;
}

    .public-account-empty h3 {
        margin: 0 0 8px;
        color: #17264a;
    }

    .public-account-empty p {
        margin: 0 0 22px;
        color: #7a8597;
    }


@media (max-width: 1000px) {

    .public-account-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .public-account-registration {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 650px) {

    .public-account-dashboard {
        padding: 45px 18px 65px;
    }

    .public-account-dashboard-head,
    .public-account-section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .public-account-summary-grid {
        grid-template-columns: 1fr;
    }

    .public-account-registration-status,
    .public-account-registration-actions {
        flex-wrap: wrap;
    }
}

.public-account-forgot {
    margin: -8px 0 20px;
    text-align: right;
}

    .public-account-forgot a {
        color: #3264e8;
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
    }

        .public-account-forgot a:hover {
            text-decoration: underline;
        }


/* =========================================================
   PUBLIC EVENT REGISTRATION OPTIONS
   ========================================================= */

.public-registration-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
}

.public-registration-option-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}


    /* Primary - account registration */

    .public-registration-option-button.primary {
        background: #3568eb;
        border: 1px solid #3568eb;
        color: #ffffff;
    }

        .public-registration-option-button.primary:hover {
            background: #2858d7;
            border-color: #2858d7;
            color: #ffffff;
            text-decoration: none;
        }


    /* Secondary - guest registration */

    .public-registration-option-button.secondary {
        background: #ffffff;
        border: 1px solid #d5ddeb;
        color: #102a56;
    }

        .public-registration-option-button.secondary:hover {
            background: #f5f8ff;
            border-color: #3568eb;
            color: #2456d8;
            text-decoration: none;
        }


    /* Small interaction */

    .public-registration-option-button:active {
        transform: translateY(1px);
    }

/* =========================================================
   FIND AN EVENT
   ========================================================= */

.public-events-page {
    padding: 70px 30px 90px;
    background: #f5f7fb;
}

.public-events-page-inner {
    max-width: 1180px;
    margin: 0 auto;
}


/* Header */

.public-events-page-head {
    max-width: 720px;
    margin-bottom: 34px;
}

    .public-events-page-head h1 {
        margin: 5px 0 12px;
        color: #14213d;
        font-size: 48px;
        line-height: 1.05;
        letter-spacing: -0.04em;
    }

    .public-events-page-head p {
        margin: 0;
        color: #68758a;
        font-size: 17px;
        line-height: 1.6;
    }


/* Search */

.public-event-search {
    margin-bottom: 18px;
}

.public-event-search-box {
    display: flex;
    overflow: hidden;
    max-width: 760px;
    background: #ffffff;
    border: 1px solid #dce3ed;
    border-radius: 13px;
    box-shadow: 0 8px 24px rgba(25, 45, 85, 0.04);
}

    .public-event-search-box input {
        flex: 1;
        min-width: 0;
        padding: 16px 18px;
        border: 0;
        outline: none;
        background: transparent;
        color: #17264a;
        font-size: 15px;
    }

        .public-event-search-box input::placeholder {
            color: #929bad;
        }

    .public-event-search-box button {
        padding: 0 25px;
        border: 0;
        background: #3568eb;
        color: #ffffff;
        font-weight: 700;
        cursor: pointer;
    }

        .public-event-search-box button:hover {
            background: #2858d7;
        }


/* Filters */

.public-event-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 38px;
}

.public-event-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 17px;
    border: 1px solid #dce3ed;
    border-radius: 999px;
    background: #ffffff;
    color: #536078;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

    .public-event-filter:hover {
        border-color: #3568eb;
        color: #3568eb;
    }

    .public-event-filter.active {
        border-color: #3568eb;
        background: #3568eb;
        color: #ffffff;
    }


/* Results heading */

.public-events-results-head {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 16px;
    color: #7b8699;
    font-size: 13px;
}

    .public-events-results-head strong {
        color: #17264a;
    }

    .public-events-results-head a {
        margin-left: 7px;
        color: #3568eb;
        font-weight: 700;
        text-decoration: none;
    }


/* Event grid */

.public-events-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}


/* Card */

.public-event-list-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    overflow: hidden;
    min-height: 280px;
    background: #ffffff;
    border: 1px solid #dfe5ee;
    border-radius: 17px;
    box-shadow: 0 12px 32px rgba(27, 45, 78, 0.05);
}


/* Date */

.public-event-list-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 30px;
    background: #edf3ff;
    color: #3568eb;
}

.public-event-list-month {
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.public-event-list-date strong {
    font-size: 30px;
    line-height: 1;
}


/* Content */

.public-event-list-content {
    display: flex;
    flex-direction: column;
    padding: 27px;
}

.public-event-list-number {
    margin-bottom: 7px;
    color: #3568eb;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.public-event-list-content h2 {
    margin: 0 0 13px;
    color: #13254a;
    font-size: 21px;
    line-height: 1.25;
}

.public-event-list-meta {
    color: #657186;
    font-size: 13px;
    line-height: 1.5;
}

    .public-event-list-meta span {
        color: #8791a2;
    }

.public-event-list-venue {
    margin-top: 7px;
    color: #7c8799;
    font-size: 13px;
}

    .public-event-list-venue span {
        color: #9aa3b2;
    }


/* Bottom */

.public-event-list-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 26px;
}

.public-event-list-price strong {
    display: block;
    color: #102a56;
    font-size: 22px;
}

.public-event-list-price span {
    display: block;
    margin-top: 3px;
    color: #929bad;
    font-size: 11px;
}

.public-event-list-actions {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 8px;
}

.public-event-status-badge {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #778195;
    font-size: 10px;
    font-weight: 700;
}


/* Empty */

.public-events-empty {
    padding: 70px 30px;
    background: #ffffff;
    border: 1px solid #dfe5ee;
    border-radius: 17px;
    text-align: center;
}

    .public-events-empty h2 {
        margin: 0 0 8px;
        color: #14213d;
    }

    .public-events-empty p {
        margin: 0 0 24px;
        color: #788397;
    }


/* Responsive */

@media (max-width: 900px) {

    .public-events-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {

    .public-events-page {
        padding: 45px 18px 65px;
    }

    .public-events-page-head h1 {
        font-size: 38px;
    }

    .public-event-search-box {
        flex-direction: column;
    }

        .public-event-search-box button {
            min-height: 48px;
        }

    .public-event-list-card {
        grid-template-columns: 70px 1fr;
    }

    .public-event-list-content {
        padding: 21px;
    }

    .public-event-list-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .public-event-list-actions {
        align-items: stretch;
    }
}

/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

.public-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

    .public-menu-toggle span {
        display: block;
        width: 26px;
        height: 2px;
        background: #17264a;
        border-radius: 2px;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }


    /*
 * Open hamburger becomes an X.
 */
    .public-menu-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .public-menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .public-menu-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }


@media (max-width: 820px) {

    .public-header-inner {
        position: relative;
        flex-wrap: wrap;
    }


    .public-menu-toggle {
        display: flex;
        margin-left: auto;
    }


    .public-navigation {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 14px 0 8px;
    }


        .public-navigation.open {
            display: flex;
        }


        .public-navigation a {
            display: block;
            width: 100%;
            padding: 14px 4px;
            border-top: 1px solid #e2e7f0;
        }
}

/* =========================================================
   ADMIN THEME
   ========================================================= */

.app-shell {
    min-height: 100vh;
    background: #f3f5f9;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    width: 255px;
    min-height: 100vh;
    background: #17264a;
    color: #ffffff;
    display: flex;
    flex-direction: column;
}


.admin-brand {
    padding: 28px 24px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}


.admin-brand-link {
    display: block;
    text-decoration: none;
}


.admin-brand-logo {
    display: block;
    width: 250px;
    max-width: 100%;
    height: auto;
}


/* =========================================================
   ADMIN NAVIGATION
   ========================================================= */

.sidebar nav {
    padding: 22px 14px;
    flex: 1;
}


.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 3px 0;
    padding: 12px 14px;
    border-radius: 10px;
    color: #c5cee0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.18s ease, color 0.18s ease;
}


    .sidebar .nav-link span {
        width: 22px;
        text-align: center;
        color: #8eacff;
    }


    .sidebar .nav-link:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
    }


    .sidebar .nav-link.active {
        background: #2f65d9;
        color: #ffffff;
    }


        .sidebar .nav-link.active span {
            color: #ffffff;
        }


.sidebar .nav-heading {
    margin: 26px 14px 8px;
    color: #7183ad;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
}


/* =========================================================
   SIDEBAR FOOTER
   ========================================================= */

.sidebar-footer {
    padding: 18px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    color: #aeb9d0;
    font-size: 12px;
}


.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: #5dcf8b;
}


/* =========================================================
   MAIN AREA
   ========================================================= */

.main-area {
    min-width: 0;
    background: #f3f5f9;
}


/* =========================================================
   FINDING GOD - ADMIN TOP BAR
   MATCH GRID HEADERS
   ========================================================= */

.topbar {
    min-height: 68px !important;
    padding: 0 34px !important;
    background: linear-gradient( 180deg, #9f761d 0%, #805b13 100% ) !important;
    border-bottom: 1px solid #6f4f12 !important;
    box-shadow: 0 4px 14px rgba(66, 43, 6, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

/* Administration title */

.topbar .org-name {
    color: #ffffff !important;

    font-size: 13px !important;
    font-weight: 800 !important;

    letter-spacing: 0.10em !important;

    text-shadow:
        0 1px 2px rgba(45, 28, 3, 0.45);
}


/* User name */

.topbar .top-actions strong {
    color: #ffffff !important;

    font-weight: 800 !important;

    text-shadow:
        0 1px 2px rgba(45, 28, 3, 0.40);
}


/* Administrator text */

.topbar .top-actions span {
    color: #f8e8bd !important;
}

.org-name {
    color: #63739a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
}


.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}


    .top-actions > div:last-child {
        display: flex;
        flex-direction: column;
    }


    .top-actions strong {
        color: #17264a;
        font-size: 14px;
    }


    .top-actions span {
        color: #71809e;
        font-size: 12px;
    }


.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf3ff;
    color: #2f65d9;
    font-weight: 700;
}


.icon-button {
    width: 38px;
    height: 38px;
    border: 1px solid #dfe5ef;
    border-radius: 10px;
    background: #ffffff;
    color: #63739a;
    cursor: pointer;
}


/* =========================================================
   CONTENT
   ========================================================= */

.content-wrap {
    padding: 30px 34px 50px;
}


/* =========================================================
   PAGE HEAD
   ========================================================= */

.page-head {
    margin-bottom: 24px;
}


    .page-head h1 {
        margin: 4px 0 6px;
        color: #17264a;
        font-size: 34px;
    }


    .page-head p {
        margin: 0;
        color: #71809e;
    }


.eyebrow {
    color: #2f65d9;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
}


/* =========================================================
   PANELS
   ========================================================= */

.panel {
    background: #ffffff;
    border: 1px solid #e2e7f0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(23, 38, 74, 0.05);
}

/* =========================================================
   PUBLIC HEADER LOGO
   ========================================================= */

.public-header-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.public-header-logo {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
}


/* =========================================================
   HAMBURGER
   ========================================================= */

.public-menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

    .public-menu-toggle span {
        display: block;
        width: 26px;
        height: 2px;
        background: #17264a;
        border-radius: 2px;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }


    /*
 * Hamburger becomes X.
 */

    .public-menu-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .public-menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .public-menu-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }


/* =========================================================
   MOBILE HEADER
   ========================================================= */

@media (max-width: 820px) {

    .public-header-inner {
        min-height: 72px;
        padding: 8px 18px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0;
    }


    .public-header-brand {
        width: auto;
        height: 56px;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex: 0 1 auto;
    }


    .public-header-logo {
        display: block;
        width: auto;
        height: 54px;
        max-width: 210px;
        object-fit: contain;
    }


    .public-menu-toggle {
        display: flex;
        width: 46px;
        height: 56px;
        margin: 0 0 0 auto;
        padding: 10px;
        flex: 0 0 46px;
        align-items: center;
        justify-content: center;
    }


    .public-navigation {
        display: none;
        width: 100%;
        margin-top: 8px;
        padding: 8px 0 4px;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        border-top: 1px solid #e2e7f0;
    }


        .public-navigation.open {
            display: flex;
        }
}

/* =========================================================
   FINAL MOBILE HEADER
   MUST BE THE LAST BLOCK IN site.css
   ========================================================= */

@media (max-width: 820px) {

    /*
     * Header stays at the top while scrolling.
     */
    .public-header {
        position: sticky !important;
        position: -webkit-sticky !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
        background: #ffffff !important;
        border-bottom: 1px solid #e5e9f0 !important;
        box-sizing: border-box !important;
    }


    /*
     * First row:
     *
     * Logo                         Hamburger
     *
     * Second row:
     *
     * Navigation when opened
     */
    .public-header-inner {
        width: 100% !important;
        max-width: none !important;
        min-height: 72px !important;
        margin: 0 !important;
        padding: 8px 18px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 46px !important;
        grid-template-rows: auto auto !important;
        align-items: center !important;
        column-gap: 12px !important;
        row-gap: 0 !important;
        box-sizing: border-box !important;
    }


    /*
     * LOGO
     */
    .public-header-brand {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: auto !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        min-width: 0 !important;
    }


    .public-header-logo {
        display: block !important;
        width: auto !important;
        height: 54px !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        object-fit: contain !important;
    }


    /*
     * HAMBURGER
     */
    .public-menu-toggle {
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 46px !important;
        height: 46px !important;
        margin: 0 !important;
        padding: 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: center !important;
        justify-self: end !important;
        border: 0 !important;
        border-radius: 9px !important;
        background: transparent !important;
        box-sizing: border-box !important;
    }


        .public-menu-toggle:hover {
            background: #f0f3f8 !important;
        }


    /*
     * MOBILE MENU
     *
     * Keep it completely inside the padded
     * header rather than allowing it to run
     * off either side of the screen.
     */
    .public-navigation {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        display: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 8px 0 0 0 !important;
        padding: 8px 0 6px 0 !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 3px !important;
        border-top: 1px solid #e2e7f0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }


        .public-navigation.open {
            display: flex !important;
        }


        /*
     * Individual menu links.
     *
     * Explicit left/right padding prevents
     * the text touching the phone edge.
     */
        .public-navigation .public-nav-link {
            display: flex !important;
            width: 100% !important;
            max-width: 100% !important;
            min-height: 46px !important;
            margin: 0 !important;
            padding: 0 16px !important;
            align-items: center !important;
            justify-content: flex-start !important;
            border: 0 !important;
            border-radius: 8px !important;
            box-sizing: border-box !important;
            color: #4e586c !important;
            font-size: 15px !important;
            font-weight: 600 !important;
            text-align: left !important;
        }


            .public-navigation .public-nav-link:hover {
                background: #f0f3f8 !important;
                color: #172033 !important;
            }


        /*
     * Sign In / Account
     */
        .public-navigation .public-nav-account {
            width: 100% !important;
            margin: 5px 0 3px 0 !important;
            padding: 0 16px !important;
            justify-content: center !important;
            background: #3264e8 !important;
            color: #ffffff !important;
        }


            .public-navigation .public-nav-account:hover {
                background: #2454d3 !important;
                color: #ffffff !important;
            }
}


/*
 * Prevent anything in the public header/menu
 * causing horizontal page scrolling.
 */
.public-site {
    overflow-x: hidden;
}

/* =========================================================
/* =========================================================
   FINDING GOD - LEFT SIDE OF HERO
   ========================================================= */

.finding-god-hero {
    position: absolute;
    z-index: 2;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 28%;
    max-width: 430px;
    text-align: left;
}


/* FINDING */

.finding-word {
    margin: 0 0 3px 30px;
    color: #ffffff;
    font-size: clamp(22px, 2vw, 34px);
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.30);
}


/* GOD IMAGE */

.god-word-image {
    display: block;
    width: 100%;
    max-width: 370px;
    height: auto;
    margin: 0;
}


/* GOLD LINE */

.finding-line {
    width: 90px;
    height: 2px;
    margin: 3px 0 15px 135px;
    background: #e7b94e;
}


/* IN THE */

.finding-location-small {
    margin: 0 0 3px 13px;
    color: #ffffff;
    font-size: clamp(18px, 1.4vw, 24px);
    font-weight: 300;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.30);
}


/* ALBURY-WODONGA BORDER REGION */

.finding-location {
    max-width: 410px;
    margin: 0 0 0 13px;
    color: #f3c85c;
    font-size: clamp(22px, 1.8vw, 30px);
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}


.public-hero .finding-word,
.public-hero .finding-location-small,
.public-hero .finding-location,
.public-hero .public-eyebrow,
.public-hero h1,
.public-hero p {
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.90), 0 4px 12px rgba(0, 0, 0, 0.75);
}


.public-hero-actions .btn {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   FINDING GOD - PUBLIC GOLD THEME
   Keep this at the END of site.css
   ========================================================= */

:root {
    --finding-gold: #c9962b;
    --finding-gold-light: #e3b84f;
    --finding-gold-dark: #9f7017;
    --finding-gold-deep: #8a6518;
    --finding-gold-soft: #fff7e2;
    /* Standard public-site border */
    --finding-border: #dfc98f;
    --finding-text: #332b20;
    --finding-text-soft: #6f6659;
}


/* =========================================================
   MAIN PUBLIC BUTTONS
   ========================================================= */

.public-site .btn.primary,
.public-site .public-register-button,
.public-site .event-card-button,
.public-site .public-registration-option-button.primary {
    background: linear-gradient( 135deg, var(--finding-gold-light) 0%, var(--finding-gold) 55%, var(--finding-gold-dark) 100% ) !important;
    border: 1px solid var(--finding-gold-dark) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}


    .public-site .btn.primary:hover,
    .public-site .public-register-button:hover,
    .public-site .event-card-button:hover,
    .public-site .public-registration-option-button.primary:hover {
        background: linear-gradient( 135deg, #edc968 0%, #d4a232 55%, #ad7919 100% ) !important;
        border-color: #956515 !important;
        color: #ffffff !important;
        box-shadow: 0 5px 14px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.30);
        transform: translateY(-1px);
    }


/* =========================================================
   HEADER ACCOUNT / SIGN IN BUTTON
   ========================================================= */

.public-site .public-nav-login,
.public-site .public-nav-account {
    background: linear-gradient( 135deg, var(--finding-gold-light), var(--finding-gold) ) !important;
    border: 1px solid var(--finding-gold-dark) !important;
    color: #ffffff !important;
}


    .public-site .public-nav-login:hover,
    .public-site .public-nav-account:hover {
        background: var(--finding-gold-dark) !important;
        border-color: var(--finding-gold-dark) !important;
        color: #ffffff !important;
    }


/* =========================================================
   HERO BUTTONS
   ========================================================= */

/* Find an event */

.public-hero .public-hero-actions a:first-child {
    background: linear-gradient( 135deg, var(--finding-gold-light), var(--finding-gold) ) !important;
    border: 2px solid var(--finding-gold-light) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.40);
}


    .public-hero .public-hero-actions a:first-child:hover {
        background: var(--finding-gold-dark) !important;
        border-color: #f0cc70 !important;
        color: #ffffff !important;
    }


/* Sign in - dark navy with gold border */

.public-hero .public-hero-actions a:nth-child(2) {
    background: rgba(16, 29, 56, 0.82) !important;
    border: 2px solid var(--finding-gold-light) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.40);
}


    .public-hero .public-hero-actions a:nth-child(2):hover {
        background: var(--finding-gold) !important;
        border-color: var(--finding-gold-light) !important;
        color: #ffffff !important;
    }


/* =========================================================
   EVENT SEARCH BUTTON
   ========================================================= */

.public-site .public-event-search-box button {
    background: var(--finding-gold) !important;
    color: #ffffff !important;
}


    .public-site .public-event-search-box button:hover {
        background: var(--finding-gold-dark) !important;
    }


/* =========================================================
   EVENT FILTER BUTTONS
   ========================================================= */

.public-site .public-event-filter:hover {
    border-color: var(--finding-gold) !important;
    color: var(--finding-gold-dark) !important;
}


.public-site .public-event-filter.active {
    background: var(--finding-gold) !important;
    border-color: var(--finding-gold) !important;
    color: #ffffff !important;
}


/* =========================================================
   SECONDARY / OUTLINE BUTTONS
   ========================================================= */

.public-site .public-registration-option-button.secondary {
    background: #ffffff !important;
    border: 1px solid var(--finding-gold) !important;
    color: var(--finding-gold-dark) !important;
}


    .public-site .public-registration-option-button.secondary:hover {
        background: var(--finding-gold-soft) !important;
        border-color: var(--finding-gold-dark) !important;
        color: var(--finding-gold-dark) !important;
    }


/* =========================================================
   LINKS / SMALL ACCENTS
   ========================================================= */

.public-site .event-card-link,
.public-site .public-back-link:hover,
.public-site .public-account-switch a,
.public-site .public-account-forgot a,
.public-site .public-events-results-head a {
    color: var(--finding-gold-dark) !important;
}


/* =========================================================
   EVENT DATE ACCENTS
   ========================================================= */

.public-site .event-card-date,
.public-site .public-event-list-date,
.public-site .public-event-date-box {
    background: var(--finding-gold-soft) !important;
    color: var(--finding-gold-dark) !important;
}


/* =========================================================
   EVENT NUMBERS / EYEBROWS
   ========================================================= */

.public-site .public-event-list-number,
.public-site .public-account-event-number {
    color: var(--finding-gold-dark) !important;
}


/* =========================================================
   FORM FOCUS
   ========================================================= */

.public-site .public-form-input:focus {
    border-color: var(--finding-gold) !important;
    box-shadow: 0 0 0 3px rgba(201, 150, 43, 0.16) !important;
}


/* =========================================================
   MOBILE HAMBURGER
   ========================================================= */

.public-site .public-menu-toggle span {
    background: var(--finding-gold-dark) !important;
}

/* =========================================================
   FINDING GOD - HOME PAGE FINISHING
   GOLD / GOLDENROD THEME
   ========================================================= */


.public-site .public-account-callout {
    background: linear-gradient( 135deg, #d0a13a 0%, #b98520 100% ) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 8px 18px rgba(92, 61, 10, 0.18), 0 20px 45px rgba(92, 61, 10, 0.20) !important;
    color: #ffffff !important;
}

    .public-site .public-account-callout h2 {
        color: #ffffff !important;
        text-shadow: 0 2px 3px rgba(75, 48, 5, 0.35);
    }

    .public-site .public-account-callout p {
        color: #ffffff !important;
        text-shadow: 0 1px 2px rgba(75, 48, 5, 0.30);
    }

    .public-site .public-account-callout .public-eyebrow {
        color: #fff4cf !important;
        text-shadow: 0 1px 2px rgba(75, 48, 5, 0.30);
    }


    /* Buttons inside account callout */

    .public-site .public-account-callout .btn {
        border-color: #ffffff !important;
    }


/* =========================================================
   HOME PAGE EVENT DATE BLOCK
   Dark goldenrod with white text
   ========================================================= */

.public-site .event-card-date {
    background: linear-gradient( 180deg, #a87819 0%, #80570f 100% ) !important;
    color: #ffffff !important;
}


    /* Month */

    .public-site .event-card-date span {
        color: #ffffff !important;
    }


    /* Day */

    .public-site .event-card-date strong {
        color: #ffffff !important;
    }


/* =========================================================
   FIND EVENTS PAGE DATE BLOCK
   Same dark goldenrod treatment
   ========================================================= */

.public-site .public-event-list-date {
    background: linear-gradient( 180deg, #a87819 0%, #80570f 100% ) !important;
    color: #ffffff !important;
}


.public-site .public-event-list-month {
    color: #ffffff !important;
}


.public-site .public-event-list-date strong {
    color: #ffffff !important;
}


/* =========================================================
   EVENT DETAILS DATE BLOCK
   ========================================================= */

.public-site .public-event-date-box {
    background: linear-gradient( 180deg, #a87819 0%, #80570f 100% ) !important;
    color: #ffffff !important;
}


    .public-site .public-event-date-box span,
    .public-site .public-event-date-box strong {
        color: #ffffff !important;
    }

/* =========================================================
   FINDING GOD - FINAL GOLD TYPOGRAPHY THEME
   MUST REMAIN AT END OF site.css
   ========================================================= */

:root {
    --finding-gold: #c9962b;
    --finding-gold-light: #e3b84f;
    --finding-gold-dark: #9f7017;
    /*
     * Very dark goldenrod.
     * Used for headings and navigation.
     */
    --finding-gold-deep: #8a6518;
    --finding-gold-soft: #fff7e2;
    --finding-text: #332b20;
    --finding-text-soft: #6f6659;
}


/* =========================================================
   PUBLIC SITE HEADINGS
   ========================================================= */

.public-site h1,
.public-site h2,
.public-site h3,
.public-site h4,
.public-site h5,
.public-site h6,
.public-site .public-section-head h2,
.public-site .event-card h3,
.public-site .public-event-detail-main h1,
.public-site .public-registration-page-title,
.public-site .public-registration-complete h1,
.public-site .embedded-payment-summary h1,
.public-site .embedded-payment-checkout-head h2,
.public-site .public-account-page h1,
.public-site .public-account-dashboard-head h1,
.public-site .public-account-section-head h2,
.public-site .public-account-registration h3,
.public-site .public-events-page-head h1,
.public-site .public-event-list-content h2,
.public-site .public-events-empty h2 {
    color: #a47a20 !important;
    text-shadow: 0 1px 1px rgba(80, 52, 8, 0.22), 0 2px 4px rgba(80, 52, 8, 0.14);
}


/* =========================================================
   MAIN NAVIGATION
   ========================================================= */

.public-site .public-nav-link {
    color: var(--finding-gold-deep) !important;
}


    .public-site .public-nav-link:hover {
        background: var(--finding-gold-soft) !important;
        color: var(--finding-gold-dark) !important;
    }


/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 820px) {

    .public-site .public-navigation .public-nav-link {
        color: var(--finding-gold-deep) !important;
    }

        .public-site .public-navigation .public-nav-link:hover {
            background: var(--finding-gold-soft) !important;
            color: var(--finding-gold-dark) !important;
        }

    /*
     * Account button remains gold with white text.
     */
    .public-site .public-navigation .public-nav-account {
        background: linear-gradient( 135deg, var(--finding-gold-light), var(--finding-gold) ) !important;
        border: 1px solid var(--finding-gold-dark) !important;
        color: #ffffff !important;
    }

        .public-site .public-navigation .public-nav-account:hover {
            background: var(--finding-gold-dark) !important;
            color: #ffffff !important;
        }
}


/* =========================================================
   EVENT PRICES / IMPORTANT DARK TEXT
   ========================================================= */

.public-site .event-price,
.public-site .public-event-list-price strong,
.public-site .public-registration-price,
.public-site .embedded-payment-total strong,
.public-site .payment-summary-total strong {
    color: var(--finding-gold-deep) !important;
}


/* =========================================================
   EVENT INFORMATION HEADINGS
   ========================================================= */

.public-site .public-event-info > strong,
.public-site .public-account-summary-card strong {
    color: var(--finding-gold-deep) !important;
}


/* =========================================================
   LINKS
   ========================================================= */

.public-site .event-card-link,
.public-site .public-back-link:hover,
.public-site .public-account-switch a,
.public-site .public-account-forgot a,
.public-site .public-events-results-head a {
    color: var(--finding-gold-dark) !important;
}

/* =========================================================
   ACCOUNT - REGISTRATION CARDS
   LIGHT GOLDEN THEME
   ========================================================= */

.public-site .public-account-registration {
    background: linear-gradient( 135deg, #fffaf0 0%, #fff4d8 100% ) !important;
    border: 1px solid #e5c46f !important;
    box-shadow: 0 3px 10px rgba(164, 122, 32, 0.08), 0 8px 20px rgba(164, 122, 32, 0.06) !important;
}


    /* Event title */

    .public-site .public-account-registration h3 {
        color: #a47a20 !important;
        text-shadow: 0 1px 1px rgba(80, 52, 8, 0.16), 0 2px 4px rgba(80, 52, 8, 0.08);
    }


/* Event number */

.public-site .public-account-event-number {
    color: #a47a20 !important;
}


/* Registration / Payment / Amount Paid labels */

.public-site .public-account-registration .label {
    color: #9b7628 !important;
}


/* View Event / View Registration links */

.public-site .public-account-registration a {
    color: #9a7018 !important;
}

    .public-site .public-account-registration a:hover {
        color: #c49327 !important;
    }

/* =========================================================
   HAMBURGER
   ========================================================= */

.public-site .public-menu-toggle span {
    background: var(--finding-gold-deep) !important;
}

/* =========================================================
   HERO - FORCE TEXT WHITE
   ========================================================= */

.public-site .public-hero h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.95), 0 4px 12px rgba(0, 0, 0, 0.80);
}

.public-site .public-hero .public-eyebrow {
    color: #ffffff !important;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.95), 0 4px 10px rgba(0, 0, 0, 0.75);
}

.public-site .public-hero p {
    color: #ffffff !important;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.95), 0 4px 10px rgba(0, 0, 0, 0.75);
}

/* =========================================================
   FINDING GOD - CONSISTENT PUBLIC BORDERS
   ========================================================= */

.public-site .event-card,
.public-site .public-empty-state,
.public-site .public-event-info,
.public-site .public-registration-card-inner,
.public-site .public-registration-form,
.public-site .public-registration-complete-card,
.public-site .embedded-payment-event,
.public-site .embedded-payment-checkout,
.public-site .public-account-summary-card,
.public-site .public-account-section,
.public-site .public-account-registration,
.public-site .public-account-empty,
.public-site .public-event-search-box,
.public-site .public-event-filter,
.public-site .public-event-list-card,
.public-site .public-events-empty {
    border-color: var(--finding-border) !important;
}

/* =========================================================
   FINDING GOD - ADMIN SIDEBAR
   ========================================================= */

/* =========================================================
   FINDING GOD - COMPLETE ADMIN GOLD THEME
   MUST REMAIN AT THE VERY END OF site.css
   ========================================================= */

:root {
    --admin-gold: #c9962b;
    --admin-gold-light: #e3b84f;
    --admin-gold-dark: #9f7017;
    --admin-gold-deep: #8a6518;
    --admin-gold-darker: #6f4f12;
    --admin-gold-soft: #fff8e8;
    --admin-gold-pale: #f8efd8;
    --admin-border: #dfc98f;
    --admin-text: #332b20;
    --admin-muted: #756b5b;
    --admin-sidebar: #33260f;
    --admin-sidebar-deep: #211807;
    --admin-gold-header: #74520f;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    background: linear-gradient( 180deg, #3a2b10 0%, #2c200c 55%, #211807 100% ) !important;
    color: #ffffff !important;
}


/* =========================================================
   LOGO AREA
   Give the logo more breathing room
   ========================================================= */

.admin-brand {
    padding: 28px 20px 30px !important;
    min-height: 184px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(227, 184, 79, 0.25) !important;
}


.admin-brand-link {
    width: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   ADMIN SIDEBAR - LARGER LOGO
   ========================================================= */

.admin-brand-logo {
    display: block;
    width: 250px !important;
    max-width: 96% !important;
    height: auto !important;
    filter: drop-shadow( 0 5px 10px rgba(0, 0, 0, 0.35) );
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.sidebar nav {
    padding: 26px 14px !important;
}


.sidebar .nav-link {
    color: #eadfca !important;
    border: 1px solid transparent;
}


    .sidebar .nav-link span {
        color: var(--admin-gold-light) !important;
    }


    /* Hover */

    .sidebar .nav-link:hover {
        background: rgba(227, 184, 79, 0.10) !important;
        border-color: rgba(227, 184, 79, 0.15);
        color: #ffffff !important;
    }


    /* =========================================================
   ACTIVE MENU ITEM
   ========================================================= */

    .sidebar .nav-link.active {
        background: linear-gradient( 135deg, #d6a637 0%, #a97719 100% ) !important;
        border-color: #e3b84f !important;
        color: #ffffff !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.20);
    }


        .sidebar .nav-link.active span {
            color: #ffffff !important;
        }


/* =========================================================
   NAVIGATION HEADINGS
   ========================================================= */

.sidebar .nav-heading {
    color: #c8a75e !important;
}


/* =========================================================
   SIDEBAR FOOTER
   ========================================================= */

.sidebar-footer {
    border-top-color: rgba(227, 184, 79, 0.20) !important;
    color: #cdbf9f !important;
}

/* =========================================================
   MAIN ADMIN AREA
   ========================================================= */

.app-shell,
.main-area {
    background: #f7f4ed !important;
    color: var(--admin-text);
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    background: linear-gradient( 180deg, #3a2b10 0%, #2c200c 55%, #211807 100% ) !important;
    color: #ffffff !important;
}


/* Logo separator */

.admin-brand {
    border-bottom-color: rgba(227, 184, 79, 0.28) !important;
}


/* Navigation */

.sidebar .nav-link {
    color: #eadfca !important;
}

    .sidebar .nav-link span {
        color: var(--admin-gold-light) !important;
    }

    .sidebar .nav-link:hover {
        background: rgba(227, 184, 79, 0.12) !important;
        border-color: rgba(227, 184, 79, 0.22) !important;
        color: #ffffff !important;
    }


    /* Selected navigation */

    .sidebar .nav-link.active {
        background: linear-gradient( 135deg, #d6a637 0%, #a97719 100% ) !important;
        border-color: #e3b84f !important;
        color: #ffffff !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
    }

        .sidebar .nav-link.active span {
            color: #ffffff !important;
        }

.sidebar .nav-heading {
    color: #c8a75e !important;
}

.sidebar-footer {
    border-top-color: rgba(227, 184, 79, 0.22) !important;
    color: #cdbf9f !important;
}


/* =========================================================
   TOP BAR
   ========================================================= */

.topbar {
    background: #ffffff !important;
    border-bottom-color: var(--admin-border) !important;
}

.org-name {
    color: var(--admin-gold-deep) !important;
}

.top-actions strong {
    color: var(--admin-gold-deep) !important;
}

.top-actions span {
    color: var(--admin-muted) !important;
}


/* Avatar */

.avatar {
    background: var(--admin-gold-soft) !important;
    color: var(--admin-gold-deep) !important;
    border: 1px solid var(--admin-border);
}


/* Top bar buttons */

.icon-button {
    background: #ffffff !important;
    border-color: var(--admin-border) !important;
    color: var(--admin-gold-deep) !important;
}

    .icon-button:hover {
        background: var(--admin-gold-soft) !important;
    }


/* =========================================================
   PAGE HEADINGS
   ========================================================= */

.page-head h1 {
    color: var(--admin-gold-deep) !important;
}

.page-head p {
    color: var(--admin-muted) !important;
}

.eyebrow {
    color: var(--admin-gold) !important;
}


/* =========================================================
   PANELS / CARDS
   ========================================================= */

.panel,
.stat-card,
.testimonial-card {
    background: #ffffff !important;
    border-color: var(--admin-border) !important;
    box-shadow: 0 4px 14px rgba(111, 79, 18, 0.05), 0 10px 30px rgba(111, 79, 18, 0.04) !important;
}

.panel-head {
    border-bottom-color: #eadfca !important;
}

    .panel-head h2,
    .quick-panel h2 {
        color: var(--admin-gold-deep) !important;
    }

    .panel-head p,
    .quick-panel p {
        color: var(--admin-muted) !important;
    }

    .panel-head a {
        color: var(--admin-gold-dark) !important;
    }


/* =========================================================
   DASHBOARD KPI CARDS
   ========================================================= */

.dashboard-kpi .eyebrow,
.stat-card > span {
    color: var(--admin-gold) !important;
}

.dashboard-number,
.stat-card strong {
    color: var(--admin-text) !important;
}

.stat-card small {
    color: var(--admin-muted) !important;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    border-color: var(--admin-border) !important;
}

    .btn.primary {
        background: linear-gradient( 135deg, var(--admin-gold-light), var(--admin-gold) ) !important;
        border-color: var(--admin-gold-dark) !important;
        color: #ffffff !important;
    }

        .btn.primary:hover {
            background: var(--admin-gold-dark) !important;
            border-color: var(--admin-gold-dark) !important;
        }

    .btn.secondary {
        background: #ffffff !important;
        border-color: var(--admin-border) !important;
        color: var(--admin-gold-deep) !important;
    }

        .btn.secondary:hover {
            background: var(--admin-gold-soft) !important;
        }


/* =========================================================
   LINKS
   ========================================================= */

.back-link,
.member-link strong {
    color: var(--admin-gold-deep) !important;
}

    .back-link:hover,
    .member-link:hover strong {
        color: var(--admin-gold) !important;
    }


/* =========================================================
   MEMBER AVATAR
   ========================================================= */

.member-avatar {
    background: var(--admin-gold-soft) !important;
    color: var(--admin-gold-deep) !important;
}


/* =========================================================
   DATE TILES
   ========================================================= */

.date-tile {
    border-color: var(--admin-border) !important;
    background: var(--admin-gold-soft) !important;
}

    .date-tile span {
        color: var(--admin-gold-deep) !important;
    }


/* =========================================================
   COMMUNICATION ICONS
   ========================================================= */

.comm-icon {
    background: var(--admin-gold-soft) !important;
    color: var(--admin-gold-deep) !important;
}

    /*
   SMS can remain green because it communicates
   a different channel/status.
*/
    .comm-icon.sms {
        background: #edf9f3 !important;
        color: var(--green) !important;
    }


/* =========================================================
   QUICK ACTIONS
   ========================================================= */

.quick-actions a {
    background: #ffffff !important;
    border-color: var(--admin-border) !important;
    color: var(--admin-gold-deep) !important;
}

    .quick-actions a:hover {
        background: var(--admin-gold-soft) !important;
    }


/* =========================================================
   PROGRESS BARS
   ========================================================= */

.progress {
    background: #eee7d8 !important;
}

    .progress i {
        background: var(--admin-gold) !important;
    }


/* =========================================================
   TYPE CHIPS
   ========================================================= */

.type-chip {
    background: var(--admin-gold-soft) !important;
    color: var(--admin-gold-deep) !important;
}


/* =========================================================
   KENDO GRID
   ========================================================= */

.k-grid {
    border-color: var(--admin-border) !important;
}

    .k-grid .k-toolbar {
        background: #ffffff !important;
        border-color: var(--admin-border) !important;
    }

    .k-grid .k-grid-header {
        background: var(--admin-gold-soft) !important;
        border-color: var(--admin-border) !important;
    }

        .k-grid .k-grid-header th,
        .k-grid .k-header {
            background: var(--admin-gold-soft) !important;
            color: var(--admin-gold-deep) !important;
            border-color: var(--admin-border) !important;
        }

    .k-grid td {
        border-color: #eee5d2 !important;
    }

    .k-grid tbody tr:hover {
        background: #fffaf0 !important;
    }


    /* Selected Kendo row */

    .k-grid tbody tr.k-selected,
    .k-grid tbody tr.k-state-selected {
        background: #f4e4b8 !important;
        color: var(--admin-text) !important;
    }


/* =========================================================
   KENDO BUTTONS
   ========================================================= */

.k-button-solid-primary,
.k-button.k-primary {
    background: var(--admin-gold) !important;
    border-color: var(--admin-gold-dark) !important;
    color: #ffffff !important;
}

    .k-button-solid-primary:hover,
    .k-button.k-primary:hover {
        background: var(--admin-gold-dark) !important;
        border-color: var(--admin-gold-dark) !important;
    }


/* =========================================================
   KENDO PAGER
   ========================================================= */

.k-pager-wrap,
.k-grid-pager {
    border-color: var(--admin-border) !important;
}

.k-pager-numbers .k-selected,
.k-pager-numbers .k-state-selected {
    background: var(--admin-gold) !important;
    border-color: var(--admin-gold-dark) !important;
    color: #ffffff !important;
}


/* =========================================================
   FORM CONTROLS
   ========================================================= */

.form-control-custom,
.compose-body textarea,
.compose-body .form-control,
.member-textbox,
.k-edit-form-container .event-textbox {
    border-color: #d8c69e !important;
}


    /* Focus */

    .form-control-custom:focus,
    .compose-body textarea:focus,
    .compose-body .form-control:focus,
    .member-textbox:focus,
    .k-edit-form-container .event-textbox:focus {
        outline: none !important;
        border-color: var(--admin-gold) !important;
        box-shadow: 0 0 0 3px rgba(201, 150, 43, 0.14) !important;
    }


/* =========================================================
   COMPOSE / COMMUNICATION WINDOWS
   ========================================================= */

.compose-head,
.compose-actions {
    border-color: var(--admin-border) !important;
}

    .compose-head h2 {
        color: var(--admin-gold-deep) !important;
    }

    .compose-head button {
        color: var(--admin-gold-deep) !important;
    }

.recipient-box,
.communication-summary-line {
    background: var(--admin-gold-soft) !important;
    border-color: var(--admin-border) !important;
}


/* =========================================================
   COMMUNICATION RESULT GRID
   ========================================================= */

.communication-result-grid {
    border-color: var(--admin-border) !important;
}

.communication-result-table th,
.communication-result-table td {
    border-color: #eadfca !important;
}

.communication-result-table thead th {
    background: var(--admin-gold-soft) !important;
    color: var(--admin-gold-deep) !important;
    border-bottom-color: var(--admin-border) !important;
}

.communication-result-table tbody tr:hover {
    background: #fffaf0 !important;
}


/* =========================================================
   COMMUNICATION DASHBOARD
   ========================================================= */

.communication-summary {
    border-color: var(--admin-border) !important;
}

.communication-total,
.communication-stats strong,
.communication-figures strong {
    color: var(--admin-gold-deep) !important;
}

.communication-stats > div,
.communication-figures > div {
    background: var(--admin-gold-soft) !important;
    border-color: var(--admin-border) !important;
}


/* =========================================================
   COMMUNICATION FILTER
   ========================================================= */

.communication-filter {
    background: var(--admin-gold-soft) !important;
    border-color: var(--admin-border) !important;
}

.communication-filter-field label {
    color: var(--admin-gold-deep) !important;
}

.communication-filter-field select,
.communication-filter-field input {
    border-color: var(--admin-border) !important;
    color: var(--admin-text) !important;
}


/* =========================================================
   DETAILS / TABLE BORDERS
   ========================================================= */

.event-row,
.activity-row,
.history-row,
.details-list dt,
.details-list dd,
.event-list-row,
.clean-table td,
.calendar-strip {
    border-color: #eadfca !important;
}

.clean-table th {
    background: var(--admin-gold-soft) !important;
    color: var(--admin-gold-deep) !important;
}


/* =========================================================
   TESTIMONIALS
   ========================================================= */

.quote-mark {
    color: var(--admin-gold-light) !important;
}

.testimonial-person {
    border-color: var(--admin-border) !important;
}


/* =========================================================
   KEEP SEMANTIC STATUS COLOURS
   ========================================================= */

/*
   These intentionally remain green/red/amber because
   they indicate success, errors, warnings and status.
*/

.status-active,
.status-sent {
    color: #166534 !important;
}

.status-expired,
.status-failed,
.status-bounced {
    color: #991b1b !important;
}

.status-pending {
    color: #92400e !important;
}

/* =========================================================
   MAIN ADMIN AREA
   ========================================================= */

.app-shell,
.main-area {
    background: #f7f4ed !important;
    color: var(--admin-text);
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    background: linear-gradient( 180deg, #3a2b10 0%, #2c200c 55%, #211807 100% ) !important;
    color: #ffffff !important;
}


/* Logo separator */

/* =========================================================
   ADMIN SIDEBAR - LARGE LOGO
   ========================================================= */

.admin-brand {
    min-height: 225px !important;
    padding: 10px 4px 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-bottom: 1px solid rgba(227, 184, 79, 0.30) !important;
}

.admin-brand-link {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.admin-brand-logo {
    display: block;
    width: 310px !important;
    max-width: 100% !important;
    height: auto !important;
    transform: scale(1.15);
    filter: drop-shadow( 0 5px 10px rgba(0, 0, 0, 0.35) );
}

/* Navigation */

.sidebar .nav-link {
    color: #eadfca !important;
}

    .sidebar .nav-link span {
        color: var(--admin-gold-light) !important;
    }

    .sidebar .nav-link:hover {
        background: rgba(227, 184, 79, 0.12) !important;
        border-color: rgba(227, 184, 79, 0.22) !important;
        color: #ffffff !important;
    }


    /* Selected navigation */

    .sidebar .nav-link.active {
        background: linear-gradient( 135deg, #d6a637 0%, #a97719 100% ) !important;
        border-color: #e3b84f !important;
        color: #ffffff !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
    }

        .sidebar .nav-link.active span {
            color: #ffffff !important;
        }

.sidebar .nav-heading {
    color: #c8a75e !important;
}

.sidebar-footer {
    border-top-color: rgba(227, 184, 79, 0.22) !important;
    color: #cdbf9f !important;
}


/* =========================================================
   TOP BAR
   ========================================================= */

.topbar {
    background: #ffffff !important;
    border-bottom-color: var(--admin-border) !important;
}

.org-name {
    color: var(--admin-gold-deep) !important;
}

.top-actions strong {
    color: var(--admin-gold-deep) !important;
}

.top-actions span {
    color: var(--admin-muted) !important;
}


/* Avatar */

.avatar {
    background: var(--admin-gold-soft) !important;
    color: var(--admin-gold-deep) !important;
    border: 1px solid var(--admin-border);
}


/* Top bar buttons */

.icon-button {
    background: #ffffff !important;
    border-color: var(--admin-border) !important;
    color: var(--admin-gold-deep) !important;
}

    .icon-button:hover {
        background: var(--admin-gold-soft) !important;
    }


/* =========================================================
   PAGE HEADINGS
   ========================================================= */

.page-head h1 {
    color: var(--admin-gold-deep) !important;
}

.page-head p {
    color: var(--admin-muted) !important;
}

.eyebrow {
    color: var(--admin-gold) !important;
}


/* =========================================================
   PANELS / CARDS
   ========================================================= */

.panel,
.stat-card,
.testimonial-card {
    background: #ffffff !important;
    border-color: var(--admin-border) !important;
    box-shadow: 0 4px 14px rgba(111, 79, 18, 0.05), 0 10px 30px rgba(111, 79, 18, 0.04) !important;
}

.panel-head {
    border-bottom-color: #eadfca !important;
}

    .panel-head h2,
    .quick-panel h2 {
        color: var(--admin-gold-deep) !important;
    }

    .panel-head p,
    .quick-panel p {
        color: var(--admin-muted) !important;
    }

    .panel-head a {
        color: var(--admin-gold-dark) !important;
    }


/* =========================================================
   DASHBOARD KPI CARDS
   ========================================================= */

.dashboard-kpi .eyebrow,
.stat-card > span {
    color: var(--admin-gold) !important;
}

.dashboard-number,
.stat-card strong {
    color: var(--admin-text) !important;
}

.stat-card small {
    color: var(--admin-muted) !important;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    border-color: var(--admin-border) !important;
}

    .btn.primary {
        background: linear-gradient( 135deg, var(--admin-gold-light), var(--admin-gold) ) !important;
        border-color: var(--admin-gold-dark) !important;
        color: #ffffff !important;
    }

        .btn.primary:hover {
            background: var(--admin-gold-dark) !important;
            border-color: var(--admin-gold-dark) !important;
        }

    .btn.secondary {
        background: #ffffff !important;
        border-color: var(--admin-border) !important;
        color: var(--admin-gold-deep) !important;
    }

        .btn.secondary:hover {
            background: var(--admin-gold-soft) !important;
        }


/* =========================================================
   LINKS
   ========================================================= */

.back-link,
.member-link strong {
    color: var(--admin-gold-deep) !important;
}

    .back-link:hover,
    .member-link:hover strong {
        color: var(--admin-gold) !important;
    }


/* =========================================================
   MEMBER AVATAR
   ========================================================= */

.member-avatar {
    background: var(--admin-gold-soft) !important;
    color: var(--admin-gold-deep) !important;
}


/* =========================================================
   DATE TILES
   ========================================================= */

.date-tile {
    border-color: var(--admin-border) !important;
    background: var(--admin-gold-soft) !important;
}

    .date-tile span {
        color: var(--admin-gold-deep) !important;
    }


/* =========================================================
   COMMUNICATION ICONS
   ========================================================= */

.comm-icon {
    background: var(--admin-gold-soft) !important;
    color: var(--admin-gold-deep) !important;
}

    /*
   SMS can remain green because it communicates
   a different channel/status.
*/
    .comm-icon.sms {
        background: #edf9f3 !important;
        color: var(--green) !important;
    }


/* =========================================================
   QUICK ACTIONS
   ========================================================= */

.quick-actions a {
    background: #ffffff !important;
    border-color: var(--admin-border) !important;
    color: var(--admin-gold-deep) !important;
}

    .quick-actions a:hover {
        background: var(--admin-gold-soft) !important;
    }


/* =========================================================
   PROGRESS BARS
   ========================================================= */

.progress {
    background: #eee7d8 !important;
}

    .progress i {
        background: var(--admin-gold) !important;
    }


/* =========================================================
   TYPE CHIPS
   ========================================================= */

.type-chip {
    background: var(--admin-gold-soft) !important;
    color: var(--admin-gold-deep) !important;
}


/* =========================================================
   KENDO GRID
   ========================================================= */

.k-grid {
    border-color: var(--admin-border) !important;
}

    .k-grid .k-toolbar {
        background: #ffffff !important;
        border-color: var(--admin-border) !important;
    }

    .k-grid .k-grid-header {
        background: var(--admin-gold-soft) !important;
        border-color: var(--admin-border) !important;
    }

        .k-grid .k-grid-header th,
        .k-grid .k-header {
            background: var(--admin-gold-soft) !important;
            color: var(--admin-gold-deep) !important;
            border-color: var(--admin-border) !important;
        }

    .k-grid td {
        border-color: #eee5d2 !important;
    }

    .k-grid tbody tr:hover {
        background: #fffaf0 !important;
    }


    /* Selected Kendo row */

    .k-grid tbody tr.k-selected,
    .k-grid tbody tr.k-state-selected {
        background: #f4e4b8 !important;
        color: var(--admin-text) !important;
    }


/* =========================================================
   KENDO BUTTONS
   ========================================================= */

.k-button-solid-primary,
.k-button.k-primary {
    background: var(--admin-gold) !important;
    border-color: var(--admin-gold-dark) !important;
    color: #ffffff !important;
}

    .k-button-solid-primary:hover,
    .k-button.k-primary:hover {
        background: var(--admin-gold-dark) !important;
        border-color: var(--admin-gold-dark) !important;
    }


/* =========================================================
   KENDO PAGER
   ========================================================= */

.k-pager-wrap,
.k-grid-pager {
    border-color: var(--admin-border) !important;
}

.k-pager-numbers .k-selected,
.k-pager-numbers .k-state-selected {
    background: var(--admin-gold) !important;
    border-color: var(--admin-gold-dark) !important;
    color: #ffffff !important;
}


/* =========================================================
   FORM CONTROLS
   ========================================================= */

.form-control-custom,
.compose-body textarea,
.compose-body .form-control,
.member-textbox,
.k-edit-form-container .event-textbox {
    border-color: #d8c69e !important;
}


    /* Focus */

    .form-control-custom:focus,
    .compose-body textarea:focus,
    .compose-body .form-control:focus,
    .member-textbox:focus,
    .k-edit-form-container .event-textbox:focus {
        outline: none !important;
        border-color: var(--admin-gold) !important;
        box-shadow: 0 0 0 3px rgba(201, 150, 43, 0.14) !important;
    }


/* =========================================================
   COMPOSE / COMMUNICATION WINDOWS
   ========================================================= */

.compose-head,
.compose-actions {
    border-color: var(--admin-border) !important;
}

    .compose-head h2 {
        color: var(--admin-gold-deep) !important;
    }

    .compose-head button {
        color: var(--admin-gold-deep) !important;
    }

.recipient-box,
.communication-summary-line {
    background: var(--admin-gold-soft) !important;
    border-color: var(--admin-border) !important;
}


/* =========================================================
   COMMUNICATION RESULT GRID
   ========================================================= */

.communication-result-grid {
    border-color: var(--admin-border) !important;
}

.communication-result-table th,
.communication-result-table td {
    border-color: #eadfca !important;
}

.communication-result-table thead th {
    background: var(--admin-gold-soft) !important;
    color: var(--admin-gold-deep) !important;
    border-bottom-color: var(--admin-border) !important;
}

.communication-result-table tbody tr:hover {
    background: #fffaf0 !important;
}


/* =========================================================
   COMMUNICATION DASHBOARD
   ========================================================= */

.communication-summary {
    border-color: var(--admin-border) !important;
}

.communication-total,
.communication-stats strong,
.communication-figures strong {
    color: var(--admin-gold-deep) !important;
}

.communication-stats > div,
.communication-figures > div {
    background: var(--admin-gold-soft) !important;
    border-color: var(--admin-border) !important;
}


/* =========================================================
   COMMUNICATION FILTER
   ========================================================= */

.communication-filter {
    background: var(--admin-gold-soft) !important;
    border-color: var(--admin-border) !important;
}

.communication-filter-field label {
    color: var(--admin-gold-deep) !important;
}

.communication-filter-field select,
.communication-filter-field input {
    border-color: var(--admin-border) !important;
    color: var(--admin-text) !important;
}


/* =========================================================
   DETAILS / TABLE BORDERS
   ========================================================= */

.event-row,
.activity-row,
.history-row,
.details-list dt,
.details-list dd,
.event-list-row,
.clean-table td,
.calendar-strip {
    border-color: #eadfca !important;
}

.clean-table th {
    background: var(--admin-gold-soft) !important;
    color: var(--admin-gold-deep) !important;
}


/* =========================================================
   TESTIMONIALS
   ========================================================= */

.quote-mark {
    color: var(--admin-gold-light) !important;
}

.testimonial-person {
    border-color: var(--admin-border) !important;
}


/* =========================================================
   KEEP SEMANTIC STATUS COLOURS
   ========================================================= */

/*
   These intentionally remain green/red/amber because
   they indicate success, errors, warnings and status.
*/

.status-active,
.status-sent {
    color: #166534 !important;
}

.status-expired,
.status-failed,
.status-bounced {
    color: #991b1b !important;
}

.status-pending {
    color: #92400e !important;
}

/* =========================================================
   FINDING GOD - ALL ADMIN KENDO GRIDS
   Single master grid theme
   ========================================================= */


/* =========================================================
   GRID FRAME
   ========================================================= */

.k-grid {
    background: #ffffff !important;
    border-left: 1px solid #dfc98f !important;
    border-right: 1px solid #dfc98f !important;
    border-bottom: 1px solid #dfc98f !important;
    border-top: none !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 5px 18px rgba(111, 79, 18, 0.07), 0 14px 32px rgba(111, 79, 18, 0.05) !important;
}

    /* =========================================================
   TOOLBAR
   ========================================================= */

    .k-grid .k-toolbar {
        background: #fffaf0 !important;
        border-bottom: 1px solid #dfc98f !important;
    }


    /* =========================================================
   COLUMN HEADERS
   Dark goldenrod / white text
   ========================================================= */

    .k-grid .k-grid-header,
    .k-grid .k-grid-header-wrap {
        background: #8a6518 !important;
        border-color: #7a5713 !important;
    }


        .k-grid .k-grid-header th,
        .k-grid .k-grid-header .k-header {
            background: linear-gradient( 180deg, #9f761d 0%, #805b13 100% ) !important;
            border-color: rgba(255, 255, 255, 0.14) !important;
            color: #ffffff !important;
            font-size: 12px !important;
            font-weight: 800 !important;
            letter-spacing: 0.035em;
        }


            /* Header text */

            .k-grid .k-grid-header th a,
            .k-grid .k-grid-header .k-link,
            .k-grid .k-grid-header .k-column-title {
                color: #ffffff !important;
            }


        /* Sort / filter icons */

        .k-grid .k-grid-header .k-icon,
        .k-grid .k-grid-header .k-svg-icon {
            color: #ffffff !important;
        }


        /* Header hover */

        .k-grid .k-grid-header th:hover {
            background: #a87c20 !important;
        }


    /* =========================================================
   ROWS
   ========================================================= */

    /* Odd rows */

    .k-grid tbody tr {
        background: #ffffff !important;
    }


        /* Even rows - light golden */

        .k-grid tbody tr:nth-child(even) {
            background: #fff7e2 !important;
        }


            /* Hover */

            .k-grid tbody tr:hover,
            .k-grid tbody tr:nth-child(even):hover {
                background: #f7e6b7 !important;
            }


    /* =========================================================
   CELLS
   ========================================================= */

    .k-grid tbody td {
        color: #3b3428 !important;
        border-color: #eadfca !important;
        padding-top: 11px !important;
        padding-bottom: 11px !important;
    }


    /* =========================================================
   SELECTED ROW
   ========================================================= */

    .k-grid tbody tr.k-selected,
    .k-grid tbody tr.k-state-selected,
    .k-grid tbody tr[aria-selected="true"] {
        background: #ecd18b !important;
    }


        .k-grid tbody tr.k-selected td,
        .k-grid tbody tr.k-state-selected td,
        .k-grid tbody tr[aria-selected="true"] td {
            color: #33260f !important;
        }


    /* =========================================================
   GRID LINKS
   ========================================================= */

    .k-grid tbody a:not(.k-button) {
        color: #8a6518 !important;
        font-weight: 700;
    }


        .k-grid tbody a:not(.k-button):hover {
            color: #c9962b !important;
        }


    /* =========================================================
   COMMAND BUTTONS
   ========================================================= */

    .k-grid .k-button {
        background: #fff8e8 !important;
        border: 1px solid #d9bf7a !important;
        color: #7b5814 !important;
    }


        .k-grid .k-button:hover {
            background: #f4dfaa !important;
            border-color: #c9962b !important;
            color: #62450f !important;
        }


        /* Primary grid buttons */

        .k-grid .k-button-solid-primary,
        .k-grid .k-button.k-primary {
            background: linear-gradient( 135deg, #e3b84f, #c9962b ) !important;
            border-color: #9f7017 !important;
            color: #ffffff !important;
        }


            .k-grid .k-button-solid-primary:hover,
            .k-grid .k-button.k-primary:hover {
                background: #9f7017 !important;
                border-color: #805b13 !important;
                color: #ffffff !important;
            }


    /* =========================================================
   PAGER
   ========================================================= */

    .k-grid .k-grid-pager,
    .k-grid .k-pager-wrap {
        background: #fffaf0 !important;
        border-top: 1px solid #dfc98f !important;
        color: #6f4f12 !important;
    }


    /* Pager buttons */

    .k-grid .k-pager-nav,
    .k-grid .k-pager-numbers .k-button {
        color: #8a6518 !important;
    }


    /* Current page */

    .k-grid .k-pager-numbers .k-selected,
    .k-grid .k-pager-numbers .k-state-selected {
        background: #c9962b !important;
        border-color: #9f7017 !important;
        color: #ffffff !important;
    }


    /* =========================================================
   GRID INPUTS / FILTERS
   ========================================================= */

    .k-grid input,
    .k-grid select,
    .k-grid .k-input {
        border-color: #dfc98f !important;
    }


        .k-grid input:focus,
        .k-grid select:focus {
            border-color: #c9962b !important;
            box-shadow: 0 0 0 3px rgba(201, 150, 43, 0.14) !important;
        }

/* =========================================================
   FINDING GOD - ALL ADMIN DONUT CHARTS
   ========================================================= */

.finding-gold-donut {
    background: transparent !important;
}

    .finding-gold-donut text {
        fill: #6f4f12 !important;
    }

/* =========================================================
   DASHBOARD PANELS - REMOVE OUTER BORDER
   ========================================================= */

.dashboard-grid > .panel {
    border: none !important;
}
/* =========================================================
   ADMIN DASHBOARD - REMOVE PANEL OUTER BORDERS
   ========================================================= */

.dashboard-grid > .panel,
.communications-dashboard {
    border: none !important;
}

    /* =========================================================
   DASHBOARD - REMOVE LINE ABOVE GRIDS
   ========================================================= */

    .dashboard-grid .panel-head,
    .dashboard-grid > .panel .panel-head {
        border-bottom: none !important;
    }

    .dashboard-grid .panel-head,
    .dashboard-grid > .panel .panel-head,
    .panel:has(#recentRegistrationsGrid) .panel-head {
        border-bottom: none !important;
    }

    /* =========================================================
   COMMUNICATIONS - REMOVE LINE ABOVE FILTER
   ========================================================= */

    .communications-dashboard .panel-head {
        border-bottom: none !important;
    }

/* =========================================================
   ADMIN - REMOVE PANEL HEADER DIVIDERS
   ========================================================= */

.main-area .panel-head {
    border-bottom: none !important;
}

/* =========================================================
   FINDING GOD - /* =========================================================
   ADMIN TOP BAR
   ========================================================= */

.topbar {
    background: var(--admin-gold-header) !important;
    border-bottom: 1px solid #5d400a !important;
    box-shadow: 0 4px 14px rgba(50, 32, 4, 0.25) !important;
}

    .topbar .org-name,
    .topbar .top-actions strong {
        color: #ffffff !important;
    }

    .topbar .top-actions span {
        color: #f7e8bd !important;
    }


/* =========================================================
   ALL ADMIN GRID HEADERS
   ========================================================= */

.k-grid .k-grid-header,
.k-grid .k-grid-header-wrap,
.k-grid .k-grid-header th,
.k-grid .k-grid-header .k-header {
    background: var(--admin-gold-header) !important;
    color: #ffffff !important;
}

    .k-grid .k-grid-header th a,
    .k-grid .k-grid-header .k-link,
    .k-grid .k-grid-header .k-column-title {
        color: #ffffff !important;
    }

    .k-grid .k-grid-header .k-icon,
    .k-grid .k-grid-header .k-svg-icon {
        color: #ffffff !important;
    }

    /* =========================================================
   HELP / ICON BUTTON
   ========================================================= */

    .topbar .icon-button {
        width: 40px !important;
        height: 40px !important;
        background: rgba(255, 255, 255, 0.14) !important;
        border: 1px solid rgba(255, 255, 255, 0.65) !important;
        border-radius: 11px !important;
        color: #ffffff !important;
        font-weight: 800 !important;
        box-shadow: 0 2px 7px rgba(54, 34, 3, 0.18) !important;
    }

        .topbar .icon-button:hover {
            background: #fff7e2 !important;
            border-color: #ffffff !important;
            color: #7a5411 !important;
            transform: translateY(-1px);
        }


    /* =========================================================
   USER INITIALS
   ========================================================= */

    .topbar .avatar {
        width: 40px !important;
        height: 40px !important;
        background: #fff4cf !important;
        border: 1px solid #ffffff !important;
        border-radius: 50% !important;
        color: #76500e !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        box-shadow: 0 2px 8px rgba(54, 34, 3, 0.20) !important;
    }