/* ============================================================
   USTAАЛ — MAIN STYLESHEET  |  Mobile-first, Modern Design
   ============================================================ */

/* ── TOKENS ── */
:root {
  --orange:      #f05a28;
  --orange-dark: #c94518;
  --orange-light:#fff3ee;
  --navy:        #0f1c2e;
  --navy-mid:    #1a2d45;
  --text:        #1e2a38;
  --text-muted:  #6b7a8d;
  --border:      #e4e9f0;
  --bg:          #f4f6fb;
  --white:       #ffffff;
  --green:       #22c55e;
  --red:         #ef4444;
  --blue:        #3b82f6;
  --yellow:      #f59e0b;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow-sm:   0 1px 4px rgba(0,0,0,.06);
  --shadow:      0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.12);
  --transition:  .2s ease;
  --font:        'Inter', 'Segoe UI', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; }

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text);
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin: 10px auto 0;
}

/* ── NAVBAR ── */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  position: sticky;
  top: 0;
  z-index: 200;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo i { font-size: 1.3rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links > a {
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links > a:hover { color: var(--orange); background: var(--orange-light); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background var(--transition);
}
.nav-toggle:hover { background: var(--bg); }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Nav icon (messages) */
.nav-icon { position: relative; }
.badge {
  position: absolute;
  top: -4px; right: -6px;
  background: var(--red);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  border-radius: 50%;
  width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--white);
}

/* ── DROPDOWN ── */
.dropdown { position: relative; }
.btn-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(240,90,40,.35);
  transition: transform var(--transition);
}
.btn-avatar:hover { transform: scale(1.08); }
.dropdown-menu {
  display: none;
  position: absolute;
  right: 0; top: calc(100% + 8px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  overflow: hidden;
  border: 1px solid var(--border);
  animation: fadeDown .15s ease;
}
@keyframes fadeDown { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: .88rem;
  color: var(--text);
  transition: background var(--transition);
}
.dropdown-menu a:hover { background: var(--bg); }
.dropdown-menu a i { width: 16px; color: var(--text-muted); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(240,90,40,.35); }
.btn-outline { background: transparent; color: var(--orange); border-color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: #fff; transform: translateY(-1px); }
.btn-sm { padding: 6px 14px; font-size: .82rem; border-radius: 8px; }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger:hover { background: #dc2626; }
.text-danger { color: var(--red) !important; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, #1e3a5f 100%);
  color: #fff;
  padding: clamp(60px, 10vw, 100px) 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero h1 span { color: var(--orange); }
.hero p { font-size: clamp(.95rem, 2vw, 1.15rem); opacity: .85; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-search {
  display: flex;
  max-width: 580px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.hero-search input {
  flex: 1;
  border: none;
  padding: 16px 22px;
  font-size: 1rem;
  outline: none;
  color: var(--text);
  background: transparent;
}
.hero-search button {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 16px 28px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-search button:hover { background: var(--orange-dark); }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 5vw, 60px);
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--orange); }
.hero-stat span { font-size: .85rem; opacity: .75; }

/* ── CATEGORY CARDS ── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.cat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 14px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
}
.cat-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.cat-card i {
  font-size: 1.8rem;
  color: var(--orange);
  margin-bottom: 10px;
  display: block;
}
.cat-card span { font-size: .85rem; font-weight: 600; color: var(--text); line-height: 1.3; }

/* ── PRO CARDS ── */
.pros-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.pro-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: block;
}
.pro-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--orange); }
.pro-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pro-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(240,90,40,.3);
}
.pro-name { font-weight: 700; font-size: .95rem; color: var(--text); }
.pro-city { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }
.stars { color: var(--yellow); font-size: .9rem; letter-spacing: 1px; }
.pro-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag {
  background: var(--orange-light);
  color: var(--orange);
  font-size: .72rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}
.verified-badge { color: var(--green); font-size: .8rem; margin-left: 4px; }

/* ── JOB CARDS ── */
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.job-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: block;
}
.job-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--orange); }
.job-card h3 { font-size: .95rem; font-weight: 700; margin: 8px 0 10px; color: var(--text); }
.job-meta { font-size: .8rem; color: var(--text-muted); display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.job-meta i { color: var(--orange); }

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .3px;
}
.status-open       { background: #dcfce7; color: #15803d; }
.status-in_progress{ background: #dbeafe; color: #1d4ed8; }
.status-completed  { background: #f1f5f9; color: #475569; }
.status-cancelled  { background: #fee2e2; color: #b91c1c; }
.status-pending    { background: #fef9c3; color: #854d0e; }
.status-accepted   { background: #dcfce7; color: #15803d; }
.status-rejected   { background: #fee2e2; color: #b91c1c; }

/* ── FORMS ── */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 40px);
  box-shadow: var(--shadow);
  max-width: 520px;
  margin: 40px auto;
  border: 1px solid var(--border);
}
.form-card h2 { margin-bottom: 24px; font-size: 1.5rem; font-weight: 800; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: .93rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--bg);
  color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(240,90,40,.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.alert {
  padding: 13px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: .88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-error   { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }

/* ── HOW IT WORKS ── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 16px;
}
.how-step {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border);
  position: relative;
  transition: all var(--transition);
}
.how-step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.how-step-num {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: .8rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.how-step i { font-size: 2.2rem; color: var(--orange); margin-bottom: 14px; }
.how-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.how-step p { color: var(--text-muted); font-size: .88rem; line-height: 1.6; }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 60px);
  text-align: center;
  color: #fff;
  margin: 0 20px;
}
.cta-banner h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin-bottom: 12px; }
.cta-banner p { opacity: .9; margin-bottom: 24px; font-size: .95rem; }
.btn-white { background: #fff; color: var(--orange); border-color: #fff; }
.btn-white:hover { background: var(--orange-light); }

/* ── AD SLOTS ── */
.ad-slot {
  position: relative;
  text-align: center;
  overflow: hidden;
}
.ad-slot--hero_bottom { padding: 16px 0; background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ad-slot--between_sections { padding: 20px 0; }
.ad-slot--footer_top { padding: 24px 0; background: var(--white); border-top: 1px solid var(--border); }
.ad-slot--content_top,
.ad-slot--content_mid { padding: 16px 0; }
.ad-slot--sidebar { margin-bottom: 20px; }
.ad-label {
  display: inline-block;
  font-size: .65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.ad-slot img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}
.ad-slot img:hover { transform: scale(1.01); }

/* Leaderboard (728x90) */
.ad-slot--hero_bottom .ad-slot,
.ad-slot--footer_top .ad-slot { max-width: 728px; margin: 0 auto; }

/* ── PROFILE ── */
.profile-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; padding: 40px 0; }
.profile-sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  text-align: center;
  height: fit-content;
}
.profile-avatar-big {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 4px 16px rgba(240,90,40,.3);
}

/* ── MESSAGES ── */
.messages-layout { display: grid; grid-template-columns: 300px 1fr; gap: 0; height: calc(100vh - 68px); }
.conv-list { border-right: 1px solid var(--border); overflow-y: auto; background: var(--white); }
.conv-item { padding: 14px 18px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background var(--transition); }
.conv-item:hover, .conv-item.active { background: var(--orange-light); }
.conv-item .conv-name { font-weight: 600; font-size: .9rem; }
.conv-item .conv-preview { font-size: .8rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.chat-area { display: flex; flex-direction: column; background: var(--bg); }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.msg-bubble { max-width: 65%; padding: 11px 15px; border-radius: 16px; font-size: .9rem; line-height: 1.5; }
.msg-bubble.sent { background: var(--orange); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg-bubble.received { background: var(--white); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
.chat-input { display: flex; gap: 10px; padding: 16px; border-top: 1px solid var(--border); background: var(--white); }
.chat-input input { flex: 1; padding: 11px 16px; border: 1.5px solid var(--border); border-radius: 24px; outline: none; font-size: .93rem; }
.chat-input input:focus { border-color: var(--orange); }

/* ── FOOTER ── */
.footer { background: var(--navy); color: #94a3b8; padding: 56px 0 0; margin-top: 60px; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px; padding-bottom: 48px; }
.footer-col h4 { color: #fff; margin-bottom: 16px; font-size: .95rem; font-weight: 700; }
.footer-col p { font-size: .85rem; line-height: 1.8; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: .85rem; color: #94a3b8; transition: color var(--transition); display: flex; align-items: center; gap: 6px; }
.footer-col ul li a:hover { color: var(--orange); }
.footer-logo { font-size: 1.4rem; font-weight: 800; color: var(--orange); display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); text-align: center; padding: 18px; font-size: .82rem; color: #64748b; }

/* ── TABLE ── */
.table-wrap { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th { background: var(--bg); padding: 13px 16px; text-align: left; font-size: .82rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--border); }
td { padding: 13px 16px; font-size: .88rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg); }

/* ── ADMIN ── */
.admin-layout { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 68px); }
.admin-sidebar {
  background: var(--navy);
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
}
.admin-sidebar-logo {
  padding: 22px 20px;
  color: var(--orange);
  font-weight: 800;
  font-size: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  font-size: .88rem;
  color: #94a3b8;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.admin-sidebar a:hover { background: rgba(255,255,255,.05); color: #fff; }
.admin-sidebar a.active { background: rgba(240,90,40,.15); color: var(--orange); border-left-color: var(--orange); }
.admin-sidebar-back { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px !important; }
.admin-content { padding: 28px 32px; overflow-y: auto; }
.admin-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.admin-page-header h2 { font-size: 1.4rem; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.admin-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
}
.stat-card .stat-num { font-size: 2rem; font-weight: 800; color: var(--orange); line-height: 1; }
.stat-card .stat-label { font-size: .82rem; color: var(--text-muted); margin-top: 6px; font-weight: 500; }

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { flex-direction: row; flex-wrap: wrap; padding: 0; }
  .admin-sidebar-logo { width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); border-right: none; }
  .admin-sidebar a { padding: 10px 14px; font-size: .8rem; border-left: none; border-bottom: 3px solid transparent; }
  .admin-sidebar a.active { border-bottom-color: var(--orange); border-left-color: transparent; }
  .admin-sidebar-back { margin-top: 0; border-top: none; }
  .admin-content { padding: 20px 16px; }
  .profile-layout { grid-template-columns: 1fr; }
  .messages-layout { grid-template-columns: 1fr; height: auto; }
  .conv-list { max-height: 260px; border-right: none; border-bottom: 1px solid var(--border); }
  .chat-area { min-height: 400px; }
}

@media (max-width: 768px) {
  /* Navbar mobile */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 199;
    border-top: 1px solid var(--border);
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links > a {
    padding: 12px 20px;
    border-radius: 0;
    font-size: .95rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links > a:last-of-type { border-bottom: none; }
  .nav-links .btn { margin: 8px 16px 0; justify-content: center; }
  .dropdown { width: 100%; }
  .dropdown-menu { position: static; box-shadow: none; border: none; background: var(--bg); border-radius: 0; }
  .dropdown:hover .dropdown-menu { display: none; }
  .dropdown.open .dropdown-menu { display: block; }
  .btn-avatar { width: 100%; border-radius: 0; background: var(--bg); color: var(--text); font-size: .95rem; padding: 12px 20px; text-align: left; box-shadow: none; }

  /* Hero */
  .hero-search { flex-direction: column; border-radius: var(--radius); }
  .hero-search input { border-radius: var(--radius) var(--radius) 0 0; }
  .hero-search button { border-radius: 0 0 var(--radius) var(--radius); justify-content: center; }
  .hero-stats { gap: 24px; }

  /* Grids */
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .pros-grid { grid-template-columns: 1fr; }
  .jobs-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }

  /* Section padding */
  .section { padding: 44px 0; }
  .cta-banner { margin: 0 12px; }

  /* Admin table scroll */
  .table-wrap { overflow-x: auto; }
  table { min-width: 600px; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 1.6rem; }
  .form-card { margin: 20px 12px; padding: 24px 18px; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 16px; }
  .hero-stat strong { font-size: 1.4rem; }
}

/* ── UTILITIES ── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.gap-2 { gap: 8px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }

/* ============================================================
   PROFİL SAYFASI
   ============================================================ */
.profile-page { padding: 32px 0 60px; }

/* Hero */
.profile-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.profile-hero-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  font-size: 2.2rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(240,90,40,.3);
}
.profile-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero-info h1 { font-size: 1.4rem; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-hero-info p { color: var(--text-muted); font-size: .9rem; margin-top: 4px; }
.profile-badges { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.role-badge {
  padding: 3px 12px; border-radius: 20px; font-size: .75rem; font-weight: 700;
}
.role-customer { background: #dbeafe; color: #1d4ed8; }
.role-pro       { background: var(--orange-light); color: var(--orange); }
.role-admin     { background: #f3e8ff; color: #7c3aed; }
.verified-pill {
  background: #dcfce7; color: #15803d;
  padding: 3px 12px; border-radius: 20px; font-size: .75rem; font-weight: 700;
  display: flex; align-items: center; gap: 5px;
}

/* Sekmeler */
.profile-tabs {
  display: flex;
  gap: 4px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.profile-tabs::-webkit-scrollbar { display: none; }
.profile-tabs a {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all var(--transition);
}
.profile-tabs a:hover { background: var(--bg); color: var(--text); }
.profile-tabs a.active { background: var(--orange); color: #fff; }
.profile-tabs a i { font-size: .9rem; }

/* Kart */
.profile-section { display: flex; flex-direction: column; gap: 20px; }
.profile-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.card-title i { color: var(--orange); }

/* Avatar upload */
.avatar-upload { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.avatar-preview {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }

/* Kategori seçim grid */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.cat-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 500;
  transition: all var(--transition);
  background: var(--bg);
}
.cat-check input { display: none; }
.cat-check i { color: var(--text-muted); font-size: .9rem; }
.cat-check:hover { border-color: var(--orange); background: var(--orange-light); }
.cat-check.checked,
.cat-check:has(input:checked) {
  border-color: var(--orange);
  background: var(--orange-light);
  color: var(--orange);
}
.cat-check:has(input:checked) i { color: var(--orange); }

/* Portföy */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.portfolio-item img {
  width: 100%; height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* Sosyal medya */
.social-input-group .form-group { margin-bottom: 0; }
.social-input-group label { display: flex; align-items: center; gap: 8px; }
.social-input-group label i { font-size: 1.1rem; width: 20px; }
.fa-instagram { color: #e1306c; }
.fa-facebook  { color: #1877f2; }
.fa-x-twitter { color: #000; }
.fa-linkedin  { color: #0a66c2; }
.fa-youtube   { color: #ff0000; }

/* Doğrulama */
.verify-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.verify-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
  margin-left: 10px;
}
.verify-badge.verified   { background: #dcfce7; color: #15803d; }
.verify-badge.unverified { background: #fee2e2; color: #b91c1c; }

.verify-result {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.verify-result i { font-size: 2rem; flex-shrink: 0; margin-top: 2px; }
.verify-result strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.verify-result p { font-size: .88rem; margin: 0; }
.verified-result  { background: #dcfce7; color: #15803d; }
.pending-result   { background: #fef9c3; color: #854d0e; }
.rejected-result  { background: #fee2e2; color: #b91c1c; }

/* Kimlik yükleme */
.id-upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.id-upload-item label { cursor: pointer; display: block; }
.id-upload-item input { display: none; }
.id-upload-box {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  transition: all var(--transition);
  background: var(--bg);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.id-upload-box:hover { border-color: var(--orange); background: var(--orange-light); }
.id-upload-box i { font-size: 2rem; color: var(--text-muted); }
.id-upload-box span { font-size: .88rem; font-weight: 600; color: var(--text); }
.id-upload-box small { font-size: .75rem; color: var(--text-muted); }

/* Şifre toggle butonu */
.pw-toggle {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  transition: color var(--transition);
}
.pw-toggle:hover { color: var(--orange); }

/* ── MOBİL ── */
@media (max-width: 600px) {
  .profile-hero { padding: 20px 16px; gap: 16px; }
  .profile-hero-avatar { width: 64px; height: 64px; font-size: 1.6rem; }
  .profile-hero-info h1 { font-size: 1.1rem; }
  .profile-tabs a span { display: none; }
  .profile-tabs a { padding: 10px 14px; }
  .profile-tabs a i { font-size: 1.1rem; }
  .profile-card { padding: 18px 14px; }
  .cats-grid { grid-template-columns: 1fr 1fr; }
  .id-upload-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
