/* ============================================================
   gotécnico — Glassmorphism + Footer Móvil Profesional (App-style)
   ============================================================ */

:root {
  --bg: #0f172a;
  --bg-elevated: rgba(15, 23, 42, 0.92);
  --bg-card: rgba(30, 41, 59, 0.6);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-card-solid: #1e293b;
  --accent: #8b5cf6;
  --accent2: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #8b5cf6, #06b6d4);
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.15);
  --shadow-light: rgba(255,255,255,0.05);
  --shadow-dark: rgba(0,0,0,0.4);
  --shadow-glow: 0 0 30px rgba(139,92,246,0.15);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   SIDEBAR (Desktop)
   ============================================================ */
.sidebar {
  width: 260px;
  min-height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--border);
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 100;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.sidebar-brand { margin-bottom: 36px; padding-left: 8px; }

.logo-link {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--text);
  font-weight: 700; font-size: 1.3rem;
}

.logo-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 16px rgba(139,92,246,0.3);
  transition: transform 0.3s;
}

.logo-link:hover .logo-icon { transform: rotate(15deg) scale(1.1); }

.logo-text {
  background: linear-gradient(135deg, #fff, #94a3b8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.logo-img { height: 40px; width: auto; display: block; }
.logo-link:hover .logo-img { transform: scale(1.04); transition: transform .3s; }

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

.nav-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: 14px;
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.95rem; font-weight: 500;
  transition: var(--transition);
  position: relative; cursor: pointer;
}

.nav-item:hover, .nav-item.active {
  background: rgba(139, 92, 246, 0.12);
  color: var(--text);
  box-shadow: inset 2px 2px 6px var(--shadow-dark), inset -2px -2px 6px var(--shadow-light);
}

.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 22px; border-radius: 0 4px 4px 0;
  background: var(--accent-gradient);
}

.nav-item .icon { font-size: 1.3rem; filter: drop-shadow(0 0 4px rgba(139,92,246,0.2)); transition: filter 0.3s; }
.nav-item:hover .icon, .nav-item.active .icon { filter: drop-shadow(0 0 8px rgba(139,92,246,0.5)); }

.sidebar-bottom {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
}

.lang-btn, .logout-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px; border-radius: 14px;
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  transition: var(--transition); cursor: pointer; border: none; background: none;
}

.lang-btn:hover, .logout-btn:hover {
  background: rgba(6, 182, 212, 0.1); color: var(--accent2);
  box-shadow: inset 1px 1px 4px var(--shadow-dark), inset -1px -1px 4px var(--shadow-light);
}

.logout-btn:hover { color: #ef4444; background: rgba(239,68,68,0.1); }

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px); z-index: 90; opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.sidebar-overlay.active { opacity: 1; pointer-events: auto; }

/* Mobile Toggle */
.mobile-toggle {
  display: none; position: fixed; top: 16px; left: 16px; z-index: 200;
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(15,23,42,0.9); backdrop-filter: blur(16px);
  border: 1px solid var(--border); color: var(--text);
  font-size: 1.4rem; cursor: pointer; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: var(--transition);
}
.mobile-toggle:hover { background: rgba(139,92,246,0.2); border-color: rgba(139,92,246,0.3); }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main {
  margin-left: 260px; flex: 1;
  padding: 32px 40px 40px;
  min-height: 100vh;
  max-width: 1200px;
}

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash {
  background: rgba(34, 197, 94, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 20px; margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
  color: #86efac; font-size: 0.95rem; font-weight: 500;
  animation: fadeInDown 0.4s ease;
  transition: opacity 0.5s, transform 0.5s;
}

.flash-icon { font-size: 1.2rem; }

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  text-align: center; padding: 48px 20px 40px;
  position: relative;
}

.hero::before {
  content: ''; position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(139,92,246,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero h1 {
  font-size: 2.8rem; font-weight: 700; margin-bottom: 16px; line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  position: relative;
}

.hero p { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 32px; max-width: 520px; margin-inline: auto; }

/* Search */
.search-wrapper { position: relative; max-width: 560px; margin: 0 auto; }

.search-box {
  display: flex; gap: 10px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px 6px 6px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 1px 1px 2px var(--shadow-light);
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: rgba(139,92,246,0.4);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 20px rgba(139,92,246,0.1), inset 1px 1px 2px var(--shadow-light);
}

.search-box input {
  flex: 1; background: transparent; border: none; color: var(--text);
  font-size: 1rem; outline: none; font-family: inherit;
}

.search-box input::placeholder { color: var(--text-muted); }

.search-box button {
  width: 44px; height: 44px; border-radius: var(--radius-sm); border: none;
  background: var(--accent-gradient); color: white; font-size: 1.2rem; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(139,92,246,0.3);
}

.search-box button:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(139,92,246,0.5); }

/* Suggestions */
.suggestions {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: rgba(30,41,59,0.95); backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 8px 0; display: none;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4); z-index: 50;
  overflow: hidden;
}

.suggestions.active { display: block; animation: fadeIn 0.2s ease; }

.suggestion-item {
  padding: 10px 20px; cursor: pointer; color: var(--text-secondary);
  font-size: 0.9rem; transition: all 0.2s;
}

.suggestion-item:hover { background: rgba(139,92,246,0.1); color: var(--text); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section-title {
  font-size: 1.2rem; font-weight: 600; margin: 40px 0 24px;
  display: flex; align-items: center; gap: 12px;
  color: var(--text);
}

.section-title::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ============================================================
   CARDS & GRIDS
   ============================================================ */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  margin-bottom: 16px;
}

.card:hover {
  background: var(--bg-card-hover);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
  border-color: var(--border-hover);
}

.card h2, .card h3 { margin-bottom: 12px; font-weight: 600; }
.card h2 { font-size: 1.4rem; }
.card h3 { font-size: 1.1rem; }
.card h4 { font-size: 1rem; font-weight: 600; margin: 20px 0 12px; color: var(--accent); }
.card p { color: var(--text-secondary); line-height: 1.6; }
.card .muted { color: var(--text-muted); font-size: 0.9rem; }

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

/* Cat Grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}

.cat-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  text-decoration: none; color: var(--text);
  transition: var(--transition);
  position: relative; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
}

.cat-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(6,182,212,0.08));
  opacity: 0; transition: opacity 0.3s;
}

.cat-card:hover {
  transform: translateY(-6px) scale(1.02);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(139,92,246,0.08);
  border-color: rgba(139,92,246,0.25);
}

.cat-card:hover::before { opacity: 1; }

.cat-card .ico {
  font-size: 2.6rem; margin-bottom: 14px;
  display: inline-block; transition: transform 0.3s;
  filter: drop-shadow(0 4px 12px rgba(139,92,246,0.2));
}

.cat-card:hover .ico { transform: scale(1.15) rotate(-5deg); }

.cat-card .nm { font-weight: 600; font-size: 0.95rem; position: relative; z-index: 1; }
.cat-card .count { font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; position: relative; z-index: 1; }

/* ============================================================
   PROFESSIONAL CARDS
   ============================================================ */
.pro-card {
  display: flex; align-items: flex-start; gap: 16px;
  text-decoration: none; color: var(--text);
}

.pro-card .avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent-gradient);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; color: white;
  flex-shrink: 0; box-shadow: 0 4px 16px rgba(139,92,246,0.3);
}

.pro-card .pro-info { flex: 1; }
.pro-card .pro-info h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; font-size: 1.05rem; }
.pro-card .pro-info p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 4px; }

.stars { color: #fbbf24; font-weight: 600; }
.stars .muted { color: var(--text-muted); font-weight: 400; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 24px; border-radius: var(--radius-sm); border: none;
  font-family: inherit; font-weight: 600; font-size: 0.9rem;
  cursor: pointer; text-decoration: none;
  transition: var(--transition); position: relative; overflow: hidden;
}

.btn-primary {
  background: var(--accent-gradient); color: white;
  box-shadow: 0 4px 16px rgba(139,92,246,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139,92,246,0.4), 0 0 20px rgba(6,182,212,0.2);
}

.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
  box-shadow: inset 1px 1px 3px var(--shadow-light), inset -1px -1px 3px var(--shadow-dark);
}

.btn-ghost:hover {
  background: rgba(139,92,246,0.1); border-color: rgba(139,92,246,0.3);
  box-shadow: 0 4px 16px rgba(139,92,246,0.15), inset 1px 1px 3px var(--shadow-light);
}

.btn-outline {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  color: var(--text); border-color: var(--border-hover);
  background: rgba(255,255,255,0.03);
}

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

.btn-glow {
  background: var(--accent-gradient); color: white;
  box-shadow: 0 4px 20px rgba(139,92,246,0.3);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139,92,246,0.4), 0 0 20px rgba(6,182,212,0.2);
}

/* ============================================================
   FORMS
   ============================================================ */
.field { margin-bottom: 16px; }

.field label {
  display: block; margin-bottom: 8px;
  font-size: 0.85rem; font-weight: 500; color: var(--text-secondary);
}

.field input,
.field select,
.field textarea {
  width: 100%; padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-family: inherit; font-size: 0.95rem;
  transition: var(--transition); outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(139,92,246,0.4);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.1), inset 1px 1px 2px var(--shadow-light);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); }
.field textarea { resize: vertical; min-height: 80px; }
.field select { cursor: pointer; appearance: none; }

.row { display: flex; gap: 12px; }
.row .field { flex: 1; margin-bottom: 0; }

/* ============================================================
   BADGES & STATUS
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 600;
}

.badge-green { background: rgba(34,197,94,0.15); color: #86efac; border: 1px solid rgba(34,197,94,0.3); }
.badge-amber { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.badge-red { background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }
.badge-blue { background: rgba(59,130,246,0.15); color: #93c5fd; border: 1px solid rgba(59,130,246,0.3); }

.status {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600; text-transform: capitalize;
}

.s-requested { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.s-accepted { background: rgba(59,130,246,0.15); color: #93c5fd; border: 1px solid rgba(59,130,246,0.3); }
.s-on_the_way { background: rgba(139,92,246,0.15); color: #c4b5fd; border: 1px solid rgba(139,92,246,0.3); }
.s-in_progress { background: rgba(6,182,212,0.15); color: #67e8f9; border: 1px solid rgba(6,182,212,0.3); }
.s-completed { background: rgba(34,197,94,0.15); color: #86efac; border: 1px solid rgba(34,197,94,0.3); }
.s-cancelled { background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }
.s-paid { background: rgba(34,197,94,0.15); color: #86efac; border: 1px solid rgba(34,197,94,0.3); }

/* ============================================================
   LIST ITEMS
   ============================================================ */
.list-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.list-item:last-child { border-bottom: none; }
.list-item:hover { background: rgba(255,255,255,0.02); padding-left: 8px; border-radius: 8px; }

/* ============================================================
   METRICS
   ============================================================ */
.metric {
  font-size: 2.4rem; font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  max-width: 500px; margin: 48px auto 0;
  background: rgba(30,41,59,0.4);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  text-align: center;
  position: relative; overflow: hidden;
}

.cta-section::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(139,92,246,0.06) 0%, transparent 60%);
  animation: pulse-glow 5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

.cta-section p { color: var(--text-secondary); margin-bottom: 20px; font-size: 0.95rem; position: relative; z-index: 1; }
.cta-section .btn { position: relative; z-index: 1; }

/* ============================================================
   TABS & CHIPS
   ============================================================ */
.tabs { display: flex; gap: 8px; margin-bottom: 24px; }

.chip {
  padding: 10px 20px; border-radius: 100px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
  cursor: pointer; transition: var(--transition);
}

.chip:hover { background: rgba(139,92,246,0.1); color: var(--text); }

.chip.active {
  background: var(--accent-gradient); color: white;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(139,92,246,0.3);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 300; padding: 20px;
  animation: fadeIn 0.3s ease;
}

.modal {
  background: var(--bg-card); backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 32px; max-width: 440px; width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  position: relative;
  animation: scaleIn 0.3s ease;
}

.modal h2 { margin-bottom: 20px; font-size: 1.3rem; }

.close-x {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; color: var(--text-muted);
  font-size: 1.5rem; cursor: pointer; transition: color 0.2s;
}
.close-x:hover { color: var(--text); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* ============================================================
   HINTS / ERRORS
   ============================================================ */
.hint {
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 0.85rem; margin-bottom: 16px;
}

.hint.ok { background: rgba(34,197,94,0.15); color: #86efac; border: 1px solid rgba(34,197,94,0.3); }
.hint.err { background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--bg-card); backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px 28px; color: var(--text);
  font-size: 0.9rem; font-weight: 500;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  z-index: 400; opacity: 0;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}

.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ============================================================
   DESKTOP FOOTER
   ============================================================ */
.footer {
  margin-top: 60px; padding: 32px 40px;
  border-top: 1px solid var(--border);
  background: rgba(15,23,42,0.5); backdrop-filter: blur(10px);
}

.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}

.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.1rem;
}

.footer-logo {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--accent-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

.footer-links { display: flex; gap: 24px; }

.footer-links a {
  color: var(--text-secondary); text-decoration: none; font-size: 0.85rem;
  transition: color 0.2s; position: relative;
}

.footer-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px;
  background: var(--accent); transition: width 0.3s;
}

.footer-links a:hover { color: var(--text); }
.footer-links a:hover::after { width: 100%; }

.footer-copy { color: var(--text-muted); font-size: 0.8rem; }

/* ============================================================
   MOBILE BOTTOM NAV (App-style Professional Dock)
   ============================================================ */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 500;
  padding: 0 16px env(safe-area-inset-bottom, 0);
}

.mobile-nav-dock {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px 24px 0 0;
  padding: 8px 4px 12px;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.5), 0 0 20px rgba(139,92,246,0.05);
  position: relative;
}

.mobile-nav-dock::before {
  content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.15);
}

.mobile-nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  padding: 6px 0;
  min-width: 64px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  border-radius: 16px;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item .m-icon {
  font-size: 1.35rem;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 10px;
}

.mobile-nav-item .m-label {
  transition: all 0.25s ease;
  opacity: 0.7;
}

/* Active state with pill background */
.mobile-nav-item.active {
  color: var(--text);
}

.mobile-nav-item.active .m-icon {
  background: linear-gradient(135deg, rgba(139,92,246,0.25), rgba(6,182,212,0.15));
  box-shadow: 0 0 12px rgba(139,92,246,0.3), inset 0 0 8px rgba(139,92,246,0.1);
  transform: translateY(-2px);
}

.mobile-nav-item.active .m-label {
  opacity: 1;
  color: var(--accent);
  font-weight: 600;
}

/* Touch feedback */
.mobile-nav-item:active { transform: scale(0.92); }

/* Notification dot */
.nav-dot {
  position: absolute;
  top: 4px; right: 14px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 0 6px rgba(239,68,68,0.6);
  animation: dotPulse 2s ease-in-out infinite;
  border: 2px solid rgba(15,23,42,0.9);
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.center { text-align: center; }
.mt { margin-top: 20px; }
.mb { margin-bottom: 16px; }
.muted { color: var(--text-muted); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in { animation: fadeInUp 0.6s ease forwards; opacity: 0; }
.animate-in:nth-child(1) { animation-delay: 0.1s; }
.animate-in:nth-child(2) { animation-delay: 0.2s; }
.animate-in:nth-child(3) { animation-delay: 0.3s; }
.animate-in:nth-child(4) { animation-delay: 0.4s; }
.animate-in:nth-child(5) { animation-delay: 0.5s; }
.animate-in:nth-child(6) { animation-delay: 0.6s; }
.animate-in:nth-child(7) { animation-delay: 0.7s; }
.animate-in:nth-child(8) { animation-delay: 0.8s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); width: 260px; }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; padding: 80px 20px 100px; }
  .mobile-toggle { display: flex; }

  /* Hide desktop footer, show mobile nav */
  .footer { display: none; }
  .mobile-nav { display: block; }

  .hero { padding: 32px 16px 28px; }
  .hero h1 { font-size: 1.9rem; }
  .hero p { font-size: 1rem; }

  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-card { padding: 24px 12px; }
  .cat-card .ico { font-size: 2rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .pro-card { flex-direction: column; align-items: center; text-align: center; }
  .pro-card .pro-info h3 { justify-content: center; }

  .row { flex-direction: column; }

  .section-title { font-size: 1.1rem; }

  .cta-section { margin: 32px 0 0; padding: 32px 24px; }

  .modal { padding: 24px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .search-box { padding: 4px 4px 4px 14px; }
  .search-box button { width: 40px; height: 40px; }
  .mobile-nav-dock { padding: 6px 2px 10px; }
  .mobile-nav-item { min-width: 56px; }
  .mobile-nav-item .m-icon { font-size: 1.2rem; width: 28px; height: 28px; }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* ============================================================
   SELECTION
   ============================================================ */
::selection { background: rgba(139,92,246,0.3); color: var(--text); }
.flash-error{background:rgba(239,68,68,.12);color:#fca5a5;border:1px solid rgba(239,68,68,.35)}
.flash-error .flash-icon{color:#f87171}
