.tables-page {
    padding: 36px 0 60px;
    background:
        radial-gradient(circle at top left, rgba(217, 90, 43, 0.08), transparent 26%),
        radial-gradient(circle at 100% 10%, rgba(255, 255, 255, 0.72), transparent 18%),
        linear-gradient(180deg, #fcf6f1 0%, #f8f1ea 100%);
}

.tables-hero {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 24px;
    padding: 26px 28px;
    background: linear-gradient(135deg, #fffaf6 0%, #fff2e8 46%, #fffaf6 100%);
    border: 1px solid #ead9cf;
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(90, 58, 36, 0.08);
    position: relative;
    overflow: hidden;
}

.tables-hero::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(229, 106, 53, 0.16), transparent 66%);
    pointer-events: none;
}

.tables-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff4ec;
    border: 1px solid #f0d7c8;
    color: #985333;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.tables-hero h1 {
    margin: 16px 0 10px;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 0.98;
    letter-spacing: -0.05em;
    font-weight: 900;
    color: #181311;
    max-width: 760px;
}

.tables-hero p {
    margin: 0;
    max-width: 760px;
    color: #60534d;
    font-size: 17px;
    line-height: 1.8;
}

.tables-filter-card,
.tables-panel,
.tables-empty,
.tables-explainer {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #ead9cf;
    border-radius: 24px;
    box-shadow: 0 18px 34px rgba(90, 58, 36, 0.07);
}

.tables-filter-card {
    padding: 22px;
}

.tables-explainer {
    margin-top: 18px;
    padding: 24px;
    background: linear-gradient(180deg, #fffaf6 0%, #fff5ef 100%);
}

.tables-explainer-head h3 {
    margin: 8px 0 0;
    font-size: 28px;
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: #181311;
}

.tables-explainer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.tables-explainer-card {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ead9cf;
    box-shadow: 0 12px 24px rgba(90, 58, 36, 0.05);
}

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

.tables-explainer-card h4 {
    margin: 0;
    font-size: 18px;
    color: #181311;
}

.tables-explainer-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff4ec;
    border: 1px solid #efd1c0;
    color: #8b4a30;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.tables-explainer-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 18px;
    color: #5f524b;
    line-height: 1.7;
}

.tables-explainer-list li {
    margin: 0;
}

.tables-filter-form {
    display: grid;
    gap: 16px;
}

.tables-filter-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
}

.tables-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tables-filter-group label {
    font-size: 14px;
    font-weight: 800;
    color: #3f302a;
}

.tables-filter-group input,
.tables-filter-group select {
    width: 100%;
    border: 1px solid #e5d4c9;
    background: #fffdfa;
    color: #181311;
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.5;
    outline: none;
    font-family: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.tables-filter-group input:focus,
.tables-filter-group select:focus {
    border-color: #d95a2b;
    box-shadow: 0 0 0 4px rgba(217, 90, 43, 0.10);
}

.tables-filter-actions,
.tables-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.tables-results-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin: 24px 0 18px;
}

.tables-results-kicker {
    color: #a15f40;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 12px;
    font-weight: 900;
}

.tables-results-head h2 {
    margin: 8px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 900;
    color: #181311;
}

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

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

.tables-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ead9cf;
    border-radius: 26px;
    box-shadow: 0 18px 34px rgba(90, 58, 36, 0.08);
    padding: 22px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tables-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 44px rgba(90, 58, 36, 0.12);
}

.tables-card-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
}

.tables-card-pill-group,
.tables-card-host {
    display: flex;
}

.tables-card-host {
    align-items: center;
    gap: 12px;
}

.tables-card-avatar,
.table-host-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #fff3eb;
    border: 1px solid #efd1c0;
    color: #8b4a30;
    font-weight: 900;
    font-size: 16px;
    flex: 0 0 auto;
}

.tables-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tables-card-byline {
    font-size: 14px;
    font-weight: 800;
    color: #3e322d;
}

.tables-card-byline a {
    color: #d95a2b;
}

.tables-card-date {
    margin-top: 4px;
    color: #796a62;
    font-size: 13px;
    font-weight: 700;
}

.tables-card-pill-group {
    flex-wrap: wrap;
    gap: 8px;
}

.tables-card-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff7f1 0%, #fff0e7 100%);
    border: 1px solid #efd1c0;
    color: #8b4a30;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.tables-card-pill-strong {
    background: linear-gradient(135deg, #e56a35 0%, #d95a2b 58%, #be4a1f 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 24px rgba(217, 90, 43, 0.18);
}

.tables-card h3 {
    margin: 16px 0 10px;
    font-size: 30px;
    line-height: 1.04;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.tables-card h3 a {
    color: #181311;
}

.tables-card-description {
    margin: 0;
    color: #5f524b;
    font-size: 16px;
    line-height: 1.8;
}

.tables-card-now-serving {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fffaf6 0%, #fff6ef 100%);
    border: 1px solid #ead9cf;
}

.tables-card-label {
    display: block;
    color: #a15f40;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    font-weight: 900;
    margin-bottom: 8px;
}

.tables-card-now-serving a {
    color: #d95a2b;
    font-weight: 800;
}

.tables-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 800;
    color: #6a5850;
}

.tables-card-schedule {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff7f1 0%, #fffdfb 100%);
    border: 1px solid #ead9cf;
}

.tables-card-schedule strong {
    display: block;
    color: #181311;
}

.tables-card-schedule span {
    display: block;
    margin-top: 4px;
    color: #7a665c;
    font-size: 13px;
    font-weight: 700;
}

.tables-card-actions {
    margin-top: 18px;
    align-items: center;
    row-gap: 10px;
}

.tables-card-actions .btn {
    flex: 0 0 auto;
}

.tables-card-status,
.tables-pagination-status,
.table-sidebar-list {
    color: #5f524b;
    font-size: 13px;
    font-weight: 800;
}

.tables-card-status {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 2px;
    margin-left: auto;
}

.tables-empty,
.tables-panel {
    padding: 24px;
}

.tables-empty h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.tables-empty p {
    margin: 0 0 18px;
    color: #60534d;
    line-height: 1.8;
}

.table-invite-form {
    display: grid;
    gap: 10px;
}

.table-add-movie-form,
.table-talk-form {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.table-invite-label {
    font-size: 14px;
    font-weight: 800;
    color: #3f302a;
}

.table-invite-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.table-invite-input {
    flex: 1 1 auto;
    width: 100%;
    border: 1px solid #e5d4c9;
    background: #fffdfa;
    color: #181311;
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.5;
    outline: none;
    font-family: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.table-invite-input:focus {
    border-color: #d95a2b;
    box-shadow: 0 0 0 4px rgba(217, 90, 43, 0.10);
}

.table-talk-textarea {
    width: 100%;
    border: 1px solid #e5d4c9;
    background: #fffdfa;
    color: #181311;
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.6;
    outline: none;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.table-talk-textarea:focus {
    border-color: #d95a2b;
    box-shadow: 0 0 0 4px rgba(217, 90, 43, 0.10);
}

.table-talk-actions {
    display: flex;
    justify-content: flex-start;
}

.table-invite-help {
    margin: 0;
    color: #7b675d;
    font-size: 13px;
    line-height: 1.7;
    font-weight: 700;
}

.table-pending-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.table-pending-item {
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fffaf6 0%, #fff4ee 100%);
    border: 1px solid #ead9cf;
}

.table-pending-item strong {
    display: block;
    color: #181311;
}

.table-pending-item span {
    display: block;
    margin-top: 4px;
    color: #6e5c53;
    font-size: 13px;
    font-weight: 700;
}

.tables-pagination {
    margin-top: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

.tables-stack {
    display: grid;
    gap: 24px;
}

.table-sidebar-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #ead9cf;
    border-radius: 24px;
    box-shadow: 0 18px 34px rgba(90, 58, 36, 0.08);
}

.table-sidebar-card h3 {
    margin: 10px 0;
    font-size: 28px;
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.table-host-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.table-host-identity strong {
    display: block;
    color: #181311;
}

.table-host-identity p {
    margin: 4px 0 0;
    color: #5f524b;
    line-height: 1.6;
}

.table-field-help {
    color: #7b675d;
    font-size: 13px;
    line-height: 1.6;
    font-weight: 700;
}

.table-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 18px;
    margin: 14px 0 22px;
    line-height: 1.8;
}

@media (max-width: 1100px) {
    .tables-hero,
    .tables-results-head {
        flex-direction: column;
        align-items: start;
    }

    .tables-filter-grid,
    .tables-explainer-grid,
    .tables-grid,
    .tables-grid-compact {
        grid-template-columns: 1fr;
    }

    .table-invite-row {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 720px) {
    .tables-page {
        padding: 24px 0 44px;
    }

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

    .tables-card-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .tables-card-status {
        min-height: 0;
        margin-left: 0;
        width: 100%;
    }

    .tables-hero,
    .tables-filter-card,
    .tables-explainer,
    .tables-panel,
    .tables-empty {
        padding: 20px;
    }
}
