:root {
  --bg: #07060a;
  --card: #0f0d14cc;
  --card2: #111018cc;
  --text: #f6f2ff;
  --muted: #cbbfe6;
  --gold: #d6b25e;
  --rose: #ff5db1;
  --cyan: #49d4ff;
  --lime: #b9ff6a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(
      1200px 700px at 10% 15%,
      rgba(255, 93, 177, 0.25),
      transparent 55%
    ),
    radial-gradient(
      1000px 600px at 90% 25%,
      rgba(73, 212, 255, 0.22),
      transparent 55%
    ),
    radial-gradient(
      900px 700px at 50% 100%,
      rgba(185, 255, 106, 0.1),
      transparent 60%
    ),
    linear-gradient(180deg, #07060a 0%, #05040a 60%, #07060a 100%);
  background-attachment: fixed;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 18px 60px;
}
.html-watermark {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  pointer-events: none;
  z-index: 2147483647; /* highest safe value */

  background-image: url("Credlix-b-1-min.jpg"); /* logo or text image */
  background-repeat: repeat;
  background-position: center;
  background-size: 220px;

  opacity: 0.05;
}

/* top ribbons */
.ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(214, 178, 94, 0.25);
  background: linear-gradient(
    90deg,
    rgba(214, 178, 94, 0.1),
    rgba(255, 93, 177, 0.08),
    rgba(73, 212, 255, 0.08)
  );
  border-radius: 999px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 14px;
  z-index: 30;
  backdrop-filter: blur(10px);
}
.ribbon .left,
.ribbon .right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}
.pill strong {
  color: var(--gold);
}
.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 14px;
  background: linear-gradient(
    135deg,
    rgba(214, 178, 94, 0.95),
    rgba(255, 93, 177, 0.85)
  );
  color: #110b16;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(255, 93, 177, 0.15);
  transition:
    0.18s transform ease,
    0.18s filter ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}
.btn.secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
  font-weight: 700;
}

/* hero */
.hero {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }
}
.card {
  background: linear-gradient(
    180deg,
    rgba(17, 16, 24, 0.85),
    rgba(10, 9, 16, 0.75)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.heroMain {
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
}
.heroMain:before {
  content: "";
  position: absolute;
  inset: -60px -40px auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(214, 178, 94, 0.55),
    rgba(255, 93, 177, 0.2),
    transparent 65%
  );
  filter: blur(2px);
  transform: rotate(10deg);
  opacity: 0.9;
}

.brandRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.logoBox {
  width: 200px;
  height: 200px;
  /* border-radius: 18px; */
  /* border: 1.5px dashed rgba(214, 178, 94, 0.55); */
  /* background: rgba(0, 0, 0, 0.18); */
  display: flex;
  align-items: center;
  justify-content: center;
  /* overflow: hidden; */
  /* color: rgba(214, 178, 94, 0.95); */
  /* font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        font-family: Cinzel, serif; */
}
.logoBox img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* keeps logo fully visible */
}
.brandText h1 {
  margin: 0;
  font-family: Cinzel, serif;
  letter-spacing: 0.02em;
  font-weight: 800;
  font-size: clamp(28px, 3.3vw, 44px);
  line-height: 1.1;
}
.brandText p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 60ch;
}
.slogan {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(
    90deg,
    rgba(214, 178, 94, 0.12),
    rgba(73, 212, 255, 0.1),
    rgba(255, 93, 177, 0.1)
  );
  font-family:
    Playfair Display,
    serif;
  font-size: 18px;
}
.slogan strong {
  color: var(--gold);
}
.heroSide {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mini {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.mini h3 {
  margin: 0 0 10px;
  font-family:
    Playfair Display,
    serif;
  letter-spacing: 0.02em;
}
.badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.badge {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  font-size: 13px;
  color: var(--muted);
}
.badge em {
  font-style: normal;
  color: var(--gold);
  font-weight: 800;
}

/* sections */
.section {
  margin-top: 18px;
  padding: 22px 20px;
}
.sectionHead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.sectionHead h2 {
  margin: 0;
  font-family: Cinzel, serif;
  font-size: 26px;
  letter-spacing: 0.02em;
}
.sectionHead p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
  font-size: 14px;
}

/* services */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 1000px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
.service {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(0, 0, 0, 0.1)
  );
  position: relative;
  overflow: hidden;
}
.service:before {
  content: "";
  position: absolute;
  inset: auto -40px -50px auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(73, 212, 255, 0.28),
    rgba(255, 93, 177, 0.14),
    transparent 65%
  );
  transform: rotate(18deg);
  opacity: 0.7;
  pointer-events: none;
}
.service h4 {
  margin: 0;
  font-family:
    Playfair Display,
    serif;
  letter-spacing: 0.01em;
  font-size: 18px;
}
.service p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.4;
}
.service .row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tag {
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(214, 178, 94, 0.25);
  background: rgba(214, 178, 94, 0.1);
  color: #f2e6c8;
  white-space: nowrap;
}

/* portals */
.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.tab {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-weight: 700;
}
.tab.active {
  background: linear-gradient(
    135deg,
    rgba(214, 178, 94, 0.22),
    rgba(255, 93, 177, 0.14),
    rgba(73, 212, 255, 0.14)
  );
  border-color: rgba(214, 178, 94, 0.35);
}
.portal {
  display: none;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.portal.active {
  display: grid;
}
@media (max-width: 980px) {
  .portal {
    grid-template-columns: 1fr;
  }
}

.panel {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(0, 0, 0, 0.14)
  );
}
.panel h3 {
  margin: 0 0 10px;
  font-family:
    Playfair Display,
    serif;
  font-size: 20px;
}
.panel p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13.5px;
}

label {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin: 10px 0 6px;
}
input,
textarea,
select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(73, 212, 255, 0.55);
}
textarea {
  min-height: 92px;
  resize: vertical;
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 520px) {
  .row2 {
    grid-template-columns: 1fr;
  }
}

.hint {
  font-size: 12px;
  color: rgba(246, 242, 255, 0.75);
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
}
.item .meta {
  min-width: 0;
}
.item .meta strong {
  display: block;
}
.item .meta span {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 4px;
  word-break: break-word;
}
.item .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.miniBtn {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  font-size: 12.5px;
}
.miniBtn.danger {
  border-color: rgba(255, 93, 177, 0.35);
  background: rgba(255, 93, 177, 0.14);
}

/* gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
@media (max-width: 800px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}
.thumb {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  position: relative;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(203, 191, 230, 0.9);
  font-size: 12.5px;
  text-align: center;
  padding: 10px;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Homepage category cards: fit full image without cropping */
.category-card .thumb {
  min-height: 180px;
  aspect-ratio: 4 / 3;
  padding: 8px;
  background: rgba(0, 0, 0, 0.34);
}
.category-card .thumb img {
  object-fit: contain;
}

/* Category & item cards - clickable */
.category-card:hover,
.item-thumb:hover {
  opacity: 0.9;
  transform: scale(1.02);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.item-thumb {
  cursor: pointer;
}

footer {
  margin-top: 18px;
  padding: 18px;
  text-align: center;
  color: rgba(203, 191, 230, 0.85);
  font-size: 13px;
}
.fine {
  font-size: 12px;
  color: rgba(203, 191, 230, 0.7);
  margin-top: 8px;
}

/* modal */
.modalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 18px;
}
.modalOverlay.open {
  display: flex;
}
.modal {
  width: min(520px, 100%);
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(20, 17, 28, 0.95),
    rgba(10, 9, 16, 0.92)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  padding: 18px;
}
.modal h3 {
  margin: 0 0 6px;
  font-family:
    Playfair Display,
    serif;
  font-size: 22px;
}
.modal p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13.5px;
}
.modal .topRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
/* Login page */
.login-page .card {
  max-width: 420px;
  margin: 60px auto;
  padding: 26px 24px;
}
.login-page .logoBox {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
}
.login-page .brandText h1 {
  text-align: center;
  font-size: clamp(24px, 5vw, 36px);
}
.login-page .brandText p {
  text-align: center;
}
.login-page .slogan {
  text-align: center;
  margin-top: 16px;
}
.login-page .form-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}
.login-page .btn.login-btn {
  width: 100%;
  margin-top: 8px;
}
.login-page #status {
  margin-top: 10px;
  font-size: 13px;
  color: var(--rose);
  text-align: center;
}
.login-page .hint {
  margin-top: 8px;
  text-align: center;
}
.login-page code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
}

.price-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.price-input {
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-input input {
  width: 120px;
  padding: 6px;
}
.price-input select {
  padding: 6px;
}

.x {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
}
