/* Slikyface Support Contribution System Styles */

:root {
  --bg-dark: #070907;
  --bg-card: #0d140c;
  --bg-card-sub: #131c11;
  --lime: #b8ff36;
  --lime-hover: #d1ff78;
  --lime-dim: #7da829;
  --border: #22321c;
  --border-focus: #b8ff3688;
  --text-main: #f7faf5;
  --text-muted: #9eaf95;
  --text-dim: #6d7d66;
  --gold: #f5c518;
  --silver: #d1d5db;
  --bronze: #cd7f32;
  --danger: #ef4444;
}

.support-main {
  padding-top: 36px;
  padding-bottom: 60px;
}

/* Hero */
.support-hero {
  position: relative;
  text-align: center;
  max-width: 780px;
  margin: 0 auto 40px auto;
  padding: 20px 16px;
}

.support-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: var(--lime);
  background: #182813;
  border: 1px solid #365527;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.kicker-dot {
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--lime);
}

.support-hero h1 {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 950;
  letter-spacing: -0.05em;
  line-height: 1.1;
  margin: 0 0 16px 0;
  color: var(--text-main);
}

.support-hero h1 span {
  color: var(--lime);
}

.support-lead {
  font-size: clamp(14px, 2vw, 16px);
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Status Banner */
.status-banner {
  max-width: 1080px;
  margin: 0 auto 28px auto;
  padding: 14px 20px;
  background: #252210;
  border: 1px solid #735d1f;
  border-radius: 12px;
  color: #f7e394;
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Success Card */
.success-card {
  max-width: 1080px;
  margin: 0 auto 32px auto;
  padding: 28px;
  background: linear-gradient(135deg, #102410, #0a150b);
  border: 1px solid var(--lime);
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 0 30px #b8ff3626;
}

.success-icon {
  width: 52px;
  height: 52px;
  background: var(--lime);
  color: #070907;
  font-size: 28px;
  font-weight: 900;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin: 0 auto 16px auto;
  box-shadow: 0 0 20px #b8ff3666;
}

.success-card h2 {
  font-size: 24px;
  margin: 0 0 8px 0;
  color: #fff;
}

.success-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 20px 0;
}

.claim-box {
  background: #080f08;
  border: 1px dashed var(--lime-dim);
  border-radius: 14px;
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.claim-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--lime);
  margin-bottom: 8px;
}

.claim-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.claim-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  background: #111a10;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  word-break: break-all;
}

.claim-tip {
  font-size: 12px !important;
  color: var(--text-dim) !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

/* Secure Supporter Key & Verified Box Styles */
.claim-key-drawer {
  margin-top: 14px;
  text-align: left;
}
.claim-key-drawer summary {
  font-size: 12px;
  color: var(--lime);
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  text-align: center;
}
.claim-key-drawer summary:hover {
  color: var(--lime-hover);
}
.key-inner {
  margin-top: 10px;
  padding: 12px;
  background: #0d160c;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.key-help {
  font-size: 11px !important;
  color: var(--text-dim) !important;
  margin-bottom: 8px !important;
}
.verified-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #091209;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  max-width: 480px;
  margin: 0 auto 20px auto;
  text-align: left;
}
.verified-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.v-label {
  color: var(--text-muted);
}
.v-val {
  font-weight: 700;
  color: var(--text-main);
}
.text-lime {
  color: var(--lime) !important;
}
.verifying-box, .pending-box, .error-box {
  padding: 24px;
  text-align: center;
}

/* Grid Layout */
.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

@media (max-width: 900px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lime);
  color: #070907;
  font-weight: 900;
  font-size: 14px;
  display: grid;
  place-items: center;
}

.card-header h2 {
  font-size: 19px;
  font-weight: 800;
  margin: 0;
  color: #fff;
}

/* Form Groups */
.form-group {
  margin-bottom: 24px;
}

.group-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--lime);
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* Amount Pills */
.amount-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
}

.amount-pill {
  background: var(--bg-card-sub);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-main);
  padding: 12px 8px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: all 0.15s ease;
}

.amount-pill span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.amount-pill:hover {
  border-color: var(--lime);
  background: #192716;
}

.amount-pill.active {
  border-color: var(--lime);
  background: linear-gradient(135deg, #22371c, #152512);
  color: var(--lime);
  box-shadow: 0 0 16px #b8ff3626;
}

.amount-pill.active span {
  color: #fff;
}

/* Custom Amount */
.custom-amount-wrap {
  margin-top: 12px;
}

.input-prefix-wrap {
  display: flex;
  align-items: center;
  background: #080f08;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.input-prefix-wrap:focus-within {
  border-color: var(--lime);
  box-shadow: 0 0 0 2px #b8ff3633;
}

.prefix {
  padding: 12px 14px;
  color: var(--lime);
  font-weight: 800;
  font-size: 16px;
  background: #111a10;
}

.input-prefix-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 700;
  outline: none;
}

.field-hint {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 6px;
}

/* Provider Cards */
.provider-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 520px) {
  .provider-cards {
    grid-template-columns: 1fr;
  }
}

.provider-card {
  background: var(--bg-card-sub);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.15s ease;
}

.provider-card input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--lime);
}

.provider-card:hover {
  border-color: #3b562e;
}

.provider-card.active {
  border-color: var(--lime);
  background: #182715;
}

.provider-card.disabled {
  opacity: 0.45;
  cursor: not-allowed !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  pointer-events: none;
}

.provider-card.disabled:hover {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.badge-disabled {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-dim) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.provider-info {
  flex: 1;
}

.provider-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.provider-title strong {
  font-size: 15px;
  color: #fff;
}

.badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 6px;
  background: #23341d;
  color: var(--text-muted);
}

.primary-badge {
  background: #2e4722;
  color: var(--lime);
}

.provider-methods {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.currency-note {
  font-size: 11px;
  color: var(--text-dim);
}

.currency-note strong {
  color: var(--lime);
}

/* PayPal Currency Selector */
.currency-wrap {
  margin-top: 14px;
  padding: 14px;
  background: var(--bg-card-sub);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.sub-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.currency-select {
  width: 100%;
  background: #080f08;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fff;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  outline: none;
}

.currency-select:focus {
  border-color: var(--lime);
}

.rate-preview {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}

.rate-preview strong {
  color: var(--lime);
}

/* Privacy Options */
.privacy-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-card-sub);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.radio-label:hover {
  border-color: #3b562e;
}

.radio-label input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--lime);
}

.radio-label strong {
  display: block;
  font-size: 13px;
  color: #fff;
  margin-bottom: 2px;
}

.radio-label p {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* Nickname fields */
.nickname-fields {
  margin-top: 14px;
  padding: 16px;
  background: var(--bg-card-sub);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.sub-field input {
  width: 100%;
  background: #080f08;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fff;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  outline: none;
}

.sub-field input:focus {
  border-color: var(--lime);
}

.checkbox-label-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
}

.checkbox-label-wrap input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--lime);
}

.checkbox-label-wrap label {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  cursor: pointer;
}

/* Claim details */
.claim-details {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--bg-card-sub);
}

.claim-details summary {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  outline: none;
}

.claim-details summary:hover {
  color: var(--lime);
}

.claim-input-box {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.claim-input-help {
  font-size: 11px;
  color: var(--text-dim);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.claim-input-box input {
  width: 100%;
  background: #080f08;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fff;
  padding: 9px 12px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  outline: none;
}

.claim-input-box input:focus {
  border-color: var(--lime);
}

/* Pre-checkout payment and currency disclosure */
.pre-checkout-summary {
  background: #091209;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 18px;
}

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  padding: 4px 0;
  color: var(--text-muted);
}

.summary-label {
  color: var(--text-dim);
  font-weight: 700;
}

.summary-value {
  color: #fff;
  font-weight: 700;
  text-align: right;
}

.highlight-line {
  border-top: 1px solid #1a2718;
  margin-top: 6px;
  padding-top: 8px;
}

.summary-amount {
  font-size: 16px;
  font-weight: 900;
  color: var(--lime);
}

.rate-note-line {
  font-size: 11px;
}

.rate-note-line span {
  color: #9eb793;
}

/* Error message */
.checkout-error {
  padding: 12px 14px;
  background: #351313;
  border: 1px solid #7a2d2d;
  border-radius: 10px;
  color: #ffb8b8;
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 16px;
}

/* Checkout Button */
.btn-checkout {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.01em;
  background: var(--lime);
  color: #070907;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 0 20px #b8ff3633;
}

.btn-checkout:hover:not(:disabled) {
  background: var(--lime-hover);
  box-shadow: 0 0 28px #b8ff3666;
  transform: translateY(-1px);
}

.btn-checkout:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(0.5);
}

.secure-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  margin-top: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-wrap: wrap;
}

/* Sidebar & Leaderboard */
.support-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.board-header {
  margin-bottom: 18px;
}

.board-badge {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--lime);
  margin-bottom: 4px;
}

.leaderboard-card h2 {
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 4px 0;
  color: #fff;
}

.board-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.leaderboard-list {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.board-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 12px;
}

.leader-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-card-sub);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: transform 0.1s ease;
}

.rank-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  background: #192716;
  color: var(--text-muted);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.rank-1 {
  background: linear-gradient(135deg, #44370a, #2b2204);
  color: var(--gold);
  border-color: #927515;
  box-shadow: 0 0 12px #f5c51833;
}

.rank-2 {
  background: linear-gradient(135deg, #373e44, #1c2024);
  color: var(--silver);
  border-color: #6a747e;
}

.rank-3 {
  background: linear-gradient(135deg, #3d2416, #24130a);
  color: var(--bronze);
  border-color: #8c5225;
}

.leader-info {
  flex: 1;
  min-width: 0;
}

.leader-name {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leader-name.is-anon {
  color: var(--text-muted);
  font-style: italic;
  font-weight: 600;
}

.leader-contribs {
  font-size: 10px;
  color: var(--text-dim);
}

.leader-amount {
  font-size: 14px;
  font-weight: 900;
  color: var(--lime);
  text-align: right;
  flex-shrink: 0;
}

.board-empty {
  padding: 30px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  background: var(--bg-card-sub);
  border-radius: 10px;
  border: 1px dashed var(--border);
}

.board-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  background: #080f08;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.summary-stat {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.stat-val {
  font-size: 15px;
  font-weight: 900;
  color: var(--lime);
}

.board-disclosure {
  margin-top: 14px;
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* Info Card */
.info-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 14px 0;
  color: #fff;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-list li {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.info-list strong {
  color: #fff;
}

.terms-link a {
  font-size: 12px;
  font-weight: 800;
  color: var(--lime);
  text-decoration: none;
}

.terms-link a:hover {
  text-decoration: underline;
}

/* Spinner */
.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
