/* =========================================================
   FURAHIA - main stylesheet
   Based on the original Furahia one-page design.
   Bootstrap does the layout (rows/columns). This file only
   holds the Furahia look: colours, fonts, cards, sections.
   ========================================================= */

/* ---------- 1. Brand colours (change them here once) ---------- */
:root {
    --wine: #681f2e;
    --wine-dark: #4f1622;
    --gold: #b99655;
    --champagne: #dfc58d;
    --beige: #eee1d2;
    --sand: #f0e7dc;
    --ivory: #fbf8f3;
    --espresso: #2b211d;
    --muted: #766a62;
    --line: #e2d7ca;

    /* Furahia font. Maiandra GD comes with Windows/Microsoft Office.
       Devices without it (most phones, Mac) use the next font in the list. */
    --font-main: "Maiandra GD", "Segoe UI", Tahoma, sans-serif;
}

/* ---------- 2. General ---------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* so the sticky menu does not cover section titles */
}

body {
    font-family: var(--font-main);
    font-size: 15px;
    color: var(--espresso);
    background: var(--ivory);
}

h1, h2, h3, .brand-name, .modal-heading {
    font-family: var(--font-main);
    font-weight: normal; /* Maiandra GD has no bold version, so we keep it normal */
}

.section {
    padding: 90px 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.9rem);
    color: var(--wine);
    margin-bottom: 0.8rem;
}

.lead-text {
    max-width: 720px;
    color: var(--muted);
    line-height: 1.8;
    font-size: 1rem;
}

.eyebrow {
    color: var(--gold);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

/* Section background colours */
.section-ivory-dark { background: #f6efe6; }
.section-sand       { background: var(--sand); }

.section-wine {
    background: var(--wine);
    color: #ffffff;
}
.section-wine .section-title { color: #ffffff; }
.section-wine .lead-text     { color: #dfd2c8; }
.section-wine .eyebrow       { color: var(--champagne); }

.section-espresso {
    background: var(--espresso);
    color: #ffffff;
}
.section-espresso .section-title { color: #ffffff; }
.section-espresso .lead-text     { color: #cfc1b8; }

/* ---------- 3. Buttons ---------- */
.btn-furahia,
.btn-furahia-outline,
.btn-furahia-light {
    border-radius: 0;
    padding: 13px 22px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: all 0.2s;
}

.btn-furahia {
    background: var(--wine);
    border: 1px solid var(--wine);
    color: #ffffff;
}
.btn-furahia:hover,
.btn-furahia:focus {
    background: var(--wine-dark);
    border-color: var(--wine-dark);
    color: #ffffff;
}

.btn-furahia-outline {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--wine);
}
.btn-furahia-outline:hover {
    background: var(--gold);
    color: #ffffff;
}

.btn-furahia-light {
    background: transparent;
    border: 1px solid var(--champagne);
    color: #ffffff;
}
.btn-furahia-light:hover {
    background: var(--champagne);
    color: var(--wine);
}

.btn-sm.btn-furahia {
    padding: 9px 14px;
    font-size: 0.62rem;
}

/* ---------- 4. Top strip and navigation ---------- */
.top-strip {
    background: var(--wine);
    color: #ffffff;
    padding: 9px;
    text-align: center;
    letter-spacing: 0.18em;
    font-size: 0.68rem;
}

.furahia-nav {
    background: rgba(251, 248, 243, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e6ddd2;
    padding: 10px 0;
}

.nav-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--gold);
    margin-right: 10px;
}

.brand-name {
    color: var(--wine);
    font-size: 1.6rem;
    letter-spacing: 0.16em;
}

.furahia-nav .nav-link {
    color: #534a44;
    font-size: 0.8rem;
    padding-left: 0.8rem !important;
    padding-right: 0.8rem !important;
}

.furahia-nav .nav-link:hover {
    color: var(--wine);
}

/* ---------- 5. Hero ---------- */
.hero {
    background: var(--beige);
    overflow: hidden;
}

.hero-copy {
    padding: 90px 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 640px;
}

.hero-title {
    font-size: clamp(3.4rem, 7vw, 5.8rem);
    line-height: 0.92;
    color: var(--wine);
    margin: 1rem 0 1.5rem;
}

.hero-title em {
    display: block;
    color: var(--espresso);
    font-size: 0.56em;
    margin-top: 1.2rem;
}

.hero-text {
    max-width: 560px;
    color: var(--muted);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.hero-photo {
    min-height: 420px;
    background-size: cover;
    background-position: center;
}

/* On phones and tablets: photo on top, text below */
@media (max-width: 991px) {
    .hero-photo { order: -1; }
    .hero-copy  { min-height: auto; padding: 60px 24px; }
}

/* ---------- 6. Cards ---------- */
.furahia-card {
    display: block;
    position: relative;
    background: #ffffff;
    border: 1px solid var(--line);
    padding: 28px;
    color: inherit;
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.furahia-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 14px 30px rgba(104, 31, 46, 0.08);
}

.furahia-card h3 {
    color: var(--wine);
    font-size: 1.6rem;
    margin: 0.8rem 0 0.5rem;
}

.furahia-card p {
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 0;
}

.card-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}

.card-icon {
    font-size: 1.6rem;
    color: var(--gold);
}

.card-arrow {
    position: absolute;
    right: 24px;
    bottom: 20px;
    color: var(--gold);
    opacity: 0;
    transition: opacity 0.25s;
}
.card-link:hover .card-arrow { opacity: 1; }

/* Dark cards (Corporate section) */
.card-dark {
    background: #342925;
    border-color: #51443d;
}
.card-dark h3 { color: #ffffff; }
.card-dark p  { color: #d5c9c0; }

/* ---------- 7. Photo cards (venues and vendors) ---------- */
.photo-card {
    background: #ffffff;
    border: 1px solid var(--line);
    overflow: hidden;
    transition: box-shadow 0.25s;
}

.photo-card:hover {
    box-shadow: 0 14px 30px rgba(104, 31, 46, 0.1);
}

.photo-card-img {
    height: 210px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}

.photo-card:hover .photo-card-img {
    transform: scale(1.04);
}

.photo-card-img-small {
    height: 160px;
}

.photo-card-body {
    position: relative; /* keeps the text above the zoomed photo */
    background: #ffffff;
    padding: 18px;
}

.photo-card-body h3 {
    font-size: 1.5rem;
    color: var(--wine);
    margin: 0.4rem 0;
}

.small-text {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.6;
}

.furahia-input {
    border-radius: 0;
    border-color: #d8cbbd;
    padding: 12px;
    color: #514841;
}

.furahia-input:focus,
.inquiry-box .form-control:focus,
.inquiry-box .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(185, 150, 85, 0.2);
}

/* Marketplace filter buttons */
.filter-btn {
    padding: 9px 15px;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--wine);
    font-size: 0.82rem;
    transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--wine);
    border-color: var(--wine);
    color: #ffffff;
}

/* ---------- 8. Hotels & honeymoon ---------- */
.side-photo {
    min-height: 500px;
    background-size: cover;
    background-position: center;
}

.side-photo-short {
    min-height: 420px;
}

@media (max-width: 991px) {
    .side-photo { min-height: 300px; }
}

.stay-item {
    background: var(--beige);
    padding: 18px;
    height: 100%;
}

.stay-item b {
    color: var(--wine);
    font-family: var(--font-main);
    font-size: 1.25rem;
    font-weight: 600;
}

.stay-item p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

/* ---------- 9. Journey steps ---------- */
.journey-step {
    padding: 26px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.25s;
}

.journey-step:hover {
    background: rgba(255, 255, 255, 0.09);
}

.journey-step .card-label { color: var(--champagne); }

.journey-step h3 {
    font-size: 1.7rem;
    margin: 0.7rem 0 0.4rem;
}

.journey-step p {
    color: #dfd2c8;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* ---------- 10. Dashboard preview ---------- */
.dashboard-mock {
    background: #201815;
    padding: 16px;
    border-radius: 18px;
    box-shadow: 0 30px 60px rgba(43, 33, 29, 0.25);
}

.dashboard-screen {
    background: var(--ivory);
    padding: 20px;
    border-radius: 10px;
}

.mock-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.mock-title {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--wine);
}

.mock-stat {
    background: #ffffff;
    border: 1px solid var(--line);
    padding: 13px;
    font-size: 0.8rem;
    color: var(--muted);
}

.mock-stat b {
    display: block;
    color: var(--wine);
    font-size: 1.3rem;
}

.mock-module {
    background: var(--beige);
    padding: 20px 14px;
    color: var(--wine);
    font-family: var(--font-main);
    font-size: 1.15rem;
    font-weight: 600;
}

.mock-module i {
    color: var(--gold);
    margin-right: 4px;
}

/* ---------- 11. Invitations ---------- */
.invite-photo {
    min-height: 450px;
    background-size: cover;
    background-position: center;
}

.invite-copy {
    background: #dfcfbd;
    padding: 70px 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.invite-copy .lead-text {
    color: #66594f;
}

@media (max-width: 991px) {
    .invite-photo { min-height: 300px; }
    .invite-copy  { padding: 50px 24px; }
}

/* ---------- 12. Corporate chips ---------- */
.chip {
    border: 1px solid #806d60;
    padding: 8px 13px;
    font-size: 0.75rem;
    color: #e4d8cf;
}

/* ---------- 13. Final call to action ---------- */
.cta-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 1px solid var(--champagne);
}

/* ---------- 14. Footer ---------- */
.furahia-footer {
    background: #211815;
    color: #cfc1b8;
    padding: 60px 0 30px;
}

.footer-logo {
    width: 100%;
    max-width: 360px;
    border: 1px solid rgba(185, 150, 85, 0.35); /* thin gold frame */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.footer-title {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.furahia-footer a {
    display: block;
    margin: 10px 0;
    font-size: 0.85rem;
    color: #cfc1b8;
    text-decoration: none;
}

.furahia-footer a:hover {
    color: var(--champagne);
}

.footer-line {
    border-color: rgba(185, 150, 85, 0.35);
    margin: 2.5rem 0 1.5rem;
}

/* ---------- 15. "Start Planning" pop-up ---------- */
.inquiry-box {
    background: var(--ivory);
    border: 0;
    border-radius: 0;
}

.modal-heading {
    color: var(--wine);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.inquiry-box .form-label {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.3rem;
}

.inquiry-box .form-control,
.inquiry-box .form-select {
    border-radius: 0;
    border-color: #d8cbbd;
    padding: 11px;
}

/* ---------- 16. Login / Register / Forgot password pages ---------- */
.auth-page {
    background: var(--beige);
    padding: 70px 16px;
    min-height: 75vh;
    display: flex;
    align-items: center;
}

.auth-card {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 25px 60px rgba(104, 31, 46, 0.1);
}

.auth-card-small {
    max-width: 480px;
}

.auth-brand {
    background: var(--wine);
    color: #ffffff;
    padding: 50px 40px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
}

.auth-brand h2 {
    color: var(--champagne);
    font-size: 2.4rem;
    margin: 1.5rem 0 0.8rem;
}

.auth-brand p {
    color: #dfd2c8;
    line-height: 1.7;
    margin: 0;
}

.auth-logo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 1px solid var(--champagne);
}

.auth-logo-small {
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.auth-form {
    padding: 50px 45px;
}

@media (max-width: 575px) {
    .auth-form { padding: 36px 22px; }
}

.auth-title {
    font-size: 2.2rem;
    color: var(--wine);
    margin-bottom: 1.5rem;
}

.auth-form .form-label {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.3rem;
}

.auth-form .form-control {
    border-radius: 0;
    border-color: #d8cbbd;
    padding: 11px;
}

.auth-form .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(185, 150, 85, 0.2);
}

.auth-link {
    color: var(--wine);
    font-weight: 500;
}

.auth-link:hover {
    color: var(--gold);
}

/* =========================================================
   17. SHINE EFFECTS (the gold, polished Furahia look)
   ========================================================= */

/* ---- a) Gold metallic text that slowly shimmers ----
   The text is "painted" with a moving gold gradient, like the logo. */
.brand-name,
.section-wine .section-title,
.auth-brand h2,
.gold-text {
    background: linear-gradient(110deg,
        #9c7034 0%,
        #e9cf8f 22%,
        #b98a45 40%,
        #fff3cf 50%,
        #b98a45 60%,
        #e9cf8f 78%,
        #9c7034 100%);
    background-size: 250% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gold-shimmer 7s linear infinite;
}

/* Tip: add class="gold-text" to any text to make it shimmer gold */

@keyframes gold-shimmer {
    from { background-position: 0% center; }
    to   { background-position: 250% center; }
}

/* ---- b) Light sweeping across the logos ----
   A <span class="shine"> around an <img> shows a soft white
   stripe that slides across it every few seconds. */
.shine {
    position: relative;
    display: inline-block;
    overflow: hidden;
    line-height: 0; /* removes the small gap under images */
}

.shine-round {
    border-radius: 50%;
}

.shine::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 244, 214, 0.45), transparent);
    transform: skewX(-20deg);
    animation: light-sweep 6s ease-in-out infinite;
    pointer-events: none;
}

.shine-slow::after {
    animation-duration: 9s;
}

@keyframes light-sweep {
    0%   { left: -80%; }
    25%  { left: 130%; } /* sweep across quickly... */
    100% { left: 130%; } /* ...then rest before the next sweep */
}

/* Logo in the menu: the gap now sits outside the round shine */
.navbar-brand .shine { margin-right: 10px; }
.navbar-brand .nav-logo { margin-right: 0; }

/* A soft golden glow around the big logos */
.auth-logo,
.cta-logo {
    box-shadow: 0 0 45px rgba(223, 197, 141, 0.35);
}

/* ---- c) Buttons: a shine passes over them on hover ---- */
.btn-furahia,
.btn-furahia-outline,
.btn-furahia-light {
    position: relative;
    overflow: hidden;
}

.btn-furahia::after,
.btn-furahia-outline::after,
.btn-furahia-light::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.btn-furahia:hover::after,
.btn-furahia-outline:hover::after,
.btn-furahia-light:hover::after {
    left: 130%;
}

/* Main button: a hint of gold at the bottom edge */
.btn-furahia {
    box-shadow: inset 0 -2px 0 rgba(223, 197, 141, 0.55);
}

/* ---- d) Cards: a thin gold line appears on top when hovered ---- */
.furahia-card::before,
.photo-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--champagne), var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.photo-card {
    position: relative;
}

.furahia-card:hover::before,
.photo-card:hover::before {
    opacity: 1;
}

/* ---- e) Gold dividers in the footer ---- */
.footer-line {
    border: 0;
    height: 1px;
    opacity: 1;
    background: linear-gradient(90deg, transparent, var(--gold), var(--champagne), var(--gold), transparent);
}

/* ---- f) Respect people who turn off animations on their device ---- */
@media (prefers-reduced-motion: reduce) {
    .brand-name,
    .section-wine .section-title,
    .auth-brand h2,
    .gold-text,
    .shine::after {
        animation: none;
    }
}

/* =========================================================
   18. DASHBOARD (pages for logged-in users)
   ========================================================= */

.app-body {
    background: #f6f1ea;
}

/* ---- Top bar ---- */
.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: 66px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(251, 248, 243, 0.97);
    border-bottom: 1px solid var(--line);
}

.app-menu-btn {
    font-size: 1.6rem;
    color: var(--wine);
    padding: 0 6px;
    border: 0;
}

.app-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    color: var(--espresso);
}

.app-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--wine);
    color: var(--champagne);
    box-shadow: inset 0 0 0 1px var(--gold);
}

/* ---- Sidebar + content side by side ---- */
.app-wrapper {
    display: flex;
    min-height: calc(100vh - 66px);
}

.app-sidebar {
    /* Bootstrap makes this menu see-through on large screens ("transparent !important"),
       so we must use !important here too, to keep the wine colour on every screen size. */
    --bs-offcanvas-bg: var(--wine-dark);
    background-color: var(--wine-dark) !important;
    background-image: linear-gradient(180deg, var(--wine) 0%, var(--wine-dark) 100%);
    border-right: 1px solid rgba(223, 197, 141, 0.35) !important; /* thin gold edge */
    box-shadow: 4px 0 20px rgba(43, 33, 29, 0.12);
    color: #ffffff;
}

@media (min-width: 992px) {
    .app-sidebar {
        width: 250px;
        flex-shrink: 0;
        position: sticky;
        top: 66px;
        height: calc(100vh - 66px);
        overflow-y: auto;
    }
}

.app-nav {
    padding: 24px 14px;
}

.app-nav-title {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--champagne);
    opacity: 0.9;
    margin: 0 12px 8px;
}

.app-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    margin-bottom: 2px;
    color: #f7efe6;
    text-decoration: none;
    font-size: 0.95rem;
    border-left: 2px solid transparent;
    transition: background 0.2s, color 0.2s;
}

.app-nav-link i {
    font-size: 1.05rem;
    color: var(--champagne);
}

.app-nav-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.app-nav-link.active {
    background: rgba(223, 197, 141, 0.16);
    border-left-color: var(--champagne);
    color: #ffffff;
}

.app-nav-link.disabled {
    opacity: 0.6;
    cursor: default;
}

.app-nav-link.disabled:hover {
    background: none;
}

.soon-badge {
    margin-left: auto;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 2px 7px;
    border: 1px solid currentColor;
    border-radius: 20px;
}

/* ---- Page content ---- */
.app-content {
    flex: 1;
    min-width: 0; /* stops wide content from pushing the page sideways */
    padding: 30px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 575px) {
    .app-content { padding: 20px 14px; }
}

.app-footer {
    margin-top: auto;
    padding-top: 40px;
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
}

.page-title {
    font-size: 2.2rem;
    color: var(--wine);
    margin-bottom: 1.5rem;
}

/* White boxes that hold each part of a page */
.app-panel {
    background: #ffffff;
    border: 1px solid var(--line);
    padding: 24px;
}

.panel-title {
    font-size: 1.3rem;
    color: var(--wine);
    margin-bottom: 1.2rem;
}

.app-panel .form-label {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.3rem;
}

.app-panel .form-control {
    border-radius: 0;
    border-color: #d8cbbd;
    padding: 11px;
}

.app-panel .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(185, 150, 85, 0.2);
}

/* ---- Welcome banner ---- */
.welcome-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 30px 34px;
    margin-bottom: 24px;
    color: #ffffff;
    background: radial-gradient(circle at 85% 50%, #7d2638 0%, var(--wine) 45%, var(--wine-dark) 100%);
    border-bottom: 2px solid var(--gold);
}

.welcome-banner .eyebrow {
    color: var(--champagne);
}

.welcome-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 0.4rem;
}

.welcome-text {
    color: #dfd2c8;
}

.welcome-logo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 1px solid var(--champagne);
}

/* ---- Summary cards ---- */
.stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--line);
    border-top: 2px solid var(--gold);
    padding: 20px;
    height: 100%;
}

.stat-icon {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 1.4rem;
    color: var(--gold);
}

.stat-label {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.stat-number {
    font-size: 2.2rem;
    color: var(--wine);
    line-height: 1.2;
    margin-top: 6px;
}

.stat-money {
    font-size: 1.4rem;
}

/* ---- Quick action tiles ---- */
.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 22px 12px;
    text-align: center;
    background: var(--ivory);
    border: 1px solid var(--line);
    color: var(--wine);
    text-decoration: none;
}

.action-card i {
    font-size: 1.6rem;
    color: var(--gold);
}

.action-card.disabled {
    opacity: 0.6;
}

.action-card .soon-badge {
    margin-left: 0;
    color: var(--gold);
}

/* ---- "No events yet" message ---- */
.empty-state {
    text-align: center;
    padding: 30px 10px;
}

.empty-state i {
    font-size: 2.6rem;
    color: var(--gold);
}

.empty-state h3 {
    font-size: 1.4rem;
    color: var(--wine);
    margin: 10px 0 6px;
}

.empty-state p {
    color: var(--muted);
    margin: 0;
}

/* ---- Getting started checklist ---- */
.furahia-progress {
    height: 6px;
    border-radius: 0;
    background: var(--beige);
}

.furahia-progress .progress-bar {
    background: linear-gradient(90deg, var(--gold), var(--champagne));
}

.checklist-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0e8de;
}

.checklist-item:last-of-type {
    border-bottom: 0;
}

.checklist-item i {
    font-size: 1.1rem;
    color: #cdbfb0;
    margin-top: 1px;
}

.checklist-item.done i {
    color: var(--gold);
}

.checklist-item b {
    display: block;
    font-weight: normal;
    color: var(--espresso);
}

.checklist-item.done b {
    color: var(--muted);
    text-decoration: line-through;
}

.checklist-item span {
    font-size: 0.8rem;
    color: var(--muted);
}

/* ---- My account list ---- */
.account-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.account-list li {
    display: flex;
    gap: 10px;
    padding: 7px 0;
    font-size: 0.9rem;
    word-break: break-word;
}

.account-list i {
    color: var(--gold);
}

/* =========================================================
   19. EVENTS (list, form, event dashboard)
   ========================================================= */

.back-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    color: var(--wine);
}

.count-badge {
    display: inline-block;
    min-width: 28px;
    padding: 2px 8px;
    font-size: 0.8rem;
    text-align: center;
    vertical-align: middle;
    color: var(--wine);
    background: var(--beige);
    border-radius: 20px;
}

/* ---- Event card ---- */
.event-card {
    position: relative;
    display: block;
    height: 100%;
    background: #ffffff;
    border: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.event-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 14px 30px rgba(104, 31, 46, 0.1);
    color: inherit;
}

.event-card-cover {
    height: 170px;
    background-size: cover;
    background-position: center;
}

.event-card-cover-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 70% 30%, #7d2638 0%, var(--wine) 50%, var(--wine-dark) 100%);
}

.event-card-cover-empty i {
    font-size: 3rem;
    color: var(--champagne);
    opacity: 0.85;
}

.event-days {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    color: var(--wine-dark);
    background: linear-gradient(135deg, var(--champagne), var(--gold));
    border-radius: 20px;
}

.event-days.past {
    background: rgba(255, 255, 255, 0.85);
    color: var(--muted);
}

.event-card-body {
    padding: 18px;
}

.event-card-body h3 {
    font-size: 1.35rem;
    color: var(--wine);
    margin: 4px 0 10px;
}

.event-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.84rem;
    color: var(--muted);
}

.event-meta li {
    margin-bottom: 4px;
}

.event-meta i {
    color: var(--gold);
    margin-right: 6px;
}

.past-events .event-card {
    opacity: 0.75;
}

/* ---- Event type picker (form) ---- */
.type-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.type-option {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border: 1px solid #d8cbbd;
    background: #ffffff;
    color: var(--espresso);
    cursor: pointer;
    font-size: 0.88rem;
    transition: all 0.2s;
}

.type-option i {
    color: var(--gold);
}

.type-option:hover {
    border-color: var(--gold);
}

/* The chosen type */
.btn-check:checked + .type-option {
    background: var(--wine);
    border-color: var(--wine);
    color: #ffffff;
}

.btn-check:checked + .type-option i {
    color: var(--champagne);
}

.btn-check:focus-visible + .type-option {
    box-shadow: 0 0 0 0.2rem rgba(185, 150, 85, 0.35);
}

.cover-preview {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border: 1px solid var(--line);
}

.app-panel .form-select {
    border-radius: 0;
    border-color: #d8cbbd;
    padding: 11px;
}

/* ---- Event dashboard banner ---- */
.event-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    min-height: 260px;
    padding: 34px;
    margin-bottom: 20px;
    color: #ffffff;
    background: radial-gradient(circle at 85% 30%, #7d2638 0%, var(--wine) 45%, var(--wine-dark) 100%);
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid var(--gold);
}

.event-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--champagne);
    border: 1px solid rgba(223, 197, 141, 0.6);
    border-radius: 20px;
}

.event-banner-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin: 14px 0 12px;
}

.event-banner-meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    padding: 0;
    margin: 0;
    color: #efe4da;
}

.event-banner-meta i {
    color: var(--champagne);
    margin-right: 5px;
}

.countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    padding: 16px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(223, 197, 141, 0.45);
    backdrop-filter: blur(4px);
}

.countdown-number {
    font-size: 2.6rem;
    line-height: 1;
    color: var(--champagne);
}

.countdown-label {
    margin-top: 6px;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #efe4da;
}

.event-description {
    line-height: 1.8;
    color: var(--espresso);
}

/* ---- "Manage" list on the event dashboard ---- */
.manage-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0e8de;
    color: var(--muted);
}

.manage-item:last-child {
    border-bottom: 0;
}

.manage-item i {
    font-size: 1.1rem;
    color: var(--gold);
}

.manage-item .soon-badge {
    color: var(--gold);
}

/* Dashboard: the working "Create Event" tile */
.action-card-main {
    background: var(--wine);
    border-color: var(--wine);
    color: #ffffff;
    transition: background 0.2s, transform 0.2s;
}

.action-card-main:hover {
    background: var(--wine-dark);
    color: #ffffff;
    transform: translateY(-3px);
}

.action-card-main i {
    color: var(--champagne);
}

.action-hint {
    font-size: 0.72rem;
    color: var(--champagne);
}

/* =========================================================
   20. VENUES (list, search, details page)
   ========================================================= */

/* Wine header at the top of public pages like "Venues" */
.page-hero {
    padding: 70px 0 50px;
    color: #ffffff;
    background: radial-gradient(circle at 80% 20%, #7d2638 0%, var(--wine) 45%, var(--wine-dark) 100%);
    border-bottom: 2px solid var(--gold);
}

.page-hero .eyebrow {
    color: var(--champagne);
}

.page-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    margin-bottom: 0.8rem;
}

.page-hero-text {
    max-width: 640px;
    color: #dfd2c8;
    margin-bottom: 2rem;
}

.venue-search {
    padding: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(223, 197, 141, 0.4);
}

/* Gold button for dark backgrounds */
.btn-furahia-light-solid {
    border-radius: 0;
    padding: 12px 18px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--wine-dark);
    background: linear-gradient(135deg, var(--champagne), var(--gold));
    border: 0;
}

.btn-furahia-light-solid:hover {
    color: var(--wine-dark);
    background: var(--champagne);
}

/* ---- Venue card ---- */
.venue-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.venue-card:hover {
    color: inherit;
}

.venue-card .event-card-cover-empty i {
    font-size: 3rem;
    color: var(--champagne);
}

.venue-facts {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    padding: 0;
    margin: 0 0 10px;
    font-size: 0.84rem;
    color: var(--muted);
}

.venue-facts i {
    color: var(--gold);
    margin-right: 4px;
}

.venue-price {
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid #f0e8de;
    font-size: 0.85rem;
    color: var(--muted);
}

.venue-price b {
    font-weight: normal;
    font-size: 1.05rem;
    color: var(--wine);
}

/* ---- Page numbers (1, 2, 3 ...) ---- */
.furahia-pager .pagination {
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.furahia-pager .pagination a {
    display: block;
    min-width: 40px;
    padding: 8px 12px;
    text-align: center;
    color: var(--wine);
    text-decoration: none;
    background: #ffffff;
    border: 1px solid var(--line);
}

.furahia-pager .pagination a:hover {
    border-color: var(--gold);
}

.furahia-pager .pagination .active a {
    color: #ffffff;
    background: var(--wine);
    border-color: var(--wine);
}

/* ---- Venue details: photos ---- */
.venue-carousel .carousel-item img {
    height: 460px;
    object-fit: cover;
}

@media (max-width: 767px) {
    .venue-carousel .carousel-item img { height: 260px; }
}

.venue-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    overflow-x: auto;
}

.venue-thumbs button {
    flex: 0 0 90px;
    height: 62px;
    padding: 0;
    border: 2px solid transparent;
    background-size: cover;
    background-position: center;
    opacity: 0.65;
    transition: opacity 0.2s, border-color 0.2s;
}

.venue-thumbs button:hover,
.venue-thumbs button.active {
    opacity: 1;
    border-color: var(--gold);
}

/* ---- Venue details: key facts ---- */
.venue-highlights {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
    margin: 1rem 0 0;
}

.venue-highlights li {
    flex: 1 1 160px;
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-top: 2px solid var(--gold);
}

.venue-highlights i {
    font-size: 1.2rem;
    color: var(--gold);
}

.venue-highlights span {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 4px;
}

.venue-highlights b {
    font-weight: normal;
    font-size: 1.1rem;
    color: var(--wine);
}

.facility-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
    padding: 0;
}

.facility-list li {
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    font-size: 0.9rem;
}

.facility-list i {
    color: var(--gold);
    margin-right: 6px;
}

/* ---- Venue details: price and contact box ---- */
.venue-contact-box {
    position: sticky;
    top: 90px;
    padding: 26px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    box-shadow: 0 18px 40px rgba(104, 31, 46, 0.08);
}

.venue-contact-price {
    font-size: 1.7rem;
    color: var(--wine);
    margin-bottom: 1.2rem;
}

.venue-contact-price span {
    font-size: 0.9rem;
    color: var(--muted);
}

.venue-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.venue-contact-list a {
    display: block;
    padding: 9px 0;
    color: var(--espresso);
    text-decoration: none;
    border-bottom: 1px solid #f0e8de;
    word-break: break-word;
}

.venue-contact-list a:hover {
    color: var(--wine);
}

.venue-contact-list i {
    width: 22px;
    color: var(--gold);
}

/* =========================================================
   21. VENDORS / MARKETPLACE
   ========================================================= */

.text-gold {
    color: var(--gold);
}

/* Category buttons (All, Catering, Photography ...) */
.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px;
    font-size: 0.86rem;
    color: var(--wine);
    text-decoration: none;
    background: #ffffff;
    border: 1px solid var(--gold);
    transition: all 0.2s;
}

.category-chip i {
    color: var(--gold);
}

.category-chip:hover,
.category-chip.active {
    color: #ffffff;
    background: var(--wine);
    border-color: var(--wine);
}

.category-chip:hover i,
.category-chip.active i {
    color: var(--champagne);
}

/* "Are you an event vendor?" box */
.become-vendor {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 34px;
    color: #ffffff;
    background: radial-gradient(circle at 85% 50%, #7d2638 0%, var(--wine) 50%, var(--wine-dark) 100%);
    border-bottom: 2px solid var(--gold);
}

.become-vendor h2 {
    font-size: 1.8rem;
    color: var(--champagne);
    margin-bottom: 0.4rem;
}

.become-vendor p {
    color: #dfd2c8;
}

/* =========================================================
   22. DIGITAL INVITATIONS
   ========================================================= */

/* ---------- a) Host pages ---------- */
.invitation-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 16px 20px;
    border-bottom: 1px solid #f0e8de;
}

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

.invitation-row-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--champagne);
    background: var(--wine);
    border-radius: 50%;
}

/* Small coloured labels: Confirmed, Declined, Pending */
.status-pill {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    border-radius: 20px;
    white-space: nowrap;
}

.status-confirmed { background: #e3f1e6; color: #22663a; }
.status-declined  { background: #f8e3e3; color: #9b2c2c; }
.status-pending   { background: #f3ecdf; color: #8a6a2f; }

.theme-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px;
    font-size: 0.82rem;
    border: 1px solid #d8cbbd;
    background: #ffffff;
    cursor: pointer;
}

.btn-check:checked + .theme-option {
    border-color: var(--wine);
    box-shadow: 0 0 0 2px var(--wine);
}

.theme-swatch {
    width: 86px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    border: 1px solid var(--line);
}

.theme-swatch-wine     { background: linear-gradient(135deg, var(--wine), var(--wine-dark)); }
.theme-swatch-ivory    { background: linear-gradient(135deg, #fffdf8, #efe4d5); }
.theme-swatch-midnight { background: linear-gradient(135deg, #222637, #0f111a); }

.rsvp-count {
    padding: 12px 6px;
    font-size: 0.75rem;
    color: var(--muted);
    background: var(--ivory);
    border: 1px solid var(--line);
}

.rsvp-count b {
    display: block;
    font-weight: normal;
    font-size: 1.7rem;
    color: var(--wine);
}

.reply-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #f0e8de;
}

/* ---------- b) The invitation page (what guests see) ---------- */

/* The three designs. Each one only sets colours. */
.invite-theme-wine {
    --inv-page: radial-gradient(circle at 50% 0%, #7d2638 0%, #4f1622 45%, #2e050b 100%);
    --inv-card: #fffdf8;
    --inv-text: #2b211d;
    --inv-muted: #7a6c63;
    --inv-line: #e8dccd;
    --inv-button: #681f2e;
    --inv-button-text: #ffffff;
}

.invite-theme-ivory {
    --inv-page: linear-gradient(180deg, #f6efe4 0%, #eadcc8 100%);
    --inv-card: #ffffff;
    --inv-text: #2b211d;
    --inv-muted: #7a6c63;
    --inv-line: #eadfce;
    --inv-button: #9c7a3c;
    --inv-button-text: #ffffff;
}

.invite-theme-midnight {
    --inv-page: radial-gradient(circle at 50% 0%, #2a2f45 0%, #151824 55%, #0b0d14 100%);
    --inv-card: #1b1f2e;
    --inv-text: #f3ede4;
    --inv-muted: #b3ab9f;
    --inv-line: #33394f;
    --inv-button: #dfc58d;
    --inv-button-text: #1b1f2e;
}

.invite-body {
    min-height: 100vh;
    background: var(--inv-page);
    background-attachment: fixed;
    color: var(--inv-text);
}

.invite-page {
    padding: 40px 16px 20px;
}

.invite-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--inv-card);
    border: 1px solid rgba(223, 197, 141, 0.55);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.invite-cover {
    height: 300px;
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid var(--gold);
}

.invite-cover-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 40%, #7d2638 0%, var(--wine) 50%, var(--wine-dark) 100%);
}

.invite-cover-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid var(--champagne);
    box-shadow: 0 0 50px rgba(223, 197, 141, 0.35);
}

.invite-content {
    padding: 40px 34px 30px;
    text-align: center;
}

@media (max-width: 575px) {
    .invite-content { padding: 32px 20px 24px; }
    .invite-cover   { height: 220px; }
}

.invite-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.4rem;
}

.invite-host {
    font-size: 1.35rem;
    margin-bottom: 0.2rem;
}

.invite-small {
    font-size: 0.88rem;
    color: var(--inv-muted);
}

.invite-title {
    font-size: clamp(2.3rem, 7vw, 3.4rem);
    line-height: 1.1;
    margin: 0.8rem 0 0.4rem;
}

.invite-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 1.4rem auto;
    max-width: 320px;
    color: var(--gold);
}

.invite-divider::before,
.invite-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.invite-details {
    list-style: none;
    padding: 0;
    margin: 0 0 1.6rem;
}

.invite-details li {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--inv-muted);
}

.invite-details i {
    font-size: 1.3rem;
    color: var(--gold);
}

.invite-details b {
    font-weight: normal;
    font-size: 1.15rem;
    color: var(--inv-text);
}

.invite-details a {
    font-size: 0.8rem;
    color: var(--gold);
}

.invite-message {
    line-height: 1.9;
    margin: 0 auto 1.4rem;
    max-width: 480px;
}

.invite-note {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.9rem;
    border: 1px solid var(--inv-line);
}

.invite-note i {
    color: var(--gold);
}

/* ---- RSVP form ---- */
.invite-rsvp {
    padding: 30px 34px 36px;
    border-top: 1px solid var(--inv-line);
}

@media (max-width: 575px) {
    .invite-rsvp { padding: 26px 20px 30px; }
}

.invite-rsvp h2 {
    text-align: center;
    font-size: 1.8rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    margin-bottom: 1rem;
}

.invite-rsvp .form-label {
    font-size: 0.82rem;
    color: var(--inv-muted);
}

.invite-rsvp .form-control,
.invite-rsvp .form-select {
    border-radius: 0;
    padding: 11px;
    color: var(--inv-text);
    background-color: transparent;
    border-color: var(--inv-line);
}

.invite-theme-midnight .invite-rsvp .form-select option {
    color: #1b1f2e;
}

.invite-rsvp .form-control:focus,
.invite-rsvp .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(185, 150, 85, 0.25);
}

.invite-rsvp .text-muted {
    color: var(--inv-muted) !important;
}

/* Two big answer buttons */
.rsvp-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.rsvp-choice label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 10px;
    text-align: center;
    cursor: pointer;
    border: 1px solid var(--inv-line);
    transition: all 0.2s;
}

.rsvp-choice label i {
    font-size: 1.3rem;
    color: var(--gold);
}

.rsvp-choice .btn-check:checked + label {
    color: var(--inv-button-text);
    background: var(--inv-button);
    border-color: var(--inv-button);
}

.rsvp-choice .btn-check:checked + label i {
    color: inherit;
}

.btn-invite,
.btn-invite-outline {
    border-radius: 0;
    padding: 14px 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.btn-invite {
    color: var(--inv-button-text);
    background: var(--inv-button);
    border: 1px solid var(--inv-button);
}

.btn-invite:hover {
    color: var(--inv-button-text);
    background: var(--inv-button);
    filter: brightness(1.1);
}

.btn-invite-outline {
    color: var(--inv-text);
    background: transparent;
    border: 1px solid var(--inv-line);
}

.btn-invite-outline:hover {
    color: var(--inv-text);
    border-color: var(--gold);
}

/* ---- Guest pass ---- */
.pass-card {
    max-width: 480px;
    border-top: 3px solid var(--gold);
}

.pass-thanks {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.pass-qr {
    display: inline-block;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 0.6rem;
}

.pass-qr img,
.pass-qr canvas {
    display: block;
}

.pass-facts {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0;
    margin: 1rem 0 0;
}

.pass-facts li {
    flex: 1 1 110px;
    padding: 10px;
    border: 1px solid var(--inv-line);
}

.pass-facts span {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--inv-muted);
}

.pass-facts b {
    font-weight: normal;
}

/* ---- Footer under the invitation ---- */
.invite-footer {
    padding: 24px 16px 30px;
    text-align: center;
    font-size: 0.8rem;
}

.invite-footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.invite-theme-ivory .invite-footer a {
    color: var(--muted);
}

.invite-footer-logo {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

/* Event dashboard: a "Manage" item that is a working link */
.manage-item-link {
    color: var(--espresso);
    text-decoration: none;
}

.manage-item-link:hover {
    color: var(--wine);
}

/* =========================================================
   23. GUEST MANAGEMENT
   ========================================================= */

.guest-table th {
    font-weight: normal;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom-color: var(--line);
}

.guest-table td {
    border-bottom-color: #f0e8de;
}

.guest-table b {
    font-weight: normal;
    color: var(--espresso);
}

/* A whole row that is a link (Guests: choose an event) */
.invitation-row-link {
    color: inherit;
    text-decoration: none;
    transition: background 0.2s;
}

.invitation-row-link:hover {
    color: inherit;
    background: var(--ivory);
}

/* "Dear Neema," on a personal invitation */
.invite-dear {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--gold);
    margin-bottom: 0.8rem;
}

/* =========================================================
   24. QR CHECK-IN
   ========================================================= */

/* "12 checked in of 180 coming" */
.checkin-counter {
    text-align: right;
    line-height: 1.1;
}

.checkin-counter span:first-child {
    display: block;
    font-size: 2.6rem;
    color: var(--wine);
}

.checkin-counter small {
    color: var(--muted);
}

/* The camera box made by html5-qrcode */
#reader {
    border: 1px solid var(--line) !important;
}

#reader button {
    margin: 6px 4px;
    padding: 9px 16px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    background: var(--wine);
    border: 0;
}

#reader select {
    margin: 6px 0;
    padding: 6px;
    border: 1px solid var(--line);
}

/* ---- The big result card ---- */
.checkin-result {
    padding: 26px 22px;
    text-align: center;
    color: #ffffff;
    animation: result-pop 0.25s ease-out;
}

@keyframes result-pop {
    from { transform: scale(0.96); opacity: 0.4; }
    to   { transform: scale(1); opacity: 1; }
}

.checkin-result > i {
    font-size: 3.2rem;
}

.checkin-result h2 {
    font-size: 1.7rem;
    letter-spacing: 0.08em;
    margin: 8px 0 14px;
}

.checkin-result ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.checkin-result li {
    flex: 1 1 110px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.14);
}

.checkin-result li span {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.85;
}

.checkin-result li b {
    font-weight: normal;
    font-size: 1.15rem;
}

.checkin-note {
    margin: 12px 0 0;
    font-size: 0.9rem;
}

.checkin-success { background: #1f7a45; }
.checkin-already { background: #b7791f; }
.checkin-invalid { background: #a12a2a; }

.checkin-big-icon {
    font-size: 3.4rem;
    color: var(--gold);
}

/* =========================================================
   25. EVENT BUDGET
   ========================================================= */

/* "Remaining" in red when the budget is overspent */
.stat-card-danger {
    border-top-color: #a12a2a;
}

.stat-card-danger .stat-number {
    color: #a12a2a;
}

.budget-total-row td {
    font-weight: 600;
    color: var(--wine);
    border-top: 2px solid var(--gold);
    border-bottom: 0;
}

.category-bar {
    margin-bottom: 12px;
}

.category-bar .progress {
    margin-top: 4px;
}

/* =========================================================
   26. HOSPITALITY
   ========================================================= */

.request-card {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #f0e8de;
}

.request-card:last-child {
    border-bottom: 0;
}

.request-card b {
    font-weight: normal;
    font-size: 1.05rem;
    color: var(--wine);
}

.request-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--champagne);
    background: var(--wine);
    border-radius: 50%;
}

.request-details {
    margin: 8px 0 0;
    font-size: 0.9rem;
    color: var(--espresso);
}

/* The reply from the Furahia team */
.request-reply {
    margin-top: 10px;
    padding: 10px 12px;
    font-size: 0.88rem;
    background: var(--ivory);
    border-left: 3px solid var(--gold);
}

.request-reply i {
    color: var(--gold);
}

/* Hospitality statuses */
.status-requested   { background: #f3ecdf; color: #8a6a2f; }
.status-in-progress { background: #e4ecf7; color: #2d5286; }
.status-cancelled   { background: #eeeeee; color: #6b6b6b; }

/* =========================================================
   27. ADMIN PANEL
   ========================================================= */

.admin-search {
    max-width: 420px;
}

.text-wine {
    color: var(--wine);
    font-weight: normal;
}

/* Small photo in admin tables */
.admin-thumb {
    width: 52px;
    height: 40px;
    flex-shrink: 0;
    object-fit: cover;
    border: 1px solid var(--line);
}

.admin-thumb-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--champagne);
    background: var(--wine);
}

/* Gallery photos with a delete (x) button */
.admin-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-gallery-item {
    position: relative;
    width: 140px;
    height: 100px;
}

.admin-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid var(--line);
}

.admin-gallery-delete {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    padding: 0;
    font-size: 0.75rem;
    color: #ffffff;
    background: rgba(161, 42, 42, 0.9);
    border: 0;
    border-radius: 50%;
}

.danger-zone {
    border-color: #efc9c9;
}

/* One category (Admin > Categories) */
.category-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0e8de;
}

.icon-input {
    max-width: 140px;
}

/* Footer address (not a link) */
.footer-address {
    display: block;
    margin: 10px 0;
    font-size: 0.85rem;
}

/* A stat card that is a link (Admin overview) */
a.stat-card {
    color: inherit;
    transition: border-color 0.2s;
}

a.stat-card:hover {
    border-color: var(--gold);
}

/* =========================================================
   28. INVITATION QR CODES
   ========================================================= */

/* The QR code is drawn big (600 x 600) so it prints sharply.
   On the screen we show it smaller. */
.qr-box img,
.qr-box canvas {
    width: 200px;
    max-width: 100%;
    height: auto;
}

/* The QR code box on the host's invitation page */
.invitation-qr {
    margin-top: 20px;
    padding-top: 18px;
    text-align: center;
    border-top: 1px solid #f0e8de;
}

.invitation-qr-box {
    display: inline-block;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--gold);
}

.invitation-qr-box img,
.invitation-qr-box canvas {
    display: block;
    width: 180px;
}

/* The BIG entry QR code on the invitation (scanned at the gate) */
.entry-pass {
    padding: 28px 20px 30px;
    text-align: center;
    border-top: 1px solid var(--inv-line);
    background: linear-gradient(180deg, rgba(223, 197, 141, 0.12), transparent 70%);
}

.entry-qr {
    display: inline-block;
    padding: 14px;
    background: #ffffff;
    border: 2px solid var(--gold);
    border-radius: var(--radius, 8px);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.entry-qr img,
.entry-qr canvas {
    display: block;
    width: 260px;
    max-width: 70vw; /* never wider than the phone screen */
}

/* The guest pass QR code is big too */
.pass-qr img,
.pass-qr canvas {
    width: 260px;
    max-width: 70vw;
}

/* =========================================================
   29. ENTRY QR CARDS (Guest list > Print QR cards)
   ========================================================= */

.qr-card {
    height: 100%;
    padding: 22px 16px 18px;
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(74, 10, 18, 0.08);
}

.qr-card-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.qr-card-event {
    margin: 8px 0 2px;
    font-size: 1.25rem;
    color: var(--wine);
}

.qr-card-date {
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 12px;
}

.qr-card-code {
    display: inline-block;
    padding: 8px;
    border: 1px solid var(--gold);
    background: #ffffff;
}

.qr-card-code img,
.qr-card-code canvas {
    display: block;
    width: 170px;
}

.qr-card-name {
    margin: 12px 0 0;
    font-size: 1.15rem;
    color: var(--espresso);
}

.qr-card-admits {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gold);
}

.qr-card-hint {
    margin: 6px 0 0;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---- When printing: only the cards, 3 per row, with cutting lines ---- */
@media print {
    .app-topbar,
    .app-sidebar,
    .app-footer,
    .alert {
        display: none !important;
    }

    body,
    .app-body {
        background: #ffffff !important;
    }

    .app-wrapper {
        display: block;
    }

    .app-content {
        padding: 0;
    }

    .qr-card-col {
        width: 33.333%;
        flex: 0 0 33.333%;
    }

    .qr-card {
        border: 1px dashed #999999;  /* cut along this line */
        box-shadow: none;
        break-inside: avoid;
        page-break-inside: avoid;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .qr-card-code img,
    .qr-card-code canvas {
        width: 140px;
    }
}

/* =========================================================
   30. THE HOST'S OWN INVITATION CARD (+ guest QR code)
   ========================================================= */

/* The uploaded card on the invitation page */
.uploaded-card-img {
    max-width: 100%;
    max-height: 260px;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.uploaded-card .bi-file-earmark-pdf {
    font-size: 1.6rem;
    color: #b42318;
    vertical-align: middle;
}

.card-with-qr {
    text-align: center;
}

/* Picture card: the QR code sits ON the card.
   (Margins in % are measured from the card's WIDTH, like the downloaded file.) */
.card-preview {
    position: relative;
    display: inline-block;
    max-width: 100%;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.card-preview-img {
    display: block;
    max-width: 100%;
    max-height: 75vh;
}

.card-preview-qr {
    position: absolute;
    margin: 4%;
    padding: 1.4%;
    background: #ffffff;
}

.card-preview-qr .qr-box img,
.card-preview-qr .qr-box canvas {
    display: block;
    width: 100%;
    height: auto;
}

.qr-pos-bottom-right  { right: 0; bottom: 0; }
.qr-pos-bottom-left   { left: 0;  bottom: 0; }
.qr-pos-top-right     { right: 0; top: 0; }
.qr-pos-top-left      { left: 0;  top: 0; }
.qr-pos-bottom-center { left: 0;  right: 0; bottom: 0; margin: 4% auto; }

/* PDF card: the PDF in a frame, the QR code next to it */
.card-pdf-frame {
    width: 100%;
    height: 520px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
}

.card-pdf-qr {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
    text-align: left;
}

.card-pdf-qr .qr-box {
    flex-shrink: 0;
    padding: 6px;
    background: #ffffff;
    border: 1px solid var(--gold);
}

.card-pdf-qr .qr-box img,
.card-pdf-qr .qr-box canvas {
    width: 110px;
}


/* =========================================================
   31. CARD UPLOAD PAGE: where the QR code goes + guest list
   ========================================================= */

/* The small preview of the uploaded card on the invitation page */
.card-preview-small {
    box-shadow: none;
}

/* The dashed box that only SHOWS where each guest's QR code will be printed.
   (It uses the same .qr-pos-... classes as the card preview.) */
.card-qr-spot {
    position: absolute;
    margin: 4%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--gold);
    background: rgba(255, 255, 255, 0.75);
    color: var(--wine, #5c0f1b);
    font-size: 0.75rem;
    font-weight: 700;
}

/* The list of guests under the card (scrolls when it is long) */
.guest-card-list {
    max-height: 320px;
    overflow-y: auto;
}


/* =========================================================
   32. EVENT DETAILS PAGE (the page the guest's QR code opens)
   Uses the invitation colours (--inv-...), so it follows the host's theme.
   ========================================================= */

.details-top {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--inv-line);
}

.details-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid var(--champagne);
}

.details-brand {
    margin: 10px 0 18px;
    font-size: 0.8rem;
    letter-spacing: 0.45em;
    color: var(--gold);
}

.details-tagline {
    font-style: italic;
    color: var(--inv-muted);
    margin: 0.4rem auto 1rem;
    max-width: 460px;
}

/* One block: Guest details, Event details, Venue... */
.details-section {
    padding: 26px 34px;
    border-bottom: 1px solid var(--inv-line);
}

@media (max-width: 575px) {
    .details-section { padding: 22px 20px; }
}

.details-heading {
    margin-bottom: 14px;
    font-size: 0.78rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    text-align: center;
    color: var(--gold);
}

/* The rows: label on the left, value on the right (stacked on small phones) */
.details-list {
    margin: 0;
}

.details-list > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--inv-line);
}

.details-list > div:last-child {
    border-bottom: 0;
}

.details-list dt {
    font-weight: normal;
    color: var(--inv-muted);
}

.details-list dd {
    margin: 0;
    text-align: right;
    color: var(--inv-text);
}

@media (max-width: 400px) {
    .details-list > div { flex-direction: column; gap: 2px; }
    .details-list dd    { text-align: left; }
}

.details-message-label {
    margin: 14px 0 6px;
    text-align: center;
    color: var(--inv-muted);
    font-size: 0.85rem;
}

.details-message {
    text-align: center;
    font-style: italic;
}

.details-closing {
    padding: 10px 34px 34px;
    text-align: center;
}

.details-closing-text {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

/* "Invitation not found" page */
.not-found-icon {
    display: block;
    margin: 6px 0 12px;
    font-size: 3rem;
    color: var(--gold);
}

.details-not-found {
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

/* Staff check-in box (only admins see it) */
.staff-panel {
    max-width: 640px;
    margin: 0 auto 22px;
    padding: 20px 22px;
    background: #ffffff;
    color: #2b1a1d;
    border: 2px solid var(--gold);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.staff-panel-title {
    margin-bottom: 12px;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--wine);
    font-weight: 700;
}

.staff-panel .details-list dt { color: #6c5a5d; }
.staff-panel .details-list dd { color: #2b1a1d; font-weight: 600; }
.staff-panel .details-list > div { border-bottom-color: #eadfd3; }

.staff-details {
    margin-bottom: 14px;
}

.staff-panel-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--wine);
}


/* =========================================================
   33. VENUE SEARCH BOX (event form)
   The line under the venue box when a Furahia venue is chosen.
   ========================================================= */
.venue-info {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #6c5a5d;
}

.venue-info .bi-check-circle-fill {
    color: var(--wine);
}


/* =========================================================
   34. "SELECT ON MAP" POP-UP (event form + admin venue form)
   ========================================================= */
.map-box {
    height: 380px;
    border-radius: 12px;
    border: 1px solid #eadfd3;
}

.map-results {
    max-height: 180px;
    overflow-y: auto;
}

@media (max-width: 575px) {
    .map-box { height: 300px; }
}


/* =========================================================
   35. SIDEBAR COUNTS (the small number after "Events", "Guests & QR"...)
   ========================================================= */
.menu-count {
    margin-left: auto;
    min-width: 26px;
    padding: 1px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    color: #f7efe6;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 20px;
}

.app-nav-link.active .menu-count {
    color: var(--wine);
    background: var(--gold);
}


/* =========================================================
   36. ADMIN > EVENT TEMPLATES
   ========================================================= */
.template-thumb {
    width: 44px;
    height: 60px; /* portrait, like an invitation card */
}

.template-admin-preview {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    background: #f4ece4;
    border: 1px solid var(--line);
}


/* =========================================================
   37. HOMEPAGE: INVITATION TEMPLATE STRIP
   (Bootstrap carousel of template cards, right below the hero)
   ========================================================= */
.template-strip {
    padding: 56px 0 48px;
    color: #ffffff;
    /* a soft gold glow on the Furahia wine */
    background: radial-gradient(circle at 15% 0%, rgba(223, 197, 141, 0.18), transparent 45%), var(--wine);
    border-bottom: 2px solid var(--gold);
}
.template-strip .section-title { color: #ffffff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.template-strip .eyebrow       { color: var(--champagne); }

/* Round gold arrow buttons next to the title */
.template-arrow-btn {
    width: 42px;
    height: 42px;
    color: var(--champagne);
    background: transparent;
    border: 1px solid rgba(223, 197, 141, 0.6);
    border-radius: 50%;
    transition: all 0.2s;
}
.template-arrow-btn:hover {
    color: var(--wine);
    background: var(--champagne);
}

/* The little lines below the cards */
.template-indicators {
    position: static;
    margin: 22px 0 0;
}
.template-indicators [data-bs-target] {
    background-color: var(--champagne);
}


/* =========================================================
   38. INVITATION TEMPLATES: CARDS, GALLERY, DETAILS PAGE
   ========================================================= */

/* ---- One template card ---- */
.tpl-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: var(--espresso);
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(43, 33, 29, 0.08);
    transition: transform 0.25s, box-shadow 0.25s;
}
.tpl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(43, 33, 29, 0.16);
}

.tpl-card-image {
    position: relative;
    display: block;
    padding: 10px 10px 0;
    background: #f6efe7;
}
.tpl-card-image img {
    display: block;
    width: 100%;
    height: auto;
}
/* Homepage strip + "You may also like": all pictures the same height */
.tpl-card-fixed .tpl-card-image img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top;
}

.tpl-card-badge {
    position: absolute;
    left: 18px;
    bottom: 8px;
    padding: 3px 9px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wine);
    background: var(--champagne);
}

.tpl-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 14px 14px 16px;
}

/* The category label, e.g. WEDDING (also used on the details page) */
.tpl-card-category {
    align-self: flex-start;
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wine);
    background: #f3e7d6;
    border: 1px solid #e6d3b5;
}

.tpl-card-title {
    margin: 10px 0 6px;
    font-size: 1rem;
    line-height: 1.35;
}
.tpl-card-title a {
    color: var(--espresso);
    text-decoration: none;
}
.tpl-card-title a:hover {
    color: var(--wine);
}

.tpl-card-price {
    margin-bottom: 12px;
    color: var(--wine);
}
.tpl-card-price b {
    font-size: 1.05rem;
}
.tpl-card-price small {
    margin-left: 4px;
    color: #8a7a70;
}

.tpl-card-actions {
    display: flex;
    gap: 6px;
    margin-top: auto; /* buttons always at the bottom of the card */
}
.tpl-card-actions .btn {
    padding: 9px 10px;
    font-size: 0.64rem;
}

/* ---- The gallery: a "mosaic" (each card keeps the shape of its invitation) ---- */
.tpl-masonry {
    column-count: 4;
    column-gap: 18px;
}
.tpl-masonry .tpl-card {
    display: inline-flex; /* keeps a card in one column */
    width: 100%;
    height: auto;
    margin-bottom: 18px;
    break-inside: avoid;
}
@media (max-width: 1199px) { .tpl-masonry { column-count: 3; } }
@media (max-width: 767px)  { .tpl-masonry { column-count: 2; column-gap: 12px; } .tpl-masonry .tpl-card { margin-bottom: 12px; } }

/* Small phones: smaller text on the cards */
@media (max-width: 575px) {
    .tpl-card-body { padding: 10px 10px 12px; }
    .tpl-card-title { font-size: 0.9rem; }
    .tpl-card-actions .btn-furahia-outline { display: none; } /* the picture already opens the details */
}

/* ---- The details page ---- */
.tpl-details {
    padding-top: 40px;
}

.tpl-details-image {
    display: block;
    padding: 16px;
    text-align: center;
    background: #f6efe7;
    border: 1px solid var(--line);
}
.tpl-details-image img {
    max-width: 100%;
    max-height: 760px;
    box-shadow: 0 20px 45px rgba(43, 33, 29, 0.2);
}

.tpl-details-title {
    margin: 14px 0 10px;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    color: var(--wine);
}

.tpl-details-price {
    margin-bottom: 18px;
    color: var(--wine);
}
.tpl-details-price b {
    font-size: 1.8rem;
}
.tpl-details-price span {
    margin-left: 6px;
    color: #8a7a70;
}

.tpl-details-text {
    line-height: 1.75;
    color: #5c4d47;
}

.tpl-details-features {
    margin-bottom: 20px;
    padding: 20px 22px;
    background: #fbf6ef;
    border-left: 3px solid var(--gold);
}
.tpl-details-features ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.tpl-details-features li {
    padding: 5px 0;
}
.tpl-details-features i {
    width: 26px;
    color: var(--gold);
}

/* ---- Log In / Create Account: "Your chosen design" note ---- */
.auth-template-note {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    font-size: 0.88rem;
    background: #fbf6ef;
    border-left: 3px solid var(--gold);
}
.auth-template-note > i {
    font-size: 1.2rem;
    color: var(--gold);
}

/* ---- The chosen design (event form, admin event page) ---- */
.chosen-template {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: #fbf6ef;
    border: 1px solid #ead9bf;
    border-left: 3px solid var(--gold);
}
.chosen-template img {
    width: 64px;
    height: 86px;
    flex-shrink: 0;
    object-fit: cover;
    object-position: top;
    border: 1px solid var(--line);
}

/* =========================================================
   39. PICTURES SHOWN EXACTLY AS THEY WERE UPLOADED
   Event cover images and invitation cards: no frame, shadow, overlay or round corners.
   ========================================================= */
.event-cover-plain {
    display: block;
    width: 100%;
    height: auto;
}

.invitation-card-full {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    margin: 0 auto;
}

/* The language menu */
.invite-language {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 10;
    color: var(--inv-text, #ffffff);
}

.language-menu .dropdown-toggle {
    color: inherit;
    background: transparent;
    border: 1px solid var(--line);
    font-size: 0.8rem;
}

/* =========================================================
   40. THE PHONE SCANNER (/admin/scan): only the camera
   ========================================================= */
.scanner-page {
    background: var(--ivory);
}

.scanner-top {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #ffffff;
    background: var(--wine);
}
.scanner-top a {
    color: #ffffff;
    font-size: 1.3rem;
}

.scanner-top .scanner-logout {
    padding: 5px 10px;
    font-size: 0.8rem;
    white-space: nowrap;
    text-decoration: none;
    border: 1px solid var(--champagne);
}

.scanner-count {
    white-space: nowrap;
    font-weight: 600;
    color: var(--champagne);
}

.scanner-main {
    max-width: 520px;
    margin: 0 auto;
    padding: 14px;
}

.scanner-event {
    display: block;
    padding: 14px 16px;
    margin-bottom: 10px;
    color: var(--espresso);
    text-decoration: none;
    background: #ffffff;
    border: 1px solid var(--line);
}
.scanner-event span {
    display: block;
    font-size: 0.85rem;
    color: #8a7a70;
}

/* =========================================================
   41. THE "USER CARD LINK" PAGE (/card/...): the card + two buttons
   The card always fits the screen, with room for the buttons below it.
   ========================================================= */
.card-page {
    background: #f4ece4;
}

.card-page-main {
    max-width: 560px;
    margin: 0 auto;
    padding: 12px 12px 24px;
    text-align: center;
}

.card-page-img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 190px); /* room for the two buttons below */
    max-height: calc(100dvh - 190px);
    margin: 4px auto 0;
    object-fit: contain;              /* never stretched or cut */
}

.card-page-buttons {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.card-page-buttons .btn {
    padding: 14px;
}

.card-page-thanks {
    margin: 14px 0 0;
    font-weight: 600;
    color: #2e7d32;
}

.card-page-note {
    margin: 12px 0 0;
    font-size: 0.9rem;
    color: #6c5a5d;
}

.card-page-answer {
    margin: 12px 0 0;
    font-size: 0.9rem;
}

.card-page-brand {
    margin: 18px 0 0;
    font-size: 0.8rem;
    color: #8a7a70;
}
.card-page-brand img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

/* Admin event page: the owner's cover image, shown as it is */
.admin-cover-img {
    display: block;
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
}

.tpl-details-mark {
    width: 28px;
    height: 28px;
    margin-right: 6px;
    vertical-align: middle;
    border: 1px solid var(--gold);
}
