/* --- Modern UI & Glassmorphism Components --- */

/* Glass Cards & Panels */
.glass-card,
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    /* Softer shadow */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-card {
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    /* Often used in flex containers */
    flex-direction: column;
    align-items: center;
    /* Center content by default for info cards */
}

.glass-panel {
    border-radius: var(--radius-lg);
    padding: 3rem;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
    /* Blue glow */
}

/* Contact Info Cards Specifics */
.info-card.glass-card {
    position: relative;
    overflow: hidden;
    text-align: center;
    height: 100%;
    justify-content: center;
}

.info-card .info-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
    transition: transform 0.5s ease;
}

.info-card.glass-card:hover .info-icon {
    transform: scale(1.1) rotate(10deg);
}

.info-content h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.info-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
}

/* Premium Form Styles */
.form-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.form-header h3 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: rgba(255, 255, 255, 0.6);
}

/* Overriding .form-control for premium look */
.form-control {
    background: #c8a2a2;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--white) !important;
    padding: 1rem 1.25rem 1rem 3rem !important;
    /* Extra left padding for icon */
    border-radius: var(--radius) !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
}

.form-control:focus {
    background: rgba(0, 0, 0, 0.4) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
}

.form-group label {
    color: rgba(247, 92, 2, 0.85);
    font-weight: 500;
    margin-bottom: 0.75rem;
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Next-Level Modern Contact UI Styles */

.immersive-banner {
    background: radial-gradient(circle at 70% 20%, #1a1a2e, #0f0f1a) !important;
    position: relative;
    overflow: hidden;
    padding: 100px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.banner-blobs .blob-1,
.banner-blobs .blob-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
    animation: blobFloat 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #e20000;
    top: -100px;
    right: -50px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #ea580c;
    bottom: -50px;
    left: 10%;
    animation-delay: -5s;
}

@keyframes blobFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 100px) scale(1.1);
    }
}

.contact-section-modern {
    padding: 100px 0;
    background: #0f172a;
    position: relative;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(234, 88, 12, 0.1);
    color: #ea580c;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.modern-heading {
    font-size: 3.5rem !important;
    color: #fff !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.1 !important;
}

@media (max-width: 300px) {
    .modern-heading {
        font-size: 1.8rem !important;
    }
}

.modern-heading span {
    background: linear-gradient(135deg, #fb923c, #ea580c);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-info .description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 500px;
    margin-bottom: 3rem;
}

/* Glass Cards 3D */
.glass-card {
    perspective: 1000px;
}

.info-card.glass-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(15px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 24px;
    margin-bottom: 1.5rem;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    transform: translateY(-10px) rotateX(5deg) !important;
    border-color: rgba(234, 88, 12, 0.3) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}

.info-text h4 {
    color: #fff !important;
    margin: 0;
    font-size: 1.1rem;
}

.info-text p {
    color: rgba(255, 255, 255, 0.5) !important;
    font-weight: 400 !important;
    margin: 0;
}

/* Floating Labels */
.form-floating-group {
    position: relative;
    margin-bottom: 1.75rem;
}

.modern-input {
    width: 100%;
    padding: 02rem;
    background: rgba(0, 0, 0, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px !important;
    color: #fff !important;
    font-size: 1rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.form-floating-group label {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    color: rgba(255, 255, 255, 0.45) !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 !important;
}

.modern-input:focus~label,
.modern-input:not(:placeholder-shown)~label {
    top: 0.6rem;
    left: 1.25rem;
    font-size: 0.75rem !important;
    color: #ea580c !important;
    font-weight: 700 !important;
    text-transform: uppercase;
}

.modern-input:focus {
    background: rgba(0, 0, 0, 0.3) !important;
    border-color: #ea580c !important;
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.1) !important;
    outline: none !important;
}

.form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Glow Button */
.modern-btn-glow {
    position: relative;
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, #ea580c, #c2410c);
    border: none;
    border-radius: 20px;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: 0 10px 25px rgba(234, 88, 12, 0.3);
}

.modern-btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.modern-btn-glow:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(234, 88, 12, 0.5);
}

.modern-btn-glow:hover::before {
    left: 100%;
}

/* Guest Overlay */
.glass-container {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(25px);
    padding: 4rem !important;
    border-radius: 40px !important;
}

.guest-modern-overlay {
    text-align: center;
    padding: 2rem 0;
}

.lock-icon {
    font-size: 4rem;
    color: #ea580c;
    margin-bottom: 2rem;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(234, 88, 12, 0));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 15px rgba(234, 88, 12, 0.5));
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-modern-primary {
    display: inline-block;
    padding: 1.25rem 3rem;
    background: #ea580c;
    color: #fff;
    border-radius: 16px;
    font-weight: 700;
    margin-right: 1.5rem;
    transition: all 0.3s ease;
}

.btn-modern-outline {
    display: inline-block;
    padding: 1.25rem 3rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.social-links-modern {
    display: flex;
    gap: 1.5rem;
    margin-top: 4rem;
}

.social-ripple {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    transition: all 0.3s ease;
}

.social-ripple:hover {
    background: #ea580c;
    transform: translateY(-5px) rotate(8deg);
    border-color: transparent;
}

/* Premium Social Links */
.social-links-premium {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border-color: transparent;
}

.social-btn.facebook:hover {
    background: #1877F2;
}

.social-btn.instagram:hover {
    background: #E1306C;
}

.social-btn.whatsapp:hover {
    background: #25D366;
}

/* Account Page - Sidebar & Content Refinements */
.user-brief {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.user-brief h4 {
    color: var(--white);
    margin-bottom: 0.25rem;
}

.account-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.account-nav a i {
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.account-nav a:hover,
.account-nav a.active {
    background: rgba(37, 99, 235, 0.15);
    color: var(--primary);
}

.account-nav a.active {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.2), transparent);
    border-left: 3px solid var(--primary);
    padding-left: calc(1.5rem - 3px);
    /* Adjust for border */
}

.account-nav a:hover i {
    transform: translateX(3px);
}

.account-nav a.logout:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    /* Red for logout */
}

/* Account Content Header */
.content-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
}

.content-header h2 {
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.content-header p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.form-section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
    border-left: 2px solid var(--primary);
}

.right-aligned {
    text-align: right;
    margin-top: 2rem;
}

/* Guest Login Prompt */
.login-prompt-box.glass-overlay-message {
    background: transparent;
    /* Rely on backdrop */
    border: none;
    box-shadow: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 450px;
    z-index: 10;
    text-align: center;
    padding: 0;
}

.lock-icon-circle {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    backdrop-filter: blur(5px);
}

.blur-content {
    filter: blur(8px);
    opacity: 0.4;
    pointer-events: none;
    user-select: none;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .glass-panel {
        padding: 1.5rem;
    }

    .social-links-premium {
        gap: 1rem;
    }

    .account-sidebar {
        margin-bottom: 2rem;
    }

    .info-card.glass-card {
        flex-direction: row;
        text-align: left;
        align-items: center;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .info-card .info-icon {
        margin-bottom: 0;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    /* Contact Page Specifics */
    .immersive-banner {
        padding: 60px 0 !important;
    }

    .modern-heading {
        font-size: 2.5rem !important;
    }

    .glass-container {
        padding: 2.5rem 1.5rem !important;
        border-radius: 30px !important;
    }

    .btn-modern-primary,
    .btn-modern-outline {
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
        text-align: center;
    }

    .social-links-modern {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .modern-heading {
        font-size: 2rem !important;
    }

    .section-badge {
        font-size: 0.7rem;
    }

    .contact-info .description {
        font-size: 1.1rem;
    }

    .info-card.glass-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .info-text h4 {
        margin-bottom: 0.5rem;
    }

    .form-row-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    @media (max-width: 300px) {
        .glass-container {
            padding: 1.5rem 1rem !important;
        }

        .modern-input {
            padding: 1.5rem 1rem !important;
            font-size: 0.9rem !important;
        }

        .modern-btn-glow {
            padding: 1rem;
            font-size: 0.95rem;
        }

        .lock-icon {
            font-size: 3rem;
        }
    }
}

/* --- Category Product Count Highlights --- */
.product-count {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
    display: block;
}

.count-highlight {
    color: #ffe808 !important;
    /* Specific yellow requested */
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    margin-right: 2px;
}

.category-card:hover .count-highlight {
    color: #ffea00 !important;
    text-shadow: 0 0 10px rgba(255, 232, 8, 0.5);
}