:root{

  --bg:#060816;
  --bg2:#0d1328;

  --card:#12192b;
  --card2:#172038;

  --border:rgba(255,255,255,.08);

  --text:#ffffff;
  --muted:#9ca9c5;

  --accent:#7b61ff;
  --accent2:#38bdf8;

  --green:#00d38f;
  --orange:#ff9f43;
  --red:#ff4d6d;

  --transition:.35s ease;
}

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

body{

  background:
    linear-gradient(
      180deg,
      var(--bg),
      var(--bg2)
    );

  color:var(--text);

  font-family:'DM Sans',sans-serif;
  overflow-x:hidden;
}



/* Filter Search */
.search{
  display:flex;
  align-items:center;
  max-width:320px;
  width:100%;
  gap:8px;
  background:rgba(255,255,255,.05);
  border:1px solid var(--border);
  border-radius:40px;
  padding:10px 16px;
  transition:all var(--transition);
}

.search i{
  font-size:12px;
  color:#9ca9c5;
}

#badgesSearch{
  border:none;
  outline:none;
  background:transparent;
  font-family:inherit;
  font-size:13px;
  color:var(--text);
  width:100%;
  min-width:0;
}

/* SIDEBAR */

.sidebar{

  position:fixed;

  left:0;
  top:0;

  width:240px;
  height:100vh;

  background:
    linear-gradient(
      180deg,
      #050816,
      #0b1024
    );

  border-right:
    1px solid var(--border);

  padding:24px 18px;

  overflow-x:hidden;
}
/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  border-right: 1px solid var(--sidebar-border);
  transition: transform var(--transition);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--sidebar-border);
}

.brand-icon {
  font-size: 24px;
  color: var(--accent);
}

.brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  letter-spacing: -0.5px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: var(--sidebar-text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}

.sidebar-nav li a i {
  width: 18px;
  text-align: center;
  font-size: 15px;
}

.sidebar-nav li a:hover {
  background: var(--sidebar-hover);
  color: #fff;
  transform: translateX(4px);
}

.sidebar-nav li a:active {
  transform: translateX(2px) scale(0.98);
}

.sidebar-nav li.active a {
  background: var(--sidebar-active);
  color: var(--accent);
  border-left: 3px solid var(--accent);
}

.sidebar-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--sidebar-border);
  display: flex;
  gap: 16px;
}

.sidebar-footer a {
  color: var(--sidebar-text);
  font-size: 16px;
  transition: color var(--transition);
}

.sidebar-footer a:hover {
  color: var(--accent);
}

/* Sidebar backdrop (mobile) */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1040;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.sidebar-backdrop.visible {
  display: block;
}
/* =====================================================
TOPBAR
===================================================== */

.topbar{

  position:fixed;

  top:0;
  left:240px;
  right:0;

  height:84px;

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

  padding:0 30px;

  background:
    rgba(5,8,22,.82);

  backdrop-filter:blur(18px);

  border-bottom:
    1px solid var(--border);

  z-index:999;
}

.search-box{

  width:420px;

  display:flex;
  align-items:center;

  gap:12px;

  padding:14px 18px;

  border-radius:999px;

  background:
    rgba(255,255,255,.05);

  border:
    1px solid var(--border);
}

.search-box input{

  width:100%;

  border:none;
  outline:none;

  background:none;

  color:white;
}

.topbar-actions{

  display:flex;
  gap:14px;
}

.outline-btn,
.primary-btn{

  border:none;

  padding:14px 20px;

  border-radius:18px;

  cursor:pointer;

  font-weight:700;
}

.outline-btn{

  background:
    rgba(255,255,255,.06);

  color:white;
}

.primary-btn{

  background:
    linear-gradient(
      135deg,
      var(--accent),
      var(--accent2)
    );

  color:white;
}

/* =====================================================
MAIN
===================================================== */

.main-home{

  margin-left:240px;

  padding:120px 40px 60px;
  width:calc(100vw - 240px);
  max-width:none;
  min-width:0;
}

/* HERO */

.hero-section{

  margin-bottom:50px;
}

.hero-badge{

  display:inline-flex;

  padding:12px 18px;

  border-radius:999px;

  background:
    rgba(255,255,255,.06);

  border:
    1px solid var(--border);

  margin-bottom:24px;
}

.hero-section h1{

  font-size:
    clamp(60px,8vw,110px);

  line-height:1;

  margin-bottom:20px;

  font-family:'Syne',sans-serif;
}

.hero-section h1 span{

  background:
    linear-gradient(
      135deg,
      var(--accent),
      var(--accent2)
    );

  -webkit-background-clip:text;

  -webkit-text-fill-color:transparent;
}

.hero-section p{

  max-width:760px;

  color:var(--muted);

  line-height:1.8;

  margin-bottom:40px;
}

/* HERO STATS */

.hero-stats{

  display:flex;

  gap:20px;

  flex-wrap:wrap;
}

.security-level-badge,
.soc-badge,
.cloud-ready-badge,
.agent-badge,
.enterprise-plan-badge,
.trending-now-badge,
.growth-badge,
.verified-org-badge,
.nft-verified-badge,
.achievement-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:12px 18px;
  border-radius:999px;
  font-size:.8rem;
  font-weight:700;
  letter-spacing:.5px;
}

.security-level-badge{
  background:#12212f;
  color:#4dd4ff;
  border:1px solid #2c4f6a;
}

.soc-badge{
  background:#eefaf4;
  color:#0d8b57;
}

.cloud-ready-badge{
  background:#16243a;
  color:#8ecbff;
}

.agent-badge{
  background:#12151f;
  color:#73ffbe;
}

.agent-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#00ff88;
  animation:pulse 1.5s infinite;
}

.enterprise-plan-badge{
  background:linear-gradient(135deg,#2f2f3d,#1d1d29);
  color:#fff;
}

.trending-now-badge{
  background:linear-gradient(135deg,#ff6b35,#ff3b3b);
  color:#fff;
}

.growth-badge{
  background:#e8fff2;
  color:#00a44a;
}

.verified-org-badge{
  background:#0f172a;
  color:#60a5fa;
}

.nft-verified-badge{
  background:linear-gradient(135deg,#7b61ff,#00d4ff);
  color:#fff;
}

.achievement-badge{
  background:linear-gradient(135deg,#ffb347,#ffcc33);
  color:#111;
}

@keyframes pulse{
  0%{transform:scale(1);opacity:1;}
  50%{transform:scale(1.4);opacity:.6;}
  100%{transform:scale(1);opacity:1;}
}
.hero-stat{

  padding:22px 28px;

  border-radius:24px;

  background:
    rgba(255,255,255,.05);

  border:
    1px solid var(--border);
}

.hero-stat h2{

  font-size:38px;

  margin-bottom:10px;
}

.hero-stat span{
  color:#9ca9c5;
}

/* FILTERS */

.filters-section{

  display:flex;
  flex-wrap:wrap;

  gap:14px;

  margin-bottom:40px;
}

.filter-btn{

  border:none;

  padding:14px 20px;

  border-radius:999px;

  background:
    rgba(255,255,255,.05);

  color:white;

  cursor:pointer;

  transition:var(--transition);
}

.filter-btn.active,
.filter-btn:hover{

  background:
    linear-gradient(
      135deg,
      var(--accent),
      var(--accent2)
    );
}

/* GRID */

.badges-grid{

  display:grid;

  grid-template-columns:
    repeat(auto-fit,minmax(300px,1fr));

  gap:28px;
  width:100%;
}

/* CARD */

.badge-card{

  background:
    linear-gradient(
      145deg,
      #12192b,
      #172038
    );

  border:
    1px solid var(--border);

  border-radius:34px;

  padding:28px;

  transition:var(--transition);
}

.badge-card:hover{

  transform:
    translateY(-10px);
}

.card-top{

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

  margin-bottom:24px;
}

.card-tag{

  padding:10px 14px;

  border-radius:999px;

  background:
    rgba(255,255,255,.06);

  font-size:13px;
}

.save-btn{

  width:48px;
  height:48px;

  border:none;

  border-radius:16px;

  background:
    rgba(255,255,255,.08);

  color:white;

  cursor:pointer;
}

.active-save{

  background:white;

  color:#111827;
}

/* PREVIEW */

.badge-preview{

  min-height:180px;

  border-radius:28px;

  background:
    rgba(255,255,255,.04);

  border:
    1px solid var(--border);

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

  gap:16px;

  margin-bottom:28px;

  padding:24px;

  flex-wrap:wrap;
}

.dark-preview{
  background:#0c1222;
}

.glass-preview{
  background:
    linear-gradient(
      135deg,
      rgba(123,97,255,.3),
      rgba(56,189,248,.2)
    );
}

/* BASIC BADGES */

.badge{

  padding:12px 18px;

  border-radius:999px;

  font-size:14px;

  font-weight:700;
}

.success-badge{

  background:
    rgba(0,211,143,.12);

  color:var(--green);

  border:
    1px solid rgba(0,211,143,.2);
}

.warning-badge{

  background:
    rgba(255,159,67,.12);

  color:var(--orange);

  border:
    1px solid rgba(255,159,67,.2);
}

.danger-badge{

  background:
    rgba(255,77,109,.12);

  color:var(--red);

  border:
    1px solid rgba(255,77,109,.2);
}

/* NEON */

.badge-neon{

  padding:14px 22px;

  border-radius:14px;

  border:2px solid #00f0ff;

  color:#00f0ff;

  font-weight:800;

  letter-spacing:2px;

  box-shadow:
    0 0 20px rgba(0,240,255,.4);
}

/* NOTIFICATION */

.notification-box{

  position:relative;

  font-size:34px;
}

.notify-count{

  position:absolute;

  top:-10px;
  right:-14px;

  min-width:24px;
  height:24px;

  border-radius:999px;

  background:var(--red);

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

  font-size:12px;

  font-weight:700;
}

/* HOLO */

.badge-holo{

  padding:14px 22px;

  border-radius:14px;

  color:white;

  font-weight:800;

  background:
    linear-gradient(
      135deg,
      #ff0080,
      #7b61ff,
      #00f0ff
    );

  background-size:300%;

  animation:holo 6s linear infinite;
}

@keyframes holo{

  0%{
    background-position:0%;
  }

  100%{
    background-position:300%;
  }

}

/* LIVE */

.live-badge{

  padding:12px 20px;

  border-radius:999px;

  background:#101827;

  display:flex;
  align-items:center;

  gap:12px;

  font-weight:700;
}

.pulse{

  width:10px;
  height:10px;

  border-radius:50%;

  background:#ff4d6d;

  position:relative;
}

.pulse::before{

  content:"";

  position:absolute;

  inset:0;

  border-radius:50%;

  background:#ff4d6d;

  animation:pulse 1.8s infinite;
}

@keyframes pulse{

  100%{

    transform:scale(3);

    opacity:0;
  }

}

/* GLASS */

.glass-badge{

  padding:14px 22px;

  border-radius:18px;

  background:
    rgba(255,255,255,.12);

  backdrop-filter:blur(18px);

  border:
    1px solid rgba(255,255,255,.15);

  display:flex;
  align-items:center;

  gap:10px;

  font-weight:700;
}

/* 7. RANK BADGE */
.rank-badge {
  padding: 10px 18px;
  border-radius: 6px;
  background: linear-gradient(45deg, #1f1406, #3b2a0c);
  border: 1px solid #d4af37;
  color: #fce79c;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.rank-badge i { color: #d4af37; }

/* 8. OUTLINE PULSE BADGE */
.outline-pulse-badge {
  padding: 8px 20px;
  border-radius: 999px;
  border: 2px solid #ec4899;
  color: #ec4899;
  font-weight: 700;
  position: relative;
  background: transparent;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
}
.outline-pulse-badge::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 1px solid #ec4899;
  animation: outlinePulse 2s infinite ease-out;
}
@keyframes outlinePulse {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* 9. GRADIENT BORDER BADGE */
.gradient-border-badge {
  padding: 12px 24px;
  border-radius: 999px;
  background: #0c1222;
  color: white;
  font-weight: 800;
  position: relative;
  z-index: 1;
}
.gradient-border-badge::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b82f6, #ec4899, #f59e0b);
  z-index: -1;
}

/* 10. ROLE PILL BADGE */
.role-pill-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
  font-size: 13px;
}
.role-pill-badge .role-icon {
  background: #3b82f6;
  color: white;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.role-pill-badge .role-text {
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  padding: 8px 16px;
}

/* 11. FLOATING 3D BADGE */
.chip-3d-badge {
  padding: 10px 22px;
  background: linear-gradient(135deg, #4b5563, #374151);
  border-radius: 12px;
  color: white;
  font-weight: 700;
  font-size: 14px;
  border-top: 2px solid #6b7280;
  border-bottom: 4px solid #1f2937;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
  transition: transform 0.2s, box-shadow 0.2s;
}
.chip-3d-badge:hover {
  transform: translateY(0);
  border-bottom: 2px solid #1f2937;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
}

/* CARD TEXT */

.badge-card h2{

  font-size:32px;

  margin-bottom:16px;

  font-family:'Syne',sans-serif;
}

.badge-card p{

  color:#9ca9c5;

  line-height:1.8;

  margin-bottom:26px;
}

/* ACTIONS */

.card-actions{

  display:flex;

  gap:14px;
}

.card-actions button{

  flex:1;

  border:none;

  padding:16px;

  border-radius:18px;

  cursor:pointer;

  font-weight:700;

  background:
    rgba(255,255,255,.06);

  color:white;
}

.card-actions button:first-child{

  background:
    linear-gradient(
      135deg,
      var(--accent),
      var(--accent2)
    );
}


/* =====================================================
   12. VERIFIED TICK BADGE
===================================================== */

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(99,102,241,0.15));
  border: 1px solid rgba(99,102,241,0.35);
  color: #93c5fd;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  transition: all 0.3s;
}

.verified-badge i {
  color: #60a5fa;
  font-size: 16px;
  filter: drop-shadow(0 0 6px rgba(96,165,250,0.7));
  animation: tick-pulse 2s ease-in-out infinite;
}

@keyframes tick-pulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(96,165,250,0.5)); }
  50%       { filter: drop-shadow(0 0 12px rgba(96,165,250,0.9)); }
}

/* =====================================================
   13. XP PROGRESS BADGE
===================================================== */

.xp-badge {
  width: 200px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
}

.xp-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.xp-label {
  font-size: 13px;
  font-weight: 700;
  color: #f9d71c;
}

.xp-pct {
  font-size: 12px;
  font-weight: 700;
  color: #a29bfe;
}

.xp-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}

.xp-bar-fill {
  height: 100%;
  width: 72%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6c5ce7, #a29bfe, #f9d71c);
  animation: xp-shimmer 2s ease-in-out infinite alternate;
}

@keyframes xp-shimmer {
  from { box-shadow: 0 0 4px rgba(162,155,254,0.4); }
  to   { box-shadow: 0 0 14px rgba(249,215,28,0.5); }
}

/* =====================================================
   14. COUNTDOWN TIMER BADGE
===================================================== */

.countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a0a2e, #0d1b2a);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
  font-weight: 800;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  box-shadow: 0 0 18px rgba(239,68,68,0.1);
}

.countdown-badge i {
  color: #f87171;
  font-size: 14px;
}

.cd-sep {
  background: rgba(239,68,68,0.15);
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid rgba(239,68,68,0.2);
  color: #f87171;
}

.cd-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #94a3b8;
  font-weight: 600;
}

/* =====================================================
   15. TAG STACK BADGE
===================================================== */

.tag-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tag-chip {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: transform 0.2s;
}

.tag-chip:hover {
  transform: translateY(-2px);
}

.tag-chip.blue {
  background: rgba(59,130,246,0.12);
  color: #93c5fd;
  border: 1px solid rgba(59,130,246,0.25);
}

.tag-chip.purple {
  background: rgba(139,92,246,0.12);
  color: #c4b5fd;
  border: 1px solid rgba(139,92,246,0.25);
}

.tag-chip.green {
  background: rgba(34,197,94,0.1);
  color: #86efac;
  border: 1px solid rgba(34,197,94,0.2);
}

.tag-chip.orange {
  background: rgba(249,115,22,0.12);
  color: #fdba74;
  border: 1px solid rgba(249,115,22,0.25);
}

/* =====================================================
   16. AURORA GLOW BADGE
===================================================== */

.aurora-badge {
  padding: 13px 26px;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 2px;
  position: relative;
  background: linear-gradient(135deg,
    #0ea5e9 0%, #8b5cf6 40%, #ec4899 70%, #06b6d4 100%);
  background-size: 300% 300%;
  animation: aurora-shift 5s ease-in-out infinite;
  box-shadow:
    0 0 20px rgba(139,92,246,0.35),
    0 0 40px rgba(14,165,233,0.2);
}

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

/* 17. AI STATUS BADGE */
.ai-status-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(123,97,255,0.12);
  border: 1px solid rgba(123,97,255,0.3);
  color: #a78bfa; font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
}
.ai-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #7c3aed;
  animation: ai-blink 1.4s ease-in-out infinite;
}
@keyframes ai-blink {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.4; transform:scale(0.7); }
}

/* 18. BETA TAG */
.beta-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 6px;
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.3);
  color: #fbbf24; font-size: 11px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
}

/* 19. VERSION CHIP */
.version-chip {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 700;
  border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.version-chip .vc-label { background: #3b82f6; color: #fff; padding: 6px 10px; }
.version-chip .vc-num   { background: rgba(255,255,255,0.06); color: #cbd5e1; padding: 6px 12px; }

/* 20. STREAK BADGE */
.streak-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px;
  background: linear-gradient(135deg, #1c0a00, #2d1200);
  border: 1px solid rgba(251,113,0,0.4);
  color: #fb923c; font-weight: 800; font-size: 14px;
  box-shadow: 0 0 18px rgba(251,113,0,0.12);
}
.streak-flame {
  font-size: 18px; display: inline-block;
  animation: flicker 1s ease-in-out infinite alternate;
}
@keyframes flicker {
  0%   { transform: scaleY(1) rotate(-2deg); }
  100% { transform: scaleY(1.12) rotate(2deg); }
}

/* 21. TRUST SCORE BADGE */
.trust-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 14px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.25);
}
.trust-num   { font-size: 22px; font-weight: 800; color: #34d399; line-height: 1; }
.trust-meta  { display: flex; flex-direction: column; gap: 2px; }
.trust-label { font-size: 10px; font-weight: 700; color: #6ee7b7; letter-spacing: 1px; text-transform: uppercase; }
.trust-sub   { font-size: 10px; color: rgba(110,231,183,0.6); }

/* 22. NEW ARRIVAL BADGE */
.new-arrival-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: 1px; color: #fff;
  position: relative;
  background: linear-gradient(135deg, #179eff, #375fff);
}
.new-arrival-badge::before {
  content: ""; position: absolute; inset: -2px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ec4899, #f97316);
  z-index: -1; filter: blur(6px); opacity: 0.5;
  animation: new-glow 2s ease-in-out infinite alternate;
}
@keyframes new-glow { from{opacity:0.3} to{opacity:0.7} }

/* 23. PERMISSION CHIPS */
.perm-set  { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.perm-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
}
.perm-chip.read  { background: rgba(59,130,246,0.1); color: #93c5fd; border: 1px solid rgba(59,130,246,0.2); }
.perm-chip.write { background: rgba(234,179,8,0.1);  color: #fde047; border: 1px solid rgba(234,179,8,0.2); }
.perm-chip.admin { background: rgba(239,68,68,0.1);  color: #fca5a5; border: 1px solid rgba(239,68,68,0.2); }

/* 24. TYPING INDICATOR BADGE */
.typing-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8; font-size: 13px; font-weight: 600;
}
.dots { display: flex; gap: 4px; align-items: center; }
.dot  { width: 6px; height: 6px; border-radius: 50%; background: #64748b; animation: bounce 1.2s ease-in-out infinite; }
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%,60%,100% { transform: translateY(0); opacity: 0.5; }
  30%          { transform: translateY(-5px); opacity: 1; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  width: 100%;              /* span full width */
  margin: 0;                /* remove sidebar offset */
  background: #111;
  color: #aaa;
  margin-top: 60px;
  padding: 0;
  clear: both;              /* ensures it sits below floated elements */
  z-index: 5;               /* keeps it layered correctly */
}


.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
  gap: 40px;
  padding: 56px 48px 40px;
  max-width: 1300px;         /* limit width */
  margin: auto;              /* center it */
}


.footer-logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  color: #888;
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition), transform var(--transition);
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.footer-col ul li a:hover {
  color: var(--accent);
  text-decoration: underline;
  transform: translateY(-2px);
  transform: translateX(3px);
  text-shadow: 0 0 8px rgba(235, 104, 53, 0.4);
}

.footer-col ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.footer-col ul li a:hover::after {
  width: 100%;
}

.footer-socials {
.socials a {
  transition: all 0.3s ease;
}

.socials a:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 12px rgba(235, 104, 53, 0.35);
}


.footer-col ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.footer-col ul li a:hover::after {
  width: 100%;
}

.socials a {
  transition: all 0.3s ease;
}

.socials a:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 12px rgba(235, 104, 53, 0.35);
}

.footer-col ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.footer-col ul li a:hover::after {
  width: 100%;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 1rem;
  flex-wrap: wrap; 
}

.footer-socials a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  color: white;

  transition: 0.3s ease;
}

.footer-socials a:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
}

.newsletter-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  background: #1e1e1e;
  border: 1px solid #2a2a2a;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition);
}

.newsletter-form input:focus {
  border-color: var(--accent);
}

.newsletter-form button {
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.newsletter-form button:hover {
  background: #d45c28;
}

.footer-bottom {
  border-top: 1px solid #1e1e1e;
  padding: 20px 48px;
  text-align: center;
  font-size: 13px;
  color: #555;
}
/* RESPONSIVE */

@media(max-width:900px){

  .sidebar{
    display:none;
  }

  .topbar,
  .main-home{

    margin-left:0;

    left:0;
  }

}

@media(max-width:768px){

  .topbar{

    flex-direction:column;

    height:auto;

    gap:16px;

    padding:18px;
  }

  .search-box{
    width:100%;
  }

  .main-home{

    padding:160px 20px 40px;
  }

  .hero-stats{
    flex-direction:column;
  }

}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.badge-solid {
  background: #333;
  color: #fff;
}

.badge-outline {
  border: 1px solid #333;
  color: #333;
  background: transparent;
}

.badge-gradient {
  background: linear-gradient(135deg, #06b6d4, #9333ea);
  color: #fff;
}

.badge-gradient {
  background: linear-gradient(135deg, #06b6d4, #9333ea);
  color: #fff;
}

.badge-sm { font-size: 10px; padding: 2px 6px; }
.badge-md { font-size: 12px; padding: 4px 10px; }
.badge-lg { font-size: 14px; padding: 6px 14px; }

.badge-success { background: #22c55e; color: #fff; }
.badge-danger { background: #ef4444; color: #fff; }
.badge-warning { background: #f59e0b; color: #fff; }

.badge-pulse {
  position: relative;
}

.badge-pulse::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  border: 2px solid currentColor;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
body {
  padding-bottom: 120px; /* give space equal to footer height */
}
/* =========================================
VERIFIED BADGE

.verified-badge{
  display:flex;
  align-items:center;
  gap:8px;
  background:#e8fff2;
  color:#00b86b;
  padding:10px 18px;
  border-radius:30px;
  font-weight:700;
  font-size:13px;
  box-shadow:0 8px 20px rgba(0,184,107,0.15);
}

/* =========================================
GRADIENT BADGE

.gradient-badge{
  padding:12px 22px;
  border-radius:30px;
  font-size:13px;
  font-weight:700;
  color:white;
  background:linear-gradient(
    135deg,
    #7b61ff,
    #eb6835,
    #00c6ff
  );
  background-size:300% 300%;
  animation:gradientMove 5s ease infinite;
  box-shadow:0 0 25px rgba(123,97,255,0.4);
}

@keyframes gradientMove{
  0%{
    background-position:0% 50%;
  }

  50%{
    background-position:100% 50%;
  }

  100%{
    background-position:0% 50%;
  }
}

/* =========================================
SALE BADGE

.sale-badge{
  background:#ff3d57;
  color:white;
  padding:12px 24px;
  border-radius:14px;
  font-size:14px;
  font-weight:800;
  letter-spacing:1px;
  transform:rotate(-6deg);
  box-shadow:0 12px 25px rgba(255,61,87,0.3);
}

/* =========================================
AI BADGE

.ai-badge{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 22px;
  border-radius:30px;
  background:rgba(0,255,255,0.08);
  border:1px solid rgba(0,255,255,0.3);
  color:#6ff;
  font-weight:700;
  backdrop-filter:blur(12px);
  box-shadow:0 0 25px rgba(0,255,255,0.15);
}

/* =========================================
BETA BADGE

.beta-badge{
  background:#eef2ff;
  color:#5b5ff8;
  padding:10px 20px;
  border-radius:10px;
  font-size:13px;
  font-weight:800;
  letter-spacing:1px;
  border:1px solid rgba(91,95,248,0.2);
}

/* =========================================
VIP BADGE

.vip-badge{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 22px;
  border-radius:30px;
  background:linear-gradient(
    135deg,
    #ffcf40,
    #ff9d00
  );
  color:#111;
  font-weight:800;
  letter-spacing:0.5px;
  box-shadow:
    0 0 20px rgba(255,193,7,0.4),
    0 10px 30px rgba(255,157,0,0.25);
}

/* =========================================
NEW PROFESSIONAL BADGES

.security-badge{
  display:flex;
  align-items:center;
  gap:8px;
  padding:12px 20px;
  border-radius:999px;
  background:linear-gradient(135deg,#0f172a,#1e293b);
  color:#38bdf8;
  font-weight:700;
  letter-spacing:.5px;
  box-shadow:0 0 20px rgba(56,189,248,.25);
}

.trending-badge{
  padding:12px 20px;
  border-radius:999px;
  background:linear-gradient(135deg,#ff6b00,#ff3d00);
  color:#fff;
  font-weight:800;
  display:flex;
  align-items:center;
  gap:8px;
  box-shadow:0 10px 30px rgba(255,98,0,.3);
}

.pro-badge{
  display:flex;
  align-items:center;
  gap:8px;
  padding:12px 22px;
  border-radius:999px;
  background:linear-gradient(135deg,#7b61ff,#9f7aea);
  color:#fff;
  font-weight:700;
  box-shadow:0 0 20px rgba(123,97,255,.35);
}

.featured-badge{
  display:flex;
  align-items:center;
  gap:8px;
  padding:11px 20px;
  border-radius:999px;
  background:#fff7ed;
  color:#ea580c;
  border:1px solid #fdba74;
  font-weight:700;
}

.nft-badge{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 20px;
  border-radius:14px;
  background:linear-gradient(135deg,#111827,#4f46e5);
  color:#fff;
  font-weight:700;
  box-shadow:0 0 25px rgba(99,102,241,.4);
}

.cloud-badge{
  display:flex;
  align-items:center;
  gap:8px;
  padding:12px 20px;
  border-radius:999px;
  background:linear-gradient(135deg,#e0f2fe,#bae6fd);
  color:#0369a1;
  font-weight:700;
}

.elite-badge{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 24px;
  border-radius:999px;
  background:linear-gradient(135deg,#facc15,#ca8a04);
  color:#111827;
  font-weight:800;
  box-shadow:0 0 25px rgba(250,204,21,.35);
}

.dev-badge{
  display:flex;
  align-items:center;
  gap:8px;
  padding:12px 18px;
  border-radius:10px;
  background:#111827;
  color:#22c55e;
  font-weight:700;
  font-family:monospace;
  border:1px solid rgba(34,197,94,.3);
}


/* =========================================
NEW PROFESSIONAL BADGES

.enterprise-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 22px;
  border-radius:14px;
  background:linear-gradient(135deg,#1f2937,#111827);
  color:#fff;
  font-weight:700;
  letter-spacing:1px;
  box-shadow:0 10px 30px rgba(0,0,0,0.35);
}

.verified-pro-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 22px;
  border-radius:999px;
  background:linear-gradient(135deg,#2563eb,#60a5fa);
  color:#fff;
  font-weight:700;
  box-shadow:0 8px 25px rgba(37,99,235,0.35);
}

.startup-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 22px;
  border-radius:16px;
  background:linear-gradient(135deg,#ff6b2c,#ffb347);
  color:#fff;
  font-weight:800;
  letter-spacing:1px;
  box-shadow:0 10px 28px rgba(255,107,44,0.35);
}

.api-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 20px;
  border-radius:12px;
  border:2px solid #06b6d4;
  background:#ecfeff;
  color:#0f172a;
  font-weight:700;
}

.gold-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 24px;
  border-radius:16px;
  background:linear-gradient(135deg,#f59e0b,#fde68a);
  color:#111827;
  font-weight:800;
  box-shadow:0 10px 30px rgba(245,158,11,0.35);
}

.payment-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 20px;
  border-radius:999px;
  background:#dcfce7;
  color:#166534;
  font-weight:700;
  border:1px solid #86efac;
}

.analytics-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 22px;
  border-radius:14px;
  background:linear-gradient(135deg,#7c3aed,#a855f7);
  color:#fff;
  font-weight:700;
  box-shadow:0 10px 30px rgba(124,58,237,0.35);
}

.delivery-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 20px;
  border-radius:14px;
  background:linear-gradient(135deg,#10b981,#34d399);
  color:#fff;
  font-weight:700;
  box-shadow:0 10px 25px rgba(16,185,129,0.35);
}
