/* Professional Frontend Styles for Hotel Upsell System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --hus-primary: #4f46e5;
    --hus-primary-hover: #4338ca;
    --hus-bg: #f3f4f6;
    --hus-card-bg: #ffffff;
    --hus-text-main: #111827;
    --hus-text-muted: #6b7280;
    --hus-success: #10b981;
    --hus-border: #e5e7eb;
    --hus-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --hus-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --hus-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --hus-radius: 12px;
}

.hus-reception-container {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 24px;
    color: var(--hus-text-main);
    line-height: 1.5;
}

/* Header */
.hus-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--hus-border);
    padding-bottom: 24px;
}

.hus-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0 0 8px 0;
}

.hus-header p {
    color: var(--hus-text-muted);
    font-size: 1.1rem;
    margin: 0;
}

.hus-status-badge {
    background: #ecfdf5;
    color: #065f46;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    border: 1px solid #d1fae5;
}

.hus-dot {
    width: 6px;
    height: 6px;
    background: var(--hus-success);
    border-radius: 50%;
    margin-right: 8px;
}

/* Tabs */
.hus-tabs {
    display: flex;
    background: #e5e7eb;
    padding: 4px;
    border-radius: 14px;
    margin-bottom: 40px;
    width: fit-content;
}

.hus-tab-btn {
    padding: 10px 24px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--hus-text-muted);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hus-tab-btn.active {
    background: var(--hus-card-bg);
    color: var(--hus-text-main);
    box-shadow: var(--hus-shadow-sm);
}

/* Bid Section */
.hus-bid-card {
    background: var(--hus-card-bg);
    border-radius: 20px;
    padding: 48px;
    box-shadow: var(--hus-shadow-lg);
    border: 1px solid var(--hus-border);
    max-width: 600px;
    margin: 0 auto;
}

.hus-bid-card h3 {
    font-size: 1.75rem;
    margin-top: 0;
}

.hus-bid-card p {
    color: var(--hus-text-muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.hus-bid-value {
    font-size: 4rem;
    font-weight: 800;
    color: var(--hus-primary);
    margin: 24px 0;
    font-variant-numeric: tabular-nums;
}

.hus-currency {
    font-size: 1.5rem;
    font-weight: 500;
    vertical-align: middle;
    margin-left: 4px;
}

/* Range Slider */
.hus-range-wrapper {
    margin: 40px 0;
}

#hus-bid-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 5px;
    outline: none;
}

#hus-bid-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    background: var(--hus-primary);
    cursor: pointer;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: var(--hus-shadow-md);
}

/* Product Grids */
.hus-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.hus-product-card {
    background: var(--hus-card-bg);
    border-radius: 16px;
    border: 1px solid var(--hus-border);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.hus-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hus-shadow-lg);
}

.hus-product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #f3f4f6;
}

.hus-product-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.hus-product-content h4 {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.hus-product-content .price-tag {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hus-primary);
    margin-bottom: 24px;
}

/* Buttons */
.hus-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hus-primary);
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.hus-btn-primary:hover {
    background: var(--hus-primary-hover);
}

/* Modal */
.hus-modal {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(8px);
}

.hus-modal-content {
    border-radius: 20px;
    border: none;
    padding: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .hus-header { flex-direction: column; align-items: flex-start; }
    .hus-status-badge { margin-top: 16px; }
    .hus-header h1 { font-size: 2rem; }
    .hus-bid-card { padding: 32px 24px; }
    .hus-bid-value { font-size: 3rem; }
}

/* Success Page Premium Styling */
.hus-success-card {
    background: var(--hus-card-bg);
    border-radius: 24px;
    padding: 60px 48px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--hus-border);
    max-width: 650px;
    margin: 40px auto;
    text-align: center;
    animation: husFadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes husFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hus-success-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

/* Styled Checkmark Animation */
.hus-success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: var(--hus-success);
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px var(--hus-success);
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.hus-success-checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: var(--hus-success);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.hus-success-checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: var(--hus-success);
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 40px rgba(16, 185, 129, 0.08);
    }
}

.hus-success-card h2 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0 0 12px 0;
    background: linear-gradient(135deg, #111827 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hus-success-subtitle {
    font-size: 1.1rem;
    color: var(--hus-text-muted);
    margin: 0 0 40px 0;
}

.hus-success-details {
    background: #f9fafb;
    border: 1px solid var(--hus-border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 40px;
    text-align: left;
}

.hus-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed var(--hus-border);
}

.hus-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hus-detail-row:first-child {
    padding-top: 0;
}

.hus-detail-label {
    font-size: 0.95rem;
    color: var(--hus-text-muted);
    font-weight: 500;
}

.hus-detail-value {
    font-size: 0.95rem;
    color: var(--hus-text-main);
    font-weight: 600;
}

.hus-success-footer p {
    font-size: 0.95rem;
    color: var(--hus-text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Bid Strength Indicator Styling */
.hus-strength-container {
    margin-top: 24px;
    margin-bottom: 32px;
    background: #f9fafb;
    border: 1px solid var(--hus-border);
    border-radius: 12px;
    padding: 16px 20px;
    text-align: left;
}

.hus-strength-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--hus-text-main);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#hus-strength-text {
    font-size: 0.8125rem;
    padding: 2px 10px;
    border-radius: 9999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Color codes for text badge */
.hus-strength-text-weak {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fee2e2;
}

.hus-strength-text-fair {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fef3c7;
}

.hus-strength-text-strong {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #d1fae5;
}

.hus-strength-bar-wrapper {
    height: 6px;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

#hus-strength-bar {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s ease;
}

/* Color codes for progress bar */
#hus-strength-bar.hus-strength-weak {
    background: #ef4444;
}

#hus-strength-bar.hus-strength-fair {
    background: #f59e0b;
}

#hus-strength-bar.hus-strength-strong {
    background: #10b981;
}

/* Good strength tier */
.hus-strength-text-good {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}
#hus-strength-bar.hus-strength-good {
    background: #22c55e;
}

/* ==============================
   VERIFICATION GATE
   ============================== */
.hus-verification-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.hus-verification-card {
    background: var(--hus-card-bg);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--hus-border);
    max-width: 460px;
    width: 100%;
    animation: husFadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hus-verification-header {
    text-align: center;
    margin-bottom: 32px;
}

.hus-logo-placeholder {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hus-logo-placeholder svg {
    width: 32px;
    height: 32px;
    color: var(--hus-primary);
}

.hus-verification-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.hus-verification-header p {
    color: var(--hus-text-muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.hus-verification-form .hus-form-group {
    margin-bottom: 20px;
}

.hus-verification-form label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 6px;
    color: var(--hus-text-main);
}

.hus-verification-form label .optional {
    font-weight: 400;
    color: var(--hus-text-muted);
    font-size: 0.8rem;
}

.hus-verification-form input[type="text"],
.hus-verification-form input[type="email"],
.hus-verification-form input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--hus-border);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafafa;
    box-sizing: border-box;
}

.hus-verification-form input:focus {
    outline: none;
    border-color: var(--hus-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background: #fff;
}

.hus-phone-input-group {
    display: flex;
    gap: 0;
}

.hus-input-note {
    font-size: 0.8rem;
    color: var(--hus-text-muted);
    margin-top: 4px;
}

.hus-gate-error-message {
    background: #fef2f2;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 16px;
    border: 1px solid #fee2e2;
}

/* ==============================
   ROOM SELECTOR PILLS
   ============================== */
.hus-room-selector {
    margin-bottom: 28px;
}

.hus-room-selector label {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: block;
}

.hus-room-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hus-room-pill {
    padding: 10px 20px;
    border: 2px solid var(--hus-border);
    border-radius: 12px;
    background: var(--hus-card-bg);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
    color: var(--hus-text-muted);
}

.hus-room-pill:hover {
    border-color: var(--hus-primary);
    color: var(--hus-primary);
}

.hus-room-pill.active {
    background: var(--hus-primary);
    color: white;
    border-color: var(--hus-primary);
}

/* ==============================
   RANGE LABELS
   ============================== */
.hus-range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--hus-text-muted);
    font-weight: 500;
}

/* Currency symbol in bid value */
.hus-currency-symbol {
    font-size: 2rem;
    font-weight: 500;
    vertical-align: super;
    margin-right: 4px;
    opacity: 0.7;
}

/* ==============================
   TOAST NOTIFICATIONS
   ============================== */
#hus-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hus-toast {
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--hus-shadow-lg);
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 360px;
}

.hus-toast.show {
    transform: translateX(0);
}

.hus-toast-success { background: #059669; color: white; }
.hus-toast-error { background: #dc2626; color: white; }
.hus-toast-info { background: #2563eb; color: white; }

/* ==============================
   MODAL ENHANCEMENTS
   ============================== */
.hus-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.hus-modal-content {
    background: var(--hus-card-bg);
    border-radius: 20px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    margin: auto;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.hus-close-modal {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--hus-text-muted);
    transition: color 0.2s;
}
.hus-close-modal:hover { color: var(--hus-text-main); }

.hus-modal-summary {
    background: #f9fafb;
    border: 1px solid var(--hus-border);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.hus-modal-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
}

.hus-modal-summary-row span:first-child {
    color: var(--hus-text-muted);
}

.hus-modal-amount-value {
    font-weight: 700;
    color: var(--hus-primary);
    font-size: 1.1rem;
}

/* ==============================
   PRODUCT CARD ENHANCEMENTS
   ============================== */
.hus-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
}

.hus-product-desc {
    font-size: 0.9rem;
    color: var(--hus-text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* ==============================
   SPINNER
   ============================== */
.hus-spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: husSpinRotate 0.6s linear infinite;
    display: inline-block;
}

.hus-spinner.hidden {
    display: none;
}

@keyframes husSpinRotate {
    to { transform: rotate(360deg); }
}

/* Responsive gate */
@media (max-width: 480px) {
    .hus-verification-card {
        padding: 32px 24px;
    }
    .hus-room-pills {
        flex-direction: column;
    }
    .hus-room-pill {
        width: 100%;
        text-align: center;
    }
}
