/* Guest booking portal */
.qq-guest-portal-body {
    min-height: 100vh;
    background:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(56, 189, 248, 0.12), transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(34, 197, 94, 0.08), transparent 45%),
        linear-gradient(180deg, #f1f5f9 0%, #eef2f7 40%, #f8fafc 100%);
    padding-bottom: 4.5rem;
}

.qq-guest-portal-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
}

.qq-guest-top-link {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border-radius: 0.55rem;
    text-decoration: none;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.qq-guest-top-link:hover { background: #f1f5f9; color: #0f2744; }
.qq-guest-top-link.active { background: #0f2744; color: #fff; }

.qq-guest-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #fff;
    border-top: 1px solid #e2e8f0;
    z-index: 1030;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 20px rgba(15, 39, 68, 0.06);
}

.qq-guest-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.55rem 0.35rem;
    text-decoration: none;
    color: #64748b;
    font-size: 0.7rem;
    transition: color 0.15s;
}

.qq-guest-bottom-nav a i { font-size: 1.15rem; }
.qq-guest-bottom-nav a.active { color: #0f2744; font-weight: 600; }

.qq-guest-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(15, 39, 68, 0.05);
}

/* Hero */
.qq-guest-hero {
    border-radius: 1.15rem;
    overflow: hidden;
    background: linear-gradient(135deg, #0f2744 0%, #1a3a5c 55%, #0b1c33 100%);
    color: #fff;
    box-shadow: 0 16px 40px rgba(15, 39, 68, 0.22);
}

.qq-guest-hero-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.5rem 1.35rem;
    position: relative;
}

.qq-guest-hero-inner::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.15);
    right: -40px;
    top: -50px;
    pointer-events: none;
}

.qq-guest-hero-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

.qq-guest-hero-title {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.qq-guest-hero-sub {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    max-width: 28rem;
}

.qq-guest-hero-cta {
    font-weight: 600;
    border-radius: 0.65rem;
    padding: 0.55rem 1.1rem;
    position: relative;
    z-index: 1;
}

/* Stats */
.qq-guest-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .qq-guest-stats { grid-template-columns: repeat(4, 1fr); }
}

.qq-guest-stat {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    padding: 0.9rem 1rem;
    box-shadow: 0 4px 14px rgba(15, 39, 68, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.qq-guest-stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    font-weight: 600;
}

.qq-guest-stat-value {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f2744;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* Booking cards */
.qq-guest-booking-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.qq-guest-booking-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.15rem 1.2rem;
    box-shadow: 0 8px 24px rgba(15, 39, 68, 0.05);
    transition: transform 0.15s, box-shadow 0.15s;
}

.qq-guest-booking-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 39, 68, 0.08);
}

@media (min-width: 576px) {
    .qq-guest-booking-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.qq-guest-booking-card-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.35rem;
}

.qq-guest-booking-title {
    font-size: 1.05rem;
    font-weight: 650;
    color: #0f2744;
    margin: 0;
}

.qq-guest-booking-meta {
    font-size: 0.8rem;
    color: #64748b;
}

.qq-guest-booking-dates {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.65rem;
    font-size: 0.85rem;
    color: #334155;
}

.qq-guest-booking-dates i { color: #94a3b8; }
.qq-guest-booking-arrow { font-size: 0.75rem; color: #cbd5e1 !important; }

.qq-guest-booking-nights {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.qq-guest-booking-card-side {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

@media (min-width: 576px) {
    .qq-guest-booking-card-side {
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
    }
}

.qq-guest-booking-amount {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f2744;
    letter-spacing: -0.02em;
}

.qq-guest-empty {
    padding: 2.5rem 1.5rem !important;
}

.qq-guest-empty-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #e0f2fe, #ecfdf5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #0f2744;
}

.qq-guest-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #334155;
}

.qq-guest-status--paid,
.qq-guest-status--confirmed,
.qq-guest-status--completed { background: #ecfdf5; color: #047857; }
.qq-guest-status--processing,
.qq-guest-status--payment_submitted { background: #fffbeb; color: #b45309; }
.qq-guest-status--pending_payment { background: #eff6ff; color: #1d4ed8; }
.qq-guest-status--not_available,
.qq-guest-status--cancelled,
.qq-guest-status--rejected { background: #fef2f2; color: #b91c1c; }

.qq-guest-booking-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #f1f5f9;
}

.qq-guest-booking-row:last-child { border-bottom: 0; }

@media (min-width: 576px) {
    .qq-guest-booking-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* Profile */
.qq-guest-profile-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(15, 39, 68, 0.05);
}

.qq-guest-profile-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0;
}

.qq-guest-profile-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #0f2744, #1a4a7a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.qq-guest-section-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    background: #0f2744;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qq-guest-section-icon--soft {
    background: #f1f5f9;
    color: #0f2744;
}

.qq-guest-profile-form .form-label {
    font-weight: 600;
    font-size: 0.875rem;
}

.qq-guest-portal-main .qq-guest-input-wrap > i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 2;
}

.qq-guest-portal-main .qq-guest-input-wrap {
    position: relative;
}

.qq-guest-portal-main .qq-guest-input-wrap .form-control {
    padding-left: 2.35rem;
    border-radius: 0.65rem;
    min-height: 2.65rem;
}

/* Booking detail */
.qq-guest-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    text-decoration: none;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.qq-guest-back-link:hover { color: #0f2744; }

.qq-guest-detail-hero {
    border-radius: 1.15rem;
    padding: 1.35rem 1.25rem;
    background: linear-gradient(135deg, #0f2744 0%, #1a3a5c 55%, #0b1c33 100%);
    color: #fff;
    box-shadow: 0 16px 40px rgba(15, 39, 68, 0.2);
}

.qq-guest-detail-amount {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.qq-guest-detail-amount strong {
    font-size: 1.35rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.qq-guest-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
}

.qq-guest-detail-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.qq-guest-detail-grid strong {
    font-size: 0.95rem;
    color: #0f2744;
    font-weight: 600;
}

.qq-guest-pay-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.qq-guest-pay-row:last-child { border-bottom: 0; padding-bottom: 0; }
.qq-guest-pay-row:first-child { padding-top: 0; }

.qq-guest-success-panel {
    border-color: #bbf7d0;
    background: linear-gradient(180deg, #f0fdf4, #fff);
}

/* Guest login / register */
.qq-guest-auth {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem 2rem;
    overflow: hidden;
}

.qq-guest-auth-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #0f2744 0%, #1a3668 45%, #0b1c33 100%);
    z-index: 0;
}

.qq-guest-auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.35;
}

.qq-guest-auth-orb--1 {
    width: 280px;
    height: 280px;
    background: #22c55e;
    top: -60px;
    right: -40px;
}

.qq-guest-auth-orb--2 {
    width: 220px;
    height: 220px;
    background: #38bdf8;
    bottom: 10%;
    left: -50px;
}

.qq-guest-auth-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
}

.qq-guest-auth-shell--wide {
    max-width: 560px;
}

.qq-guest-auth-kicker {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.qq-guest-auth-card {
    position: relative;
    background: #fff;
    border-radius: 1.15rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.qq-guest-auth-card-accent {
    height: 4px;
    background: linear-gradient(90deg, #16a34a, #0f2744, #38bdf8);
}

.qq-guest-input-wrap {
    position: relative;
}

.qq-guest-input-wrap > i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 2;
}

.qq-guest-input-wrap .form-control {
    padding-left: 2.35rem;
    border-radius: 0.65rem;
    min-height: 2.75rem;
}

.qq-guest-auth-form .form-label {
    font-weight: 600;
    font-size: 0.875rem;
}

@media (max-width: 575.98px) {
    .qq-guest-auth {
        padding: 1rem 0.75rem 1.5rem;
        align-items: flex-start;
        padding-top: 2rem;
    }

    .qq-guest-auth-card {
        border-radius: 1rem;
    }
}
