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

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f5f5f5;
  color: #333;
}

/* NAVBAR */
.navbar {
  background: #fff;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: #6c63ff;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  color: #555;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-links a:hover { background: #f0f0f0; color: #333; }

.btn-nav {
  background: #6c63ff !important;
  color: #fff !important;
}

.btn-nav:hover { background: #5a52e0 !important; }

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

.auth-box {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.auth-box h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 24px;
  color: #1a1a2e;
}

/* ROLE TABS */
.role-tabs {
  display: flex;
  background: #f5f5f5;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
  gap: 4px;
}

.role-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: #777;
  transition: all 0.2s;
}

.role-btn.active {
  background: #6c63ff;
  color: #fff;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #6c63ff;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #555;
}

.form-check a { color: #6c63ff; }

/* BUTTONS */
.btn-primary {
  width: 100%;
  padding: 14px;
  background: #6c63ff;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover { background: #5a52e0; }

.btn-outline {
  padding: 14px 24px;
  background: transparent;
  color: #6c63ff;
  border: 2px solid #6c63ff;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-outline:hover { background: #6c63ff; color: #fff; }

/* MESSAGES */
.msg {
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 12px;
  display: none;
}

.msg.success { display: block; background: #e8f5e9; color: #2e7d32; }
.msg.error { display: block; background: #fdecea; color: #c62828; }

.auth-link {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: #777;
}

.auth-link a { color: #6c63ff; font-weight: 600; }

/* DASHBOARD */
.dashboard {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 64px);
}

.dashboard-sidebar {
  background: #fff;
  border-right: 1px solid #eee;
  padding: 24px;
}

.user-card {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.user-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #6c63ff;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.user-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.user-role {
  font-size: 13px;
  color: #777;
}

.verify-warning {
  margin-top: 8px;
  font-size: 12px;
  color: #e65100;
  background: #fff3e0;
  padding: 6px 10px;
  border-radius: 8px;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-link {
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  transition: all 0.2s;
}

.dash-link:hover, .dash-link.active {
  background: #f0eeff;
  color: #6c63ff;
}

.dashboard-content {
  padding: 32px;
}

.dashboard-content h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
}

.dash-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.dash-actions .btn-primary { width: auto; }

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.stat-num {
  font-size: 32px;
  font-weight: 800;
  color: #6c63ff;
}

.stat-label {
  font-size: 13px;
  color: #777;
  margin-top: 4px;
}

/* FOOTER */
.footer {
  background: #1a1a2e;
  color: #aaa;
  padding: 32px 40px;
  text-align: center;
  margin-top: 60px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 800;
  color: #6c63ff;
  margin-bottom: 8px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar { padding: 0 16px; }
  .form-row { grid-template-columns: 1fr; }
  .dashboard { grid-template-columns: 1fr; }
  .dashboard-sidebar { border-right: none; border-bottom: 1px solid #eee; }
  .dash-stats { grid-template-columns: 1fr; }
  .dash-actions { flex-direction: column; }
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #6c63ff 0%, #4834d4 100%);
  padding: 80px 40px;
  text-align: center;
  color: #fff;
}
.hero-inner { max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 52px; font-weight: 900; line-height: 1.1; margin-bottom: 16px; }
.hero h1 span { color: #ffd700; }
.hero p { font-size: 18px; opacity: 0.9; margin-bottom: 32px; }

.search-box {
  display: flex; gap: 8px; max-width: 640px; margin: 0 auto 20px;
  background: #fff; border-radius: 12px; padding: 8px;
}
.search-box input {
  flex: 1; border: none; outline: none; font-size: 15px;
  padding: 10px 14px; border-radius: 8px;
}
.search-box select {
  border: none; outline: none; font-size: 14px;
  padding: 10px 14px; border-radius: 8px; background: #f5f5f5;
  cursor: pointer;
}
.search-box button {
  background: #6c63ff; color: #fff; border: none;
  border-radius: 8px; padding: 10px 24px; font-size: 15px;
  font-weight: 600; cursor: pointer; white-space: nowrap;
}
.search-box button:hover { background: #5a52e0; }

.search-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.search-tags span {
  background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px; padding: 6px 16px; font-size: 13px;
  cursor: pointer; transition: all 0.2s;
}
.search-tags span:hover { background: rgba(255,255,255,0.35); }

/* STATS */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #1a1a2e;
}
.stat { padding: 28px; text-align: center; border-right: 1px solid #2a2a3d; }
.stat:last-child { border-right: none; }
.stat-n { font-size: 32px; font-weight: 800; color: #6c63ff; }
.stat-l { font-size: 13px; color: #aaa; margin-top: 4px; }

/* CATEGORIES */
.categories-section { padding: 60px 40px; background: #f9f9f9; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-inner h2 { font-size: 32px; font-weight: 800; margin-bottom: 32px; text-align: center; }
.categories-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-card {
  background: #fff; border-radius: 14px; padding: 24px 16px;
  text-align: center; text-decoration: none; color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: all 0.2s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(108,99,255,0.15); color: #6c63ff; }
.cat-icon { font-size: 36px; margin-bottom: 10px; }
.cat-name { font-size: 14px; font-weight: 600; }

/* HOW IT WORKS */
.how-section { padding: 60px 40px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 32px; }
.step { text-align: center; }
.step-num {
  width: 56px; height: 56px; background: #6c63ff; color: #fff;
  border-radius: 50%; font-size: 22px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { color: #777; font-size: 14px; }

/* CTA */
.cta-section { padding: 60px 40px; background: #f0eeff; text-align: center; }
.cta-section h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.cta-section p { color: #777; font-size: 16px; margin-bottom: 28px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; }
.cta-btns .btn-primary { width: auto; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .hero { padding: 50px 20px; }
  .search-box { flex-direction: column; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .cta-btns { flex-direction: column; align-items: center; }
  .categories-section, .how-section, .cta-section { padding: 40px 20px; }
}
/* PAGE LAYOUT */
.page-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 64px);
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
  gap: 24px;
}

.filter-side {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  height: fit-content;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.filter-side h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.filter-block {
  margin-bottom: 16px;
}

.filter-block label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #777;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-block select,
.filter-block input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #fff;
}

.filter-block select:focus,
.filter-block input:focus { border-color: #6c63ff; }

.content-main { min-width: 0; }

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

.search-inline {
  display: flex;
  flex: 1;
  gap: 8px;
}

.search-inline input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}

.search-inline input:focus { border-color: #6c63ff; }

.search-inline button {
  background: #6c63ff;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.content-header .btn-primary { width: auto; white-space: nowrap; }

.results-count {
  font-size: 14px;
  color: #777;
  margin-bottom: 16px;
}

/* SPECIALIST CARDS */
.specialists-list { display: flex; flex-direction: column; gap: 16px; }

.spec-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 16px;
  align-items: start;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.spec-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108,99,255,0.12);
}

.spec-avatar {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: #6c63ff;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spec-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.spec-location { font-size: 13px; color: #777; margin-bottom: 8px; }
.spec-bio { font-size: 13px; color: #555; margin-bottom: 10px; line-height: 1.5; }
.spec-meta { display: flex; gap: 16px; font-size: 13px; color: #777; }

.spec-price { text-align: right; flex-shrink: 0; }
.price-num { font-size: 18px; font-weight: 700; color: #1a1a2e; margin-bottom: 2px; }
.price-unit { font-size: 12px; color: #777; margin-bottom: 12px; }
.spec-price .btn-primary { width: auto; padding: 10px 18px; font-size: 13px; }

/* ORDER CARDS */
.orders-list { display: flex; flex-direction: column; gap: 16px; }

.order-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.2s;
}

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

.order-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.order-cat {
  background: #f0eeff;
  color: #6c63ff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}

.order-budget { font-size: 16px; font-weight: 700; color: #2e7d32; }
.order-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.order-desc { font-size: 13px; color: #555; line-height: 1.6; margin-bottom: 14px; }

.order-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.order-meta { display: flex; gap: 16px; font-size: 13px; color: #777; }

.btn-respond {
  background: #6c63ff;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-respond:hover { background: #5a52e0; }

/* PROFILE PAGE */
.profile-page {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 24px;
}

.profile-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: #6c63ff;
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.profile-card h1 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.profile-location { font-size: 13px; color: #777; margin-bottom: 16px; }

.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #eee;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.pstat { background: #f9f9f9; padding: 14px 8px; text-align: center; }
.pstat-n { font-size: 18px; font-weight: 700; color: #6c63ff; }
.pstat-l { font-size: 11px; color: #777; margin-top: 2px; }

.profile-price { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: #1a1a2e; }
.profile-card .btn-primary { width: 100%; }

.profile-right { display: flex; flex-direction: column; gap: 20px; }

.profile-section {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.profile-section h2 { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.empty-text { color: #777; font-size: 14px; }

.review-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 10px;
}

.review-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.review-author { font-weight: 600; font-size: 14px; }
.review-stars { color: #f5a623; font-size: 16px; }
.review-text { font-size: 13px; color: #555; line-height: 1.6; }

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #777;
}

.empty-state h3 { font-size: 20px; font-weight: 700; margin: 16px 0 8px; color: #333; }
.empty-state p { font-size: 14px; }

@media (max-width: 768px) {
  .page-layout { grid-template-columns: 1fr; padding: 16px; }
  .filter-side { display: none; }
  .spec-card { grid-template-columns: 56px 1fr; }
  .spec-price { display: none; }
  .profile-page { grid-template-columns: 1fr; }
  .content-header { flex-wrap: wrap; }
}
/* ===== БУРГЕР МЕНЮ ===== */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 101;
}
.burger span {
  display: block;
  width: 25px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: 0.3s;
}
@media (max-width: 768px) {
  .burger { display: flex; }
  .nav-links {
    display: none !important;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column !important;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 999;
    gap: 4px;
    border-top: 1px solid #eee;
  }
  .nav-links.open { display: flex !important; }
  .nav-links a {
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 10px;
    color: #333;
    width: 100%;
  }
  .btn-nav {
    background: #6c63ff !important;
    color: #fff !important;
    text-align: center;
  }
}

/* SEARCH BOX FIX */
.search-box {
  flex-wrap: wrap;
}
.search-box input {
  min-width: 200px;
  flex: 2;
}
.search-box select {
  flex: 1;
  min-width: 130px;
}
.search-box button {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .search-box input { flex: 1 1 100%; }
  .search-box select { flex: 1 1 45%; }
  .search-box button { flex: 1 1 100%; }
}

/* ADMIN STYLES */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th {
  background: #f5f5f5;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: #555;
  border-bottom: 1px solid #eee;
}
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f5f5f5;
  color: #333;
}
.admin-table tr:hover td { background: #fafafa; }
.btn-sm {
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
}
.btn-danger { background: #fdecea; color: #c62828; }
.btn-success { background: #e8f5e9; color: #2e7d32; }
.sort-select {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}
