html,
body {
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    background: #f6f7fb;
    margin: 0;
    padding: 0;
    color: #222;
    overflow-x: hidden;
    overflow-y: auto;
}
.app-shell {
    display: flex;
    min-height: 100vh;
    background: #f6f7fb;
    padding: 10px 0 10px 0;
    box-sizing: border-box;
}

.sidebar-nav {
    width: 82px;
    background: linear-gradient(180deg, #2c3559 0%, #a6adc6 58%, #646f93 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 8px;
    box-sizing: border-box;
    position: sticky;
    top: 10px;
    height: calc(100vh - 20px);
    flex: 0 0 82px;
    margin-left: 10px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 26px rgba(23, 31, 56, 0.28);
    overflow: hidden;
}

.sidebar-top,
.sidebar-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 0 14px 0;
}

.brand img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 10px;
    padding: 4px;
}

.brand span {
    color: #9fb4ff;
}

.sidebar-menu {
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.sidebar-item {
    width: 100%;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
    transition: background 0.15s ease, transform 0.15s ease;
    box-sizing: border-box;
    padding: 6px 4px;
    overflow: hidden;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.sidebar-item-active {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.sidebar-settings {
    background: transparent;
    color: #fff;
}

.sidebar-settings:hover {
    background: transparent;
}

.sidebar-icon {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-icon svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

.sidebar-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
}

.sidebar-item-home .sidebar-icon img,
.sidebar-item-settings .sidebar-icon img {
    width: 60px;
    height: 60px;
}

.sidebar-label {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
}

.main-content {
    flex: 1 1 auto;
    min-width: 0;
}
.container {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 10px 12px 12px 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
    flex: 0 0 auto;
}

.title {
    font-size: 22px;
    font-weight: bold;
}

.subtitle {
    color: #666;
    margin-top: 4px;
    font-size: 13px;
}

.admin-link {
    color: #222;
    text-decoration: none;
    font-size: 13px;
}

.admin-link:hover {
    text-decoration: underline;
}

.topbar-clock {
    font-size: 22px;
    font-weight: bold;
    color: #222;
    font-variant-numeric: tabular-nums;
}

.panel,
.sidebar-panel>div {
    background: white;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

.btn,
.btn-link {
    display: inline-block;
    padding: 4px 4px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #f4b400;
    color: #222;
    text-decoration: none;
    cursor: pointer;
    font-size: 13px;
}

.btn:hover,
.btn-link:hover {
    background: #f0f2f7;
}

.btn-small {
    padding: 6px 10px;
    font-size: 12px;
}

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

input[type="date"],
select {
    border-radius: 10px;
    padding: 4px 4px;
    border: 1px solid #ddd;
    font-size: 13px;
    background:#f4b400;
}

.dashboard-main-grid {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 6px;
    align-items: stretch;
    height: calc(100vh - 90px);
}

.compact-layout {
    grid-template-columns: 290px minmax(0, 1fr);
}

.sidebar-panel {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
    overflow: hidden;
}

.calendar-card {
    flex: 0 0 auto;
}
.calendar-header {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: capitalize;
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-weekdays {
    margin-bottom: 8px;
    color: #666;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.calendar-day {
    height: 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #222;
    font-size: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.calendar-day:hover {
    background: #f3f4f6;
}

.calendar-day.out-month {
    opacity: 0.35;
}

.calendar-day.has-reservations {
    background: #dcfce7;
    border-color: #16a34a;
}

.calendar-day.today {
    border: 2px solid #2563eb;
    font-weight: 700;
}

.calendar-day.selected {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.reservation-list-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.reservation-title {
    font-size: 16px;
    font-weight: 700;
}

.reservation-subtitle {
    color: #666;
    font-size: 12px;
    margin-top: 4px;
}

.reservation-list-card {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.reservation-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
}

.reservation-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
}

.reservation-item[data-source="walkin"] {
    background: #fffbeb;
    border-color: #fef3c7;
}

.reservation-time {
    font-weight: 700;
    color: #111827;
    font-size: 11px;
}

.reservation-customer {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 3px;
}

.reservation-meta {
    font-size: 11px;
    color: #666;
}

.badge {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 999px;
    background: #eef2ff;
    color: #334;
    font-size: 10px;
}

.floorplan-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.section-title {
    margin: 0 0 10px 0;
}

.section-title-no-margin {
    margin: 0;
}

.floorplan-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.floorplan-toolbar-left,
.floorplan-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.floorplan-toolbar-right {
    margin-left: auto;
    flex-wrap: wrap;
}

.compact-inline-form select {
    min-width: 150px;
}

.floorplan-view-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    background: #f3f4f6;
}

.add-table-toolbar {
    margin-bottom: 8px;
}

.floorplan-legend {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
    font-size: 11px;
    color: #555;
}
.floorplan-legend-bottom {
    margin-top: 12px;
    padding-left: 4px;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 2px solid #ccc;
}

.legend-occupied-until-end {
    background: #ddbcc4;
    border-color: #9b5f6e;
    border-style: solid;
}

.legend-occupied-now-slot-later {
    background: #d2cec2;
    border-color: #8d856f;
    border-style: dashed;
}

.legend-free-now-occupied-until-end {
    background: #d8dcc0;
    border-color: #87935f;
    border-style: dotted;
}

.legend-free-now-more-slots {
    background: #bfd5cc;
    border-color: #6c8f83;
    border-style: double;
}

.legend-free-until-end-day {
    background: #7cff8a;
    border-color: #1f9f3a;
    border-style: solid;
}
.floorplan-shell {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
}
.floorplan-wrapper {
    width: 100%;
    height: 100%;
    overflow: auto;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 10px;
    position: relative;
    box-sizing: border-box;
}
.floorplan-floating-controls {
    position: absolute;
    top: 15px;  
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 6px;
}

.floorplan-floating-controls .view-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.floorplan-floating-controls .view-btn:hover {
    background: #f3f4f6;
}
.floorplan-zoom-stage {
    transform-origin: top left;
    width: max-content;
    height: max-content;
}

.floorplan-canvas {
    position: relative;
    width: var(--canvas-width, 1200px);
    height: var(--canvas-height, 800px);
    min-width: 900px;
    min-height: 600px;
    background:
        linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    border-radius: 12px;
}

.floorplan-canvas.drag-active {
    outline: 2px dashed #94a3b8;
    outline-offset: 4px;
}

.fake-fullscreen {
    position: fixed !important;
    inset: 0;
    z-index: 9999;
    background: #f8fafc;
    padding: 10px;
    border-radius: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    box-sizing: border-box;
}

.fake-fullscreen .floorplan-wrapper {
    width: 100%;
    height: 100%;
}

.fake-fullscreen .floorplan-zoom-stage {
    margin: 0;
}

.fake-fullscreen .floorplan-canvas {
    min-width: 1200px;
    min-height: 800px;
}

.exit-fullscreen-btn {
    background: #111;
    color: #fff;
}
.exit-fullscreen-btn:hover {
    background: #333;
}

.table-box {
    position: absolute;
    left: var(--table-left, 0);
    top: var(--table-top, 0);
    width: var(--table-width, 80px);
    height: var(--table-height, 80px);
    transform: rotate(var(--table-rotation, 0deg));
    border: 2px solid #1f2937;
    border-radius: 22px;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    overflow: visible;
    cursor: grab;
    user-select: none;
    touch-action: none;
    transition: box-shadow 0.15s ease, outline 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.table-box.round {
    border-radius: 999px;
}

.table-box.dragging {
    cursor: grabbing !important;
    z-index: 50;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    transition: none !important;
}

.table-box.selected {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
    z-index: 20;
}

.table-box.reservation-filter-active {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.table-status-occupied_until_end {
    background: #ddbcc4;
    border-color: #9b5f6e;
    border-style: solid;
}

.table-status-occupied_now_slot_later {
    background-color: #d2cec2;
    background-image: repeating-linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.24) 0 8px,
        rgba(255, 255, 255, 0) 8px 16px
    );
    border-color: #8d856f;
    border-style: dashed;
}

.table-status-free_now_occupied_until_end {
    background-color: #d8dcc0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px);
    background-size: 8px 8px;
    border-color: #87935f;
    border-style: dotted;
}

.table-status-free_now_more_slots {
    background-color: #bfd5cc;
    background-image: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.22) 0 10px,
        rgba(255, 255, 255, 0) 10px 20px
    );
    border-color: #6c8f83;
    border-style: double;
}

.table-status-free_until_end_day {
    background: #7cff8a;
    border-color: #1f9f3a;
    border-style: solid;
}

.table-content {
    position: relative;
    z-index: 1;
    text-align: center;
    pointer-events: none;
    padding: 10px;
}

.table-name {
    font-weight: bold;
    font-size: 14px;
}

.table-seats {
    color: #666;
    font-size: 12px;
    margin-top: 4px;
}

.table-control-btn {
    position: absolute;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: transform 0.12s ease, background 0.12s ease;
    padding: 0;
}

.table-control-btn:hover {
    transform: scale(1.05);
}

.table-box.selected .table-control-btn {
    display: inline-flex;
}

.table-shape-toggle {
    top: 6px;
    left: 6px;
    background: #ffffff;
    border: 2px solid #1f2937;
}
.table-rotate-btn {
    top: 6px;
    right: 6px;
    background: #ffffff;
    color: #1f2937;
    border: 2px solid #1f2937;
}

.table-rotate-btn svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}
.table-delete-btn {
    left: 6px;
    bottom: 6px;
    background: #ffffff;
    color: #2f7d32;
}

.table-delete-btn svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

.table-seats-toggle {
    right: 6px;
    bottom: 6px;
    background: #2f8c3f;
    color: #ffffff;
    border: 2px solid #1f2937;
}

.table-seats-toggle svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.shape-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 2px solid #1f2937;
    background: transparent;
}

.shape-icon.shape-circle {
    border-radius: 999px;
}

.shape-icon.shape-square {
    border-radius: 3px;
}

.table-bottom-controls {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 6px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 6;
    pointer-events: none;
}

.table-box.seat-panel-open .table-bottom-controls {
    display: flex;
}

.table-seats-pill {
    min-width: 44px;
    height: 24px;
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.62);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    font-weight: 700;
    font-size: 12px;
}

.table-seat-panel {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 6px;
    height: 24px;
    display: none;
    z-index: 9;
}

.table-box.seat-panel-open .table-seat-panel {
    display: block;
}

.table-seat-panel select {
    width: 100%;
    height: 24px;
    border-radius: 999px;
    border: none;
    background: rgba(31, 41, 55, 0.78);
    color: #ffffff;
    padding: 0 8px;
    font-size: 11px;
    outline: none;
    appearance: none;
    cursor: pointer;
}

.table-box.seat-panel-open .table-seats-pill {
    opacity: 0;
}

.muted {
    color: #777;
    font-size: 14px;
}

.muted-space-bottom {
    margin-bottom: 10px;
}

.empty {
    color: #777;
    padding: 20px 0;
}

.hidden {
    display: none !important;
}

.floorplan-create-controls {
    position: absolute;
    right: 30px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.empty-table-callout {
    position: absolute;
    right: 0;
    bottom: 52px;
    width: max-content;
    max-width: min(280px, calc(100vw - 72px));
    border: 1px solid rgba(180, 130, 0, 0.35);
    border-radius: 12px;
    background: #fff7dd;
    color: #3f2d00;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
    animation: empty-table-callout-pulse 1.8s ease-in-out infinite;
}

.empty-table-callout::after {
    content: "";
    position: absolute;
    right: 15px;
    bottom: -7px;
    width: 12px;
    height: 12px;
    background: #fff7dd;
    border-right: 1px solid rgba(180, 130, 0, 0.35);
    border-bottom: 1px solid rgba(180, 130, 0, 0.35);
    transform: rotate(45deg);
}

.empty-table-callout:hover {
    background: #ffefb3;
}

@keyframes empty-table-callout-pulse {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.create-table-group {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.create-table-btn {
    width: 38px;
    height: 38px;
}

.create-table-btn.active {
    background: #eef2ff;
    border-color: #2563eb;
}

.create-seat-panel {
    position: absolute;
    right: 0;
    bottom: 46px;
    min-width: 118px;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.create-seat-option {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    color: #222;
}

.create-seat-option:hover {
    background: #f3f4f6;
}

.create-seat-panel select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 13px;
    background: white;
}

.settings-page-shell {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    top: 10px;
    z-index: 30;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    padding: 14px 16px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.settings-notices {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.settings-success {
    margin-bottom: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
    font-size: 13px;
    font-weight: 600;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

.settings-zone-card {
    width: min(100%, 760px);
}

.settings-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);;
    padding: 14px;
    box-sizing: border-box;
    max-width: 100%;
}

.settings-card-restaurant {
    width: min(100%, 760px);
}

.settings-card-reservation {
    width: min(100%, 760px);
}

.settings-card-opening {
    width: min(100%, 760px);
}

.settings-success,
.settings-error {
    width: fit-content;
    max-width: 100%;
}

.settings-card-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.home-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.home-title {
    margin: 0;
}
.home-auth-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-page-layout {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.home-intro-band {
    border: 1px solid #e6e8ef;
    border-radius: 24px;
    background: linear-gradient(130deg, #f8fbff 0%, #ffffff 52%, #f7f8fc 100%);
    padding: 22px;
}

.home-intro {
    margin: 0;
    color: #374151;
    font-size: 16px;
    line-height: 1.65;
    max-width: 1080px;
}

.home-spotlight-card {
    display: grid;
    gap: 22px;
    align-items: stretch;
    padding: 22px;
}

.home-spotlight-media,
.home-spotlight-content {
    min-width: 0;
}

.home-spotlight-image {
    width: 90%;
    height: 90%;
    display: block;
}

.home-photo-note {
    margin: 10px 0 0;
    font-size: 12px;
    color: #1f2937;
    background: #eef2f7;
    border-radius: 8px;
    padding: 6px 8px;
    word-break: break-word;
}

.home-spotlight-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 16px 8px 16px 2px;
}

.home-inline-video-block h3 {
    margin: 0 0 6px;
    font-size: 17px;
    color: #111827;
}

.home-inline-video-block p {
    margin: 0 0 10px;
    color: #4b5563;
    line-height: 1.45;
}

.home-spotlight-actions {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    background: #101114;
    border-radius: 999px;
    padding: 10px;
}

.home-spotlight-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    color: #ff9b57;
    text-decoration: none;
    font-weight: 700;
    border-radius: 999px;
}

.home-spotlight-cta:hover {
    background: rgba(255, 155, 87, 0.12);
}

.home-spotlight-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: #f3f4f6;
    color: #111827;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
}

.home-spotlight-card-reverse .home-spotlight-content {
    order: 2;
}

.home-spotlight-card-reverse .home-spotlight-media {
    order: 1;
}

.home-capabilities-section {
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    background: #f8fafc;
    padding: 16px;
}

.home-capabilities-heading {
    margin-bottom: 10px;
}

.home-capabilities-heading h2 {
    margin: 0;
    color: #111827;
    font-size: 20px;
}

.home-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.home-capabilities-spotlight {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    padding: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 12px;
    align-items: center;
}

.home-capabilities-spotlight-copy h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #111827;
}

.home-capabilities-spotlight-copy p {
    margin: 0 0 8px;
    color: #4b5563;
    line-height: 1.45;
}

.home-capabilities-image {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

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

.home-overview-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    padding: 12px;
}

.home-overview-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.home-overview-head h2 {
    margin: 0;
    font-size: 17px;
    color: #111827;
}

.home-overview-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.home-overview-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.5;
}

.home-overview-list {
    margin: 0;
    padding-left: 20px;
    color: #374151;
    line-height: 1.45;
}

.home-overview-list li + li {
    margin-top: 4px;
}

.home-video-player {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #0f172a;
    min-height: 210px;
}

.home-video-path {
    margin-top: 10px;
    font-size: 12px;
    color: #1f2937;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 6px 8px;
    word-break: break-word;
}

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

.auth-panel {
    max-width: 420px;
}

.auth-form {
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-label {
    font-size: 13px;
    font-weight: 600;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    border-radius: 10px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    font-size: 14px;
    background: #fff;
    box-sizing: border-box;
}

.auth-error {
    color: #9b1c1c;
    background: #fdecec;
    border: 1px solid #f5c2c2;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
}

.auth-footer {
    margin-top: 12px;
    font-size: 13px;
    color: #555;
}

.auth-footer a {
    color: #222;
}

.pricing-section {
    margin-top: 18px;
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(145deg, #fff7df 0%, #fff 38%, #f5f9ff 100%);
    border: 1px solid #f1e7c2;
}

.pricing-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.pricing-title {
    margin: 0;
    font-size: 22px;
    letter-spacing: 0.2px;
}

.pricing-subtitle {
    margin: 0;
    color: #5c6275;
    font-size: 13px;
}

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

.pricing-card {
    border: 1px solid #e7e9f0;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 5px 18px rgba(17, 24, 39, 0.06);
}

.pricing-card-selected {
    border-color: #d5a404;
    box-shadow: 0 8px 22px rgba(212, 164, 4, 0.24);
}

.pricing-card-current {
    border-color: #10b981;
}

.pricing-card-top h3 {
    margin: 0;
    font-size: 17px;
}

.pricing-price {
    margin-top: 4px;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.pricing-price span {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    margin-left: 4px;
}

.pricing-comparison-badge {
    margin-top: 7px;
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #0f5132;
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 999px;
    padding: 4px 9px;
}

.pricing-features {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #374151;
    font-size: 13px;
}

.pricing-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-state {
    font-size: 12px;
    color: #5b6277;
}

.plan-state-current {
    color: #047857;
    font-weight: 700;
}

.btn-pricing-primary {
    text-align: center;
    font-weight: 700;
}

.subscription-selection-card {
    margin-bottom: 14px;
}

.subscription-selection-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.subscription-center-card {
    margin-bottom: 14px;
    background: linear-gradient(130deg, #fff8e9 0%, #ffffff 50%, #eef6ff 100%);
}

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

.subscription-center-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subscription-kv {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.subscription-kv-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.subscription-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.subscription-action-btn {
    width: 100%;
    padding: 9px 12px;
}

.subscription-center-foot {
    margin-top: 10px;
}

@media (max-width: 1100px) {
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .subscription-center-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.settings-error {
    margin-bottom: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #fdecec;
    border: 1px solid #f5c2c2;
    color: #9b1c1c;
    font-size: 13px;
    font-weight: 600;
}

.settings-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.settings-label {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.settings-field input[type="number"] {
    width: 130px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    color: #111827;
    box-sizing: border-box;
}

.settings-field input[type="text"],
.settings-field input[type="email"] {
    width: 100%;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    color: #111827;
    box-sizing: border-box;
}

.settings-phone-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.settings-phone-row select,
.settings-phone-row input {
    height: 38px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0 10px;
    font-size: 13px;
    background: #fff;
    color: #111827;
    box-sizing: border-box;
    width: 100%;
}

.settings-phone-warning {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.2;
    color: #dc2626;
}

.settings-phone-warning.is-ok {
    color: #15803d;
}

.settings-inline-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.email-reminder-toast {
    position: fixed;
    right: 14px;
    bottom: 16px;
    z-index: 1200;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 320px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #f4b400;
    background: #fff7dd;
    color: #6a4b00;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateX(calc(100% + 24px));
    transition: transform 0.22s ease;
}

.email-reminder-toast.is-visible {
    transform: translateX(0);
}

.email-reminder-text {
    font-size: 13px;
    line-height: 1.3;
}

.email-reminder-close {
    border: 0;
    background: transparent;
    color: #6a4b00;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.subscription-status-badge {
    margin: 10px 12px 0;
    padding: 8px 10px;
    border-radius: 10px;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    font-size: 12px;
    border: 1px solid #d1d5db;
    background: #f8fafc;
    color: #1f2937;
}

.subscription-access-chip {
    padding: 2px 8px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    font-weight: 600;
}

.subscription-status-active,
.subscription-status-trialing {
    border-color: #86efac;
    background: #ecfdf3;
    color: #166534;
}

.subscription-status-past_due,
.subscription-status-unpaid,
.subscription-status-canceled,
.subscription-status-suspended {
    border-color: #f5c2c2;
    background: #fef2f2;
    color: #9b1c1c;
}

.opening-hours-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.opening-row {
    display: grid;
    grid-template-columns: 110px 90px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 1px 2px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-sizing: border-box;
}

.opening-row-closed {
    opacity: 0.7;
}

.opening-day {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    padding: 10px;
}

.opening-closed {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #374151;
    white-space: nowrap;
}

.opening-times {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.opening-times select {
    width: 68px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font-size: 13px;
    box-sizing: border-box;
}

.opening-times select:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.time-colon {
    font-weight: 700;
    color: #6b7280;
    min-width: 6px;
    text-align: center;
}

.opening-separator {
    color: #6b7280;
    font-weight: 700;
    margin: 0 20px;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
}
@media (max-width: 1200px) {
    .dashboard-main-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        height: auto;
    }

    /* Sidebar: calendar + reservation list side by side, full width */
    .sidebar-panel {
        position: static;
        overflow: visible;
        flex-direction: row;
        align-items: stretch;
        width: 100%;
    }

    .calendar-card {
        flex: 0 0 auto;
        width: 240px;
        min-width: 200px;
    }

    .reservation-list-card {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        max-height: 320px;
    }

    .reservation-items {
        overflow-y: auto;
        max-height: 100%;
    }

    .floorplan-panel {
        overflow: visible;
    }

    .floorplan-shell {
        min-height: 420px;
    }
}

@media (max-width: 900px) {
    .sidebar-nav {
        width: 70px;
        flex-basis: 70px;
        margin-left: 8px;
        border-radius: 20px;
        padding: 10px 6px;
    }

    .brand img {
        width: 64px;
        height: 64px;
    }

    .sidebar-menu {
        padding-top: 52px;
        gap: 8px;
    }

    .sidebar-icon img,
    .sidebar-item-home .sidebar-icon img,
    .sidebar-item-settings .sidebar-icon img {
        width: 44px;
        height: 44px;
    }

    .brand {
        font-size: 16px;
    }

    .sidebar-label {
        font-size: 10px;
    }
}

@media (max-height: 820px) and (max-width: 980px) {
    .sidebar-nav {
        padding: 10px 6px;
    }

    .brand {
        margin: 4px 0 10px 0;
    }

    .brand img {
        width: 58px;
        height: 58px;
    }

    .sidebar-menu {
        padding-top: 42px;
        gap: 6px;
    }

    .sidebar-item {
        padding: 4px 2px;
        gap: 3px;
    }

    .sidebar-icon img,
    .sidebar-item-home .sidebar-icon img,
    .sidebar-item-settings .sidebar-icon img {
        width: 40px;
        height: 40px;
    }

    .sidebar-label {
        font-size: 9px;
    }
}
@media (max-width: 980px) {
    .settings-header {
        top: 8px;
    }

    .home-spotlight-card {
        grid-template-columns: 1fr;
        border-radius: 36px;
        padding: 16px;
    }

    .home-spotlight-image {
        border-radius: 24px;
        min-height: 230px;
        max-height: 320px;
    }

    .home-spotlight-card-reverse .home-spotlight-content,
    .home-spotlight-card-reverse .home-spotlight-media {
        order: initial;
    }

    .home-capabilities-spotlight {
        grid-template-columns: 1fr;
    }

    .home-capabilities-grid,
    .home-overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .opening-row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .opening-times {
        flex-wrap: wrap;
    }

    .settings-phone-row {
        grid-template-columns: 1fr;
    }
}
.reservation-main-with-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.slot-item {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.slot-title {
    color: #166534;
}

.slot-add-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #16a34a;
    background: #16a34a;
    color: #fff;
    border-radius: 999px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.slot-add-btn:hover {
    background: #15803d;
    border-color: #15803d;
}


.reservation-modal-field label {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.reservation-modal-field input {
    height: 40px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 14px;
}

.hidden {
    display: none !important;
}
.floorplan-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.floorplan-toolbar.compact-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.selected-table-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef2ff;
    color: #312e81;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
}

.remove-selected-table-btn {
    border: 0;
    background: transparent;
    color: #312e81;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
}

.reservation-modal-field label {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.reservation-modal-field input {
    height: 40px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 14px;
}

.hidden {
    display: none !important;
}
.floorplan-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.floorplan-toolbar.compact-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.reservation-main-with-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.reservation-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.38);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 2000;
    padding: 18px 12px;
    overflow: auto;
    box-sizing: border-box;
}

.reservation-modal {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: min(560px, calc(100vw - 24px));
    max-width: min(560px, calc(100vw - 24px));
    height: min(760px, calc(100vh - 36px));
    max-height: calc(100vh - 36px);
    min-width: 320px;
    min-height: 420px;
    background: #fff;
    border-radius: 16px;
    padding: 16px 18px 16px 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    resize: both;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    z-index: 2001;
}

.reservation-modal-large {
    width: min(560px, calc(100vw - 24px));
    max-width: min(560px, calc(100vw - 24px));
}

.reservation-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    cursor: move;
    user-select: none;
    flex: 0 0 auto;
}

.reservation-modal-header-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.reservation-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.reservation-modal-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

.reservation-modal-close {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    color: #6b7280;
    line-height: 1;
    padding: 2px 4px;
}

.reservation-modal-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 2px;
}

.reservation-modal-header .reservation-modal-tabs {
    margin-bottom: 0;
}

.reservation-modal-tab {
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #1f2937;
    border-radius: 8px;
    padding: 5px 11px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.reservation-modal-tab.active {
    border-color: #111827;
    background: #111827;
    color: #ffffff;
}

.reservation-modal-tab:disabled {
    opacity: 0.6;
    cursor: default;
}

.reservation-modal-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding-left: 4px;
    padding-right: 2px;
    box-sizing: border-box;
}

.reservation-modal-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 0 0 auto;
}

.reservation-modal-field label {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    line-height: 1.2;
}

.reservation-modal-field input,
.reservation-modal-field select {
    height: 31px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 13px;
    background: #fff;
    color: #111827;
    box-sizing: border-box;
    width: 100%;
}

.reservation-phone-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.reservation-phone-row select {
    padding: 0 8px;
}

.reservation-phone-warning {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.2;
    color: #dc2626;
}

.reservation-phone-warning.is-ok {
    color: #15803d;
}

.reservation-seat-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reservation-seat-row #modal-party-size {
    flex: 0 0 14%;
    max-width: 14%;
    min-width: 68px;
    padding: 0 8px;
    text-align: center;
}

.reservation-seat-logic {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.reservation-seat-balance,
.reservation-seat-suggestion {
    font-size: 0.7em;
    line-height: 1.2;
}

.selected-tables-box {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 46px;
    max-height: 96px;
    overflow: auto;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    box-sizing: border-box;
}

.selected-tables-empty {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
}

.selected-table-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef2ff;
    color: #312e81;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    max-width: 100%;
}

.selected-table-chip span {
    white-space: nowrap;
}

.remove-selected-table-btn {
    border: 0;
    background: transparent;
    color: #312e81;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    padding: 0;
}

.selected-tables-actions {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.selected-tables-actions .btn {
    width: 42px;
    min-width: 42px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.selected-tables-actions select {
    min-width: 0;
    width: 100%;
    height: 38px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 13px;
    background: #fff;
    color: #111827;
    box-sizing: border-box;
}

.selected-tables-actions select option[hidden] {
    display: none;
}

.time-wheel-list {
    position: relative;
    min-height: 75px;
    max-height: 75px;
    overflow-y: auto;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    background:
        linear-gradient(to bottom,
            rgba(255, 255, 255, 0.96) 0%,
            rgba(255, 255, 255, 0.82) 18%,
            rgba(255, 255, 255, 0.18) 40%,
            rgba(255, 255, 255, 0.18) 60%,
            rgba(255, 255, 255, 0.82) 82%,
            rgba(255, 255, 255, 0.96) 100%),
        #fff;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

.time-wheel-list::after {
    content: "";
    position: sticky;
    top: 50%;
    display: block;
    height: 36px;
    margin-top: -18px;
    border-top: 1px solid rgba(37, 99, 235, 0.18);
    border-bottom: 1px solid rgba(37, 99, 235, 0.18);
    pointer-events: none;
    z-index: 2;
}

.time-wheel-item {
    min-height: 20px;
    font-size: 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    letter-spacing: 0.2px;
    text-align: center;
    transition: all 0.14s ease;
}

.time-wheel-item:hover {
    background: rgba(99, 102, 241, 0.08);
    color: #111827;
}

.time-wheel-item.active {
    background: #e0e7ff;
    color: #1d4ed8;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.15);
    font-weight: 700;
}

.time-wheel-empty {
    padding: 14px 10px;
    color: #6b7280;
    font-size: 12px;
    text-align: center;
    line-height: 1.4;
}

.reservation-modal-summary {
    font-size: 11px;
    color: #4b5563;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 10px;
    line-height: 1.4;
    flex: 0 0 auto;
}

.reservation-modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding-top: 2px;
}

.reservation-modal-actions .btn,
.reservation-modal-actions .btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    line-height: 1;
    padding: 0 14px;
    font-size: 13px;
}

body.reservation-modal-dragging {
    user-select: none;
    cursor: move;
}

.calendar-header-nav {
    display: grid;
    grid-template-columns: 32px 1fr 32px;
    align-items: center;
    gap: 8px;
}

.calendar-header-title {
    text-align: center;
}

.calendar-month-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    text-decoration: none;
    color: #374151;
    font-size: 18px;
    font-weight: 700;
    transition: background 0.15s ease, color 0.15s ease;
}

.calendar-month-nav:hover {
    background: #f3f4f6;
    color: #111827;
}

.reservation-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
    align-items: stretch;
}

.reservation-time {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
}

.reservation-clickable {
    cursor: pointer;
}

.reservation-clickable:hover {
    background: #f8fafc;
}

.reservation-meta strong {
    font-weight: 700;
}

@media (max-width: 700px) {
    .reservation-modal-backdrop {
        padding: 8px;
    }

    .reservation-modal,
    .reservation-modal-large {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        height: calc(100vh - 16px);
        max-height: calc(100vh - 16px);
        min-width: 0;
        min-height: 0;
        left: 8px !important;
        top: 8px !important;
        transform: none !important;
        resize: none;
    }

    .selected-tables-actions {
        grid-template-columns: 1fr;
    }

    .selected-tables-actions .btn {
        width: 100%;
    }

    .reservation-modal-header-main {
        flex-wrap: wrap;
        gap: 8px;
    }

    .reservation-modal-tab {
        padding: 4px 10px;
        font-size: 11px;
    }

    .reservation-modal-actions .btn,
    .reservation-modal-actions .btn-small {
        height: 38px;
        min-height: 38px;
        max-height: 38px;
        padding: 0 12px;
    }
}

.zone-add-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-bottom: 12px;
}

.zone-add-row input {
    height: 38px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 13px;
    background: #fff;
    color: #111827;
    box-sizing: border-box;
}

.zones-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zone-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.zone-name-input {
    height: 36px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 13px;
    box-sizing: border-box;
}

.zone-actions {
    display: flex;
    gap: 8px;
}

.timeline-page-panel {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.timeline-page-container {
    min-height: 0;
    height: 100vh;
}

.timeline-page-container .timeline-page-panel {
    height: 100%;
}

.timeline-toolbar {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    min-height: 29px;
    margin-bottom: 12px;
}

.timeline-readonly-notice {
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #f5c2c2;
    background: #fff3f3;
    color: #9b1c1c;
    font-size: 13px;
    font-weight: 600;
}

.timeline-filters {
    display: flex;
    align-items: center;
    justify-self: start;
}

.timeline-filters select {
    height: 29px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f4b400;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
}

.timeline-zoom-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: end;
}

.timeline-date-controls {
    display: flex;
    align-items: center;
    justify-self: center;
    gap: 8px;
    position: relative;
}

.timeline-date-nav-btn,
.timeline-date-display-btn {
    height: 29px;
    border: 1px solid #ddd;
    background: #f4b400;
    color: #111827;
    border-radius: 10px;
    cursor: pointer;
}

.timeline-date-nav-btn {
    width: 34px;
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
}

.timeline-date-display-btn {
    min-width: 270px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.timeline-date-nav-btn:hover,
.timeline-date-display-btn:hover {
    background: #e0a400;
}

.timeline-date-hidden {
    position: absolute;
    left: 50%;
    top: 29px;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    width: 270px;
    height: 29px;
}

.timeline-zoom-btn {
    width: 38px;
    height: 29px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    border-radius: 10px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.timeline-zoom-btn:hover {
    background: #f3f4f6;
}

.timeline-grid-wrapper {
    flex: 1 1 0;
    min-height: 0;
    overflow: auto;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    max-height: none;
    position: relative;
}

.timeline-grid {
    --slot-width: 36px;
    --label-width: 220px;
    --row-height: 46px;
    --bar-height: 29px;
    --bar-top: 1px;
    --hour-height: 38px;
    --minute-height: 26px;

    --table-name-font: 12px;
    --table-meta-font: 10px;
    --hour-font: 11px;
    --minute-font: 9px;
    --bar-title-font: 11px;
    --bar-subtitle-font: 10px;
    --bar-padding-x: 6px;
    --bar-padding-y: 5px;

    width: max-content;
    min-width: calc(var(--label-width) + (var(--slot-count) * var(--slot-width)));
    display: grid;
    grid-template-columns: var(--label-width) calc(var(--slot-count) * var(--slot-width));
    align-items: stretch;
    position: relative;
}

.timeline-connectors {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 8;
    overflow: visible;
}

.timeline-now-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ef4444;
    pointer-events: none;
    z-index: 9;
    transform: translateX(-50%);
}

.timeline-connector-path {
    fill: none;
    stroke: #ef4444;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.timeline-corner {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 20;
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    width: var(--label-width);
    min-width: var(--label-width);
    box-sizing: border-box;
}

.timeline-corner-top {
    display: flex;
    align-items: center;
}

.timeline-header-wrap {
    position: sticky;
    top: 0;
    z-index: 15;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    width: calc(var(--slot-count) * var(--slot-width));
}

.timeline-hour-header {
    display: grid;
    grid-template-columns: repeat(calc(var(--slot-count) / 4), calc(var(--slot-width) * 4));
    width: calc(var(--slot-count) * var(--slot-width));
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.timeline-hour-cell {
    height: var(--hour-height);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--hour-font);
    font-weight: 700;
    color: #1f2937;
    border-left: 1px solid #d1d5db;
    box-sizing: border-box;
}

.timeline-minute-header {
    display: grid;
    grid-template-columns: repeat(var(--slot-count), var(--slot-width));
    width: calc(var(--slot-count) * var(--slot-width));
    background: #f9fafb;
}

.timeline-minute-cell {
    height: var(--minute-height);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--minute-font);
    font-weight: 600;
    color: #6b7280;
    border-left: 1px solid #e5e7eb;
    box-sizing: border-box;
}

.timeline-table-label {
    position: sticky;
    left: 0;
    z-index: 12;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 5px 5px;
    width: var(--label-width);
    min-width: var(--label-width);
    box-sizing: border-box;
}

.timeline-table-label-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.timeline-table-name {
    font-size: var(--table-name-font);
    font-weight: 700;
    color: #111827;
    line-height: 1.05;
}

.timeline-table-add-btn {
    width: 16px;
    min-width: 16px;
    height: 16px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    opacity: 0.6;
    transition: opacity 0.15s, background 0.15s, color 0.15s;
}

.timeline-table-label:hover .timeline-table-add-btn,
.timeline-table-add-btn:hover {
    opacity: 1;
    background: #f4b400;
    color: #111827;
}

.timeline-table-meta {
    margin-top: 1px;
    font-size: var(--table-meta-font);
    line-height: 1.05;
    color: #6b7280;
}

.timeline-row-track {
    position: relative;
    width: calc(var(--slot-count) * var(--slot-width));
    min-width: calc(var(--slot-count) * var(--slot-width));
    max-width: calc(var(--slot-count) * var(--slot-width));
    min-height: var(--row-height);
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    overflow: visible;
    box-sizing: border-box;
}

.timeline-row-drop-target {
    background: #fff7ed;
}

.timeline-row-drop-invalid {
    background: #fef2f2;
}

.timeline-row-track.has-group-brace {
    overflow: visible;
}

.timeline-slot-background {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(var(--slot-count), var(--slot-width));
    width: calc(var(--slot-count) * var(--slot-width));
    pointer-events: none;
}

.timeline-slot-cell {
    border-left: 1px solid #edf0f3;
    box-sizing: border-box;
}

.timeline-slot-cell.is-hour {
    border-left: 1px solid #cfd6df;
}

.timeline-bar {
    position: absolute;
    top: var(--bar-top);
    left: calc(var(--start-slot) * var(--slot-width));
    width: calc(var(--slot-span) * var(--slot-width));
    height: var(--bar-height);
    border-radius: 10px;
    padding: var(--bar-padding-y) var(--bar-padding-x);
    box-sizing: border-box;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
    min-width: 54px;
    z-index: 3;
    cursor: grab;
    user-select: none;
    touch-action: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: calc(var(--bar-padding-x) + 18px);
}

.timeline-bar-dragging {
    opacity: 0.88;
    box-shadow: 0 8px 18px rgba(30, 64, 175, 0.3);
    cursor: grabbing;
    z-index: 12;
}

.timeline-drag-preview {
    position: absolute;
    z-index: 30;
    padding: 6px 10px;
    background: #111827;
    color: #fff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.timeline-drag-preview.invalid {
    background: #991b1b;
}

.timeline-bar-title {
    font-size: var(--bar-title-font);
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: inherit;
}

.timeline-bar-subtitle {
    margin-top: 2px;
    font-size: var(--bar-subtitle-font);
    line-height: 1.1;
    opacity: 0.96;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: inherit;
}

.timeline-bar-edit-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.timeline-bar-edit-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.timeline-bar-edit-btn:hover {
    color: #ffffff;
}

.timeline-bar.status-confirmed {
    background: #2563eb;
}

.timeline-bar.status-pending {
    background: #d97706;
}

.timeline-bar.status-seated,
.timeline-bar.status-occupied {
    background: #16a34a;
}

.timeline-bar[data-source="walkin"] {
    background: #eff630 !important;
    color: #1f2937;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-bar[data-source="walkin"] .timeline-bar-title,
.timeline-bar[data-source="walkin"] .timeline-bar-subtitle {
    color: #1f2937;
}

.timeline-empty {
    grid-column: 1 / -1;
    padding: 20px;
    color: #6b7280;
    font-size: 13px;
}

.timeline-group-brace {
    position: absolute;
    left: calc((var(--start-slot) + var(--slot-span)) * var(--slot-width) - 1px);
    top: calc(var(--bar-top) + (var(--bar-height) / 2));
    width: calc(18px * var(--zoom-scale, 1));
    height: calc((var(--row-span) - 1) * (var(--row-height) + 1px) + 2px);
    pointer-events: none;
    z-index: 20;
    box-sizing: border-box;
    overflow: visible;
}

.timeline-group-brace-svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.timeline-group-brace-svg path {
    fill: none;
    stroke: #ef4444;
    stroke-width: var(--brace-stroke-width, 2.5px);
    stroke-linecap: round;
    stroke-linejoin: round;
}



@media (max-width: 980px) {
    .timeline-toolbar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        align-content: flex-start;
        justify-content: space-between;
        gap: 8px 10px;
        width: 100%;
    }

    .timeline-filters {
        flex: 0 0 auto;
        justify-self: auto;
    }

    .timeline-date-controls {
        flex: 1 1 320px;
        min-width: 0;
        justify-self: auto;
        justify-content: center;
    }

    .timeline-zoom-controls {
        flex: 0 0 auto;
        justify-self: auto;
    }

    .timeline-date-display-btn {
        min-width: 230px;
        font-size: 14px;
    }
}

@media (max-width: 700px) {

    .reservation-modal,
    .reservation-modal-large {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
        min-width: 0;
        min-height: 0;
        left: 8px !important;
        top: 8px !important;
        transform: none !important;
        resize: none;
    }
}

/* TableManager Home - modern landing page
   Paste this at the end of your main style.css. It targets only the home page. */

.home-modern-page {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(255, 184, 0, 0.16), transparent 34%),
        radial-gradient(circle at top right, rgba(43, 54, 96, 0.18), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
}

.home-modern-page * {
    box-sizing: border-box;
}

.home-modern-bg {
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(8px);
    opacity: 0.75;
}

.home-modern-bg-one {
    top: -110px;
    right: 18%;
    width: 260px;
    height: 260px;
    background: rgba(255, 184, 0, 0.22);
}

.home-modern-bg-two {
    bottom: 18%;
    left: 8%;
    width: 220px;
    height: 220px;
    background: rgba(43, 54, 96, 0.12);
}

.home-modern-header,
.home-modern-layout {
    position: relative;
    z-index: 1;
}

.home-modern-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 34px 8px;
}

.home-eyebrow,
.home-section-kicker,
.home-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid rgba(43, 54, 96, 0.12);
    border-radius: 999px;
    color: #2b3660;
    background: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-eyebrow {
    padding: 8px 12px;
    margin-bottom: 10px;
}

.home-title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(34px, 4vw, 64px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.home-top-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(43, 54, 96, 0.14);
    background: rgba(255, 255, 255, 0.76);
    color: #0f172a;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.home-top-btn-primary,
.home-top-btn:hover {
    background: #ffb800;
    border-color: #ffb800;
    color: #172036;
}

.home-modern-layout {
    display: grid;
    gap: 22px;
    padding: 24px 34px 38px;
}

.home-hero-card {
    display: grid;
    grid-template-columns: minmax(340px, 0.86fr) minmax(520px, 1.14fr);
    align-items: center;
    gap: 28px;
    min-height: 520px;
    padding: 34px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(18px);
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.10);
}

.home-hero-copy {
    max-width: 650px;
}

.home-pill {
    padding: 8px 12px;
    margin-bottom: 22px;
    color: #725200;
    background: rgba(255, 184, 0, 0.18);
    border-color: rgba(255, 184, 0, 0.38);
}

.home-hero-copy h2 {
    margin: 0 0 18px;
    color: #0f172a;
    font-size: clamp(34px, 4.7vw, 70px);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.home-hero-copy p {
    max-width: 590px;
    margin: 0;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.72;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.home-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.home-cta:hover {
    transform: translateY(-2px);
}

.home-cta-primary {
    background: #ffb800;
    color: #172036;
    box-shadow: 0 16px 34px rgba(255, 184, 0, 0.28);
}

.home-cta-secondary {
    border: 1px solid rgba(43, 54, 96, 0.16);
    background: #ffffff;
    color: #2b3660;
}

.home-hero-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.home-hero-preview {
    position: relative;
    width: 100%;
}

.home-hero-image,
.home-feature-image {
    display: block;
    width: 100%;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #ffffff;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.16);
}

.home-hero-image {
    transform: perspective(1200px) rotateY(-7deg) rotateX(2deg);
    transform-origin: center;
}

.home-start-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    width: min(420px, 82%);
    min-height: 76px;
    margin-top: 158px;
    padding: 0 34px;
    border-radius: 999px;
    background: #ffb800;
    color: #172036;
    font-size: 24px;
    font-weight: 950;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 20px 44px rgba(255, 184, 0, 0.34), 0 10px 26px rgba(15, 23, 42, 0.12);
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.home-start-now:hover {
    background: #ffc833;
    transform: translateY(-2px);
    box-shadow: 0 24px 54px rgba(255, 184, 0, 0.38), 0 14px 32px rgba(15, 23, 42, 0.14);
}

.home-floating-card {
    position: absolute;
    z-index: 2;
    display: grid;
    gap: 2px;
    min-width: 140px;
    padding: 14px 16px;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.83);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.home-floating-card strong {
    color: #0f172a;
    font-size: 22px;
    line-height: 1;
}

.home-floating-card span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.home-floating-card-left {
    left: -14px;
    top: 18%;
}

.home-floating-card-right {
    right: -14px;
    bottom: 16%;
}

.home-benefits-strip {
    padding: 24px;
    border: 1px solid rgba(43, 54, 96, 0.12);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(43, 54, 96, 0.98), rgba(83, 97, 142, 0.96));
    box-shadow: 0 20px 56px rgba(15, 23, 42, 0.12);
}

.home-benefits-strip h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 20px;
    letter-spacing: -0.025em;
}

.home-benefits-strip ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-benefits-strip li {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.home-benefits-strip li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffb800;
    color: #172036;
    font-size: 13px;
    font-weight: 950;
}

.home-bento-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 18px;
}

.home-bento-card {
    min-height: 180px;
    padding: 24px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.07);
}

.home-bento-card-large {
    grid-row: span 2;
    min-height: 378px;
    background: linear-gradient(145deg, #2b3660 0%, #53618e 100%);
    color: #ffffff;
}

.home-bento-card-wide {
    grid-column: span 2;
}

.home-bento-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 34px;
    border-radius: 14px;
    background: rgba(255, 184, 0, 0.18);
    color: #8a6500;
    font-weight: 900;
}

.home-bento-card-large .home-bento-number {
    background: rgba(255, 184, 0, 0.22);
    color: #ffd86a;
}

.home-bento-card h3 {
    margin: 0 0 10px;
    color: inherit;
    font-size: 26px;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.home-bento-card p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.65;
}

.home-bento-card-large p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
}

.home-feature-card {
    display: grid;
    grid-template-columns: minmax(320px, 0.72fr) minmax(560px, 1.28fr);
    align-items: center;
    gap: 28px;
    padding: 28px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

.home-feature-card-reverse .home-feature-content {
    order: 2;
}

.home-feature-card-reverse .home-feature-media {
    order: 1;
}

.home-feature-content {
    min-width: 0;
}

.home-overview-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.home-icon-shell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(43, 54, 96, 0.1), rgba(255, 184, 0, 0.2));
    border: 1px solid rgba(43, 54, 96, 0.12);
}

.home-overview-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.home-section-kicker {
    padding: 6px 10px;
    margin-bottom: 8px;
    color: #64748b;
    background: #f8fafc;
}

.home-overview-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 36px;
    line-height: 1;
    letter-spacing: -0.045em;
}

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

.home-modern-list li {
    position: relative;
    padding: 14px 14px 14px 44px;
    border: 1px solid rgba(226, 232, 240, 0.84);
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.78);
    color: #334155;
    font-size: 15px;
    line-height: 1.55;
}

.home-modern-list li::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 18px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffb800;
    box-shadow: 0 0 0 5px rgba(255, 184, 0, 0.16);
}

.home-feature-media {
    min-width: 0;
    overflow: hidden;
    border-radius: 26px;
}

.home-feature-image {
    max-height: 560px;
    object-fit: cover;
    object-position: top left;
}

@media (max-width: 1180px) {

    .home-hero-card,
    .home-feature-card {
        grid-template-columns: 1fr;
    }

    .home-hero-image {
        transform: none;
    }

    .home-start-now {
        align-self: center;
        width: min(460px, 100%);
    }

    .home-feature-card-reverse .home-feature-content,
    .home-feature-card-reverse .home-feature-media {
        order: initial;
    }

    .home-benefits-strip ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-bento-grid {
        grid-template-columns: 1fr 1fr;
    }

    .home-bento-card-large,
    .home-bento-card-wide {
        grid-column: span 2;
        grid-row: auto;
        min-height: 220px;
    }
}

@media (max-width: 760px) {
    .home-modern-header {
        flex-direction: column;
        padding: 22px 18px 4px;
    }

    .home-modern-layout {
        padding: 18px;
    }

    .home-hero-card,
    .home-feature-card {
        padding: 20px;
        border-radius: 26px;
    }

    .home-hero-copy h2 {
        font-size: 38px;
    }

    .home-hero-copy p {
        font-size: 16px;
    }

    .home-start-now {
        min-height: 62px;
        margin-top: 34px;
        padding: 0 24px;
        font-size: 20px;
    }

    .home-benefits-strip {
        padding: 18px;
        border-radius: 22px;
    }

    .home-benefits-strip ul {
        grid-template-columns: 1fr;
    }

    .home-bento-grid {
        grid-template-columns: 1fr;
    }

    .home-bento-card,
    .home-bento-card-large,
    .home-bento-card-wide {
        grid-column: auto;
        min-height: auto;
    }

    .home-floating-card {
        display: none;
    }
}
/* Settings screenshots - show full images, no crop */
.home-settings-media-grid {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    overflow: visible !important;
}

.home-settings-media-grid .home-feature-image,
.home-settings-image {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center top !important;
}

@media (min-width: 1181px) {
    .home-settings-media-grid {
        grid-template-columns: 1fr !important;
    }

    .home-settings-image {
        height: auto !important;
        max-height: none !important;
    }
}
/* Contact section */
.home-contact-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(460px, 1.08fr);
    gap: 28px;
    align-items: center;
    overflow: hidden;
    padding: 34px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 34px;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 184, 0, 0.24), transparent 32%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.82));
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.09);
}

.home-contact-glow {
    position: absolute;
    right: -80px;
    bottom: -110px;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: rgba(43, 54, 96, 0.12);
    filter: blur(4px);
    pointer-events: none;
}

.home-contact-brand,
.home-contact-content {
    position: relative;
    z-index: 1;
}

.home-contact-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.home-contact-logo-shell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 104px;
    flex: 0 0 auto;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(43, 54, 96, 0.12);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.home-contact-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
}

.home-contact-brand h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(30px, 3vw, 48px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.home-contact-content p {
    margin: 0;
    color: #475569;
    font-size: 17px;
    line-height: 1.7;
}

.home-contact-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
}

.home-contact-person,
.home-contact-mail {
    min-height: 62px;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.home-contact-person {
    display: grid;
    gap: 2px;
    padding: 10px 16px;
}

.home-contact-person span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-contact-person strong {
    color: #0f172a;
    font-size: 17px;
}

.home-contact-mail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    color: #172036;
    background: #ffb800;
    border-color: #ffb800;
    font-size: 17px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(255, 184, 0, 0.26);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.home-contact-mail:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(255, 184, 0, 0.34);
}

@media (max-width: 1180px) {
    .home-contact-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .home-contact-card {
        padding: 22px;
        border-radius: 26px;
    }

    .home-contact-brand {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-contact-logo-shell {
        width: 86px;
        height: 86px;
        border-radius: 26px;
    }

    .home-contact-logo {
        width: 64px;
        height: 64px;
    }

    .home-contact-mail {
        width: 100%;
    }
}
/* Language selector */
.settings-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-selector {
    position: relative;
    z-index: 30;
}

.language-selector summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 54px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #172036;
    cursor: pointer;
    list-style: none;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.language-selector summary::-webkit-details-marker { display: none; }
.language-flag {
    display: inline-block;
    flex: 0 0 auto;
    width: 24px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid rgba(15, 23, 42, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.language-flag-en {
    background:
        linear-gradient(27deg, transparent 44%, #fff 44%, #fff 50%, #cf142b 50%, #cf142b 56%, #fff 56%, #fff 62%, transparent 62%),
        linear-gradient(153deg, transparent 44%, #fff 44%, #fff 50%, #cf142b 50%, #cf142b 56%, #fff 56%, #fff 62%, transparent 62%),
        linear-gradient(to bottom, transparent 38%, #fff 38%, #fff 46%, #cf142b 46%, #cf142b 54%, #fff 54%, #fff 62%, transparent 62%),
        linear-gradient(to right, transparent 36%, #fff 36%, #fff 44%, #cf142b 44%, #cf142b 56%, #fff 56%, #fff 64%, transparent 64%),
        #00247d;
}

.language-flag-ro {
    background: linear-gradient(to right, #002b7f 0 33.33%, #fcd116 33.33% 66.66%, #ce1126 66.66% 100%);
}

.language-flag-fr {
    background: linear-gradient(to right, #0055a4 0 33.33%, #fff 33.33% 66.66%, #ef4135 66.66% 100%);
}

.language-flag-it {
    background: linear-gradient(to right, #009246 0 33.33%, #fff 33.33% 66.66%, #ce2b37 66.66% 100%);
}

.language-flag-es {
    background: linear-gradient(to bottom, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75% 100%);
}

.language-arrow { font-size: 12px; transition: transform 0.16s ease; }
.language-selector[open] .language-arrow { transform: rotate(180deg); }

.language-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 172px;
    padding: 6px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
}

.language-menu form { margin: 0; }
.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #172036;
    font: inherit;
    font-size: 14px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.language-option:hover, .language-option.selected { background: #f1f5f9; }

/* Keep the Home language menu above the hero card. */
.home-modern-page {
    overflow: visible;
}

.home-modern-header {
    position: relative;
    z-index: 100;
}

.home-modern-header .language-selector {
    z-index: 110;
}

.home-modern-header .language-menu {
    z-index: 120;
}
.cookie-consent {
    position: fixed;
    z-index: 10000;
    right: 20px;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 780px;
    margin: 0 auto;
    padding: 18px 20px;
    border: 1px solid #d9dee8;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(23, 35, 58, 0.2);
    color: #1d2738;
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent-message {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-consent-actions {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}

.cookie-consent-button {
    padding: 10px 16px;
    border: 1px solid #2765d8;
    border-radius: 8px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.cookie-consent-reject {
    background: #fff;
    color: #2765d8;
}

.cookie-consent-accept {
    background: #2765d8;
    color: #fff;
}

.cookie-settings-button {
    position: fixed;
    z-index: 9999;
    right: 14px;
    bottom: 14px;
    padding: 7px 10px;
    border: 1px solid #cbd3df;
    border-radius: 7px;
    background: #fff;
    color: #35445d;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(23, 35, 58, 0.14);
}

.cookie-settings-button[hidden] {
    display: none;
}

@media (max-width: 620px) {
    .cookie-consent {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .cookie-consent-actions {
        justify-content: flex-end;
    }
}
