/* Yordamchi — Premium UI v3.0 × Telegram × Apple × Linear */

:root {
    /* ── Brand (Telegram-inspired) ── */
    --primary:       #1a73e8;
    --primary-dark:  #1557b0;
    --primary-light: rgba(26,115,232,.10);
    --primary-hover: #1557b0;

    /* ── Semantic ── */
    --secondary: #4DA6FF;
    --accent:    #007AFF;
    --dark:      #111111;
    --success:   #34C759;
    --warning:   #FFB020;
    --danger:    #FF3B30;
    --info:      #1a73e8;

    /* ── Neutrals ── */
    --gray-900: #111111;
    --gray-800: #1B1C1F;
    --gray-700: #252629;
    --gray-600: #3A3B3F;
    --gray-500: #707579;
    --gray-400: #A0A8B0;
    --gray-300: #C8CDD4;
    --gray-200: #E9EAEC;
    --gray-100: #F5F7FA;
    --gray-50:  #FAFBFC;
    --white:    #FFFFFF;

    /* ── Shadows ── */
    --shadow:    0 1px 2px rgba(0,0,0,.04);
    --shadow-sm: 0 2px 6px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.06);
    --shadow-xl: 0 20px 60px rgba(0,0,0,.12);

    /* ── Radii ── */
    --radius:    16px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-2xl:28px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
                 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', 'Twemoji Mozilla', sans-serif;
    background: var(--gray-50);
    color: var(--dark);
    line-height: 1.6;
}

body.page-gray {
    background: #f6f6f6 !important;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ==================== HEADER ==================== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    max-width: 1400px;
    margin: 0 auto;
    gap: 32px;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
}

.logo svg { flex-shrink: 0; }

.nav {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.nav a {
    color: var(--gray-600);
    font-weight: 500;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-size: 15px;
    transition: all 0.2s;
}

.nav a:hover { background: var(--gray-100); color: var(--dark); }
.nav a.active { background: var(--primary-light); color: var(--primary-dark); font-weight: 600; }

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-right: 12px;
}

.header-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--gray-600);
    transition: all 0.2s;
}

.header-icon-btn:hover {
    background: var(--gray-100);
    color: var(--dark);
}

.header-help-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    color: var(--dark);
    background: transparent;
    transition: all 0.2s;
}

.header-help-btn:hover {
    background: var(--gray-100);
    color: var(--dark);
}

.header-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.header-user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 32px;
    padding: 6px 14px 6px 6px;
    background: var(--gray-100);
    border-radius: 24px;
    color: var(--dark);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

.header-user-btn:hover { background: var(--gray-200); color: var(--dark); }

.header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1a73e8;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.header-avatar-img {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px;
    max-width: 32px;
    min-height: 32px;
    max-height: 32px;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0;
    aspect-ratio: 1/1;
    background: #1a73e8;
}

.header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.header-username { display: block; }

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover { background: var(--primary-dark); color: white; }

.btn-secondary { background: var(--gray-100); color: var(--gray-700); }
.btn-secondary:hover { background: var(--gray-200); color: var(--dark); }

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }

.btn-ghost { background: transparent; color: var(--gray-600); }
.btn-ghost:hover { background: var(--gray-100); color: var(--dark); }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #BA1A1A; color: white; }

.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #16a34a; color: white; }

.btn-warning { background: var(--warning); color: white; }
.btn-warning:hover { background: #d97706; color: white; }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

.w-full { width: 100%; }

/* ==================== CARDS ==================== */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
}

/* ==================== FORMS ==================== */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-700);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-textarea { min-height: 120px; resize: vertical; }

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
}

/* ==================== ALERTS ==================== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.alert-info { background: #D4E3FF; color: #1e40af; border: 1px solid #93c5fd; }

/* ==================== BADGES ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-primary { background: var(--primary-light); color: var(--primary-dark); }
.badge-secondary { background: var(--gray-200); color: var(--gray-700); }
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }

/* ==================== HERO ==================== */
.hero {
    background: #FAFAFA;
    padding: 80px 24px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero p {
    font-size: 18px;
    color: var(--gray-500);
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Search Box */
.hero-search {
    display: flex;
    gap: 12px;
    max-width: 640px;
    margin: 0 auto;
    padding: 12px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.hero-search .form-input,
.hero-search select.form-input {
    border: none;
    background: var(--gray-100);
    border-radius: var(--radius);
}

.hero-search .form-input:focus,
.hero-search select.form-input:focus {
    background: var(--gray-200);
    box-shadow: none;
}

/* ==================== STATS ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: -30px 24px 40px;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 4px;
    display: block;
}

/* ==================== CATEGORIES ==================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin: 32px 0;
}

.category-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.category-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 14px;
    color: var(--primary);
    font-size: 28px;
}

.category-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
}

/* ==================== ORDER CARDS ==================== */
.order-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.order-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.order-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.order-card h3 a {
    color: var(--dark);
    text-decoration: none;
}

.order-card h3 a:hover {
    color: var(--primary);
}

.order-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--gray-500);
    margin: 12px 0;
}

.order-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin: 16px 0;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
    margin-top: auto;
}

/* ==================== USER CARDS ==================== */
.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
}

.user-info h4 a {
    color: inherit;
}

.user-info h4 a:hover {
    color: var(--primary);
}

.user-info p {
    font-size: 13px;
    color: var(--gray-500);
}

/* ==================== PERFORMER CARDS ==================== */
.performer-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    transition: all 0.2s;
    text-align: center;
}

.performer-card:hover {
    box-shadow: var(--shadow-md);
}

.performer-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 28px;
    margin: 0 auto 16px;
}

.performer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.performer-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.performer-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
}

.performer-rating svg {
    color: var(--accent);
}

.performer-location {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 16px;
}

/* ==================== PAGE ==================== */
.page {
    padding: 32px 0;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 24px;
}

.page-subtitle {
    font-size: 15px;
    color: var(--gray-500);
    margin-top: -16px;
    margin-bottom: 24px;
}

/* ==================== GRID ==================== */
.grid { display: grid; gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ==================== FOOTER ==================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 48px 0 24px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}

.footer-brand {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.footer p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray-400);
}

.footer h4 {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.footer a {
    display: block;
    color: var(--gray-400);
    font-size: 14px;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--gray-700);
    text-align: center;
    font-size: 13px;
    color: var(--gray-500);
}

/* ==================== UTILITIES ==================== */
.text-center { text-align: center; }
.flex { display: flex; }
.flex-center { align-items: center; }
.flex-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.hidden { display: none !important; }

/* ==================== LANGUAGE SWITCHER ==================== */
.lang-switcher {
    position: relative;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--gray-100);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    transition: all 0.2s;
}

.lang-toggle:hover {
    background: var(--gray-200);
}

.lang-toggle.active {
    background: var(--gray-200);
}

.lang-arrow {
    transition: transform 0.2s;
}

.lang-toggle.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid var(--gray-200);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--gray-700);
    font-size: 14px;
    transition: background 0.2s;
}

.lang-dropdown a:hover {
    background: var(--gray-50);
}

.lang-dropdown a.active {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.lang-flag {
    font-size: 18px;
}

.lang-check {
    margin-left: auto;
    color: var(--primary);
    font-weight: 600;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header-inner { padding: 12px 16px; }
    .nav { display: none; }
    .hero { padding: 40px 20px; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 16px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); margin: -20px 16px 30px; gap: 12px; }
    .stat-card { padding: 16px; }
    .stat-value { font-size: 24px; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .page { padding: 24px 0; }
    .page-title { font-size: 24px; }
    .container { padding: 0 16px; }
    .header-username { display: none; }
    
    /* Улучшения для карточек заказов на мобильных */
    .order-card {
        padding: 20px;
        margin-bottom: 16px;
    }
    
    .order-card h3 {
        font-size: 16px;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    
    .order-card p {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 12px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .order-meta {
        flex-direction: column;
        gap: 8px;
        font-size: 12px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 24px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .category-card { padding: 16px 12px; }
    .category-icon { width: 48px; height: 48px; font-size: 24px; }
}

/* Галочка верификации */
.verified-badge {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-left: 6px;
}

.verified-badge-small {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-left: 4px;
}

.verified-icon-small {
    flex-shrink: 0;
}

/* ============================================
   GLOBAL DESIGN UPDATE v2.0
   Apple/iOS style - Modern & Clean
   ============================================ */

/* ==================== AUTH PAGES ==================== */
.auth-page {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #FAFAFA;
}

.auth-card {
    background: var(--white);
    border-radius: 20px;
    padding: 48px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border: 1px solid var(--gray-100);
}

.auth-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.auth-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    font-size: 15px;
    color: var(--gray-500);
    text-align: center;
    margin: 0 0 32px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.auth-form .form-input,
.auth-form .form-select {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    font-size: 16px;
    color: var(--dark);
    background: var(--white);
    transition: all 0.2s;
}

.auth-form .form-input:hover,
.auth-form .form-select:hover {
    border-color: var(--gray-300);
}

.auth-form .form-input:focus,
.auth-form .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.role-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.role-btn {
    flex: 1;
    padding: 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    background: var(--white);
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.role-btn:hover {
    border-color: var(--primary);
}

.role-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

/* ==================== SIDEBAR LAYOUT ==================== */
.layout-sidebar {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

.sidebar {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid var(--gray-100);
    position: sticky;
    top: 88px;
}

.sidebar h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

/* ==================== PROFILE PAGE ==================== */
.profile-header {
    background: var(--white);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-100);
    margin-bottom: 24px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.profile-role {
    font-size: 14px;
    color: var(--gray-500);
    text-align: center;
    margin-bottom: 16px;
}

.profile-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

.profile-stat-label {
    font-size: 13px;
    color: var(--gray-500);
}

/* ==================== TABS ==================== */
.tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--gray-100);
    border-radius: 12px;
    margin-bottom: 24px;
}

.tab {
    flex: 1;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-500);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
}

.tab:hover {
    color: var(--dark);
}

.tab.active {
    background: var(--white);
    color: var(--dark);
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

/* ==================== ORDER DETAIL PAGE ==================== */
.order-detail {
    background: var(--white);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-100);
}

.order-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-100);
}

.order-detail-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.order-detail-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.order-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}

.order-detail-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--gray-600);
}

.order-detail-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 24px;
}

/* ==================== RESPONSES LIST ==================== */
.response-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid var(--gray-100);
    margin-bottom: 16px;
    transition: all 0.2s;
}

.response-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.response-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.response-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

.response-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.response-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.response-message {
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-600);
    margin-bottom: 16px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: 12px;
}

/* ==================== NOTIFICATIONS ==================== */
.notification-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--gray-100);
    transition: all 0.2s;
}

.notification-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.notification-item.unread {
    background: var(--primary-light);
    border-color: var(--primary);
}

.notification-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.notification-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.notification-content p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.5;
}

.notification-time {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 8px;
}

/* ==================== FAVORITES ==================== */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.favorite-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid var(--gray-100);
    transition: all 0.2s;
}

.favorite-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* ==================== DISPUTES ==================== */
.dispute-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid var(--gray-100);
    margin-bottom: 16px;
}

.dispute-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.dispute-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.dispute-status.open {
    background: var(--warning);
    background: #FFF4E5;
    color: #B95000;
}

.dispute-status.resolved {
    background: #E8F9ED;
    color: #1B7D3F;
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--gray-100);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 15px;
    color: var(--gray-500);
    margin-bottom: 24px;
}

/* ==================== REVIEWS ==================== */
.review-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid var(--gray-100);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.review-stars {
    color: #FFB800;
    font-size: 16px;
}

.review-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-700);
}

/* ==================== PORTFOLIO ==================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.portfolio-item {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.portfolio-item:hover {
    transform: scale(1.02);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================== PRICE LIST ==================== */
.price-list {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
}

.price-item:last-child {
    border-bottom: none;
}

.price-item-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
}

.price-item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

/* ==================== MODAL ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--gray-200);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--gray-100);
}

/* ==================== TRANSLATE BUTTON ==================== */
.translate-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--gray-100);
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.translate-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.translation-result {
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--primary-light);
    border-radius: 12px;
    font-size: 14px;
    color: var(--primary-dark);
    border-left: 3px solid var(--primary);
}

/* ==================== RESPONSIVE UPDATES ==================== */
@media (max-width: 1024px) {
    .layout-sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        margin-bottom: 24px;
    }
}

@media (max-width: 768px) {
    .auth-card {
        padding: 32px 24px;
        border-radius: 16px;
    }
    
    .profile-header {
        padding: 24px;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }
    
    .profile-name {
        font-size: 24px;
    }
    
    .profile-stats {
        gap: 24px;
    }
    
    .order-detail {
        padding: 20px;
    }
    
    .order-detail-title {
        font-size: 20px;
    }
    
    .order-detail-price {
        font-size: 24px;
    }
    
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab {
        padding: 10px 16px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    .favorites-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal {
        border-radius: 16px;
    }
}
