@import url('https://fonts.cdnfonts.com/css/pp-neue-montreal');
@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@100..900&family=Inter:wght@100..900&display=swap');

:root{
  --bg: #f4f2ea;
  --text: #101111;
  --text-soft: #5a615f;
  --white: #ffffff;
  --green: #c0e24e;
  --green-dark: #0a5e63;
  --green-deep: #153539;
  --line: rgba(16,17,17,0.08);
  --shadow: 0 20px 60px rgba(0,0,0,0.14);
  --header-offset: 92px;
}

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

html{
  scroll-behavior: smooth;
}

body{
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a{
  color: inherit;
  text-decoration: none;
}

ion-icon{
  pointer-events: none;
}

.magnetic-inner{
  display: inline-block;
  will-change: transform;
}

/* PAGE */
.orders-main{
  padding-top: calc(var(--header-offset) + 1rem);
}

.orders-hero{
  padding: 1rem 0 1rem;
}

.orders-content{
  padding: 0 0 2rem;
}

/* HERO */
.orders-shell{
  width: min(1400px, calc(100% - 2rem));
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 36px;
  background: linear-gradient(135deg, #153539 0%, #0c1615 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(0,0,0,0.16);
}

.orders-shell::before{
  content: "";
  position: absolute;
  top: -10%;
  right: -5%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,226,78,0.18), transparent 65%);
  pointer-events: none;
}

.orders-topbar,
.orders-hero-grid{
  position: relative;
  z-index: 1;
}

.orders-topbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.orders-breadcrumb{
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
  color: rgba(255,255,255,.75);
  font-family: "Geist Mono", sans-serif;
  font-size: .78rem;
}

.orders-breadcrumb strong{
  color: #fff;
}

.orders-back{
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  font-family: "Geist Mono", sans-serif;
  font-size: .78rem;
}

.orders-hero-grid{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: end;
}

.section-kicker,
.footer-kicker,
.footer-label,
.current-kicker{
  font-family: "Geist Mono", sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  opacity: .72;
}

.orders-title{
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: .95;
  font-weight: 600;
  margin-top: 1rem;
  max-width: 980px;
}

.orders-sub{
  margin-top: 1rem;
  max-width: 760px;
  color: rgba(255,255,255,.74);
  font-family: "Geist Mono", sans-serif;
  line-height: 1.8;
}

.orders-side-card{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 28px;
  backdrop-filter: blur(8px);
  min-width: 260px;
  padding: 1.2rem;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  align-items: start;
}

.orders-side-icon{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(192,226,78,.18);
  border: 1px solid rgba(192,226,78,.28);
  color: #233122;
  font-size: 1.1rem;
}

.orders-side-copy{
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.orders-side-copy strong{
  font-size: 2rem;
  line-height: 1;
  color: #fff;
}

.orders-side-copy span{
  color: rgba(255,255,255,.74);
  font-family: "Geist Mono", sans-serif;
  font-size: .8rem;
  line-height: 1.6;
}

/* LIST */
.orders-list-shell{
  width: min(1400px, calc(100% - 2rem));
  margin-inline: auto;
}

.orders-list{
  display: grid;
  gap: 1rem;
}

.order-card{
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.1rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

.order-left{
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.order-id{
  font-family: "Geist Mono", sans-serif;
  color: #2d3633;
  font-weight: 700;
  font-size: .9rem;
}

.order-meta{
  color: #6a726f;
  font-size: .92rem;
  font-family: "Geist Mono", sans-serif;
  line-height: 1.7;
}

.order-meta b{
  color: #111;
}

.order-meta-row{
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.order-status-row{
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.badge{
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(16,17,17,.10);
  background: rgba(16,17,17,.04);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Geist Mono", sans-serif;
}

.badge.ok{
  border-color: rgba(34,197,94,.25);
  background: rgba(34,197,94,.12);
}

.badge.mid{
  border-color: rgba(245,158,11,.25);
  background: rgba(245,158,11,.12);
}

.badge.bad{
  border-color: rgba(239,68,68,.25);
  background: rgba(239,68,68,.12);
}

.order-open-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(16,17,17,.08);
  background: rgba(16,17,17,.03);
  color: #111;
  font-family: "Geist Mono", sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease;
}

.order-open-btn:hover{
  transform: translateY(-1px);
  background: rgba(16,17,17,.05);
}

.empty{
  padding: 2.5rem 1.5rem;
  border-radius: 24px;
  border: 1px dashed rgba(16,17,17,.16);
  color: #6a726f;
  text-align: center;
  background: #ffffff;
  box-shadow: var(--shadow);
  font-family: "Geist Mono", sans-serif;
}

.empty ion-icon{
  font-size: 38px;
}

.empty p + p{
  margin-top: .5rem;
}

/* TOAST */
.toast-container{
  position: fixed;
  top: calc(var(--header-offset) + 1rem);
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1100;
}

.toast{
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
  color: #fff;
  font-family: "Geist Mono", sans-serif;
  background: rgba(239,68,68,.18);
  border: 1px solid rgba(239,68,68,.25);
  transform: translateX(30px);
  opacity: 0;
  animation: toastIn .25s forwards;
}

@keyframes toastIn{
  to{
    transform: translateX(0);
    opacity: 1;
  }
}

/* FOOTER */
.site-footer{
  padding: 0 0 1rem;
}

.footer-shell{
  width: min(1400px, calc(100% - 2rem));
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 4rem);
  background: #111715;
  color: #f4f4ef;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
}

.footer-shell::before{
  content: "";
  position: absolute;
  top: -10%;
  right: -5%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,226,78,0.2), transparent 62%);
  pointer-events: none;
}

.footer-top{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand h2{
  font-size: clamp(2rem, 4.4vw, 4.4rem);
  line-height: .95;
  font-weight: 600;
  max-width: 760px;
  margin: 1rem 0;
}

.footer-text{
  max-width: 620px;
  color: rgba(255,255,255,.75);
  margin-bottom: 1.75rem;
  font-family: "Geist Mono", sans-serif;
  line-height: 1.8;
}

.footer-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 1rem 1.35rem;
  border-radius: 999px;
  background: var(--green);
  color: #111;
  font-weight: 800;
  font-family: "Geist Mono", sans-serif;
  position: relative;
  overflow: hidden;
}

.footer-links{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.footer-col{
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.footer-col a,
.footer-col span,
.footer-bottom a,
.footer-bottom p{
  color: rgba(255,255,255,.78);
}

.footer-bottom{
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
}

.footer-bottom-links{
  display: flex;
  gap: 1rem;
}

/* GSAP */
.orders-reveal{
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
}


/* TOOLS */
.orders-tools-shell{
  width: min(1400px, calc(100% - 2rem));
  margin: 0 auto 1rem;
}

.orders-tools{
  background: linear-gradient(135deg, #151515 0%, #101113 100%);
  color: #fff;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
}

.tools-top,
.tools-bottom{
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.tools-top{
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.tools-bottom{
  align-items: center;
}

.tools-label,
.tools-search-copy{
  font-family: "Geist Mono", sans-serif;
  font-size: .9rem;
  color: rgba(255,255,255,.92);
}

.status-filters{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .75rem;
}

.filter-chip{
  padding: .75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: #fff;
  font-family: "Geist Mono", sans-serif;
  font-size: .78rem;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}

.filter-chip:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.07);
}

.filter-chip.active{
  background: rgba(192,226,78,.14);
  border-color: rgba(192,226,78,.35);
  color: #f3ffd0;
}

.tools-search-box{
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: 1;
  justify-content: flex-end;
}

.search-input-wrap{
  position: relative;
  width: min(420px, 100%);
  min-width: 260px;
}

.search-input-wrap input{
  width: 100%;
  min-height: 48px;
  padding: 0 3rem 0 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.14);
  color: #fff;
  outline: none;
  font-family: "Geist Mono", sans-serif;
}

.search-input-wrap input::placeholder{
  color: rgba(255,255,255,.58);
}

.search-input-wrap ion-icon{
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.72);
  font-size: 1rem;
}

.tools-action-btn,
.tools-clear-btn{
  min-height: 48px;
  padding: 0 1rem;
  border-radius: 14px;
  font-family: "Geist Mono", sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease;
}

.tools-action-btn{
  border: none;
  background: var(--green-deep);
  color: #fff;
}

.tools-action-btn:hover{
  transform: translateY(-1px);
  background: #1b4e55;
}

.tools-clear-btn{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: #fff;
}

.tools-clear-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.07);
}

/* RESPONSIVE */
@media (max-width: 1100px){
  .footer-top{
    grid-template-columns: 1fr;
  }

  .footer-links{
    grid-template-columns: 1fr 1fr;
    display: none;
  }
}

@media (max-width: 900px){
  .orders-hero-grid{
    grid-template-columns: 1fr;
    align-items: start;
  }

  .orders-side-card{
    min-width: 0;
  }

  .order-card{
    grid-template-columns: 1fr;
    align-items: start;
  }
  
  .tools-top,
  .tools-bottom{
    flex-direction: column;
    align-items: stretch;
  }

  .status-filters{
    justify-content: flex-start;
  }

  .tools-search-box{
    flex-direction: column;
    align-items: stretch;
  }

  .search-input-wrap{
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 768px){
  :root{
    --header-offset: 84px;
  }

  .orders-main{
    padding-top: calc(var(--header-offset) + .5rem);
  }

  .orders-shell,
  .orders-list-shell,
  .footer-shell{
    width: min(1400px, calc(100% - 1rem));
  }

  .orders-shell,
  .orders-side-card,
  .order-card,
  .footer-shell{
    border-radius: 26px;
  }

  .orders-topbar{
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links{
    grid-template-columns: 1fr;
  }

  .footer-bottom{
    flex-direction: column;
    align-items: flex-start;
  }

  .orders-tools-shell{
    width: min(1400px, calc(100% - 1rem));
  }

  .orders-tools{
    border-radius: 22px;
  }
}

@media (max-width: 560px){
  .orders-title{
    font-size: 2.7rem;
  }

  .toast-container{
    left: .75rem;
    right: .75rem;
    top: calc(var(--header-offset) + .75rem);
  }
}
