/* ==========================================================
   Pakistansilvermultan — Public Site Theme
   Matched to the actual pack design: white background, bright
   cyan "PSM" wordmark, navy blue-pottery corner motifs, and a
   terracotta illustrated Multan monument.
   ========================================================== */

:root {
  --psm-cyan: #14A8CC;
  --psm-cyan-deep: #0C8CAC;
  --psm-navy: #16305C;
  --psm-navy-deep: #0E2140;
  --psm-terracotta: #B5623C;
  --psm-terracotta-deep: #8F4A2C;
  --psm-white: #ffffff;
  --psm-offwhite: #f7f9fa;
  --psm-ink: #16232e;
  --psm-grey: #6b7a86;
  --psm-shadow: rgba(22, 48, 92, 0.14);
  --radius-lg: 22px;
  --radius-md: 14px;
  --font-display: 'Cinzel', 'Georgia', serif;
  --font-body: 'Poppins', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--psm-ink);
  background: var(--psm-offwhite);
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Faint diagonal repeating watermark, like the pack's security pattern */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.05;
  pointer-events: none;
  transform: rotate(-18deg) scale(1.4);
  background-repeat: repeat;
  background-size: 260px 90px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='90'%3E%3Ctext x='0' y='40' font-family='Poppins,Arial' font-size='16' fill='%2316305C' font-weight='700' letter-spacing='2'%3EPAKISTANSILVERMULTAN%3C/text%3E%3C/svg%3E");
}

/* Navy blue-pottery corner motif, top-left — like the pack corner triangle */
.corner-pattern {
  position: fixed;
  top: 0; left: 0;
  width: 160px; height: 160px;
  z-index: 0;
  pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  background: var(--psm-navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-width='1.1' opacity='0.85'%3E%3Ccircle cx='45' cy='45' r='26'/%3E%3Ccircle cx='45' cy='45' r='15'/%3E%3Cpath d='M45 20 L51 38 L70 38 L55 49 L61 68 L45 57 L29 68 L35 49 L20 38 L39 38 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
}
.corner-pattern.br {
  top: auto; bottom: 0; left: auto; right: 0;
  clip-path: polygon(100% 100%, 0 100%, 100% 0);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 20px 20px;
}

/* ---------------- Header / logo lockup ---------------- */
.site-header {
  text-align: center;
  margin-bottom: 30px;
}

.psm-logo {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 2.6rem;
  letter-spacing: 1px;
  color: var(--psm-cyan);
  line-height: 1;
  position: relative;
}
.psm-logo sup { font-size: 0.9rem; top: -1.4em; }

.psm-tagline {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--psm-navy);
  text-transform: uppercase;
  margin-top: 2px;
}

.site-header h1 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 1px;
  margin: 14px 0 4px;
  color: var(--psm-navy);
}

.site-header p {
  margin: 0;
  color: var(--psm-grey);
  font-size: 0.92rem;
}

/* ---------------- Card ---------------- */
.card {
  background: var(--psm-white);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: 0 16px 44px var(--psm-shadow);
  border: 1px solid #e9edf0;
  position: relative;
}

.card h2 {
  font-family: var(--font-display);
  color: var(--psm-navy);
  text-align: center;
  margin-top: 0;
  font-size: 1.35rem;
}

.card .sub {
  text-align: center;
  color: var(--psm-grey);
  font-size: 0.92rem;
  margin-bottom: 26px;
}

/* ---------------- Form ---------------- */
.code-form { display: flex; flex-direction: column; gap: 14px; }

.code-input {
  width: 100%;
  padding: 16px 18px;
  font-size: 1.15rem;
  letter-spacing: 3px;
  text-align: center;
  text-transform: uppercase;
  border: 2px solid #dde6ea;
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--psm-navy);
  background: #fcfdfe;
  transition: border-color .2s, box-shadow .2s;
}

.code-input:focus {
  outline: none;
  border-color: var(--psm-cyan);
  box-shadow: 0 0 0 4px rgba(20,168,204,0.15);
}

.btn-verify {
  padding: 15px 18px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--psm-white);
  background: linear-gradient(135deg, var(--psm-cyan) 0%, var(--psm-navy) 100%);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(20,168,204,0.35);
  transition: transform .15s, box-shadow .15s;
}

.btn-verify:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(20,168,204,0.45); }
.btn-verify:active { transform: translateY(0); }

/* ---------------- Result states ---------------- */
.result { margin-top: 28px; border-radius: var(--radius-md); padding: 24px; }

.result.valid {
  background: linear-gradient(160deg, #f2fbfc, #e7f7f9);
  border: 1.5px solid #7fd0dd;
}
.result.invalid {
  background: linear-gradient(160deg, #fdf4f4, #fbeaea);
  border: 1.5px solid #e08b8b;
}
.result.void {
  background: linear-gradient(160deg, #fff8ea, #fdf1d6);
  border: 1.5px solid #e0b862;
}

.result-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.6rem; color: #fff;
}
.result.valid .result-icon { background: var(--psm-cyan-deep); }
.result.invalid .result-icon { background: #cc5b5b; }
.result.void .result-icon { background: #d9a13c; }

.result h3 {
  text-align: center;
  margin: 0 0 4px;
  font-family: var(--font-display);
  color: var(--psm-navy);
}
.result .msg { text-align: center; color: var(--psm-grey); margin-bottom: 18px; font-size: 0.93rem; }

.cert-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.7);
  border-radius: 10px;
  overflow: hidden;
}
.cert-table td {
  padding: 10px 14px;
  font-size: 0.94rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.cert-table td:first-child { color: var(--psm-grey); width: 45%; }
.cert-table td:last-child { font-weight: 700; color: var(--psm-navy); text-align: right; }
.cert-table tr:last-child td { border-bottom: none; }

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 14px;
  background: var(--psm-terracotta);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 22px rgba(181,98,60,0.35);
  transition: transform .15s;
}
.btn-download:hover { transform: translateY(-2px); }

/* ---------------- Monument illustration band ---------------- */
.monument-band {
  margin-top: 36px;
  text-align: center;
}
.monument-band svg { width: 100%; max-width: 520px; height: auto; }

/* ---------------- Footer ---------------- */
.site-footer {
  text-align: center;
  margin-top: 18px;
  padding-bottom: 40px;
  color: var(--psm-grey);
  font-size: 0.8rem;
  position: relative;
  z-index: 1;
}
.site-footer a { color: var(--psm-cyan-deep); text-decoration: none; font-weight: 600; }

@media (max-width: 480px) {
  .card { padding: 26px 18px; }
  .psm-logo { font-size: 2.1rem; }
  .code-input { font-size: 1rem; letter-spacing: 2px; }
  .corner-pattern { width: 100px; height: 100px; }
}
