/* Pure CSS app stylesheet — no Tailwind or build-time directives */

/* ─── Global CSS Variables ─── */
:root {
  --font-sans: Inter, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;

  /* Brand */
  --color-brand:       #2ED5DF;
  --color-brand-600:   #26c7bd;
  --color-brand-dark:  #1faea8;
  --color-brand-light: #e6fffe;
  --color-brand-muted: #dff7f6;

  /* Aliases used in product/admin views */
  --brand:        #2ED5DF;
  --brand-light:  #e6fffe;
  --brand-mid:    #26c7bd;
  --brand-dark:   #1faea8;
  --brand-muted:  #dff7f6;

  /* Payments */
  --yape:    #7f3fff;
  --paypal:  #0070ba;
  --color-yape:    #7f3fff;
  --color-paypal:  #0070ba;

  /* Backgrounds */
  --white:        #ffffff;
  --surface:      #f8fafc;
  --color-surface: #f6f9f9;

  /* Text */
  --text-dark:   #0f172a;
  --text-body:   #334155;
  --text-muted:  #64748b;
  --text-light:  #94a3b8;

  /* Borders */
  --border-light: #e2e8f0;
  --border:       #e2e8f0;

  /* Radius */
  --radius:    10px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow:    0 6px 18px rgba(6,18,20,0.08);
  --shadow-sm: 0 6px 18px rgba(6,18,20,0.06);
  --shadow-md: 0 12px 32px rgba(6,18,20,0.08);

  /* Error states */
  --error-bg:   #fee2e2;
  --error-bdr:  #fca5a5;
  --error-text: #dc2626;

  /* Navy (dark theme) */
  --color-navy:        #081018;
  --color-navy-mid:    #0b1620;
  --color-navy-card:   #0f1720;
  --color-navy-border: #16202a;

  /* Admin sidebar */
  --admin-sidebar-bg:     #0f172a;
  --admin-sidebar-hover:  #1e293b;
  --admin-sidebar-active: rgba(46,213,223,.12);
  --admin-sidebar-w:      210px;
}

/* Basic reset */
* { box-sizing: border-box; }
html,body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  color: #0f172a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
}

/* Container utility */
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Header / nav */
.header {
  background: linear-gradient(90deg, rgba(46,213,223,0.08), rgba(46,213,223,0.03));
  border-bottom: 1px solid rgba(15,27,46,0.04);
}
.header .nav {
  display:flex;
  align-items:center;
  gap:1rem;
  padding: 0.75rem 0;
}
.header .brand {
  font-weight:700;
  color:var(--color-brand-600);
}

/* Buttons */
.btn {
  display:inline-block;
  padding:0.5rem 0.9rem;
  border-radius:8px;
  border:0;
  background:var(--color-brand);
  color:#fff;
  text-decoration:none;
  cursor:pointer;
  font-weight:600;
}
.btn.secondary {
  background:transparent;
  color:var(--color-brand-600);
  border:1px solid rgba(46,213,223,0.12);
}
.btn.ghost {
  background:transparent;
  color:inherit;
}

/* Forms */
.form-field { margin-bottom:0.75rem; }
.input, textarea, select { 
  width:100%;
  padding:0.6rem 0.75rem;
  border-radius:8px;
  border:1px solid #e6eef9;
  background:#fff;
  font-size:0.95rem;
  color:inherit;
}
textarea { min-height:120px; resize:vertical; }
.label { display:block; margin-bottom:0.35rem; font-size:0.9rem; color:#334155; }

/* Search */
.search { display:flex; gap:0.5rem; align-items:center; }
.search input { flex:1; }

/* Cards/grid for marketplace */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.project-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(15,27,46,0.04);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display:flex;
  flex-direction:column;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.project-card .thumb { width:100%; height:160px; object-fit:cover; display:block; }
.project-card .card-body { padding:0.9rem 1rem; flex:1; display:flex; flex-direction:column; }
.project-card .title { font-weight:700; font-size:1.02rem; margin:0 0 0.35rem; color:#071233; }
.project-card .meta { font-size:0.85rem; color:#475569; margin-bottom:0.5rem; }
.project-card .desc { font-size:0.94rem; color:#334155; margin-top:auto; }
.project-card .footer { padding:0.75rem 1rem; border-top:1px solid rgba(15,27,46,0.03); display:flex; gap:0.5rem; align-items:center; justify-content:space-between; }
.price { font-weight:700; color:var(--color-brand-600); }

/* Badges / tags */
.badge { display:inline-block; padding:0.25rem 0.5rem; background:var(--color-brand-muted); color:var(--color-brand-600); border-radius:999px; font-size:0.78rem; }
.tag { display:inline-block; margin-right:0.4rem; margin-bottom:0.35rem; padding:0.22rem 0.45rem; background:#eef2ff; color:#4338ca; border-radius:6px; font-size:0.78rem; }

/* Thumbnail and gallery */
.thumbnail { width:140px; height:90px; object-fit:cover; border-radius:6px; border:1px solid rgba(15,27,46,0.04); }
.screenshots { display:flex; gap:0.5rem; flex-wrap:wrap; }
.screenshots img { width:180px; height:110px; object-fit:cover; border-radius:8px; }

/* Admin layout */
.admin-layout { display:flex; min-height:100vh; }
.admin-sidebar { width:220px; background:var(--color-navy-card); color:#cbd5e1; padding:1rem; }
.admin-sidebar h3 { color:#fff; margin-top:0; }
.admin-sidebar-nav { margin-top:1rem; display:flex; flex-direction:column; gap:0.25rem; }
.admin-sidebar-nav a { color:inherit; padding:0.5rem; border-radius:8px; text-decoration:none; display:block; }
.admin-main { flex:1; padding:1.25rem; background:#f7f9fc; }
.admin-card { background: #fff; border-radius:8px; padding:1rem; border:1px solid rgba(15,27,46,0.03); }

/* Login */
.auth-center { display:flex; align-items:center; justify-content:center; min-height:70vh; }
.auth-card { width:420px; background:#fff; padding:1.25rem; border-radius:10px; box-shadow:var(--shadow-md); }

/* Responsive */
/* ── Admin topbar menu button: hidden on desktop, shown only on mobile ── */
.admin-topbar__menu { display: none; }

/* ── Admin topbar: always styled (desktop + mobile) ── */
.admin-topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.75rem;
  border-bottom: 1px solid var(--border-light);
  background: #fff;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.admin-topbar__eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--brand);
  text-transform: uppercase;
  margin: 0;
}
.admin-topbar__title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.2;
}
.admin-topbar__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ── Overlay: globally hidden & fixed so it NEVER affects grid layout ── */
.admin-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 50;
  opacity: 0;
  transition: opacity 220ms ease;
}
.admin-sidebar-overlay.active { display: block; opacity: 1; }

@media (max-width:900px) {
  /* Menu button visible on small screens */
  .admin-topbar__menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(15,23,42,.12);
    border-radius: 8px;
    font-size: 1.15rem;
    cursor: pointer;
    flex-shrink: 0;
  }

  /* Topbar compact on mobile */
  .admin-topbar { padding: 0.6rem 1rem; }
  .admin-topbar__title { font-size: 1.1rem; }

  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}


/* Scrollbar */
::-webkit-scrollbar { width:8px; height:8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(15,27,46,0.12); border-radius:999px; }

/* Small utilities kept intentionally */
.line-clamp-2 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.hidden { display:none !important; }
.flex { display:flex; }
.flex-col { display:flex; flex-direction:column; }
.center { display:flex; align-items:center; justify-content:center; }
.mt-1 { margin-top:0.25rem; }
.mt-2 { margin-top:0.5rem; }
.mb-1 { margin-bottom:0.25rem; }
.gap-1 { gap:0.5rem; }

/* Code mockup colors (lightweight) */
.code-kw { color:#2563eb; }
.code-fn { color:#c084fc; }
.code-str { color:#10b981; }
.code-cm { color:#64748b; }
.code-op { color:#fb7185; }
.code-var { color:#7c3aed; }

/* Hero image (replaced the code mockup) */
.hero__code-img {
  width: 100%;
  max-height: 480px;
  min-height: 300px;
  object-fit: cover;
  object-position: center right;
  border-radius: 0;
  box-shadow: none;
  display: block;
}

/* End of compatibility/utility section */

/* -------------------------------------------------------------------------
   Compatibility utility classes (Tailwind-like) reimplemented in pure CSS
   These provide equivalents for commonly used classes in the Blade views so
   the project no longer depends on Tailwind. Add more as needed.
   ------------------------------------------------------------------------- */

/* Layout */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.gap-4 { gap: 1rem; }
.gap-3 { gap: 0.75rem; }
.gap-2 { gap: 0.5rem; }
.gap-6 { gap: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-4 { padding: 1rem; }
.p-3 { padding: 0.75rem; }
.p-2 { padding: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.rounded-lg { border-radius: 8px; }
.rounded-xl { border-radius: 12px; }
.rounded-full { border-radius: 9999px; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.hidden { display: none !important; }
.inline { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.flex-col { display:flex; flex-direction:column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.shrink-0 { flex-shrink: 0; }
.cursor-pointer { cursor: pointer; }
.transition-colors { transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
.transition-all { transition: all .18s ease; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.w-12 { width: 3rem; }
.h-10 { height: 2.5rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-14 { width: 3.5rem; }

/* Text */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.06em; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-800 { color: #0f172a; }
.text-slate-900 { color: #071233; }
.text-white { color: #ffffff; }

/* Backgrounds and borders */
.bg-white { background: #fff; }
.bg-slate-50 { background: #f8fafc; }
.bg-slate-100 { background: #f1f5f9; }
.bg-brand { background: var(--color-brand); }
.bg-brand-dark { background: var(--color-brand-dark); }
.bg-brand\/10 { background: rgba(46,213,223,0.10); }
.border { border-width: 1px; border-style: solid; }
.border-slate-200 { border-color: #e6eef9; }
.border-red-200 { border-color: #fecaca; }
.border-slate-100 { border-color: #f1f5f9; }
.rounded-lg { border-radius: 8px; }

/* Buttons and utility */
.btn { display:inline-block; padding:0.5rem 0.9rem; border-radius:8px; border:0; background:var(--color-brand); color:#fff; text-decoration:none; cursor:pointer; font-weight:600; }
.btn.secondary { background:transparent; color:var(--color-brand-600); border:1px solid rgba(46,213,223,0.12); }
.btn.ghost { background:transparent; color:inherit; }
.text-brand { color: var(--color-brand-600); }
.hover\:text-brand:hover { color: var(--color-brand-600); }
.hover\:bg-brand-dark:hover { background: var(--color-brand-dark); }
.hover\:border-brand:hover { border-color: var(--color-brand-600); }
.hover\:bg-red-50:hover { background: #fff1f2; }
.hover\:border-brand { transition: border-color .18s ease; }

/* Badges */
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.rounded-full { border-radius: 9999px; }

/* Utilities for table responsive visibility */
.hidden { display:none !important; }
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .md\:table-cell { display: table-cell !important; }
  .md\:block { display: block !important; }
  .md\:flex { display: flex !important; }
}
@media (min-width: 1024px) {
  .lg\:table-cell { display: table-cell !important; }
}

/* Hover/background helpers with opacity */
.hover\:bg-slate-50\/50:hover { background: rgba(248,250,252,0.5); }

/* Borders & dividers */
.divide-y { border-top: 0; }
.divide-y > * + * { border-top: 1px solid #f8fafc; }
.divide-slate-50 > * + * { border-top-color: #f8fafc; }

/* Small helpers used in views */
.text-\[11px\] { font-size: 11px; }
.bg-brand\/10 { background: rgba(46,213,223,0.10); }
.text-brand { color: var(--color-brand-600); }

/* focus ring (approximation) */
.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 4px rgba(46,213,223,0.18); }
.focus\:border-brand:focus { border-color: var(--color-brand-600); }

/* utility for small text badges */
.text-xs { font-size: 0.75rem; }

/* ensure table full width */
table.w-full { width: 100%; }

/* â”€â”€ Admin table toolbar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.tb {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .65rem 1rem;
    border-bottom: 1px solid var(--border-light);
    background: #f8fafc;
    flex-wrap: wrap;
}

/* search form */
.tb__form {
    flex: 1;
    min-width: 0;
}
.tb__field {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 420px;
    background: #fff;
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    transition: border-color .18s, box-shadow .18s;
    overflow: hidden;
}
.tb__field:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(46,213,223,.13);
}
.tb__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 .55rem 0 .75rem;
    color: #94a3b8;
    pointer-events: none;
}
.tb__icon svg {
    width: 16px;
    height: 16px;
    display: block;
}
.tb__input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: .55rem 0;
    font-size: .875rem;
    color: var(--text-dark);
    min-width: 0;
}
.tb__input::placeholder { color: #b0bec5; }

/* clear button */
.tb__clear {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 .6rem;
    color: #94a3b8;
    text-decoration: none;
    transition: color .15s;
    flex-shrink: 0;
}
.tb__clear:hover { color: #ef4444; }
.tb__clear svg { width: 16px; height: 16px; display: block; }

/* spinner */
.tb__spinner {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 .6rem;
    flex-shrink: 0;
    color: var(--brand);
    animation: tbSpin .7s linear infinite;
}
.tb__spinner svg { width: 15px; height: 15px; display: block; }
.tb__spinner.active { display: flex; }
@keyframes tbSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* per-page selector */
.tb__perpage {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .8rem;
    color: #64748b;
    white-space: nowrap;
    flex-shrink: 0;
}
.tb__perpage select {
    padding: .4rem .5rem;
    border-radius: 7px;
    border: 1.5px solid var(--border-light);
    font-size: .8rem;
    background: #fff;
    color: var(--text-dark);
    cursor: pointer;
    font-weight: 600;
    transition: border-color .15s;
}
.tb__perpage select:focus {
    border-color: var(--brand);
    outline: none;
}

/* keep deprecated classes for back-compat */
.icon-sm { width:14px !important; height:14px !important; display:inline-block; }
.table-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.75rem; padding:.75rem 1rem; border-bottom:1px solid var(--border-light); background:var(--surface); }
/* â”€â”€ end admin table toolbar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ADMIN PANEL â€” complete component stylesheet
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Admin CSS Variables â”€â”€ */
:root {
    --brand:        #2ED5DF;
    --brand-light:  #e6fffe;
    --brand-mid:    #26c7bd;
    --yape:         #7f3fff;
    --paypal:       #0070ba;

    --text-dark:    #0f172a;
    --text-muted:   #64748b;
    --surface:      #f8fafc;
    --border-light: #e2e8f0;
    --font-mono:    'Cascadia Code', 'Fira Code', 'Consolas', monospace;

    --admin-sidebar-bg:    #0f172a;
    --admin-sidebar-hover: #1e293b;
    --admin-sidebar-active: rgba(46,213,223,.12);
    --admin-sidebar-w:     210px;
}

/* â”€â”€ Layout â”€â”€ */
.admin-layout {
    display: grid;
    grid-template-columns: var(--admin-sidebar-w) 1fr;
    min-height: 100vh;
    background: var(--surface);
}
.admin-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}
.admin-content {
    flex: 1;
    padding: 1.5rem 1.75rem 2.5rem;
}

/* â”€â”€ Sidebar â”€â”€ */
.admin-sidebar {
    background: var(--admin-sidebar-bg);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}
.admin-sidebar__brand {
    padding: 1.25rem 1rem .75rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.admin-sidebar__brand-link {
    display: flex;
    align-items: center;
    gap: .45rem;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    letter-spacing: -.01em;
}
.admin-sidebar__brand-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    flex-shrink: 0;
}
.admin-sidebar__sub {
    font-size: .72rem;
    color: #475569;
    margin: .3rem 0 0 1.25rem;
    font-weight: 500;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.admin-sidebar__nav {
    padding: .75rem .6rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.admin-sidebar__foot {
    padding: .75rem 1rem;
    border-top: 1px solid rgba(255,255,255,.06);
}
.admin-sidebar__user {
    font-size: .75rem;
    color: #475569;
    margin: 0 0 .5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* â”€â”€ Nav links â”€â”€ */
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .75rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    color: #94a3b8;
    transition: background .15s, color .15s;
    white-space: nowrap;
    overflow: hidden;
}
.admin-nav-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: .75;
}
.admin-nav-link:hover {
    background: var(--admin-sidebar-hover);
    color: #e2e8f0;
}
.admin-nav-link:hover svg { opacity: 1; }
.admin-nav-link.active {
    background: var(--admin-sidebar-active);
    color: var(--brand);
    font-weight: 600;
}
.admin-nav-link.active svg { opacity: 1; }

/* â”€â”€ Logout button â”€â”€ */
.admin-logout {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    padding: .5rem .6rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 7px;
    color: #64748b;
    font-size: .8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.admin-logout svg { width: 14px; height: 14px; flex-shrink: 0; }
.admin-logout:hover { background: rgba(239,68,68,.12); color: #fca5a5; border-color: rgba(239,68,68,.25); }

/* â”€â”€ Page header â”€â”€ */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem 1.75rem .75rem;
    border-bottom: 1px solid var(--border-light);
    background: #fff;
}
.page-header__eyebrow {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--brand);
    text-transform: uppercase;
    margin-bottom: .2rem;
}
.page-header__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
}
.page-header__actions {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
}

/* â”€â”€ Buttons â”€â”€ */
/* Primary: global â€” funciona en sitio pÃºblico y admin */
.btn--primary {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .55rem 1rem;
    background: var(--brand);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, transform .1s;
    white-space: nowrap;
}
.btn--primary:hover { background: var(--brand-mid); transform: translateY(-1px); }

/* Secondary: ghost/outline global (para fondos oscuros del sitio pÃºblico) */
.btn--secondary {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .5rem .9rem;
    background: transparent;
    color: #fff !important;
    border: 1.5px solid rgba(255,255,255,.25);
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: border-color .15s, background .15s;
    white-space: nowrap;
}
.btn--secondary:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* Secondary en el panel admin: fondo blanco con borde (fondos claros) */
.admin-layout .btn--secondary {
    background: #fff;
    color: var(--text-dark) !important;
    border-color: var(--border-light);
}
.admin-layout .btn--secondary:hover { border-color: var(--brand); background: var(--brand-light); }

/* Danger: solo admin */
.admin-layout .btn--danger {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .5rem .9rem;
    background: #fff;
    color: #ef4444 !important;
    border: 1.5px solid #fecaca;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, border-color .15s;
    white-space: nowrap;
}
.admin-layout .btn--danger:hover { background: #fef2f2; border-color: #ef4444; }
.btn--sm { padding: .3rem .65rem; font-size: .8rem; }

/* â”€â”€ Cards â”€â”€ */
.card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1.1rem;
    border-bottom: 1px solid var(--border-light);
    background: #fff;
    flex-wrap: wrap;
    gap: .5rem;
}
.card__title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-dark);
}
.card__accent {
    display: inline-block;
    width: 3px;
    height: 16px;
    background: var(--brand);
    border-radius: 99px;
}
.card__body {
    padding: 1.1rem;
}

/* â”€â”€ Stat grid / cards â”€â”€ */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}
.stat-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.stat-card__label {
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 0 0 .4rem;
}
.stat-card__value {
    font-size: 1.65rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    color: var(--text-dark);
}
.stat-card__value--brand  { color: var(--brand-mid); }
.stat-card__value--green  { color: #10b981; }
.stat-card__value--amber  { color: #f59e0b; }
.stat-card__value--red    { color: #ef4444; }

/* â”€â”€ Data table â”€â”€ */
.table-wrap {
    width: 100%;
    overflow-x: auto;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
    color: var(--text-dark);
}
.data-table thead {
    background: #f8fafc;
    border-bottom: 2px solid var(--border-light);
}
.data-table th {
    padding: .65rem 1rem;
    text-align: left;
    font-size: .75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
}
.data-table th.right,
.data-table td.right { text-align: right; }
.data-table th.center,
.data-table td.center { text-align: center; }
.data-table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: background .12s;
}
.data-table tbody tr:last-child { border-bottom: 0; }
.data-table tbody tr:hover { background: #f8fafc; }
.data-table td {
    padding: .75rem 1rem;
    vertical-align: middle;
}

/* â”€â”€ Thumbnail in table â”€â”€ */
.data-table .table-thumb {
    width: 52px;
    height: 38px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    display: block;
    flex-shrink: 0;
}
.data-table .table-thumb-placeholder {
    width: 52px;
    height: 38px;
    background: var(--brand-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* â”€â”€ Chips / badges â”€â”€ */
.chip {
    display: inline-block;
    padding: .18rem .55rem;
    border-radius: 99px;
    font-size: .75rem;
    font-weight: 600;
    background: #f1f5f9;
    color: var(--text-muted);
    white-space: nowrap;
}
.chip--active   { background: #dcfce7; color: #15803d; }
.chip--hidden   { background: #fee2e2; color: #b91c1c; }
.chip--featured { background: #fef9c3; color: #a16207; }

/* â”€â”€ Forms â”€â”€ */
.form-group {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-label {
    font-size: .825rem;
    font-weight: 600;
    color: var(--text-dark);
}
.form-label sup { color: #ef4444; }
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: .55rem .75rem;
    border-radius: 8px;
    border: 1.5px solid var(--border-light);
    font-size: .9rem;
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(46,213,223,.13);
}
.form-textarea { min-height: 100px; resize: vertical; }
.form-hint {
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: .15rem;
}
.form-error {
    font-size: .78rem;
    color: #ef4444;
    margin-top: .15rem;
}

/* â”€â”€ Alerts â”€â”€ */
.alert {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .75rem 1rem;
    border-radius: 10px;
    font-size: .875rem;
    font-weight: 500;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; }
.alert--success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.alert--error   { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.alert--warning { background: #fef9c3; color: #a16207; border: 1px solid #fef08a; }
.alert--info    { background: var(--brand-light); color: #0369a1; border: 1px solid #bae6fd; }

/* â”€â”€ Category list (sidebar panel) â”€â”€ */
.cat-list { display: flex; flex-direction: column; gap: .4rem; }
.cat-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .6rem .75rem;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    gap: .5rem;
}
.cat-list__info { display: flex; align-items: center; gap: .6rem; }
.cat-list__emoji { font-size: 1.2rem; line-height: 1; }
.cat-list__name { font-size: .875rem; font-weight: 600; color: var(--text-dark); }
.cat-list__meta { font-size: .75rem; color: var(--text-muted); margin-top: .1rem; }
.cat-list__dot  { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* â”€â”€ Pagination (override Laravel default) â”€â”€ */
nav[aria-label="Pagination Navigation"],
nav[role="navigation"] {
    display: flex;
    align-items: center;
    gap: .3rem;
}
nav[aria-label="Pagination Navigation"] span,
nav[aria-label="Pagination Navigation"] a,
nav[role="navigation"] span,
nav[role="navigation"] a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 .5rem;
    border-radius: 7px;
    font-size: .82rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    background: #fff;
    transition: all .13s;
}
nav[aria-label="Pagination Navigation"] a:hover,
nav[role="navigation"] a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
nav[aria-label="Pagination Navigation"] span[aria-current],
nav[role="navigation"] span[aria-current] { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 700; }
nav[aria-label="Pagination Navigation"] span[aria-disabled],
nav[role="navigation"] span[aria-disabled] { opacity: .4; cursor: not-allowed; }

/* ── Responsive ── */
@media (max-width: 900px) {
    /* Override display:grid from full admin layout — must come AFTER main admin CSS */
    .admin-layout { display: block; grid-template-columns: none; }

    /* Override position:sticky and height:100vh from full admin sidebar */
    .admin-sidebar {
        display: block;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        height: auto;
        width: var(--admin-sidebar-w);
        max-width: 78%;
        transform: translateX(-110%);
        transition: transform 220ms ease;
        z-index: 60;
        background: var(--color-navy-card);
        padding: 1rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-sidebar.admin-sidebar--open {
        transform: translateX(0);
        box-shadow: 0 12px 40px rgba(2,6,23,0.45);
    }

    /* Admin main: remove overflow:hidden so content isn't clipped */
    .admin-main { overflow: visible; min-height: 0; }

    .form-row { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   end ADMIN PANEL stylesheet
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PUBLIC SITE â€” complete stylesheet
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Layout wrapper â”€â”€ */
.wrap {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* â”€â”€ Site nav â”€â”€ */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.site-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 62px;
}
.site-nav__brand {
    display: flex;
    align-items: center;
    gap: .55rem;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    color: #0f172a;
    white-space: nowrap;
}
.site-nav__logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
}
.site-nav__links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-nav__links a {
    font-size: .875rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    transition: color .15s;
}
.site-nav__links a:hover { color: #2ED5DF; }
.site-nav__cta {
    display: flex;
    align-items: center;
    gap: .6rem;
}

/* public btn variants */
.btn--lg { padding: .7rem 1.35rem; font-size: .95rem; }
.btn--paypal { background: #0070ba; color: #fff !important; border: none; }
.btn--paypal:hover { background: #005ea6; }
.btn--yape { background: #7f3fff; color: #fff !important; border: none; }
.btn--yape:hover { background: #6d2fe0; }

/* Hero secondary override: dark border on light bg */
.hero .btn--secondary {
    background: transparent;
    color: #0f172a !important;
    border: 1.5px solid rgba(15,23,42,.18);
}
.hero .btn--secondary:hover { background: rgba(15,23,42,.05); border-color: rgba(15,23,42,.35); }

/* â”€â”€ Hero â”€â”€ */
.hero {
    background: linear-gradient(135deg, #f0fdfe 0%, #e6fffe 45%, #f8fafc 100%);
    padding: 5rem 0 4.5rem;
    overflow: hidden;
}
.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* force 50 / 50 */
    gap: 3rem;
    align-items: stretch; /* let columns match heights */
}

/* Ensure left column content vertically centers for visual balance */
.hero__grid > div:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* On small screens stack columns */
@media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__grid > div:first-child { padding: 0 1rem 1rem; }
}
.hero__eyebrow {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .825rem;
    font-weight: 700;
    color: #0e7490;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin: 0 0 1rem;
}
.hero__eyebrow span {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2ED5DF;
}
.hero__title {
    font-size: 2.9rem;
    font-weight: 900;
    line-height: 1.1;
    color: #0f172a;
    margin: 0 0 1.1rem;
    letter-spacing: -.02em;
}
.hero__title em {
    font-style: italic;
    background: linear-gradient(90deg, #2ED5DF, #0e7490);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero__subtitle {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.65;
    margin: 0 0 1.75rem;
    max-width: none; /* allow subtitle to use full left column for balance */
}
.hero__actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.hero__techs {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
.hero__tech-chip {
    padding: .25rem .6rem;
    border-radius: 6px;
    background: #fff;
    color: #475569;
    font-size: .78rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}
.hero__code {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.hero__badge {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-top: 1rem;
    padding: .75rem 1rem;
    background: #fff;
    border: 1px solid rgba(46,213,223,.25);
    border-radius: 10px;
    font-size: .875rem;
    color: #475569;
    box-shadow: 0 2px 8px rgba(46,213,223,.1);
}
.hero__badge-emoji { font-size: 1.2rem; }

/* â”€â”€ Code window â”€â”€ */
.code-window {
    background: #0d1b2a;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
    font-size: .875rem;
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
}
.code-window__bar {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .65rem 1rem;
    background: rgba(255,255,255,.03);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.code-dot { width: 11px; height: 11px; border-radius: 50%; }
.code-dot--red    { background: #ff5f57; }
.code-dot--yellow { background: #febc2e; }
.code-dot--green  { background: #28c840; }
.code-window__filename {
    margin-left: .5rem;
    font-size: .78rem;
    color: #64748b;
    font-family: var(--font-sans, sans-serif);
}
.code-window__body {
    padding: 1.25rem 1.5rem;
    line-height: 1.85;
    color: #e2e8f0;
}

/* â”€â”€ Features strip â”€â”€ */
.features-strip {
    background: #fff;
    padding: 2rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.features-strip__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.features-strip__item { display: flex; align-items: flex-start; gap: .75rem; }
.features-strip__icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.features-strip__title { font-size: .9rem; font-weight: 700; color: #0f172a; margin: 0 0 .2rem; }
.features-strip__desc  { font-size: .8rem; color: #64748b; margin: 0; line-height: 1.5; }

/* â”€â”€ Stats bar (LIGHT) â”€â”€ */
.stats-bar {
    background: #fff;
    padding: 1.75rem 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}
.stats-bar__grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}
.stats-bar__item { text-align: center; padding: 0 2.5rem; }
.stats-bar__num   { font-size: 2rem; font-weight: 900; color: #2ED5DF; line-height: 1; }
.stats-bar__label { font-size: .78rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .06em; margin-top: .3rem; }
.stats-bar__sep   { width: 1px; height: 40px; background: #f1f5f9; }

/* â”€â”€ Section helpers â”€â”€ */
.section-eyebrow {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    font-weight: 700;
    color: #0e7490;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin: 0 0 .6rem;
}
.section-eyebrow span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #2ED5DF; }
.section-title    { font-size: 1.9rem; font-weight: 800; color: #0f172a; margin: 0 0 .5rem; line-height: 1.2; }
.section-subtitle { font-size: 1rem; color: #64748b; margin: 0; line-height: 1.6; }
.text-center { text-align: center; }

/* â”€â”€ Catalog â”€â”€ */
.catalog__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.catalog__count { font-size: .875rem; color: #64748b; margin: 0; }
.catalog__grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.catalog__footer { text-align: center; margin-top: 2.5rem; }
.catalog__empty {
    text-align: center;
    padding: 3rem 1rem;
    background: #fff;
    border-radius: 12px;
    border: 1px dashed #e2e8f0;
}
.catalog__empty-icon  { font-size: 2.5rem; margin-bottom: .5rem; }
.catalog__empty-title { font-size: 1.1rem; font-weight: 700; color: #0f172a; margin: 0 0 .4rem; }
.catalog__empty-text  { font-size: .875rem; color: #64748b; margin: 0; }

/* ── Pagination ── */
.pagination-btn {
    padding: .55rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--brand);
    background: var(--brand);
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, opacity .15s ease;
}
.pagination-btn:hover:not(:disabled) {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}
.pagination-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* â”€â”€ Filter bar â”€â”€ */
.catalog__filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: .75rem 1rem;
    margin-bottom: 1.5rem;
}
.filter-group { display: flex; flex-direction: column; gap: .15rem; }
.filter-group__label { font-size: .72rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; }
.filter-search { position: relative; display: flex; align-items: center; }
.filter-search svg { position: absolute; left: .55rem; width: 14px; height: 14px; color: #94a3b8; pointer-events: none; }
.filter-search input {
    padding: .35rem .6rem .35rem 1.75rem;
    border-radius: 7px; border: 1.5px solid #e2e8f0;
    font-size: .85rem; background: #fff; color: #0f172a; outline: none;
    transition: border-color .15s; width: 100%;
}
.filter-search input:focus { border-color: #2ED5DF; }
.filter-group select {
    padding: .35rem .6rem; border-radius: 7px; border: 1.5px solid #e2e8f0;
    font-size: .85rem; background: #fff; color: #0f172a; outline: none; cursor: pointer;
    transition: border-color .15s;
}
.filter-group select:focus { border-color: #2ED5DF; }
.filter-divider { width: 1px; height: 30px; background: #f1f5f9; margin: 0 .15rem; }

/* â”€â”€ Product card â”€â”€ */
.project-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    cursor: pointer;
}
.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(46,213,223,.13);
    border-color: rgba(46,213,223,.25);
}
.project-card__thumb {
    position: relative; height: 168px;
    background: linear-gradient(135deg, #e6fffe, #f0fdfe); overflow: hidden;
}
.project-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-card__placeholder {
    padding: 1rem 1.25rem;
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    font-size: .8rem; line-height: 1.8; color: #334155;
    height: 100%; display: flex; flex-direction: column; justify-content: center;
}
.project-card__cat {
    position: absolute; top: .6rem; left: .6rem;
    padding: .22rem .6rem; border-radius: 99px;
    font-size: .72rem; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.project-card__sale-badge {
    position: absolute; top: .6rem; right: .6rem;
    padding: .22rem .6rem; border-radius: 99px;
    font-size: .72rem; font-weight: 700; background: #ef4444; color: #fff;
}
.project-card__featured {
    position: absolute; top: .6rem; right: .6rem;
    padding: .22rem .6rem; border-radius: 99px;
    font-size: .72rem; font-weight: 700; background: #2ED5DF; color: #fff;
}
.project-card__body { padding: .9rem 1rem; flex: 1; display: flex; flex-direction: column; gap: .35rem; }
.project-card__code  { font-family: monospace; font-size: .72rem; color: #94a3b8; margin: 0; }
.project-card__title { font-size: .95rem; font-weight: 700; color: #0f172a; margin: 0; line-height: 1.3; }
.project-card__desc  { font-size: .82rem; color: #64748b; line-height: 1.5; flex: 1; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.project-card__tags  { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .2rem; }
.chip--lang     { background: #e6fffe; color: #0891b2; }
.chip--platform { background: #f0f9ff; color: #0369a1; }
.project-card__footer {
    padding: .7rem 1rem .85rem;
    border-top: 1px solid #f1f5f9;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
}
.project-card__price          { font-size: 1.1rem; font-weight: 800; color: #2ED5DF; }
.project-card__price--sale    { color: #ef4444; }
.project-card__price-original { font-size: .8rem; text-decoration: line-through; color: #94a3b8; margin-right: .25rem; }
.project-card__price-cur      { font-size: .72rem; color: #94a3b8; font-weight: 600; margin-left: .1rem; }
.project-card__btns { display: flex; gap: .35rem; flex-wrap: wrap; }
/* Botones dentro de tarjetas (fondo blanco) */
.project-card .btn--secondary,
.project-card__btns .btn--secondary {
    background: #f8fafc;
    color: #0f172a !important;
    border: 1.5px solid #e2e8f0;
}
.project-card .btn--secondary:hover,
.project-card__btns .btn--secondary:hover { border-color: #2ED5DF; background: #e6fffe; }

/* ── Store cards (tienda completa) ── */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}
.store-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    text-decoration: none;
    color: inherit;
}
.store-card:hover { transform: translateY(-5px); box-shadow: 0 8px 24px rgba(46,213,223,.15); }
.store-card__thumb {
    position: relative;
    height: 160px;
    background: linear-gradient(135deg, #f0fdfe, #e6fffe);
    overflow: hidden;
}
.store-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-card__thumb-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
}
.store-card__badge {
    position: absolute; top: .5rem; left: .5rem;
    padding: .2rem .5rem; border-radius: 6px;
    font-size: .7rem; font-weight: 800;
}
.store-card__badge--sale     { background: #ef4444; color: #fff; }
.store-card__badge--featured { background: var(--brand); color: #fff; }
.store-card__type {
    position: absolute; bottom: .4rem; right: .4rem;
    background: rgba(15,23,42,.7); color: #fff;
    padding: .2rem .45rem; border-radius: 5px; font-size: .75rem;
}
.store-card__body { padding: .8rem 1rem; flex: 1; display: flex; flex-direction: column; gap: .25rem; }
.store-card__cat  { font-size: .72rem; color: var(--brand); font-weight: 700; }
.store-card__name { font-size: .92rem; font-weight: 700; color: var(--text-dark); margin: 0; line-height: 1.35; }
.store-card__desc {
    font-size: .8rem; color: var(--text-muted); line-height: 1.45; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.store-card__langs { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .2rem; }
.store-card__foot {
    padding: .6rem 1rem .8rem;
    display: flex; align-items: center; justify-content: space-between;
    border-top: 1px solid var(--border-light);
}
.store-card__price { font-size: 1rem; font-weight: 800; color: var(--brand); }
.store-card__btn   {
    background: var(--brand-light); color: var(--brand);
    padding: .28rem .6rem; border-radius: 6px;
    font-size: .78rem; font-weight: 700;
}

/* ── Course cards (home + store) ── */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.course-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    cursor: pointer;
}
.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(46,213,223,.13);
    border-color: rgba(46,213,223,.25);
}
.course-card__thumb {
    position: relative; height: 180px;
    background: linear-gradient(135deg, #ede9fe, #f5f3ff); overflow: hidden;
}
.course-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-card__thumb-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
}
.course-card__level {
    position: absolute; top: .6rem; left: .6rem;
    background: rgba(15,23,42,.7); color: #fff;
    padding: .22rem .6rem; border-radius: 99px;
    font-size: .72rem; font-weight: 700;
}
.course-card__sale {
    position: absolute; top: .6rem; right: .6rem;
    background: #ef4444; color: #fff;
    padding: .22rem .6rem; border-radius: 99px;
    font-size: .72rem; font-weight: 700;
}
.course-card__body  { padding: .9rem 1rem; flex: 1; display: flex; flex-direction: column; gap: .3rem; }
.course-card__meta  { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .2rem; }
.course-card__meta-item {
    display: inline-flex; align-items: center; gap: .25rem;
    font-size: .75rem; color: var(--text-muted);
}
.course-card__meta-item svg { width: 12px; height: 12px; flex-shrink: 0; }
.course-card__title      { font-size: .95rem; font-weight: 700; color: #0f172a; margin: 0; line-height: 1.3; }
.course-card__instructor { font-size: .8rem; color: var(--text-muted); margin: 0; }
.course-card__desc {
    font-size: .82rem; color: #64748b; line-height: 1.5; flex: 1; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.course-card__footer {
    padding: .7rem 1rem .85rem;
    border-top: 1px solid #f1f5f9;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
}
.course-card__price          { font-size: 1.1rem; font-weight: 800; color: #7f3fff; }
.course-card__price-original { font-size: .8rem; text-decoration: line-through; color: #94a3b8; margin-right: .25rem; }
.course-card__btns { display: flex; gap: .35rem; flex-wrap: wrap; }

/* ── Complete System cards (Sistemas de Información) ── */
.system-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.system-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(46,213,223,.13);
    border-color: rgba(46,213,223,.25);
}
.system-card__thumb {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    overflow: hidden;
}
.system-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.system-card__placeholder {
    padding: 1rem 1.25rem;
    font-family: var(--font-mono);
    font-size: .78rem; line-height: 1.9; color: #94a3b8;
    height: 100%; display: flex; flex-direction: column; justify-content: center;
}
.system-card__badge-wrap {
    position: absolute; top: .6rem; right: .6rem;
    display: flex; flex-direction: column; align-items: flex-end; gap: .3rem;
}
.system-card__type-badge {
    background: rgba(46,213,223,.18);
    color: #2ED5DF;
    border: 1px solid rgba(46,213,223,.3);
    padding: .22rem .6rem; border-radius: 99px;
    font-size: .7rem; font-weight: 700; backdrop-filter: blur(4px);
}
.system-card__body  { padding: .9rem 1rem; flex: 1; display: flex; flex-direction: column; gap: .35rem; }
.system-card__code  { font-family: monospace; font-size: .72rem; color: #94a3b8; margin: 0; }
.system-card__title { font-size: .95rem; font-weight: 700; color: #0f172a; margin: 0; line-height: 1.3; }
.system-card__desc  {
    font-size: .82rem; color: #64748b; line-height: 1.5; flex: 1; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.system-card__tags  { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .2rem; }
.system-card__contact {
    display: flex; align-items: center; gap: .4rem;
    padding: .5rem 1rem;
    font-size: .78rem; color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    background: var(--surface);
}
.system-card__contact svg { width: 13px; height: 13px; flex-shrink: 0; }
.system-card__footer {
    padding: .7rem 1rem .85rem;
    border-top: 1px solid #f1f5f9;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
}
.system-card__price     { font-size: 1.1rem; font-weight: 800; color: #2ED5DF; }
.system-card__price-cur { font-size: .72rem; color: #94a3b8; font-weight: 600; margin-left: .1rem; }
.system-card__btns { display: flex; gap: .35rem; flex-wrap: wrap; }

/* ── How it works ── */
.how { background: #f8fafc; padding: 4.5rem 0; }
.how__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.how__step {
    padding: 1.5rem; border: 1px solid #f1f5f9; border-radius: 14px;
    position: relative; overflow: hidden; background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.how__step::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 3px; height: 100%;
    background: linear-gradient(180deg, #2ED5DF, #26c7bd);
}
.how__step-num   { font-size: 2.5rem; font-weight: 900; color: rgba(46,213,223,.25); line-height: 1; margin-bottom: .75rem; font-family: monospace; }
.how__step-title { font-size: 1rem; font-weight: 700; color: #0f172a; margin: 0 0 .5rem; }
.how__step-desc  { font-size: .875rem; color: #64748b; line-height: 1.6; margin: 0; }

/* â”€â”€ Tech badges â”€â”€ */
.techs { background: #fff; padding: 3.5rem 0; border-top: 1px solid #f1f5f9; }
.techs__grid { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.5rem; }
.tech-badge {
    padding: .4rem .9rem; border-radius: 99px; background: #f8fafc;
    border: 1.5px solid #e2e8f0; font-size: .82rem; font-weight: 600; color: #334155;
    transition: border-color .15s, color .15s;
}
.tech-badge:hover { border-color: #2ED5DF; color: #0e7490; }

/* â”€â”€ YouTube section (LIGHT) â”€â”€ */
.yt-section {
    background: linear-gradient(135deg, #f0fdfe 0%, #e6fffe 100%);
    padding: 4.5rem 0;
    border-top: 1px solid #e2e8f0;
}
.yt-section__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.yt-section__eyebrow {
    display: flex; align-items: center; gap: .5rem;
    font-size: .78rem; font-weight: 700; color: #ef4444;
    text-transform: uppercase; letter-spacing: .07em; margin: 0 0 .75rem;
}
.yt-section__eyebrow span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #ef4444; }
.yt-section__title { font-size: 2.1rem; font-weight: 900; color: #0f172a; margin: 0 0 .85rem; line-height: 1.2; }
.yt-section__desc  { font-size: .95rem; color: #64748b; line-height: 1.65; margin: 0 0 1.5rem; }
.yt-stats { display: flex; gap: 2rem; margin-top: 1.75rem; }
.yt-stat       { display: flex; flex-direction: column; }
.yt-stat__num  { font-size: 1.6rem; font-weight: 900; color: #ef4444; line-height: 1; }
.yt-stat__label { font-size: .78rem; color: #94a3b8; margin-top: .2rem; font-weight: 500; }

/* Visual del canal — muestra la imagen a tamaño completo sin marco */
.yt-visual-link {
    display: block;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.10);
    transition: transform 180ms ease, box-shadow 180ms ease;
}
.yt-visual-link:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.15); }

.yt-visual {
    background: #f1f5f9;
    border-radius: 0;
    border: none;
    box-shadow: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    min-height: 320px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.yt-visual::before { display: none; }

.yt-visual__icon {
    width: 100%;
    height: 100%;
    min-height: 320px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    box-shadow: none;
    position: relative;
    z-index: 1;
    padding: 0;
}
.yt-visual__icon svg { width: 36px; height: 36px; fill: #fff; display: block; }
.yt-visual__icon img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; object-position: center; display: block; border-radius: 0; }
.yt-visual__text { font-size: 1.15rem; font-weight: 700; color: #0f172a; line-height: 1.4; position: relative; z-index: 1; margin: 0; }
.yt-visual__sub  { font-size: .85rem; color: #94a3b8; position: relative; z-index: 1; margin: 0; }
.yt-visual__chips { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; position: relative; z-index: 1; }
.yt-visual__chip {
    padding: .25rem .75rem; background: rgba(239,68,68,.08); color: #dc2626;
    border-radius: 99px; font-size: .78rem; font-weight: 600; border: 1px solid rgba(239,68,68,.15);
}

/* ── FAQ ── */
.faq { background: #fff; padding: 4.5rem 0; border-top: 1px solid #f1f5f9; }
.faq__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.faq__item {
    background: #f8fafc; border: 1px solid #f1f5f9; border-radius: 14px; padding: 1.35rem 1.5rem;
    transition: border-color .18s, box-shadow .18s;
}
.faq__item:hover { border-color: rgba(46,213,223,.3); box-shadow: 0 4px 16px rgba(46,213,223,.08); }
.faq__q {
    font-size: .95rem; font-weight: 700; color: #0f172a; margin: 0 0 .6rem;
    display: flex; align-items: flex-start; gap: .6rem;
}
.faq__q::before {
    content: '?'; display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%; background: #2ED5DF;
    color: #fff; font-size: .75rem; font-weight: 800; flex-shrink: 0; margin-top: .05rem;
}
.faq__a { font-size: .875rem; color: #64748b; line-height: 1.65; margin: 0; padding-left: 1.6rem; }

/* ── Site footer (LIGHT) ── */

.site-footer {
    background: #f8fafc;
    padding: 3.5rem 0 0;
    border-top: 1px solid #e2e8f0;
}
.site-footer__main {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #e2e8f0;
}
.footer-brand__logo {
    display: flex; align-items: center; gap: .55rem;
    font-weight: 800; font-size: 1rem; color: #0f172a; margin-bottom: .75rem;
}
.footer-brand__logo-img img { width: 30px; height: 30px; border-radius: 5px; object-fit: contain; }
.footer-brand__desc { font-size: .85rem; color: #64748b; line-height: 1.65; max-width: 280px; margin: 0; }
.footer-col__title  { font-size: .78rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .85rem; }
.footer-col__links  { display: flex; flex-direction: column; gap: .55rem; }
.footer-col__links a { font-size: .875rem; color: #64748b; text-decoration: none; transition: color .15s; }
.footer-col__links a:hover { color: #2ED5DF; }
.footer-social { display: flex; flex-direction: column; gap: .55rem; }
.social-link {
    display: flex; align-items: center; gap: .6rem;
    font-size: .875rem; color: #64748b; text-decoration: none; font-weight: 500; transition: color .15s;
}
.social-link:hover { color: #0f172a; }
.social-link__icon {
    width: 28px; height: 28px; border-radius: 7px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.social-link__icon svg { width: 14px; height: 14px; }
.social-link__icon--fb { background: #1877f2; color: #fff; }
.social-link__icon--yt { background: #ef4444; color: #fff; }
.social-link__icon--tt { background: #0f172a; color: #fff; }
.social-link__icon--ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.site-footer__bottom {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 0; flex-wrap: wrap; gap: .75rem;
}
.site-footer__copy { font-size: .8rem; color: #94a3b8; margin: 0; }
.site-footer__legal { display: flex; gap: 1rem; }
.site-footer__legal a { font-size: .8rem; color: #94a3b8; text-decoration: none; transition: color .15s; }
.site-footer__legal a:hover { color: #2ED5DF; }

/* ── Store page — desktop layout ── */
.store-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: start;
}
.store-sidebar {
    position: sticky;
    top: 80px;
}
/* Button only shown in mobile (overridden below in @media) */
.store-filter-toggle { display: none; }

/* ── Responsive public site ── */

/* Prevent any horizontal overflow globally */
html { overflow-x: hidden; }
body { overflow-x: hidden; }

@media (max-width: 1024px) {
    .features-strip__grid { grid-template-columns: repeat(2, 1fr); }
    .site-footer__main { grid-template-columns: 1fr 1fr; }
}
/* ── Mobile hamburger menu button ── */
.site-nav__hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 36px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 3px 2px;
    z-index: 201;
    flex-shrink: 0;
    flex-shrink: 0;
}
.site-nav__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #0f172a;
    border-radius: 2px;
    transition: transform 200ms ease, opacity 200ms ease;
    transform-origin: center;
}
.site-nav__hamburger.hamburger--open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-nav__hamburger.hamburger--open span:nth-child(2) { opacity: 0; }
.site-nav__hamburger.hamburger--open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 768px) {
    .hero__grid              { grid-template-columns: 1fr; }
    .hero__code              { display: block; padding: 1rem 0 0; }
    .hero__code-img          { min-height: 200px; max-height: 300px; width: 100%; object-position: center; }
    .how__grid               { grid-template-columns: 1fr; }
    .yt-section__inner       { grid-template-columns: 1fr; }
    .stats-bar__item         { padding: 0 1.25rem; }
    .site-footer__main       { grid-template-columns: 1fr; }
    .catalog__grid           { grid-template-columns: repeat(2, 1fr); }
    .features-strip__grid    { grid-template-columns: 1fr; }
    .product-grid            { grid-template-columns: 1fr !important; }
    .faq__grid               { grid-template-columns: 1fr; }

    /* ── Store mobile: sidebar becomes collapsible (filters shown ABOVE content) ── */
    .store-layout {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
    }
    .store-sidebar {
        position: static !important;
        display: none;
        /* place filters before content on mobile */
        order: 0;
    }
    .store-sidebar.store-sidebar--open {
        display: block;
        order: 0;
    }
    .store-content { order: 1; }
    .store-grid    { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .store-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .4rem;
        padding: .55rem 1.1rem;
        background: var(--surface);
        border: 1.5px solid var(--border-light);
        border-radius: 8px;
        font-size: .9rem;
        font-weight: 600;
        cursor: pointer;
        color: var(--text-dark);
        margin-bottom: 1rem;
        width: 100%;
    }

    /* Mobile nav: hamburger visible, CTA and desktop links hidden */
    .site-nav__hamburger     { display: flex !important; }
    .site-nav__cta           { display: none !important; }
    /* Brand text can truncate so it never pushes the hamburger off */
    .site-nav__brand         { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 1; }

    .site-nav__links {
        position: fixed;
        top: 62px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 0.5rem 1.25rem 1rem;
        gap: 0;
        border-top: 2px solid var(--color-brand);
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 8px 24px rgba(0,0,0,.12);
        transform: translateY(-110%);
        transition: transform 220ms ease;
        z-index: 199;
        pointer-events: none;
        display: flex;
    }
    .site-nav__links a {
        padding: .75rem 0;
        font-size: 1rem;
        border-bottom: 1px solid #f1f5f9;
    }
    .site-nav__links a:last-child { border-bottom: none; }

    /* Store link in mobile menu: visually highlighted */
    .site-nav__links-store {
        margin-top: .5rem;
        padding: .6rem 1rem !important;
        background: var(--color-brand);
        color: #fff !important;
        border-radius: 8px;
        font-weight: 600;
        border-bottom: none !important;
        text-align: center;
    }

    .site-nav__links.nav-open {
        transform: translateY(0);
        pointer-events: auto;
    }

    /* YouTube image on mobile: full width */
    .yt-visual-link          { border-radius: 12px; }
    .yt-visual               { min-height: 240px; }
    .yt-visual__icon         { min-height: 240px; }
    .yt-visual__icon img     { min-height: 240px; }
}
@media (max-width: 480px) {
    .hero__title             { font-size: 2rem; }
    .catalog__grid           { grid-template-columns: 1fr; }
    .catalog__filter-bar     { flex-direction: column; }
    .filter-divider          { display: none; }
    .stats-bar__grid         { grid-template-columns: 1fr 1fr; gap: .5rem; }
    .wrap                    { padding-left: 1rem; padding-right: 1rem; }
}

/* ══════════════════════════════════════════════════════════
   LOGIN PAGE
   ══════════════════════════════════════════════════════════ */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f0fdfe 0%, #e6fffe 60%, #f8fafc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.login-box {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.login-brand {
    text-align: center;
}
.login-brand__name {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: -.01em;
}
.login-brand__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand);
    flex-shrink: 0;
}
.login-brand__sub {
    font-size: .8rem;
    color: var(--text-muted);
    margin: .35rem 0 0;
    font-weight: 500;
}
.login-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}
.login-card__title {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--text-dark);
    margin: 0 0 .35rem;
    letter-spacing: -.02em;
}
.login-card__sub {
    font-size: .9rem;
    color: var(--text-muted);
    margin: 0 0 1.5rem;
}
.login-form-gap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.form-label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-dark);
}
.form-input {
    width: 100%;
    padding: .7rem .9rem;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius);
    font-size: .95rem;
    color: var(--text-dark);
    background: #fff;
    transition: border-color .18s, box-shadow .18s;
    outline: none;
}
.form-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(46,213,223,.15);
}
.login-btn {
    width: 100%;
    padding: .85rem;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s, transform .15s;
    margin-top: .25rem;
}
.login-btn:hover {
    background: var(--brand-mid);
    transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════
   PRODUCT PAGE — responsive helpers
   The inline grid in product.blade.php is:
   grid-template-columns:1fr 360px → needs to collapse on mobile.
   We use a wrapper selector added via JS data attribute or the
   direct style attribute override via media query below.
   ══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Target the main product 2-col grid (inline style override) */
    .product-page-wrap > div[style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
    }
    /* Unstick the purchase panel on mobile */
    .product-page-wrap div[style*="position:sticky"],
    .product-page-wrap div[style*="position: sticky"] {
        position: static !important;
    }
    /* Store page sidebar */
    .wrap > form > div[style*="grid-template-columns:240px"] {
        display: flex !important;
        flex-direction: column !important;
    }
}
