:root {
  --gold: #F8D52A;
  --gold-light: #F0E8FF;
  --gold-dark: #6D28D9;
  --orange: #00D8D0;
  --orange-dark: #4C1D95;

  --black: #21133F;
  --gray-800: #33234F;
  --gray-600: #675A7D;
  --gray-400: #A79ABF;
  --gray-100: #F1ECFA;

  --white: #FFFFFF;
  --bg: #F7F4FF;

  --radius: 12px;
  --radius-lg: 18px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--black);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.shell {
  width: 100%;
  max-width: 980px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--white);
  display: flex;
  flex-direction: column;
  overflow: clip;
  box-shadow: 0 0 35px rgba(95, 60, 0, 0.08);
}

/* NAVIGATION */

.sticky-nav,
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #F2E4BF;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  min-width: 0;
}

.logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
}

.logo-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #5521A8;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: #F0E8FF;
  border: 1px solid #F4D66D;
  border-radius: 9px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 21px;
  height: 2px;
  background: #8F4A00;
  border-radius: 4px;
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  right: 12px;
  width: min(240px, calc(100vw - 28px));
  max-height: 75vh;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid #F0DFAF;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(92, 55, 0, 0.16);
  z-index: 110;
}

.dropdown.open {
  display: block;
}

.dropdown a {
  display: block;
  padding: 11px 15px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  text-decoration: none;
  border-bottom: 1px solid #F5EEDC;
}

.dropdown a:last-child {
  border-bottom: none;
}

.dropdown a:hover,
.dropdown a:focus-visible {
  background: #F0E8FF;
  color: #8F4A00;
}

/* MAIN CONTENT */

.scroll {
  flex: 1;
  min-width: 0;
  padding-bottom: 30px;
}

section[id] {
  scroll-margin-top: 78px;
}

/* HERO */

.hero {
  position: relative;
  isolation: isolate;
  padding: 30px 19px 27px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--white);
  background: linear-gradient(135deg, #351078 0%, #5B16B8 52%, #18064A 100%);
  border-bottom: 3px solid #00D8D0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      circle at 10% 0%,
      rgba(255, 255, 255, 0.28),
      transparent 42%
    );
  pointer-events: none;
}

.hero-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  border-radius: 19px;
  margin-bottom: 15px;
  background: #FFFFFF;
  box-shadow: 0 5px 16px rgba(105, 54, 0, 0.18);
}

.hero h1 {
  font-size: 1.55rem;
  line-height: 1.3;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 11px;
  text-wrap: balance;
}

.hero p {
  max-width: 340px;
  margin-bottom: 19px;
  font-size: 0.9rem;
  line-height: 1.75;
  color: #F0E8FF;
}

.hero .note {
  width: 100%;
  margin-top: 10px;
  text-align: left;
}

/* BUTTONS */

.btn-row {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-bottom: 10px;
}

.btn {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 10px;
  border-radius: var(--radius);
  font-size: 0.83rem;
  line-height: 1.4;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.btn-primary {
  color: #3D2600;
  background: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 3px 8px rgba(107, 58, 0, 0.12);
}

.btn-primary:hover {
  background: #F0E8FF;
}

.btn-outline {
  color: #402500;
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(89, 49, 0, 0.38);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.45);
}

.btn:active {
  transform: translateY(1px);
}

/* CONTENT SECTIONS */

.sec {
  margin: 13px 12px;
  padding: 20px 16px;
  background: var(--white);
  border: 1px solid #E8DFF6;
  border-radius: var(--radius-lg);
  box-shadow: 0 3px 12px rgba(95, 60, 0, 0.035);
}

.sec h2 {
  font-size: 1.08rem;
  line-height: 1.45;
  font-weight: 800;
  color: #5521A8;
  margin-bottom: 13px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold-light);
}

.sec h3 {
  font-size: 0.94rem;
  line-height: 1.5;
  font-weight: 750;
  color: #5521A8;
  margin: 17px 0 7px;
}

.sec p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--gray-600);
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}

.sec ul,
.sec ol {
  padding-left: 20px;
  margin: 8px 0 12px;
}

.sec li {
  font-size: 0.87rem;
  line-height: 1.8;
  color: var(--gray-600);
  margin-bottom: 5px;
  overflow-wrap: anywhere;
}

.sec a {
  color: #5B21B6;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.sec a:hover {
  color: #351078;
  text-decoration: underline;
}

/* TABLE OF CONTENTS */

.toc-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  counter-reset: toc;
}

.toc-list li {
  counter-increment: toc;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  margin: 0;
  border-bottom: 1px solid #E8DFF6;
  font-size: 0.87rem;
}

.toc-list li:last-child {
  border-bottom: none;
}

.toc-list li::before {
  content: counter(toc);
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #F0E8FF;
  color: #5521A8;
  font-size: 0.75rem;
  font-weight: 800;
}

.toc-list a {
  flex: 1;
  color: var(--gray-800);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.6;
}

.toc-list a:hover {
  color: #5B21B6;
}

/* EXPANDABLE CONTENT / FAQ */

.sec details {
  margin: 9px 0;
  border: 1px solid #E5D9F8;
  border-radius: 10px;
  background: #FCFAFF;
  overflow: hidden;
}

.sec summary {
  position: relative;
  padding: 13px 35px 13px 13px;
  color: #3B2464;
  font-size: 0.88rem;
  line-height: 1.55;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.sec summary::-webkit-details-marker {
  display: none;
}

.sec summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);
  color: #5B21B6;
  font-size: 1.2rem;
  font-weight: 700;
}

.sec details[open] summary {
  background: #EEE5FF;
  border-bottom: 1px solid #E5D9F8;
}

.sec details[open] summary::after {
  content: "−";
}

.sec details > p,
.sec details > ol,
.sec details > ul {
  margin: 12px 13px 14px;
}

/* TABLES */

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 13px 0;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.data-table th {
  background: #EEE5FF;
  color: #684000;
  font-weight: 800;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 10px 9px;
  border: 1px solid #E5D9F8;
  vertical-align: top;
}

.data-table td {
  color: var(--gray-600);
  line-height: 1.65;
}

.data-table tbody tr:nth-child(even) {
  background: #FCFAFF;
}

/* INFORMATION / SAFETY NOTICE */

.note {
  padding: 13px;
  margin: 14px 0;
  background: #F5F0FF;
  border: 1px solid #DCCBFA;
  border-left: 4px solid #6D28D9;
  border-radius: 9px;
  color: #44345F;
  font-size: 0.84rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.note strong {
  color: #5521A8;
}

/* FOOTER */

footer {
  padding: 25px 17px;
  background: #18083E;
  color: #F9EBD0;
  text-align: center;
  border-top: 4px solid #00D8D0;
}

footer p {
  font-size: 0.81rem;
  line-height: 1.8;
  margin-bottom: 12px;
  color: #E8D9B8;
  overflow-wrap: anywhere;
}

footer strong {
  color: #70FFF2;
}

footer a {
  color: #70FFF2;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px 15px;
  margin: 16px 0;
}

.footer-links a {
  font-size: 0.8rem;
  font-weight: 600;
}

/* KEYBOARD ACCESSIBILITY */

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #D88A00;
  outline-offset: 3px;
}

/* MOBILE RESPONSIVENESS */

@media (max-width: 360px) {
  .hero {
    padding: 25px 14px;
  }

  .hero h1 {
    font-size: 1.35rem;
  }

  .sec {
    margin: 10px;
    padding: 17px 13px;
  }

  .btn-row {
    gap: 7px;
  }

  .btn {
    padding: 10px 7px;
    font-size: 0.77rem;
  }

  .data-table {
    font-size: 0.76rem;
  }

  .data-table th,
  .data-table td {
    padding: 8px 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

.hero .btn-row:last-of-type {
  margin-bottom: 0;
}

.hero .btn-primary[href="contact.html"] {
  background: #3A2100;
  color: #FFFFFF;
  border: 1px solid #3A2100;
}

.hero .btn-primary[href="contact.html"]:hover {
  background: #5A3500;
}


/* Okpay Screenshot Gallery */
.okpay-gallery {
    position: relative;
    overflow: hidden;
    padding: 22px 36px;
    margin-top: 20px;
    background: linear-gradient(135deg, #F8F4FF, #EEE5FF);
    border: 1px solid #DCCBFA;
    border-radius: 20px;
}

.gallery-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-slide {
    flex: 0 0 calc(50% - 10px);
    min-width: 0;
    text-align: center;
    scroll-snap-align: center;
}

.gallery-slide img {
    display: block;
    width: 100%;
    height: 290px;
    object-fit: contain;
    padding: 8px;
    background: #fff;
    border: 1px solid #DCCBFA;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(117, 71, 0, 0.09);
}

.gallery-slide h3 {
    margin: 14px 0 6px;
    color: #5521A8;
    font-size: 16px;
}

.gallery-slide p {
    margin: 0 0 12px;
    color: #66533d;
    font-size: 13px;
    line-height: 1.6;
}

.gallery-arrow {
    position: absolute;
    top: 38%;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 1px solid #DCCBFA;
    border-radius: 50%;
    background: #fff;
    color: #5521A8;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.gallery-prev {
    left: 6px;
}

.gallery-next {
    right: 6px;
}

.gallery-arrow:hover {
    background: #70FFF2;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin: 18px 0;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #DCCBFA;
    cursor: pointer;
}

.gallery-dot.active {
    background: #00CFC5;
    transform: scale(1.2);
}

@media (min-width: 700px) {
    .gallery-slide {
        flex-basis: calc(33.333% - 14px);
    }
}

@media (max-width: 420px) {
    .okpay-gallery {
        padding: 16px 32px;
    }

    .gallery-track {
        gap: 12px;
    }

    .gallery-slide {
        flex-basis: 100%;
    }

    .gallery-slide img {
        height: 300px;
    }

    .gallery-arrow {
        top: 35%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-track {
        scroll-behavior: auto;
    }
}

/* OKPAY brand refinements and performance-friendly responsive layout */
:root {
  color-scheme: light;
  --brand-purple: #351078;
  --brand-violet: #6D28D9;
  --brand-cyan: #00D8D0;
  --brand-yellow: #F8D52A;
}
body { background: #F7F4FF; }
.shell { width: min(100%, 980px); }
.sticky-nav { background: rgba(255,255,255,.98); }
.hero {
  background: linear-gradient(135deg, #210653 0%, #4B0FA8 52%, #16043F 100%);
  border-bottom-color: var(--brand-cyan);
}
.hero::before {
  background: radial-gradient(circle at 12% 0%, rgba(0,216,208,.22), transparent 40%);
}
.hero h1 { color: #FFFFFF; }
.hero p { color: #F0E8FF; }
.btn-primary {
  color: #211044;
  background: linear-gradient(135deg, #FFE45B, #F8D52A);
  border-color: #F8D52A;
}
.btn-primary:hover { background: #FFF0A3; }
.btn-outline {
  color: #FFFFFF;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.48);
}
.btn-outline:hover { background: rgba(255,255,255,.16); }
.logo-name { color: #4B168F; }
.hamburger { background: #F0E8FF; border-color: #DCCBFA; }
.hamburger span { background: #4B168F; }
.sec h2 { color: #4B168F; border-bottom-color: #E9DFFF; }
.sec h3 { color: #4B168F; }
.sec a { color: #5B21B6; }
footer { background: #18083E; border-top-color: var(--brand-cyan); }
footer strong, footer a { color: #70FFF2; }
.okpay-gallery {
  position: relative;
  overflow: hidden;
  padding: 22px 36px;
  margin-top: 20px;
  background: linear-gradient(135deg, #F8F4FF, #EEE5FF);
  border: 1px solid #DCCBFA;
  border-radius: 20px;
}
@media (min-width: 700px) {
  .shell { margin: 24px auto; border-radius: 18px; }
  .sticky-nav { border-radius: 18px 18px 0 0; }
  .hero { padding: 42px 34px 36px; }
  .hero h1 { max-width: 760px; font-size: clamp(1.8rem, 3vw, 2.45rem); }
  .hero p { max-width: 680px; }
  .sec { margin: 18px 22px; padding: 25px; }
  .sec h2 { font-size: 1.25rem; }
}
@media (max-width: 420px) {
  .okpay-gallery { padding: 16px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
