/* ═══════════════════════════════════════════════
   FIX-ME — Global Stylesheet
   ═══════════════════════════════════════════════ */

:root {
  --primary:   #1B4F72;
  --primary-d: #154260;
  --orange:    #E67E22;
  --orange-d:  #CA6F1E;
  --green:     #27AE60;
  --green-l:   #4CAF50;
  --red:       #E74C3C;
  --yellow:    #F1C40F;
  --bg:        #F4F6F8;
  --card:      #FFFFFF;
  --text:      #2C3E50;
  --text-m:    #5D6D7E;
  --border:    #D5D8DC;
  --shadow:    0 4px 15px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.15);
  --radius:    12px;
  --radius-s:  8px;
  --transition: .2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange); }

/* ── Typography ── */
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section    { padding: 60px 0; }
.section-sm { padding: 32px 0; }

/* ══════════════════════════════════
   NAVBAR
══════════════════════════════════ */
.navbar {
  background: var(--primary);
  padding: 0 20px;
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.navbar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
  padding: 8px 0;
}
.navbar-logo {
  display: flex; align-items: center; gap: 0;
  font-size: 2rem; font-weight: 900; letter-spacing: -1px;
  color: #fff; text-decoration: none;
  flex-shrink: 0; line-height: 1;
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 10px;
  padding: 6px 14px;
  transition: background var(--transition);
}
.navbar-logo:hover { background: rgba(255,255,255,.2); color: #fff; }
.navbar-logo span { color: var(--orange); }
.navbar-nav { display: flex; gap: 8px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav-name { color: rgba(255,255,255,.8); font-size: .9rem; }

/* ══════════════════════════════════
   BUTTONS
══════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-s);
  font-size: 1rem; font-weight: 700; cursor: pointer;
  border: none; transition: all var(--transition);
  text-decoration: none; white-space: nowrap;
  position: relative;
  box-shadow: 0 4px 0 rgba(0,0,0,.25), 0 6px 16px rgba(0,0,0,.15);
}
.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(0,0,0,.25), 0 2px 6px rgba(0,0,0,.1);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); color: #fff; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-d); color: #fff; }
.btn-green  { background: var(--green); color: #fff; }
.btn-green:hover  { background: #1e8449; color: #fff; }
.btn-red    { background: var(--red); color: #fff; }
.btn-red:hover    { background: #c0392b; color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); box-shadow: none; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #f0f0f0; }
.btn-warning { background: var(--orange); color: #fff; }
.btn-warning:hover { background: var(--orange-d); color: #fff; }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: #1e8449; color: #fff; }
.btn-danger  { background: var(--red); color: #fff; }
.btn-danger:hover { background: #c0392b; color: #fff; }
.btn-soft-primary { background: #f0f4ff; color: var(--primary); border: 1.5px solid var(--primary); box-shadow: none; font-weight: 600; }
.btn-soft-primary:hover { background: #e0e9ff; }
.btn-soft-green { background: #d4f4e4; color: #1e8449; border: 1.5px solid var(--green); box-shadow: none; font-weight: 700; }
.btn-soft-green:hover { background: #bdeed6; }
.btn-soft-red { background: #fff0f0; color: var(--red); border: 1.5px solid var(--red); box-shadow: none; font-weight: 600; }
.btn-soft-red:hover { background: #ffe0e0; }
.btn-sm { padding: 8px 16px; font-size: .875rem; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
/* Navbar outline buttons always sit on the dark brand gradient */
.navbar .btn-outline { color: #fff; border-color: rgba(255,255,255,.5); }
.navbar .btn-outline:hover { background: rgba(255,255,255,.15); color: #fff; }
.tab-btn {
  padding: 12px 20px; border: none; background: none; cursor: pointer;
  font-weight: 600; color: var(--text-m); font-size: .95rem;
  border-bottom: 3px solid transparent;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }

/* Mascot buttons */
.btn-mascot { gap: 14px; padding-left: 16px; }
.btn-mascot::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}
.btn-turtle::before {
  content: '👨‍🔧';
  background: rgba(230, 126, 34, 0.2);
  border: 2px solid rgba(230, 126, 34, 0.5);
}
.btn-croc::before {
  content: '👨‍💼';
  background: rgba(27, 79, 114, 0.2);
  border: 2px solid rgba(27, 79, 114, 0.5);
}
.btn-santa::before {
  content: '💰';
  background: rgba(39, 174, 96, 0.2);
  border: 2px solid rgba(39, 174, 96, 0.5);
}
/* Keep sm buttons mascots proportionally smaller */
.btn-sm.btn-mascot::before { width: 32px; height: 32px; font-size: 1.3rem; }
.btn-sm.btn-mascot { gap: 8px; }

/* ══════════════════════════════════
   FORM FIELDS
══════════════════════════════════ */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; margin-bottom: 6px;
  font-weight: 600; font-size: .9rem; color: var(--text);
}
.form-control {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--border); border-radius: var(--radius-s);
  font-size: 1rem; color: var(--text);
  background: #fff; transition: all var(--transition);
  font-family: inherit;
}
.form-control:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,79,114,.15);
}
.form-control.field-valid {
  border-color: var(--green-l);
  box-shadow: 0 0 0 3px rgba(76,175,80,.2), 0 0 12px rgba(76,175,80,.15);
}
.form-control.field-invalid { border-color: var(--red); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-hint { font-size: .8rem; color: var(--text-m); margin-top: 4px; }
.form-error { font-size: .85rem; color: var(--red); margin-top: 4px; display: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ══════════════════════════════════
   CARDS
══════════════════════════════════ */
.card {
  background: var(--card); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-header { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.card-footer { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }

/* ══════════════════════════════════
   JOB CARD
══════════════════════════════════ */
.job-card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.job-card-img { width: 100%; height: 180px; object-fit: cover; background: #eee; }
.job-card-img-placeholder {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.job-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.job-card-category {
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: var(--orange); display: flex; align-items: center; gap: 4px;
}
.job-card-title { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.job-card-desc { font-size: .9rem; color: var(--text-m); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job-card-meta { display: flex; gap: 12px; font-size: .85rem; color: var(--text-m); flex-wrap: wrap; }
.job-card-meta span { display: flex; align-items: center; gap: 4px; }
.job-card-footer { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.job-budget { font-size: 1.2rem; font-weight: 800; color: var(--primary); }
.job-unlock { font-size: .8rem; color: var(--text-m); }
.badge-urgent { background: var(--red); color: #fff; font-size: .7rem; padding: 2px 8px; border-radius: 20px; font-weight: 700; }
.badge-unlocked { background: var(--green); color: #fff; font-size: .7rem; padding: 2px 8px; border-radius: 20px; font-weight: 700; }
.demo-badge { display: inline-block; background: #7c3aed; color: #fff; font-size: .7rem; padding: 2px 9px; border-radius: 20px; font-weight: 700; letter-spacing: .2px; white-space: nowrap; }
.demo-banner { background: #f5f3ff; border: 1px solid #ddd6fe; color: #5b21b6; border-radius: 8px; padding: 10px 14px; font-size: .85rem; margin-bottom: 16px; }

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2471a3 60%, #1a5276 100%);
  color: #fff; padding: 80px 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; max-width: 700px; margin: 0 auto; }
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero p  { font-size: 1.2rem; opacity: .9; margin-bottom: 40px; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-mascots { font-size: 3rem; margin-bottom: 24px; animation: bounce 2s infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ══════════════════════════════════
   CATEGORIES GRID
══════════════════════════════════ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
}
.cat-card {
  background: var(--card); border-radius: var(--radius-s);
  padding: 20px 12px; text-align: center; cursor: pointer;
  box-shadow: var(--shadow); transition: all var(--transition);
  border: 2px solid transparent;
}
.cat-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.cat-card.active { border-color: var(--orange); background: #fff8f3; }
.cat-icon { font-size: 2.2rem; margin-bottom: 8px; }
.cat-name { font-size: .85rem; font-weight: 600; color: var(--text); }

/* ══════════════════════════════════
   HOW IT WORKS
══════════════════════════════════ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.step { text-align: center; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--orange); color: #fff;
  font-size: 1.4rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 0 rgba(0,0,0,.2);
}
.step h3 { margin-bottom: 8px; }
.step p   { color: var(--text-m); font-size: .95rem; }

/* ══════════════════════════════════
   STATS BAR
══════════════════════════════════ */
.stats-bar {
  background: var(--primary);
  padding: 40px 20px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px;
  text-align: center;
}
.stat-item { color: #fff; }
.stat-num { font-size: 2.5rem; font-weight: 900; color: var(--orange); }
.stat-label { font-size: .9rem; opacity: .8; }

/* ══════════════════════════════════
   FILTERS
══════════════════════════════════ */
.filters {
  background: var(--card); padding: 20px; border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto auto;
  gap: 16px;
  align-items: center;
}
.filter-group {
  display: flex; flex-direction: column; gap: 6px;
}
.filter-group label { font-size: .8rem; font-weight: 600; color: var(--text-m); text-transform: uppercase; letter-spacing: .3px; }
.filter-group select, .filter-group input {
  padding: 10px 12px; border: 2px solid var(--border);
  border-radius: var(--radius-s); font-size: .95rem; background: #fff;
  transition: border-color var(--transition);
}
.filter-group select:focus, .filter-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,79,114,.1);
}
.fi-btn-group {
  min-width: auto;
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fi-btn-group label { display: none; }
.fi-filter-btn {
  width: 100%;
  white-space: nowrap;
}

/* Filters-inline: grid layout folosit în offers.html */
.filters-inline {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto auto;
  gap: 12px;
  align-items: end;
}
.fi-reset-btn { white-space: nowrap; align-self: end; }

/* ── Responsive Filters ── */
@media (max-width: 1200px) {
  .filters {
    grid-template-columns: 1.5fr 1fr 1fr 1fr auto auto;
    gap: 12px;
  }
}

@media (max-width: 992px) {
  .filters {
    grid-template-columns: 1fr 1fr 1fr auto auto;
    gap: 12px;
  }
  .filter-group[style*="flex:2"] {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .filters {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .filter-group[style*="flex:2"] {
    grid-column: 1 / -1;
  }
  .fi-btn-group {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .filters {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .filter-group[style*="flex:2"] {
    grid-column: 1 / -1;
  }
  .fi-btn-group {
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* Feature cards grid - for projects landing */
  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 40px 20px !important;
  }
  .feature-card {
    padding: 20px !important;
  }

  /* Filters - for jobs page */
  .filters {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .filter-group[style*="flex:2"],
  .filter-group,
  .fi-btn-group {
    grid-column: 1 / -1 !important;
    width: 100%;
  }
  .fi-btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-self: auto !important;
  }
  .fi-filter-btn {
    width: 100%;
    padding: 10px 12px !important;
    font-size: 0.9rem;
  }

  /* Jobs grid responsive */
  .jobs-grid {
    grid-template-columns: 1fr !important;
  }
  .grid-2 {
    grid-template-columns: 1fr !important;
  }
  .grid-3 {
    grid-template-columns: 1fr !important;
  }
}

/* ══════════════════════════════════
   GRID LAYOUTS
══════════════════════════════════ */
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ══════════════════════════════════
   PROMO BANNER — jobs.html
   (boxed variant of .photo-banner, sits inside .container so it
   gets border-radius + shadow like the other cards on this page)
══════════════════════════════════ */
.promo-banner-jobs {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.promo-banner-jobs img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.promo-banner-jobs-overlay {
  position: absolute; inset: 0;
  /* brand primary blue (matches the mascot's outfit in the photo) fading over the busy scene */
  background: linear-gradient(100deg, rgba(27,79,114,.93) 0%, rgba(27,79,114,.8) 40%, rgba(27,79,114,.25) 78%, rgba(27,79,114,0) 100%);
  display: flex; align-items: center;
  padding: 0 40px;
}
.promo-banner-jobs-text { color: #fff; max-width: 420px; }
.promo-banner-jobs-text h2 {
  color: #fff; font-size: 1.35rem; line-height: 1.35; margin-bottom: 16px;
}
.promo-banner-jobs-cta { box-shadow: var(--shadow); }

@media (max-width: 768px) {
  .promo-banner-jobs { height: 200px; }
  .promo-banner-jobs-overlay {
    padding: 0 24px;
    background: linear-gradient(105deg, rgba(27,79,114,.94) 0%, rgba(27,79,114,.82) 58%, rgba(27,79,114,.4) 100%);
  }
  .promo-banner-jobs-text { max-width: 100%; }
  .promo-banner-jobs-text h2 { font-size: 1.1rem; margin-bottom: 12px; }
}
@media (max-width: 480px) {
  .promo-banner-jobs { height: 260px; }
  .promo-banner-jobs-overlay {
    align-items: flex-end;
    padding: 18px 16px;
    background: linear-gradient(0deg, rgba(27,79,114,.96) 0%, rgba(27,79,114,.88) 48%, rgba(27,79,114,.15) 100%);
  }
  .promo-banner-jobs-text h2 { font-size: 1rem; margin-bottom: 12px; }
  .promo-banner-jobs-cta { width: 100%; justify-content: center; }
}

/* ══════════════════════════════════
   STARS
══════════════════════════════════ */
.star { color: #ccc; font-size: 1.1rem; }
.star.filled { color: var(--yellow); }
.star-pick { cursor: pointer; font-size: 1.8rem; transition: color .1s; color: #ccc; }
.star-pick.filled { color: var(--yellow); }
.rating-display { display: flex; align-items: center; gap: 6px; }
.rating-num { font-weight: 700; color: var(--text); }
.rating-count { color: var(--text-m); font-size: .85rem; }

/* ══════════════════════════════════
   MODAL
══════════════════════════════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.6); z-index: 2000;
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal, .modal-box {
  background: var(--card); border-radius: var(--radius);
  padding: 32px; max-width: 500px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; font-size: 1.5rem;
  cursor: pointer; color: var(--text-m); transition: color var(--transition);
}
.modal-close:hover { color: var(--red); }
.modal h2, .modal-box h2 { margin-bottom: 20px; }

/* ══════════════════════════════════
   TOAST
══════════════════════════════════ */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--primary); color: #fff;
  padding: 14px 20px; border-radius: var(--radius-s);
  font-weight: 600; box-shadow: var(--shadow-lg);
  transform: translateX(120%); transition: transform .3s ease;
  max-width: 320px;
}
.toast.show { transform: translateX(0); }
.toast.toast-success { background: var(--green); }
.toast.toast-error   { background: var(--red); }
.toast.toast-warning { background: var(--orange); }

/* ══════════════════════════════════
   SPINNER
══════════════════════════════════ */
.spinner {
  width: 20px; height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════
   PHOTOS UPLOAD PREVIEW
══════════════════════════════════ */
.photo-preview-grid { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.photo-thumb {
  width: 80px; height: 80px; object-fit: cover;
  border-radius: var(--radius-s); border: 2px solid var(--border);
}
.upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius-s);
  padding: 32px; text-align: center; cursor: pointer;
  transition: all var(--transition); background: #fafafa;
}
.upload-area:hover { border-color: var(--primary); background: #f0f4f8; }
.upload-area.drag-over { border-color: var(--green); background: #f0fff4; }

/* ══════════════════════════════════
   PROFILE / DASHBOARD
══════════════════════════════════ */
.profile-header {
  background: linear-gradient(135deg, var(--primary), #2471a3);
  padding: 40px 24px; text-align: center; color: #fff;
}
.profile-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  border: 4px solid #fff; object-fit: cover; margin: 0 auto 16px;
  background: var(--orange); display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: #fff;
}
.dashboard-grid { display: grid; grid-template-columns: 280px 1fr; gap: 24px; }
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.sidebar-nav { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.sidebar-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; color: var(--text);
  border-bottom: 1px solid var(--border); font-weight: 500;
  transition: background var(--transition);
}
.sidebar-nav a:last-child { border-bottom: none; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: #f0f4f8; color: var(--primary); }
.sidebar-nav a .icon { font-size: 1.2rem; }
.stat-card { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); text-align: center; }
.stat-card .num { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-card .label { font-size: .85rem; color: var(--text-m); }

/* ══════════════════════════════════
   TABLE
══════════════════════════════════ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { background: var(--primary); color: #fff; padding: 12px 16px; text-align: left; font-weight: 600; }
td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
tr:hover td { background: #f8f9fa; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: .75rem; font-weight: 700;
}
.badge-active   { background: #e8f5e9; color: var(--green); }
.badge-inactive { background: #fce4ec; color: var(--red); }
.badge-completed { background: #e3f2fd; color: var(--primary); }

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
footer {
  background: var(--primary-d); color: rgba(255,255,255,.8);
  padding: 48px 20px 32px; margin-top: auto;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo { font-size: 1.4rem; font-weight: 900; color: #fff; display: flex; align-items: center; gap: 10px; }
.footer-logo span { color: var(--orange); }

/* New 3-column footer grid */
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 40px; align-items: start;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-center {
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  text-align: center;
}
.footer-col-right { align-items: flex-end; text-align: right; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand-name {
  font-size: 1.6rem; font-weight: 900; color: #fff; letter-spacing: -1px;
  background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 8px; padding: 4px 12px; line-height: 1;
}
.footer-brand-name span { color: var(--orange); }
.footer-copy { font-size: .82rem; color: rgba(255,255,255,.55); margin-top: 2px; }
.footer-tagline { font-size: .82rem; color: rgba(255,255,255,.45); }
.footer-nav-title {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: rgba(255,255,255,.4); margin-bottom: 4px;
}
.footer-nav-link {
  font-size: .88rem; color: rgba(255,255,255,.75);
  text-decoration: none; transition: color .15s;
}
.footer-nav-link:hover { color: var(--orange); }
.footer-contact-item {
  display: flex; align-items: center; gap: 8px;
  font-size: .88rem; color: rgba(255,255,255,.75);
}
.footer-contact-item a { color: rgba(255,255,255,.75); text-decoration: none; transition: color .15s; }
.footer-contact-item a:hover { color: var(--orange); }
.footer-divider {
  max-width: 1200px; margin: 28px auto 0;
  border: none; border-top: 1px solid rgba(255,255,255,.1);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-col-center { align-items: flex-start; text-align: left; }
  .footer-col-right { align-items: flex-start; text-align: left; }
}

/* ══════════════════════════════════
   PAGE HEADER
══════════════════════════════════ */
.page-header {
  background: var(--primary); color: #fff;
  padding: 40px 20px; text-align: center;
}
.page-header h1 { color: #fff; }
.page-header p  { opacity: .85; margin-top: 8px; }

/* ══════════════════════════════════
   UNLOCK CARD (special)
══════════════════════════════════ */
.unlock-box {
  background: linear-gradient(135deg, #fff8f3, #fff3e0);
  border: 2px solid var(--orange); border-radius: var(--radius);
  padding: 24px; text-align: center;
}
.unlock-price { font-size: 2rem; font-weight: 900; color: var(--orange); }
.unlock-hint  { font-size: .9rem; color: var(--text-m); margin: 8px 0 16px; }

/* ══════════════════════════════════
   CONTACT BOX (after unlock)
══════════════════════════════════ */
.contact-box {
  background: #f0fff4; border: 2px solid var(--green);
  border-radius: var(--radius); padding: 20px;
}
.contact-box h3 { color: var(--green); margin-bottom: 12px; }
.contact-item { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; font-size: 1rem; }
.contact-item strong { color: var(--text); }

/* ══════════════════════════════════
   REVIEW CARD
══════════════════════════════════ */
.review-card { background: var(--card); border-radius: var(--radius-s); padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px; }
.review-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.reviewer-name { font-weight: 700; }
.review-date   { font-size: .8rem; color: var(--text-m); }
.review-comment { color: var(--text-m); font-size: .95rem; font-style: italic; }

/* ══════════════════════════════════
   EMPTY STATE
══════════════════════════════════ */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-m); }
.empty-state .icon { font-size: 4rem; margin-bottom: 16px; }
.empty-state p { font-size: 1.1rem; }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */

/* Prevent horizontal overflow globally */
html, body { overflow-x: hidden; }

@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .sidebar.mobile-open { display: flex; }

  /* Hero */
  .hero { padding: 48px 16px; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn { width: 100%; justify-content: center; }

  /* Stats */
  .stats-bar { grid-template-columns: 1fr 1fr; }

  /* Filters — jobs.html (.filters flex) */
  .filters { flex-direction: column; }
  .filter-group { min-width: 100% !important; width: 100%; }
  .filter-group select, .filter-group input, .fi-filter-btn { width: 100%; }
  .fi-btn-group { min-width: 100% !important; }

  /* Filters-inline — offers.html (.filters-inline grid) */
  .filters-inline { grid-template-columns: 1fr !important; }
  .fi-reset-btn { width: 100%; }

  /* Navbar mobile */
  .navbar-inner { height: auto; min-height: 56px; padding: 8px 0; flex-wrap: wrap; gap: 6px; }
  .navbar-logo { font-size: 1.4rem; padding: 5px 10px; }
  .navbar-nav {
    width: 100%; justify-content: flex-start; margin-left: 0;
    flex-wrap: wrap; gap: 4px; padding-bottom: 6px;
  }
  .navbar-nav .btn { font-size: .72rem; padding: 5px 9px; }
  /* Hide the Home button on mobile — saves space */
  .navbar-nav a[href="index.html"].btn-outline { display: none !important; }
  .nav-name { display: none; }

  /* Job cards */
  .jobs-grid { grid-template-columns: 1fr !important; }
  .job-card { width: 100%; max-width: 100%; }
  .job-card-footer { flex-direction: column; gap: 10px; align-items: flex-start; }
  .job-card-footer .btn { width: 100%; justify-content: center; }

  /* Offer layout (job-detail / offer-detail sidebar) */
  .offer-layout { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1fr 340px"] { grid-template-columns: 1fr !important; }
  [style*="position:sticky"] { position: static !important; }

  /* Dashboard inline grids */
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }

  /* Auth card */
  .auth-card { padding: 24px 16px; max-width: 100%; }

  /* Modal */
  .modal { width: calc(100vw - 32px); max-height: 90vh; overflow-y: auto; padding: 20px 16px; }
  .modal-box { width: calc(100vw - 32px); max-height: 90vh; overflow-y: auto; }

  /* Photo gallery scroll */
  .photo-gallery { flex-wrap: nowrap; overflow-x: auto; }
  .photo-gallery img { width: 160px; height: 120px; }

  /* Page header */
  .page-header { padding: 24px 16px; }
  .page-header h1 { font-size: 1.4rem; }
  .page-header p { font-size: .9rem; }

  /* Unlock box */
  .unlock-box { padding: 16px; }
  .unlock-box .btn { width: 100%; }

  /* Form containers padding */
  .container[style*="max-width:750px"] { padding-left: 16px !important; padding-right: 16px !important; }
  .container[style*="max-width:600px"] { padding-left: 16px !important; padding-right: 16px !important; }
  .form-container { padding: 24px 16px !important; }
  .dashboard-actions { grid-template-columns: 1fr !important; }

  /* Urgent radio buttons — stack on mobile */
  label[id="urgentNuLabel"], label[id="urgentDaLabel"] { flex: 1 1 100%; }

  /* Section padding */
  .section { padding: 40px 0; }
  .section-sm { padding: 24px 0; }
}

@media (max-width: 480px) {
  .grid-3 { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }

  /* Navbar — very small screens: stack logo above nav */
  .navbar-inner { flex-direction: column; align-items: flex-start; padding: 8px 0 4px; }
  .navbar-nav {
    width: 100%; margin-left: 0;
    overflow-x: auto; flex-wrap: nowrap;
    padding-bottom: 6px; gap: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .navbar-nav::-webkit-scrollbar { height: 3px; }
  .navbar-nav .btn { flex-shrink: 0; }

  /* Containers */
  .container { padding: 0 12px; }

  /* Typography scale */
  h1 { font-size: 1.3rem !important; }
  h2 { font-size: 1.15rem !important; }

  /* Cards padding */
  .card { padding: 16px; }
  .job-card-body { padding: 14px; }

  /* Stats bar 1 col on phones */
  .stats-bar { grid-template-columns: 1fr; }
  .stat-num { font-size: 2rem; }

  /* Upload area */
  .upload-area { padding: 20px 12px; }

  /* Section padding */
  .section { padding: 28px 0; }
  .section-sm { padding: 16px 0; }

  /* Hero */
  .hero { padding: 36px 12px; }
  .hero p { font-size: 1rem; margin-bottom: 24px; }
  .hero-mascots { font-size: 2rem; }

  /* List item in jobs page (list view) */
  .card [style*="display:flex;gap:20px;align-items:center"] {
    flex-direction: column !important; align-items: flex-start !important; gap: 8px !important;
  }
  .card [style*="text-align:right;white-space:nowrap"] { text-align: left !important; white-space: normal !important; }

  /* Visitor login banner */
  [style*="justify-content:space-between;flex-wrap:wrap"] { flex-direction: column; }
}

/* ══════════════════════════════════
   AUTH PAGES
══════════════════════════════════ */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, #2471a3 100%);
}
.auth-card {
  background: var(--card); border-radius: var(--radius);
  padding: 40px; max-width: 440px; width: 100%;
  box-shadow: var(--shadow-lg);
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo h1 { font-size: 2rem; color: var(--primary); }
.auth-logo h1 span { color: var(--orange); }
.auth-mascot { font-size: 3.5rem; text-align: center; margin-bottom: 16px; }
.role-tabs { display: flex; gap: 8px; margin-bottom: 24px; }
.role-tab {
  flex: 1; padding: 12px; border-radius: var(--radius-s);
  border: 2px solid var(--border); background: #fff;
  cursor: pointer; font-weight: 700; text-align: center;
  transition: all var(--transition);
}
.role-tab.active { border-color: var(--primary); background: var(--primary); color: #fff; }

/* ══════════════════════════════════
   PHOTO GALLERY
══════════════════════════════════ */
.photo-gallery { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.photo-gallery img {
  width: 200px; height: 150px; object-fit: cover;
  border-radius: var(--radius-s); flex-shrink: 0;
}

/* ══════════════════════════════════
   MARKETING PHOTOS — index.html
══════════════════════════════════ */

/* 1 ── Hero cu fundal foto (Poza 2 – femeia business) */
.hero-with-photo {
  background-image:
    linear-gradient(135deg, rgba(27,79,114,.88) 0%, rgba(36,113,163,.78) 55%, rgba(26,82,118,.84) 100%),
    url('../images/hero-bg.png');
  background-size: cover;
  background-position: center 28%;
  background-blend-mode: normal;
}

/* 2 ── Banner cinematic full-width (Poza 3 – cuplu + zugrav) */
.photo-banner {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}
.photo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  transition: transform 8s ease;
}
.photo-banner:hover img { transform: scale(1.04); }
.photo-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0,0,0,.65) 0%,
    rgba(0,0,0,.35) 50%,
    rgba(0,0,0,.05) 100%
  );
  display: flex;
  align-items: center;
  padding: 0 80px;
}
.photo-banner-text { color: #fff; max-width: 520px; }
.photo-banner-text .banner-eyebrow {
  font-size: .8rem; font-weight: 800; letter-spacing: 3px;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 12px;
}
.photo-banner-text h2 {
  color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 14px; line-height: 1.2;
}
.photo-banner-text p {
  font-size: 1.05rem; opacity: .9; margin-bottom: 24px; line-height: 1.7;
}
.photo-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 3 ── De ce FIX-ME — split layout (Poza 1 – piscina luxury) */
.why-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 56px;
}
.why-photo-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.22);
  background: linear-gradient(135deg, var(--primary) 0%, #2471a3 50%, var(--orange) 100%);
}
.why-photo-wrap img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  transition: transform 6s ease;
}
.why-photo-wrap:hover img { transform: scale(1.05); }
.why-photo-badge {
  position: absolute;
  bottom: 20px; left: 20px; right: 20px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
}
.why-photo-badge .bdg-icon { font-size: 2.2rem; flex-shrink: 0; }
.why-photo-badge .bdg-body { flex: 1; }
.why-photo-badge .bdg-title { font-size: .95rem; font-weight: 700; color: var(--text); }
.why-photo-badge .bdg-sub   { font-size: .8rem; color: var(--text-m); margin-top: 2px; }
.why-cards { display: flex; flex-direction: column; gap: 20px; }
.why-card {
  display: flex; align-items: flex-start; gap: 18px;
  background: var(--card); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  border-left: 4px solid var(--orange);
}
.why-card:hover { transform: translateX(6px); box-shadow: var(--shadow-lg); }
.why-card-icon { font-size: 2rem; flex-shrink: 0; margin-top: 2px; }
.why-card h3 { font-size: 1rem; margin-bottom: 6px; }
.why-card p  { font-size: .9rem; color: var(--text-m); line-height: 1.6; }

/* 4 ── Quality strip (Poza 4 – instalator) */
.quality-strip {
  display: grid;
  grid-template-columns: 360px 1fr;
  background: var(--primary);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(27,79,114,.35);
  margin-bottom: 48px;
}
.quality-strip-photo { position: relative; overflow: hidden; }
.quality-strip-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block; min-height: 240px;
  transition: transform 6s ease;
}
.quality-strip:hover .quality-strip-photo img { transform: scale(1.06); }
.quality-strip-content {
  padding: 40px 44px;
  color: #fff;
  display: flex; flex-direction: column;
  justify-content: center; gap: 18px;
}
.quality-strip-content h3 {
  color: #fff; font-size: 1.6rem; line-height: 1.25;
}
.quality-strip-content p { opacity: .88; font-size: 1rem; line-height: 1.75; }
.quality-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.quality-badge {
  background: rgba(255,255,255,.14);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 20px; padding: 6px 16px;
  font-size: .82rem; font-weight: 600; color: #fff;
}
.quality-badge:hover { background: rgba(255,255,255,.25); }

/* ══════════════════════════════════
   LIVE NOTIFICATIONS POPUP
══════════════════════════════════ */
#live-notif-wrap {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 8000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
  width: calc(100vw - 40px);
  pointer-events: none;
}
.live-notif {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.10);
  border-left: 5px solid var(--orange);
  overflow: hidden;
  transform: translateX(calc(100% + 32px));
  opacity: 0;
  transition: transform .35s cubic-bezier(.22,.68,0,1.2), opacity .3s ease;
  pointer-events: all;
}
.live-notif.ln-show {
  transform: translateX(0);
  opacity: 1;
}
.ln-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 6px 12px;
  background: linear-gradient(90deg, #fff8f3, #fff);
  border-bottom: 1px solid #f0e6d8;
}
.ln-badge {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--orange);
}
.ln-close, .ln-audio {
  background: none;
  border: none;
  cursor: pointer;
  font-size: .85rem;
  color: var(--text-m);
  padding: 2px 4px;
  border-radius: 4px;
  line-height: 1;
  transition: background .15s;
}
.ln-close:hover  { background: #fce4ec; color: var(--red); }
.ln-audio:hover  { background: #e3f2fd; }
.ln-body {
  display: block;
  padding: 10px 14px 12px;
  text-decoration: none;
  color: var(--text);
  transition: background .15s;
}
.ln-body:hover { background: #f9f9f9; color: var(--text); }
.ln-title {
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ln-loc {
  font-size: .78rem;
  color: var(--text-m);
  margin-bottom: 5px;
}
.ln-price {
  display: inline-block;
  font-size: .9rem;
  font-weight: 800;
  color: var(--primary);
}
.ln-price small {
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-m);
}

/* Mobile: notificarea apare sus la dreapta ca să nu acopere toastul */
@media (max-width: 480px) {
  #live-notif-wrap {
    bottom: auto;
    top: 70px;
    right: 10px;
    left: 10px;
    max-width: 100%;
    width: auto;
  }
}

/* ── Responsive marketing sections ────────────────────────────────────────── */
@media (max-width: 900px) {
  .why-split { grid-template-columns: 1fr; gap: 32px; }
  .why-photo-wrap { min-height: 280px !important; }
  .why-photo-wrap img { height: 280px; }
  .quality-strip { grid-template-columns: 1fr; }
  .quality-strip-photo img { max-height: 240px; min-height: 200px; }
  .quality-strip-content { padding: 28px; }
}
@media (max-width: 640px) {
  .photo-banner { height: 300px; }
  .photo-banner-overlay { padding: 0 24px; }
  .photo-banner-text h2 { font-size: 1.3rem; }
  .photo-banner-text p { font-size: .9rem; }
}

/* ── Dashboard card action buttons — mobile ────────────────────────────────── */
@media (max-width: 600px) {
  /* Button rows inside dashboard cards wrap and stretch */
  .card [style*="border-top:1px solid var(--border)"] {
    gap: 6px !important;
  }
  .card [style*="border-top:1px solid var(--border)"] a,
  .card [style*="border-top:1px solid var(--border)"] button {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
  }

  /* Dashboard stat cards 2-col on phone */
  [style*="grid-template-columns:repeat(auto-fit"] { grid-template-columns: 1fr 1fr !important; }

  /* Edit modals full-width on phone */
  #editJobModal > div,
  #editOfferModal > div,
  #editProjectModal > div {
    position: fixed !important;
    bottom: 0; left: 0; right: 0;
    max-height: 92vh;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 16px 16px 0 0 !important;
  }
  #editProjectModal > div > div:first-child { border-radius: 16px 16px 0 0; }

  /* Urgent radio stack on phone */
  #editUrgentNuLabel, #editUrgentDaLabel { flex: 1 1 100%; }
}

/* ══════════════════════════════════
   ADMIN PANEL RESPONSIVE — MOBILE FIRST
══════════════════════════════════ */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}
.table-wrap table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
}

/* Admin grid: auto-fit with minimum 140px */
.admin-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: 20px !important;
}

/* Admin tabs: flex-wrap for multiple rows */
.admin-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0 !important;
  justify-content: flex-start !important;
  margin-bottom: 24px !important;
  border-bottom: 2px solid var(--border) !important;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px !important;
  }

  /* Table cells compact */
  .table-wrap table th,
  .table-wrap table td {
    padding: 10px 8px;
    font-size: .9rem;
  }

  /* Search input responsive */
  input[style*="max-width:280px"],
  input[style*="max-width:100%"] {
    max-width: 100% !important;
    flex: 1 !important;
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px !important;
  }

  /* Admin grid: 3 columns on phone (6 buttons = 2 rows of 3) */
  .admin-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
  }

  /* Admin grid buttons: ultra-compact for 3 cols */
  .admin-grid button {
    padding: 8px 6px !important;
    font-size: .7rem !important;
    min-height: 80px !important;
    gap: 2px !important;
  }
  .admin-grid button span:first-child {
    font-size: 1.1rem !important;
  }
  .admin-grid button span:nth-child(2) {
    font-size: .65rem !important;
    word-break: break-word;
    line-height: 1.2;
  }
  .admin-grid button span:last-child {
    font-size: .9rem !important;
  }

  /* TRANSFORM TABLES TO CARD LAYOUT */
  .table-wrap {
    display: block !important;
  }

  .responsive-table {
    display: block !important;
    width: 100% !important;
  }

  .responsive-table thead {
    display: none !important;
  }

  .responsive-table tbody {
    display: block !important;
  }

  .responsive-table tr {
    display: block !important;
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    margin-bottom: 12px !important;
    padding: 12px !important;
    overflow: hidden;
  }

  .responsive-table td {
    display: block !important;
    width: 100% !important;
    padding: 6px 0 !important;
    border: none !important;
    text-align: left !important;
    font-size: .85rem !important;
  }

  /* Hide non-essential columns */
  .responsive-table th:nth-child(n+5),
  .responsive-table td:nth-child(n+5) {
    display: none !important;
  }

  .responsive-table td:before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--primary);
    display: block;
    margin-bottom: 4px;
  }

  /* Show key columns with labels */
  .responsive-table td:nth-child(1):before { content: "#"; }
  .responsive-table td:nth-child(2):before { content: "Nume"; }
  .responsive-table td:nth-child(3):before { content: "Telefon"; }
  .responsive-table td:nth-child(4):before { content: "Email"; }

  /* Search input full-width */
  input[style*="max-width"],
  input[style*="min-width"] {
    max-width: 100% !important;
    min-width: auto !important;
    flex: 1 !important;
    padding: 8px 10px !important;
    font-size: .85rem !important;
    width: 100%;
  }

  /* Flex wrappers stack */
  [style*="display:flex;justify-content:space-between"] {
    flex-direction: column !important;
    gap: 10px !important;
  }

  h3 {
    font-size: 1rem !important;
    margin-bottom: 12px !important;
  }

  /* Admin section padding minimal */
  .container[style*="padding:32px"] {
    padding: 12px 10px !important;
  }
}

