/*
Theme Name: Print Market Theme
Author: Waqas
Description: Custom coded design for PakPrinters / Print Market
Version: 1.0
*/

/* --- Aapki Asli CSS Start --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #059669;
    --primary-hover: #047857;
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --accent: #f59e0b;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
}

/* Top Header Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    cursor: pointer;
}

.logo i {
    color: var(--primary);
}

.top-nav {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    cursor: pointer;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.featured-nav-link {
    color: var(--accent) !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

.btn {
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-accent {
    background-color: var(--accent);
    color: #000;
}

.btn-accent:hover {
    background-color: #d97706;
    color: #fff;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    font-weight: bold;
}

.btn-whatsapp:hover {
    background-color: #1da851;
    color: white;
}

.btn-lg {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    min-height: 50vh;
}

.page-section {
    display: none;
}

.page-section.active-page {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-slider-container {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.92) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1.5rem;
}

.slide-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.slide-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.7);
    color: white;
    border: 1px solid var(--border);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.slider-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: 0.3s;
}

.dot.active-dot {
    background: var(--primary);
    width: 28px;
    border-radius: 10px;
}

.vip-hero-banner {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.15);
    flex-wrap: wrap;
}

.vip-banner-content h3 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vip-banner-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.adsense-container {
    width: 100%;
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px dashed var(--border);
    border-radius: 8px;
    text-align: center;
    padding: 1rem;
    margin: 2rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    text-align: center;
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.about-container h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.lead {
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-box {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.about-box h3 {
    margin-bottom: 1rem;
    color: var(--accent);
}

.about-box ul {
    list-style: none;
}

.about-box li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-box li i {
    color: var(--primary);
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.counter-badge-box {
    display: inline-block;
    background: rgba(5, 150, 105, 0.15);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.8rem;
}

.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-bar input, .filter-bar select {
    padding: 0.8rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-light);
    border-radius: 6px;
}

.filter-bar input {
    flex: 1;
    min-width: 250px;
}

.printer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.printer-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    border: 2px solid var(--border);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-top-content {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.printer-thumb {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
    background-color: var(--dark-bg);
}

.card-info {
    flex: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.4rem;
}

.badge {
    background-color: rgba(5, 150, 105, 0.2);
    color: var(--primary);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
}

.details-list {
    margin: 0.4rem 0 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.locked-box {
    background-color: rgba(15, 23, 42, 0.6);
    padding: 0.6rem;
    border-radius: 6px;
    text-align: center;
    border: 1px dashed var(--border);
    margin-top: 0.8rem;
}

.blur-text {
    filter: blur(4px);
    user-select: none;
    font-size: 0.8rem;
}

.unlocked-box {
    background-color: rgba(5, 150, 105, 0.1);
    padding: 0.6rem;
    border-radius: 6px;
    border: 1px solid var(--primary);
    margin-top: 0.8rem;
    font-size: 0.82rem;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
}

.guide-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}

.guide-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(5, 150, 105, 0.15);
}

.guide-img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.guide-body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.guide-tag {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.guide-body h3 {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.guide-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex: 1;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.package-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: 0.3s;
}

.package-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.2);
}

.package-card.popular {
    border: 2px solid var(--accent);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.25);
}

.popular-badge {
    position: absolute;
    top: -14px;
    right: 20px;
    background-color: var(--accent);
    color: #000;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.package-header {
    text-align: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.package-title {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.package-price {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--primary);
}

.package-card.popular .package-price {
    color: var(--accent);
}

.package-duration {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.package-features {
    list-style: none;
    margin-bottom: 2rem;
}

.package-features li {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.package-features li i {
    color: var(--primary);
}

.package-card.popular .package-features li i {
    color: var(--accent);
}

.featured-ads-container {
    max-width: 1200px;
    margin: 3rem auto 2rem;
    padding: 0 1rem;
}

.ads-title {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    line-height: 0.1em;
}

.ads-title span {
    background: var(--dark-bg);
    padding: 0 15px;
    color: var(--accent);
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.5rem;
}

.featured-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: 0.3s;
}

.featured-card.vip-featured-card {
    border: 2px solid var(--accent);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.25);
}

.featured-card:hover {
    transform: translateY(-5px);
}

.featured-card-banner {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.featured-badge.gold-badge {
    background-color: var(--accent);
    color: #000;
}

.featured-card-body {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-card-body h3 {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.featured-location {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.featured-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    line-height: 1.4;
    flex: 1;
}

.ad-modal-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    width: 95%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 2px solid var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.ad-modal-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.ad-modal-logo {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.ad-modal-title-info h2 {
    font-size: 1.4rem;
    color: var(--text-light);
}

.ad-modal-title-info p {
    font-size: 0.85rem;
    color: var(--accent);
}

.gallery-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-light);
    margin: 1.2rem 0 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.gallery-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
    transition: 0.3s;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.04);
    border-color: var(--primary);
}

.ad-contact-box {
    background-color: var(--dark-bg);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.ad-contact-box p {
    margin-bottom: 0.5rem;
}

.full-footer {
    background-color: #090d16;
    color: var(--text-light);
    padding: 3rem 1rem 1rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-contact-item i {
    color: var(--primary);
    margin-top: 0.3rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: 0.3s;
}

.footer-socials a:hover {
    color: var(--primary);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-card {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 10px;
    width: 100%;
    max-width: 420px;
    position: relative;
    border: 1px solid var(--border);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.otp-banner {
    background-color: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 1rem;
    display: none;
}

.switch-auth {
    margin-top: 1rem;
    font-size: 0.85rem;
    text-align: center;
}

.switch-auth a {
    color: var(--primary);
    text-decoration: none;
}

.policy-modal-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    width: 95%;
    max-width: 650px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.policy-modal-card h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.policy-modal-card h3 {
    color: var(--accent);
    margin: 1rem 0 0.4rem;
    font-size: 1.1rem;
}

.policy-modal-card p, .policy-modal-card li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

.policy-modal-card ul {
    padding-left: 1.2rem;
    margin-bottom: 0.8rem;
}

@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        padding: 1rem 1.5rem;
    }
    .menu-toggle {
        display: block;
    }
    .top-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        background-color: rgba(15, 23, 42, 0.98);
        padding: 1rem 0;
        margin-top: 1rem;
        border-top: 1px solid var(--border);
        gap: 1rem;
    }
    .top-nav.show {
        display: flex;
    }
    .auth-buttons {
        display: none;
    }
    .auth-buttons.mobile-auth-show {
        display: flex !important;
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px dashed var(--border);
    }
    .auth-buttons.mobile-auth-show .btn {
        width: 100%;
    }
    .hero-slider-container {
        height: 400px;
    }
    .slide-content h1 {
        font-size: 1.7rem;
    }
    .slide-content p {
        font-size: 0.9rem;
    }
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    .btn-lg {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    .filter-bar {
        flex-direction: column;
    }
    .filter-bar input {
        min-width: 100%;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-slider-container {
        height: 380px;
    }
    .slide-content h1 {
        font-size: 1.4rem;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    .hero-buttons .btn {
        width: 100%;
    }
}

.live-chat-floating {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
}

.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    color: #fff;
    border: none;
    font-size: 32px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99999;
    transition: transform 0.3s ease, background 0.3s;
}

.chat-toggle-btn:hover {
    transform: scale(1.08);
    background-color: #20ba5a;
}

.chat-box-card {
    display: none;
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 320px;
    background: var(--card-bg, #1e293b);
    border: 1px solid var(--border, #334155);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    overflow: hidden;
    z-index: 99999;
    animation: fadeIn 0.3s ease-in-out;
}

.chat-header {
    background: #059669;
    color: #fff;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.chat-avatar {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.chat-info h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #fff;
}

.chat-info p {
    margin: 0;
    font-size: 0.75rem;
    opacity: 0.85;
}

.chat-close-btn {
    position: absolute;
    right: 12px;
    top: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.chat-body {
    padding: 15px;
    background: rgba(0,0,0,0.1);
    min-height: 100px;
}

.chat-message {
    background: var(--dark-bg, #0f172a);
    color: var(--text-light, #f8fafc);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
    border-left: 3px solid #059669;
}

.chat-time {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted, #94a3b8);
    margin-top: 5px;
    text-align: right;
}

.chat-footer {
    padding: 12px 15px;
    background: var(--card-bg, #1e293b);
}

.chat-start-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: 0.2s;
}

.chat-start-btn:hover {
    background: #20ba5a;
}

#page-contact.active-page {
    animation: contactFadeInSlide 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes contactFadeInSlide {
    0% { opacity: 0; transform: translateY(30px) scale(0.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.contact-3d-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(5, 150, 105, 0.2);
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-left-side { text-align: center; }

.contact-3d-image-box img {
    max-width: 220px;
    height: auto;
    animation: float3D 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
}

@keyframes float3D {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.contact-left-side h2 { color: var(--text-light); font-size: 1.6rem; margin: 1rem 0 0.5rem; }
.contact-left-side p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }

.contact-info-cards-grid { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }

.fancy-info-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border);
    padding: 1.0rem 1.2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.fancy-info-card:hover {
    border-color: var(--primary);
    transform: translateX(6px);
    box-shadow: 0 5px 15px rgba(5, 150, 105, 0.15);
}

.fancy-info-card i { font-size: 1.6rem; color: var(--primary); }
.fancy-info-card h4 { font-size: 0.95rem; color: var(--text-light); margin-bottom: 0.1rem; }
.fancy-info-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

.pulse-btn { animation: pulseGlow 2s infinite; }

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media(max-width: 768px) {
    .contact-3d-wrapper { grid-template-columns: 1fr; padding: 1.5rem; }
}

.user-dropdown-container {
    position: relative;
    display: inline-block;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(5, 150, 105, 0.15);
    border: 1px solid var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    color: #f8fafc;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: 0.3s;
}

.user-profile-btn:hover {
    background: rgba(5, 150, 105, 0.3);
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 115%;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    min-width: 150px;
    z-index: 1000;
    overflow: hidden;
    animation: fadeInDrop 0.2s ease-in-out;
}

@keyframes fadeInDrop {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-dropdown-menu button {
    width: 100%;
    padding: 10px 15px;
    background: none;
    border: none;
    color: #ef4444;
    text-align: left;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.user-dropdown-menu button:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* --- Modal Design --- */
.modal-overlay, #authModal {
    background: rgba(10, 15, 30, 0.85) !important;
    backdrop-filter: blur(8px) !important;
}

.modal-content, .modal-card {
    background: #111827 !important;
    border: 1px solid #1f2937 !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    max-width: 480px !important;
    width: 90% !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5) !important;
}

.modal-content .form-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-bottom: 1.2rem !important;
    width: 100% !important;
}

.modal-content label {
    display: block !important;
    color: #e5e7eb !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
    text-align: left !important;
    width: 100% !important;
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="tel"],
.modal-content input[type="password"] {
    width: 100% !important;
    background-color: #1f2937 !important;
    color: #f3f4f6 !important;
    border: 1px solid #374151 !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
    box-sizing: border-box !important;
    outline: none !important;
}

.modal-content input::placeholder {
    color: #6b7280 !important;
}

.modal-content .btn, 
.modal-content button[type="submit"] {
    width: 100% !important;
    background: var(--primary) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.75rem !important;
    font-weight: 600 !important;
    margin-top: 0.5rem !important;
    cursor: pointer !important;
}