* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: #0a0a0b;
  color: #e4e4e7;
  line-height: 1.5;
  padding: 10px 20px 5px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* Core Container Layout */
.container {
  z-index: 2;
  max-width: 480px;
  width: 100%;
  background-color: #121214; 
  padding: 32px;
  border-radius: 4px;
  border: 1px solid #27272a;
  display: none; /* Managed by script.js */
}

/* Header Layout - Wordmark + Share */
.header-bar {
  width: 100%;
  max-width: 480px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  min-height: 32px; 
}

.header-bar .logo-group a {
  text-decoration: none;
  display: block;
}

.header-bar .brand-title {
  font-weight: 550;
  font-size: 20px;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.header-bar .brand-subtitle {
  font-size: 11px;
  color: #71717a;
  font-weight: 500;
  display: block;
}

/* Share Button Container */
.pankiduka-container-inline {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 60px;  
  min-height: 28px; 
}

.pankiduka-button {
  background-color: #121214;
  border: 1px solid #27272a;
  color: #a1a1aa !important;
  border-radius: 4px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: block;
  line-height: normal;
  outline: none;
}

.pankiduka-button:hover {
  border-color: #3f3f46;
  color: #ffffff !important;
}

.pankiduka-popup {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: #121214;
  border-radius: 4px;
  border: 1px solid #27272a;
  padding: 6px;
  z-index: 100;
  min-width: 160px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.pankiduka-popup a {
  color: #a1a1aa;
  display: block;
  padding: 6px 10px;
  font-size: 12px;
  text-decoration: none;
  border-radius: 2px;
}

.pankiduka-popup a:hover {
  background-color: #0a0a0b;
  color: #ffffff;
}

/* Modern Profile Layout */
.profile {
  margin-bottom: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #27272a;
}

.profile-meta-block {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.profile .logo-container {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 1px solid #3f3f46;
  background: #0a0a0b;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px;
  flex-shrink: 0;
}

.profile .logo-container img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

.profile-identity-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.name_verified {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.name_verified h1 {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
}

.name_verified svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.profile .patron {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
  margin-bottom: 4px;
}

.profile .patron-default { color: #a2fb15; }
.profile .patron-bronze { color: #cd7f32; }
.profile .patron-silver { color: #a1a1aa; }
.profile .patron-gold { color: #fbbf24; }

.profile .website a {
  color: #38bdf8;
  font-size: 13px;
  text-decoration: none;
  word-break: break-all;
}

.profile .website a:hover {
  text-decoration: underline;
}

/* Description below the profile */
.profile-bio-text {
  font-size: 13px;
  color: #a1a1aa;
  text-align: left;
  line-height: 1.5;
}

/* Bluring bg for NSFW/Public warnings */
.blur {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
  transition: filter 0.2s ease;
}

/* Tab Layout  */
.tabs-navigation {
  display: flex;
  border-bottom: 1px solid #27272a;
  margin-bottom: 20px;
  gap: 4px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: #71717a;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  color: #e4e4e7;
}

.tab-btn.active {
  color: #a2fb15;
  border-bottom: 2px solid #a2fb15;
}

/* Verification Form */
.verification {
  text-align: left;
}

.verification h2 {
  display: none;
}

.verification label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #a1a1aa;
  display: block;
  margin-bottom: 6px;
}

.input-wrapper-context {
  display: none;
}

.input-wrapper-context.active {
  display: block;
}

.phone-grid {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
}

.verification input[type="text"],
.verification input[type="email"],
.verification input[type="tel"] {
  padding: 12px 14px;
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: #ffffff;
  background-color: #0a0a0b;
  border: 1px solid #3f3f46;
  border-radius: 4px;
  outline: none;
}

.verification input:focus {
  border-color: #71717a;
}

.verification input::placeholder {
  color: #52525b;
}

.verification #disclaimer {
  font-size: 11px;
  color: #71717a;
  line-height: 1.4;
  margin-top: 12px;
}

.verification #disclaimer a {
  color: #a1a1aa;
  text-decoration: underline;
}

.action-row {
  margin-top: 14px;
}

/* Verify Button Container */
.verify-btn-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #a2fb15;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  color: #0a0a0b;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  transition: background-color 0.15s ease;
}

.verify-btn-container:hover {
  background-color: #b4ff3b;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #ef4444;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.2); }
}

.message {
  font-size: 12px;
  font-weight: 600;
  padding: 12px;
  border-radius: 4px;
  width: 100%;
  text-align: center;
  margin-top: 16px;
}

.valid { background: rgba(34, 197, 94, 0.1) !important; border: 1px solid rgba(34, 197, 94, 0.2) !important; color: #4ade80 !important; }
.invalid { background: rgba(234, 179, 8, 0.1) !important; border: 1px solid rgba(234, 179, 8, 0.2) !important; color: #facc15 !important; }

.listed-link {
  margin-top: 32px;
  text-align: center;
}

.listed-link a {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: #71717a;
  text-decoration: none;
  border: 1px solid #27272a;
  padding: 8px 18px;
  border-radius: 20px;
  background: #0a0a0b;
}

.listed-link a:hover {
  border-color: #3f3f46;
  color: #e4e4e7;
}

.footer {
  margin-top: 14px;
  text-align: center;
  display: none;
}

.footer a, .footer p {
  color: #ede3e3;
  font-size: 11px;
  text-decoration: none;
}

.footer p {
  margin-top: 5px;
}

/* Warning Layer for NSFW / Public data */
.warningLayer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
 /* background: #0a0a0b; */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.warning-content {
  background: #121214;
  border: 1px solid #ef4444;
  padding: 32px;
  border-radius: 4px;
  max-width: 400px;
  width: 100%;
}

.warning-content h2 {
  font-size: 20px;
  color: #ef4444;
  margin-bottom: 12px;
}

.warning-content p {
  font-size: 13px;
  color: #a1a1aa;
  margin-bottom: 20px;
}


#agreeButton {
  padding: 10px 24px;
  background-color: #ef4444;
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
}

body.show-content .container,
body.show-content .footer {
  display: block;
}

#loaderContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 40vh;
}

@media screen and (max-width: 680px) {
  html, body {
    height: 100%;
    margin: 0;
  }

  /* Center body if NOT inside the iframe */
  body:not(.iframe-mode) {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

  .container, 
  .header-bar, 
  #loaderContainer {
    margin-left: auto;
    margin-right: auto;
  }
}