:root {
    --bg: #f3efe7;
    --bg-soft: #f8f4ee;
    --surface: rgba(255, 255, 255, 0.8);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --primary: #c26d3a;
    --primary-dark: #8e4522;
    --secondary: #df9f52;
    --accent: #0f766e;
    --accent-soft: #daf1ed;
    --text: #1f2937;
    --muted: #6b7280;
    --border: rgba(31, 41, 55, 0.1);
    --shadow: 0 20px 60px rgba(28, 39, 54, 0.12);
    --shadow-soft: 0 12px 30px rgba(28, 39, 54, 0.08);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(194, 109, 58, 0.15), transparent 35%),
        radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.16), transparent 32%),
        linear-gradient(135deg, #f8f4ee 0%, #eef4f5 100%);
    min-height: 100vh;
}

body.has-sidebar {
    overflow-x: visible;
}

body.has-topbar {
    padding-top: 0;
}

body::selection {
    background: rgba(194, 109, 58, 0.2);
}

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

.bg-orb,
.bg-grid {
    position: fixed;
    inset: auto;
    pointer-events: none;
    z-index: 0;
}

.bg-orb {
    width: 28rem;
    height: 28rem;
    border-radius: 999px;
    filter: blur(28px);
    opacity: 0.45;
    animation: floatOrb 12s ease-in-out infinite;
}

.orb-1 {
    top: -8rem;
    left: -7rem;
    background: radial-gradient(circle, rgba(194, 109, 58, 0.28), transparent 68%);
}

.orb-2 {
    right: -8rem;
    bottom: -10rem;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.24), transparent 70%);
    animation-delay: -4s;
}

.bg-grid {
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
    opacity: 0.35;
}

.app-shell {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
}

.has-sidebar .app-shell {
    display: grid;
    grid-template-columns: 288px minmax(0, 1fr);
    gap: 24px;
    width: min(calc(100% - 40px), 1680px);
    max-width: 1680px;
    align-items: start;
}

body.sidebar-collapsed .app-shell {
    grid-template-columns: 98px minmax(0, 1fr);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 16px 22px;
    background: #ffffff;
    border: 1px solid rgba(31, 41, 55, 0.08);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    position: sticky;
    top: 18px;
    z-index: 20;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}


.topbar.is-scrolled {
    border-color: rgba(31, 41, 55, 0.12);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand strong {
    display: block;
    font-size: 1.05rem;
}

.brand small,
.muted,
small {
    color: var(--muted);
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), #df9f52);
    color: white;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(194, 109, 58, 0.2);
}

.nav-toggle {
    display: none;
}

.sidebar {
    position: sticky;
    top: 24px;
    min-height: calc(100vh - 48px);
    padding: 20px 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(31, 41, 55, 0.08);
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: width 0.25s ease, padding 0.25s ease;
}

.sidebar-backdrop,
.mobile-sidebar-toggle {
    display: none;
}

.sidebar-head {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-brand {
    align-items: center;
    flex-direction: column;
    text-align: center;
    gap: 10px;
}

.brand-copy {
    display: block;
}

.sidebar-brand .brand-logo {
    width: 72px;
    height: 72px;
}

.sidebar-user {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(31, 41, 55, 0.06);
}

.sidebar-toggle-wrap {
    display: flex;
    justify-content: center;
    margin-top: -4px;
}

.sidebar-user strong,
.sidebar-user span {
    display: block;
}

.sidebar-user span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.92rem;
}

.sidebar-nav,
.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-actions {
    margin-top: auto;
}

.sidebar-link,
.sidebar-action-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    color: #4b5563;
    background: transparent;
    border: 1px solid transparent;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sidebar-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-icon svg {
    width: 20px;
    height: 20px;
}

.sidebar-link:hover,
.sidebar-link.active,
.sidebar-action-btn:hover {
    background: rgba(15, 23, 42, 0.06);
    color: #111827;
    border-color: rgba(31, 41, 55, 0.06);
}

.sidebar-toggle {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(31, 41, 55, 0.08);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.sidebar-toggle span {
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: #111827;
}

.sidebar-action-btn.notification-toggle {
    justify-content: flex-start;
}

body.sidebar-collapsed .sidebar {
    padding-left: 12px;
    padding-right: 12px;
}

body.sidebar-collapsed .brand-copy,
body.sidebar-collapsed .sidebar-user,
body.sidebar-collapsed .sidebar-link-text {
    display: none;
}

body.sidebar-collapsed .sidebar-toggle-wrap {
    justify-content: center;
}

body.sidebar-collapsed .sidebar-link,
body.sidebar-collapsed .sidebar-action-btn {
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
    min-height: 46px;
}

body.sidebar-collapsed .notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
}

body.sidebar-collapsed .sidebar-action-btn.notification-toggle {
    position: relative;
}

.topnav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
    flex: 1;
}

.topnav a {
    padding: 8px 10px;
    border-radius: 8px;
    color: #4b5563;
    transition: background 0.2s ease, color 0.2s ease;
    position: relative;
    font-weight: 600;
    white-space: nowrap;
}

.topnav a.active,
.topnav a:hover {
    color: #111827;
    background: rgba(15, 23, 42, 0.06);
}

.topnav a.active::after {
    display: none;
}

.page {
    padding: 30px 0 40px;
}

.page-with-sidebar {
    padding-top: 0;
    min-width: 0;
}

.page-head,
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.page-head {
    margin-bottom: 24px;
}

.section-title h2 {
    margin: 0;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #1f2937, #4d5d75);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-head h1,
.hero h1 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 1.05;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 800;
}

.profile-chip,
.panel,
.feature-card,
.kpi-card,
.glass-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.panel::before,
.feature-card::before,
.kpi-card::before,
.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.38), transparent 45%);
    pointer-events: none;
}

.profile-chip {
    padding: 14px 18px;
    border-radius: 18px;
    text-align: right;
}

.hero {
    min-height: 70vh;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: center;
}

.hero-copy {
    animation: fadeHero 0.7s ease both;
}

.hero-copy,
.hero-panel,
.panel,
.feature-card,
.kpi-card {
    border-radius: var(--radius);
}

.lead {
    font-size: 1.08rem;
    line-height: 1.8;
    max-width: 700px;
    color: #374151;
}

.hero-panel {
    transform: perspective(1200px) rotateY(-7deg);
    transform-style: preserve-3d;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 26px;
}

.primary-btn,
.ghost-btn,
button {
    border: none;
    border-radius: 999px;
    padding: 13px 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
button.primary-btn {
    background: linear-gradient(135deg, var(--primary), #df9f52);
    color: white;
    box-shadow: 0 18px 30px rgba(194, 109, 58, 0.25);
}

.ghost-btn {
    background: rgba(255, 255, 255, 0.7);
    color: var(--text);
    border: 1px solid var(--border);
}

.primary-btn:hover,
.ghost-btn:hover,
button:hover {
    transform: translateY(-2px);
}

.primary-btn:active,
.ghost-btn:active,
button:active {
    transform: translateY(0);
}

.full-width {
    width: 100%;
}

.hero-panel,
.feature-card,
.panel,
.kpi-card {
    padding: 24px;
}

.metric-stack,
.grid-3,
.kpi-grid,
.two-col,
.dashboard-grid,
.form-grid,
.timeline {
    display: grid;
    gap: 18px;
}

.metric {
    padding: 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(31, 41, 55, 0.06);
    box-shadow: var(--shadow-soft);
}

.metric span,
.kpi-card span {
    display: block;
    color: var(--muted);
    margin-bottom: 10px;
}

.metric strong {
    font-size: 1.08rem;
}

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

.feature-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover,
.panel:hover,
.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 55px rgba(28, 39, 54, 0.16);
    border-color: rgba(194, 109, 58, 0.18);
}

.kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 20px;
}

.kpi-card strong {
    font-size: 1.7rem;
    background: linear-gradient(135deg, #152031, #4d5d75);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.two-col,
.dashboard-grid {
    grid-template-columns: 1fr 1fr;
}

.stats-board {
    gap: 24px;
    margin-bottom: 28px;
}

.two-col {
    gap: 24px;
}

.owner-dashboard-grid .panel,
.stats-board .panel {
    min-height: 100%;
}

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

.auth-wrap {
    max-width: 560px;
    margin: 40px auto;
}

label {
    display: block;
    margin: 14px 0 8px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(31, 41, 55, 0.11);
    border-radius: 18px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.92);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(194, 109, 58, 0.45);
    box-shadow: 0 0 0 4px rgba(194, 109, 58, 0.12);
    transform: translateY(-1px);
}

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

.alert {
    padding: 16px 18px;
    border-radius: 18px;
    margin-bottom: 18px;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
}

.alert.success {
    background: rgba(22, 163, 74, 0.12);
    color: #166534;
}

.alert.danger {
    background: rgba(220, 38, 38, 0.12);
    color: #991b1b;
}

.table-wrap {
    overflow: auto;
    width: 100%;
    padding-bottom: 4px;
    border-radius: 18px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

thead th {
    position: sticky;
    top: 0;
    background: rgba(248, 244, 238, 0.95);
    backdrop-filter: blur(8px);
    z-index: 1;
}

th,
td {
    text-align: left;
    padding: 16px 14px;
    border-bottom: 1px solid rgba(31, 41, 55, 0.08);
    vertical-align: top;
}

tbody tr {
    transition: background 0.18s ease, transform 0.18s ease;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.62);
}

th {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

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

.badge.success {
    background: rgba(34, 197, 94, 0.14);
    color: #166534;
}

.badge.warning {
    background: rgba(245, 158, 11, 0.16);
    color: #92400e;
}

.badge.danger {
    background: rgba(239, 68, 68, 0.16);
    color: #991b1b;
}

.badge.info {
    background: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
}

.badge.dark {
    background: rgba(31, 41, 55, 0.16);
    color: #111827;
}

.timeline-item,
.info-row,
.demo-note {
    display: grid;
    gap: 5px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(31, 41, 55, 0.06);
}

.stay-note,
.stay-preview {
    margin-top: 14px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(194, 109, 58, 0.08));
    border: 1px solid rgba(15, 118, 110, 0.1);
}

.stay-preview {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 18px;
}

.info-row {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.inline-link {
    color: var(--primary-dark);
    font-weight: 700;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.owner-range-filter {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: end;
}

.owner-filter-actions {
    grid-column: span 1;
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.archive-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 18px;
}

.archive-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(31, 41, 55, 0.08);
    color: var(--muted);
    transition: 0.2s ease;
}

.archive-nav a:hover,
.archive-nav a.active-pill,
button.active-pill {
    color: var(--text);
    border-color: rgba(194, 109, 58, 0.18);
    background: rgba(255, 247, 240, 0.95);
}

.centered-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.notification-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    color: var(--text);
    border: 1px solid var(--border);
}

.notification-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
}

.notification-icon svg {
    width: 18px;
    height: 18px;
}

.notification-badge {
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 0 6px;
}

.notification-badge.is-hidden,
.notification-center.is-hidden {
    display: none;
}

.notification-center {
    margin-bottom: 18px;
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-soft);
}

.notification-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.notification-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.notification-item {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(31, 41, 55, 0.07);
}

.notification-item.unread {
    border-color: rgba(194, 109, 58, 0.22);
    background: linear-gradient(135deg, rgba(255, 247, 240, 0.96), rgba(241, 250, 249, 0.88));
}

.notification-item time {
    color: var(--muted);
    font-size: 0.78rem;
}

.toast-stack {
    position: fixed;
    top: 96px;
    right: 24px;
    z-index: 40;
    display: grid;
    gap: 12px;
    max-width: 360px;
}

.toast-card {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(20, 28, 42, 0.95);
    color: #fff;
    box-shadow: 0 20px 40px rgba(17, 24, 39, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: toastIn 0.25s ease both;
}

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


@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-8px) translateX(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
}

.invoice-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.5fr);
    gap: 20px;
}

.invoice-history {
    min-height: 70vh;
}

.panel > .table-wrap {
    margin-top: 12px;
}

.panel .section-title + .table-wrap {
    margin-top: 14px;
}

.invoice-editor {
    align-self: start;
    position: sticky;
    top: 110px;
}

.action-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.manager-booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.inset-panel {
    background: rgba(255, 255, 255, 0.56);
    box-shadow: none;
    border: 1px solid rgba(31, 41, 55, 0.08);
}

.inset-panel h3,
.invoice-print-card h2,
.invoice-note h3 {
    margin-top: 0;
}

.print-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 18px;
}

.invoice-print-card {
    max-width: 980px;
    margin: 0 auto 30px;
}

.invoice-print-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.invoice-total-box {
    min-width: 220px;
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(194, 109, 58, 0.12), rgba(15, 118, 110, 0.12));
    text-align: right;
}

.invoice-total-box span {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
}

.invoice-total-box strong {
    font-size: 1.8rem;
}

.print-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 20px;
}

.invoice-note {
    margin-top: 20px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.6);
}

.ticket-sheet {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.ticket-receipt {
    width: 80mm;
    max-width: 80mm;
    background: #fffefc;
    color: #111;
    border: 1px dashed rgba(31, 41, 55, 0.22);
    border-radius: 18px;
    padding: 14px 12px;
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
    page-break-inside: avoid;
    break-inside: avoid;
    font-size: 12px;
}

.ticket-head,
.ticket-foot {
    text-align: center;
    display: grid;
    gap: 4px;
}

.ticket-head strong {
    font-size: 14px;
    letter-spacing: 0.08em;
}

.ticket-block,
.ticket-items,
.ticket-note {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.ticket-divider {
    border-top: 1px dashed rgba(31, 41, 55, 0.28);
    margin: 10px 0;
}

.ticket-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.ticket-row span {
    color: #6b7280;
}

.ticket-row strong {
    text-align: right;
    font-size: 12px;
}

.ticket-row.multiline strong {
    max-width: 52%;
}

.ticket-total {
    font-size: 13px;
    padding-top: 6px;
    border-top: 1px dashed rgba(31, 41, 55, 0.28);
}

.ticket-note p {
    margin: 0;
    line-height: 1.4;
}

.stats-board {
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.9fr;
    gap: 24px;
    margin-bottom: 28px;
}

.stat-highlight {
    min-height: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
}

.mini-stat {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(31, 41, 55, 0.06);
}

.mini-stat span {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
    font-size: 0.84rem;
}

.mini-stat strong {
    font-size: 1.12rem;
}

.chart-card {
    min-height: 360px;
}

.stats-canvas,
.donut-canvas {
    width: 100%;
    height: 260px;
    display: block;
}

.donut-wrap {
    display: grid;
    grid-template-columns: minmax(180px, 220px) 1fr;
    gap: 18px;
    align-items: center;
}

.legend-list {
    display: grid;
    gap: 10px;
}

.legend-list div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    display: inline-block;
}

.legend-dot.paid {
    background: #15803d;
}

.legend-dot.partial {
    background: #d97706;
}

.legend-dot.unpaid {
    background: #dc2626;
}

.legend-dot.active {
    background: #2563eb;
}

@media print {
    .topbar,
    .page-head,
    .print-toolbar {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .panel,
    .ticket-receipt {
        box-shadow: none;
        border: none;
        background: #fff;
    }

    @page {
        size: 80mm auto;
        margin: 4mm;
    }

    .ticket-sheet {
        margin: 0;
    }

    .ticket-receipt {
        width: 72mm;
        max-width: 72mm;
        padding: 0;
        border-radius: 0;
    }
}

[data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Apparition cadencée du Hero de l'accueil */
.hostel-hero-head .eyebrow {
    animation: fadeSlideDown 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hostel-hero-head h1 {
    animation: fadeSlideDown 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

.hostel-hero-head p {
    animation: fadeSlideDown 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

.hostel-hero-frame {
    animation: heroZoomIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
    position: relative;
}

.hostel-hero-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
    animation: heroShine 8s infinite 2.5s ease-in-out;
}

/* Animations de floating et d'apparition */
@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroZoomIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(24px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes heroShine {
    0% {
        left: -100%;
    }
    20%, 100% {
        left: 200%;
    }
}

@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

/* Effets interactifs enrichis sur les cartes et boutons de la page d'accueil */
.hostel-room-card {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.hostel-room-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.hotel-service-box {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.hotel-service-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(194, 109, 58, 0.12);
}

.service-box-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hotel-service-box:hover .service-box-icon {
    transform: scale(1.12) rotate(4deg);
}

.hostel-booking-strip {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hostel-booking-strip:hover {
    box-shadow: 0 14px 38px rgba(194, 109, 58, 0.14);
}

.step-card {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.13);
}

.step-card:hover .step-number {
    transform: scale(1.14) rotate(-6deg);
}

.step-number {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) translateY(-2px);
}

.feature-icon {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes floatOrb {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, 18px, 0) scale(1.06);
    }
}

@keyframes fadeHero {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .hero,
    .grid-3,
    .two-col,
    .dashboard-grid,
    .kpi-grid,
    .form-grid,
    .filter-grid,
    .manager-booking-grid,
    .print-grid,
    .invoice-layout,
    .stats-board,
    .stats-grid,
    .donut-wrap {
        grid-template-columns: 1fr;
    }

    .page-head,
    .section-title,
    .info-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .topbar,
    .page-head,
    .section-title,
    .info-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .has-sidebar .app-shell {
        grid-template-columns: 1fr;
        width: min(calc(100% - 28px), 100%);
        max-width: 100%;
    }


    .sidebar {
        position: fixed;
        top: 16px;
        left: 16px;
        bottom: 16px;
        width: min(86vw, 320px);
        min-height: auto;
        z-index: 60;
        transform: translateX(-115%);
        transition: transform 0.24s ease;
    }

    body.sidebar-collapsed .app-shell {
        grid-template-columns: 1fr;
    }

    body.sidebar-mobile-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.36);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0.2s ease;
        z-index: 55;
    }

    body.sidebar-mobile-open .sidebar-backdrop {
        opacity: 1;
        visibility: visible;
    }

    .mobile-sidebar-toggle {
        display: inline-flex;
        position: fixed;
        top: 18px;
        left: 18px;
        z-index: 50;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
        border: 1px solid rgba(31, 41, 55, 0.08);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
        cursor: pointer;
    }

    .sidebar-toggle-wrap {
        display: none;
    }

    .mobile-sidebar-toggle span {
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: #111827;
    }

    body.sidebar-collapsed .brand-copy,
    body.sidebar-collapsed .sidebar-user,
    body.sidebar-collapsed .sidebar-link-text {
        display: block;
    }

    body.sidebar-collapsed .sidebar-link,
    body.sidebar-collapsed .sidebar-action-btn {
        justify-content: space-between;
        padding-left: 14px;
        padding-right: 14px;
    }

    .topbar {
        gap: 14px;
        padding: 16px 18px;
    }

    .brand {
        justify-content: center;
    }

    .topnav {
        justify-content: center;
    }

    .hero-panel {
        transform: none;
    }

    .app-shell {
        padding: 16px;
        padding-top: 72px;
    }

    .filter-actions {
        flex-direction: column;
    }

    .owner-range-filter {
        grid-template-columns: 1fr;
    }

    .invoice-editor {
        position: static;
    }

    .invoice-print-head {
        flex-direction: column;
    }

    .toast-stack {
        right: 16px;
        left: 16px;
        max-width: none;
    }

    table {
        min-width: 640px;
    }
}

@media (max-width: 640px) {
    .app-shell {
        padding: 12px;
    }


    .brand-logo {
        width: 54px;
        height: 54px;
    }

    .sidebar {
        padding: 16px 14px;
        border-radius: 14px;
        top: 12px;
        left: 12px;
        bottom: 12px;
        width: min(88vw, 300px);
    }

    .mobile-sidebar-toggle {
        top: 12px;
        left: 12px;
    }

    .panel,
    .feature-card,
    .kpi-card,
    .hero-panel {
        padding: 18px;
    }

    .topnav {
        gap: 8px;
        justify-content: stretch;
    }

    .topnav a,
    .notification-toggle,
    .filter-actions .ghost-btn,
    .filter-actions .primary-btn,
    .auth-wrap .primary-btn,
    .auth-wrap .ghost-btn {
        width: 100%;
        justify-content: center;
    }

    .topnav a {
        text-align: center;
    }

    .page {
        padding-top: 20px;
    }

    table {
        min-width: 560px;
    }

    th,
    td {
        padding: 14px 12px;
    }
}

/* ── Custom scrollbar ─────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(194,109,58,0.22); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(194,109,58,0.38); }

/* ── Feature icons (homepage) ─────────────── */
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.feature-icon svg {
    width: 28px;
    height: 28px;
}
.feature-icon--client {
    background: linear-gradient(135deg, rgba(15,118,110,0.14), rgba(15,118,110,0.06));
    color: #0f766e;
}
.feature-icon--manager {
    background: linear-gradient(135deg, rgba(194,109,58,0.16), rgba(194,109,58,0.06));
    color: #c26d3a;
}
.feature-icon--owner {
    background: linear-gradient(135deg, rgba(37,99,235,0.14), rgba(37,99,235,0.06));
    color: #2563eb;
}
.feature-desc {
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.65;
    margin: 8px 0 0;
}
.feature-card h3 {
    margin: 0 0 4px;
    font-size: 1.12rem;
}

/* ── Step cards (homepage) ────────────────── */
.steps-section {
    margin-top: 48px;
    text-align: center;
}
.steps-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin: 0 0 24px;
}
.step-card {
    padding: 28px 24px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.65);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 55px rgba(28,39,54,0.16);
}
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), #df9f52);
    color: white;
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 14px;
    box-shadow: 0 8px 20px rgba(194,109,58,0.22);
}
.step-card strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1.05rem;
}

/* ── Auth page switch link ────────────────── */
.auth-switch {
    text-align: center;
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.92rem;
}
.auth-switch a {
    color: var(--primary);
    font-weight: 700;
    transition: color 0.2s ease;
}
.auth-switch a:hover {
    color: var(--primary-dark);
}

/* ── Enhanced sidebar active indicator ────── */
.sidebar-link.active {
    background: linear-gradient(135deg, rgba(194,109,58,0.1), rgba(15,118,110,0.06));
    color: var(--primary-dark);
    border-color: rgba(194,109,58,0.15);
}
.sidebar-link.active .sidebar-icon {
    color: var(--primary);
}

/* ── Enhanced KPI cards ───────────────────── */
.kpi-card {
    position: relative;
    overflow: hidden;
}
.kpi-card::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(194,109,58,0.08), rgba(15,118,110,0.06));
    pointer-events: none;
}

/* ── Enhanced empty states ────────────────── */
tbody td[colspan] {
    text-align: center;
    padding: 32px 14px;
    color: var(--muted);
    font-style: italic;
}

/* ── Smooth page-level animation ──────────── */
.page {
    animation: pageIn 0.4s ease both;
}
@keyframes pageIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Better alert animations ──────────────── */
.alert {
    animation: alertSlide 0.35s ease both;
}
@keyframes alertSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.alert.success {
    border-left: 4px solid #16a34a;
}
.alert.danger {
    border-left: 4px solid #dc2626;
}

/* ── Enhanced table hover ─────────────────── */
tbody tr {
    position: relative;
}
tbody tr:hover {
    background: rgba(194,109,58,0.04);
}
tbody tr:hover td:first-child {
    color: var(--primary-dark);
}

/* ── Badge pulse for active states ────────── */
.badge.success {
    position: relative;
}

/* ── Demo note improvements ───────────────── */
.demo-note {
    margin-top: 18px;
    background: linear-gradient(135deg, rgba(15,118,110,0.06), rgba(194,109,58,0.04));
    border-color: rgba(15,118,110,0.1);
}
.demo-note strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.88rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.demo-note span {
    display: block;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ── Focus ring improvements ──────────────── */
.primary-btn:focus-visible,
.ghost-btn:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
}

/* ── Notification center improvements ─────── */
.notification-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.notification-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* ── Hero lead paragraph ──────────────────── */
.hero .lead {
    margin-top: 16px;
    margin-bottom: 0;
}

/* ───────────────────────────────────────────
   ACCUEIL HÔTELIER - HÔTEL SANS PROBLÈME
   (Inspiré fidèlement de la maquette de référence)
   ─────────────────────────────────────────── */

/* ── Topbar public propre & non chevauchante ─ */
.topbar-public {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(194, 109, 58, 0.16);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 0 0 32px 0;
}

.topbar-public-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.topbar-public .brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.topbar-public .brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.topbar-public .brand strong {
    font-size: 1rem;
    font-weight: 800;
    display: block;
    line-height: 1.2;
}

.topbar-public .brand small {
    font-size: 0.76rem;
    color: var(--muted);
    display: block;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.public-nav .nav-item {
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.public-nav .nav-item:hover {
    color: var(--primary);
    background: rgba(194, 109, 58, 0.08);
}

.topnav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topnav-actions .primary-btn {
    padding: 8px 18px;
    font-size: 0.86rem;
}

.topnav-actions .ghost-btn {
    padding: 8px 14px;
    font-size: 0.86rem;
}

/* ── Hero Showcase Principal ──────────────── */
.hostel-hero-container {
    text-align: center;
    max-width: 980px;
    margin: 0 auto 36px;
}

.hostel-hero-head {
    margin-bottom: 24px;
}

.hostel-hero-head .eyebrow {
    color: var(--primary);
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    margin-bottom: 8px;
}

.hostel-hero-head h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    color: #111827;
    margin: 0 0 10px;
    font-weight: 700;
    line-height: 1.15;
}

.hostel-hero-head p {
    font-size: 1.05rem;
    color: #4b5563;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grand Cadre Photo Hero (comme sur la photo de référence) */
.hostel-hero-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 480px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
    background: #111827;
}

.hostel-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.45s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1);
}

.hostel-hero-img.fade-out {
    opacity: 0.15;
    transform: scale(1.04);
}

/* Points de navigation du slider (directement sous la photo) */
.hostel-hero-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.hostel-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.hostel-dot.is-active {
    background: var(--primary);
    transform: scale(1.25);
}

/* ── Rangée 4 colonnes (Welcome + 3 Chambres comme la maquette) ── */
.hostel-showcase-row {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
    margin-bottom: 56px;
    align-items: stretch;
}

.hostel-col {
    display: flex;
    flex-direction: column;
}

/* Colonne 1 : Message de bienvenue */
.hostel-welcome-intro h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.7rem;
    color: #111827;
    margin: 0 0 16px;
    line-height: 1.25;
}

.hostel-welcome-intro p {
    font-size: 0.88rem;
    color: #4b5563;
    line-height: 1.65;
    margin: 0 0 14px;
}

.hostel-intro-actions {
    margin-top: auto;
    padding-top: 10px;
}

.hostel-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
}

.hostel-link-btn:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Colonnes 2, 3, 4 : Cartes Chambres */
.hostel-room-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hostel-room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
    border-color: rgba(194, 109, 58, 0.3);
}

.hostel-card-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #e2e8f0;
}

.hostel-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.hostel-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 2px;
    flex-wrap: wrap;
}

.hostel-room-name {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.hostel-room-rate {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

.hostel-room-subtitle {
    font-size: 0.78rem;
    font-style: italic;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}

.hostel-room-desc {
    font-size: 0.82rem;
    color: #4b5563;
    line-height: 1.5;
    margin: 0 0 12px;
    flex: 1;
}

/* Ligne des 3 icônes (comme dans la maquette) */
.hostel-room-icons {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 14px;
    color: #64748b;
}

.hostel-room-icons span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.hostel-room-icons svg {
    width: 20px;
    height: 20px;
}

.hostel-card-action {
    display: flex;
    justify-content: flex-start;
}

.hostel-btn-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%);
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.hostel-btn-more:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(194, 109, 58, 0.3);
}

/* ── Barre de réservation propre (flux naturel, pas de négatif) ── */
.hostel-booking-strip {
    background: #ffffff;
    border: 1px solid rgba(194, 109, 58, 0.22);
    border-radius: 16px;
    padding: 18px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    margin: 0 auto 56px;
    max-width: 960px;
}

.hostel-booking-form {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1.2fr auto;
    gap: 14px;
    align-items: flex-end;
}

.hostel-form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.hostel-form-group select,
.hostel-form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 8px;
    font-size: 0.9rem;
    background: #ffffff;
    margin-bottom: 0;
}

.hostel-form-btn {
    height: 42px;
    padding: 0 20px;
    font-size: 0.88rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ── Services & Commodités ────────────────── */
.services-section {
    padding: 30px 0 50px;
}

.section-centered-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 36px;
}

.section-centered-head h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #1a2230;
    margin: 6px 0 10px;
}

.services-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.hotel-service-box {
    background: #ffffff;
    border: 1px solid rgba(31, 41, 55, 0.08);
    border-radius: 16px;
    padding: 22px 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.hotel-service-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
    border-color: rgba(194, 109, 58, 0.25);
}

.service-box-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(194, 109, 58, 0.14), rgba(223, 159, 82, 0.18));
    color: var(--primary);
    display: grid;
    place-items: center;
    margin-bottom: 14px;
}

.service-box-icon svg {
    width: 22px;
    height: 22px;
}

.hotel-service-box h3 {
    font-size: 1.05rem;
    color: #111827;
    margin: 0 0 6px;
    font-weight: 700;
}

.hotel-service-box p {
    font-size: 0.86rem;
    color: #4b5563;
    line-height: 1.55;
    margin: 0;
}

/* ── Section Étapes & Espaces ──────────────── */
.steps-section {
    padding: 30px 0 50px;
}

.roles-section {
    padding: 30px 0 50px;
}

/* ── Pied de page élégant ─────────────────── */
.hotel-public-footer {
    background: #111827;
    color: #e5e7eb;
    border-radius: 20px;
    padding: 44px 36px 22px;
    margin-top: 40px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #ffffff;
    margin: 0 0 8px;
}

.footer-brand p {
    font-size: 0.86rem;
    color: #9ca3af;
    line-height: 1.6;
    max-width: 320px;
}

.footer-col h5 {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #9ca3af;
    font-size: 0.86rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    font-size: 0.82rem;
    color: #6b7280;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── Media Queries Responsive Robustes & Complètes ────── */
@media (max-width: 1080px) {
    .hostel-showcase-row {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
    }
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .manager-booking-grid {
        grid-template-columns: 1fr;
    }
    .stats-board,
    .dashboard-grid,
    .two-col,
    .invoice-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Topbar & navigation publique */
    .public-nav {
        display: none;
    }
    .topbar-public {
        margin: 0 0 20px 0;
        position: sticky;
        top: 0;
        width: 100%;
    }
    .topbar-public-inner {
        padding: 10px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }
    .topnav-actions {
        width: 100%;
        justify-content: flex-end;
    }
    .topnav-actions .primary-btn,
    .topnav-actions .ghost-btn {
        flex: 1;
        text-align: center;
        justify-content: center;
    }

    /* Hero section publique */
    .hostel-hero-container {
        margin-bottom: 24px;
    }
    .hostel-hero-head h1 {
        font-size: 1.75rem;
    }
    .hostel-hero-head p {
        font-size: 0.95rem;
    }
    .hostel-hero-frame {
        aspect-ratio: 16 / 10;
        max-height: 280px;
    }

    /* Barre de réservation homepage */
    .hostel-booking-strip {
        padding: 16px;
        margin-bottom: 36px;
    }
    .hostel-booking-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .hostel-form-btn {
        width: 100%;
    }

    /* Grille chambres & services */
    .hostel-showcase-row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 24px;
        margin-bottom: 36px;
    }
    .services-cards-grid {
        grid-template-columns: 1fr;
    }
    .section-centered-head h2 {
        font-size: 1.6rem;
    }

    /* Footer */
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .hotel-public-footer {
        padding: 28px 18px 18px;
        margin-top: 24px;
        border-radius: 16px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Formulaires et grilles d'administration */
    .form-grid {
        grid-template-columns: 1fr !important;
    }
    .filter-grid {
        grid-template-columns: 1fr !important;
    }
    .filter-actions {
        flex-direction: column;
    }
    .filter-actions button,
    .filter-actions a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* En-tête de page */
    .page-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .profile-chip {
        align-self: flex-start;
    }

    /* Tableaux sur mobile avec défilement tactile fluide */
    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-left: -4px;
        margin-right: -4px;
        border-radius: 12px;
    }
    table {
        min-width: 580px;
    }

    /* Boutons d'actions groupées dans les tableaux */
    .action-stack {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .action-stack .ghost-btn,
    .action-stack .primary-btn {
        padding: 6px 10px;
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    /* Écrans très étroits (< 480px, ex: iPhone SE, Galaxy) */
    .app-shell {
        padding: 10px;
        padding-top: 64px;
    }
    body.has-topbar {
        padding-top: 0;
    }
    .topbar-public {
        margin: 0 0 16px 0;
        width: 100%;
    }
    .brand-logo {
        width: 40px;
        height: 40px;
    }
    .brand strong {
        font-size: 0.92rem;
    }
    .brand small {
        font-size: 0.72rem;
    }
    .panel {
        padding: 14px;
        border-radius: 14px;
    }
    .kpi-card strong {
        font-size: 1.4rem;
    }
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    input,
    select,
    textarea {
        padding: 11px 13px;
        font-size: 0.9rem;
    }
    .primary-btn,
    .ghost-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    .hostel-hero-head h1 {
        font-size: 1.5rem;
    }
    .hostel-hero-frame {
        max-height: 220px;
        border-radius: 12px;
    }
}


