/* VDA DOOH v2.0.0 - Agoda FOMO & Digital OOH Billboard Styles */
.vda-dooh-app {
    max-width: 1140px;
    margin: 25px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    color: #1e293b;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.vda-dooh-nav-tabs {
    display: flex;
    background: #0f172a;
    padding: 0 15px;
    gap: 8px;
    flex-wrap: wrap;
}

.vda-tab-btn {
    background: transparent;
    color: #94a3b8;
    border: none;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.vda-tab-btn:hover {
    color: #ffffff;
}

.vda-tab-btn.active {
    color: #f59e0b;
    border-bottom-color: #f59e0b;
    background: rgba(255, 255, 255, 0.05);
}

.vda-tab-panel {
    padding: 25px;
}

.vda-dooh-login-notice {
    background: #fffbeb;
    border: 1px solid #f59e0b;
    color: #92400e;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.vda-step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    background: #f8fafc;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    gap: 10px;
    flex-wrap: wrap;
}

.step-item {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-item span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #cbd5e1;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.step-item.active {
    color: #0f172a;
}

.step-item.active span {
    background: #2563eb;
}

.vda-config-row {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.vda-field-col {
    flex: 1;
    min-width: 260px;
}

.vda-field-group {
    margin-bottom: 18px;
}

.vda-dooh-app label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: #334155;
}

.vda-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    box-sizing: border-box;
}

.vda-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.vda-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #64748b;
}

/* Slot Legend & 24h FOMO Grid */
.vda-slot-legend {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin: 15px 0;
    padding: 10px 15px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 13px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-item .dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
}

.dot.empty { background: #dcfce7; border: 1px solid #16a34a; }
.dot.shared { background: #fef3c7; border: 1px solid #d97706; }
.dot.prime { background: #fee2e2; border: 1px solid #dc2626; }
.dot.locked { background: #e2e8f0; border: 1px solid #94a3b8; }

.vda-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.vda-slot-card {
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.18s ease;
    position: relative;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vda-slot-card:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #2563eb;
}

.vda-slot-card.state-EMPTY {
    background: #f0fdf4;
    border-color: #86efac;
}

.vda-slot-card.state-LOCKED_SHARED {
    background: #fffbeb;
    border-color: #fcd34d;
}

.vda-slot-card.is-prime:not(.disabled) {
    border-color: #ef4444;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.2);
}

.vda-slot-card.selected {
    background: #1d4ed8 !important;
    border-color: #1e3a8a !important;
    color: #ffffff !important;
    transform: scale(1.02);
}

.vda-slot-card.selected .slot-time,
.vda-slot-card.selected .slot-price,
.vda-slot-card.selected .slot-badge {
    color: #ffffff !important;
}

.vda-slot-card.disabled {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.75;
}

.slot-time {
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
}

.slot-price {
    font-size: 15px;
    font-weight: 800;
    color: #b91c1c;
    margin: 6px 0;
}

.slot-badge {
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
}

.prime-tag {
    position: absolute;
    top: -8px;
    right: 8px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Downsell Box */
.vda-downsell-box {
    background: #eff6ff;
    border: 1px dashed #3b82f6;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.vda-downsell-box h4 {
    margin: 0 0 6px;
    color: #1d4ed8;
}

.vda-downsell-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Selection Bar */
.vda-selection-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0f172a;
    color: #fff;
    padding: 16px 22px;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 15px;
}

.selection-price strong {
    color: #f59e0b;
    font-size: 20px;
}

/* Buttons & Alerts */
.vda-btn {
    padding: 11px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vda-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vda-btn-primary { background: #2563eb; color: #fff; }
.vda-btn-primary:hover:not(:disabled) { background: #1d4ed8; }
.vda-btn-secondary { background: #334155; color: #fff; }
.vda-btn-outline { background: #fff; color: #334155; border: 1px solid #cbd5e1; }
.vda-btn-danger-outline { background: #fff; color: #dc2626; border: 1px solid #fca5a5; }
.vda-btn-gold { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; font-size: 16px; padding: 13px 26px; }

.vda-alert-warning {
    background: #fef2f2;
    border-left: 4px solid #dc2626;
    padding: 14px 18px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 13.5px;
    color: #7f1d1d;
}

.vda-alert-warning ul {
    margin: 8px 0 0 18px;
    padding: 0;
}

.vda-alert-info {
    background: #f0f9ff;
    border-left: 4px solid #0284c7;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 13.5px;
    color: #0c4a6e;
}

.vda-step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

/* Step 3: FOMO Checkout */
.vda-fomo-checkout-card {
    max-width: 780px;
    margin: 0 auto;
    border: 2px solid #dc2626;
    border-radius: 12px;
    padding: 25px;
    background: #fff;
}

.vda-timer-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #fef2f2;
    padding: 15px;
    border-radius: 8px;
    color: #dc2626;
    margin-bottom: 15px;
}

.timer-icon { font-size: 32px; }
#vda-countdown-timer {
    font-size: 32px;
    font-weight: 900;
    margin-left: 10px;
    font-variant-numeric: tabular-nums;
}

.vda-policy-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.vda-checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 500 !important;
    line-height: 1.5;
}

.vda-checkbox-label input {
    margin-top: 4px;
    transform: scale(1.25);
}

.vda-qr-grid {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.qr-image-col {
    flex: 0 0 240px;
    text-align: center;
    margin: 0 auto;
}

.qr-image-col img {
    width: 220px;
    height: 220px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    padding: 6px;
}

.qr-scan-hint {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
}

.qr-details-col {
    flex: 1;
    min-width: 260px;
}

.qr-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #cbd5e1;
    font-size: 14px;
}

.qr-detail-row.highlight strong {
    color: #dc2626;
    font-size: 17px;
}

.vda-polling-status {
    margin-top: 15px;
    padding: 10px 14px;
    background: #ecfdf5;
    color: #047857;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

/* FRONTEND BILLBOARD DISPLAY ([vda_dooh_display]) */
.vda-dooh-billboard-container {
    width: 100%;
    margin: 0 auto 30px;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    border: 2px solid #1e293b;
}

.vda-billboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    background: #0f172a;
    color: #ffffff;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid #1e293b;
}

.live-pulse-badge {
    background: #dc2626;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    margin-right: 10px;
    animation: vdaPulse 1.5s infinite;
}

.ooh-loop-badge {
    background: #f59e0b;
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    margin-right: 10px;
}

@keyframes vdaPulse {
    0% { opacity: 1; }
    50% { opacity: 0.65; }
    100% { opacity: 1; }
}

.vda-youtube-live-wrapper {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    background: #000;
}

.vda-youtube-live-wrapper .live-video-box {
    flex: 1 1 68%;
    min-width: 300px;
}

.vda-youtube-live-wrapper .live-chat-box {
    flex: 1 1 32%;
    min-width: 280px;
    min-height: 420px;
    background: #fff;
}

.vda-aspect-16-9 {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.vda-aspect-16-9 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Shared Carousel */
.vda-ooh-carousel {
    position: relative;
    width: 100%;
    background: #000;
}

.vda-ooh-slide {
    display: none;
    position: relative;
}

.vda-ooh-slide.active {
    display: block;
}

.vda-banner-stage {
    position: relative;
    text-align: center;
    background: #0f172a;
}

.vda-responsive-banner-img {
    width: 100%;
    max-height: 540px;
    object-fit: cover;
    display: block;
}

.vda-floating-cta-badge {
    position: absolute;
    bottom: 18px;
    right: 18px;
    background: rgba(220, 38, 38, 0.95);
    color: #fff;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.vda-slide-overlay-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: #1e293b;
    color: #fff;
    font-size: 14px;
}

.vda-slide-cta, .vda-billboard-cta-btn, .vda-book-slot-fomo {
    background: #f59e0b;
    color: #0f172a !important;
    padding: 6px 14px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none !important;
}

.vda-report-btn {
    background: rgba(255,255,255,0.1);
    color: #cbd5e1;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.vda-report-btn.corner-report {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.75);
}

.vda-ooh-progress-track {
    width: 100%;
    height: 4px;
    background: #1e293b;
}

.vda-ooh-progress-bar {
    width: 0%;
    height: 100%;
    background: #f59e0b;
    transition: width 0.25s linear;
}

/* Empty Promo Billboard */

.vda-empty-billboard-promo {
    width: 100%;
    background: #0f172a;
    position: relative;
}

.vda-empty-aspect-ratio {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Cố định tỷ lệ chuẩn 16:9 của Video/Banner Desktop */
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.vda-empty-content {
    position: absolute;
    top: 15px; left: 15px; right: 15px; bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: #ffffff;
    border: 2px dashed #475569; /* Viền nét đứt tạo cảm giác "Placeholder" chờ chèn ảnh */
    border-radius: 8px;
}

.vda-empty-content .promo-badge {
    display: inline-block;
    background: #dc2626;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vda-empty-content h3 {
    color: #ffffff;
    font-size: 26px;
    margin: 0 0 10px;
    font-weight: 700;
}

.vda-empty-content p {
    color: #94a3b8;
    font-size: 16px;
    margin-bottom: 25px;
}

.vda-empty-content .vda-btn-gold {
    background: #f59e0b;
    color: #0f172a !important;
    font-size: 16px;
    font-weight: 800;
    padding: 14px 32px;
    border-radius: 8px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.vda-empty-content .vda-btn-gold:hover {
    background: #d97706;
    transform: translateY(-2px);
}
