* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4361ee;
    --primary-dark: #3a0ca3;
    --success: #06d6a0;
    --warning: #ff9e00;
    --danger: #ef476f;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --white: #ffffff;
    
    --header-height: 60px;
    --mobile-nav-height: 56px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 999px;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.03);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.3;
    padding-bottom: var(--mobile-nav-height);
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
}

@media (min-width: 640px) {
    .container {
        padding: 0 16px;
    }
}

.header {
    background: var(--white);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--gray-200);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 8px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.logo i {
    font-size: 22px;
    color: var(--primary);
}

.logo span {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
}

.nav-menu {
    display: none;
    margin-left: 16px;
}

@media (min-width: 1024px) {
    .nav-menu {
        display: flex;
        gap: 4px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 13px;
        font-weight: 500;
        color: var(--gray-600);
        text-decoration: none;
        border-radius: var(--radius-full);
        white-space: nowrap;
    }
    
    .nav-link.active {
        color: var(--primary);
        background: rgba(67, 97, 238, 0.05);
    }
}

.search-wrapper {
    display: none;
}

@media (min-width: 768px) {
    .search-wrapper {
        display: block;
        flex: 1;
        max-width: 320px;
        position: relative;
    }
    
    .search-input {
        width: 100%;
        height: 38px;
        padding: 0 16px 0 38px;
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-full);
        background: var(--gray-100);
        font-size: 13px;
    }
    
    .search-icon {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--gray-600);
        font-size: 14px;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.action-btn {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--gray-600);
    text-decoration: none;
    font-size: 16px;
}

.action-btn.balance {
    width: auto;
    padding: 0 12px;
    gap: 6px;
    background: var(--primary);
    color: white;
    font-size: 13px;
    font-weight: 500;
}

.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--danger);
    color: white;
    font-size: 9px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    border: 2px solid var(--white);
}

.burger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-full);
    font-size: 18px;
    color: var(--gray-600);
}

@media (min-width: 1024px) {
    .burger-btn {
        display: none;
    }
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--mobile-nav-height);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-top: 1px solid var(--gray-200);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 768px) {
    .bottom-nav {
        display: none;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-decoration: none;
    color: var(--gray-600);
    font-size: 11px;
    gap: 2px;
}

.bottom-nav-item i {
    font-size: 18px;
}

.bottom-nav-item.active {
    color: var(--primary);
}

.hero {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 50%, #7209b7 100%);
    background-size: 200% 200%;
    border-radius: 24px;
    margin: 12px 0 24px;
    padding: 32px 20px;
    position: relative;
    color: white;
    position: relative;
    overflow: hidden;
    animation: heroGradient 12s ease infinite;
    box-shadow: 0 20px 60px rgba(67, 97, 238, 0.3);
    background-position: 0% 50%;
}

@keyframes heroGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    animation: heroBlob 15s ease-in-out infinite;
}

.hero-blob-1 {
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.2);
    top: -80px;
    right: -60px;
    animation-delay: 0s;
}

.hero-blob-2 {
    width: 200px;
    height: 200px;
    background: rgba(114, 9, 183, 0.4);
    bottom: -40px;
    left: -40px;
    animation-delay: -5s;
}

.hero-blob-3 {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.15);
    top: 50%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes heroBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.6;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.hero-content {
    flex: 1 1 320px;
    min-width: 0;
}

.hero-image-wrap {
    flex: 0 0 auto;
    max-width: 380px;
}

.hero-image {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
    border-radius: 16px;
}

.hero-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.25;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    letter-spacing: -0.02em;
}

.hero-title-line { display: block; }

.hero-title-accent {
    font-weight: 700;
    opacity: 0.95;
}

.hero-subtitle {
    font-size: 14px;
    margin-bottom: 18px;
    opacity: 0.9;
}

.hero-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    margin-bottom: 20px;
    padding: 4px 4px 4px 16px;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-width: 480px;
}

.hero-search-icon {
    color: var(--gray-600);
    font-size: 14px;
}

.hero-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
    color: var(--gray-800);
    min-width: 0;
}

.hero-search-input::placeholder {
    color: var(--gray-600);
}

.hero-search-btn {
    padding: 10px 18px;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    border: none;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
}

.stat-label {
    font-size: 11px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-hero {
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: white;
    color: var(--primary);
}

.btn-outline-light {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

@media (min-width: 640px) {
    .quick-actions {
        grid-template-columns: repeat(6, 1fr);
    }
}

.quick-card {
    background: var(--white);
    padding: 14px 10px;
    border-radius: var(--radius-md);
    text-align: center;
    text-decoration: none;
    color: var(--gray-800);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.quick-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(67, 97, 238, 0.1);
    border-color: rgba(67, 97, 238, 0.2);
}

.quick-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 6px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 16px;
}

.quick-title {
    font-weight: 600;
    font-size: 12px;
}

.quick-desc {
    font-size: 10px;
    color: var(--gray-600);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0 12px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-title i {
    color: var(--primary);
    font-size: 18px;
}

.section-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media (min-width: 640px) {
    .categories-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.category-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    padding: 16px 12px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.category-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
}

.category-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.category-count {
    font-size: 12px;
    color: var(--gray-600);
}

.how-it-works {
    margin: 24px 0 20px;
}

.how-it-works .section-title {
    margin-bottom: 16px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 640px) {
    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

.step-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 18px 14px;
    text-align: center;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(67, 97, 238, 0.08);
}

.step-num {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(67, 97, 238, 0.12);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.step-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.step-desc {
    font-size: 12px;
    color: var(--gray-600);
}

.recent-orders-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

@media (min-width: 640px) {
    .recent-orders-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .recent-orders-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.recent-order-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 14px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.recent-order-card:hover {
    transform: translateY(-2px);
    border-color: rgba(67, 97, 238, 0.25);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.08);
}

.recent-order-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-order-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray-600);
}

.recent-order-budget {
    font-weight: 700;
    color: var(--primary);
}

.promo-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, #ff9e00 0%, #ff5400 100%);
    animation: promoShine 8s ease-in-out infinite;
    border-radius: 18px;
    color: var(--white);
    padding: 18px 20px;
    margin: 20px 0;
    box-shadow: var(--shadow-md);
}

.promo-content { flex: 1; }

.promo-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 2px;
}

.promo-desc {
    font-size: 12px;
    opacity: 0.95;
}

@keyframes promoShine {
    0%, 100% { opacity: 1; filter: brightness(1); }
    50% { opacity: 0.98; filter: brightness(1.05); }
}

.promo-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1280px) {
    .services-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.service-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.service-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.service-content-head {
    padding: 10px 10px 0;
}

.service-image {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--gray-600);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-content {
    padding: 10px;
    flex: 1;
    min-width: 0;
}

.service-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 9px;
    font-weight: 700;
    color: var(--white);
    z-index: 1;
}

.badge-pro {
    background: linear-gradient(135deg, #7209b7, #b5179e);
}

.badge-top {
    background: linear-gradient(135deg, #ff9e00, #ff5400);
}

.badge-new {
    background: linear-gradient(135deg, #06d6a0, #2ec4b6);
}

.service-category {
    display: inline-block;
    padding: 2px 8px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    font-size: 9px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.service-title {
    font-weight: 600;
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 32px;
}

.service-seller {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.seller-avatar {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background: var(--gray-300);
    overflow: hidden;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.seller-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-name {
    font-size: 11px;
    color: var(--gray-600);
    text-decoration: none;
}

.service-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 2px;
    color: var(--warning);
}

.service-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--gray-200);
    padding-top: 8px;
}

.price {
    font-weight: 700;
    font-size: 15px;
    color: var(--gray-800);
}

.btn-add {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: white;
    border: none;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 22px 0 32px;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 18px 14px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(67, 97, 238, 0.2);
}

.feature-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
    border-radius: 14px;
    background: rgba(67, 97, 238, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.feature-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.feature-desc {
    font-size: 12px;
    color: var(--gray-600);
}

@media (max-width: 767px) {
    .hero {
        padding: 20px 16px;
    }

    .hero-inner {
        flex-direction: column;
        gap: 16px;
    }

    .hero-image-wrap {
        max-width: 100%;
        order: -1;
    }

    .hero-image {
        max-height: 180px;
    }

    .hero-title {
        font-size: 20px;
    }

    .hero-subtitle {
        font-size: 13px;
    }

    .hero-search {
        display: none;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        width: 100%;
    }

    .stat-item {
        text-align: center;
        padding: 8px 4px;
        background: rgba(255,255,255,0.1);
        border-radius: 10px;
    }

    .stat-value {
        font-size: 14px;
    }

    .stat-label {
        font-size: 10px;
    }

    .hero-buttons,
    .promo-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-buttons {
        width: 100%;
    }

    .hero-buttons .btn-hero {
        width: 100%;
    }

    .btn-hero {
        width: 100%;
    }

    .step-card {
        padding: 14px 12px;
    }
}

.footer {
    background: var(--white);
    padding: 30px 0 20px;
    margin-top: 30px;
    border-top: 1px solid var(--gray-200);
}

.footer-bottom {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-size: 11px;
}

