*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
 
:root {
  --red: #8b0000;
  --red-light: #a80000;
  --red-pale: #fdf2f2;
  --red-pale2: #f9e5e5;
  --white: #ffffff;
  --black: #1a1a1a;
  --gray: #6b7280;
  --light: #f8f8f8;
  --border: #e8e0e0;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
}
 
html { scroll-behavior: smooth; 
    margin: 0;
    padding: 0;}
body { font-family: var(--font);
     background: var(--white); 
     color: var(--black); 
     overflow-x: clip; 
     margin: 0;
     padding: 0;
    }
 
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 100;
  }
  .overlay.active {
    opacity: 1;
    pointer-events: all;
  }
 

  .sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 270px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 110;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', sans-serif;
  }
  .sidebar.open {
    transform: translateX(0);
  }
 

  .sb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #e5e7eb;
  }

 .nav-item.logout{
    font-size: 13px;
    color: #6b7280;
    border-radius: 10px;
  }
  .sb-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
  }
  .close-btn {
    width: 30px; height: 30px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #6b7280;
  }
  .close-btn:hover { background: #f3f4f6; }
 
  /* Profile */
  .profile-section {
    padding: 20px 16px 16px;
    border-bottom: 1px solid #e5e7eb;
  }
  .avatar {
    padding: 12px 20px;
    border-radius: 20px;
    background: #4A1B0C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #F5C4B3;
    margin-bottom: 10px;
  }
  .profile-name {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
    text-decoration: none;
     background: none;
     border: none;
     padding: 0;
   
  }
  .profile-email {
    font-size: 20px;
    font-weight: 500;
    color: #5f0606;
  }
  .role-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
  }
  .role-pill.registrar {
     background: #FAECE7;
      color: #993C1D; 
    }
  .role-pill.cashier   {
     background: #E1F5EE; 
     color: #0F6E56;
     }
  .role-dot {
     width: 6px;
      height: 6px;
       border-radius: 50%;
     }
  .role-pill.registrar .role-dot {
     background: #D85A30; 
    }
  .role-pill.cashier   .role-dot { 
    background: #1D9E75;
 }
 

  .section-label {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 14px 16px 6px;
    background-color: #ffffff;
  }
 

  .nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    cursor: pointer;
    color: #111827;
    font-size: 14px;
    transition: background 0.15s;
    text-decoration: none;
    background-color: #ffffff;
    background-color: #ffffff;
  }
  .nav-item:hover, .nav-item.active {
     background: #777777;
     }
  .nav-item.logout span { 
    font-size: 13px; 
    color: #8b0000; 
     font-weight: 600;
      }

 
  .nav-icon {
    width: 32px; 
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .nav-icon.blue  { 
    background: #E6F1FB; 
}
  .nav-icon.amber {
     background: #FAEEDA;
     }
  .nav-icon.coral {
     background: #FAECE7;
     }
  .nav-icon.teal  {
     background: #E1F5EE;
     }
  .nav-icon.gray  { 
    background: #f3f4f6; 
}
 
  .history-badge {
    margin-left: auto;
    font-size: 11px;
    background: #f3f4f6;
    color: #6b7280;
    padding: 2px 7px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
  }
 

  .role-section { 
    padding: 10px 16px 4px; 
    background-color: #ffffff;
    
}
  .role-label {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
  }
  .role-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .role-btn {
    padding: 8px 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Segoe UI', sans-serif;
  }
  .role-btn:hover { 
    background: #f3f4f6; 
}
  .role-btn.selected.reg  {
     background: #FAECE7; 
     border-color: #F0997B;
      color: #993C1D; 
    }
  .role-btn.selected.cash { 
    background: #E1F5EE; 
    border-color: #5DCAA5;
     color: #0F6E56;
     }
 

  .sb-footer {
    margin-top: auto;
    padding: 14px 16px;
    border-top: 1px solid #e5e7eb;
   
    background-color: #ffffff;
    color: #000000;
    border-radius: 0 0 8px 8px;


  }
 

  .hamburger {
    width: 36px; 
    height: 36px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 8px;
    padding: 0;
    display: flex;
    
  }
  .hamburger:hover {
      background: #c20000;
     }
  .bar {
    width: 20px; 
    height: 2px;
    background: #eef0f4;
    border-radius: 2px;
    transition: all 0.25s;
  }
  .hamburger.active .bar:nth-child(1) { 
    transform: translateY(7px) rotate(45deg);
 }
  .hamburger.active .bar:nth-child(2) { 
    opacity: 0; transform: scaleX(0);
 }
  .hamburger.active .bar:nth-child(3) {
     transform: translateY(-7px) rotate(-45deg);
     }
.profile-section{
    background: #bebebe;
    color: #fff9f7;
    
}

.nav-item.active{
   background: #777777;
    color: #000000;
}

nav {
  position: fixed;
  top: 0; 
  left: 0;
   right: 0; 
   z-index: 100;
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: 1rem 5%;
  background: rgba(139,0,0,0.97);
  backdrop-filter: blur(8px);
}
.nav-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-img {
    max-height: 95px;
    width: 150px;
    filter: brightness(0) invert(1);
    transition: transform 0.2s ease;
}

.nav-logo-img:hover {
    transform: scale(1.05);
}

.nav-name {
  font-size: 1rem; 
  font-weight: 700;
   color: white;
  letter-spacing: 0.05em; 
  text-transform: uppercase;
}
.nav-name span { font-size: 0.55rem;
     display: block; 
     font-weight: 400;
      opacity: 0.6; 
      letter-spacing: 0.08em; 
      margin-top: -2px; 
    }
.nav-links {
     display: flex; 
    gap: 2rem;
     list-style: none; 
    }
.nav-links a {
  font-size: 0.9rem;
   font-weight: 500; 
   color: rgba(255,255,255,0.75);
  text-decoration: none; 
  transition: color 0.2s;
}
.nav-links a:hover { 
    color: white;
 }
.nav-btn {
    background: rgba(255, 255, 255, 0.15);
    color: rgb(255, 255, 255);
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 500;
    padding: 6px 12px;
    transition: background 0.2s, color 0.2s;
}

.hero {
  background: var(--red);
  padding: 10rem 5% 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; 
  top: -50%; 
  left: -20%;
  width: 80%;
   height: 200%;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 0.75rem; 
  font-weight: 600;
  letter-spacing: 0.1em; 
  text-transform: uppercase;
  padding: 0.4rem 1rem;
   border-radius: 100px;
  margin-bottom: 1.8rem;
}
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 800; 
  color: white;
  line-height: 1.05;
   letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}
.hero h1 em { 
    font-style: normal;
     opacity: 0.55;
     }
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  max-width: 480px;
  margin: 0 auto 2.5rem; 
  line-height: 1.7;
}
.hero-actions {
  display: flex; 
  justify-content: center; 
  gap: 1rem; 
  flex-wrap: wrap;
}
.btn-white {
  background: white; 
  color: var(--red);
  font-size: 0.95rem; 
  font-weight: 700;
  padding: 0.9rem 2rem; 
  border-radius: 10px;
  text-decoration: none; 
  transition: transform 0.15s;
  letter-spacing: 0.01em;
}
.btn-white:hover {
     transform: translateY(-1px);
     }
.btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.35);
  color: white;
  font-size: 0.95rem; 
  font-weight: 500;
  padding: 0.9rem 2rem; 
  border-radius: 10px;
  text-decoration: none;
   transition: background 0.2s;
}
.btn-ghost:hover { 
    background: rgba(255,255,255,0.1); 
}
 

.stats {
  background: var(--white);
  padding: 4rem 5%;
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid; 
  grid-template-columns: repeat(3, 1fr);
  gap: 1px; 
  background: var(--border);
  border: 1px solid var(--border); 
  border-radius: 16px;
  overflow: hidden; 
  max-width: 860px; margin: 0 auto;
}
.stat-card {
  background: var(--white);
  padding: 2.5rem 2rem; 
  text-align: center;
}
.stat-num {
  font-size: 2.8rem;
   font-weight: 800;
  color: var(--red); 
  line-height: 1;
  margin-bottom: 0.4rem; 
  letter-spacing: -0.02em;
}

.stat .l {
    font-size: 18px;
    font-weight: 500;
    color: #666;
    margin-top: 4px;

}

.steps {
    background-color: #8B0000;
    border-radius: none;
    padding: 60px 32px;
    max-width:none;
    margin: 0;
    color: rgb(255, 255, 255);
    flex-grow: 1;
  
}

.steps h2 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    text-align: center;
}

.section-header p {
    margin: 0;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.75);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}
.step-card {
  background: var(--white);
  border: none;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.step-card:hover { 
 background: var(--light);
 }

.step-num {
  width: 44px; 
  height: 44px; 
  border-radius: 50%;
  background: var(--red); 
  color: white;
  font-size: 20px; 
  font-weight: 800;
  display: flex; 
  align-items: center; 
  justify-content: center;
  margin: 0 auto 1.2rem;
}
.step-icon { 
    font-size: 1.6rem;
     margin-bottom: 0.6rem;
     }
.step-name {
     font-size: 1.5rem;
      font-weight: 700;
       color: var(--black); 
       margin-bottom: 0.4rem;
     }
.step-desc { 
    font-size: 1.25rem; 
    color: var(--gray);
    line-height: 1.6;
 }
 

.about { 
    background: var(--white); 
    padding: 6rem 5%;
 }
.about-inner {
  display: grid; 
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
 align-items: center;
 max-width: 1100px;
 margin: 0 auto;
}
.about-visual {
  background: var(--red);
  border-radius: 20px; 
  padding: 3rem;
  color: white; 
  text-align: center;
  position: relative; 
  overflow: hidden;
}

.about-logo{
  max-height: 100px;
  width: 300px;
  filter: brightness(0) invert(1);
}

.about-visual::before {
  content: '';
  position: absolute; 
  bottom: -40px; 
  right: -40px;
  width: 180px; 
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.about-visual-icon { 
    font-size: 3.5rem; 
    margin-bottom: 1rem; 
}
.about-visual h3 {
  font-size: 1.5rem; 
  font-weight: 800;
  letter-spacing: -0.01em;
   margin-bottom: 0.6rem;
}
.about-visual p { 
    font-size: 0.88rem;
     opacity: 0.7; 
     line-height: 1.6;
     }
     
.about-tag-list {
  display: flex; 
  flex-wrap: wrap;
   gap: 0.5rem; 
   margin-top: 1.5rem;
    justify-content: center;
}
.section-tag{
font-size: 60px;
}

.about-tag {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: white; 
  font-size: 0.75rem; 
  font-weight: 600;
  padding: 0.3rem 0.8rem; 
  border-radius: 100px;
}

.about-text .section-header { 
    text-align: left;
     margin-bottom: 1.5rem;
     }
.about-text .section-header h2 { 
    text-align: left; 
}
.about-text .section-header p { 
    margin: 0; 
    text-align: left; 
    max-width: 100%; 
}
.about-body {
  font-size: 20px; 
  color: var(--black);
   line-height: 1.8;
  margin-bottom: 1.5rem;
}
.about-body strong {
     color: var(--black); 
     font-weight: 600; 
    }
.about-values {
    display: flex; 
    flex-direction: column;
     gap: 0; 
    }
.about-value {
  display: flex; 
  align-items: flex-start;
   gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.about-value:first-child { 
    border-top: 1px solid var(--border);
 }
.about-value-dot {
  width: 8px;
   height: 8px; 
   border-radius: 50%;
  background: var(--red); 
  margin-top: 6px; 
  flex-shrink: 0;
}
.about-value-text strong {
     font-size: 30px;
      font-weight: 700;
       color: var(--black); 
       display: block; 
       margin-bottom: 0.2rem; 
    }
.about-value-text span {
     font-size: 20px;
      color: var(--black); 
      line-height: 1.5;
     }
 .nav-links a.checked {
    color: white;
    font-weight: 700;
}

footer {
  display: block;
  width: 100%;
  background: #6b0000;
  padding: 1.5rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  box-sizing: border-box;
  margin: 0;
}
.footer-brand {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.3); }
 

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1, .hero p, .hero-actions, .about-value {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0; /* Starts hidden for animation */
}

.hero p { animation-delay: 0.2s; }
.hero-actions { animation-delay: 0.4s; }
.about-value:nth-child(1) { animation-delay: 0.2s; }
.about-value:nth-child(2) { animation-delay: 0.4s; }
.about-value:nth-child(3) { animation-delay: 0.6s; }

/* Smooth hover effects for buttons */
.btn-white, .btn-ghost {
    transition: all 0.3s ease;
}
.btn-white:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* ── Trust & Reviews Section ── */
.ql-trust { background: var(--white); padding: 72px 5%; }
.ql-inner { max-width: 1100px; margin: 0 auto; }

.ql-badge {
  display: inline-block;
  background: rgba(139,0,0,0.08);
  border: 1px solid rgba(139,0,0,0.18);
  color: var(--red);
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px; margin-bottom: 16px;
}
.ql-title { font-size: 38px; font-weight: 800; color: var(--black); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 12px; }
.ql-title em { color: var(--red); font-style: normal; }
.ql-sub { color: var(--gray); font-size: 16px; margin: 0 0 52px; }

/* VS grid */
.ql-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 72px; }
.ql-vs-col { border-radius: 16px; padding: 28px 28px 20px; }
.ql-vs-col.old { background: var(--red-pale); border: 1px solid var(--red-pale2); }
.ql-vs-col.new { background: var(--red); }
.ql-vs-label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 100px; display: inline-block; margin-bottom: 22px;
}
.ql-vs-col.old .ql-vs-label { background: rgba(139,0,0,0.1); color: var(--red); }
.ql-vs-col.new .ql-vs-label { background: rgba(255,255,255,0.15); color: #fff; }
.ql-vs-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.ql-vs-icon {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px; font-size: 11px; font-weight: 700;
}
.ql-vs-col.old .ql-vs-icon { background: rgba(139,0,0,0.12); color: var(--red); }
.ql-vs-col.new .ql-vs-icon { background: rgba(255,255,255,0.18); color: #fff; }
.ql-vs-col.old .ql-vs-text { color: var(--gray); font-size: 14px; line-height: 1.55; }
.ql-vs-col.new .ql-vs-text { color: rgba(255,255,255,0.82); font-size: 14px; line-height: 1.55; }

/* Reviews */
.ql-rev-title { font-size: 26px; font-weight: 800; color: var(--black); letter-spacing: -.01em; margin-bottom: 6px; }
.ql-rev-sub { color: var(--gray); font-size: 15px; margin-bottom: 32px; }
.ql-rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ql-rev-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px;
  transition: box-shadow .2s, transform .2s;
}
.ql-rev-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(139,0,0,.1); }
.ql-rev-hd { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ql-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--red-pale); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.ql-rev-name { font-size: 14px; font-weight: 700; color: var(--black); }
.ql-rev-dept { font-size: 12px; color: var(--gray); }
.ql-stars { color: var(--red); font-size: 14px; letter-spacing: 2px; margin-bottom: 10px; }
.ql-rev-text { font-size: 14px; color: var(--gray); line-height: 1.65; }

/* Stats bar */
.ql-stats-bar {
  display: flex; align-items: center; justify-content: center;
  margin-top: 64px; background: var(--red-pale);
  border: 1px solid var(--red-pale2); border-radius: 16px; overflow: hidden;
}
.ql-stat { flex: 1; text-align: center; padding: 28px 16px; border-right: 1px solid #f0dada; }
.ql-stat:last-child { border-right: none; }
.ql-stat-num { font-size: 28px; font-weight: 800; color: var(--red); letter-spacing: -.02em; }
.ql-stat-lbl { font-size: 13px; color: var(--gray); margin-top: 4px; }

@media (max-width: 720px) {
  .ql-vs { grid-template-columns: 1fr; }
  .ql-rev-grid { grid-template-columns: 1fr; }
  .ql-stats-bar { flex-wrap: wrap; }
  .ql-stat { border-right: none; border-bottom: 1px solid #f0dada; }
}


@media (max-width: 800px) {
    .hamburger { display: flex; }
    .nav-links {  display: flex; 
        gap: 12px; 
        width: 100%; 
        justify-content: center; 
        margin-top: 8px;
        flex-wrap: wrap; }
    .nav { padding: 1rem 5%; flex-wrap: wrap; }
     .nav-links a { font-size: 13px; }
 .nav-links a { font-size: 13px; }

    .steps-grid { grid-template-columns: 1fr 1fr; }
    .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .stats-grid { grid-template-columns: 1fr; }
    footer { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero { padding: 7rem 5% 4rem; }
    .hero h1 { font-size: 2rem; }
    .steps-grid { grid-template-columns: 1fr; }
}

/* Smooth page load */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero, .stats, .steps, .about {
    animation: fadeInUp 0.6s ease-out;
}
/* Button hover scale */
.btn-white, .btn-ghost {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-white:hover, .btn-ghost:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
/* Card hover */
.stat-card, .step-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.stat-card:hover, .step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}