:root {
    --rose: #b83b5e;
    --rose-dark: #8f2744;
    --blush: #f9e6ea;
    --champagne: #fbf4ea;
    --gold: #c9a46a;
    --ink: #2f2430;
    --muted: #6d5f6a;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --border: rgba(184, 59, 94, 0.14);
    --shadow: 0 20px 50px rgba(47, 36, 48, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(201, 164, 106, 0.18), transparent 30%),
        radial-gradient(circle at bottom right, rgba(184, 59, 94, 0.14), transparent 32%),
        linear-gradient(180deg, #fffaf7 0%, #f7eef1 52%, #f8f3ee 100%);
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.32) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.32) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.25;
}

a {
    color: var(--rose);
    text-decoration: none;
}

a:hover {
    color: var(--rose-dark);
}

.site-header,
header {
    position: relative;
    background: linear-gradient(135deg, rgba(184, 59, 94, 0.96), rgba(143, 39, 68, 0.94));
    color: #fff;
    box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.site-header::after,
header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
}

.header-inner {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.site-header h1,
header h1 {
    margin: 0;
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    letter-spacing: 0.02em;
    font-weight: 700;
}

nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 700;
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.profile-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 700;
}

.profile-dropdown {
    position: relative;
    margin-left: auto;
}

.profile-dropdown-summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.profile-dropdown-summary::-webkit-details-marker {
    display: none;
}

.profile-dropdown[open] .profile-dropdown-summary {
    background: rgba(255, 255, 255, 0.24);
}

.profile-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    min-width: 200px;
    padding: 0.5rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(184, 59, 94, 0.2);
    box-shadow: 0 14px 28px rgba(47, 36, 48, 0.18);
    z-index: 30;
}

.profile-dropdown[open] .profile-dropdown-menu {
    display: grid;
    gap: 0.45rem;
}

.profile-dropdown-menu a,
.profile-dropdown-logout-button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    background: rgba(184, 59, 94, 0.08);
    border: 1px solid rgba(184, 59, 94, 0.16);
    color: var(--rose-dark);
    font-weight: 700;
    text-decoration: none;
}

.profile-dropdown-menu a:hover,
.profile-dropdown-logout-button:hover {
    background: rgba(184, 59, 94, 0.16);
    color: var(--rose-dark);
    transform: none;
    box-shadow: none;
}

.profile-dropdown-logout-form {
    margin: 0;
}

.profile-dropdown-logout-button {
    cursor: pointer;
}

.inline-logout-form {
    display: inline-flex;
    margin: 0;
}

.inline-logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 700;
    cursor: pointer;
}

.inline-logout-button:hover {
    background: rgba(255, 255, 255, 0.22);
}

nav a:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

main {
    position: relative;
    z-index: 1;
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin: 2rem auto;
    padding: 1.5rem;
    border-radius: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.page-shell {
    width: min(1120px, calc(100% - 2rem));
    margin: 2rem auto;
    display: grid;
    gap: 1.25rem;
}

.page-hero {
    padding: 1.6rem 1.75rem;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(249, 230, 234, 0.82));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.page-hero h1,
.page-hero h2 {
    margin: 0 0 0.5rem;
    color: var(--rose-dark);
}

.page-hero p {
    margin: 0;
    color: var(--muted);
}

.page-card {
    padding: 1.5rem;
    border-radius: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.section-intro {
    margin-bottom: 1rem;
    color: var(--muted);
}

.empty-state {
    padding: 1.2rem 1.25rem;
    border-radius: 18px;
    border: 1px dashed rgba(184, 59, 94, 0.24);
    background: rgba(255, 255, 255, 0.7);
    color: var(--muted);
}

.table-wrap {
    overflow-x: auto;
    border-radius: 22px;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
    gap: 1.25rem;
    align-items: stretch;
}

.hero-highlight {
    padding: 1.25rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(184, 59, 94, 0.12);
}

.hero-highlight h2 {
    margin-top: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.event-card-featured {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.event-actions,
.copy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.service-preview {
    margin: 0.5rem 0 1rem;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(184, 59, 94, 0.14);
}

.service-preview h3 {
    margin-top: 0;
    margin-bottom: 0.35rem;
    color: var(--rose-dark);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
    align-items: end;
}

.form-group-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.dropzone {
    border: 2px dashed rgba(184, 59, 94, 0.35);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    padding: 1.2rem;
    text-align: center;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.dropzone p {
    margin: 0.2rem 0;
    color: var(--muted);
}

.dropzone.is-dragover {
    border-color: var(--rose);
    background: rgba(249, 230, 234, 0.72);
}

.gallery-preview-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.9rem;
    margin: 1rem 0;
}

.gallery-preview-card {
    border: 1px solid rgba(184, 59, 94, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.85);
    padding: 0.75rem;
}

.gallery-preview-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 0.55rem;
}

.gallery-preview-name {
    margin: 0;
    font-weight: 700;
    color: var(--ink);
}

.gallery-preview-meta {
    margin: 0.25rem 0 0.55rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.gallery-preview-status {
    margin: -0.2rem 0 0.55rem;
    color: var(--rose-dark);
    font-size: 0.82rem;
    font-weight: 600;
}

.gallery-preview-caption-label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--rose-dark);
    font-weight: 600;
}

.gallery-preview-card input[type="text"] {
    width: 100%;
}

.location-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(184, 59, 94, 0.08);
    color: var(--rose-dark);
    border: 1px solid rgba(184, 59, 94, 0.12);
    font-weight: 700;
}

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

.flash-message {
    width: min(1120px, calc(100% - 2rem));
    margin: 1rem auto 0;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid transparent;
    box-shadow: 0 10px 24px rgba(47, 36, 48, 0.08);
    position: relative;
    z-index: 1;
}

.flash-success {
    background: rgba(235, 249, 239, 0.95);
    border-color: rgba(46, 125, 50, 0.2);
    color: #1f5e25;
}

.flash-error {
    background: rgba(255, 240, 240, 0.95);
    border-color: rgba(184, 59, 94, 0.2);
    color: var(--rose-dark);
}

.sidebar-logout-form {
    margin: 0;
}

.sidebar-logout-button {
    width: 100%;
    margin-top: 0.25rem;
}

.auth-shell {
    width: min(1120px, calc(100% - 2rem));
    margin: 2rem auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 1.25rem;
    align-items: stretch;
}

.auth-panel,
.auth-form-panel {
    padding: 1.75rem;
    border-radius: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(251, 244, 234, 0.88));
}

.auth-panel .eyebrow {
    margin: 0 0 0.75rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
}

.auth-panel h2 {
    margin: 0 0 0.75rem;
    color: var(--rose-dark);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.auth-panel ul {
    padding-left: 1.1rem;
    margin: 0;
    color: var(--muted);
}

.auth-form-panel h1 {
    margin-top: 0;
}

.auth-form-panel .form-group,
.auth-form-panel .oauth-login {
    margin-bottom: 1rem;
    padding: 1rem;
}

.auth-form-panel p:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .hero-split {
        grid-template-columns: 1fr;
    }
}

.site-footer,
footer,
.sidebar-footer {
    background: linear-gradient(135deg, rgba(143, 39, 68, 0.96), rgba(184, 59, 94, 0.96));
    color: #fff;
    text-align: center;
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.site-footer p,
footer p,
.sidebar-footer p {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(260px, 300px) 1fr;
}

.admin-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background:
        linear-gradient(180deg, rgba(255, 248, 250, 0.96), rgba(251, 244, 234, 0.96)),
        linear-gradient(135deg, rgba(184, 59, 94, 0.08), rgba(201, 164, 106, 0.12));
    border-right: 1px solid rgba(184, 59, 94, 0.12);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.7);
}

.admin-sidebar h1 {
    margin: 0;
    color: var(--rose-dark);
    font-size: 1.8rem;
    line-height: 1.1;
}

.admin-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.admin-sidebar nav a {
    justify-content: flex-start;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(184, 59, 94, 0.12);
    box-shadow: 0 8px 20px rgba(47, 36, 48, 0.06);
}

.admin-sidebar nav a:hover {
    color: var(--rose-dark);
    background: #fff;
}

.admin-content {
    padding: 2rem;
}

.sidebar-footer {
    margin-top: auto;
    border-radius: 18px;
    box-shadow: 0 12px 26px rgba(47, 36, 48, 0.08);
}

.event-card,
.gallery-item,
.stat-item,
.form-group,
.oauth-login,
.admin-dashboard main section,
.admin-dashboard table {
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(47, 36, 48, 0.08);
}

.event-card {
    padding: 1.25rem;
    margin: 1rem 0;
}

.event-card h2,
.container h1,
.admin-dashboard h2,
.admin-dashboard h3 {
    color: var(--rose-dark);
}

.button,
button,
.btn,
.google-login,
.google-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, var(--rose), var(--rose-dark));
    color: #fff;
    padding: 0.85rem 1.25rem;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(184, 59, 94, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(109, 95, 106, 0.92), rgba(47, 36, 48, 0.92));
    box-shadow: 0 12px 24px rgba(47, 36, 48, 0.16);
}

.btn-secondary:hover {
    box-shadow: 0 16px 30px rgba(47, 36, 48, 0.2);
}

.button:hover,
button:hover,
.btn:hover,
.google-login:hover,
.google-button:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(184, 59, 94, 0.28);
    filter: saturate(1.05);
}

.button:focus-visible,
button:focus-visible,
.btn:focus-visible,
.google-login:focus-visible,
.google-button:focus-visible,
nav a:focus-visible {
    outline: 3px solid rgba(201, 164, 106, 0.65);
    outline-offset: 3px;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(109, 95, 106, 0.2);
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(184, 59, 94, 0.5);
    box-shadow: 0 0 0 4px rgba(184, 59, 94, 0.12);
}

.uploaded-image {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(47, 36, 48, 0.12);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.gallery img {
    width: 100%;
    max-width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(184, 59, 94, 0.12);
    box-shadow: 0 10px 24px rgba(47, 36, 48, 0.1);
}

.gallery-caption {
    margin: 0.65rem 0 0.5rem;
    color: var(--ink);
    font-size: 0.92rem;
}

.gallery-actions {
    margin: 0;
    display: flex;
}

.gallery-actions .btn {
    width: 100%;
}

.gallery-select-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.55rem;
    font-size: 0.86rem;
    color: var(--muted);
}

.gallery-select-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 50;
}

.gallery-lightbox.is-open {
    display: block;
}

.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 10, 14, 0.82);
}

.gallery-lightbox-content {
    position: relative;
    width: min(92vw, 980px);
    margin: 4vh auto;
    max-height: 92vh;
    padding: 1rem;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
    overflow: auto;
}

.gallery-lightbox-content img {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 14px;
}

.gallery-lightbox-content p {
    margin: 0.7rem 0 0;
    color: var(--ink);
}

.gallery-lightbox-close {
    position: absolute;
    top: 0.5rem;
    right: 0.7rem;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 0;
    background: rgba(47, 36, 48, 0.12);
    color: var(--ink);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(184, 59, 94, 0.12);
    text-align: left;
}

th {
    color: var(--rose-dark);
    background: rgba(249, 230, 234, 0.6);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.status-badge-pending {
    background: rgba(201, 164, 106, 0.15);
    border-color: rgba(201, 164, 106, 0.38);
    color: #805f2b;
}

.status-badge-confirmed,
.status-badge-completed,
.status-badge-arranged_pickup {
    background: rgba(46, 125, 50, 0.14);
    border-color: rgba(46, 125, 50, 0.35);
    color: #1f5e25;
}

.status-badge-cancelled,
.status-badge-self_taxi {
    background: rgba(184, 59, 94, 0.14);
    border-color: rgba(184, 59, 94, 0.32);
    color: var(--rose-dark);
}

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

    .admin-sidebar {
        border-right: 0;
        border-bottom: 1px solid rgba(184, 59, 94, 0.12);
    }

    .admin-content {
        padding: 1.25rem;
    }

    .page-shell,
    .auth-shell {
        width: min(100% - 1rem, 1120px);
        margin: 1rem auto;
    }

    .page-hero,
    .page-card,
    .auth-panel,
    .auth-form-panel {
        padding: 1.25rem;
        border-radius: 22px;
    }

    .flash-message {
        width: min(100% - 1rem, 1120px);
        margin-top: 0.75rem;
    }
}

@media (max-width: 640px) {
    .header-inner,
    .container {
        width: min(100% - 1rem, 1120px);
    }

    .container {
        padding: 1rem;
        border-radius: 20px;
    }

    nav {
        gap: 0.5rem;
    }

    nav a {
        padding: 0.6rem 0.85rem;
    }

    .gallery img {
        height: 180px;
    }

    .page-shell,
    .auth-shell {
        width: min(100% - 1rem, 1120px);
    }

    .header-inner {
        gap: 1rem;
    }

    .page-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .page-actions .btn,
    .page-actions .button,
    .page-actions button {
        width: 100%;
    }

    .feature-grid,
    .compact-grid {
        grid-template-columns: 1fr;
    }
}