/* AZAI Frontend Presentation Stylesheet */
.azai-pro-section { margin: 44px auto; max-width: 100%; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, sans-serif; box-sizing: border-box; }
.azai-pro-section * { box-sizing: border-box; }
.azai-pro-header { background: linear-gradient(135deg, #0f172a, #1e293b); border-radius: 16px 16px 0 0; padding: 28px 32px; color: #fff; border: 1px solid #334155; }
.azai-pro-badge { font-size: 9px; font-weight: 800; letter-spacing: 1.6px; color: #60a5fa; background: rgba(96, 165, 250, 0.12); padding: 4px 8px; border-radius: 4px; display: inline-block; margin-bottom: 8px; }
.azai-pro-title { font-size: 24px; color: #fff !important; margin: 0 0 8px !important; font-weight: 800; line-height: 1.25; }
.azai-pro-intro { font-size: 14px; color: #cbd5e1 !important; margin: 0 0 14px !important; line-height: 1.6; max-width: 800px; }
.azai-pro-disclosure { font-size: 11px; color: #94a3b8; display: flex; align-items: center; gap: 6px; }

.azai-pro-table { border: 1px solid #e2e8f0; border-top: none; background: #fff; border-radius: 0 0 16px 16px; overflow: hidden; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.06); }
.azai-pro-card { position: relative; display: grid; grid-template-columns: 44px 110px minmax(0, 1fr) 215px; gap: 20px; padding: 24px 28px; align-items: center; border-bottom: 1px solid #f1f5f9; transition: all 0.2s ease; }
.azai-pro-card.has-badge { padding-top: 32px; }
.azai-pro-card:last-child { border-bottom: none; }
.azai-pro-card:hover { background: #fafcff; }

/* Conversion Decision Badges */
.azai-decision-badge { position: absolute; top: 0; left: 28px; font-size: 9px; font-weight: 900; letter-spacing: 0.8px; padding: 3px 10px; border-radius: 0 0 6px 6px; text-transform: uppercase; }
.azai-badge-gold { background: #ffd814; color: #0f172a; box-shadow: 0 2px 4px rgba(255,216,20,0.4); }
.azai-badge-green { background: #10b981; color: #fff; }
.azai-badge-blue { background: #2563eb; color: #fff; }

.azai-card-num { font-size: 16px; font-weight: 900; color: #94a3b8; }
.azai-card-media { width: 110px; height: 110px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #f1f5f9; border-radius: 10px; overflow: hidden; padding: 6px; }
.azai-card-media img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.2s; }
.azai-card-media:hover img { transform: scale(1.05); }
.azai-media-fallback { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 10px; color: #94a3b8; font-weight: 700; text-align: center; }

.azai-tool-kicker { font-size: 10px; font-weight: 800; text-transform: uppercase; color: #059669; letter-spacing: 0.6px; margin-bottom: 4px; }
.azai-card-title { margin: 0 0 6px !important; font-size: 16px; font-weight: 700; line-height: 1.35; }
.azai-card-title a { color: #0f172a !important; text-decoration: none !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.azai-card-title a:hover { color: #2563eb !important; }
.azai-card-why { font-size: 13px; color: #475569; margin: 0 0 8px !important; line-height: 1.45; }
.azai-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.azai-star-badge { font-size: 12px; font-weight: 800; color: #b45309; background: #fef3c7; padding: 2px 7px; border-radius: 4px; }
.azai-review-count { font-size: 11px; color: #64748b; }
.azai-prime-badge { font-size: 11px; font-weight: 700; color: #007185; display: inline-flex; align-items: center; gap: 2px; }

/* Dual Action Buttons (Deals + Direct Cart) */
.azai-card-action { display: flex; flex-direction: column; gap: 6px; }
.azai-amazon-cta-gold { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: linear-gradient(135deg, #ffd814, #ffa41c); color: #0f172a !important; text-decoration: none !important; font-size: 12px; font-weight: 800; padding: 10px 14px; border-radius: 8px; transition: all 0.2s; box-shadow: 0 4px 10px rgba(255, 164, 28, 0.25); width: 100%; text-align: center; border: 1px solid #fcd200; }
.azai-amazon-cta-gold:hover { background: linear-gradient(135deg, #f7ca00, #fa8900); transform: translateY(-1px); }

.azai-cart-cta-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #f8fafc; color: #334155 !important; border: 1px solid #cbd5e1; text-decoration: none !important; font-size: 11px; font-weight: 700; padding: 6px 12px; border-radius: 6px; transition: all 0.15s; width: 100%; text-align: center; }
.azai-cart-cta-btn:hover { background: #eff6ff; color: #2563eb !important; border-color: #93c5fd; }

.azai-popup-trigger-wrap { text-align: center; margin-top: 16px; }
.azai-popup-trigger-btn { background: #fff; border: 1px solid #cbd5e1; color: #1e293b; font-size: 12px; font-weight: 700; padding: 9px 20px; border-radius: 30px; cursor: pointer; transition: 0.15s; }
.azai-popup-trigger-btn:hover { background: #f8fafc; border-color: #94a3b8; }

/* Global Isolated Modal */
.azai-pro-modal { position: fixed; inset: 0; z-index: 999999999; display: flex; align-items: center; justify-content: center; }
.azai-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(6px); cursor: pointer; }
.azai-modal-panel { position: relative; background: #fff; width: min(650px, 94vw); max-height: 88vh; overflow: auto; border-radius: 18px; padding: 26px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35); animation: azaiModalPop 0.2s ease-out; z-index: 2; }
@keyframes azaiModalPop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }

.azai-modal-close-btn { position: absolute; top: 16px; right: 16px; background: #f1f5f9; border: none; font-size: 22px; border-radius: 50%; width: 32px; height: 32px; line-height: 30px; text-align: center; cursor: pointer; color: #64748b; }
.azai-modal-close-btn:hover { background: #e2e8f0; color: #0f172a; }
.azai-modal-head h4 { margin: 0 0 4px !important; font-size: 18px; font-weight: 800; color: #0f172a; }
.azai-modal-head p { margin: 0 0 18px !important; font-size: 13px; color: #64748b; }
.azai-modal-items-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.azai-modal-card { display: flex; gap: 14px; padding: 12px; border: 1px solid #e2e8f0; border-radius: 10px; align-items: center; }
.azai-modal-thumb { width: 64px; height: 64px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #f8fafc; border-radius: 6px; overflow: hidden; }
.azai-modal-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.azai-modal-info { flex: 1; min-width: 0; }
.azai-modal-info h6 { margin: 0 0 2px !important; font-size: 11px; font-weight: 800; color: #059669; text-transform: uppercase; }
.azai-modal-info p { margin: 0 0 4px !important; font-size: 12px; font-weight: 700; color: #0f172a; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.azai-modal-stars { font-size: 11px; font-weight: 700; color: #b45309; }
.azai-modal-cta-gold { background: linear-gradient(135deg, #ffd814, #ffa41c); color: #0f172a !important; text-decoration: none !important; font-size: 12px; font-weight: 800; padding: 8px 14px; border-radius: 6px; white-space: nowrap; border: 1px solid #fcd200; }

.azai-modal-footer { border-top: 1px solid #f1f5f9; padding-top: 16px; text-align: center; }
.azai-scroll-to-table-btn { width: 100%; background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; font-size: 13px; font-weight: 800; padding: 12px; border-radius: 10px; cursor: pointer; }

/* Mobile Sticky Bottom Bar */
.azai-mobile-sticky-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 999998; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px); border-top: 1px solid #334155; padding: 8px 14px; box-shadow: 0 -4px 20px rgba(0,0,0,0.25); animation: azaiSlideUp 0.25s ease-out; }
@keyframes azaiSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.azai-sticky-inner { display: flex; align-items: center; gap: 10px; max-width: 600px; margin: 0 auto; }
.azai-sticky-thumb { width: 42px; height: 42px; flex-shrink: 0; background: #fff; border-radius: 6px; padding: 2px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.azai-sticky-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.azai-sticky-text { flex: 1; min-width: 0; color: #fff; }
.azai-sticky-kicker { font-size: 9px; font-weight: 800; color: #ffd814; text-transform: uppercase; }
.azai-sticky-title { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.azai-sticky-btn { background: linear-gradient(135deg, #ffd814, #ffa41c); color: #0f172a !important; text-decoration: none !important; font-size: 11px; font-weight: 800; padding: 8px 12px; border-radius: 6px; white-space: nowrap; }

/* Desktop Sticky Sidebar Widget */
.azai-desktop-sidebar-widget { position: fixed; bottom: 30px; right: 30px; width: 290px; background: #fff; border-radius: 14px; border: 1px solid #e2e8f0; box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.18); padding: 14px; z-index: 999990; animation: azaiWidgetIn 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes azaiWidgetIn { from { opacity: 0; transform: translateY(20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.azai-widget-close { position: absolute; top: 8px; right: 8px; border: none; background: #f1f5f9; width: 22px; height: 22px; border-radius: 50%; font-size: 14px; cursor: pointer; color: #64748b; line-height: 20px; text-align: center; }
.azai-widget-close:hover { background: #e2e8f0; color: #0f172a; }
.azai-widget-badge { font-size: 9px; font-weight: 900; color: #b45309; background: #fef3c7; display: inline-block; padding: 2px 6px; border-radius: 4px; margin-bottom: 8px; }
.azai-widget-content { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.azai-widget-thumb { width: 50px; height: 50px; flex-shrink: 0; border: 1px solid #f1f5f9; border-radius: 6px; display: flex; align-items: center; justify-content: center; padding: 2px; }
.azai-widget-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.azai-widget-details { flex: 1; min-width: 0; }
.azai-widget-kicker { font-size: 9px; font-weight: 800; color: #059669; text-transform: uppercase; }
.azai-widget-title { font-size: 11px; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.azai-widget-rating { font-size: 10px; font-weight: 700; color: #b45309; }
.azai-widget-btn { display: block; text-align: center; background: linear-gradient(135deg, #ffd814, #ffa41c); color: #0f172a !important; text-decoration: none !important; font-size: 11px; font-weight: 800; padding: 9px 12px; border-radius: 8px; box-shadow: 0 2px 6px rgba(255, 164, 28, 0.3); }

.azai-smart-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f7ff !important;
    border: 1px solid #bfdbfe !important;
    color: #1d4ed8 !important;
    text-decoration: none !important;
    padding: 3px 10px 3px 4px !important;
    border-radius: 999px !important;
    font-size: 0.92em !important;
    font-weight: 700 !important;
    margin: 0 3px;
    vertical-align: middle;
    transition: all 0.2s ease !important;
}
.azai-smart-cta:hover { background: #2563eb !important; color: #fff !important; }
.azai-cta-badge { background: #ff9900; color: #0f172a; font-size: 9px; font-weight: 900; padding: 2px 6px; border-radius: 999px; }
.azai-smart-cta:hover .azai-cta-badge { background: #fff; color: #0f172a; }
.azai-cta-text { border-bottom: 1px dashed rgba(29, 78, 216, 0.4); }

.azai-editorial-bridge-box {
    display: block;
    margin: 22px 0;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #cbd5e1;
    border-left: 5px solid #ff9900;
    border-radius: 12px;
}
.azai-bridge-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 900; color: #b45309; text-transform: uppercase; margin-bottom: 6px; }
.azai-bridge-text { margin: 0 0 12px 0 !important; font-size: 14px; color: #334155 !important; line-height: 1.55; }
.azai-bridge-action { display: flex; }
.azai-bridge-cta-btn { display: inline-flex; align-items: center; gap: 8px; background: #0f172a; color: #fff !important; text-decoration: none !important; font-size: 12px; font-weight: 700; padding: 8px 16px; border-radius: 8px; }
.azai-bridge-cta-btn:hover { background: #ff9900; color: #0f172a !important; }

@media(max-width: 850px) {
    .azai-pro-card { grid-template-columns: 28px 84px 1fr; gap: 14px; padding: 26px 16px 16px; }
    .azai-card-media { width: 84px; height: 84px; }
    .azai-card-action { grid-column: 2 / -1; }
    .azai-desktop-sidebar-widget { display: none !important; }
}