/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
  /* --- Palette: Deep Space & Neon --- */
/* ADD inside :root */
--text: var(--text-main);
--muted: var(--text-muted);
--card-shadow: var(--shadow-card);
--secondary: #10b981;

  /* Backgrounds */
  --bg-body: #020617;        /* Cel mai închis albastru */
  --bg-surface: #0f172a;     /* Culoare de bază pentru panouri */

  /* Glass Effects (Sticlă) */
  --glass-bg: rgba(15, 23, 42, 0.65);
  --glass-bg-hover: rgba(30, 41, 59, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-highlight: rgba(255, 255, 255, 0.15); /* Lumina de sus */
  --glass-backdrop: blur(16px);

  /* Primary Brand Colors */
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.5);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-text: linear-gradient(to right, #ffffff 10%, #93c5fd 100%);
  --gradient-surface: linear-gradient(145deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.4) 100%);

  /* Text Colors */
  --text-main: #f8fafc;      /* Alb murdar pentru citire ușoară */
  --text-muted: #94a3b8;     /* Gri albăstrui */
  --text-accent: #60a5fa;    /* Albastru deschis */

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(59, 130, 246, 0.25);

  /* Spacing & Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --container-width: 1200px;
.btn-secondary {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: rgba(209, 250, 229, 0.95);
}
.btn-secondary:hover {
  background: rgba(16, 185, 129, 0.22);
  transform: translateY(-2px);
}

  /* =========================================
     Compatibility aliases (fix var() missing)
     ========================================= */
  --text: var(--text-main);
  --muted: var(--text-muted);
  --card-shadow: var(--shadow-card);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;

  /* Background Mesh Gradient animat */
  background-image:
    radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
  background-attachment: fixed;
  background-size: cover;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

button, input {
  font-family: inherit;
  outline: none;
}

/* Text util */
.text-muted { color: var(--text-muted); }

/* =========================================
   2. ANIMATIONS & UTILITIES
   ========================================= */

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

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* Clasa utilitară pentru ascundere */
[hidden] {
  display: none !important;
}

.page-wrapper {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 1.5rem 2rem 4rem;
  /* Animație de intrare pentru toată pagina */
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* =========================================
   3. TOPBAR (Navigation)
   ========================================= */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 14px;
  flex-wrap: nowrap;

  /* Glass Effect */
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);

  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-full);
  position: sticky;
  top: 1.5rem;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  margin-bottom: 3rem;
  transition: all 0.3s ease;
}


.topbar:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Logo Area */
.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-badge {
  width: 44px;
  height: 44px;

  /* Glass badge (no gradient) */
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);

  border-radius: 9999px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  /* Keep it crisp on dark backgrounds */
  padding: 3px;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(2, 6, 23, 0.65) inset;
}

.logo-badge .logo-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 9999px; /* round, not square */
  background: transparent;
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-title {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Navigation Links */
.topbar-nav {
  display: flex;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 5px;
  border-radius: var(--radius-full);
}

.topbar-link {
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: 0.3s;
}

.topbar-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.topbar-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Right Side & User Actions */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-align: right;
}

.topbar-user-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.topbar-user-email {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* =========================================
   4. BUTTONS
   ========================================= */

.btn, .topbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Primary Button (Gradient) */
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

/* Ghost / Secondary Button */
.btn-ghost, .topbar-btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
}

.btn-ghost:hover, .topbar-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Small Button Variant */
.topbar-btn.small {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  background: rgba(255, 50, 50, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(255, 50, 50, 0.2);
}
.topbar-btn.small:hover {
  background: rgba(255, 50, 50, 0.2);
}

.btn.full {
  width: 100%;
}

/* =========================================
   5. HERO SECTION
   ========================================= */

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
  position: relative;
}

.hero-main h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;

  /* Gradient Text Effect */
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-text {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 90%;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.hero-note {
  margin-top: 1rem;
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
}

/* Stats Cards in Hero */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
  gap: 1.5rem;
}
.hero-stats .stat-card:nth-child(3) {
  grid-column: span 2; /* Al treilea card ocupă toată lățimea */
}

.stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border-highlight);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s;
  box-shadow: var(--shadow-card);
}

.stat-card:hover {
  transform: translateY(-5px);
  background: var(--glass-bg-hover);
}

.stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* =========================================
   6. APPS GRID & FILTERS
   ========================================= */

.apps-section {
  position: relative;
}

.apps-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

/* Search Box Styled */
.search-box {
  flex: 1;
  max-width: 400px;
}

.search-box input {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--glass-border);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-full);
  color: white;
  font-size: 1rem;
  transition: all 0.3s;
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
  background: rgba(15, 23, 42, 0.9);
}

/* Chips / Filters */
.filters-row {
  display: flex;
  gap: 0.8rem;
}

.chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.chip-active {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--primary);
  color: var(--text-accent);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.1);
}

/* Grid Layout */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* Carduri mai late */
  gap: 2rem;
}

/* =========================================
   7. APP CARD (The Star Component)
   ========================================= */

.app-card {
  display: flex;
  flex-direction: column;
  background: var(--gradient-surface);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border-highlight);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
}

.app-card:hover {
  transform: translateY(-10px) scale(1.02);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-color: rgba(96, 165, 250, 0.3);
  box-shadow:
    0 20px 40px -5px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(59, 130, 246, 0.15);
}

/* Top part of card */
.app-card-top {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.app-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.app-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.app-card:hover .app-icon {
  transform: scale(1.1);
}

.app-card-body {
  flex: 1;
}

.app-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.app-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.app-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 1rem 0;
  /* Limit to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Footer */
.app-card-meta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

/* Badges */
.badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-weight: 600;
}

.badge-outline {
  border: 1px solid var(--glass-border);
  color: var(--text-main);
}

.badge-soft {
  background: rgba(59, 130, 246, 0.1);
  color: var(--text-accent);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* =========================================
   8. APP DETAIL PAGE (app.html)
   ========================================= */

.app-detail-header {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-card);
  animation: fadeInUp 0.5s ease-out;
}

.app-detail-main {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.app-detail-icon img {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.app-detail-title {
  font-size: 2.5rem;
  margin: 0 0 0.5rem 0;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-detail-meta-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: center;
}

.app-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 200px;
}

.app-detail-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.app-detail-panel {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.app-detail-panel h2, .app-detail-panel h3 {
  margin-top: 0;
  color: white;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.app-meta-list li {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}

.app-meta-list span:first-child { color: var(--text-muted); }
.app-meta-list span:last-child { color: white; font-weight: 500; }

/* =========================================
   9. AUTH MODAL (Fixing the screenshot issue)
   ========================================= */

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(2, 6, 23, 0.85); /* Darker backdrop */
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeInOverlay 0.3s forwards;
}

@keyframes fadeInOverlay { to { opacity: 1; } }

.auth-modal {
  /* Dimensiuni mai generoase */
  width: 100%;
  max-width: 420px;
  background: #0f172a;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid var(--glass-border-highlight);
  border-radius: 24px;
  padding: 2.5rem; /* Padding mare pentru a nu fi înghesuit */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  position: relative;
  transform: translateY(20px);
  animation: slideUpModal 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideUpModal {
  to { transform: translateY(0); opacity: 1; }
}

.auth-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.auth-close:hover { background: rgba(255,255,255,0.1); color: white; }

/* Tabs inside Modal */
.auth-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: var(--radius-full);
  margin-bottom: 2rem;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.8rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

.auth-tab.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Forms styling */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field span {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 0.2rem;
}

.field input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  padding: 1rem;
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  transition: 0.3s;
}

.field input:focus {
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.auth-error {
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #fca5a5;
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
}

/* =========================================
   10. FOOTER
   ========================================= */

.footer {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-link {
  margin-left: 1.5rem;
  transition: 0.2s;
}
.footer-link:hover { color: var(--primary-glow); text-shadow: 0 0 10px var(--primary-glow); }

/* =========================================
   11. DEV PAGE SPECIFICS
   ========================================= */

.hero-dev { grid-template-columns: 1fr 1fr; }

.hero-panel {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.dev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.dev-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: 0.3s;
}

.dev-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.dev-card-title {
  font-size: 1.5rem;
  color: white;
  margin: 0 0 0.5rem 0;
}

.dev-card-apps a {
  color: var(--text-accent);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: 0.3s;
}
.dev-card-apps a:hover {
  text-decoration-color: var(--text-accent);
}

/* =========================================
   12. RESPONSIVE (Mobile)
   ========================================= */

@media (max-width: 768px) {
  .page-wrapper {
    padding: 1rem;
  }

  .topbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border-radius: 20px;
    background: #0f172a; /* Solid background on mobile for performance */
  }

  .topbar-nav {
    width: 100%;
    justify-content: center;
  }

  .topbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-main h1 {
    font-size: 2.5rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
  .hero-stats .stat-card:nth-child(3) { grid-column: auto; }

  .app-detail-header {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .app-detail-main {
    flex-direction: column;
    gap: 1rem;
  }

  .app-detail-actions {
    width: 100%;
  }

  .app-detail-body {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-link { margin: 0 0.5rem; }
}

/* ===============================
   Secțiune roluri (client / dev / admin)
   =============================== */

.roles-section {
  margin-top: 3rem;
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35); /* slate-ish */
}

.roles-header {
  max-width: 640px;
  margin: 0 auto 2rem;
  text-align: center;
}

.roles-header h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.roles-header p {
  font-size: 0.95rem;
  color: rgba(148, 163, 184, 0.95);
}

/* Layout carduri */

.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .roles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .roles-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Card de bază */

.role-card {
  position: relative;
  padding: 1.5rem 1.4rem 1.4rem;
  border-radius: 18px;
  background: radial-gradient(circle at top left,
              rgba(15, 23, 42, 0.85),
              rgba(2, 6, 23, 0.98));
  border: 1px solid rgba(51, 65, 85, 0.9);
  box-shadow:
    0 18px 35px rgba(15, 23, 42, 0.75),
    0 0 0 1px rgba(15, 23, 42, 0.4) inset;
  color: #E5E7EB;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    border-color 0.18s ease-out,
    background 0.18s ease-out;
}

/* containerul badge-ului */
.role-pill {
  position: absolute;
  top: 0.85rem;
  right: 0.9rem;
  pointer-events: none;
}

.role-pill-label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.12rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.85);
  color: #E5E7EB;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9);
}

/* Culori per rol */
.role-card-client .role-pill-label {
  border-color: rgba(16, 185, 129, 0.85);
  background: radial-gradient(circle at left,
    rgba(16, 185, 129, 0.28),
    rgba(15, 23, 42, 0.95));
  color: #6EE7B7;
}

.role-card-developer .role-pill-label {
  border-color: rgba(37, 99, 235, 0.9);
  background: radial-gradient(circle at left,
    rgba(37, 99, 235, 0.3),
    rgba(15, 23, 42, 0.96));
  color: #93C5FD;
}

.role-card-admin .role-pill-label {
  border-color: rgba(168, 85, 247, 0.9);
  background: radial-gradient(circle at left,
    rgba(168, 85, 247, 0.32),
    rgba(15, 23, 42, 0.96));
  color: #E9D5FF;
}

/* Mic highlight la hover */
.role-card:hover .role-pill-label {
  box-shadow:
    0 0 0 1px rgba(148, 163, 184, 0.7),
    0 0 16px rgba(148, 163, 184, 0.5);
}

.role-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.role-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
  color: rgba(209, 213, 219, 0.95);
}

.role-card ul li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.35rem;
}

.role-card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(148, 163, 184, 1);
  font-size: 0.9rem;
}

.role-cta {
  font-size: 0.9rem;
  margin-top: 0.4rem;
  color: rgba(148, 163, 184, 1);
}

.role-cta strong {
  color: #E5E7EB;
}

/* Link din cardul de dev */
.role-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #38BDF8; /* albastru-cyan rece */
  text-decoration: none;
}

.role-link::after {
  content: "↗";
  font-size: 0.85em;
  opacity: 0.85;
}

.role-link:hover {
  text-decoration: underline;
}

/* Hover general */
.role-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 22px 45px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(148, 163, 184, 0.55) inset;
}

/* Accente de culoare per rol */
.role-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
}

.role-card:hover::before {
  opacity: 0.16;
}

/* Client */
.roles-grid .role-card:nth-child(1) {
  border-top: 2px solid #10B981;         /* verde */
}

.roles-grid .role-card:nth-child(1)::before {
  background: radial-gradient(circle at top,
    rgba(16, 185, 129, 0.65),
    transparent 60%);
}

/* Developer */
.roles-grid .role-card:nth-child(2) {
  border-top: 2px solid #2563EB;         /* albastru */
}

.roles-grid .role-card:nth-child(2)::before {
  background: radial-gradient(circle at top,
    rgba(37, 99, 235, 0.7),
    transparent 60%);
}

/* Admin */
.roles-grid .role-card:nth-child(3) {
  border-top: 2px solid #A855F7;         /* mov */
}

.roles-grid .role-card:nth-child(3)::before {
  background: radial-gradient(circle at top,
    rgba(168, 85, 247, 0.7),
    transparent 60%);
}

/* =========================================
   STATIC STORE (presentation mode)
   ========================================= */
.topbar-btn.pulse-cta {
  animation: pulseGlow 1.3s infinite;
}

.app-card-actions{
  position: relative;
  z-index: 20;
  display:flex;
  gap:10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.btn-small{
  padding: 10px 12px;
  font-size: 0.9rem;
}

.btn.disabled, .btn[aria-disabled="true"]{
  opacity: .6;
  pointer-events: none;
}

.app-longdesc-card{
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--card-shadow);
}

.app-meta-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.meta-item{
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 12px;
}

.meta-label{
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.meta-value{
  font-weight: 600;
}

@media (max-width: 860px){
  .app-meta-grid{ grid-template-columns: 1fr; }
}

/* App page layout */
.app-hero{
  display:flex;
  gap: 18px;
  align-items: stretch;
  padding: 2.5rem 2rem 2rem;
}
.app-hero-left{
  flex: 1;
  display:flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--card-shadow);
}
.app-hero-icon{
  width: 86px;
  height: 86px;
  border-radius: 22px;
  overflow:hidden;
  flex: 0 0 auto;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  display:flex;
  align-items:center;
  justify-content:center;
}
.app-hero-icon img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.app-hero-text{
  flex: 1;
}
.app-hero-text h1{
  margin: 0 0 8px 0;
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  letter-spacing: -0.02em;
}
.app-hero-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.app-hero-right{
  width: 320px;
  display:grid;
  gap: 12px;
}
@media (max-width: 980px){
  .app-hero{ flex-direction: column; padding: 2rem 1.25rem 1.25rem; }
  .app-hero-right{ width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .app-hero-right{ grid-template-columns: 1fr; }
  .app-hero-icon{ width: 74px; height: 74px; border-radius: 18px; }
}

/* =========================================
   MOBILE POLISH (Scalare corectă pe telefon)
   ========================================= */

.topbar-nav { flex-wrap: wrap; row-gap: 0.5rem; }
.filters-row { flex-wrap: wrap; }
.hero-actions { flex-wrap: wrap; }

.testers-title { margin: 0; }

/* Testers section helpers (înlocuiește inline styles) */
.testers-section { padding-top: 0; }
.testers-header { gap: 12px; }
.testers-sub { margin: 6px 0 0; max-width: 80ch; }
.tester-card { margin-top: 14px; }
.tester-form { margin: 0; margin-bottom: 0; gap: 12px; align-items: center; justify-content: flex-start; }
.tester-form .search-box { max-width: none; }

.tester-field { flex: 1 1 320px; min-width: 240px; max-width: 520px; }
.tester-select-wrap { position: relative; }

.tester-select {
  width: 100%;
  min-height: 48px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  background: rgba(15, 23, 42, 0.6);
  color: #fff;
  padding: 0.8rem 2.6rem 0.8rem 1.2rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.2;
  transition: all 0.3s;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.tester-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
  background: rgba(15, 23, 42, 0.9);
}

.tester-select option {
  background: #0b1220;
  color: #fff;
}

.tester-select-wrap::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, 0.65);
  border-bottom: 2px solid rgba(255, 255, 255, 0.65);
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}

.tester-hint { margin: 10px 0 0; }

@media (max-width: 900px) {
  .topbar { margin-bottom: 2rem; }
  .brand-subtitle { display: none; } /* pe tabletă mică, nu ne întindem */
}

@media (max-width: 768px) {
  /* TOPBAR */
  .topbar { top: 0.75rem; }
  .topbar-left { width: 100%; justify-content: center; }
  .brand { text-align: center; }
  .brand-title { font-size: 1.02rem; }
  .topbar-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .topbar-nav::-webkit-scrollbar { display: none; }
  .topbar-link { flex: 0 0 auto; padding: 0.55rem 0.9rem; }
  .topbar-right { width: 100%; justify-content: center; }
  .topbar-btn, .pulse-cta { width: 100%; }

  /* HERO */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .hero-actions .btn { width: 100%; }

  /* TOOLBAR + GRID */
  .apps-toolbar { flex-direction: column; align-items: stretch; gap: 1rem; }
  .filters-row { justify-content: center; gap: 0.6rem; }
  .search-box { width: 100%; }

  .apps-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Card spacing */
  .app-card { padding: 1.25rem; }
  .app-desc { font-size: 0.95rem; }
}

@media (max-width: 520px) {
  .page-wrapper { padding: 0.85rem; }
  .topbar { padding: 0.85rem; border-radius: 18px; }
  .logo-badge {
  width: 44px;
  height: 44px;

  /* Glass badge (no gradient) */
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);

  border-radius: 9999px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  /* Keep it crisp on dark backgrounds */
  padding: 3px;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(2, 6, 23, 0.65) inset;
}

.logo-badge .logo-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 9999px; /* round, not square */
  background: transparent;
}

.brand-title { font-size: 0.98rem; }
  .chip { padding: 0.55rem 0.9rem; }
  .btn, .topbar-btn { padding: 0.62rem 1.1rem; }
}

@media (max-width: 768px) {
  .tester-form .btn { width: 100%; justify-content: center; }
  .tester-field { max-width: none; width: 100%; }
}

/* Respectă Reduce Motion */
@media (prefers-reduced-motion: reduce) {
  .pulse-cta { animation: none !important; }
  * { scroll-behavior: auto !important; transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

/* IDEAS section */
.ideas-section { padding-top: 0; }
.ideas-card { margin-top: 14px; }
.ideas-sub { margin: 6px 0 0; max-width: 80ch; }
.section-title { margin: 0; }

.ideas-bullets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.ideas-bullet ul { margin: 10px 0 0; padding-left: 18px; }
.ideas-bullet li { margin: 6px 0; }

.idea-form { display: flex; flex-direction: column; gap: 12px; }
.idea-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.idea-select,
.idea-textarea {
  width: 100%;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
}

.idea-textarea{
  border-radius: 18px;
  resize: none; /* arată curat + autosize din JS */
  min-height: 112px;
  max-height: 240px;
  line-height: 1.35;
  overflow-y: hidden; /* JS îl pune pe auto doar când e nevoie */
  caret-color: var(--primary);
  color-scheme: dark;
  scrollbar-gutter: stable;
  background-clip: padding-box;
}

/* scrollbar dark (Chrome/Edge/Safari) */
.idea-textarea::-webkit-scrollbar{ width: 10px; }
.idea-textarea::-webkit-scrollbar-track{
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  margin: 10px 6px;
}
.idea-textarea::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.22);
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, 0.60);
}
.idea-textarea::-webkit-scrollbar-thumb:hover{
  background: rgba(255,255,255,0.30);
}

/* Firefox */
.idea-textarea{
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.28) rgba(255,255,255,0.06);
}


.idea-select { appearance: none; -webkit-appearance: none; -moz-appearance: none; }
.idea-select option { background: #0b1220; color: #fff; }

.idea-row-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.idea-hint { margin: 6px 0 0; }


/* honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Mobile polish */
@media (max-width: 900px) {
  .ideas-bullets { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .idea-row { grid-template-columns: 1fr; }
  .idea-row-actions .btn { width: 100%; justify-content: center; }
}
.idea-policy { margin: 10px 0 0; }

/* =========================================
   13. NEW FEATURES (Roadmap, Modals, Toasts,
       Live Demo, Privacy Bubble, Share Card)
   ========================================= */

/* Pills (used in roadmap + share) */
.pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.22);
  color: var(--text-main);
  font-size: 0.92rem;
}

/* Roadmap stories */
.roadmap-stories{
  display:flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 2px 2px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.roadmap-story{
  scroll-snap-align: start;
  flex: 0 0 min(520px, 92vw);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius: 22px;
  padding: 14px;
  position: relative;
  overflow:hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.roadmap-story::after{
  content:"";
  position:absolute;
  inset:-40%;
  background:
    radial-gradient(circle at 30% 20%, rgba(59,130,246,.22), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(139,92,246,.18), transparent 55%);
  transform: rotate(8deg);
  pointer-events:none;
}

.roadmap-story > *{ position: relative; z-index:1; }

.roadmap-step{ display:flex; align-items:center; gap:10px; }
.dot{ width:10px; height:10px; border-radius:999px; background: #10B981; box-shadow: 0 0 18px rgba(16,185,129,.35); }

.roadmap-story h3{ margin: 10px 0 6px; color: #fff; }
.roadmap-story p{ margin:0; color: rgba(255,255,255,.70); }

.story-tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top: 12px; }

/* Toasts */
.toast-host{
  position: fixed;
  right: 16px;
  bottom: 16px;
  display:flex;
  flex-direction:column;
  gap:10px;
  z-index: 9999;
  pointer-events:none;
}

.toast{
  pointer-events:none;
  max-width: 360px;
  border:1px solid var(--glass-border);
  background: rgba(0,0,0,.55);
  color: var(--text-main);
  padding: 10px 12px;
  border-radius: 14px;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

.toast b{ display:block; margin-bottom: 2px; }

/* Modals */
.modal-overlay{
  position: fixed;
  inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  z-index: 9998;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 16px;
}

.modal{
  width: min(980px, 100%);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(8,10,18,.82);
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  overflow:hidden;
}

.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.modal-title{ font-weight: 700; color: var(--text-main); }

.modal-close{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text-main);
  cursor:pointer;
}

.modal-body{ padding: 16px; }
.modal-grid{ display:grid; grid-template-columns: 1.1fr .9fr; gap: 14px; }
@media (max-width: 860px){ .modal-grid{ grid-template-columns: 1fr; } }

/* Shortcuts UI */
.kbd{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 4px 8px;
  border-radius: 10px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-weight: 600;
  color: var(--text-main);
}

.shortcuts{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:10px;
}
@media (max-width: 640px){ .shortcuts{ grid-template-columns: 1fr; } }

.shortcut-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 10px 12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}

/* Privacy Bubble badges */
.app-privacy{ display:flex; flex-wrap:wrap; gap:8px; margin-top: 10px; }

.pb{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  color: var(--text-main);
  font-size:.90rem;
}
.pb b{ font-weight:800; }
.pb.on{ border-color: rgba(16,185,129,.35); }
.pb.off{ opacity:.55; filter: grayscale(.2); }

/* Live demo preview overlay */
.app-preview{
  position:absolute;
  z-index: 12;
  inset: 10px;
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(8px);
  padding: 12px;
  opacity:0;
  transform: translateY(8px);
  pointer-events:none;
  transition: all .18s ease-out;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.app-card-static:hover .app-preview,
.app-card-static:focus-within .app-preview{
  opacity:1;
  transform: translateY(0);
  pointer-events:auto;
}

.preview-top{ display:flex; align-items:center; justify-content:space-between; gap:10px; }

.preview-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:8px;
}

.shot{
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  overflow:hidden;
  position: relative;
}
.shot img{ width:100%; height:100%; object-fit: cover; display:block; }
.shot::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.35), transparent 55%);
  pointer-events:none;
}

.preview-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.preview-note{ margin:0; color: rgba(255,255,255,.70); font-size:.92rem; }

/* Invite Heat */
.invite-heat{
  margin-top: 12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius: 18px;
  padding: 12px;
}
.invite-heat-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.invite-heat-title{ font-weight:800; color: var(--text-main); }
.invite-heat-list{ margin: 10px 0 0; padding-left: 16px; color: rgba(255,255,255,.75); }
.invite-heat-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 10px; }
.ok{ color: rgba(16,185,129,.92); font-weight:800; }
.no{ color: rgba(255,255,255,.65); font-weight:800; }

/* Idea clarity score */
.idea-score{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius: 18px;
  padding: 12px;
  margin: 0 0 12px;
}
.idea-score-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.idea-score-row b{ color: var(--text-main); }

.idea-bar{
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow:hidden;
  margin-top: 10px;
}
.idea-bar > div{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, var(--primary), #10B981);
  transition: width .18s ease-out;
}
.idea-checks{ display:flex; flex-wrap:wrap; gap:8px; margin-top: 10px; }
.ck{
  padding: 6px 10px;
  border-radius: var(--radius-full);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  color: rgba(255,255,255,.78);
  font-size:.90rem;
}
.ck.on{
  border-color: rgba(16,185,129,.35);
  color: rgba(255,255,255,.92);
}

/* Share card */
.share-preview{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius: 18px;
  padding: 12px;
}
.share-canvas-wrap{ display:flex; align-items:center; justify-content:center; padding: 10px; }
canvas#shareCanvas{
  width: 100%;
  max-width: 560px;
  height:auto;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
}
.share-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 12px; }

/* Easter egg mode */
body.millo-mode .logo-badge {
  width: 44px;
  height: 44px;

  /* Glass badge (no gradient) */
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);

  border-radius: 9999px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  /* Keep it crisp on dark backgrounds */
  padding: 3px;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(2, 6, 23, 0.65) inset;
}

.logo-badge .logo-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 9999px; /* round, not square */
  background: transparent;
}

body.millo-mode .brand-title{ letter-spacing: .4px; }
body.millo-mode .roadmap-story::after{
  background:
    radial-gradient(circle at 30% 20%, rgba(16,185,129,.20), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(59,130,246,.22), transparent 55%);
}

/* Reduced motion extras */
@media (prefers-reduced-motion: reduce){
  .app-preview{ transition:none; }
  .idea-bar > div{ transition:none; }
}


.preview-overlay{
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(2,6,23,0.78);
  backdrop-filter: blur(10px);
  display:flex; align-items:center; justify-content:center;
  padding: 18px;
}
.preview-modal{
  width: min(980px, 100%);
  background: rgba(15,23,42,0.88);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  overflow: hidden;
}
.preview-head{
  display:flex; justify-content:space-between; gap:16px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.preview-title{ font-weight: 700; }
.preview-sub{ display:flex; gap:10px; align-items:baseline; flex-wrap:wrap; }
.preview-badges{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.preview-close{
  width: 42px; height: 42px; border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  cursor: pointer;
}
.preview-close:hover{ background: rgba(255,255,255,0.12); }

.preview-body{
  display:grid; grid-template-columns: 52px 1fr 52px;
  align-items:center; gap: 10px;
  padding: 14px 14px 0;
}
.preview-img{
  width: 100%; height: min(64vh, 560px);
  object-fit: contain;
  border-radius: 16px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.08);
}
.navbtn{
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  font-size: 26px;
  cursor: pointer;
}
.navbtn:hover{ background: rgba(255,255,255,0.12); }

.preview-dots{
  display:flex; gap: 8px;
  justify-content:center;
  padding: 12px 14px 0;
}
.dotbtn{
  width: 10px; height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.22);
  cursor: pointer;
}
.dotbtn.active{ background: rgba(59,130,246,0.9); }

.preview-actions{
  display:flex; gap: 10px; flex-wrap:wrap;
  justify-content:center;
  padding: 14px;
}

.canvas-wrap{
  padding: 0 14px 14px;
}
.canvas-wrap canvas{
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.22);
}
.canvas-actions{
  display:flex; gap: 10px; flex-wrap:wrap;
  justify-content:center;
  margin-top: 12px;
}

/* --- ROADMAP CONTAINER --- */
.roadmap-wrap {
  position: relative;
  border-radius: 24px;
  /* Adăugăm un glow subtil în spatele întregii secțiuni opțional */
  background: radial-gradient(circle at top center, rgba(59,130,246,0.03), transparent 70%);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Puțin mai lat pentru aerisire */
  gap: 20px;
  padding: 10px; /* Spațiu pentru umbre la hover */
}

/* --- THE WOW CARD --- */
.roadmap-card {
  /* Glassmorphism Base */
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  
  /* Border cu gradient subtil (light top, dark bottom) */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 24px;
  
  /* Shadows & Transitions */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
              0 2px 4px -1px rgba(0, 0, 0, 0.06),
              inset 0 1px 0 rgba(255, 255, 255, 0.05); /* Inner light */
  
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Spring effect */
  position: relative;
  overflow: hidden;
}

/* Hover Effect - The "Pop" */
.roadmap-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: linear-gradient(160deg, rgba(40, 55, 80, 0.5) 0%, rgba(20, 30, 55, 0.7) 100%);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5),
              0 0 15px rgba(59, 130, 246, 0.15); /* Blue glow ambient */
}

/* Shine effect la hover (opțional, dar cool) */
.roadmap-card::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transform: skewX(-25deg);
  transition: 0s;
}
.roadmap-card:hover::after {
  left: 150%;
  transition: 0.7s ease-in-out;
}

/* --- TYPOGRAPHY --- */
.roadmap-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.roadmap-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  background: linear-gradient(90deg, #fff, #cbd5e1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.roadmap-desc {
  margin: 0;
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- CLARITY METER (Neon Style) --- */
.clarity {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 100%; /* Full width pe mobil, ajustabil */
  margin-top: auto; /* Împinge footer-ul jos dacă cardul e înalt */
  padding-top: 20px;
}

.clarity-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

.clarity-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}

.clarity-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  position: relative;
  /* Neon Glow */
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5); 
}

/* Mic efect de licărire pe bară */
.clarity-fill::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  opacity: 0.3;
  transform: translateX(-100%);
  animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

/* --- MINI CHECKS --- */
.mini-checks {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.mini-check {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(203, 213, 225, 0.9);
  background: rgba(255,255,255,0.03);
  padding: 6px 10px 6px 6px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s;
}

.mini-check:hover {
  background: rgba(255,255,255,0.07);
}

.mini-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
}

.mini-dot.ok {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.2); /* Green glow */
}

/* --- SCROLL STORIES (Pastrat logica, imbunatatit visualul) --- */
.roadmap-stories {
  display: flex !important;
  gap: 20px !important;
  overflow-x: auto !important;
  padding: 10px 5px 25px 5px; /* Padding extra jos pentru hover shadow */
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.5) rgba(15, 23, 42, 0.3);
}

/* Custom Scrollbar mai vizibilă și sexy */
.roadmap-stories::-webkit-scrollbar {
  height: 6px;
}
.roadmap-stories::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.3);
  border-radius: 10px;
  margin: 0 20px;
}
.roadmap-stories::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 10px;
  cursor: pointer;
}
.roadmap-stories::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #2563eb, #7c3aed);
}

/* Fade Zones - Ajustate pentru noile culori */
.roadmap-fade.left {
  background: linear-gradient(to right, rgba(2,6,23, 1) 10%, rgba(2,6,23,0));
}
.roadmap-fade.right {
  background: linear-gradient(to left, rgba(2,6,23, 1) 10%, rgba(2,6,23,0));
}

/* Empty state (Testeri) */
.empty-note{
  padding: 16px;
}
/* =========================================
   Brand badge: subtle cyan HUD ring
   (applied at end to override all breakpoints)
   ========================================= */
.logo-badge{
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(2, 6, 23, 0.65) inset,
    0 0 0 1px rgba(34, 211, 238, 0.18),
    0 0 14px rgba(34, 211, 238, 0.12);
}

.topbar:hover .logo-badge{
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(2, 6, 23, 0.55) inset,
    0 0 0 1px rgba(34, 211, 238, 0.30),
    0 0 18px rgba(34, 211, 238, 0.18);
}
