:root {
    --reception-bg: #08111f;
    --reception-card: rgba(8, 17, 31, 0.78);
    --reception-border: rgba(148, 163, 184, 0.2);
    --reception-text: #f8fafc;
    --reception-muted: #cbd5e1;
    --reception-accent: #f59e0b;
    --reception-accent-soft: rgba(245, 158, 11, 0.18);
}

.hidden {
    display: none !important;
}

body.reception-output-body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 32%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.14), transparent 34%),
        var(--reception-bg);
    color: var(--reception-text);
    overflow: hidden;
}

.reception-page-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reception-card {
    width: min(680px, 100%);
    padding: 40px;
    border-radius: 28px;
    border: 1px solid var(--reception-border);
    background:
        linear-gradient(160deg, rgba(15, 23, 42, 0.9), rgba(8, 17, 31, 0.92)),
        var(--reception-card);
    box-shadow: 0 24px 64px rgba(2, 6, 23, 0.45);
}

.reception-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--reception-accent-soft);
    color: #fde68a;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.reception-card h1,
.reception-copy-block h1,
.reception-active-card h2 {
    margin: 18px 0 10px;
    color: var(--reception-text);
}

.reception-card {
    text-align: center;
}

.reception-card h1 {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    line-height: 0.96;
}

.reception-card > p {
    max-width: 34rem;
    margin: 0 auto;
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}

.reception-card p,
.reception-copy-block p,
.reception-active-card p {
    color: var(--reception-muted);
}

.reception-lookup-form {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reception-lookup-form .input-group {
    position: relative;
    width: min(100%, 560px);
    text-align: center;
}

#guestSearchInput {
    font-size: 16px;
    min-height: 64px;
    padding: 18px 20px;
    border-radius: 16px;
    text-align: center;
}

.reception-lookup-form label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--reception-text);
    text-align: center;
}

.reception-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 5;
    max-height: 280px;
    overflow: auto;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(8, 17, 31, 0.95);
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.35);
}

.reception-suggestion-item {
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    background: transparent;
    color: var(--reception-text);
    text-align: left;
    padding: 14px 16px;
    cursor: pointer;
}

.reception-suggestion-item:last-child {
    border-bottom: 0;
}

.reception-suggestion-item strong {
    display: block;
    font-size: 0.98rem;
}

.reception-suggestion-item span {
    display: block;
    margin-top: 4px;
    color: var(--reception-muted);
    font-size: 0.84rem;
}

.reception-suggestion-item:hover,
.reception-suggestion-item:focus {
    background: rgba(245, 158, 11, 0.12);
    outline: none;
}

.reception-match {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
    width: min(100%, 560px);
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(245, 158, 11, 0.22);
    background: rgba(245, 158, 11, 0.08);
}

.reception-match-label {
    margin: 0 0 6px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fde68a;
}

.reception-match strong {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--reception-text);
}

.submit-actions {
    width: min(100%, 560px);
    margin-top: 14px;
}

#receptionSubmitBtn {
    width: 100%;
    min-height: 62px;
    font-size: 1.08rem;
    border-radius: 16px;
}

#receptionFeedback {
    width: min(100%, 560px);
    margin-top: 16px;
}

.reception-output-shell {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #020617;
}

.reception-video-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.reception-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
}

.reception-overlay-idle {
    display: block;
    padding: 0;
    background: none;
}

.reception-copy-block {
    position: absolute;
    max-width: none;
}

.reception-copy-block h1 {
    font-size: clamp(2.4rem, 5vw, 5.4rem);
    line-height: 0.96;
}

.reception-copy-block p {
    font-size: clamp(1rem, 1.6vw, 1.6rem);
    max-width: 34rem;
}

.reception-qr-card,
.reception-active-card {
    padding: 24px;
    border-radius: 26px;
    border: 1px solid var(--reception-border);
    background: rgba(8, 17, 31, 0.7);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35);
}

.reception-qr-card {
    position: absolute;
    width: min(28vw, 360px);
    text-align: center;
}

.reception-qr-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 18px;
    background: #fff;
    padding: 16px;
    box-sizing: border-box;
}

.reception-qr-card p {
    margin: 16px 0 0;
    font-size: clamp(0.95rem, 1.3vw, 1.25rem);
}

.reception-overlay-active {
    inset: auto;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    background: none;
    z-index: 3;
}

.reception-preloader {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(8, 17, 31, 0.82);
    color: var(--reception-text);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.35);
    min-width: 240px;
}

.reception-preloader strong {
    display: block;
    font-size: 0.95rem;
}

.reception-preloader p {
    margin: 4px 0 0;
    font-size: 0.86rem;
    color: var(--reception-muted);
}

.reception-preloader-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.22);
    border-top-color: #f59e0b;
    border-radius: 50%;
    animation: reception-spin 0.9s linear infinite;
    flex: 0 0 auto;
}

@keyframes reception-spin {
    to {
        transform: rotate(360deg);
    }
}

.reception-active-card h2 {
    font-size: clamp(1rem, 2.6vw, 3rem);
    margin-bottom: 8px;
    line-height: 1;
}

.reception-active-card p {
    font-size: clamp(0.8rem, 1.35vw, 1.5rem);
    margin: 0;
}

#activeCard {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

#activeBadge {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#activeGuestName,
#activeTableName {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reception-output-status {
    position: absolute;
    left: 24px;
    bottom: 24px;
    z-index: 3;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(8, 17, 31, 0.72);
    border: 1px solid var(--reception-border);
    color: var(--reception-text);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .reception-card {
        padding: 24px;
        border-radius: 22px;
    }

    .reception-card h1 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .reception-match {
        grid-template-columns: 1fr;
    }

    .reception-overlay-idle {
        display: block;
    }

    .reception-copy-block,
    .reception-qr-card {
        max-width: none;
    }
}
