/* 88SaleHub — AliExpress-inspired overrides */

/* Logo — Plus Jakarta Sans */
.site-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 0.02em;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    letter-spacing: -0.04em;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.site-logo:hover {
    opacity: 0.88;
}

.site-logo-eight {
    font-size: 1.875rem;
    font-weight: 800;
    color: #ff4747;
    background: linear-gradient(135deg, #ff4747 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-logo-hub {
    font-size: 1.375rem;
    font-weight: 700;
    color: #191919;
    letter-spacing: -0.03em;
}

.site-logo--light .site-logo-hub {
    color: #ffffff;
}

.site-logo--light .site-logo-eight {
    background: linear-gradient(135deg, #ff6b4a 0%, #ff4747 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 639px) {
    .site-logo-eight {
        font-size: 1.625rem;
    }
}

.hero-title {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    letter-spacing: -0.03em;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay.hidden {
    display: none;
}

.modal-overlay.active:not(.hidden) {
    display: flex;
}

.modal-box {
    position: relative;
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    color: #94a3b8;
    border-radius: 0.5rem;
    transition: color 0.2s, background 0.2s;
}

.modal-close:hover {
    color: #1e293b;
    background: #f1f5f9;
}

/* Auth message states */
#auth-message.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

#auth-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

#auth-message.info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Product card hover */
.product-card:hover {
    border-color: #ff4747;
}

/* Loading spinner */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Deposit modal selects — visible options (Tailwind preflight safe) */
#deposit-modal .deposit-select,
#deposit-modal .deposit-select option {
    color: #0f172a;
    background-color: #ffffff;
}

/* RTL (Arabic) */
[dir="rtl"] .modal-close {
    right: auto;
    left: 0.75rem;
}
[dir="rtl"] input[type="search"] {
    text-align: right;
}
