/* ═══ МастерТех — Fire + Coal Theme ═══ */
:root {
    --bg: #080604;
    --bg-card: #110e0a;
    --bg-card-hover: #181410;
    --bg-input: #0d0a07;
    --bg-elevated: #1a1510;
    --text: #f5f0ea;
    --text-secondary: #a0937e;
    --text-muted: #6d6358;
    --accent: #f97316;
    --accent-hover: #ea580c;
    --accent-glow: rgba(249, 115, 22, 0.12);
    --accent2: #fb923c;
    --accent3: #4ade80;
    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #f87171;
    --info: #60a5fa;
    --border: rgba(249, 115, 22, 0.08);
    --border-light: rgba(249, 115, 22, 0.05);
    --gradient: linear-gradient(135deg, #f97316, #ea580c);
    --pink: #fb923c;
    --green: #4ade80;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0,0,0,0.5);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.6);
    --font: "Manrope", -apple-system, sans-serif;
    --mono: "JetBrains Mono", monospace;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* ═══ NAVBAR ═══ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 13, 9, 0.9);
    backdrop-filter: blur(20px) saturate(1.8);
    border-bottom: 1px solid var(--border-light);
    padding: 0 2rem;
}
.navbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}
.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.logo span { color: var(--accent); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}
.nav-links a:hover { color: var(--text); background: var(--accent-glow); }
.nav-links a.active { color: var(--accent); }
.nav-badge {
    position: absolute;
    top: 2px; right: 2px;
    background: var(--accent2);
    color: white;
    font-size: 0.65rem;
    padding: 1px 5px;
    border-radius: 10px;
    font-weight: 700;
}
.nav-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}
.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(249, 115, 22, 0.35); }

/* ═══ CONTAINER ═══ */
.container { max-width: 1400px; margin: 0 auto; padding: 2rem; position: relative; z-index: 1; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 2rem; position: relative; z-index: 1; }

/* ═══ HERO ═══ */
.hero {
    text-align: center;
    padding: 5rem 2rem 3rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 1rem;
    position: relative;
}
.hero h1 span {
    background: linear-gradient(135deg, var(--accent), var(--accent2), var(--accent3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
}
.hero-search {
    max-width: 600px; margin: 0 auto; position: relative;
}
.hero-search input {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-right: 120px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text);
    font-size: 1rem;
    font-family: var(--font);
}
.hero-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.hero-search button {
    position: absolute; right: 6px; top: 6px; bottom: 6px;
    padding: 0 1.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: white; border: none; border-radius: 12px;
    font-weight: 700; cursor: pointer; font-family: var(--font);
    transition: var(--transition);
}
.hero-search button:hover { transform: scale(1.02); }

/* ═══ TAB SWITCHER ═══ */
.hero-tabs {
    display: flex; justify-content: center; gap: 0.5rem;
    margin-bottom: 2rem; position: relative;
}
.hero-tab {
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}
.hero-tab:hover { border-color: var(--accent); color: var(--text); }
.hero-tab.active {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: white; border-color: transparent;
}

/* ═══ STATS ═══ */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--mono);
    background: linear-gradient(135deg, var(--accent), var(--accent3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.25rem; }

/* ═══ CARDS ═══ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
}
.card:hover { border-color: rgba(249, 115, 22, 0.2); background: var(--bg-card-hover); }

/* ═══ TASK CARDS ═══ */
.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.25rem;
}
.task-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
}
.task-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    opacity: 0;
    transition: var(--transition);
}
.task-card:hover {
    border-color: rgba(249, 115, 22, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.task-card:hover::before { opacity: 1; }
.task-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; }
.task-category { font-size: 0.8rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.task-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.3; }
.task-card p {
    color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.task-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.85rem; color: var(--text-muted); }
.task-meta-item { display: flex; align-items: center; gap: 0.35rem; }
.task-price { font-size: 1.25rem; font-weight: 800; color: var(--accent3); font-family: var(--mono); }
.task-bids-count {
    background: var(--accent-glow); color: var(--accent);
    padding: 0.25rem 0.75rem; border-radius: 20px;
    font-size: 0.8rem; font-weight: 600;
}

/* ═══ LISTING CARDS ═══ */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}
.listing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}
.listing-card:hover { border-color: rgba(249, 115, 22, 0.2); transform: translateY(-2px); box-shadow: var(--shadow); }
.listing-img { position: relative; height: 200px; background: var(--bg-elevated); overflow: hidden; }
.listing-img img { width: 100%; height: 100%; object-fit: cover; }
.listing-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; opacity: 0.3; }
.listing-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; }
.badge-tag { padding: 2px 8px; border-radius: 6px; font-size: 0.7rem; font-weight: 700; }
.badge-top { background: var(--warning); color: #000; }
.badge-verified { background: var(--info); color: #fff; }
.listing-photos { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.6); padding: 2px 8px; border-radius: 6px; font-size: 0.75rem; color: #fff; }
.listing-body { padding: 1.25rem; }
.listing-price { font-size: 1.2rem; font-weight: 800; color: var(--accent3); font-family: var(--mono); margin-bottom: 0.25rem; }
.listing-price-period { font-size: 0.8rem; color: var(--text-muted); font-weight: 400; font-family: var(--font); }
.listing-title { font-weight: 600; margin-bottom: 0.5rem; line-height: 1.3; }
.listing-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.listing-footer { display: flex; justify-content: space-between; align-items: center; }
.listing-author { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-secondary); }
.listing-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--accent-glow); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700;
}
.listing-rating { font-size: 0.85rem; font-weight: 600; color: var(--warning); }

/* ═══ CATEGORIES GRID ═══ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.cat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
.cat-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(249, 115, 22, 0.12); }
.cat-icon { font-size: 2rem; margin-bottom: 0.5rem; display: block; }
.cat-name { font-weight: 600; font-size: 0.9rem; }
.cat-count { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ═══ BUTTONS ═══ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.65rem 1.5rem; border-radius: 10px;
    font-weight: 600; font-size: 0.9rem; font-family: var(--font);
    border: none; cursor: pointer; transition: var(--transition);
    text-decoration: none; line-height: 1;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), #059669); color: white; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(249, 115, 22, 0.35); }
.btn-secondary { background: var(--bg-elevated); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-success { background: var(--success); color: var(--bg); }
.btn-danger { background: var(--danger); color: white; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--text-secondary); }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-outline:hover { background: var(--accent-glow); }

/* ═══ FORMS ═══ */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 600; font-size: 0.9rem; color: var(--text-secondary); }
.form-control {
    width: 100%; padding: 0.75rem 1rem;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: 10px; color: var(--text); font-family: var(--font); font-size: 0.95rem;
    transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { appearance: none; cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 0.3rem; }

/* ═══ GLOBAL INPUT FIX ═══ */
input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="number"], input[type="url"],
input[type="search"], input[type="date"], input[type="datetime-local"],
select:not(.no-style), textarea:not(.no-style) {
    width: 100%; padding: 0.75rem 1rem;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: 10px; color: var(--text); font-family: var(--font); font-size: 0.95rem;
    transition: var(--transition);
}
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus,
input[type="tel"]:focus, input[type="number"]:focus, input[type="url"]:focus,
input[type="search"]:focus, input[type="date"]:focus,
select:focus, textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
select:not(.no-style) {
    appearance: none; cursor: pointer;
    background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
input[type="checkbox"], input[type="radio"] { width: auto; padding: 0; }
input[type="submit"], button[type="submit"] {
    width: 100%; padding: 0.75rem 1.5rem;
    background: var(--gradient); color: #fff;
    border: none; border-radius: 10px;
    font-weight: 700; font-size: 0.95rem; font-family: var(--font);
    cursor: pointer; transition: var(--transition);
}
input[type="submit"]:hover, button[type="submit"]:hover {
    transform: translateY(-1px); box-shadow: 0 4px 20px rgba(249, 115, 22, 0.35);
}

/* ═══ ROLE SELECTOR ═══ */
.role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.role-option {
    background: var(--bg-card); border: 2px solid var(--border); border-radius: var(--radius);
    padding: 1.5rem; text-align: center; cursor: pointer; transition: var(--transition);
}
.role-option:hover { border-color: var(--accent); }
.role-option.active { border-color: var(--accent); background: var(--accent-glow); }
.role-option input { display: none; }
.role-option-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.role-option-title { font-weight: 700; margin-bottom: 0.25rem; }
.role-option-desc { font-size: 0.85rem; color: var(--text-muted); }

/* ═══ BADGES ═══ */
.badge-status { display: inline-flex; padding: 0.2rem 0.65rem; border-radius: 6px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.badge-success { background: rgba(52, 211, 153, 0.15); color: var(--success); }
.badge-warning { background: rgba(251, 191, 36, 0.15); color: var(--warning); }
.badge-danger { background: rgba(248, 113, 113, 0.15); color: var(--danger); }
.badge-info { background: rgba(96, 165, 250, 0.15); color: var(--info); }
.badge-default { background: rgba(138, 137, 160, 0.15); color: var(--text-secondary); }

/* ═══ BID CARDS ═══ */
.bid-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.25rem; margin-bottom: 1rem; transition: var(--transition);
}
.bid-card:hover { border-color: rgba(249, 115, 22, 0.2); }
.bid-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.bid-executor { display: flex; align-items: center; gap: 0.75rem; }
.bid-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--accent-glow); display: flex; align-items: center; justify-content: center; color: var(--accent); font-weight: 700; font-size: 0.9rem; }
.bid-price { font-size: 1.3rem; font-weight: 800; color: var(--accent3); font-family: var(--mono); }
.bid-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }

/* ═══ CHAT ═══ */
.chat-container { display: grid; grid-template-columns: 300px 1fr; gap: 1rem; height: calc(100vh - 180px); }
.chat-sidebar { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow-y: auto; }
.chat-contact { display: flex; align-items: center; gap: 0.75rem; padding: 1rem; border-bottom: 1px solid var(--border); cursor: pointer; text-decoration: none; color: inherit; transition: var(--transition); }
.chat-contact:hover, .chat-contact.active { background: var(--bg-elevated); }
.chat-messages { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; }
.chat-messages-list { flex: 1; overflow-y: auto; padding: 1.5rem; }
.message { margin-bottom: 1rem; max-width: 70%; }
.message-sent { margin-left: auto; }
.message-bubble { padding: 0.75rem 1rem; border-radius: 16px; font-size: 0.95rem; line-height: 1.4; }
.message-sent .message-bubble { background: var(--accent); color: white; border-bottom-right-radius: 4px; }
.message-received .message-bubble { background: var(--bg-elevated); border-bottom-left-radius: 4px; }
.message-time { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
.chat-input-area { padding: 1rem; border-top: 1px solid var(--border); display: flex; gap: 0.75rem; }
.chat-input-area input { flex: 1; padding: 0.75rem 1rem; background: var(--bg-input); border: 1px solid var(--border); border-radius: 12px; color: var(--text); font-family: var(--font); }
.chat-input-area input:focus { outline: none; border-color: var(--accent); }

/* ═══ SECTIONS ═══ */
.section-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.section-title a { font-size: 0.9rem; color: var(--accent); text-decoration: none; font-weight: 600; }

/* ═══ TABS ═══ */
.tabs { display: flex; gap: 0.25rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab { padding: 0.75rem 1.5rem; color: var(--text-secondary); text-decoration: none; font-weight: 600; font-size: 0.9rem; border-bottom: 2px solid transparent; transition: var(--transition); white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ═══ FILTERS ═══ */
.filters-bar { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; align-items: center; }
.filter-select, .search-inline {
    padding: 0.5rem 1rem; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 8px; color: var(--text); font-family: var(--font); font-size: 0.85rem; cursor: pointer;
}
.search-inline { min-width: 250px; }
.filter-select:focus, .search-inline:focus { outline: none; border-color: var(--accent); }

/* ═══ TWO COL LAYOUT ═══ */
.two-col { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }

/* ═══ PROFILE ═══ */
.profile-header { display: flex; gap: 2rem; align-items: flex-start; margin-bottom: 2rem; }
.profile-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); flex-shrink: 0; background: var(--accent-glow); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--accent); font-weight: 700; }
.profile-info h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.25rem; }
.profile-stats { display: flex; gap: 2rem; margin-top: 1rem; }
.profile-stat { text-align: center; }
.profile-stat-value { font-size: 1.5rem; font-weight: 800; font-family: var(--mono); color: var(--accent); }
.profile-stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* ═══ FLASH MESSAGES ═══ */
.flash { padding: 1rem 1.5rem; border-radius: var(--radius); margin-bottom: 1rem; font-weight: 500; animation: slideDown 0.3s ease; cursor: pointer; }
.flash-success { background: rgba(52, 211, 153, 0.15); color: var(--success); border: 1px solid rgba(52, 211, 153, 0.3); }
.flash-error { background: rgba(248, 113, 113, 0.15); color: var(--danger); border: 1px solid rgba(248, 113, 113, 0.3); }
.flash-info { background: rgba(96, 165, 250, 0.15); color: var(--info); border: 1px solid rgba(96, 165, 250, 0.3); }

/* ═══ PAGINATION ═══ */
.pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 2rem; }
.page-link {
    padding: 0.5rem 0.85rem; border-radius: 8px; background: var(--bg-card);
    border: 1px solid var(--border); color: var(--text-secondary); text-decoration: none;
    font-size: 0.9rem; transition: var(--transition);
}
.page-link:hover { border-color: var(--accent); color: var(--accent); }
.page-link.active { background: var(--accent); color: white; border-color: var(--accent); }

/* ═══ REVIEW CARD ═══ */
.review-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }

/* ═══ EMPTY STATE ═══ */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { color: var(--text-secondary); margin-bottom: 0.5rem; }

/* ═══ FOOTER ═══ */
.footer { border-top: 1px solid var(--border-light); padding: 3rem 2rem; margin-top: 4rem; text-align: center; color: var(--text-muted); font-size: 0.85rem; position: relative; z-index: 1; }
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); }

/* ═══ STARS ═══ */
.stars { color: var(--warning); font-size: 1rem; letter-spacing: 1px; }

/* ═══ DASHBOARD ═══ */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.25rem; }
.dashboard-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.dashboard-card h3 { font-size: 0.8rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }

/* ═══ MODAL ═══ */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); z-index: 200; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; max-width: 500px; width: 90%; max-height: 80vh; overflow-y: auto; }

/* ═══ ADMIN TABLE ═══ */
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th { text-align: left; padding: 0.75rem; color: var(--text-muted); border-bottom: 1px solid var(--border); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; }
.admin-table td { padding: 0.75rem; border-bottom: 1px solid var(--border-light); }
.admin-table tr:hover { background: var(--bg-card-hover); }

/* ═══ PORTFOLIO ═══ */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.portfolio-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.portfolio-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.portfolio-image { width: 100%; height: 200px; object-fit: cover; }
.portfolio-info { padding: 1rem; }

/* ═══ ANIMATIONS ═══ */
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-in { animation: fadeIn 0.4s ease; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .tasks-grid { grid-template-columns: 1fr; }
    .listings-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-header { flex-direction: column; align-items: center; text-align: center; }
    .chat-container { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; }
    .container { padding: 1rem; }
    .navbar { padding: 0 1rem; }
    .nav-links { gap: 0; }
    .nav-links a { padding: 0.5rem 0.5rem; font-size: 0.8rem; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .role-selector { grid-template-columns: 1fr; }
}

/* ═══ UTILITY ═══ */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
hr { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
a { color: var(--accent); }

/* ============ AUTH ============ */
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 3rem;
}
.auth-title {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 0.5rem;
}
.auth-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}
.auth-form .form-group { margin-bottom: 1.25rem; }
.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
}
.auth-footer a { color: var(--accent); }
.auth-prompt { margin-top: 1.5rem; }

/* Role Selector */
.role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.role-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.role-option input { display: none; }
.role-option:hover, .role-option.active {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.role-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.role-name { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.25rem; }
.role-desc { font-size: 0.8rem; color: var(--text-secondary); }

/* ============ LISTING DETAIL ============ */
.listing-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 1.5rem;
}
.listing-gallery { position: sticky; top: 6rem; align-self: start; }
.gallery-main {
  border-radius: 1rem;
  overflow: hidden;
  background: var(--bg-card);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main.no-photo { font-size: 3rem; color: var(--text-muted); }
.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
}
.gallery-thumb {
  width: 70px;
  height: 52px;
  border-radius: 0.5rem;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.2s;
  border: 2px solid transparent;
}
.gallery-thumb:hover, .gallery-thumb.active {
  opacity: 1;
  border-color: var(--accent);
}

.listing-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}
.listing-header h1 { font-size: 1.8rem; line-height: 1.2; }
.listing-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}

/* Pricing Table */
.pricing-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.pricing-table h3 { margin-bottom: 1rem; font-size: 1.1rem; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.75rem;
}
.price-item {
  text-align: center;
  padding: 0.75rem;
  background: var(--bg);
  border-radius: 0.75rem;
}
.price-item.highlight {
  background: var(--accent-glow);
  border: 1px solid rgba(249, 115, 22, 0.2);
}
.price-label { font-size: 0.85rem; color: var(--text-secondary); }
.price-value { display: block; font-size: 1.2rem; font-weight: 700; font-family: 'JetBrains Mono', monospace; color: var(--accent); }
.min-rental { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.75rem; }

/* Specs Table */
.specs-table {
  margin-bottom: 1.5rem;
}
.specs-table h3 { margin-bottom: 0.75rem; font-size: 1.1rem; }
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.spec-label { color: var(--text-secondary); }
.spec-value { font-weight: 500; }

.listing-description { margin-bottom: 1.5rem; line-height: 1.7; }
.listing-description h3 { margin-bottom: 0.75rem; }

/* Owner Card */
.owner-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.owner-info { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--text); }
.owner-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  overflow: hidden;
}
.owner-avatar img { width: 100%; height: 100%; object-fit: cover; }
.owner-name { font-weight: 600; }
.owner-meta { font-size: 0.85rem; color: var(--text-secondary); }

/* Rental Form */
.rental-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}
.rental-form h3 { margin-bottom: 1rem; }

/* ============ REVIEWS ============ */
.reviews-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.reviews-list { display: flex; flex-direction: column; gap: 1rem; }
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
}
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.review-author { display: flex; align-items: center; gap: 0.75rem; }
.avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.review-name { font-weight: 600; font-size: 0.95rem; }
.review-date { font-size: 0.8rem; color: var(--text-muted); }
.review-text { line-height: 1.6; }
.review-form { margin-top: 2rem; }
.review-form h3 { margin-bottom: 1rem; }
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.25rem;
}
.star-rating input { display: none; }
.star-rating label { cursor: pointer; font-size: 1.5rem; opacity: 0.4; transition: 0.2s; }
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { opacity: 1; }

/* Favorite Button */
.btn-icon {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.2s;
}
.btn-icon:hover { border-color: var(--accent); }

/* ============ CATALOG ============ */
.filters-bar { margin-bottom: 2rem; }
.filters-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}
.filter-input {
  padding: 0.65rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  color: var(--text);
  font-size: 0.95rem;
}
.filter-input:focus { outline: none; border-color: var(--accent); }
.filter-search { flex: 1; min-width: 200px; }
.filter-checkbox { white-space: nowrap; }
.advanced-filters summary {
  color: var(--accent);
  cursor: pointer;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ============ EXECUTORS ============ */
.executors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.executor-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  text-decoration: none;
  color: var(--text);
  transition: 0.2s;
}
.executor-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.executor-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  flex-shrink: 0;
  overflow: hidden;
}
.executor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.executor-info h3 { margin-bottom: 0.25rem; }
.executor-spec { color: var(--accent); font-size: 0.9rem; margin-bottom: 0.5rem; }
.executor-meta { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--text-secondary); font-size: 0.9rem; }

/* ============ COMPANY PAGE ============ */
.company-header {
  display: flex;
  gap: 2rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.company-avatar-lg {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 2.5rem;
  flex-shrink: 0;
  overflow: hidden;
}
.company-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.company-header-info h1 { font-size: 1.8rem; margin-bottom: 0.25rem; }
.company-owner-name { color: var(--text-secondary); margin-bottom: 0.5rem; }
.company-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.company-stats {
  display: flex;
  gap: 1.5rem;
}
.company-section { margin-bottom: 2.5rem; }
.company-section h2 { margin-bottom: 1rem; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
.portfolio-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}
.portfolio-item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.portfolio-item h4 { padding: 0.75rem 1rem 0.25rem; }
.portfolio-item p { padding: 0 1rem 0.75rem; font-size: 0.9rem; color: var(--text-secondary); }

/* ============ CHAT ============ */
.chat-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  height: calc(100vh - 200px);
  min-height: 500px;
}
.chat-sidebar {
  border-right: 1px solid var(--border);
  overflow-y: auto;
}
.chat-conv-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: 0.15s;
}
.chat-conv-item:hover { background: rgba(124, 92, 252, 0.05); }
.chat-conv-item.active { background: var(--accent-glow); border-left: 3px solid var(--accent); }
.conv-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.conv-info { flex: 1; overflow: hidden; }
.conv-name { font-weight: 600; font-size: 0.95rem; }
.conv-preview { font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-unread {
  background: var(--gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-main {
  display: flex;
  flex-direction: column;
}
.chat-header-bar {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.chat-partner-name { font-weight: 600; text-decoration: none; color: var(--text); }
.chat-listing-ref { font-size: 0.85rem; color: var(--text-muted); }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.chat-msg {
  max-width: 70%;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.chat-msg.mine {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 0.25rem;
}
.chat-msg.theirs {
  align-self: flex-start;
  background: var(--bg);
  border-bottom-left-radius: 0.25rem;
}
.msg-time { font-size: 0.75rem; opacity: 0.6; margin-top: 0.25rem; }
.chat-empty, .chat-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
}
.chat-input-area {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
}
.chat-form {
  display: flex;
  gap: 0.75rem;
  align-items: end;
}
.chat-form textarea {
  flex: 1;
  resize: none;
  min-height: 40px;
  max-height: 120px;
  padding: 0.65rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  color: var(--text);
  font-size: 0.95rem;
}
.chat-form textarea:focus { border-color: var(--accent); outline: none; }

/* ============ PROFILE ============ */
.profile-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
}
.profile-sidebar { position: sticky; top: 6rem; align-self: start; }
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
}
.profile-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 2rem;
  margin: 0 auto 0.75rem;
  overflow: hidden;
}
.profile-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.profile-card h3 { margin-bottom: 0.5rem; }
.profile-rating { color: var(--accent); font-size: 1.1rem; margin-top: 0.5rem; }
.profile-nav {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}
.profile-nav-item {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: 0.15s;
  font-size: 0.95rem;
}
.profile-nav-item:last-child { border-bottom: none; }
.profile-nav-item:hover { background: rgba(124, 92, 252, 0.05); color: var(--text); }
.profile-nav-item.active { color: var(--accent); background: var(--accent-glow); }

.profile-main { min-width: 0; }
.profile-form .form-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.profile-form .form-section h3 { margin-bottom: 1rem; }
.avatar-upload {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.avatar-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  overflow: hidden;
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }

/* Profile Listings */
.profile-listings-list { display: flex; flex-direction: column; gap: 1rem; }
.profile-listing-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
}
.profile-listing-photo {
  width: 100px;
  height: 75px;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
}
.profile-listing-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-listing-info { flex: 1; min-width: 0; }
.profile-listing-info h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.profile-listing-info h3 a { color: var(--text); text-decoration: none; }
.profile-listing-info h3 a:hover { color: var(--accent); }
.profile-listing-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.85rem; color: var(--text-secondary); align-items: center; }
.profile-listing-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

/* Task/Bid Rows */
.tasks-list-profile, .bids-list-profile { display: flex; flex-direction: column; gap: 1rem; }
.task-row-card, .bid-row-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
}
.task-row-info, .bid-row-info { flex: 1; min-width: 0; }
.task-row-info h3, .bid-row-info h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.task-row-info h3 a, .bid-row-info h3 a { color: var(--text); text-decoration: none; }
.task-row-info h3 a:hover, .bid-row-info h3 a:hover { color: var(--accent); }
.task-row-meta, .bid-row-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.85rem; color: var(--text-secondary); align-items: center; }
.task-row-actions, .bid-row-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.bid-comment { margin-top: 0.5rem; font-size: 0.9rem; color: var(--text-secondary); }

/* ============ NOTIFICATIONS ============ */
.notifications-list { display: flex; flex-direction: column; gap: 0.5rem; }
.notification-item {
  display: flex;
  align-items: start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  text-decoration: none;
  color: var(--text);
  transition: 0.15s;
}
.notification-item.unread {
  background: var(--accent-glow);
  border-color: rgba(249, 115, 22, 0.2);
}
.notification-item:hover { border-color: var(--accent); }
.notification-icon { font-size: 1.5rem; flex-shrink: 0; }
.notification-title { font-weight: 600; margin-bottom: 0.25rem; }
.notification-text { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0.25rem; }
.notification-time { font-size: 0.8rem; color: var(--text-muted); }

/* ============ REQUESTS ============ */
.requests-list { display: flex; flex-direction: column; gap: 1rem; }
.request-card {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
}
.request-info { flex: 1; min-width: 0; }
.request-info h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.request-info h3 a { color: var(--text); text-decoration: none; }
.request-info h3 a:hover { color: var(--accent); }
.request-from { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.request-from a { color: var(--accent); }
.request-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.85rem; color: var(--text-secondary); align-items: center; }
.request-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

/* ============ ANALYTICS ============ */
.analytics-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.analytics-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.analytics-section h2 { margin-bottom: 1rem; }
.chart-container { overflow-x: auto; }
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 200px;
  padding: 0 0.5rem;
}
.bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}
.bar {
  width: 100%;
  min-width: 20px;
  max-width: 40px;
  background: var(--gradient);
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: 0.3s;
}
.bar:hover { opacity: 0.8; }
.bar-value {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}
.bar-label { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.25rem; }
.analytics-table { overflow-x: auto; }
.analytics-table table { width: 100%; }

/* ============ ADMIN ============ */
.admin-nav {
  display: flex;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 2rem;
}
.admin-nav-item {
  padding: 0.85rem 1.5rem;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: 0.15s;
  border-right: 1px solid var(--border);
  position: relative;
}
.admin-nav-item:last-child { border-right: none; }
.admin-nav-item:hover { color: var(--text); background: rgba(124, 92, 252, 0.05); }
.admin-nav-item.active { color: var(--accent); background: var(--accent-glow); }
.admin-nav-item .nav-badge {
  position: static;
  margin-left: 0.5rem;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.admin-stats-grid .stat-card.highlight {
  border-color: var(--pink);
  background: rgba(252, 92, 156, 0.1);
}

.admin-section { margin-bottom: 2.5rem; }
.admin-section h2 { margin-bottom: 1rem; }
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th, .admin-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.admin-table th {
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
}
.admin-table tr:hover td { background: rgba(124, 92, 252, 0.03); }
.row-banned td { opacity: 0.5; }
.admin-actions-cell { display: flex; gap: 0.25rem; }

/* Admin Listings */
.admin-listings-list { display: flex; flex-direction: column; gap: 1rem; }
.admin-listing-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  align-items: start;
}
.admin-listing-photo {
  width: 120px;
  height: 90px;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.admin-listing-photo img { width: 100%; height: 100%; object-fit: cover; }
.admin-listing-info { flex: 1; min-width: 0; }
.admin-listing-info h3 { margin-bottom: 0.5rem; }
.admin-listing-info h3 a { color: var(--text); text-decoration: none; }
.admin-listing-info h3 a:hover { color: var(--accent); }
.admin-listing-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.admin-listing-actions { display: flex; gap: 0.5rem; flex-shrink: 0; flex-wrap: wrap; }

/* Status Tabs */
.status-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}
.status-tab {
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: 0.15s;
}
.status-tab:hover { color: var(--text); }
.status-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.status-tab .count { opacity: 0.6; }

/* Reports */
.reports-list { display: flex; flex-direction: column; gap: 1rem; }
.report-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
}
.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.report-type { font-weight: 600; }
.report-date { font-size: 0.85rem; color: var(--text-muted); }
.report-info { margin-bottom: 0.75rem; }
.report-details { margin-top: 0.5rem; color: var(--text-secondary); font-size: 0.9rem; }
.report-actions { display: flex; gap: 0.5rem; }

/* ============ UTILITY EXTENSIONS ============ */
.page-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.page-header-row .page-title { margin-bottom: 0; }
.back-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.15s;
}
.back-link:hover { color: var(--accent); }
.link-muted { color: var(--text-muted); font-size: 0.9rem; }
.link-muted:hover { color: var(--accent); }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.checkbox-label input[type="checkbox"] { accent-color: var(--accent); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.85rem; }
.btn-xs { padding: 0.25rem 0.5rem; font-size: 0.8rem; }
.btn-danger { background: #dc2626; color: #fff !important; border-color: #dc2626; }
.btn-danger:hover { background: #b91c1c; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.55rem 1.25rem;
  border-radius: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Photo Upload */
.photo-upload-area {
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}
.photo-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.photo-preview {
  width: 100px;
  height: 75px;
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.photo-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: 0.2s;
}
.photo-add-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Listing Form Sections */
.listing-form .form-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.listing-form .form-section h3 { margin-bottom: 1rem; }
.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* Badge variants */
.badge-green { background: rgba(52, 211, 153, 0.15); color: var(--green); border-color: rgba(52, 211, 153, 0.3); }
.badge-yellow { background: rgba(252, 200, 92, 0.15); color: #fcbe5c; border-color: rgba(252, 200, 92, 0.3); }
.badge-blue { background: rgba(92, 156, 252, 0.15); color: #5c9cfc; border-color: rgba(92, 156, 252, 0.3); }
.badge-red { background: rgba(252, 92, 92, 0.15); color: #fc5c5c; border-color: rgba(252, 92, 92, 0.3); }

/* Empty States */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}
.empty-state h3 { color: var(--text); margin-bottom: 0.5rem; }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state-sm { padding: 2rem; text-align: center; color: var(--text-muted); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .listing-detail { grid-template-columns: 1fr; }
  .listing-gallery { position: static; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; }
  .chat-layout { grid-template-columns: 1fr; height: auto; }
  .chat-sidebar { max-height: 300px; }
  .company-header { flex-direction: column; align-items: center; text-align: center; }
  .company-stats { justify-content: center; }
  .admin-nav { flex-wrap: wrap; }
}
@media (max-width: 768px) {
  .filters-row { flex-direction: column; }
  .filter-input { width: 100%; }
  .profile-listing-row { flex-direction: column; align-items: start; }
  .profile-listing-actions { align-self: end; }
  .task-row-card, .bid-row-card, .request-card { flex-direction: column; align-items: start; }
  .task-row-actions, .bid-row-actions, .request-actions { align-self: end; }
  .admin-listing-card { flex-direction: column; }
  .role-selector { grid-template-columns: 1fr; }
  .chat-layout { grid-template-columns: 1fr; }
}

/* ═══ HERO SEARCH FIX ═══ */
.hero-search { position: relative; }
.hero-search input[type="text"] {
    padding: 1rem 1.5rem !important;
    padding-right: 130px !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    font-size: 1rem !important;
    height: auto !important;
}
.hero-search button {
    position: absolute; right: 6px; top: 6px; bottom: 6px;
    padding: 0 1.5rem;
    background: var(--gradient); color: white;
    border: none; border-radius: 12px;
    font-weight: 700; cursor: pointer;
    font-family: var(--font);
    z-index: 2;
}

/* ═══ КНОПКА РЕГИСТРАЦИЯ — белый текст ═══ */
.btn-accent {
    background: var(--gradient) !important;
    color: #fff !important;
    font-weight: 700;
}

/* ═══ КНОПКИ ВСЕ КАТЕГОРИИ ═══ */
.section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.section-title a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--accent);
    border-radius: 8px;
    transition: var(--transition);
}
.section-title a:hover { background: var(--accent-glow); }

/* ═══ FIX HERO SEARCH — видимый инпут ═══ */
.hero-search {
    position: relative !important;
    max-width: 600px;
    margin: 0 auto;
}
.hero-search input[type="text"] {
    width: 100% !important;
    padding: 1rem 130px 1rem 1.5rem !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    font-size: 1rem !important;
    color: var(--text) !important;
    display: block !important;
}
.hero-search button {
    position: absolute !important;
    right: 6px !important;
    top: 6px !important;
    bottom: 6px !important;
    width: auto !important;
    padding: 0 1.5rem !important;
    border-radius: 12px !important;
    z-index: 2;
}

/* ═══ CHAT FORM FIX ═══ */
.chat-form {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    width: 100%;
}
.chat-form textarea {
    flex: 1 !important;
    width: auto !important;
    padding: 0.65rem 1rem !important;
    background: var(--bg-input) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    color: var(--text) !important;
    font-size: 0.9rem !important;
    resize: none;
    min-height: 42px;
    max-height: 120px;
}
.chat-form button {
    width: 48px !important;
    min-width: 48px;
    height: 42px;
    padding: 0 !important;
    border-radius: 10px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--border);
}

/* ═══ TEXTAREA SPINNER FIX ═══ */
.chat-form textarea {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    overflow: hidden;
}

/* ═══ PRICING GRID ═══ */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; max-width: 960px; margin: 0 auto; }
.pricing-card { background: var(--bg-card); border: 2px solid var(--border); border-radius: 16px; padding: 2rem 1.5rem; text-align: center; position: relative; transition: all 0.3s; }
.pricing-card.popular { border-color: var(--accent); transform: scale(1.03); }
.pricing-card.current { border-color: var(--success); }
.pricing-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(249,115,22,0.15); }
.pricing-popular { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; padding: 0.25rem 1rem; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.pricing-card h3 { font-size: 1.3rem; font-weight: 800; color: var(--text); margin-bottom: 0.5rem; }
.pricing-price { font-size: 2rem; font-weight: 900; color: var(--accent); margin-bottom: 0.25rem; }
.pricing-price span { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }
.pricing-yearly { font-size: 0.8rem; color: var(--success); margin-bottom: 1rem; }
.pricing-features { list-style: none; padding: 0; margin: 1.5rem 0; text-align: left; }
.pricing-features li { padding: 0.4rem 0; color: var(--text-secondary); font-size: 0.9rem; }

/* ═══ PLAN BADGES ═══ */
.plan-badge { padding: 0.15rem 0.5rem; border-radius: 6px; font-size: 0.75rem; font-weight: 700; }
.plan-pro { background: rgba(249,115,22,0.15); color: var(--accent); }
.plan-business { background: rgba(255,215,0,0.15); color: #ffd700; }

/* ═══ VERIFICATION ═══ */
.verification-form h3 { color: var(--text); margin-bottom: 0.5rem; }
.badge-verified { background: rgba(34,197,94,0.15); color: #22c55e; padding: 0.2rem 0.6rem; border-radius: 6px; font-size: 0.8rem; }

/* ═══ RATING STARS ═══ */
.star-rating { display: inline-flex; gap: 2px; }
.star-rating .star { font-size: 1.1rem; cursor: pointer; transition: color 0.15s; }
.star-rating .star.filled { color: #f59e0b; }
.star-rating .star.empty { color: var(--text-muted); opacity: 0.3; }
.rating-summary { display: flex; align-items: center; gap: 0.75rem; }
.rating-number { font-size: 2rem; font-weight: 800; color: var(--accent); }
.rating-bars { flex: 1; }
.rating-bar-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--text-muted); }
.rating-bar-track { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: #f59e0b; border-radius: 3px; }

/* ═══ GOOGLE BUTTON ═══ */
.btn-google { transition: all 0.2s; }
.btn-google:hover { background: #f5f5f5 !important; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }

/* ═══ BUDGET TOGGLE ═══ */
.budget-toggle {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.2s;
    background: var(--bg-card);
}
.budget-toggle:hover { border-color: var(--accent); color: var(--text); }
.budget-toggle.active { border-color: var(--accent); background: rgba(249,115,22,0.1); color: var(--accent); font-weight: 600; }

/* ═══ DATE INPUT FIX ═══ */
input[type="date"] {
    color-scheme: dark;
}
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7);
    cursor: pointer;
}

/* Styled file upload button */
.file-btn:hover { background: var(--bg-card) !important; border-color: var(--accent) !important; color: var(--accent) !important; }

/* Filter bar */
.filter-row { display:flex; gap:8px; margin-bottom:1.25rem; flex-wrap:wrap; }
.filter-row select, .filter-row input[type="text"] {
  padding:10px 14px; background:var(--bg-card); border:1px solid var(--border);
  border-radius:8px; color:var(--text); font-size:14px; outline:none; font-family:var(--font);
}
.filter-row select:focus, .filter-row input[type="text"]:focus { border-color:var(--accent); }
.filter-row select { cursor:pointer; }
.filter-row input[type="text"] { flex:1; min-width:120px; }
.filter-row input[type="text"]::placeholder { color:var(--text-muted); }
.filter-row .f-btn {
  padding:10px 20px; background:var(--accent); color:#fff; border:none;
  border-radius:8px; font-size:14px; font-weight:600; cursor:pointer;
}
.filter-row .f-btn:hover { opacity:0.9; }
