/* =========================================================
   LOADERS.CSS — UIverse Premium Loaders Page
   ========================================================= */

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

.main{
  margin-left:240px;

  padding:42px;

  background:var(--body-bg);

  min-height:100vh;
}

body.dark-mode .main{
  background:#0f0f12;
}
/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  background: linear-gradient(160deg, #141428 0%, #1c1c35 100%);
  display: flex;
  flex-direction: column;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  border-right: 1px solid rgba(255,255,255,0.05);
  transition: transform var(--transition);
}

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

.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: #8a9bc0;
  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: rgba(255,255,255,0.07);
  color: #fff;
  transform: translateX(3px);
}

.sidebar-nav li.active a {
  background: linear-gradient(90deg, rgba(235,104,53,0.2) 0%, rgba(235,104,53,0.05) 100%);
  color: var(--accent);
  border-left: 3px solid var(--accent);
}

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

.sidebar-footer a {
  color: #6a7a94;
  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;
  backdrop-filter: blur(2px);
}

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

.main h1{
  font-size:clamp(54px,7vw,92px);

  line-height:.92;
  letter-spacing:-5px;

  margin-bottom:34px;

  color:var(--text-primary);

  position:relative;
}

.main h1::after{
  content:"";

  position:absolute;
  bottom:-12px;
  left:0;

  width:120px;
  height:6px;

  border-radius:999px;

  background:
    linear-gradient(
      90deg,
      var(--accent),
      #ff9d73
    );
}

/* =========================================================
   TOOLBAR — Loaders
========================================================= */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  padding: 12px 18px;
  background: rgba(108, 92, 231, 0.05);
  border: 1px solid rgba(108, 92, 231, 0.12);
  border-radius: 20px;
}

.toolbar-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0 16px;
  height: 40px;
}

.toolbar-search i {
  color: #64748b;
  font-size: 14px;
}

.toolbar-search input {
  border: none;
  outline: none;
  background: transparent;
  color: #111827;
  font-size: 14px;
  width: 100%;
}

body.dark-mode .toolbar-search input {
  color: #fff;
}

.toolbar-search input::placeholder {
  color: #94a3b8;
}

.sort-dropdown-wrapper {
  position: relative;
}

.sort-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: 999px;
  color: #6c5ce7;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.sort-trigger:hover {
  background: rgba(108, 92, 231, 0.16);
  color: #7c6cf7;
}

.sort-trigger.open {
  background: rgba(108, 92, 231, 0.2);
  border-color: rgba(108, 92, 231, 0.4);
}

.sort-chevron {
  font-size: 10px;
  transition: transform 0.2s;
}

.sort-trigger.open .sort-chevron {
  transform: rotate(180deg);
}

.sort-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #1e293b;
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: 14px;
  padding: 6px;
  min-width: 160px;
  z-index: 100;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.sort-menu.open {
  display: block;
}

.sort-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #94a3b8;
  transition: background 0.15s;
  -webkit-user-select: none;
  user-select: none;
}

.sort-option:hover {
  background: rgba(108, 92, 231, 0.1);
  color: #fff;
}

.sort-option input[type="radio"] {
  display: none;
}

.radio-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.sort-option input[type="radio"]:checked ~ .radio-dot {
  border-color: #6c5ce7;
  background: #6c5ce7;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.sort-option input[type="radio"]:checked ~ .radio-dot::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}

.sort-option:has(input[type="radio"]:checked) {
  color: #fff;
  background: rgba(108, 92, 231, 0.12);
}

.results-count {
  font-size: 13px;
  color: #64748b;
  margin-left: auto;
  white-space: nowrap;
}

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

.loaders-grid{
  display:grid;

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

  gap:28px;
}

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

.component-card{
  position:relative;
  overflow:hidden;

  background:
    radial-gradient(circle at top right,
    rgba(235,104,53,.08),
    transparent 26%),
    var(--card-bg);

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

  border-radius:30px;

  padding:28px;

  transition:all .28s cubic-bezier(.4,0,.2,1);
}

.component-card::before{
  content:"";

  position:absolute;
  inset:0;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.03),
      transparent
    );

  pointer-events:none;
}

.component-card:hover{
  transform:translateY(-8px);

  border-color:rgba(235,104,53,.18);

  box-shadow:
    0 24px 44px rgba(0,0,0,.08);
}

body.dark-mode .component-card:hover{
  box-shadow:
    0 24px 44px rgba(0,0,0,.34);
}

.component-card h3{
  font-size:32px;

  line-height:1.1;
  letter-spacing:-1px;

  margin-bottom:24px;

  color:var(--text-primary);
}

/* =========================================================
   DEMO BOX
========================================================= */

.loader-demo-box{
  position:relative;
  overflow:hidden;

  min-height:190px;

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

  margin-bottom:22px;

  border-radius:24px;

  background:
    linear-gradient(
      135deg,
      rgba(108,92,231,.05),
      rgba(235,104,53,.04)
    );

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

body.dark-mode .loader-demo-box{
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.03),
      rgba(255,255,255,.01)
    );
}

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

.actions{
  display:flex;
  gap:14px;
}

.actions button{
  flex:1;

  padding:14px 18px;

  border:none;

  border-radius:16px;

  font-size:14px;
  font-weight:700;

  cursor:pointer;

  transition:var(--transition);
}

.actions button:first-child{
  background:rgba(108,92,231,.12);
  color:#6c5ce7;
}

.actions button:last-child{
  background:rgba(235,104,53,.12);
  color:var(--accent);
}

.actions button:hover{
  transform:translateY(-2px);
}

/* =========================================================
   CODE BLOCK
========================================================= */

.code-block{
  max-height:0;

  overflow:hidden;

  margin-top:0;

  transition:.35s ease;

  border-radius:20px;
}

.code-block.show{
  max-height:300px;

  margin-top:22px;

  padding:22px;

  background:#111827;

  color:#f8f8f2;
}

.code-block code,
.code-block{
  font-size:13px;
  line-height:1.8;
}

/* =========================================================
   SPIN LOADER
========================================================= */

.loader-spin{
  width:58px;
  height:58px;

  border-radius:50%;

  border:5px solid rgba(108,92,231,.12);

  border-top-color:#6c5ce7;

  animation:spin .8s linear infinite;
}

/* =========================================================
   GRADIENT LOADER
========================================================= */

.loader-gradient{
  width:58px;
  height:58px;

  border-radius:50%;

  border:5px solid rgba(108,92,231,.1);

  border-top-color:#fd79a8;
  border-right-color:#6c5ce7;

  animation:spin 1s linear infinite;
}

/* =========================================================
   DOTS
========================================================= */

.loader-dots{
  display:flex;
  gap:10px;
}

.loader-dots span{
  width:14px;
  height:14px;

  border-radius:50%;

  background:
    linear-gradient(
      135deg,
      #6c5ce7,
      #a29bfe
    );

  animation:bounce .6s infinite alternate;
}

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

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


/* ===============================
   GLASS LOADER
================================= */

.glass-loader{
  width:60px;
  height:60px;
  border-radius:50%;
  border:6px solid rgba(255,255,255,0.15);
  border-top:6px solid #7c5cff;
  animation:spin 1s linear infinite;
  backdrop-filter:blur(10px);
}

/* ===============================
   NEON LOADER
================================= */

.neon-loader{
  width:65px;
  height:65px;
  border-radius:50%;
  border:5px solid transparent;
  border-top-color:#00f7ff;
  border-right-color:#7c5cff;
  animation:spin 0.8s linear infinite;
  box-shadow:
    0 0 15px #00f7ff,
    0 0 35px #7c5cff;
}

/* ===============================
   ORBIT LOADER
================================= */

.orbit-loader{
  width:70px;
  height:70px;
  border:2px solid rgba(255,255,255,0.15);
  border-radius:50%;
  position:relative;
  animation:spin 4s linear infinite;
}

.orbit-loader span{
  position:absolute;
  top:-6px;
  left:50%;
  transform:translateX(-50%);
  width:14px;
  height:14px;
  background:#7c5cff;
  border-radius:50%;
  box-shadow:0 0 15px #7c5cff;
}

/* ===============================
   WAVE LOADER
================================= */

.wave-loader{
  display:flex;
  align-items:flex-end;
  gap:6px;
  height:50px;
}

.wave-loader span{
  width:8px;
  height:50px;
  border-radius:20px;
  background:#7c5cff;
  transform-origin: bottom center;
  transform: scaleY(0.3);
  animation:wave 1s infinite ease-in-out;
}

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

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

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

.wave-loader span:nth-child(5){
  animation-delay:0.4s;
}

@keyframes wave{
  0%,100%{
    transform: scaleY(0.3);
  }
  50%{
    transform: scaleY(1);
  }
}

/* ===============================
   DNA LOADER
================================= */

.dna-loader{
  display:flex;
  gap:6px;
}

.dna-loader span{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#7c5cff;
  animation:dna 0.8s infinite alternate;
}

.dna-loader span:nth-child(even){
  animation-delay:0.4s;
}

@keyframes dna{
  from{
    transform:translateY(-12px);
    opacity:0.5;
  }
  to{
    transform:translateY(12px);
    opacity:1;
  }
}

/* ===============================
   3D CUBE LOADER
================================= */

.cube-loader{
  width:45px;
  height:45px;
  background:#7c5cff;
  animation:cube 1.2s infinite ease-in-out;
  border-radius:12px;
  box-shadow:0 10px 30px rgba(124,92,255,0.35);
}

@keyframes cube{
  0%{
    transform:rotate(0deg) scale(1);
  }
  50%{
    transform:rotate(180deg) scale(1.2);
  }
  100%{
    transform:rotate(360deg) scale(1);
  }
}
/* =========================================================
   PULSE
========================================================= */

.loader-pulse{
  width:64px;
  height:64px;

  border-radius:50%;

  background:
    linear-gradient(
      135deg,
      #6c5ce7,
      #fd79a8
    );

  animation:pulse 1s infinite ease-in-out;

  box-shadow:
    0 0 40px rgba(108,92,231,.28);
}

/* =========================================================
   PROGRESS BAR
========================================================= */

.loader-bar-wrap{
  width:260px;
  height:10px;

  border-radius:999px;

  overflow:hidden;

  background:rgba(108,92,231,.12);
}

.loader-bar{
  width:40%;
  height:100%;

  border-radius:999px;

  background:
    linear-gradient(
      90deg,
      #6c5ce7,
      #fd79a8
    );

  animation:slide 1.4s infinite;
}

/* =========================================================
   SKELETON
========================================================= */

.skeleton-card{
  width:140px;

  border-radius:18px;

  padding:16px;

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

  backdrop-filter:blur(10px);
}

body.dark-mode .skeleton-card{
  background:rgba(255,255,255,.04);
}

.skeleton-avatar,
.skeleton-line{
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,.06),
      rgba(255,255,255,.18),
      rgba(255,255,255,.06)
    );

  background-size:200% 100%;

  animation:shimmer 1.5s infinite linear;

  border-radius:999px;
}

.skeleton-avatar{
  width:52px;
  height:52px;

  margin-bottom:14px;
}

.skeleton-line{
  height:10px;

  margin-bottom:10px;
}

.l1{ width:72%; }
.l2{ width:92%; }
.l3{ width:58%; }

/* =========================================================
   AUDIO BARS
========================================================= */

.loader-bars{
  display:flex;
  align-items:end;
  gap:6px;

  height:54px;
}

.loader-bars span{
  width:7px;

  border-radius:999px;

  background:
    linear-gradient(
      180deg,
      #6c5ce7,
      #fd79a8
    );

  animation:bars .8s infinite alternate;
}

.loader-bars span:nth-child(1){
  height:12px;
}

.loader-bars span:nth-child(2){
  height:24px;
  animation-delay:.1s;
}

.loader-bars span:nth-child(3){
  height:40px;
  animation-delay:.2s;
}

.loader-bars span:nth-child(4){
  height:24px;
  animation-delay:.3s;
}

.loader-bars span:nth-child(5){
  height:12px;
  animation-delay:.4s;
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes spin{
  to{
    transform:rotate(360deg);
  }
}

@keyframes bounce{
  to{
    transform:translateY(-10px);
  }
}

@keyframes pulse{
  50%{
    transform:scale(1.15);
  }
}

@keyframes slide{

  0%{
    transform:translateX(-100%);
  }

  100%{
    transform:translateX(320%);
  }

}

@keyframes bars{
  to{
    transform:scaleY(.5);
  }
}

@keyframes shimmer{

  0%{
    background-position:200% 0;
  }

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

}

/* ===============================
   INFINITY LOADER
================================= */

.infinity-loader {
  width: 70px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.infinity-loader div {
  position: absolute;
  width: 35px;
  height: 35px;
  border: 4px solid transparent;
  border-radius: 50%;
  border-top-color: #00f7ff;
  border-left-color: #7c5cff;
  animation: spin 1s infinite linear;
}

.infinity-loader div:nth-child(1) {
  left: 0;
}

.infinity-loader div:nth-child(2) {
  right: 0;
  animation-direction: reverse;
  border-top-color: #7c5cff;
  border-right-color: #00f7ff;
  border-left-color: transparent;
}

/* ===============================
   RIPPLE LOADER
================================= */

.ripple-loader {
  position: relative;
  width: 64px;
  height: 64px;
}

.ripple-loader div {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 60px;
  height: 60px;
  border: 4px solid #7c5cff;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 1.2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.ripple-loader div:nth-child(2) {
  animation-delay: -0.6s;
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  5% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* ===============================
   MORPHING BLOB LOADER
================================= */

.blob-loader {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #7c5cff, #fd79a8);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: blob-morph 2.5s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(124,92,255,0.35);
}

@keyframes blob-morph {
  0%,100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  25%     { border-radius: 58% 42% 38% 62% / 50% 65% 35% 50%; }
  50%     { border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%; }
  75%     { border-radius: 67% 33% 60% 40% / 40% 47% 53% 60%; }
}

/* ===============================
   CLOCK SPINNER LOADER
================================= */

.clock-loader {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(124,92,255,0.25);
  border-radius: 50%;
  position: relative;
}

.clock-loader::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 6px; height: 6px;
  background: #7c5cff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.clock-hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom center;
  border-radius: 3px;
  background: #7c5cff;
}

.clock-hand.hour {
  width: 3px;
  height: 18px;
  margin-left: -1.5px;
  animation: clock-h 6s linear infinite;
  opacity: 0.8;
}

.clock-hand.minute {
  width: 2px;
  height: 24px;
  margin-left: -1px;
  animation: clock-m 1.5s linear infinite;
  background: #fd79a8;
}

@keyframes clock-h { to { transform: rotate(360deg); } }
@keyframes clock-m { to { transform: rotate(360deg); } }

/* ===============================
   HEARTBEAT LOADER
================================= */

.heartbeat-loader {
  width: 180px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heartbeat-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.heartbeat-line {
  fill: none;
  stroke: #fd79a8;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: hb-draw 1.3s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(253,121,168,0.6));
}

@keyframes hb-draw {
  0%   { stroke-dashoffset: 220; opacity: 1; }
  70%  { stroke-dashoffset: 0;   opacity: 1; }
  90%  { stroke-dashoffset: 0;   opacity: 0.4; }
  100% { stroke-dashoffset: 0;   opacity: 0; }
}

/* ===============================
   TYPEWRITER DOTS LOADER
================================= */

.typewriter-loader {
  display: flex;
  gap: 8px;
  align-items: center;
}

.typewriter-loader span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #6c5ce7;
  animation: type-bounce 1s infinite ease-in-out;
}

.typewriter-loader span:nth-child(2) {
  animation-delay: 0.2s;
  background: #a29bfe;
}

.typewriter-loader span:nth-child(3) {
  animation-delay: 0.4s;
  background: #fd79a8;
}

@keyframes type-bounce {
  0%, 80%, 100% { transform: scale(0.55); opacity: 0.35; }
  40%           { transform: scale(1.25); opacity: 1; }
}

/* ===============================
   COMET TRAIL LOADER
================================= */

.comet-loader {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 3px solid rgba(124,92,255,0.1);
  position: relative;
  animation: spin 1.1s linear infinite;
}

.comet-loader::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: #7c5cff;
  border-radius: 50%;
  box-shadow:
    0 0 8px 3px rgba(124,92,255,0.8),
    0 0 20px 8px rgba(124,92,255,0.4);
}

.comet-loader::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 55%,
    rgba(124,92,255,0.55) 100%
  );
}

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

@media(max-width:768px){

  .main{
    margin-left:0;
    padding:24px;
  }

  .main h1{
    font-size:62px;
    letter-spacing:-3px;
  }

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

}

@media(max-width:600px){

  .actions{
    flex-direction:column;
  }

  .component-card{
    padding:22px;
  }

  .loader-demo-box{
    min-height:170px;
  }

}

/* ===============================
   SPINNING GEARS LOADER (#18)
================================= */

.icon-spin-loader {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-spin-loader i:first-child {
  font-size: 42px;
  color: #7c5cff;
  animation: spin 2s linear infinite;
  filter: drop-shadow(0 0 8px rgba(124,92,255,0.5));
}

.icon-spin-loader i:last-child {
  font-size: 20px;
  color: #fd79a8;
  position: absolute;
  bottom: 4px;
  right: 4px;
  animation: spin 1.2s linear infinite reverse;
  filter: drop-shadow(0 0 5px rgba(253,121,168,0.5));
}

/* ===============================
   ICON PULSE RING (#19)
================================= */

.icon-pulse-ring {
  position: relative;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-pulse-ring i {
  font-size: 26px;
  color: #ffd32a;
  z-index: 2;
  filter: drop-shadow(0 0 6px rgba(255,211,42,0.7));
  animation: icon-pulse-icon 1.4s ease-in-out infinite;
}

.icon-pulse-ring span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(255,211,42,0.6);
  animation: icon-pulse-ring-anim 1.4s ease-out infinite;
}

.icon-pulse-ring span:nth-child(3) {
  animation-delay: 0.55s;
  border-color: rgba(124,92,255,0.45);
}

@keyframes icon-pulse-ring-anim {
  0%   { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.9); opacity: 0; }
}

@keyframes icon-pulse-icon {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.18); }
}

/* ===============================
   CIRCULAR TEXT ORBIT (#20)
================================= */

.text-orbit-loader {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-orbit-loader svg {
  position: absolute;
  top: 0; left: 0;
  animation: spin 7s linear infinite;
}

.text-orbit-icon {
  font-size: 26px;
  color: #7c5cff;
  z-index: 2;
  animation: spin 2s linear infinite;
  filter: drop-shadow(0 0 7px rgba(124,92,255,0.55));
}

/* ===============================
   STACKED SQUARES (#21)
================================= */

.stacked-squares {
  position: relative;
  width: 54px;
  height: 54px;
}

.stacked-squares span {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 3px solid transparent;
  animation: stack-spin 2.4s cubic-bezier(.4,0,.2,1) infinite;
}

.stacked-squares span:nth-child(1) {
  border-color: #7c5cff;
  animation-delay: 0s;
  box-shadow: inset 0 0 0 1.5px rgba(124,92,255,0.12);
}

.stacked-squares span:nth-child(2) {
  inset: 9px;
  border-color: #fd79a8;
  animation-delay: -0.8s;
  border-radius: 7px;
}

.stacked-squares span:nth-child(3) {
  inset: 18px;
  border-color: #00f7ff;
  animation-delay: -1.6s;
  border-radius: 4px;
}

@keyframes stack-spin {
  0%   { transform: rotate(0deg) scale(1); }
  25%  { transform: rotate(90deg) scale(1.08); }
  50%  { transform: rotate(180deg) scale(1); }
  75%  { transform: rotate(270deg) scale(0.92); }
  100% { transform: rotate(360deg) scale(1); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  margin-left: var(--sidebar-w);
  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: black;
  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;   /* no underline by default */
  font-size: 14px;
  position: relative;      /* needed for custom underline */
  transition: color var(--transition);
}

.footer-col ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;            /* adjust underline position */
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

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

.footer-col ul li a:hover::after {
  width: 100%;             /* underline expands smoothly */
}


.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-rùadius: 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;
}

/* Tablet (≤ 992px) */
@media (max-width: 992px) {
  .sidebar {
    width: 240px;
  }
  .loader-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

/* Mobile (≤ 600px) */
@media (max-width: 600px) {
  /* Sidebar collapses into hamburger */
  .sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    height: 100%;
    transition: left 0.3s ease;
  }
  .sidebar.open {
    left: 0;
  }

  /* Loader cards stack vertically */
  .loader-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Cards full width */
  .loader-card {
    width: 100%;
    max-width: 100%;
    min-height: 200px;
    box-sizing: border-box;
  }

  /* Buttons touch-friendly */
  .loader-card button {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    box-sizing: border-box;
  }

  /* Scroll-to-top button */
  .scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: none;
  }
}
/* ================= HEXAGON LOADER ================= */

.hex-loader {
  width: 80px;
  height: 80px;
  position: relative;
  animation: rotateHex 2s linear infinite;
}

.hex-loader::before,
.hex-loader::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 4px solid #2563eb;
  clip-path: polygon(
    25% 5%,75% 5%,100% 50%,
    75% 95%,25% 95%,0 50%
  );
}

.hex-loader::after {
  transform: scale(.7);
  border-color: #7c3aed;
}

@keyframes rotateHex {
  to {
    transform: rotate(360deg);
  }
}

/* ================= DNA LOADER ================= */

.dna-loader {
  display: flex;
  gap: 6px;
}

.dna-loader span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2563eb;
  animation: dna 1s infinite ease-in-out;
}

.dna-loader span:nth-child(even){
  background:#8b5cf6;
}

.dna-loader span:nth-child(2){animation-delay:.1s}
.dna-loader span:nth-child(3){animation-delay:.2s}
.dna-loader span:nth-child(4){animation-delay:.3s}
.dna-loader span:nth-child(5){animation-delay:.4s}
.dna-loader span:nth-child(6){animation-delay:.5s}

@keyframes dna{
  50%{
    transform: translateY(-25px);
  }
}

/* ================= GLASS SPINNER ================= */

.glass-loader{
  width:70px;
  height:70px;
  border-radius:50%;
  border:6px solid rgba(255,255,255,.2);
  border-top-color:#38bdf8;
  backdrop-filter: blur(10px);
  animation:spin 1s linear infinite;
}

/* ================= AI THINKING LOADER ================= */

.ai-loader{
  display:flex;
  gap:12px;
}

.ai-loader span{
  width:14px;
  height:14px;
  border-radius:50%;
  background:#06b6d4;
  animation:aiPulse 1.2s infinite;
}

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

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

@keyframes aiPulse{
  50%{
    transform:scale(1.8);
    box-shadow:0 0 20px #06b6d4;
  }
}

/* ================= CUBE LOADER ================= */

.cube-loader{
  width:50px;
  height:50px;
  background:#2563eb;
  animation:cubeRotate 1.2s infinite ease;
}

@keyframes cubeRotate{
  50%{
    transform:rotate(180deg) scale(.5);
  }
  100%{
    transform:rotate(360deg);
  }
}

.loader-filters{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:30px;
}

.filter-btn{
  border:none;
  padding:12px 20px;
  border-radius:999px;
  cursor:pointer;
  background:#fff;
  box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.filter-btn.active{
  background:#2563eb;
  color:white;
}

.loader-search{
  margin-bottom:25px;
}

.loader-search input{
  width:100%;
  max-width:500px;
  padding:16px 20px;
  border-radius:14px;
  border:1px solid #dbeafe;
}

.favorite-btn{
  position:absolute;
  top:18px;
  right:18px;
  border:none;
  background:none;
  cursor:pointer;
  font-size:20px;
}

.favorite-btn.active{
  color:#ef4444;
}

/* ===============================
   GRADIENT RING CASCADE (#27)

.cascade-loader {
  position: relative;
  width: 70px;
  height: 70px;
}

.cascade-loader span {
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-radius: 50%;
  animation: cascade-spin 1.8s linear infinite;
}

.cascade-loader span:nth-child(1) {
  border-top-color: #7c5cff;
  border-right-color: #7c5cff;
}

.cascade-loader span:nth-child(2) {
  inset: 8px;
  border-bottom-color: #fd79a8;
  border-left-color: #fd79a8;
  animation-duration: 1.4s;
  animation-direction: reverse;
}

.cascade-loader span:nth-child(3) {
  inset: 16px;
  border-top-color: #00f7ff;
  border-right-color: #00f7ff;
  animation-duration: 1s;
}

@keyframes cascade-spin {
  to { transform: rotate(360deg); }
}

/* ===============================
   BOUNCING SQUARES (#28)

.bouncing-squares {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 60px;
}

.bouncing-squares span {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  animation: sq-bounce 0.6s infinite alternate ease-in-out;
}

.bouncing-squares span:nth-child(1) {
  background: #7c5cff;
  animation-delay: 0s;
}

.bouncing-squares span:nth-child(2) {
  background: #fd79a8;
  animation-delay: 0.15s;
}

.bouncing-squares span:nth-child(3) {
  background: #00f7ff;
  animation-delay: 0.3s;
}

@keyframes sq-bounce {
  0%   { transform: translateY(0) scale(1); }
  100% { transform: translateY(-30px) scale(0.85); }
}

/* ===============================
   CIRCULAR DASH (#29)

.circular-dash {
  width: 60px;
  height: 60px;
  animation: circular-dash-rotate 2s linear infinite;
}

.circular-dash svg {
  width: 100%;
  height: 100%;
}

.circular-dash circle {
  fill: none;
  stroke: #7c5cff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 90, 150;
  stroke-dashoffset: 0;
  animation: circular-dash-stroke 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(124,92,255,0.5));
}

@keyframes circular-dash-rotate {
  to { transform: rotate(360deg); }
}

@keyframes circular-dash-stroke {
  0%   { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
  50%  { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
  100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}
