/* store-gate.css — extracted 2026-08-28 from includes/hooks/. Edit here, not in the hook. */
.stream-store-test-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0f172a;
    color: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 14px 20px;
    margin: 15px 0 25px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    gap: 12px;
    font-family: inherit;
    transition: all 0.3s ease;
}
.stream-store-test-banner.tested-ready {
    border-color: rgba(16, 185, 129, 0.4);
    background: #064e3b;
}
.stream-store-test-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.stream-store-pulse {
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: streamStorePulse 2s infinite;
    flex-shrink: 0;
}
@keyframes streamStorePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.stream-store-test-title {
    font-weight: 700;
    font-size: 15px;
    color: #f8fafc;
    display: block;
    margin-bottom: 2px;
}
.stream-store-test-desc {
    font-size: 13px;
    color: #94a3b8;
    display: block;
}
.stream-store-test-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    text-decoration: none !important;
}
.stream-store-test-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Modal Backdrop & Dialog */
.stream-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.stream-modal-dialog {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: streamModalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    color: #1e293b;
}
html.dark-mode .stream-modal-dialog {
    background: #1e293b;
    color: #f8fafc;
    border: 1px solid #334155;
}
@keyframes streamModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.stream-modal-header {
    padding: 18px 24px;
    background: #0f172a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #1e293b;
}
.stream-modal-header h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.stream-modal-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 22px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.stream-modal-close:hover { color: #ffffff; }
.stream-modal-body {
    padding: 24px;
}
.stream-modal-status-box {
    padding: 16px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.stream-modal-status-box.checking {
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
}
html.dark-mode .stream-modal-status-box.checking {
    background: #0f172a;
    border-color: #334155;
}
.stream-modal-status-box.ready {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}
html.dark-mode .stream-modal-status-box.ready {
    background: #064e3b;
    border-color: #059669;
}
.stream-modal-status-box.blocked {
    background: #fef2f2;
    border: 1px solid #fecaca;
}
html.dark-mode .stream-modal-status-box.blocked {
    background: #450a0a;
    border-color: #dc2626;
}
.stream-modal-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    flex-shrink: 0;
}
.stream-modal-status-box.checking .stream-modal-icon {
    background: #e2e8f0;
    color: #475569;
}
.stream-modal-status-box.ready .stream-modal-icon {
    background: #10b981;
    color: #ffffff;
}
.stream-modal-status-box.blocked .stream-modal-icon {
    background: #ef4444;
    color: #ffffff;
}
.stream-modal-details strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}
.stream-modal-status-box.ready strong { color: #065f46; }
html.dark-mode .stream-modal-status-box.ready strong { color: #6ee7b7; }
.stream-modal-status-box.blocked strong { color: #991b1b; }
html.dark-mode .stream-modal-status-box.blocked strong { color: #fca5a5; }
.stream-modal-details p {
    margin: 0;
    font-size: 13px;
    color: #475569;
    line-height: 1.4;
}
html.dark-mode .stream-modal-details p { color: #cbd5e1; }
.stream-modal-net-info {
    font-size: 12px;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
}
html.dark-mode .stream-modal-net-info {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}
.stream-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.stream-modal-footer.order-mode {
    justify-content: flex-end;
}
.stream-modal-link {
    font-size: 12px;
    color: #64748b;
    text-decoration: underline;
}
.stream-modal-link:hover { color: #10b981; }
html.dark-mode .stream-modal-link { color: #94a3b8; }
.stream-btn-group {
    display: flex;
    gap: 8px;
    align-items: center;
}
.stream-btn-secondary {
    background: #e2e8f0;
    color: #334155;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
}
.stream-btn-secondary:hover { background: #cbd5e1; }
html.dark-mode .stream-btn-secondary {
    background: #334155;
    color: #f8fafc;
}
.stream-btn-primary {
    background: #10b981;
    color: #ffffff !important;
    border: none;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.stream-btn-primary:hover { background: #059669; }
.stream-btn-warning {
    background: #d97706;
    color: #ffffff !important;
    border: none;
    padding: 11px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
}
.stream-btn-warning:hover { background: #b45309; }
.stream-modal-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(71, 85, 105, 0.2);
    border-top-color: #334155;
    border-radius: 50%;
    animation: streamModalSpin 0.8s linear infinite;
}
@keyframes streamModalSpin { to { transform: rotate(360deg); } }
