/* ============================================================
   OMIITECH — style.css
   Theme: Dark navy tech with electric blue gradient accents
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700;800;900&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --bg-dark:      #080c18;
  --bg-card:      #0d1428;
  --bg-card2:     #111a35;
  --bg-sidebar:   #0a0f20;
  --blue-deep:    #0041cc;
  --blue-mid:     #0066ff;
  --blue-bright:  #00aaff;
  --cyan:         #00d4ff;
  --white:        #ffffff;
  --text-muted:   #7a9ab8;
  --text-dim:     #4a6688;
  --border:       rgba(0,170,255,0.15);
  --glow:         rgba(0,170,255,0.25);
  --grad:         linear-gradient(135deg, var(--blue-mid), var(--cyan));
  --grad-deep:    linear-gradient(135deg, #002288, var(--blue-mid));
  --sidebar-w:    280px;
  --radius:       14px;
  --radius-sm:    8px;
  --shadow:       0 8px 32px rgba(0,0,0,0.5);
  --transition:   0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-dark);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}
img, video { max-width: 100%; border-radius: var(--radius-sm); }
a { color: var(--cyan); text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select {
  font-family: inherit;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  width: 100%;
  outline: none;
  transition: border var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px var(--glow);
}
textarea { resize: vertical; min-height: 90px; }
h1,h2,h3,h4,h5 { font-family: 'Exo 2', sans-serif; font-weight: 700; line-height: 1.2; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--blue-mid); border-radius: 3px; }

/* ── Circuit-board background pattern ─────────────────────── */
.circuit-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(0,102,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 70%, rgba(0,212,255,0.05) 0%, transparent 60%);
}
.circuit-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,170,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,170,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Layout ────────────────────────────────────────────────── */
.layout { display: flex; min-height: 100vh; position: relative; z-index: 1; }

/* ── Sidebar ───────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 1002;
  transform: translateX(-100%);
  transition: transform var(--transition);
  overflow-y: auto;
}
.sidebar.open { transform: translateX(0); box-shadow: 4px 0 40px rgba(0,0,0,0.6); }

.sidebar-header {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-logo { width: 48px; height: 48px; border-radius: 10px; object-fit: contain; background: var(--bg-card2); }
.sidebar-brand h3 { font-size: 1rem; color: var(--white); font-family: 'Exo 2', sans-serif; }
.sidebar-brand span { font-size: 0.72rem; color: var(--text-muted); }

.sidebar-nav { padding: 16px 0; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 20px;
  color: var(--text-muted);
  font-size: 0.92rem; font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  border-left: 3px solid transparent;
}
.nav-item:hover, .nav-item.active {
  color: var(--white);
  background: rgba(0,102,255,0.12);
  border-left-color: var(--cyan);
}
.nav-item.active { color: var(--cyan); }
.nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.nav-badge {
  margin-left: auto;
  background: var(--grad);
  color: var(--white);
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
}
.nav-divider { height: 1px; background: var(--border); margin: 8px 20px; }

.sidebar-footer { padding: 16px 20px; border-top: 1px solid var(--border); }
#loginNavBtn, #logoutBtn {
  width: 100%;
  padding: 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--blue-mid);
  background: transparent;
  color: var(--cyan);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
#loginNavBtn:hover { background: var(--grad); border-color: transparent; color: var(--white); }
#logoutBtn { border-color: #ff4466; color: #ff4466; }
#logoutBtn:hover { background: #ff4466; color: var(--white); }

/* ── Sidebar overlay ───────────────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.show { display: block; }

/* ── Top Navbar ────────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: rgba(8,12,24,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 20px;
  gap: 16px;
  z-index: 1001;
}
.hamburger {
  background: none; border: none;
  display: flex; flex-direction: column;
  gap: 5px; padding: 8px; border-radius: 8px;
  transition: background var(--transition);
}
.hamburger:hover { background: var(--bg-card2); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transition: all var(--transition);
}
.topbar-logo {
  display: flex; align-items: center; gap: 10px;
  flex: 1;
}
.topbar-logo img { height: 38px; object-fit: contain; }
.topbar-tagline { font-family: 'Exo 2', sans-serif; font-size: 0.78rem; color: var(--text-muted); display: none; }
@media(min-width:480px){ .topbar-tagline { display: block; } }
.topbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
#adminBadge {
  background: var(--grad);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  display: none;
}

/* ── Main Content ──────────────────────────────────────────── */
.main { flex: 1; padding-top: 64px; min-height: 100vh; }
.page-section {
  display: none;
  min-height: calc(100vh - 64px);
  padding: 40px 20px 60px;
  max-width: 1100px;
  margin: 0 auto;
  animation: fadeIn 0.4s ease;
}
.page-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0,102,255,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,102,255,0.5); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--blue-mid);
  color: var(--cyan);
}
.btn-outline:hover { background: rgba(0,102,255,0.15); }
.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-danger { background: rgba(255,60,80,0.15); border: 1px solid #ff3c50; color: #ff3c50; }
.btn-danger:hover { background: #ff3c50; color: var(--white); }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }
.btn-ghost:hover { border-color: var(--blue-bright); color: var(--white); }

/* ── Section headers ───────────────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px; flex-wrap: wrap; gap: 12px;
}
.section-title {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

/* ── Search bar ────────────────────────────────────────────── */
.search-wrap { position: relative; }
.search-wrap svg {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted); width: 18px; height: 18px;
  pointer-events: none;
}
.search-wrap input { padding-left: 40px; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: rgba(0,170,255,0.3); box-shadow: 0 4px 24px rgba(0,102,255,0.1); }

/* ── Pill tags ─────────────────────────────────────────────── */
.pill {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(0,170,255,0.1);
  color: var(--cyan);
  border: 1px solid rgba(0,170,255,0.25);
}

/* ── Toast notification ────────────────────────────────────── */
#toast {
  position: fixed; bottom: 28px; right: 28px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  z-index: 9999;
  transform: translateY(100px); opacity: 0;
  transition: all 0.4s ease;
  max-width: 320px;
  box-shadow: var(--shadow);
}
#toast.show { transform: translateY(0); opacity: 1; }
#toast.success { border-color: #00cc88; }
#toast.error { border-color: #ff4466; }

/* ── Modal ─────────────────────────────────────────────────── */
.modal-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%; max-width: 480px;
  margin: 20px;
  position: relative;
  animation: modalIn 0.3s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.92) translateY(20px); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--text-muted);
  font-size: 1.4rem; line-height: 1;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: all var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.modal h2 { margin-bottom: 20px; font-size: 1.4rem; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ─────────────────────────────────────────────────────────── */
/*  HOME SECTION                                               */
/* ─────────────────────────────────────────────────────────── */

/* Hero */
.hero {
  text-align: center;
  padding: 60px 20px 40px;
  position: relative;
}
.hero-logo { width: 80px; height: 80px; object-fit: contain; margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}
.hero-motto {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.1rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-motto span { color: var(--cyan); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-glow {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,102,255,0.12) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border-radius: 50%;
}

/* Promo banner */
.promo-banner {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
  position: relative;
  max-height: 280px;
  border: 1px solid var(--border);
}
.promo-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-4px); border-color: rgba(0,170,255,0.3); box-shadow: 0 12px 40px rgba(0,102,255,0.15); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px;
  background: rgba(0,102,255,0.12);
  border: 1px solid rgba(0,170,255,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
}
.service-card h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--white); }
.service-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }
.service-card .service-edit {
  margin-top: 12px;
  display: none;
}
.admin-active .service-edit { display: inline-flex; }
.service-desc[contenteditable="true"] {
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 6px 8px;
  outline: none;
  min-height: 60px;
}
.service-desc[contenteditable="true"]:focus { border-color: var(--cyan); }

/* Featured projects on home */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ─────────────────────────────────────────────────────────── */
/*  POSTS SECTION                                              */
/* ─────────────────────────────────────────────────────────── */
.posts-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media(min-width:768px){ .posts-layout { grid-template-columns: 380px 1fr; align-items: start; } }

.create-post-card { position: sticky; top: 84px; }
.create-post-card textarea { margin-bottom: 12px; }
.media-preview { margin-bottom: 12px; border-radius: var(--radius-sm); overflow: hidden; }
.media-preview img, .media-preview video { width: 100%; border-radius: var(--radius-sm); }
.file-upload-row {
  display: flex; gap: 8px; margin-bottom: 12px;
}
.file-label {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition);
}
.file-label:hover { border-color: var(--cyan); color: var(--cyan); }
.file-label input { display: none; }

.posts-feed { display: flex; flex-direction: column; gap: 20px; }

.post-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.post-header { display: flex; align-items: center; gap: 12px; padding: 16px 16px 0; }
.post-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: 'Exo 2', sans-serif;
  font-size: 1rem; color: var(--white); flex-shrink: 0;
}
.post-meta { flex: 1; }
.post-author { font-weight: 600; font-size: 0.92rem; }
.post-time { font-size: 0.78rem; color: var(--text-muted); }
.post-actions-top { display: flex; gap: 6px; }

.post-text { padding: 14px 16px; font-size: 0.95rem; line-height: 1.7; white-space: pre-wrap; }
.post-media { width: 100%; max-height: 400px; object-fit: cover; display: block; border-radius: 0; }
.post-video { width: 100%; display: block; background: #000; }

.post-footer {
  display: flex; align-items: center; gap: 0;
  padding: 4px 10px 10px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.post-btn {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 9px 4px;
  background: none; border: none;
  color: var(--text-muted);
  font-size: 0.83rem; font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.post-btn:hover { background: rgba(255,255,255,0.05); color: var(--white); }
.post-btn.liked { color: var(--cyan); }
.post-btn svg { width: 18px; height: 18px; }
.post-btn span.count { font-weight: 600; }

.comments-section {
  padding: 0 16px 14px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.comment-input-row { display: flex; gap: 8px; margin-bottom: 12px; padding-top: 12px; }
.comment-input-row input { flex: 1; }
.comment-item { display: flex; gap: 10px; margin-bottom: 10px; }
.comment-bubble {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  flex: 1;
}
.comment-author { font-size: 0.8rem; font-weight: 600; color: var(--cyan); margin-bottom: 3px; }
.comment-text { font-size: 0.88rem; color: var(--text-muted); }

/* ─────────────────────────────────────────────────────────── */
/*  PROJECTS SECTION                                           */
/* ─────────────────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
}
.project-card:hover { border-color: var(--cyan); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,102,255,0.2); }
.project-thumb {
  height: 180px;
  background: var(--bg-card2);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.project-thumb img, .project-thumb video { width: 100%; height: 100%; object-fit: cover; }
.project-thumb .no-media { color: var(--text-dim); font-size: 2.5rem; }
.project-body { padding: 16px; }
.project-title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; font-family: 'Exo 2', sans-serif; }
.project-desc { font-size: 0.85rem; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.project-footer { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 14px; }

/* Project detail view */
#projectDetailView {
  display: none;
  position: fixed; inset: 0;
  background: var(--bg-dark);
  z-index: 1500;
  overflow-y: auto;
  padding: 0 0 60px;
}
#projectDetailView.open { display: block; }
.detail-topbar {
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex; align-items: center; gap: 16px;
  position: sticky; top: 0; z-index: 10;
}
.detail-content { max-width: 900px; margin: 0 auto; padding: 32px 24px; }
.detail-content h1 { font-size: 2rem; margin-bottom: 16px; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.detail-content .description { color: var(--text-muted); line-height: 1.8; margin-bottom: 24px; font-size: 0.95rem; }
.project-link-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  background: var(--grad);
  color: var(--white);
  font-weight: 600;
  margin-bottom: 24px;
  transition: all var(--transition);
}
.project-link-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,102,255,0.4); }

/* ─────────────────────────────────────────────────────────── */
/*  VACANCIES SECTION                                          */
/* ─────────────────────────────────────────────────────────── */
.vacancies-list { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.vacancy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.vacancy-card:hover { border-color: rgba(0,170,255,0.3); }
.vacancy-card .media-wrap { max-height: 260px; overflow: hidden; }
.vacancy-card .media-wrap img, .vacancy-card .media-wrap video { width: 100%; object-fit: cover; max-height: 260px; display: block; }
.vacancy-body { padding: 20px; }
.vacancy-title { font-size: 1.1rem; font-family: 'Exo 2', sans-serif; font-weight: 700; margin-bottom: 8px; }
.vacancy-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 16px; }
.vacancy-footer { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Application modal */
.apply-form .form-group { margin-bottom: 14px; }

/* ─────────────────────────────────────────────────────────── */
/*  ORDER SECTION                                              */
/* ─────────────────────────────────────────────────────────── */
.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 680px;
}
.service-select-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.service-pill-btn {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
}
.service-pill-btn:hover, .service-pill-btn.selected {
  border-color: var(--cyan);
  background: rgba(0,170,255,0.1);
  color: var(--cyan);
}

/* ─────────────────────────────────────────────────────────── */
/*  IDEAS / FEEDBACK SECTION                                   */
/* ─────────────────────────────────────────────────────────── */
.ideas-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media(min-width:768px){ .ideas-layout { grid-template-columns: 340px 1fr; align-items: start; } }

.idea-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: all var(--transition);
}
.idea-card:hover { border-color: rgba(0,170,255,0.3); }
.idea-header { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.idea-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #0041cc, #00d4ff);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; flex-shrink: 0;
}
.idea-author { font-weight: 600; font-size: 0.88rem; }
.idea-time { font-size: 0.75rem; color: var(--text-muted); }
.idea-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 12px; }
.idea-footer { display: flex; gap: 10px; align-items: center; }
.idea-like-btn {
  background: none; border: none;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 5px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: color var(--transition);
}
.idea-like-btn:hover, .idea-like-btn.liked { color: var(--cyan); }
.ideas-feed { display: flex; flex-direction: column; gap: 16px; }
.idea-replies { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.idea-reply { background: var(--bg-card2); border-radius: 8px; padding: 10px 12px; font-size: 0.85rem; }
.idea-reply-author { font-weight: 600; font-size: 0.8rem; color: var(--cyan); margin-bottom: 2px; }
.idea-reply-input { display: flex; gap: 8px; margin-top: 10px; }
.idea-reply-input input { flex: 1; font-size: 0.85rem; padding: 7px 12px; }

/* ─────────────────────────────────────────────────────────── */
/*  MESSAGES SECTION                                           */
/* ─────────────────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media(min-width:700px){ .contact-layout { grid-template-columns: 1fr 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(0,102,255,0.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item h4 { font-size: 0.88rem; color: var(--white); margin-bottom: 2px; }
.contact-item p, .contact-item a { font-size: 0.83rem; color: var(--text-muted); }
.whatsapp-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}
.whatsapp-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.4); }

/* ─────────────────────────────────────────────────────────── */
/*  ADMIN SECTION                                              */
/* ─────────────────────────────────────────────────────────── */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
}
.stat-number { font-size: 2rem; font-weight: 800; font-family: 'Exo 2', sans-serif; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

.admin-tabs { display: flex; gap: 4px; margin-bottom: 24px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 0; }
.admin-tab {
  padding: 10px 18px;
  border-radius: 6px 6px 0 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.admin-tab:hover { color: var(--white); }
.admin-tab.active { color: var(--cyan); border-bottom-color: var(--cyan); }
.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }

.messages-list { display: flex; flex-direction: column; gap: 14px; }
.message-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.message-item.unread { border-color: var(--cyan); }
.message-from { font-weight: 600; font-size: 0.88rem; margin-bottom: 4px; }
.message-text { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 10px; }
.message-replies { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.message-reply-item { background: rgba(0,102,255,0.08); border-radius: 6px; padding: 8px 12px; margin-bottom: 8px; font-size: 0.85rem; color: var(--text-muted); }
.message-reply-row { display: flex; gap: 8px; margin-top: 8px; }
.message-reply-row input { flex: 1; }

.applications-list { display: flex; flex-direction: column; gap: 12px; }
.application-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; }
.application-item h4 { font-size: 0.9rem; margin-bottom: 6px; }
.application-item p { font-size: 0.83rem; color: var(--text-muted); }

/* ─────────────────────────────────────────────────────────── */
/*  LOADING SPINNER                                            */
/* ─────────────────────────────────────────────────────────── */
.spinner-wrap { display: flex; align-items: center; justify-content: center; padding: 48px; }
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.empty-state .icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state h3 { margin-bottom: 6px; font-size: 1rem; color: var(--white); }

/* ─────────────────────────────────────────────────────────── */
/*  LOGIN MODAL                                                */
/* ─────────────────────────────────────────────────────────── */
.login-logo { text-align: center; margin-bottom: 24px; }
.login-logo img { width: 56px; height: 56px; object-fit: contain; }
.login-logo h2 { font-family: 'Exo 2', sans-serif; margin-top: 10px; font-size: 1.3rem; }
.login-logo p { font-size: 0.82rem; color: var(--text-muted); }
.auth-error { color: #ff4466; font-size: 0.82rem; margin-top: 8px; display: none; }
.auth-error.show { display: block; }

/* ─────────────────────────────────────────────────────────── */
/*  RESPONSIVE                                                 */
/* ─────────────────────────────────────────────────────────── */
@media(max-width:768px){
  .page-section { padding: 28px 14px 48px; }
  .hero { padding: 40px 16px 28px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media(max-width:480px){
  .services-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2,1fr); }
}
/* always show topbar */
.topbar { display: flex; }
