:root {
    --bg-color: #0a0b10;
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --secondary: #8b5cf6;
    --success: #10b981;
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: var(--transition);
}

.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 11, 16, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

/* Typography & Colors */
.text-gradient {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Navigation */
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo i {
    color: var(--accent);
    font-size: 2rem;
}

.logo span span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

@media (max-width: 768px) {
    .nav-actions {
        display: none; /* Hide on mobile to show in menu instead */
    }
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--glass-border);
}

.btn-lg {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    padding: 12rem 0 8rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    min-height: 90vh;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.main-visual {
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.main-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.2;
    z-index: -1;
}

.visual-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    color: var(--success);
    font-weight: 700;
}

/* Marketplace */
.marketplace-section {
    padding: 8rem 0;
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4rem;
}

.filter-bar {
    display: flex;
    gap: 1rem;
    padding: 0.8rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 800px;
}

.search-input {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.search-input input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    padding: 0.8rem 0;
    font-family: inherit;
    outline: none;
}

.category-select select {
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-family: inherit;
    outline: none;
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Service Card */
.number-card {
    padding: 2rem;
    text-align: center;
}

.number-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin: 0 auto 1.5rem;
}

.phone-number {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.service-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    min-height: 3rem;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.8rem 0;
    border-top: 1px solid var(--glass-border);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

/* Mobile Responsiveness Polish */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 992px) {
    .order-form-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 8rem;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

    .hero-visual {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .main-visual {
        max-width: 320px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .dashboard-modal {
        width: 95% !important;
        padding: 1.5rem !important;
        max-height: 90vh;
        overflow-y: auto;
    }

    .dashboard-modal .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .dashboard-modal .stat-card h4 {
        font-size: 1.5rem !important;
    }

    .dashboard-modal div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 0.8rem !important;
    }

    .dashboard-modal button {
        width: 100% !important;
    }

    .container {
        padding: 0 1.2rem;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 11, 16, 0.98);
        padding: 2rem;
        border-bottom: 1px solid var(--glass-border);
        backdrop-filter: blur(20px);
        gap: 1.5rem;
        z-index: 9999 !important;
        animation: slideInDown 0.3s ease-out;
    }

    @keyframes slideInDown {
        from { transform: translateY(-10px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }

    /* Move actions into menu on mobile */
    .nav-links.active::after {
        content: '';
        display: block;
        height: 1px;
        background: var(--glass-border);
        width: 100%;
        margin: 0.5rem 0;
    }

    .mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: white;
        font-size: 2rem;
        cursor: pointer;
        z-index: 10001;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-btns .btn-lg {
        width: 100%;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 11, 16, 0.98);
        padding: 2rem;
        border-bottom: 1px solid var(--glass-border);
        backdrop-filter: blur(20px);
        gap: 1.5rem;
    }

    .mobile-toggle {
        display: block;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .order-container {
        padding: 2rem 1rem;
    }
    
    .price-box .total-price-display {
        font-size: 1.8rem !important;
    }
}

.price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--success);
}

.price small {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.glass-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    width: 100%;
    color: white;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.glass-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.order-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    text-align: left;
}

.order-header i {
    font-size: 2.5rem;
    color: var(--accent);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.visible {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 99999 !important;
    pointer-events: auto !important;
}

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

.checkout-modal {
    width: 90%;
    max-width: 500px;
    padding: 3rem;
    position: relative;
}

.order-summary {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.summary-row.total {
    border-top: 1px solid var(--glass-border);
    padding-top: 0.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-full {
    width: 100%;
    margin-bottom: 1rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    background: var(--accent);
    color: white;
    z-index: 3000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.toast-success {
    background: var(--success);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.hidden {
    display: none;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* How It Works */
.how-it-works {
    padding: 8rem 0;
    background: linear-gradient(to bottom, transparent, rgba(139, 92, 246, 0.05));
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.step-card {
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
}

.step-num {
    font-size: 4rem;
    font-weight: 800;
    opacity: 0.1;
    position: absolute;
    top: 1rem;
    right: 2rem;
}

.step-card h3 {
    margin-bottom: 1rem;
    color: var(--accent);
}

/* Features */
.features-section {
    padding: 8rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-list i {
    color: var(--success);
    font-size: 1.5rem;
}

.feature-stats {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.2rem;
}

/* Footer & Bottom */
footer {
    padding: 6rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.link-group h4 {
    margin-bottom: 1.5rem;
}

.link-group a {
    display: block;
    text-decoration: none;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* User Profile & Dropdown */
.user-profile {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.user-email {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 200px;
    display: none;
    flex-direction: column;
    padding: 0.5rem;
    z-index: 1100;
}

.user-profile:hover .user-dropdown {
    display: flex;
}

.user-dropdown a,
.user-dropdown button {
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: left;
    border-radius: 8px;
    transition: var(--transition);
    width: 100%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* Auth Modals */
.auth-modal {
    width: 90%;
    max-width: 400px;
    padding: 3rem;
    text-align: center;
}

.auth-modal h2 {
    margin-bottom: 0.5rem;
}
/* Dashboard Styles */
.dashboard-modal {
    width: 95%;
    max-width: 600px;
    padding: 3rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
}

.stat-card i {
    font-size: 2rem;
    color: var(--accent);
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
}

.stat-info span {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.dashboard-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.auth-modal p {
    font-size: 1rem;
    margin-bottom: 2rem;
}

.auth-switch {
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.auth-switch a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.auth-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
}

/* Responsive Fixes */
@media (max-width: 768px) {

    .steps-grid,
    .features-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.form-error-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* Order Form Marketplace */
.order-container {
    padding: 3rem;
    margin-bottom: 4rem;
}

.order-form-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
}

.order-fields {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.service-details {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--glass-border);
}

.empty-details {
    text-align: center;
    color: var(--text-secondary);
}

.empty-details i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.detail-item {
    margin-bottom: 1.5rem;
}

.detail-item h4 {
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.detail-item p {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.price-box {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.total-price-display {
    font-size: 2rem;
    font-weight: 800;
    color: var(--success);
}

/* --- Mobile Bottom Nav --- */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 20, 0.85);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 0.8rem 0;
    justify-content: space-around;
    align-items: center;
    z-index: 8000;
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.7rem;
    transition: all 0.2s ease;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.4rem;
}

.mobile-bottom-nav .nav-item:active {
    color: var(--accent);
    transform: scale(0.9);
}

@media (max-width: 768px) {
    .order-form-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .order-details {
        position: static !important;
        width: 100% !important;
    }

    .whatsapp-float {
        bottom: 5.5rem !important; /* Move up so it doesn't block the nav */
        right: 1.5rem;
        padding: 0.8rem;
    }
    
    .whatsapp-float span {
        display: none;
    }

    .mobile-bottom-nav {
        display: flex;
    }
    body {
        padding-bottom: 80px;
    }
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25D366;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 9000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float i {
    font-size: 1.8rem;
}

.whatsapp-float:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    background: #22c35e;
}

.whatsapp-float span {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 0.8rem;
    }
    .whatsapp-float span {
        display: none;
    }
}

/* Pulse Animation */
@keyframes wa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float {
    animation: wa-pulse 2s infinite;
}