/* ============================================================
   GP24Media — forum / terminal style theme
   Loaded AFTER style.css. Re-colours the old components through
   the CSS variables, then adds the forum-specific blocks (f*).
   ============================================================ */
:root {
  --primary: #7cfc9a;
  --primary-dark: #4ade80;
  --primary-light: rgba(124,252,154,.12);
  --accent: #3dd68c;
  --secondary: #7cfc9a;
  --danger: #ff6b57;
  --warning: #ffb454;
  --info: #7dd3fc;
  --dark: #0b0f0c;
  --surface: #0f1611;
  --surface-2: #121b15;
  --card: rgba(255,255,255,.025);
  --card-border: #1f2b22;
  --card-border-hover: rgba(124,252,154,.45);
  --gray-900: #e8efe4;
  --gray-800: #d3dccd;
  --gray-700: #b9c4b3;
  --gray-600: #9ba897;
  --gray-500: #8a9686;
  --gray-400: #667262;
  --gray-300: #46544a;
  --gray-200: #26342a;
  --gray-100: #172019;
  --gray-50:  #0f1611;
  --radius: 4px;
  --radius-sm: 3px;
  --radius-lg: 6px;
  --shadow-sm: none;
  --shadow: 0 4px 18px rgba(0,0,0,.4);
  --glow: 0 0 0 1px rgba(124,252,154,.35);
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

body.forum, body {
  font-family: var(--mono);
  background: #0b0f0c;
  background-image: none;
  color: #c9d1c3;
  font-size: 14px;
  line-height: 1.55;
}
a { color: #7cfc9a; }
a:hover { color: #b6ffc9; text-decoration: underline; }
::selection { background: #7cfc9a; color: #06240f; }

/* legacy component re-skin (account, smm, auth pages keep working) */
.btn { border-radius: 4px; font-family: var(--mono); font-weight: 700; text-transform: lowercase; }
.btn-primary { background: #7cfc9a; color: #06240f; box-shadow: none; }
.btn-primary:hover { background: #a6ffbd; color: #06240f; transform: none; box-shadow: none; text-decoration: none; }
.btn-outline { border-width: 1px; }
.btn-secondary { border: 1px solid #26342a; }
.card { box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; background: #0f1611; }
.card-hover:hover { transform: none; }
.form-control { font-family: var(--mono); border-radius: 3px; background: #0b0f0c; }
.badge { border-radius: 3px; font-family: var(--mono); text-transform: lowercase; }
th { font-family: var(--mono); }
.section-title { font-size: 20px; letter-spacing: 0; }
.account-avatar { border-radius: 4px; }
.alert { border-radius: 3px; font-size: 13px; }

/* ---------- top bar ---------- */
.fnav { position: sticky; top: 0; z-index: 200; background: rgba(11,15,12,.94); border-bottom: 1px solid #1f2b22; backdrop-filter: blur(8px); }
.fnav-inner { max-width: 1120px; margin: 0 auto; padding: 0 16px; min-height: 56px; display: flex; align-items: center; gap: 22px; }
.fnav-brand { font-weight: 700; font-size: 18px; color: #e8efe4; white-space: nowrap; }
.fnav-logo { display: block; height: 34px; width: auto; max-width: 180px; object-fit: contain; }
.fnav-brand { display: inline-flex; align-items: center; }
.fnav-brand:hover { text-decoration: none; color: #fff; }
.cur { display: inline-block; width: 9px; height: 16px; background: #7cfc9a; margin-left: 6px; vertical-align: -3px; animation: fblink 1s steps(2,start) infinite; }
@keyframes fblink { to { visibility: hidden; } }
.fnav-links { display: flex; gap: 4px; }
.fnav-links a { color: #9ba897; padding: 6px 10px; font-size: 13px; }
.fnav-links a:hover, .fnav-links a.active { color: #7cfc9a; text-decoration: none; background: rgba(124,252,154,.08); }
.fnav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.fnav-link-sm { font-size: 13px; color: #9ba897; padding: 6px 4px; }
.fnav-link-sm:hover { color: #7cfc9a; text-decoration: none; }
.fnav-admin { color: #ffb454; }
.fnav-out { color: #ff6b57; }
.bal-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #2f4a37; background: #0f1a12; color: #c9d1c3; padding: 5px 10px; font-size: 13px; border-radius: 3px; white-space: nowrap; }
.bal-pill:hover { border-color: #7cfc9a; text-decoration: none; color: #fff; }
.bal-pill strong { color: #7cfc9a; }
.bal-label { color: #8a9686; }
.bal-plus { color: #06240f; background: #7cfc9a; font-weight: 700; padding: 0 6px; border-radius: 2px; }
.btn-menu { display: none; color: #e8efe4; margin-left: auto; }

/* ---------- buttons ---------- */
.fbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #7cfc9a; color: #06240f; border: 1px solid #7cfc9a; border-radius: 3px; padding: 10px 18px; font-family: var(--mono); font-size: 13px; font-weight: 700; cursor: pointer; min-height: 40px; text-transform: lowercase; line-height: 1.1; }
.fbtn:hover { background: #a6ffbd; border-color: #a6ffbd; color: #06240f; text-decoration: none; }
.fbtn-sm { padding: 6px 12px; min-height: 32px; font-size: 12px; }
.fbtn-ghost { background: transparent; color: #7cfc9a; border-color: #2f6a40; }
.fbtn-ghost:hover { background: rgba(124,252,154,.1); color: #b6ffc9; border-color: #7cfc9a; }
.fbtn-block { display: flex; width: 100%; }
.fbtn:disabled, .fbtn.loading { opacity: .55; cursor: not-allowed; }
.flink-sm { font-size: 12px; color: #7cfc9a; }
.fmuted { color: #8a9686; }

/* ---------- page ---------- */
.fwrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.fpage { padding-top: 18px; padding-bottom: 60px; }
.fnotice { border: 1px dashed #3a5a43; background: #0f1611; padding: 10px 12px; margin-bottom: 14px; font-size: 13px; }
.fnotice-tag { color: #ffb454; font-weight: 700; margin-right: 6px; }
.gif-slot { margin: 0 0 16px; border: 1px solid #1f2b22; border-radius: 4px; overflow: hidden; background: #0f1611; line-height: 0; box-shadow: 0 0 0 1px rgba(124,252,154,.06), 0 10px 30px -12px rgba(124,252,154,.25); }
.gif-slot img { width: 100%; max-height: 260px; object-fit: cover; margin: 0 auto; }
.gif-header { margin: 0; border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
.gif-header img { max-height: 140px; }
.gif-footer { margin: 24px 0 0; border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
.gif-cat img { max-height: 160px; }

/* ---------- search + sort ---------- */
.fbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.fsearch { display: flex; align-items: center; gap: 8px; flex: 1 1 340px; max-width: 560px; }
.fsearch-prompt { color: #7cfc9a; }
.fsearch input[type=search] { flex: 1; min-width: 0; background: #0f1611; border: 1px solid #2a3a2e; color: #e8efe4; padding: 9px 10px; font-family: var(--mono); font-size: 13px; border-radius: 3px; min-height: 40px; }
.fsearch input[type=search]:focus { outline: none; border-color: #7cfc9a; box-shadow: 0 0 0 3px rgba(124,252,154,.12); }
.ftabs { display: flex; gap: 6px; }
.ftab { border: 1px solid #2a3a2e; color: #9ba897; padding: 7px 14px; font-size: 13px; border-radius: 3px; min-height: 36px; display: inline-flex; align-items: center; }
.ftab:hover { color: #7cfc9a; text-decoration: none; border-color: #7cfc9a; }
.ftab.active { background: #7cfc9a; color: #06240f; border-color: #7cfc9a; font-weight: 700; }
.fresult-line { color: #8a9686; font-size: 13px; margin-bottom: 14px; }

/* ---------- category sections + lists ---------- */
.fsection { margin-bottom: 30px; scroll-margin-top: 70px; }
.fsection-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.fsection-title { font-size: 17px; font-weight: 700; color: #e8efe4; }
.fprompt { color: #7cfc9a; margin-right: 4px; }
.fcount { color: #8a9686; font-weight: 400; font-size: 12px; margin-left: 6px; border: 1px solid #26342a; padding: 0 6px; border-radius: 2px; }
.fsection-desc { color: #8a9686; font-size: 12.5px; margin-bottom: 8px; }
.fsection-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.flist { border: 1px solid #1f2b22; background: #0d130f; border-radius: 4px; overflow: hidden; }
.frow { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-bottom: 1px solid #18221b; color: inherit; }
.frow:last-child { border-bottom: 0; }
a.frow:hover { background: #121a14; text-decoration: none; color: inherit; }
.frow-head { background: #0f1611; color: #8a9686; font-size: 12px; padding: 8px 12px; }
.frow-oos .ftitle { color: #8a9686; }
.frank { flex: 0 0 28px; text-align: right; color: #667262; }
.fmain { flex: 1; min-width: 0; }
.ftitle-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.ftitle { color: #e8efe4; font-weight: 500; overflow-wrap: anywhere; }
a.frow:hover .ftitle { color: #7cfc9a; }
.fdesc { color: #8a9686; font-size: 12.5px; margin-top: 2px; overflow-wrap: anywhere; }
.fmeta { display: flex; flex-wrap: wrap; gap: 2px 6px; font-size: 12px; color: #8a9686; margin-top: 3px; }
.fprice { color: #ffb454; font-weight: 700; }
.fstrike { color: #667262; text-decoration: line-through; }
.fbuy { flex: 0 0 auto; align-self: center; }
.fbuy .fbtn { pointer-events: none; }

.tag { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 3px; text-transform: uppercase; letter-spacing: .4px; display: inline-block; line-height: 1.5; margin-right: 4px; vertical-align: 1px; }
.tag-hot  { background: #ff5a3c; color: #2a0802; box-shadow: 0 0 10px rgba(255,90,60,.55); animation: fblink 1.2s steps(2,start) infinite; }
.tag-new  { background: #7cfc9a; color: #06240f; box-shadow: 0 0 10px rgba(124,252,154,.5); animation: fblink 1.2s steps(2,start) infinite; }
.tag-top  { background: #ffc247; color: #2a1c00; box-shadow: 0 0 10px rgba(255,194,71,.45); }
.tag-sale { background: #5cc8ff; color: #00212f; }
.tag-oos  { background: #26342a; color: #8a9686; font-weight: 400; }
@media (prefers-reduced-motion: reduce) { .cur, .tag-hot, .tag-new { animation: none; } }

.smm-row { align-items: baseline; }
.smm-id { flex: 0 0 52px; }
.smm-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.smm-cat { font-size: 11.5px; }
.smm-rate { flex: 0 0 110px; text-align: right; }
.smm-range { flex: 0 0 130px; text-align: right; font-size: 12px; }

.fempty { border: 1px dashed #2a3a2e; padding: 30px 14px; text-align: center; color: #8a9686; }
.fhelp { margin-top: 10px; border: 1px dashed #2a3a2e; background: #0f1611; padding: 14px 16px; font-size: 13px; color: #9ba897; }
.fhelp ol { margin: 6px 0 0 20px; }

/* ---------- product / thread page ---------- */
.fcrumbs { font-size: 12.5px; color: #8a9686; margin-bottom: 14px; overflow-wrap: anywhere; }
.fthread { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.fpost { flex: 999 1 460px; min-width: 0; border: 1px solid #1f2b22; background: #0d130f; border-radius: 4px; padding: 18px; }
.fpost-title { font-size: 20px; line-height: 1.35; color: #e8efe4; margin-bottom: 6px; overflow-wrap: anywhere; }
.fpost-demo { margin-top: 12px; }
.fpost-body { margin-top: 16px; color: #b9c4b3; line-height: 1.8; overflow-wrap: anywhere; }
.fpost-sub { margin-top: 18px; color: #7cfc9a; font-weight: 700; }
.ffeatures { margin: 6px 0 0 0; padding-left: 0; list-style: none; }
.ffeatures li { padding: 5px 0 5px 20px; position: relative; color: #b9c4b3; border-bottom: 1px dashed #18221b; }
.ffeatures li::before { content: '+'; position: absolute; left: 4px; color: #7cfc9a; }
.fbuybox { flex: 1 1 320px; max-width: 420px; min-width: 0; border: 1px solid #2f4a37; background: #0f1a12; border-radius: 4px; padding: 16px; position: sticky; top: 70px; }
.fbuybox-title { color: #7cfc9a; font-weight: 700; margin-bottom: 10px; }
.fbuybox-title::before { content: '> '; }
.fbuybox-note { color: #8a9686; font-size: 12.5px; margin-bottom: 12px; }
.fvars { border: 1px solid #26342a; padding: 8px 10px 4px; margin-bottom: 14px; border-radius: 3px; }
.fvars legend { font-size: 12px; color: #8a9686; padding: 0 6px; }
.fvar { display: flex; align-items: center; gap: 8px; padding: 9px 4px; border-bottom: 1px dashed #1f2b22; cursor: pointer; min-height: 44px; }
.fvar:last-child { border-bottom: 0; }
.fvar input { accent-color: #7cfc9a; width: 16px; height: 16px; }
.fvar-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.fvar-price { color: #ffb454; font-weight: 700; }
.fvar-oos { opacity: .5; cursor: not-allowed; }
.ffield { margin-bottom: 14px; }
.ffield label { display: block; font-size: 13px; margin-bottom: 5px; color: #d3dccd; }
.freq { color: #ff6b57; }
.freason { font-size: 12px; color: #8a9686; margin-top: 4px; border-left: 2px solid #2f4a37; padding-left: 8px; }
.fpaybox { border: 1px dashed #2f4a37; padding: 10px 12px; margin: 14px 0; font-size: 13px; }
.fpay-row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.fpay-row strong { color: #e8efe4; }
.fpay-after { border-top: 1px dashed #2f4a37; margin-top: 6px; padding-top: 7px; }

/* ---------- order detail ---------- */
.forder-box { border: 1px solid #1f2b22; background: #0d130f; padding: 18px; border-radius: 4px; }
.forder-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.forder-num { font-size: 18px; font-weight: 700; color: #e8efe4; overflow-wrap: anywhere; }
.fdl { display: grid; grid-template-columns: 130px 1fr; gap: 6px 14px; margin: 8px 0 16px; font-size: 13.5px; }
.fdl dt { color: #8a9686; }
.fdl dd { margin: 0; overflow-wrap: anywhere; }
.fnote { border: 1px solid #3a5a43; background: #0f1a12; padding: 12px 14px; margin: 12px 0; border-radius: 3px; font-size: 13.5px; line-height: 1.7; }
.fnote-title { color: #7cfc9a; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.fnote-keys pre { white-space: pre-wrap; word-break: break-all; font-family: var(--mono); font-size: 13px; margin-bottom: 10px; color: #e8efe4; }
.forder-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ---------- account: balance + order history ---------- */
.fbal-card { border: 1px solid #2f4a37; background: linear-gradient(180deg, #0f1a12, #0d130f); border-radius: 4px; padding: 18px; margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; box-shadow: 0 0 0 1px rgba(124,252,154,.05), 0 14px 34px -16px rgba(124,252,154,.3); }
.fbal-label { color: #8a9686; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; }
.fbal-amount { font-size: 34px; font-weight: 700; color: #7cfc9a; line-height: 1.1; }
.fbal-meta { color: #8a9686; font-size: 12.5px; margin-top: 4px; }
.fbal-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fo-list { border: 1px solid #1f2b22; background: #0d130f; border-radius: 4px; overflow: hidden; }
.fo-item { border-bottom: 1px solid #18221b; }
.fo-item:last-child { border-bottom: 0; }
.fo-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 52px; }
.fo-item summary::-webkit-details-marker { display: none; }
.fo-item summary::before { content: '+'; color: #7cfc9a; width: 14px; flex: 0 0 14px; }
.fo-item[open] summary::before { content: '-'; }
.fo-item summary:hover { background: #121a14; }
.fo-main { flex: 1; min-width: 0; }
.fo-title { color: #e8efe4; overflow-wrap: anywhere; }
.fo-sub { color: #8a9686; font-size: 12px; }
.fo-amount { color: #ffb454; font-weight: 700; white-space: nowrap; }
.fo-body { padding: 0 12px 14px 38px; font-size: 13px; }
.fo-has-note { color: #7cfc9a; font-size: 11.5px; }

/* ---------- footer ---------- */
.ffoot { border-top: 1px solid #1f2b22; padding: 18px 0 90px; margin-top: 20px; color: #8a9686; font-size: 12.5px; }
.ffoot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; }
.ffoot-links a { color: #9ba897; }

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  .fnav-links, .fnav-right { display: none; }
  .btn-menu { display: block; }
  .fnav-inner { gap: 10px; }
  .fbuybox { position: static; max-width: none; flex-basis: 100%; }
}
@media (max-width: 600px) {
  .fpage { padding-top: 12px; }
  .frow { gap: 8px; padding: 11px 10px; }
  .frank { flex-basis: 22px; }
  .fbuy .fbtn { padding: 6px 12px; min-height: 34px; }
  .smm-row { flex-wrap: wrap; }
  .smm-id { flex-basis: 40px; }
  .smm-rate { flex-basis: auto; margin-left: auto; }
  .smm-range { flex-basis: 100%; text-align: left; padding-left: 52px; }
  .frow-head .smm-range { display: none; }
  .fdl { grid-template-columns: 1fr; gap: 0; }
  .fdl dt { margin-top: 8px; font-size: 12px; }
  .fbal-amount { font-size: 28px; }
  .fo-body { padding-left: 12px; }
  .ftabs { width: 100%; }
  .ftab { flex: 1; justify-content: center; }
}
.mobile-bottom-nav a .mbn-icon { font-family: var(--mono); font-weight: 700; font-size: 13px; }
.mobile-nav-panel { background: #0f1611; }
.mobile-nav-panel a { font-family: var(--mono); font-size: 14px; border-radius: 3px; }

/* ---------- category colours (cycled by position so neighbours differ) ---------- */
.fsection { --c: #7cfc9a; border-left: 3px solid var(--c); padding-left: 12px; }
.fsection .fsection-title, .fsection .fprompt { color: var(--c); }
.fsection .fcount { border: 0; background: var(--c); color: #0b0f0c; border-radius: 3px; padding: 0 6px; font-weight: 700; }
.fsection-head { border-bottom: 1px dashed color-mix(in srgb, var(--c) 40%, transparent); padding-bottom: 6px; }
.fc-0 { --c: #7cfc9a; } .fc-1 { --c: #5cc8ff; } .fc-2 { --c: #ffc247; } .fc-3 { --c: #ff7ac8; }
.fc-4 { --c: #b794ff; } .fc-5 { --c: #ff8a5c; } .fc-6 { --c: #4de0d0; } .fc-7 { --c: #d4e157; }

/* ---------- coupons (product page) ---------- */
.fcoupon { border: 1px dashed #2a3a2e; border-radius: 4px; padding: 10px; margin: 12px 0; background: #0b100c; }
.fcoupon-title { color: #8a9686; font-size: 12px; text-transform: lowercase; margin-bottom: 8px; }
.fcoupon-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.fcoupon-list:empty { display: none; }
.fcp { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; text-align: left; background: #101712; border: 1px dashed #7cfc9a; color: #e8efe4; border-radius: 4px; padding: 8px 10px; cursor: pointer; font-family: var(--mono); }
.fcp:hover { background: #142017; }
.fcp-code { font-weight: 700; color: #7cfc9a; letter-spacing: .5px; }
.fcp-code em { font-style: normal; background: #ffc247; color: #2a1c00; font-size: 10px; font-weight: 700; padding: 0 5px; border-radius: 3px; margin-left: 6px; text-transform: uppercase; }
.fcp-off-txt { justify-self: end; font-weight: 700; font-size: 13px; }
.fcp-sub { font-size: 12px; color: #9ba897; grid-column: 1 / -1; }
.fcp-desc { font-size: 12px; color: #8a9686; grid-column: 1 / -1; }
.fcp-on, .fcp-on:hover { background: #7cfc9a; border-style: solid; }
.fcp-on .fcp-code, .fcp-on .fcp-off-txt, .fcp-on .fcp-sub, .fcp-on .fcp-desc { color: #06240f; }
.fcp-off { opacity: .5; border-color: #2a3a2e; cursor: not-allowed; }
.fcp-off .fcp-code { color: #9ba897; }
.fcoupon-row { display: flex; gap: 8px; }
.fcoupon-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.fcoupon-row .fbtn { padding: 8px 14px; min-height: 40px; }
.fcoupon-msg { font-size: 12.5px; margin-top: 6px; min-height: 0; }
.fcoupon-msg.ok { color: #7cfc9a; }
.fcoupon-msg.bad { color: #ff6b57; }
.fpay-disc strong { color: #7cfc9a; }
.fpay-total { border-top: 1px dashed #2a3a2e; padding-top: 6px; margin-top: 4px; }
.fpay-total strong { font-size: 16px; }
