*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #ffffff;
    --bg2: #f8f7ff;
    --bg3: #f0effe;
    --text: #1a1730;
    --text2: #6b6490;
    --text3: #a89fc8;
    --border: rgba(120, 100, 220, 0.10);
    --border2: rgba(120, 100, 220, 0.22);
    --accent: #7c6fe0;
    --accent2: #a78bfa;
    --accent3: #e0d9ff;
    --pink: #f472b6;
    --pink-bg: #fdf2f8;
    --green: #10b981;
    --green-bg: #ecfdf5;
    --green-text: #065f46;
    --red: #ef4444;
    --red-bg: #fef2f2;
    --red-text: #991b1b;
    --amber: #f59e0b;
    --amber-bg: #fffbeb;
    --amber-text: #92400e;
    --blue-bg: #eff6ff;
    --blue-text: #1e40af;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow: 0 1px 3px rgba(100, 80, 200, 0.08), 0 4px 16px rgba(100, 80, 200, 0.06);
    --shadow-sm: 0 1px 2px rgba(100, 80, 200, 0.06);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #13111f;
        --bg2: #1c1930;
        --bg3: #231f38;
        --text: #ede9ff;
        --text2: #9b91c8;
        --text3: #5a5280;
        --border: rgba(150, 130, 255, 0.10);
        --border2: rgba(150, 130, 255, 0.20);
        --accent: #9d8ff5;
        --accent2: #c4b5fd;
        --accent3: #2d2650;
        --pink: #f472b6;
        --pink-bg: #2d1a2e;
        --green-bg: #022c22;
        --green-text: #6ee7b7;
        --red-bg: #2d0a0a;
        --red-text: #fca5a5;
        --amber-bg: #2d1a00;
        --amber-text: #fcd34d;
        --blue-bg: #0f1f40;
        --blue-text: #93c5fd;
        --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.2);
    }
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg3);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
}

/* ── HEADER ── */
header {
    background: linear-gradient(135deg, #7c6fe0 0%, #a78bfa 50%, #f472b6 100%);
    padding: 1.1rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 20px rgba(124, 111, 224, 0.3);
}

header h1 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
}

header .subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 1px;
}

.save-badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

/* ── LAYOUT ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* ── TABS ── */
.tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    background: var(--bg);
    padding: 5px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    width: fit-content;
}

.tab {
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-radius: var(--radius);
    background: transparent;
    cursor: pointer;
    color: var(--text2);
    font-family: inherit;
    transition: all 0.18s ease;
}

.tab:hover {
    background: var(--bg2);
    color: var(--text);
}

.tab.active {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    box-shadow: 0 2px 8px rgba(124, 111, 224, 0.35);
}

.section {
    display: none;
    animation: fadeIn 0.2s ease;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── METRICS ── */
.metrics {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.metric {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 1rem 1.15rem;
    flex: 1;
    min-width: 120px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.metric::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.metric .lbl {
    font-size: 11px;
    font-weight: 500;
    color: var(--text2);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.metric .val {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

/* ── CARD ── */
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.1rem 1.3rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.sec-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

/* ── DAY HEADER (itinerary) ── */
.day-block {
    margin-bottom: 1.5rem;
}

.day-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.day-pill {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(124, 111, 224, 0.3);
}

.day-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border2), transparent);
}

.it-row {
    display: flex;
    gap: 12px;
    margin-bottom: 4px;
}

.it-dot-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 6px;
}

.it-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--pink));
    flex-shrink: 0;
    box-shadow: 0 0 0 3px var(--accent3);
}

.it-line {
    width: 2px;
    flex: 1;
    min-height: 20px;
    background: linear-gradient(to bottom, var(--accent2), transparent);
    margin: 4px auto 0;
    border-radius: 2px;
}

.it-content {
    flex: 1;
    padding-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── BUDGET ── */
.bcat-section {
    margin-bottom: 8px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.bcat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    user-select: none;
    background: var(--bg2);
    transition: background 0.15s;
}

.bcat-header:hover {
    background: var(--accent3);
}

.bcat-emoji {
    font-size: 16px;
}

.bcat-title {
    font-size: 13px;
    font-weight: 600;
    flex: 1;
    color: var(--text);
}

.bcat-totals {
    font-size: 11px;
    color: var(--text2);
    white-space: nowrap;
}

.bcat-toggle {
    font-size: 11px;
    color: var(--text3);
    transition: transform 0.2s;
}

.bcat-body {
    padding: 8px 14px 12px;
}

.bitem-head {
    display: grid;
    grid-template-columns: 1fr 130px 130px 130px 80px;
    gap: 6px;
    padding: 4px 0 6px;
    border-bottom: 1px solid var(--border);
}

.bitem-head span {
    font-size: 10px;
    font-weight: 700;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bitem-head span:nth-child(2),
.bitem-head span:nth-child(3),
.bitem-head span:nth-child(4) {
    text-align: right;
}

.bitem {
    display: grid;
    grid-template-columns: 1fr 130px 130px 130px 80px;
    gap: 6px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 0.5px solid var(--border);
}

.bitem:last-child {
    border-bottom: none;
}

.bcat-sum {
    display: grid;
    grid-template-columns: 1fr 130px 130px 130px 80px;
    gap: 6px;
    padding: 7px 0 2px;
    border-top: 1.5px solid var(--border2);
    margin-top: 4px;
}

.bcat-sum span {
    font-size: 12px;
    font-weight: 700;
}

.bcat-sum span:nth-child(2),
.bcat-sum span:nth-child(3),
.bcat-sum span:nth-child(4) {
    text-align: right;
}

.bcat-sum span:nth-child(1) {
    color: var(--text2);
    font-size: 11px;
}

.budget-grand-sum {
    display: grid;
    grid-template-columns: 1fr 130px 130px 130px 130px minmax(150px, auto);
    gap: 6px;
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--accent3), var(--pink-bg));
    border-radius: var(--radius-lg);
    margin-top: 10px;
    border: 1px solid var(--border2);
}

.budget-grand-sum span {
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
}

.budget-grand-sum span:nth-child(2),
.budget-grand-sum span:nth-child(3),
.budget-grand-sum span:nth-child(4),
.budget-grand-sum span:nth-child(5) {
    text-align: right;
}

.budget-grand-sum span:nth-child(1) {
    color: var(--text2);
    font-weight: 600;
}

.income-section {
    border: 1.5px solid #6ee7b7;
    border-radius: var(--radius-lg);
    margin-top: 16px;
    overflow: hidden;
}

.income-header {
    align-items: center;
    background: var(--green-bg);
    cursor: pointer;
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    user-select: none;
}

.income-title {
    color: var(--green-text);
    flex: 1;
    font-size: 13px;
    font-weight: 700;
}

.income-body {
    background: var(--bg);
    padding: 8px 14px 12px;
}

.income-head,
.income-item {
    display: grid;
    gap: 6px;
    grid-template-columns: 1fr 130px 130px 80px;
}

.income-head {
    border-bottom: 1px solid var(--border);
    padding: 3px 0 6px;
}

.income-head span {
    color: var(--text3);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.income-head span:nth-child(2),
.income-head span:nth-child(3) {
    text-align: right;
}

.income-item {
    align-items: center;
    border-bottom: 0.5px solid var(--border);
    font-size: 12px;
    padding: 6px 0;
}

.income-item:last-child {
    border-bottom: none;
}

.ei {
    font-size: 12px;
    padding: 4px 7px;
    border: 1px solid var(--border2);
    border-radius: 7px;
    background: var(--bg2);
    color: var(--text);
    font-family: inherit;
    width: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ei:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 111, 224, 0.15);
    background: var(--bg);
}

.ei-num {
    text-align: right;
}

.progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.progress-track {
    height: 5px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transition: width 0.4s ease;
}

.add-item-row {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px dashed var(--border2);
}

.add-item-row input {
    font-size: 12px;
    padding: 5px 8px;
    border: 1px solid var(--border2);
    border-radius: 7px;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
}

.add-item-row input:focus {
    outline: none;
    border-color: var(--accent);
}

.add-item-row button {
    font-size: 12px;
    padding: 5px 12px;
    border: 1px solid var(--accent);
    border-radius: 7px;
    background: transparent;
    cursor: pointer;
    color: var(--accent);
    font-family: inherit;
    font-weight: 500;
    transition: all 0.15s;
}

.add-item-row button:hover {
    background: var(--accent);
    color: #fff;
}

/* ── GUEST TABLE ── */
.gtable-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
}

table.gtable {
    border-collapse: collapse;
    font-size: 12px;
    width: 100%;
    min-width: 860px;
}

table.gtable th {
    font-size: 10px;
    font-weight: 700;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 10px 7px;
    border-bottom: 2px solid var(--border2);
    white-space: nowrap;
    text-align: left;
    background: var(--bg2);
}

table.gtable th:nth-child(1) {
    min-width: 170px;
}

table.gtable th:nth-child(2) {
    min-width: 120px;
}

table.gtable th:nth-child(3) {
    min-width: 130px;
}

table.gtable th:nth-child(4) {
    min-width: 230px;
}

table.gtable th:nth-child(5) {
    min-width: 210px;
}

table.gtable th:nth-child(6) {
    min-width: 80px;
}

table.gtable th:nth-child(7) {
    min-width: 50px;
}

table.gtable th.center,
table.gtable td.center {
    text-align: center;
}

table.gtable td {
    padding: 6px 8px;
    border-bottom: 0.5px solid var(--border);
    vertical-align: top;
}

table.gtable tr:hover td {
    background: var(--bg2);
}

table.gtable tfoot td {
    background: linear-gradient(135deg, var(--accent3), var(--pink-bg));
    font-weight: 700;
    font-size: 12px;
    padding: 8px 10px;
    border-top: 2px solid var(--border2);
}

table.gtable tfoot td.center {
    text-align: center;
}

.guest-person-btn {
    width: 100%;
    min-height: 30px;
    padding: 5px 8px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    line-height: 1.4;
}

.guest-person-btn:hover,
.guest-person-btn:focus {
    outline: none;
    border-color: var(--border2);
    background: var(--bg2);
}

.guest-detail-btn {
    font-size: 11px;
    padding: 4px 10px;
    border: 1px solid var(--border2);
    border-radius: 7px;
    background: var(--bg2);
    color: var(--accent);
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
}

.guest-detail-btn:hover,
.guest-detail-btn:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--accent3);
}

.guest-detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 7vh 16px 24px;
    overflow-y: auto;
    background: rgba(12, 10, 24, 0.42);
    backdrop-filter: blur(3px);
}

.guest-detail-card {
    width: min(680px, 100%);
    background: var(--bg);
    border: 1px solid var(--border2);
    border-radius: 8px;
    box-shadow: 0 18px 60px rgba(18, 14, 46, 0.24);
    padding: 18px;
}

.guest-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.guest-detail-title {
    color: var(--text);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.guest-detail-close {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border2);
    border-radius: 7px;
    background: transparent;
    color: var(--text3);
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
}

.guest-detail-close:hover,
.guest-detail-close:focus {
    outline: none;
    background: var(--red-bg);
    color: var(--red-text);
    border-color: var(--red);
}

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

.guest-detail-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.guest-detail-field-wide,
.guest-detail-checks {
    grid-column: 1 / -1;
}

.guest-detail-field label {
    color: var(--text2);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.guest-detail-checks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.guest-detail-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid var(--border2);
    border-radius: 7px;
    background: var(--bg2);
    color: var(--text);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.guest-detail-field .guest-detail-check {
    color: var(--text);
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
}

.guest-detail-check input {
    accent-color: var(--accent);
}

.guest-detail-readonly {
    min-height: 31px;
    padding: 6px 9px;
    border: 1px solid var(--border2);
    border-radius: 7px;
    background: var(--bg2);
    color: var(--text2);
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 620px) {
    .guest-detail-overlay {
        padding-top: 12px;
    }

    .guest-detail-card {
        padding: 14px;
    }

    .guest-detail-grid,
    .guest-detail-checks {
        grid-template-columns: 1fr;
    }
}

.gi {
    font-size: 12px;
    padding: 4px 6px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    width: 100%;
    white-space: pre-wrap;
    word-break: break-word;
    resize: none;
    overflow: hidden;
    display: block;
    line-height: 1.5;
    min-height: 28px;
    height: auto;
}

.gi:hover {
    border-color: var(--border2);
    background: var(--bg2);
}

.gi:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg);
    box-shadow: 0 0 0 3px rgba(124, 111, 224, 0.12);
}

/* RSVP & diet as styled badges */
.rsvp-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.rsvp-yes {
    background: var(--green-bg);
    color: var(--green-text);
}

.rsvp-no {
    background: var(--red-bg);
    color: var(--red-text);
}

.rsvp-pending {
    background: var(--amber-bg);
    color: var(--amber-text);
}

.diet-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    background: var(--blue-bg);
    color: var(--blue-text);
    white-space: nowrap;
}

.gi-sel {
    font-size: 12px;
    padding: 4px 8px;
    border: 1px solid var(--border2);
    border-radius: 20px;
    background: var(--bg2);
    color: var(--text);
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    font-weight: 500;
}

.gi-sel:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 111, 224, 0.12);
}

.rsvp-sel-yes {
    background: var(--green-bg);
    color: var(--green-text);
    border-color: #6ee7b7;
}

.rsvp-sel-no {
    background: var(--red-bg);
    color: var(--red-text);
    border-color: #fca5a5;
}

.rsvp-sel-pending {
    background: var(--amber-bg);
    color: var(--amber-text);
    border-color: #fcd34d;
}

.diet-sel {
    background: var(--blue-bg);
    color: var(--blue-text);
    border-color: #93c5fd;
}

.sum-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    box-shadow: 0 2px 6px rgba(124, 111, 224, 0.3);
    min-width: 34px;
}

.del-btn {
    font-size: 10px;
    padding: 3px 8px;
    border: 1px solid var(--border2);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    color: var(--text3);
    font-family: inherit;
    transition: all 0.15s;
}

.del-btn:hover {
    background: var(--red-bg);
    color: var(--red-text);
    border-color: var(--red);
}

.gadd-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border2);
}

.gadd-row input {
    font-size: 12px;
    padding: 6px 10px;
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    flex: 1;
    min-width: 90px;
}

.gadd-row input:focus {
    outline: none;
    border-color: var(--accent);
}

.gadd-row button,
.add-btn {
    font-size: 13px;
    padding: 6px 16px;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    background: transparent;
    cursor: pointer;
    color: var(--accent);
    font-family: inherit;
    font-weight: 600;
    transition: all 0.15s;
}

.gadd-row button:hover,
.add-btn:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(124, 111, 224, 0.3);
}

/* ── GENERIC INPUTS ── */
.edit-input {
    font-size: 13px;
    padding: 5px 9px;
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    background: var(--bg2);
    color: var(--text);
    font-family: inherit;
    transition: border-color 0.15s;
}

.edit-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 111, 224, 0.12);
    background: var(--bg);
}

.edit-select {
    font-size: 12px;
    padding: 4px 8px;
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    background: var(--bg2);
    color: var(--text);
    font-family: inherit;
    cursor: pointer;
}

.edit-select:focus {
    outline: none;
    border-color: var(--accent);
}

.room-guest-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 240px;
}

.room-guest-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.room-guest-chip {
    align-items: center;
    background: linear-gradient(135deg, var(--accent3), var(--pink-bg));
    border: 1px solid var(--border2);
    border-radius: 20px;
    color: var(--accent);
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    gap: 5px;
    padding: 3px 8px;
}

.room-guest-chip button {
    align-items: center;
    background: transparent;
    border: none;
    color: var(--text3);
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    padding: 0;
}

.room-guest-chip button:hover {
    color: var(--red-text);
}

.room-guest-select {
    max-width: 220px;
}

.deadline-badge {
    border: 1px solid currentColor;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    white-space: nowrap;
}

.done-bucket-label {
    background: var(--green-bg);
    border: 1px solid #6ee7b7;
    border-radius: 20px;
    color: var(--green-text);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    white-space: nowrap;
}

.add-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border2);
}

.add-row input,
.add-row select {
    font-size: 13px;
    padding: 6px 10px;
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    flex: 1;
    min-width: 80px;
}

.add-row input:focus,
.add-row select:focus {
    outline: none;
    border-color: var(--accent);
}

/* ── BEDS TABLE ── */
table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

table.data th {
    font-weight: 700;
    font-size: 10px;
    color: var(--text2);
    text-align: left;
    padding: 6px 10px;
    border-bottom: 2px solid var(--border2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg2);
}

table.data td {
    padding: 7px 10px;
    border-bottom: 0.5px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}

table.data tr:hover td {
    background: var(--bg2);
}

table.data tfoot td {
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent3), var(--pink-bg));
    padding: 8px 10px;
    border-top: 2px solid var(--border2);
    font-size: 13px;
}

/* ── SEATING ── */
.seat-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 10px 14px;
    margin-bottom: 10px;
    transition: box-shadow 0.15s;
}

.seat-card:hover {
    box-shadow: var(--shadow);
}

.seat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.seat-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    background: linear-gradient(135deg, var(--accent3), var(--pink-bg));
    color: var(--accent);
    border: 1px solid var(--border2);
}

/* ── CHECKLIST ── */
.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 0.5px solid var(--border);
    font-size: 13px;
}

.check-row:last-child {
    border-bottom: none;
}

input[type=checkbox] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent);
    flex-shrink: 0;
    border-radius: 4px;
}

.ck-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.cat-tag-0 {
    background: var(--blue-bg);
    color: var(--blue-text);
}

.cat-tag-1 {
    background: var(--accent3);
    color: var(--accent);
}

.cat-tag-2 {
    background: var(--green-bg);
    color: var(--green-text);
}

.cat-tag-3 {
    background: var(--pink-bg);
    color: #be185d;
}

.cat-tag-4 {
    background: var(--amber-bg);
    color: var(--amber-text);
}

.cat-tag-5 {
    background: var(--red-bg);
    color: var(--red-text);
}

footer {
    text-align: center;
    padding: 2.5rem;
    font-size: 11px;
    color: var(--text3);
}

/* ── CONTACTS ── */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.contact-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.1rem 1.2rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}

.contact-card:hover {
    box-shadow: var(--shadow);
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.contact-cat-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.contact-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ct-field {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 6px;
    align-items: center;
    margin-bottom: 6px;
}

.ct-field label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ct-input {
    font-size: 13px;
    padding: 5px 8px;
    border: 1px solid var(--border2);
    border-radius: 8px;
    background: var(--bg2);
    color: var(--text);
    font-family: inherit;
    width: 100%;
    transition: border-color 0.15s;
}

.ct-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 111, 224, 0.12);
    background: var(--bg);
}

.ct-textarea {
    font-size: 13px;
    padding: 5px 8px;
    border: 1px solid var(--border2);
    border-radius: 8px;
    background: var(--bg2);
    color: var(--text);
    font-family: inherit;
    width: 100%;
    resize: vertical;
    min-height: 52px;
    transition: border-color 0.15s;
    line-height: 1.5;
}

.ct-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 111, 224, 0.12);
    background: var(--bg);
}

.ct-status-sel {
    font-size: 12px;
    padding: 4px 8px;
    border: 1px solid var(--border2);
    border-radius: 20px;
    background: var(--bg2);
    color: var(--text);
    font-family: inherit;
    cursor: pointer;
    font-weight: 600;
}

.ct-status-sel:focus {
    outline: none;
    border-color: var(--accent);
}

.ct-booked {
    background: var(--green-bg);
    color: var(--green-text);
    border-color: #6ee7b7;
}

.ct-pending {
    background: var(--amber-bg);
    color: var(--amber-text);
    border-color: #fcd34d;
}

.ct-enquiring {
    background: var(--blue-bg);
    color: var(--blue-text);
    border-color: #93c5fd;
}

.ct-cancelled {
    background: var(--red-bg);
    color: var(--red-text);
    border-color: #fca5a5;
}
