:root {
    --auth-navy: #054a72;
    --auth-ocean: #0f6c8d;
    --auth-ink: #123247;
    --auth-gold: #d9822b;
    --auth-sand: #f5efe5;
    --auth-mist: rgba(255, 255, 255, 0.82);
    --auth-line: rgba(5, 74, 114, 0.12);
    --auth-shadow: 0 28px 80px rgba(6, 49, 73, 0.18);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    color: var(--auth-ink);
    background:
        radial-gradient(circle at top left, rgba(217, 130, 43, 0.2), transparent 28%),
        radial-gradient(circle at bottom right, rgba(15, 108, 141, 0.16), transparent 32%),
        linear-gradient(135deg, #edf5f7 0%, #f7f1e8 100%);
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

body::before {
    top: -80px;
    left: -80px;
    background: rgba(15, 108, 141, 0.18);
}

body::after {
    right: -90px;
    bottom: -90px;
    background: rgba(217, 130, 43, 0.16);
}

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

.auth-page-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 24px;
}

.auth-topbar {
    width: min(1180px, 100%);
    margin: 0 auto 28px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 50px rgba(8, 49, 72, 0.08);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.08rem;
    color: var(--auth-navy);
}

.auth-brand img {
    width: 72px;
    height: auto;
}

.auth-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.auth-nav a {
    color: rgba(18, 50, 71, 0.82);
    font-weight: 500;
}

.auth-nav a:hover {
    color: var(--auth-navy);
}

.auth-language-switch {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: rgba(5, 74, 114, 0.08);
}

.auth-language-switch a {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
    color: rgba(18, 50, 71, 0.68);
}

.auth-language-switch a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--auth-navy), var(--auth-ocean));
}

.auth-main,
.dashboard-main {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.auth-main {
    display: grid;
    align-items: center;
    min-height: calc(100vh - 164px);
}

.auth-main-compact {
    min-height: calc(100vh - 210px);
}

.auth-card-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: var(--auth-shadow);
}

.auth-panel {
    padding: 42px;
}

.auth-panel-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    min-height: 680px;
    background: linear-gradient(160deg, #043451 0%, #0d6584 62%, #0f738c 100%);
    color: #f5fbff;
}

.auth-panel-brand::before {
    content: '';
    position: absolute;
    inset: auto -80px -80px auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.auth-kicker,
.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.auth-kicker {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.auth-eyebrow {
    color: var(--auth-gold);
    background: rgba(217, 130, 43, 0.12);
}

.auth-display,
.dashboard-hero h1,
.auth-panel-head h1,
.auth-panel-head h2 {
    margin: 0;
    font-family: 'Fraunces', serif;
    line-height: 1.05;
}

.auth-display {
    font-size: clamp(2.2rem, 5vw, 4rem);
    max-width: 10ch;
}

.auth-copy,
.dashboard-hero p,
.auth-panel-head p,
.auth-muted-copy,
.menu-card-content p,
.camera-notice {
    margin: 0;
    line-height: 1.65;
    font-size: 1rem;
}

.auth-feature-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.auth-feature-list li,
.auth-note-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-feature-list i,
.auth-note-card i {
    margin-top: 4px;
    font-size: 1rem;
    color: #ffd59e;
}

.auth-note-card strong {
    display: block;
    margin-bottom: 4px;
}

.auth-note-card p {
    margin: 0;
    color: rgba(245, 251, 255, 0.82);
}

.auth-visual {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    border-radius: 26px;
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.18);
}

.auth-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.auth-panel-form,
.auth-compact-card,
.camera-card,
.dashboard-hero,
.menu-card {
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: var(--auth-mist);
    backdrop-filter: blur(14px);
}

.auth-panel-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
}

.auth-panel-head {
    display: grid;
    gap: 12px;
    margin-bottom: 28px;
}

.auth-panel-head-centered {
    text-align: center;
    justify-items: center;
}

.auth-panel-head h1,
.auth-panel-head h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--auth-navy);
}

.auth-form,
.auth-form-grid {
    display: grid;
    gap: 18px;
}

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

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field label {
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--auth-ink);
}

.auth-control {
    height: 54px;
    border: 1px solid var(--auth-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    padding: 0 16px;
    font-size: 1rem;
    color: var(--auth-ink);
}

.auth-control:focus {
    border-color: rgba(15, 108, 141, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(15, 108, 141, 0.12);
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    color: rgba(18, 50, 71, 0.78);
    font-weight: 500;
}

.auth-checkbox input {
    width: 18px;
    height: 18px;
}

.auth-btn {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 0;
    border-radius: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.auth-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--auth-gold), #ea9c4b);
    box-shadow: 0 16px 34px rgba(217, 130, 43, 0.28);
}

.auth-btn-primary:hover,
.auth-btn-secondary:hover {
    color: inherit;
    transform: translateY(-1px);
}

.auth-btn-secondary {
    color: var(--auth-navy);
    background: rgba(5, 74, 114, 0.08);
}

.auth-links-row,
.auth-actions-center {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.auth-links-row a,
.auth-links-row span {
    font-size: 0.96rem;
    color: rgba(18, 50, 71, 0.75);
}

.auth-links-row a {
    font-weight: 600;
    color: var(--auth-navy);
}

.auth-links-center {
    justify-content: center;
}

.auth-alert {
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 18px;
    border: 1px solid rgba(15, 108, 141, 0.14);
    background: rgba(15, 108, 141, 0.08);
    color: var(--auth-ink);
}

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

.auth-compact-card,
.auth-success-card {
    width: min(680px, 100%);
    margin: 0 auto;
    padding: 40px;
    border-radius: 30px;
    box-shadow: var(--auth-shadow);
}

.auth-success-card {
    text-align: center;
}

.auth-success-icon {
    width: 92px;
    height: 92px;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(217, 130, 43, 0.18), rgba(15, 108, 141, 0.16));
    color: var(--auth-navy);
    font-size: 2.4rem;
}

.auth-empty-state {
    display: grid;
    justify-items: center;
    gap: 14px;
    text-align: center;
}

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

.dashboard-main {
    display: grid;
    gap: 24px;
    padding-bottom: 28px;
}

.dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 34px;
    border-radius: 30px;
    box-shadow: var(--auth-shadow);
}

.dashboard-hero-tight {
    align-items: flex-start;
}

.dashboard-hero h1 {
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    color: var(--auth-navy);
}

.dashboard-hero-actions {
    display: flex;
    gap: 12px;
}

.dashboard-alert {
    margin-bottom: 0;
}

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

.menu-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 22px;
    padding: 28px;
    border-radius: 28px;
    box-shadow: 0 22px 46px rgba(8, 49, 72, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 50px rgba(8, 49, 72, 0.14);
}

.menu-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(217, 130, 43, 0.08);
}

.menu-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(5, 74, 114, 0.12), rgba(15, 108, 141, 0.14));
    color: var(--auth-navy);
    font-size: 1.5rem;
}

.menu-card-content {
    display: grid;
    gap: 10px;
}

.menu-card-content h2,
.camera-card-header h2 {
    margin: 0;
    font-family: 'Fraunces', serif;
    color: var(--auth-navy);
}

.menu-link {
    color: var(--auth-gold);
    font-weight: 700;
}

.camera-card {
    padding: 28px;
    border-radius: 28px;
    box-shadow: var(--auth-shadow);
}

.camera-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.camera-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(217, 130, 43, 0.12);
    color: var(--auth-gold);
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

.camera-frame-wrap {
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--auth-line);
    background: #dbe7ed;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.camera-frame-wrap iframe {
    width: 100%;
    min-height: 620px;
    border: 0;
    display: block;
}

.camera-notice {
    margin-top: 16px;
    color: rgba(18, 50, 71, 0.76);
}

.auth-muted-copy {
    color: rgba(18, 50, 71, 0.74);
}

.auth-textarea {
    min-height: 120px;
    padding: 14px 16px;
}

.tour-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.stat-card {
    padding: 20px 22px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.74);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 38px rgba(8, 49, 72, 0.08);
}

.stat-card strong {
    display: block;
    margin-top: 10px;
    font-size: 2rem;
    color: var(--auth-navy);
    font-family: 'Fraunces', serif;
}

.stat-label {
    color: rgba(18, 50, 71, 0.7);
    font-weight: 600;
}

.tour-workspace,
.admin-tour-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
    gap: 22px;
}

.tour-calendar-card,
.tour-detail-card,
.tour-bookings-panel,
.admin-form-card,
.admin-tour-table-card {
    padding: 28px;
    border-radius: 28px;
    box-shadow: var(--auth-shadow);
}

.tour-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.tour-section-head h2 {
    margin: 8px 0 0;
    color: var(--auth-navy);
    font-family: 'Fraunces', serif;
}

.tour-section-head p {
    max-width: 420px;
    margin: 0;
    color: rgba(18, 50, 71, 0.72);
    line-height: 1.6;
}

.tour-calendar-surface {
    min-height: 650px;
}

.tour-filter-bar {
    display: flex;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.tour-filter-field {
    flex: 1 1 auto;
    margin-bottom: 0;
}

.tour-detail-card {
    display: flex;
    flex-direction: column;
}

.tour-detail-empty {
    min-height: 220px;
    display: grid;
    place-items: center;
    gap: 12px;
    text-align: center;
    border: 1px dashed rgba(5, 74, 114, 0.18);
    border-radius: 24px;
    padding: 24px;
    color: rgba(18, 50, 71, 0.72);
}

.tour-detail-empty.compact {
    min-height: 0;
}

.tour-detail-empty i {
    font-size: 2rem;
    color: var(--auth-gold);
}

.tour-meta-list {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.tour-meta-list div {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(5, 74, 114, 0.05);
}

.tour-meta-list span,
.tour-description-block span {
    display: block;
    margin-bottom: 6px;
    color: rgba(18, 50, 71, 0.66);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tour-meta-list strong {
    color: var(--auth-ink);
    line-height: 1.5;
}

.tour-description-block {
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(217, 130, 43, 0.08);
    color: var(--auth-ink);
}

.tour-description-block p {
    margin: 0;
    line-height: 1.65;
}

.tour-booking-form {
    margin-top: 20px;
}

.tour-helper-copy {
    margin: 0;
    font-size: 0.92rem;
    color: rgba(18, 50, 71, 0.74);
}

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

.booking-card {
    padding: 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(5, 74, 114, 0.08);
}

.booking-card p {
    margin: 0 0 10px;
    line-height: 1.55;
}

.booking-card p:last-child {
    margin-bottom: 0;
}

.booking-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.booking-card-head h3 {
    margin: 0;
    color: var(--auth-navy);
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
}

.booking-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 108, 141, 0.1);
    color: var(--auth-ocean);
    font-size: 0.84rem;
    font-weight: 700;
}

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

.auth-color-control {
    padding: 8px;
}

.auth-field-toggle {
    align-self: end;
}

.admin-checkbox {
    min-height: 54px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid var(--auth-line);
    background: rgba(255, 255, 255, 0.82);
}

.admin-form-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.admin-tour-table-card .table {
    margin-bottom: 0;
}

.admin-tour-table > :not(caption) > * > * {
    padding: 16px 12px;
    vertical-align: middle;
}

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

.table-secondary-copy {
    margin-top: 4px;
    color: rgba(18, 50, 71, 0.68);
    font-size: 0.92rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.status-badge.active {
    background: rgba(52, 168, 83, 0.12);
    color: #1e7c3d;
}

.status-badge.inactive {
    background: rgba(217, 130, 43, 0.12);
    color: #b2651f;
}

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

.inline-form {
    display: inline-flex;
}

.table-btn {
    min-height: 42px;
    padding: 8px 14px;
    font-size: 0.9rem;
    border-radius: 12px;
}

.auth-btn-danger {
    color: #fff;
    background: linear-gradient(135deg, #b93b3b, #d85c5c);
    box-shadow: 0 14px 28px rgba(185, 59, 59, 0.22);
}

.status-badge.danger {
    color: #b93b3b;
    background: rgba(185, 59, 59, 0.12);
}

.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.admin-gallery-card {
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(5, 74, 114, 0.08);
    box-shadow: 0 16px 36px rgba(8, 49, 72, 0.08);
}

.admin-gallery-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #eef5f7;
    display: block;
}

.admin-gallery-card-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.admin-gallery-card-body h3,
.admin-gallery-card-body p {
    margin: 0;
}

.admin-gallery-card-body h3 {
    color: var(--auth-navy);
    font-size: 1.1rem;
    font-family: 'Fraunces', serif;
}

.compact-form {
    gap: 10px;
}

.menu-card-disabled {
    opacity: 0.8;
    pointer-events: none;
}

.fc .fc-toolbar.fc-header-toolbar {
    margin-bottom: 1.2rem;
}

.fc .fc-toolbar-title {
    color: var(--auth-navy);
    font-family: 'Fraunces', serif;
    font-size: 1.35rem;
}

.fc .fc-button-primary {
    background: var(--auth-navy);
    border-color: var(--auth-navy);
}

.fc .fc-button-primary:not(:disabled):active,
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:hover {
    background: var(--auth-ocean);
    border-color: var(--auth-ocean);
}

.fc .fc-daygrid-day-number,
.fc .fc-col-header-cell-cushion {
    color: var(--auth-ink);
}

.fc .fc-event {
    border: 0;
    border-radius: 12px;
    padding: 2px 4px;
    font-size: 0.84rem;
}

.admin-order-list {
    display: grid;
    gap: 14px;
}

.admin-order-card {
    text-decoration: none;
    color: inherit;
}

.shop-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.status-pending {
    color: #b2651f;
    background: rgba(217, 130, 43, 0.14);
}

.status-paid,
.status-delivered {
    color: #1e7c3d;
    background: rgba(52, 168, 83, 0.12);
}

.status-processing {
    color: var(--auth-ocean);
    background: rgba(15, 108, 141, 0.12);
}

.status-shipped {
    color: #5f58a4;
    background: rgba(95, 88, 164, 0.14);
}

.status-cancelled {
    color: #b93b3b;
    background: rgba(185, 59, 59, 0.12);
}

.admin-tracking-timeline {
    margin-bottom: 18px;
}

.shop-tracking-timeline {
    display: grid;
    gap: 14px;
}

.shop-tracking-event {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(5, 74, 114, 0.08);
    background: rgba(5, 74, 114, 0.04);
}

.shop-tracking-event strong {
    display: block;
    margin-top: 8px;
    margin-bottom: 6px;
    color: var(--auth-navy);
}

.shop-tracking-event p {
    margin: 0;
    color: rgba(18, 50, 71, 0.76);
}

.note-editor.note-frame {
    border: 1px solid var(--auth-line);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
}

.note-editor.note-frame .note-editing-area .note-editable {
    min-height: 220px;
}

@media (max-width: 991.98px) {
    .auth-page-shell {
        padding: 18px;
    }

    .auth-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-topbar-right {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-nav {
        justify-content: center;
    }

    .auth-language-switch {
        align-self: center;
    }

    .auth-card-grid,
    .menu-grid,
    .admin-gallery-grid,
    .auth-form-grid,
    .tour-stats-grid,
    .tour-workspace,
    .admin-tour-layout,
    .admin-form-grid,
    .tour-bookings-grid {
        grid-template-columns: 1fr;
    }

    .auth-panel-brand {
        min-height: auto;
    }

    .dashboard-hero,
    .tour-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .tour-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 575.98px) {
    .auth-panel,
    .auth-compact-card,
    .camera-card,
    .dashboard-hero,
    .menu-card {
        padding: 24px;
    }

    .auth-brand {
        justify-content: center;
    }

    .auth-links-row,
    .auth-actions-center,
    .dashboard-hero-actions {
        justify-content: center;
    }

    .camera-frame-wrap iframe {
        min-height: 420px;
    }
}
