/* style-2rd-verify.css */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #0f172a;
  color: #f8fafc;
  margin: 0;
  padding: 20px;
}

/* Card & Wrapper Layouts */
.card-verify-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  width: 100%;
}

.card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 20px;
  padding: 40px;
  color: #f8fafc;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(10px);
  position: relative;
  width: 100%;
  max-width: 760px;
}

/* Variant สำหรับการ์ดขนาดเล็กใน Worker (Login, Result, Policy) */
.card-sm {
  max-width: 480px;
  padding: 36px 28px;
  text-align: center;
}

.card-policy {
  max-width: 540px;
  text-align: left;
}

/* Status Indicator (Success / Failed) */
.card-success { border-top: 5px solid #22c55e; }
.card-error { border-top: 5px solid #ef4444; }

.status-text-success { color: #22c55e; font-size: 0.9rem; font-weight: 700; margin-bottom: 8px; letter-spacing: 0.02em; }
.status-text-error { color: #ef4444; font-size: 0.9rem; font-weight: 700; margin-bottom: 8px; letter-spacing: 0.02em; }
.title-success { color: #22c55e; }
.title-error { color: #ef4444; }

/* Language Switcher */
.lang-switcher {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 20px;
}

.lang-switcher-abs {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #0f172a;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid #334155;
  gap: 4px;
}

.lang-btn {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-switcher-abs .lang-btn {
  background: transparent;
  border: none;
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 6px;
}

.lang-btn.active {
  background: #b95589;
  color: #ffffff;
  border-color: #b95589;
}

/* Visibility Control */
.lang-content, .lang-inline { display: none; }
.lang-content.active { display: block; }
.lang-inline.active { display: inline; }

/* Header & Avatar */
.avatar-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid #b95589;
  object-fit: cover;
  background: #0f172a;
  margin-bottom: 16px;
}

.avatar-sm {
  width: 80px;
  height: 80px;
  margin-bottom: 18px;
}

.header-center {
  text-align: center;
  margin-bottom: 28px;
}

.header-policy {
  text-align: center;
  border-bottom: 1px solid #334155;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

h1 {
  margin: 0 0 8px;
  font-size: 2.2rem;
  font-weight: 700;
  color: #f8fafc;
}

.card-sm h1 { font-size: 1.5rem; margin-bottom: 10px; }
.subheading { margin: 0; color: #38bdf8; font-size: 1.05rem; font-weight: 600; }
.text-muted { color: #94a3b8; font-size: 0.8rem; margin: 0; }

/* Content Sections */
.section-block {
  background: rgba(30, 41, 59, 0.9);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 18px;
}

.section-block-last { margin-bottom: 24px; }

h2 { margin: 0 0 12px; font-size: 1.25rem; }
.card-policy h2 { font-size: 0.98rem; color: #38bdf8; margin: 18px 0 6px; }

p { color: #cbd5e1; line-height: 1.8; margin: 0; }
.card-sm p { font-size: 0.92rem; line-height: 1.6; margin-bottom: 24px; }
.card-policy p, .card-policy li { font-size: 0.88rem; line-height: 1.6; }

ol, ul { margin: 0; padding-left: 24px; color: #cbd5e1; line-height: 1.9; }
.card-policy ul { padding-left: 18px; margin: 6px 0; }

code {
  background: #0f172a;
  color: #7dd3fc;
  padding: 3px 7px;
  border-radius: 5px;
}

a { color: #38bdf8; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Buttons */
.btn-container {
  text-align: center;
  margin-bottom: 24px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #5865f2;
  color: #ffffff;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: background 0.2s;
  width: auto;
}

.btn-primary:hover { background: #4752c4; text-decoration: none; }

.btn-discord-full {
  width: 100%;
  padding: 14px 20px;
  font-size: 0.98rem;
  font-weight: 600;
}

.btn-discord-full svg { width: 22px; height: 22px; fill: #ffffff; }

/* Footer */
.footer {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-sm {
  margin-top: 24px;
  padding-top: 18px;
  border-top-color: #334155;
  color: #64748b;
  font-size: 0.82rem;
}

.footer-divider { margin: 0 6px; color: #94a3b8; }