/**
 * Card components - louk-card, account-card, feature-card
 * .card-modern = alias for louk-card (unified design system)
 */

.account-card,
.feature-card,
.card,
.modal-content,
.home-heading {
    background: rgba(10, 10, 22, 0.5) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    color: hsl(var(--card-foreground)) !important;
    position: relative;
    z-index: 3;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04) !important;
}

.card {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-medium) !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow-card) !important;
}

.card-header {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    font-weight: 600;
}

.account-card,
.user-card,
.product-card,
.blog-card,
.order-card,
.transaction-card,
.wallet-card,
.feature-card,
.testimonial-card,
.team-card,
.pricing-card,
.service-card {
    background-color: var(--bg-card) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid var(--border-medium) !important;
    border-color: var(--border-medium) !important;
    color: #ffffff !important;
    box-shadow: var(--shadow-card) !important;
}

[style*="background: var(--white)"],
[style*="background:var(--white)"],
*[class*="card"]:not(.modal-content):not(.card-header):not(.card-footer),
.inner-section,
.section,
.feature-part,
.product-part,
.details-part,
.profile-part,
.order-part,
.blog-part,
.contact-part,
.faq-part,
.policy-part,
.affiliate-part,
.transaction-part,
.log-part,
.security-part,
.tool-part {
    background-color: transparent !important;
}

.wallet-card,
.wallet-card-group .wallet-card {
    background-color: var(--bg-input) !important;
    border: 1px solid var(--border-medium) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.account-title,
.home-heading h3,
.home-heading h4 {
    color: #ffffff !important;
    border-bottom: 2px solid rgba(59, 130, 246, 0.5) !important;
    padding-bottom: 0.5rem !important;
    margin-bottom: 1rem !important;
}

/* Louk card - Product card style */
.home-heading-modern {
    border-left: 4px solid var(--primary);
    padding-left: 15px;
    margin: 40px 0 25px 0;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-heading-modern h3 {
    color: var(--primary) !important;
    font-weight: 700 !important;
    margin: 0 !important;
    font-size: 1.25rem !important;
}

.card-modern,
.louk-card {
    background: rgba(10, 10, 22, 0.55) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 18px !important;
    padding: 0 !important;
    margin-bottom: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05) !important;
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.card-modern::after,
.louk-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    pointer-events: none;
}

.card-modern:hover,
.louk-card:hover {
    border-color: rgba(59, 130, 246, 0.4) !important;
    transform: translateY(-6px);
    background: rgba(14, 14, 32, 0.7) !important;
    box-shadow: 0 20px 45px rgba(0,0,0,0.55), 0 0 35px rgba(59, 130, 246, 0.1) !important;
}

/* Banner image (top of card) */
.louk-card-banner {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    flex-shrink: 0;
}

.louk-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.louk-card:hover .louk-card-banner img {
    transform: scale(1.07);
}

.louk-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(5,5,18,0.85) 100%);
    pointer-events: none;
}

.louk-discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(239,68,68,0.4);
}

/* Card body */
.louk-card-body {
    padding: 12px 14px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.louk-title {
    color: white !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.louk-subtitle {
    color: #9ca3af !important;
    font-size: 0.78rem !important;
    margin: 0 !important;
}

.louk-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.louk-badge {
    font-size: 11px !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Discount info strip */
.louk-discount-info {
    font-size: 12px;
    color: #fbbf24 !important;
    background: rgba(251,191,36,0.08);
    border: 1px solid rgba(251,191,36,0.2);
    border-radius: 8px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.louk-discount-info i { color: #fbbf24; font-size: 11px; }
.louk-discount-info strong { color: #f59e0b; }
.louk-discount-info s { color: #6b7280; font-size: 11px; }

.louk-badge-stock {
    background: rgba(22, 49, 30, 0.7) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(74, 222, 128, 0.3) !important;
}

.louk-badge-sold {
    background: rgba(49, 29, 10, 0.7) !important;
    color: #fb923c !important;
    border: 1px solid rgba(251, 146, 60, 0.3) !important;
}

/* Card footer */
.louk-card-footer {
    padding: 10px 14px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: auto;
}

.louk-price-tag {
    color: var(--primary) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    padding: 7px 10px;
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.35);
    background: rgba(30, 58, 138, 0.18);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.08);
}

.louk-price-main {
    color: #3b82f6 !important;
    font-weight: 800 !important;
    font-size: 17px !important;
}

.louk-price-rate {
    margin-top: 3px;
    font-size: 10.5px;
    font-weight: 500;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.louk-price-vnd {
    color: #3b82f6;
    font-weight: 700;
}

.louk-price-usd {
    color: #00bfff !important;
    font-weight: 700;
}

.louk-price-rate .louk-price-usd {
    color: #00bfff !important;
}

.louk-price-per {
    color: #fda4af !important;
    font-weight: 600;
}

.louk-btn-buy {
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.louk-btn-buy:hover {
    background: var(--primary-hover) !important;
    box-shadow: 0 0 18px var(--primary-glow) !important;
    transform: translateY(-2px) !important;
}

.louk-btn-buy::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent) !important;
    transition: left 0.5s ease !important;
}

.louk-btn-buy:hover::before {
    left: 100% !important;
}

/* Horizontal product row card */
.louk-card {
    min-height: 0 !important;
    padding: 10px !important;
    border-radius: 14px !important;
    background: rgba(10, 16, 30, 0.44) !important;
    border: 1px solid rgba(120, 151, 210, 0.2) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.louk-card:hover {
    transform: translateY(-3px) !important;
    background: rgba(12, 20, 36, 0.56) !important;
    border-color: rgba(126, 176, 255, 0.34) !important;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.34), 0 0 26px rgba(59, 130, 246, 0.2) !important;
}

.louk-card-main {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 156px;
    gap: 10px;
    align-items: center;
}

.louk-card-media {
    width: 70px;
}

.louk-card-banner {
    width: 70px !important;
    height: 70px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.louk-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
}

.louk-banner-overlay,
.louk-discount-badge,
.louk-discount-info,
.louk-card-footer {
    display: none !important;
}

.louk-card-body {
    padding: 0 !important;
    gap: 4px !important;
}

.louk-title {
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    -webkit-line-clamp: 1;
}

.louk-subtitle {
    display: block !important;
    color: #a8b6d3 !important;
    font-size: 0.8rem !important;
    margin: 0 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.louk-badges {
    gap: 5px !important;
    margin-top: 2px;
}

.louk-badge {
    font-size: 11px !important;
    padding: 2px 7px !important;
    border-radius: 6px !important;
    line-height: 1.3;
}

.louk-badge-discount {
    background: rgba(251, 146, 60, 0.14) !important;
    color: #fb923c !important;
    border: 1px solid rgba(251, 146, 60, 0.34) !important;
}

.louk-badge-stock-out {
    background: rgba(239, 68, 68, 0.16) !important;
    color: #fda4af !important;
    border: 1px solid rgba(244, 63, 94, 0.42) !important;
}

.louk-card-side {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
}

.louk-price-tag {
    width: 100%;
    align-items: flex-end !important;
    text-align: right !important;
    padding: 6px 8px !important;
    border-radius: 9px !important;
}

.louk-price-rate {
    text-align: right;
    font-size: 10px !important;
}

.louk-btn-buy {
    justify-content: center !important;
    border-radius: 9px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 8px 10px !important;
    background: linear-gradient(180deg, #4f97ff, #2d6bff) !important;
    color: #eaf3ff !important;
    border: 1px solid rgba(143, 194, 255, 0.5) !important;
    box-shadow: 0 8px 20px rgba(45, 107, 255, 0.32), 0 0 20px rgba(79, 151, 255, 0.22) !important;
}

.louk-btn-buy:hover {
    background: linear-gradient(180deg, #66adff, #3b7dff) !important;
    box-shadow: 0 10px 24px rgba(45, 107, 255, 0.42), 0 0 28px rgba(102, 173, 255, 0.3) !important;
}

.louk-btn-buy-disabled,
.louk-btn-buy[disabled] {
    background: rgba(120, 130, 148, 0.38) !important;
    color: rgba(237, 242, 255, 0.65) !important;
    box-shadow: none !important;
    border: 1px solid rgba(186, 198, 224, 0.2) !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Legacy aliases */
.louk-card-top { display: contents; }
.louk-card-bottom { display: contents; }
.louk-price-box {
    color: var(--primary) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

.louk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(520px, 1fr));
    gap: 12px;
}

@media (max-width: 576px) {
    .louk-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .louk-card-main {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 8px;
    }

    .louk-card-media,
    .louk-card-banner {
        width: 64px !important;
        height: 64px !important;
    }

    .louk-card-side {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .louk-price-tag {
        flex: 1;
        align-items: flex-start !important;
        text-align: left !important;
    }

    .louk-price-rate {
        text-align: left;
    }

    .louk-btn-buy {
        min-width: 110px;
    }
}

.sidebar_profile {
    background-color: var(--bg-input) !important;
    border: 1px solid var(--border-medium) !important;
    border-color: var(--border-medium) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.sidebar_profile:hover {
    background-color: var(--bg-input-focus) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3) !important;
}

.sidebar_profile.active {
    background-color: var(--primary-light) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3) !important;
}

.sidebar_profile.active h6,
.sidebar_profile.active h6 span,
.sidebar_profile.active h6 i {
    color: var(--primary) !important;
}

/* Order card surfaces: keep same dark-glass language */
.order-card,
.order-part,
.orderlist,
.orderlist-filter {
    background: linear-gradient(165deg, rgba(10, 14, 24, 0.9), rgba(7, 10, 18, 0.92)) !important;
    border: 1px solid rgba(113, 146, 203, 0.24) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    color: #e8eefc !important;
}

.order-card .card-header,
.order-part .card-header {
    background: rgba(42, 63, 107, 0.26) !important;
    border-bottom: 1px solid rgba(113, 146, 203, 0.2) !important;
}

.order-card .badge,
.order-part .badge {
    border-radius: 8px !important;
    font-weight: 700 !important;
}
