/* augLab Workspace 2026 — Tailwind-first dark theme foundation
   Tailwind CDN handles layout/spacing/color via utility classes.
   This file: sidebar, forms, components, animations, polish. */

@layer base {
  :root {
    --brand: #10b981;
    --brand-hover: #059669;
    --ok: #22c55e;
    --warn: #f59e0b;
    --danger: #ef4444;
    --purple: #8b5cf6;
    --transition-smooth: cubic-bezier(.22, 1, .36, 1);
  }
  html, body { overflow-x: hidden; }
  ::selection { background: rgba(16,185,129,.3); color: #fff; }
}

/* ===== Public pages get top-bar padding; app layout does not ===== */
body { padding-top: 64px; }
body:has(.sidebar) { padding-top: 0; }

/* ===== Sidebar ===== */
.sidebar-link {
  display: flex; align-items: center; gap: .65rem;
  padding: .55rem .75rem; border-radius: .6rem;
  font-size: .875rem; font-weight: 500; color: #94a3b8;
  transition: all .2s var(--transition-smooth); text-decoration: none;
  position: relative;
}
.sidebar-link:hover { background: rgba(255,255,255,.05); color: #e2e8f0; transform: translateX(2px); }
.sidebar-link.active {
  background: rgba(16,185,129,.12); color: #34d399;
  font-weight: 600;
}
.sidebar-link.active::before {
  content: ''; position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #10b981, #06b6d4);
}
.sidebar-link.active i { color: #34d399; }

@media (max-width: 1023px) {
  .sidebar { transform: translateX(-100%); transition: transform .3s var(--transition-smooth); }
  .sidebar.sidebar-open { transform: translateX(0); }
}

/* ===== Public Navbar mobile toggle ===== */
.nav-toggle { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.nav-toggle span { width: 22px; height: 2px; background: #94a3b8; border-radius: 2px; transition: .25s; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ===== Flash messages (server-side, converted to toasts by JS) ===== */
.flash-messages { position: fixed; top: 16px; right: 1.5rem; z-index: 1100; max-width: 420px; }
.alert { opacity: 0; }

/* ===== Toast notifications ===== */
.toast-item {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .75rem 1rem; border-radius: .75rem;
  font-size: .85rem; font-weight: 500;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06);
  transform: translateX(calc(100% + 2rem)); opacity: 0;
  transition: transform .35s var(--transition-smooth), opacity .35s ease;
}
.toast-visible { transform: translateX(0); opacity: 1; }
.toast-exit   { transform: translateX(calc(100% + 2rem)); opacity: 0; }
.toast-body   { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.toast-icon   { font-size: 1rem; flex-shrink: 0; }
.toast-close  {
  background: none; border: none; cursor: pointer; padding: .2rem;
  opacity: .5; transition: opacity .15s; color: inherit; font-size: .75rem;
}
.toast-close:hover { opacity: 1; }

.toast-success { background: rgba(34,197,94,.14); color: #4ade80; border: 1px solid rgba(34,197,94,.25); }
.toast-error   { background: rgba(239,68,68,.14); color: #f87171; border: 1px solid rgba(239,68,68,.25); }
.toast-warning { background: rgba(245,158,11,.14); color: #fbbf24; border: 1px solid rgba(245,158,11,.25); }
.toast-info    { background: rgba(16,185,129,.14); color: #34d399; border: 1px solid rgba(16,185,129,.25); }

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeUp .6s ease-out both; }

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes spin { to { transform: rotate(360deg); } }
.fa-spinner { animation: spin .8s linear infinite; }

@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,.35); }
  50%     { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-12px) rotate(1deg); }
  66% { transform: translateY(-6px) rotate(-1deg); }
}

@keyframes blob-pulse {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: .15; }
  33% { transform: scale(1.1) translate(30px, -20px); opacity: .2; }
  66% { transform: scale(.95) translate(-15px, 15px); opacity: .12; }
}

@keyframes slide-up-fade {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes count-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Scroll reveal */
.scroll-reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s ease-out, transform .7s var(--transition-smooth);
}
.scroll-reveal.revealed { opacity: 1; transform: translateY(0); }
.scroll-reveal.revealed:nth-child(2) { transition-delay: .1s; }
.scroll-reveal.revealed:nth-child(3) { transition-delay: .2s; }
.scroll-reveal.revealed:nth-child(4) { transition-delay: .3s; }
.scroll-reveal.revealed:nth-child(5) { transition-delay: .4s; }
.scroll-reveal.revealed:nth-child(6) { transition-delay: .5s; }

/* ===== Animated gradient text ===== */
.gradient-text {
  background: linear-gradient(135deg, #34d399 0%, #06b6d4 25%, #a78bfa 50%, #34d399 75%, #06b6d4 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}

.gradient-text-static {
  background: linear-gradient(135deg, #34d399, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Glass card ===== */
.glass {
  background: rgba(15,23,42,.55);
  border: 1px solid rgba(148,163,184,.12);
  border-radius: .875rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,.2);
  transition: border-color .25s, box-shadow .25s, transform .25s var(--transition-smooth);
}
.glass:hover {
  border-color: rgba(148,163,184,.22);
}
.glass-lift:hover {
  border-color: rgba(16,185,129,.3);
  box-shadow: 0 8px 40px rgba(0,0,0,.3), 0 0 0 1px rgba(16,185,129,.1);
  transform: translateY(-2px);
}

/* ===== Animated border gradient ===== */
.gradient-border {
  position: relative;
  background: rgba(15,23,42,.7);
  border: 1px solid transparent;
  border-radius: .875rem;
}
.gradient-border::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit;
  background: linear-gradient(135deg, rgba(16,185,129,.3), rgba(6,182,212,.3), rgba(139,92,246,.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 1px; pointer-events: none;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .6rem 1.25rem; border: none; border-radius: .6rem;
  font-weight: 600; font-size: .85rem; cursor: pointer;
  transition: all .2s var(--transition-smooth); text-decoration: none; font-family: inherit;
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.1), transparent);
  opacity: 0; transition: opacity .2s;
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  color: #fff; box-shadow: 0 4px 14px rgba(5,150,105,.3);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 6px 24px rgba(5,150,105,.5); transform: translateY(-1px); }
.btn-secondary { background: rgba(51,65,85,.5); color: #e2e8f0; border: 1px solid rgba(148,163,184,.18); }
.btn-secondary:hover:not(:disabled) { background: rgba(51,65,85,.8); border-color: rgba(148,163,184,.35); transform: translateY(-1px); }
.btn-outline { background: rgba(16,185,129,.08); color: #6ee7b7; border: 1px solid rgba(16,185,129,.3); }
.btn-outline:hover { background: rgba(16,185,129,.18); border-color: rgba(16,185,129,.6); color: #d1fae5; transform: translateY(-1px); }
.btn-danger { background: rgba(239,68,68,.12); color: #f87171; border: 1px solid rgba(239,68,68,.25); }
.btn-danger:hover { background: rgba(239,68,68,.22); border-color: rgba(239,68,68,.5); }
.btn-success { background: rgba(34,197,94,.12); color: #4ade80; border: 1px solid rgba(34,197,94,.25); }
.btn-sm { padding: .4rem .8rem; font-size: .78rem; border-radius: .45rem; }
.btn-lg { padding: .85rem 1.75rem; font-size: .95rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

.btn-glow {
  background: linear-gradient(135deg, var(--brand), #06b6d4);
  color: #fff;
  box-shadow: 0 4px 20px rgba(16,185,129,.4), 0 0 60px -12px rgba(6,182,212,.3);
}
.btn-glow:hover:not(:disabled) {
  box-shadow: 0 8px 30px rgba(16,185,129,.5), 0 0 80px -8px rgba(6,182,212,.4);
  transform: translateY(-2px);
}

/* ===== Form elements ===== */
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="url"], input[type="search"],
input[type="datetime-local"], select, textarea {
  width: 100%;
  padding: .65rem .9rem;
  background: rgba(2,6,23,.5);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: .6rem;
  color: #e2e8f0;
  font-family: inherit;
  font-size: .875rem;
  line-height: 1.5;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(16,185,129,.6);
  box-shadow: 0 0 0 3px rgba(16,185,129,.15), 0 0 20px -5px rgba(16,185,129,.2);
  background: rgba(2,6,23,.7);
}
textarea {
  min-height: 120px; resize: vertical;
  font-family: 'Monaco','Menlo',monospace; font-size: .85rem;
  padding: .75rem 1rem !important;
  line-height: 1.6;
}

section#create textarea#secret {
  min-height: 14rem;
  padding: 1.375rem 1.35rem !important;
  font-size: 0.9375rem;
  line-height: 1.65;
}
input::placeholder, textarea::placeholder { color: #475569; }
label { display: block; margin-bottom: .4rem; font-weight: 500; font-size: .84rem; color: #cbd5e1; }

select {
  appearance: none;
  -webkit-appearance: none;
  padding: .65rem 2.5rem .65rem .9rem !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 1rem;
  cursor: pointer;
  min-height: 2.75rem;
}
select::-ms-expand { display: none; }
select option { background: #0f172a; color: #e2e8f0; padding: .5rem; }

input[type="checkbox"],
input[type="radio"] {
  width: 1.125rem; height: 1.125rem;
  padding: 0 !important; margin: 0; flex-shrink: 0;
  accent-color: var(--brand); cursor: pointer; border-radius: .25rem;
}
input[type="radio"] { border-radius: 50%; }

.input-group { display: flex; gap: .5rem; }
.input-group input { flex: 1; }

details summary { list-style: none; cursor: pointer; }
details summary::-webkit-details-marker { display: none; }
details[open] > summary { margin-bottom: 0; }
.inline, form.inline { display: inline; }

/* ===== Tables ===== */
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th {
  text-align: left; padding: .65rem .85rem;
  color: #94a3b8; font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 1px solid rgba(148,163,184,.15);
  background: rgba(15,23,42,.6);
}
td {
  padding: .65rem .85rem;
  border-bottom: 1px solid rgba(148,163,184,.07);
  color: #cbd5e1; font-size: .875rem;
  transition: background .15s;
}
tr:hover td { background: rgba(16,185,129,.03); }

.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-radius: .6rem;
  border: 1px solid rgba(148,163,184,.1);
}
.table-wrap table { margin: 0; }
.table-wrap th:first-child { border-top-left-radius: .5rem; }
.table-wrap th:last-child { border-top-right-radius: .5rem; }

/* ===== Badges ===== */
.badge {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .2rem .55rem; border-radius: 999px;
  font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .03em;
}
.badge-premium { background: rgba(99,102,241,.15); color: #a5b4fc; border: 1px solid rgba(99,102,241,.22); }
.badge-free { background: rgba(148,163,184,.1); color: #94a3b8; border: 1px solid rgba(148,163,184,.15); }
.badge-sa { background: rgba(245,158,11,.12); color: #fbbf24; border: 1px solid rgba(245,158,11,.2); }
.badge-ok { background: rgba(34,197,94,.12); color: #4ade80; border: 1px solid rgba(34,197,94,.18); }
.badge-danger { background: rgba(239,68,68,.12); color: #f87171; border: 1px solid rgba(239,68,68,.18); }
.badge-warn { background: rgba(245,158,11,.1); color: #fbbf24; border: 1px solid rgba(245,158,11,.18); }

/* ===== Status pills ===== */
.status { padding: .2rem .55rem; border-radius: 999px; font-size: .7rem; font-weight: 600; }
.status.active { background: rgba(34,197,94,.12); color: #4ade80; border: 1px solid rgba(34,197,94,.2); }
.status.expired { background: rgba(239,68,68,.12); color: #f87171; border: 1px solid rgba(239,68,68,.2); }
.status.limit-reached { background: rgba(245,158,11,.12); color: #fbbf24; border: 1px solid rgba(245,158,11,.2); }

/* ===== Code / Pre ===== */
pre {
  background: rgba(2,6,23,.7); border: 1px solid rgba(148,163,184,.12);
  border-radius: .6rem; padding: 1rem; overflow-x: auto; margin: .5rem 0;
}
code { font-family: 'Monaco','Menlo','Ubuntu Mono',monospace; font-size: .82rem; color: #e2e8f0; }
:not(pre) > code { background: rgba(16,185,129,.08); padding: .15em .4em; border-radius: .3rem; color: #6ee7b7; font-size: .8rem; }

/* ===== Alerts ===== */
.alert-success { background: rgba(34,197,94,.1); color: #4ade80; border: 1px solid rgba(34,197,94,.25); }
.alert-error { background: rgba(239,68,68,.1); color: #f87171; border: 1px solid rgba(239,68,68,.25); }
.alert-info { background: rgba(16,185,129,.1); color: #34d399; border: 1px solid rgba(16,185,129,.25); }

/* ===== File input ===== */
.file-input {
  padding: .6rem; background: rgba(2,6,23,.4);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: .6rem; color: #e2e8f0; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.file-input:hover { border-color: rgba(16,185,129,.4); }
.file-input::file-selector-button {
  background: var(--brand); color: #fff; border: none;
  padding: .45rem .9rem; border-radius: .45rem;
  cursor: pointer; margin-right: .6rem; font-weight: 500; font-size: .82rem;
  transition: background .2s;
}
.file-input::file-selector-button:hover { background: var(--brand-hover); }

/* ===== Drag and drop zone ===== */
.drop-zone {
  border: 2px dashed rgba(148,163,184,.2);
  border-radius: 1rem; padding: 2rem;
  text-align: center; cursor: pointer;
  transition: all .3s var(--transition-smooth);
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: rgba(16,185,129,.5);
  background: rgba(16,185,129,.05);
}

/* ===== Empty state ===== */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 3rem 1.5rem; text-align: center;
}

/* ===== Misc helpers ===== */
.hidden { display: none !important; }
.text-success { color: var(--ok) !important; }
.text-danger { color: var(--danger) !important; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148,163,184,.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(148,163,184,.35); }

/* ===== Mobile public nav ===== */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: 64px; left: -100%; width: 100%; height: calc(100vh - 64px);
    background: rgba(2,6,23,.97); backdrop-filter: blur(16px);
    flex-direction: column; align-items: center; padding-top: 2rem; gap: 0;
    transition: left .3s ease; z-index: 1050;
  }
  .nav-menu.active { left: 0; }
  .nav-menu a { width: 85%; text-align: center; padding: .9rem; margin-bottom: .5rem; border-radius: .6rem; }
}

@media (max-width: 1023px) {
  body:has(.sidebar) .flash-messages { right: 1rem; left: 1rem; max-width: 100%; }
}

/* ===== Landing page secret textarea ===== */
#create textarea#secret {
  min-height: 10rem;
  padding: 1.125rem 1.25rem !important;
  font-size: .925rem;
  line-height: 1.65;
}

/* ===== Share link bar ===== */
.share-link-bar input[readonly] {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  outline: none !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.share-link-row td { border-top: none !important; }

/* ===== Cmd+K Palette ===== */
.cmd-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); z-index: 9990;
  animation: fadeIn .15s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.cmd-dialog {
  position: fixed; top: 18vh; left: 50%; transform: translateX(-50%);
  width: 94%; max-width: 560px; z-index: 9991;
  background: #0f172a; border: 1px solid rgba(148,163,184,.15);
  border-radius: 1rem; box-shadow: 0 24px 80px rgba(0,0,0,.6);
  overflow: hidden;
  animation: fadeInScale .2s var(--transition-smooth);
}
.cmd-input-wrap {
  display: flex; align-items: center; gap: .6rem;
  padding: .85rem 1rem; border-bottom: 1px solid rgba(148,163,184,.1);
}
.cmd-search-icon { color: #64748b; font-size: .9rem; }
.cmd-input-wrap input {
  flex: 1; background: none !important; border: none !important;
  outline: none !important; box-shadow: none !important;
  color: #e2e8f0; font-size: .95rem; padding: 0 !important;
}
.cmd-kbd {
  font-size: .65rem; padding: .15rem .4rem; border-radius: .3rem;
  border: 1px solid rgba(148,163,184,.2); color: #64748b;
  font-family: ui-monospace, monospace;
}
.cmd-results { max-height: 360px; overflow-y: auto; padding: .4rem; }
.cmd-result {
  display: flex; align-items: center; gap: .65rem;
  padding: .6rem .8rem; border-radius: .5rem;
  color: #cbd5e1; text-decoration: none; font-size: .875rem;
  transition: background .1s;
}
.cmd-result:hover, .cmd-active { background: rgba(16,185,129,.1); color: #e2e8f0; }
.cmd-result-icon { width: 1.2rem; text-align: center; color: #64748b; font-size: .85rem; }
.cmd-result-hint { margin-left: auto; font-size: .7rem; color: #475569; }
.cmd-empty { padding: 1.5rem; text-align: center; color: #475569; font-size: .85rem; }
.cmd-section { padding: .4rem .8rem .2rem; font-size: .65rem; font-weight: 600; color: #475569; text-transform: uppercase; letter-spacing: .06em; }

/* ===== Skeleton loading shimmer ===== */
.skeleton {
  background: linear-gradient(90deg, rgba(148,163,184,.06) 25%, rgba(148,163,184,.12) 50%, rgba(148,163,184,.06) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: .5rem;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===== Stats card counter animation ===== */
.stat-number {
  display: inline-block;
  animation: count-up .5s ease-out both;
}

/* ===== Onboarding checklist ===== */
.onboarding-step {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem .75rem; border-radius: .5rem;
  transition: all .2s ease;
}
.onboarding-step:hover { background: rgba(255,255,255,.03); }
.onboarding-check {
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  border: 2px solid rgba(148,163,184,.3); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s ease;
}
.onboarding-check.done {
  border-color: #22c55e; background: rgba(34,197,94,.15);
  color: #4ade80;
}

/* ===== Feature icon containers (landing page) ===== */
.feature-icon {
  position: relative;
  transition: transform .3s var(--transition-smooth);
}
.feature-icon::after {
  content: ''; position: absolute; inset: -4px;
  border-radius: inherit; opacity: 0;
  background: linear-gradient(135deg, rgba(16,185,129,.2), rgba(6,182,212,.2));
  transition: opacity .3s;
  z-index: -1;
}
.glass-lift:hover .feature-icon { transform: scale(1.1); }
.glass-lift:hover .feature-icon::after { opacity: 1; }

/* ===== Competitor logos strip ===== */
.replaces-strip {
  display: flex; align-items: center; justify-content: center; gap: 2rem;
  flex-wrap: wrap;
}
.replaces-item {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem; border-radius: .75rem;
  border: 1px solid rgba(148,163,184,.1);
  background: rgba(15,23,42,.5);
  font-size: .85rem; color: #64748b;
  text-decoration: line-through;
  transition: all .3s ease;
  position: relative;
}
.replaces-item::after {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(239,68,68,.05), rgba(239,68,68,.02));
  opacity: 0; transition: opacity .3s;
}
.replaces-item:hover::after { opacity: 1; }
.replaces-item:hover { border-color: rgba(239,68,68,.2); color: #94a3b8; }

/* ===== Pricing toggle ===== */
.pricing-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(15,23,42,.6); border: 1px solid rgba(148,163,184,.15);
  border-radius: 999px; padding: .25rem;
}
.pricing-toggle-btn {
  padding: .5rem 1.25rem; border-radius: 999px; border: none;
  font-size: .85rem; font-weight: 600; cursor: pointer;
  transition: all .2s ease; background: transparent;
  color: #94a3b8; font-family: inherit;
}
.pricing-toggle-btn.active {
  background: var(--brand); color: #fff;
  box-shadow: 0 2px 10px rgba(16,185,129,.3);
}

/* ===== Progress bar ===== */
.progress-bar {
  height: 6px; border-radius: 3px;
  background: rgba(148,163,184,.1);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), #06b6d4);
  transition: width .6s var(--transition-smooth);
}

/* ===== Tooltip ===== */
[data-tooltip] { position: relative; }
[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(4px);
  padding: .35rem .6rem; border-radius: .4rem;
  background: #1e293b; border: 1px solid rgba(148,163,184,.15);
  color: #e2e8f0; font-size: .75rem; white-space: nowrap;
  pointer-events: none; opacity: 0;
  transition: opacity .2s, transform .2s;
  z-index: 100;
}
[data-tooltip]:hover::before { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Animated background blobs ===== */
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none;
  animation: blob-pulse 12s ease-in-out infinite;
}

/* ===== Auth pages two-column ===== */
.auth-features-col {
  display: flex; flex-direction: column; justify-content: center;
  padding: 2rem; gap: 1.5rem;
}
.auth-feature {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .75rem; border-radius: .75rem;
  transition: background .2s;
}
.auth-feature:hover { background: rgba(255,255,255,.03); }

/* ===== Keyboard shortcut hints ===== */
kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.5rem; padding: .15rem .35rem;
  border-radius: .3rem; border: 1px solid rgba(148,163,184,.2);
  background: rgba(15,23,42,.6); color: #64748b;
  font-family: ui-monospace, monospace; font-size: .65rem; font-weight: 600;
}

/* ===== App mobile refinements ===== */
@media (max-width: 639px) {
  .glass { border-radius: .75rem; }
  section.glass { padding: 1rem; }
  section.glass > header { padding-bottom: 1rem; margin-bottom: 1.25rem; }
  .flex-wrap { gap: .35rem; }
  .table-wrap { margin-left: -.25rem; margin-right: -.25rem; }
  th, td { padding: .5rem .6rem; font-size: .8rem; }
  .grid.md\:grid-cols-2 { grid-template-columns: 1fr; }
  input[type="text"], input[type="email"], input[type="password"],
  input[type="number"], input[type="url"], input[type="search"],
  select, textarea { font-size: .82rem; padding: .55rem .75rem; }
  .badge { font-size: .6rem; padding: .15rem .4rem; }
  .btn { padding: .5rem 1rem; font-size: .8rem; }
  .btn-sm { padding: .35rem .65rem; font-size: .72rem; }
}

@media (max-width: 1023px) {
  body:has(.sidebar) { padding-top: 0 !important; }
}

/* ===== Print ===== */
@media print {
  .sidebar, .nav-toggle, .flash-messages, footer { display: none !important; }
  body { padding: 0 !important; }
  main { padding: 0 !important; }
}
