:root{

  --bg:#0d0d0d;
  --card:#171717;

  --green:#00ff88;
  --yellow:#ffe066;
  --red:#ff5d73;
  --blue:#5da9ff;

  --border:#2c2c2c;

  --transition:.2s linear;
}

/* =========================================================
   RESET
========================================================= */

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

body{

  background:
    linear-gradient(
      180deg,
      #050505,
      #101010
    );

  color:white;

  font-family:"Press Start 2P",cursive;

  min-height:100vh;

  overflow-x:hidden;
}

/* =========================================================
   SIDEBAR
========================================================= */

.sidebar{

  position:fixed;

  top:0;
  left:0;

  width:240px;
  height:100vh;

  background:#080808;

  border-right:4px solid #1f1f1f;

  padding:28px 20px;

  display:flex;
  flex-direction:column;
  justify-content:space-between;

  z-index:1000;
}

.sidebar-brand{

  display:flex;
  align-items:center;

  gap:14px;

  margin-bottom:40px;
}

.brand-box{

  width:18px;
  height:18px;

  background:var(--green);

  box-shadow:
    4px 0 var(--green),
    0 4px var(--green),
    4px 4px var(--green);
}

.brand-text{

  color:var(--green);

  font-size:18px;
}

.sidebar-nav{

  display:flex;
  flex-direction:column;

  gap:16px;
}

.sidebar-nav a{

  text-decoration:none;

  color:#d0d0d0;

  border:4px solid #1f1f1f;

  padding:16px 18px;

  display:flex;
  align-items:center;

  gap:14px;

  font-size:11px;

  transition:var(--transition);
}

.sidebar-nav a:hover,
.sidebar-nav .active{

  background:var(--green);

  color:black;
}

.pixel-sidebar-btn{

  width:100%;

  padding:18px;

  border:none;

  background:var(--yellow);

  color:black;

  border:4px solid white;

  font-family:"Press Start 2P",cursive;

  cursor:pointer;

  transition:var(--transition);
}

.pixel-sidebar-btn:hover{

  transform:translate(-3px,-3px);

  box-shadow:6px 6px 0 #000;
}

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

.main-wrapper{

  margin-left:240px;
}
/* =========================================================
   NAVBAR
========================================================= */

.navbar{

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

  padding:28px 60px;

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

  background:#0b0b0b;
}

.logo{

  display:flex;
  align-items:center;

  gap:14px;

  font-size:20px;

  color:var(--green);
}

.pixel-box{

  width:18px;
  height:18px;

  background:var(--green);

  box-shadow:
    4px 0 var(--green),
    0 4px var(--green),
    4px 4px var(--green);
}

.nav-links{

  display:flex;

  gap:26px;
}

.nav-links a{

  text-decoration:none;

  color:#cfcfcf;

  font-size:12px;

  transition:var(--transition);
}

.nav-links a:hover{
  color:var(--green);
}

/* =========================================================
   HERO
========================================================= */

.hero-section{

  padding:100px 20px 70px;

  text-align:center;
}

.hero-badge{

  display:inline-block;

  padding:16px 20px;

  border:4px solid var(--green);

  background:#111;

  margin-bottom:40px;

  color:var(--green);

  font-size:12px;
}

.hero-section h1{

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

  line-height:1.3;

  margin-bottom:30px;
}

.hero-section h1 span{
  color:var(--green);
}

.hero-section p{

  max-width:760px;

  margin:auto;

  color:#c0c0c0;

  line-height:2;

  font-size:14px;

  margin-bottom:40px;
}

.hero-actions{

  display:flex;
  justify-content:center;

  gap:20px;

  flex-wrap:wrap;
}

/* =========================================================
   BUTTONS
========================================================= */

.pixel-btn,
.pixel-outline,
.view-btn,
.copy-btn{

  border:none;

  cursor:pointer;

  font-family:"Press Start 2P",cursive;

  transition:var(--transition);
}

.pixel-btn{

  padding:18px 24px;

  background:var(--green);

  color:black;

  border:4px solid #fff;
}

.pixel-outline{

  padding:18px 24px;

  background:transparent;

  color:var(--yellow);

  border:4px solid var(--yellow);
}

.view-btn,
.copy-btn{

  flex:1;

  padding:14px;

  font-size:11px;

  border:4px solid white;
}

.view-btn{

  background:#1d1d1d;

  color:white;
}

.copy-btn{

  background:var(--green);

  color:black;
}

.pixel-btn:hover,
.pixel-outline:hover,
.view-btn:hover,
.copy-btn:hover{

  transform:translate(-3px,-3px);

  box-shadow:6px 6px 0 #000;
}

/* =========================================================
   FILTER
========================================================= */

.filter-bar{

  display:flex;
  justify-content:center;

  gap:16px;

  flex-wrap:wrap;

  padding-bottom:40px;
}

.filter-btn{

  padding:14px 18px;

  background:#151515;

  border:4px solid #2a2a2a;

  color:white;

  cursor:pointer;

  font-family:"Press Start 2P",cursive;

  font-size:10px;

  transition:var(--transition);
}

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

  background:var(--green);

  color:black;
}

/* =========================================================
   GRID
========================================================= */

.pixel-grid{

  padding:0 60px 70px;

  display:grid;

  grid-template-columns:
    repeat(auto-fill,minmax(340px,1fr));

  gap:26px;
}

/* =========================================================
   CARD
========================================================= */

.pixel-card{

  background:var(--card);

  border:4px solid #2d2d2d;

  padding:24px;

  transition:var(--transition);
}

.pixel-card:hover{

  transform:translate(-5px,-5px);

  box-shadow:10px 10px 0 #000;
}

.card-top{

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

  margin-bottom:24px;
}

.pixel-tag,
.pixel-level{

  padding:10px 12px;

  font-size:10px;

  border:3px solid white;
}

.pixel-tag{

  background:var(--blue);

  color:black;
}

.pixel-level{

  background:var(--yellow);

  color:black;
}

.pixel-card h3{

  font-size:22px;

  margin-bottom:20px;

  line-height:1.6;
}

.pixel-card p{

  color:#c0c0c0;

  font-size:12px;

  line-height:2;

  margin-bottom:24px;
}

/* =========================================================
   PREVIEW
========================================================= */

.preview-box{

  min-height:200px;

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

  background:#0b0b0b;

  border:4px solid #2b2b2b;

  margin-bottom:24px;
}

.dark{
  background:#050505;
}

/* ARCADE BUTTON */

.arcade-btn{

  padding:18px 30px;

  background:var(--red);

  color:white;

  border:4px solid white;

  font-family:"Press Start 2P",cursive;

  cursor:pointer;
}

/* BADGE */

.pixel-badge{

  padding:16px 24px;

  background:var(--yellow);

  color:black;

  border:4px solid white;
}

/* PROFILE */

.pixel-profile{
  text-align:center;
}

.pixel-avatar{

  width:90px;
  height:90px;

  margin:auto;

  background:var(--green);

  border:4px solid white;

  margin-bottom:20px;
}

.pixel-profile h4{

  font-size:14px;

  margin-bottom:14px;
}

.pixel-profile span{

  font-size:10px;

  color:#c0c0c0;
}

/* MENU */

.pixel-menu{

  display:flex;
  flex-direction:column;

  gap:16px;
}

.pixel-menu a{

  text-decoration:none;

  color:var(--green);

  border:4px solid var(--green);

  padding:14px 18px;

  text-align:center;

  font-size:11px;
}

/* LOADER */

.pixel-loader{

  display:flex;

  gap:12px;
}

.pixel-loader span{

  width:22px;
  height:22px;

  background:var(--green);

  animation:bounce 1s infinite;
}

.pixel-loader span:nth-child(2){
  animation-delay:.2s;
}

.pixel-loader span:nth-child(3){
  animation-delay:.4s;
}

@keyframes bounce{

  0%,100%{
    transform:translateY(0);
  }

  50%{
    transform:translateY(-14px);
  }

}

/* ALERT */

.pixel-alert{

  padding:20px 24px;

  background:var(--red);

  border:4px solid white;

  color:white;

  animation:blink 1s infinite;
}

@keyframes blink{

  0%,100%{
    opacity:1;
  }

  50%{
    opacity:.4;
  }

}

/* =========================================================
   ACTIONS
========================================================= */

.card-actions{

  display:flex;

  gap:12px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:900px){

  .navbar{

    flex-direction:column;

    gap:24px;
  }

  .pixel-grid{
    padding:0 24px 60px;
  }

}

@media(max-width:768px){

  .hero-section{
    padding:70px 24px 50px;
  }

  .hero-section h1{
    font-size:54px;
  }

  .pixel-grid{
    grid-template-columns:1fr;
  }

  .card-actions{
    flex-direction:column;
  }

}
@media(max-width:900px){

  .sidebar{
    display:none;
  }

  .main-wrapper{
    margin-left:0;
  }

}

.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #00e0ff;
  color: #000;
  border: none;
  border-radius: 50%;
  padding: 14px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: none; /* hidden by default */
  transition: background 0.3s ease, transform 0.2s ease;
}

.scroll-top-btn:hover {
  background: #00bcd4;
  transform: translateY(-3px);
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  margin-left: 250px;
  background: #111;
  color: #aaa;
  padding: 0;
  margin-top: 60px;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
  gap: 40px;
  padding: 56px 48px 40px;
  max-width: 100%;
}

.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);
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  text-decoration: none;
  font-size: 14px;
  transition: all var(--transition);
}

.socials a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.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;
}

/* Base layout */
.layout {
  display: flex;
}

/* Sidebar */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #0b0b0b;
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
}

/* Main content */
.main-wrapper {
  margin-left: 240px; /* offset for sidebar */
  flex: 1;
  padding: 20px;
}

/* Hamburger toggle */
.menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  font-size: 22px;
  color: var(--green);
  cursor: pointer;
  z-index: 1001;
}

/* Responsive behavior */
@media (max-width: 992px) {
  .sidebar {
    left: -240px; /* hide sidebar */
    transition: left 0.3s ease;
  }
  .sidebar.active {
    left: 0; /* show when toggled */
  }
  .main-wrapper {
    margin-left: 0; /* full width content */
  }
  .menu-toggle {
    display: block; /* show hamburger */
  }
}

.pixel-progress {
  width: 100%;
  height: 24px;
  background: #11141b;
  border: 4px solid #00e0ff;
  display: flex;
  align-items: center;
}

.pixel-progress .progress-fill {
  height: 100%;
  background: #00e0ff;
  box-shadow: inset -4px -4px 0 #000;
  transition: width 0.3s ease;
}
/* =========================================================
   EXTRA PIXEL COMPONENTS CSS

.pixel-switch {
  position: relative;
  display: inline-block;
  width: 80px;
  height: 38px;
}

.pixel-switch input {
  display: none;
}

.slider {
  position: absolute;
  inset: 0;
  background: #222;
  border: 4px solid #fff;
  cursor: pointer;
}

.slider::before {
  content: "";
  position: absolute;
  width: 26px;
  height: 22px;
  background: #00ff99;
  left: 4px;
  top: 4px;
  transition: 0.2s;
}

.pixel-switch input:checked + .slider::before {
  transform: translateX(38px);
}

.pixel-input {
  background: #111;
  border: 4px solid #00ff99;
  color: #00ff99;
  padding: 14px;
  font-family: 'Press Start 2P', cursive;
  width: 100%;
  outline: none;
}

.pixel-progress {
  width: 100%;
  height: 28px;
  border: 4px solid #fff;
  background: #111;
  overflow: hidden;
}

.pixel-progress-fill {
  width: 70%;
  height: 100%;
  background: #00ff99;
  animation: loadPixel 2s infinite alternate;
}

@keyframes loadPixel {
  from {
    width: 20%;
  }
  to {
    width: 85%;
  }
}

.pixel-tooltip-box {
  position: relative;
}

.pixel-tooltip {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  background: #00ff99;
  color: #000;
  padding: 10px;
  font-size: 10px;
  white-space: nowrap;
  border: 3px solid #fff;
  opacity: 0;
  transition: 0.2s;
}

.pixel-tooltip-box:hover .pixel-tooltip {
  opacity: 1;
}

.pixel-modal {
  background: #111;
  border: 4px solid #00ff99;
  padding: 20px;
  text-align: center;
}

.pixel-modal h4 {
  margin-bottom: 12px;
  color: #00ff99;
}

.pixel-stats {
  width: 100%;
}

.stat-row {
  margin-bottom: 12px;
}

.stat-row span {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
}

.bar {
  height: 18px;
  border: 3px solid #fff;
  background: #222;
}

.fill {
  height: 100%;
}

.hp {
  width: 80%;
  background: #ff4757;
}

.xp {
  width: 60%;
  background: #00ff99;
}

.pixel-chat {
  background: #fff;
  color: #000;
  padding: 18px;
  border: 4px solid #000;
  position: relative;
  font-size: 10px;
}

.pixel-chat::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 24px;
  border-width: 12px 12px 0;
  border-style: solid;
  border-color: #000 transparent transparent;
}

.pixel-team {
  display: flex;
  gap: 10px;
}

.team-avatar {
  width: 50px;
  height: 50px;
  background: #00ff99;
  border: 4px solid #fff;
  image-rendering: pixelated;
}

/* =========================================================
   NEW PIXEL COMPONENTS
========================================================= */

/* TABS */
.pixel-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 4px solid var(--border);
  padding-bottom: 4px;
}
.pixel-tab {
  padding: 8px 12px;
  background: #1d1d1d;
  color: #fff;
  border: 4px solid #1d1d1d;
  border-bottom: none;
  font-family: "Press Start 2P", cursive;
  font-size: 10px;
  cursor: pointer;
}
.pixel-tab.active {
  background: var(--card);
  border-color: white;
  color: var(--green);
}

/* CHECKBOX */
.pixel-checkbox-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 12px;
}
.pixel-checkbox-container input {
  display: none;
}
.pixel-checkmark {
  width: 24px;
  height: 24px;
  background: #000;
  border: 4px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pixel-checkbox-container input:checked + .pixel-checkmark::after {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--green);
}

/* RADIO */
.pixel-radio-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 12px;
}
.pixel-radio-container input {
  display: none;
}
.pixel-radio {
  width: 24px;
  height: 24px;
  background: #000;
  border: 4px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pixel-radio-container input:checked + .pixel-radio::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--yellow);
  border-radius: 50%;
}

/* SLIDER */
.pixel-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: #000;
  border: 2px solid white;
  outline: none;
}
.pixel-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 24px;
  background: var(--blue);
  border: 4px solid white;
  cursor: pointer;
}

/* SELECT / DROPDOWN */
.pixel-select {
  padding: 12px;
  background: #000;
  color: var(--green);
  border: 4px solid white;
  font-family: "Press Start 2P", cursive;
  font-size: 10px;
  cursor: pointer;
  outline: none;
}

/* ACCORDION */
.pixel-accordion {
  width: 100%;
  border: 4px solid white;
}
.pixel-accordion-header {
  background: #1d1d1d;
  padding: 12px;
  font-size: 10px;
  cursor: pointer;
  border-bottom: 4px solid white;
  display: flex;
  justify-content: space-between;
}
.pixel-accordion-content {
  background: #000;
  padding: 12px;
  font-size: 10px;
  line-height: 1.6;
}

/* SKELETON */
.pixel-skeleton {
  width: 100%;
  height: 20px;
  background: #222;
  margin-bottom: 8px;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

/* BREADCRUMBS */
.pixel-breadcrumbs {
  display: flex;
  gap: 8px;
  font-size: 10px;
}
.pixel-breadcrumbs a {
  color: var(--blue);
  text-decoration: none;
}
.pixel-breadcrumbs span {
  color: white;
}

/* SPINNER */
.pixel-spinner {
  width: 32px;
  height: 32px;
  border: 4px solid var(--border);
  border-top: 4px solid var(--green);
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* TOAST */
.pixel-toast {
  padding: 16px;
  background: var(--green);
  color: black;
  border: 4px solid white;
  font-size: 10px;
  font-weight: bold;
}

/* STEPPER */
.pixel-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pixel-step {
  width: 24px;
  height: 24px;
  background: #111;
  border: 4px solid white;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}
.pixel-step.completed {
  background: var(--green);
  color: black;
}
.pixel-step-line {
  flex: 1;
  height: 4px;
  background: white;
}

/* DIVIDER */
.pixel-divider {
  width: 100%;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    white,
    white 8px,
    transparent 8px,
    transparent 16px
  );
}

/* PAGINATION */
.pixel-pagination {
  display: flex;
  gap: 8px;
}
.pixel-page {
  padding: 8px 12px;
  background: #111;
  border: 4px solid white;
  color: white;
  font-size: 10px;
  cursor: pointer;
}
.pixel-page.active {
  background: var(--yellow);
  color: black;
}

/* RATING */
.pixel-rating {
  display: flex;
  gap: 4px;
  color: var(--yellow);
  font-size: 20px;
}
.pixel-star {
  cursor: pointer;
}
.pixel-star.empty {
  color: #333;
}
