/* =============================================
   BYPASS TOOLS — Main Stylesheet
   ============================================= */

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

:root {
  --bg-primary:    #060810;
  --bg-secondary:  #0c0f1a;
  --bg-card:       rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.08);
  --border:        rgba(255,255,255,0.08);
  --border-glow:   rgba(99,179,237,0.35);
  --accent:        #5b8af5;
  --accent2:       #a855f7;
  --accent-glow:   rgba(91,138,245,0.25);
  --success:       #22c55e;
  --warning:       #f59e0b;
  --danger:        #ef4444;
  --text-primary:  #f1f5f9;
  --text-secondary:#94a3b8;
  --text-muted:    #475569;
  --radius:        14px;
  --radius-sm:     8px;
  --shadow-card:   0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow:   0 0 40px rgba(91,138,245,0.15);
  --font:          'Inter', system-ui, sans-serif;
  --mono:          'JetBrains Mono', monospace;
  --transition:    0.2s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Background mesh ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(91,138,245,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(168,85,247,0.10) 0%, transparent 60%);
  pointer-events: none;
  z-index: -2;
}

/* ── Grid noise overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -2;
}

/* ── Layout ── */
.wrapper { position: relative; z-index: 1; }

/* ── Header / Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6,8,16,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  flex-shrink: 0;
}

.navbar-logo .logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 16px;
  box-shadow: 0 0 16px var(--accent-glow);
}

.navbar-logo span em {
  color: var(--accent);
  font-style: normal;
}

.navbar-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.navbar-search input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.55rem 1rem 0.55rem 2.75rem;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

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

.navbar-search input:focus {
  border-color: var(--accent);
  background: rgba(91,138,245,0.06);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.navbar-search .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 14px;
}

.navbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ── Breadcrumb ── */
.breadcrumb-bar {
  padding: 0.85rem 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(12,15,26,0.6);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  flex-wrap: wrap;
}

.breadcrumb-bar a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.breadcrumb-bar a:hover { color: var(--text-primary); }

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

.breadcrumb-bar .current {
  color: var(--text-secondary);
}

/* ── Container ── */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem;
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 4rem 2rem 2rem;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(91,138,245,0.1);
  border: 1px solid rgba(91,138,245,0.25);
  border-radius: 50px;
  padding: 0.3rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

/* ── Stats bar ── */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-item .stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--mono);
}

.stat-item .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Section title ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Category Cards ── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.category-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

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

.category-img-wrap {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(91,138,245,0.15), rgba(168,85,247,0.15));
  border: 1px solid rgba(255,255,255,0.1);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.category-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-img-placeholder {
  font-size: 28px;
}

.category-info { position: relative; z-index: 1; }

.category-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.category-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.category-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.category-meta .pill {
  background: rgba(91,138,245,0.12);
  border: 1px solid rgba(91,138,245,0.2);
  color: var(--accent);
  border-radius: 50px;
  padding: 2px 10px;
  font-weight: 600;
}

.category-arrow {
  margin-left: auto;
  width: 32px;
  height: 32px;
  background: rgba(91,138,245,0.1);
  border: 1px solid rgba(91,138,245,0.2);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 14px;
  position: relative;
  z-index: 1;
  transition: background var(--transition);
}

.category-card:hover .category-arrow {
  background: var(--accent);
  color: #fff;
}

/* ── Folder list ── */
.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.folder-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition);
  cursor: pointer;
}

.folder-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateX(4px);
  box-shadow: 4px 0 20px var(--accent-glow);
}

.folder-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b22, #f59e0b44);
  border: 1px solid rgba(245,158,11,0.25);
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}

.folder-name {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

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

/* ── Files Table ── */
.files-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.files-table-header {
  display: grid;
  grid-template-columns: 1fr 90px 100px 160px;
  padding: 0.75rem 1.25rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.file-row {
  display: grid;
  grid-template-columns: 1fr 90px 100px 160px;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background var(--transition);
}

.file-row:last-child { border-bottom: none; }
.file-row:hover { background: rgba(255,255,255,0.03); }

.file-name-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.file-ext-badge {
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  font-family: var(--mono);
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.ext-pkg  { background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
.ext-dmg  { background: rgba(99,102,241,0.15); color: #818cf8; border: 1px solid rgba(99,102,241,0.3); }
.ext-zip  { background: rgba(34,197,94,0.15);  color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.ext-rar  { background: rgba(239,68,68,0.15);  color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.ext-exe  { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.ext-other{ background: rgba(148,163,184,0.1); color: #94a3b8; border: 1px solid rgba(148,163,184,0.2); }

.file-name-text {
  font-size: 0.9rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size { font-size: 0.82rem; color: var(--text-secondary); font-family: var(--mono); }
.file-date { font-size: 0.82rem; color: var(--text-secondary); }

.file-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #4f7ae8);
  color: #fff;
  box-shadow: 0 4px 12px rgba(91,138,245,0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(91,138,245,0.5); }

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); background: rgba(91,138,245,0.06); }

.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 0.4rem 0.7rem;
}
.btn-ghost:hover { background: var(--bg-card); border-color: var(--border); color: var(--text-primary); }

.btn-danger { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.25); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }

.btn-success { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.25); color: var(--success); }
.btn-success:hover { background: var(--success); color: #fff; }

.btn-sm { padding: 0.3rem 0.65rem; font-size: 0.76rem; border-radius: 6px; }
.btn-icon { padding: 0.45rem; border-radius: var(--radius-sm); }

/* ── Search results ── */
.search-result-path {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 3.5rem; margin-bottom: 1rem; opacity: 0.4; }
.empty-state h3 { font-size: 1rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.5rem; }
.empty-state p { font-size: 0.85rem; }

/* ── Badges / Pills ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
}
.badge-blue { background: rgba(91,138,245,0.12); color: var(--accent); border: 1px solid rgba(91,138,245,0.2); }
.badge-green { background: rgba(34,197,94,0.12); color: var(--success); border: 1px solid rgba(34,197,94,0.2); }
.badge-red { background: rgba(239,68,68,0.12); color: var(--danger); border: 1px solid rgba(239,68,68,0.2); }
.badge-yellow { background: rgba(245,158,11,0.12); color: var(--warning); border: 1px solid rgba(245,158,11,0.2); }

/* ── Tooltip ── */
.has-tooltip { position: relative; }
.tooltip-text {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 50;
}
.has-tooltip:hover .tooltip-text { opacity: 1; }

/* ── Toast ── */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  background: #1e293b;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideUp 0.3s ease;
  max-width: 320px;
}
.toast.success { border-color: rgba(34,197,94,0.3); }
.toast.success .toast-icon { color: var(--success); }
.toast.error { border-color: rgba(239,68,68,0.3); }
.toast.error .toast-icon { color: var(--danger); }

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

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 4rem;
}
.footer a { color: var(--accent); text-decoration: none; }

/* ── Loading skeleton ── */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .navbar { padding: 0 1rem; }
  .navbar-search { display: none; }
  .container { padding: 1rem; }
  .hero { padding: 2rem 1rem 1rem; }
  .categories-grid { grid-template-columns: 1fr; }
  .folder-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .files-table-header { display: none; }
  .file-row { grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 0.3rem; }
  .file-row .file-size,
  .file-row .file-date { display: none; }
  .stats-bar { gap: 1.5rem; }
}

/* =============================================
   ADDITIONS v2 — Sistema · Plans · Stars · FA
   ============================================= */

/* ── Stars canvas sits behind everything ── */
#stars-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.wrapper { position: relative; z-index: 1; }

/* ── Language toggle button ── */
#lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: .04em;
}
#lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Plan badges ── */
.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid;
  letter-spacing: .03em;
  white-space: nowrap;
  background: color-mix(in srgb, var(--pc, #5b8af5) 14%, transparent);
  border-color: color-mix(in srgb, var(--pc, #5b8af5) 35%, transparent);
  color: var(--pc, #5b8af5);
}
/* Fallback for browsers without color-mix */
.plan-badge { background: rgba(91,138,245,.12); border-color: rgba(91,138,245,.3); color: #5b8af5; }
/* Overrides via inline style */
.plan-badge[style*="--pc:#f59e0b"] { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.3); color: #f59e0b; }
.plan-badge[style*="--pc:#a855f7"] { background: rgba(168,85,247,.12); border-color: rgba(168,85,247,.3); color: #a855f7; }
.plan-badge[style*="--pc:#22c55e"] { background: rgba(34,197,94,.12);  border-color: rgba(34,197,94,.3);  color: #22c55e; }
.plan-badge[style*="--pc:#ef4444"] { background: rgba(239,68,68,.12);  border-color: rgba(239,68,68,.3);  color: #ef4444; }

/* ── Sistema badges ── */
.sistema-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
}
.sistema-badge.windows {
  background: rgba(0,120,212,.12);
  border: 1px solid rgba(0,120,212,.3);
  color: #38b4ff;
}
.sistema-badge.mac {
  background: rgba(160,160,160,.12);
  border: 1px solid rgba(160,160,160,.3);
  color: #c0c0c0;
}
.sistema-badge i { font-size: 11px; }

/* ── Folder card with plan/sistema ── */
.folder-card-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ── Sistema icons group (on folder cards) ── */
.sistema-icons-group {
  display: flex;
  gap: 5px;
}
.sistema-icon-pill {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 13px;
}
.sistema-icon-pill.windows { background: rgba(0,120,212,.15); border: 1px solid rgba(0,120,212,.3); color: #38b4ff; }
.sistema-icon-pill.mac     { background: rgba(160,160,160,.1); border: 1px solid rgba(160,160,160,.25); color: #c0c0c0; }

/* ── Plan cards (browse by plan section) ── */
.plans-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.plan-card {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}
.plan-card:hover {
  border-color: var(--border-glow);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.plan-card .plan-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 14px;
}
.plan-card .plan-count {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255,255,255,.06);
  padding: 1px 7px;
  border-radius: 50px;
}

/* ── File row sistema cell ── */
.file-row-sistema {
  display: flex;
  align-items: center;
}

/* ── Updated files table (5 cols when sistema active) ── */
.files-table-header.with-sistema {
  grid-template-columns: 1fr 110px 90px 100px 160px;
}
.file-row.with-sistema {
  grid-template-columns: 1fr 110px 90px 100px 160px;
}

/* ── Category card FA icon fallback ── */
.cat-fa-icon {
  font-size: 26px;
}

/* ── Plan browse page header ── */
.plan-page-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.plan-page-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}

/* ── Folder card: bigger and better ── */
.folder-card {
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.1rem 1.15rem;
  align-items: flex-start;
}
.folder-card-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}
.folder-card-top .folder-arrow {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 12px;
}

/* ── Responsive: hide sistema col on mobile ── */
@media (max-width: 640px) {
  .files-table-header.with-sistema { grid-template-columns: 1fr auto; }
  .file-row.with-sistema { grid-template-columns: 1fr auto; }
  .file-row.with-sistema .file-row-sistema,
  .file-row.with-sistema .file-size,
  .file-row.with-sistema .file-date { display: none; }
}
