/* =========================================================================
 * Flicknetic — LoadNBuy plugin page restyle (child theme, update-safe)
 * Overrides the plugin's inline + <style> rules. Scoped to #lnb-* / .lnb-*.
 * Tokens: bg #1a1a1a · surface #242424 · accent #EF911D (gold) ·
 *         accent2 #6D4EEC (purple) · text rgba(255,255,255,.82) · pills 35px
 * ========================================================================= */

/* ============================ SELL PAGE ============================ */
#lnb-sell-app { color: rgba(255,255,255,0.82) !important; font-family: 'Cabin', Arial, sans-serif !important; }
#lnb-sell-app a, #lnb-tradeurl-box a, #lnb-sell-app .lnb-trade-url-wrapper a { color: #EF911D !important; }
#lnb-sell-app a:hover { color: #ffa733 !important; }

/* Sell-page terms notice (injected by skz-plugin.js) */
.skz-sell-notice {
  display: flex; align-items: center; gap: 10px;
  background: #242424; border: 1px solid rgba(255,255,255,0.10);
  border-left: 4px solid #EF911D; border-radius: 12px;
  padding: 12px 16px; margin: 0 0 20px;
  font-family: 'Cabin', sans-serif; font-size: 13.5px; color: rgba(255,255,255,0.75);
}
.skz-sell-notice svg { flex: 0 0 auto; }
.skz-sell-notice a { color: #EF911D !important; font-weight: 600; }

/* Trade-URL entry card (user without linked Steam) */
#lnb-tradeurl-box, #lnb-tradeurl-box.lnb-tradeurl-box {
  max-width: 640px !important;
  background: #242424 !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 16px !important;
  padding: 26px !important;
  box-shadow: 0 18px 50px -28px rgba(0,0,0,0.8) !important;
}
#lnb-tradeurl-box h3 { color: #fff !important; font-family: 'Unbounded', sans-serif !important; font-weight: 800 !important; margin: 0 0 8px !important; }
#lnb-tradeurl-box p { color: rgba(255,255,255,0.7) !important; }
#lnb-tradeurl-box small { color: rgba(255,255,255,0.5) !important; }

/* Text inputs (trade url) */
#lnb-tradeurl-input, #lnb-trade-url {
  background: #1d1d1d !important; color: #fff !important;
  border: 1px solid rgba(255,255,255,0.18) !important; border-radius: 10px !important;
  padding: 13px 15px !important;
}
#lnb-tradeurl-input::placeholder, #lnb-trade-url::placeholder { color: rgba(255,255,255,0.35) !important; }
#lnb-tradeurl-input:focus, #lnb-trade-url:focus {
  border-color: #EF911D !important; box-shadow: 0 0 0 3px rgba(239,145,29,0.25) !important; outline: none !important;
}
#lnb-tradeurl-message { border-radius: 10px !important; }

/* Primary action buttons (gold pills) */
#lnb-tradeurl-submit, #lnb-submit-sell {
  background: #EF911D !important; color: #1a1a1a !important;
  border: none !important; border-radius: 35px !important;
  font-family: 'Readex Pro', sans-serif !important; font-weight: 600 !important;
  padding: 13px 28px !important; cursor: pointer !important; text-transform: none !important;
  box-shadow: 0 12px 26px -12px rgba(239,145,29,0.85) !important;
  transition: background .2s ease, transform .08s ease !important;
}
#lnb-tradeurl-submit:hover, #lnb-submit-sell:hover { background: #ffa733 !important; color: #1a1a1a !important; }
#lnb-tradeurl-submit:active, #lnb-submit-sell:active { transform: translateY(1px) !important; }

/* Inventory loading status */
#lnb-sell-app .lnb-inventory-status { color: rgba(255,255,255,0.6) !important; text-align: center !important; padding: 22px 0 !important; }

/* Inventory grid + item cards */
#lnb-inventory-grid.lnb-grid, #lnb-sell-app .lnb-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
  gap: 14px !important; margin-top: 22px !important;
}
#lnb-sell-app .lnb-item {
  background: #242424 !important; border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 14px !important; padding: 12px !important; text-align: center !important;
  cursor: pointer !important; position: relative !important;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}
#lnb-sell-app .lnb-item:hover {
  transform: translateY(-3px) !important; border-color: rgba(255,255,255,0.25) !important;
  box-shadow: 0 14px 30px -16px rgba(0,0,0,0.8) !important;
}
#lnb-sell-app .lnb-item img { max-width: 100% !important; height: auto !important; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.5)); }
#lnb-sell-app .lnb-item-name { font-size: 12.5px !important; color: rgba(255,255,255,0.7) !important; height: 36px !important; overflow: hidden !important; margin-top: 8px !important; line-height: 1.3 !important; }
#lnb-sell-app .lnb-item-price { font-weight: 700 !important; color: #ffb43d !important; font-family: 'Readex Pro', sans-serif !important; margin-top: 4px !important; }

/* Selected: gold border + glow + checkmark badge */
#lnb-sell-app .lnb-item.selected {
  border-color: #EF911D !important;
  box-shadow: 0 0 0 1px #EF911D, 0 10px 26px -10px rgba(239,145,29,0.6) !important;
  background: rgba(239,145,29,0.08) !important;
}
#lnb-sell-app .lnb-item.selected::after {
  content: '' !important; position: absolute !important; top: 8px !important; right: 8px !important;
  width: 22px !important; height: 22px !important; border-radius: 50% !important; background-color: #EF911D !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") !important;
  background-size: 13px 13px !important; background-position: center !important; background-repeat: no-repeat !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.55) !important;
}

/* Sell actions panel */
#lnb-sell-app .lnb-sell-actions {
  background: #242424 !important; border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 16px !important; padding: 20px !important; margin-top: 24px !important;
}
#lnb-sell-app .lnb-trade-url-wrapper label { color: #fff !important; }
#lnb-sell-app .lnb-trade-url-wrapper small { color: rgba(255,255,255,0.5) !important; }

/* Offer banner */
#lnb-offer-banner {
  border-radius: 12px !important; border: 1px solid rgba(255,255,255,0.12) !important;
  background: #242424 !important; color: #fff !important;
}

/* Errors / login box */
#lnb-sell-app .lnb-error, .lnb-error {
  background: rgba(239,145,29,0.08) !important; border: 1px solid rgba(239,145,29,0.5) !important;
  border-radius: 12px !important; color: rgba(255,255,255,0.85) !important;
}
.lnb-inventory-error {
  background: rgba(231,76,60,0.08) !important; border: 1px solid rgba(231,76,60,0.5) !important;
  border-radius: 12px !important; color: rgba(255,255,255,0.85) !important;
}
.lnb-inventory-error h3, .lnb-inventory-error h4 { color: #f1957f !important; }
.lnb-inventory-error a { color: #EF911D !important; }
.lnb-login-box {
  background: #242424 !important; border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 16px !important; color: rgba(255,255,255,0.8) !important;
}

/* ========================= WITHDRAWAL PAGE ========================= */
.lnb-withdrawal-page { color: rgba(255,255,255,0.82) !important; font-family: 'Cabin', Arial, sans-serif !important; }
.lnb-withdrawal-page h2 { color: #fff !important; font-family: 'Unbounded', sans-serif !important; font-weight: 800 !important; }
.lnb-withdrawal-page h3 { color: #fff !important; }
.lnb-withdrawal-page a { color: #EF911D !important; }

/* KYC notice */
.lnb-withdrawal-page .lnb-kyc-notice {
  background: #242424 !important;
  border: 1px solid rgba(239,145,29,0.45) !important; border-left: 4px solid #EF911D !important;
  border-radius: 14px !important; padding: 22px !important;
}
.lnb-withdrawal-page .lnb-kyc-notice h3 { color: #EF911D !important; }
.lnb-withdrawal-page .lnb-kyc-notice p { color: rgba(255,255,255,0.78) !important; }
/* "Pending review" inline badge inside the KYC notice */
.lnb-withdrawal-page .lnb-kyc-notice div[style*="inline-block"] {
  background: rgba(239,145,29,0.16) !important; color: #f0b46a !important;
  border: 1px solid rgba(239,145,29,0.4) !important; border-radius: 30px !important; padding: 6px 14px !important;
}

/* KYC upload form */
#lnb-kyc-file {
  color: rgba(255,255,255,0.7) !important; background: #1d1d1d !important;
  border: 1px solid rgba(255,255,255,0.18) !important; border-radius: 10px !important;
  padding: 10px !important; width: 100% !important; max-width: 440px !important;
}
#lnb-kyc-file::file-selector-button {
  background: #EF911D !important; color: #1a1a1a !important; border: none !important; border-radius: 30px !important;
  padding: 9px 18px !important; margin-right: 14px !important; cursor: pointer !important;
  font-family: 'Readex Pro', sans-serif !important; font-weight: 600 !important;
}
#lnb-kyc-file::file-selector-button:hover { background: #ffa733 !important; }
#lnb-kyc-upload-form .button, #lnb-kyc-upload-form button[type="submit"] {
  background: #EF911D !important; color: #1a1a1a !important; border: none !important; border-radius: 35px !important;
  font-family: 'Readex Pro', sans-serif !important; font-weight: 600 !important; padding: 12px 26px !important;
  cursor: pointer !important; text-transform: none !important;
}
#lnb-kyc-upload-form .button:hover { background: #ffa733 !important; }
#lnb-kyc-message { border-radius: 10px !important; }

/* Balance display */
.lnb-withdrawal-page .lnb-balance-display {
  background: #242424 !important; border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 16px !important; padding: 22px !important;
}
.lnb-withdrawal-page .lnb-balance-display h3 { color: rgba(255,255,255,0.7) !important; }
.lnb-withdrawal-page .lnb-balance-amount { color: #EF911D !important; font-family: 'Readex Pro', sans-serif !important; }

/* Withdrawal form */
#lnb-withdrawal-form {
  background: #242424 !important; border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 16px !important; padding: 24px !important;
}
#lnb-withdrawal-form label { color: #fff !important; }
#lnb-withdrawal-form small { color: rgba(255,255,255,0.5) !important; }
#lnb-withdrawal-amount, #lnb-withdrawal-card, #lnb-withdrawal-iban, #lnb-withdrawal-account-holder {
  background: #1d1d1d !important; color: #fff !important;
  border: 1px solid rgba(255,255,255,0.18) !important; border-radius: 10px !important; padding: 12px 14px !important;
}
#lnb-withdrawal-amount::placeholder, #lnb-withdrawal-card::placeholder, #lnb-withdrawal-iban::placeholder, #lnb-withdrawal-account-holder::placeholder { color: rgba(255,255,255,0.35) !important; }
#lnb-withdrawal-amount:focus, #lnb-withdrawal-card:focus, #lnb-withdrawal-iban:focus, #lnb-withdrawal-account-holder:focus {
  border-color: #EF911D !important; box-shadow: 0 0 0 3px rgba(239,145,29,0.25) !important; outline: none !important;
}
#lnb-max-amount { color: #EF911D !important; }
#lnb-withdraw-btn, .lnb-withdraw-button {
  background: #EF911D !important; color: #1a1a1a !important; border: none !important; border-radius: 35px !important;
  font-family: 'Readex Pro', sans-serif !important; font-weight: 600 !important; cursor: pointer !important; text-transform: none !important;
  box-shadow: 0 12px 26px -12px rgba(239,145,29,0.85) !important;
}
#lnb-withdraw-btn:hover, .lnb-withdraw-button:hover { background: #ffa733 !important; color: #1a1a1a !important; }
#lnb-withdraw-btn.disabled, #lnb-withdraw-btn:disabled, .lnb-withdraw-button.disabled {
  background: #3a3a3a !important; color: rgba(255,255,255,0.4) !important; box-shadow: none !important; cursor: not-allowed !important;
}
#lnb-withdrawal-message { border-radius: 10px !important; }

/* Withdrawal history table */
.lnb-withdrawal-history h3 { color: #fff !important; }
.lnb-withdrawal-history table {
  background: #242424 !important; border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 14px !important; overflow: hidden !important;
}
.lnb-withdrawal-history thead th { background: #1d1d1d !important; color: rgba(255,255,255,0.6) !important; border-bottom: 1px solid rgba(255,255,255,0.1) !important; }
.lnb-withdrawal-history td { color: rgba(255,255,255,0.82) !important; border-bottom: 1px solid rgba(255,255,255,0.06) !important; }
.lnb-withdrawal-history tbody tr:hover td { background: rgba(255,255,255,0.02) !important; }

/* Status badges -> dark tinted pills */
.lnb-withdrawal-history .lnb-status, .lnb-status {
  display: inline-block !important; padding: 5px 12px !important; border-radius: 30px !important;
  font-size: 12.5px !important; font-weight: 600 !important; font-family: 'Readex Pro', sans-serif !important;
}
.lnb-withdrawal-history .lnb-status-pending,    .lnb-status-pending    { background: rgba(239,145,29,0.16) !important; color: #f0b46a !important; border: 1px solid rgba(239,145,29,0.35) !important; }
.lnb-withdrawal-history .lnb-status-processing, .lnb-status-processing { background: rgba(109,78,236,0.18) !important; color: #b9a8f5 !important; border: 1px solid rgba(109,78,236,0.40) !important; }
.lnb-withdrawal-history .lnb-status-completed,  .lnb-status-completed  { background: rgba(46,204,113,0.16) !important; color: #5fd98c !important; border: 1px solid rgba(46,204,113,0.35) !important; }
.lnb-withdrawal-history .lnb-status-declined,   .lnb-status-declined   { background: rgba(231,76,60,0.16) !important; color: #f0897b !important; border: 1px solid rgba(231,76,60,0.35) !important; }

@media (max-width: 600px) {
  #lnb-inventory-grid.lnb-grid, #lnb-sell-app .lnb-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important; }
}
