/* MasterQol Partner Club — dark & gold panel, admin card and approval window.
   Scoped to .mqp-* and #partnyor only; nothing else on the site is affected. Always dark (also in light mode). */
:root {
  --mqp-black: #07060a;
  --mqp-ink: #0e0c12;
  --mqp-panel: #141118;
  --mqp-gold: #d4af37;
  --mqp-gold-hi: #f6e27a;
  --mqp-gold-lo: #8a6a1c;
  --mqp-text: #f3ead2;
  --mqp-muted: #a89f88;
  --mqp-line: rgba(212, 175, 55, .28);
  --mqp-gold-grad: linear-gradient(135deg, #8a6a1c 0%, #d4af37 28%, #f6e27a 50%, #d4af37 72%, #8a6a1c 100%);
}

/* ---------- Partner panel ---------- */
#partnyor.mqp-panel { color: var(--mqp-text); }
.mqp-shell {
  position: relative; overflow: hidden; max-width: 980px; margin: 0 auto; padding: 34px 32px 38px;
  border-radius: 22px; border: 1px solid var(--mqp-line);
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(212, 175, 55, .16), transparent 60%),
    radial-gradient(90% 60% at 0% 100%, rgba(212, 175, 55, .09), transparent 65%),
    linear-gradient(160deg, #110e15 0%, var(--mqp-black) 55%, #0b0910 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(246, 226, 122, .12);
}
.mqp-shell::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; padding: 1px;
  background: var(--mqp-gold-grad); opacity: .55;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.mqp-hero { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.mqp-crest {
  flex: 0 0 auto; width: 74px; height: 74px; display: grid; place-items: center; font-size: 36px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2a2316, #0d0b10 70%);
  border: 1px solid rgba(246, 226, 122, .55); box-shadow: 0 0 0 6px rgba(212, 175, 55, .08), 0 0 34px rgba(212, 175, 55, .28);
}
.mqp-kicker { margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .32em; color: var(--mqp-gold); }
.mqp-title {
  margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 36px; letter-spacing: .5px; line-height: 1.1;
  background: var(--mqp-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mqp-sub { margin: 8px 0 0; color: var(--mqp-muted); font-size: 14px; }
.mqp-hero-text { flex: 1 1 auto; min-width: 0; }
.mqp-rate {
  flex: 0 0 auto; display: grid; place-items: center; gap: 2px; min-width: 112px; padding: 14px 18px; border-radius: 18px; text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(246, 226, 122, .28), rgba(212, 175, 55, .06) 70%), #0b090e;
  border: 1px solid rgba(246, 226, 122, .6); box-shadow: 0 0 0 5px rgba(212, 175, 55, .06), 0 0 30px rgba(212, 175, 55, .22);
}
.mqp-rate[hidden] { display: none; }
.mqp-rate-label { font-size: 10px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--mqp-gold); }
.mqp-rate-value { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 38px; line-height: 1; background: var(--mqp-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mqp-rate.is-updated { animation: mqpRatePulse 1.4s ease; }
@keyframes mqpRatePulse { 0% { transform: scale(1); } 25% { transform: scale(1.12); box-shadow: 0 0 0 8px rgba(246, 226, 122, .18), 0 0 60px rgba(246, 226, 122, .55); } 100% { transform: scale(1); } }
.mqp-state { padding: 34px 18px; text-align: center; color: var(--mqp-muted); border: 1px dashed var(--mqp-line); border-radius: 16px; }
.mqp-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mqp-muted); }

.mqp-link-card { padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, .025); border: 1px solid var(--mqp-line); margin-bottom: 18px; }
.mqp-link-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.mqp-link {
  flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 12px 14px; border-radius: 10px;
  background: #0a080d; border: 1px solid rgba(212, 175, 55, .22); color: var(--mqp-gold-hi); font-size: 14px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.mqp-promo-code { font-size: 20px; font-weight: 800; letter-spacing: .14em; text-align: center; color: var(--mqp-gold-hi); text-shadow: 0 0 14px rgba(246, 226, 122, .3); }
.mqp-promo-code.is-empty { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--mqp-muted); text-shadow: none; }
.mqp-promo-card [hidden] { display: none; }
.mqp-edit-promo { text-transform: uppercase; letter-spacing: .08em; }
.mqp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.mqp-stat {
  position: relative; padding: 22px 20px 20px; border-radius: 18px; min-height: 150px; display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(170deg, rgba(212, 175, 55, .07), rgba(255, 255, 255, .015) 45%, rgba(0, 0, 0, .25));
  border: 1px solid var(--mqp-line); box-shadow: inset 0 1px 0 rgba(246, 226, 122, .08);
}
.mqp-stat-icon { font-size: 22px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(212, 175, 55, .1); border: 1px solid rgba(212, 175, 55, .3); }
.mqp-stat-value { margin-top: auto; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 40px; line-height: 1; color: var(--mqp-text); }
.mqp-stat-value small { font-family: Inter, system-ui, sans-serif; font-size: 14px; font-weight: 700; color: var(--mqp-gold); letter-spacing: .08em; }
.mqp-stat-balance { border-color: rgba(246, 226, 122, .55); background: linear-gradient(170deg, rgba(212, 175, 55, .18), rgba(212, 175, 55, .04) 55%, rgba(0, 0, 0, .3)); box-shadow: 0 0 40px rgba(212, 175, 55, .12), inset 0 1px 0 rgba(246, 226, 122, .2); }
.mqp-stat-balance .mqp-stat-value { background: var(--mqp-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.mqp-withdraw { padding: 20px; border-radius: 16px; border: 1px solid var(--mqp-line); background: rgba(0, 0, 0, .28); display: grid; gap: 12px; }
.mqp-progress { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; border: 1px solid rgba(212, 175, 55, .18); }
.mqp-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--mqp-gold-grad); box-shadow: 0 0 14px rgba(246, 226, 122, .5); transition: width .6s ease; }
.mqp-note { margin: 0; font-size: 13px; color: var(--mqp-muted); }

.mqp-history { margin-top: 18px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--mqp-line); background: rgba(255, 255, 255, .02); }
.mqp-history-title { margin: 0 0 12px; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 20px; color: var(--mqp-gold-hi); }
.mqp-history-list { display: grid; gap: 8px; }
.mqp-history-empty { margin: 0; font-size: 13px; color: var(--mqp-muted); }
.mqp-history-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid rgba(212, 175, 55, .16); }
.mqp-history-main { display: grid; gap: 2px; min-width: 0; }
.mqp-history-main strong { font-size: 17px; color: var(--mqp-text); }
.mqp-history-main small { font-size: 12px; color: var(--mqp-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mqp-history-date { font-size: 12px; color: var(--mqp-muted); white-space: nowrap; }
.mqp-history-status { padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.mqp-history-status.is-pending { color: #fbbf24; background: rgba(245, 158, 11, .14); border: 1px solid rgba(245, 158, 11, .55); }
.mqp-history-status.is-paid { color: #4ade80; background: rgba(34, 197, 94, .13); border: 1px solid rgba(34, 197, 94, .55); }
.mqp-history-status.is-rejected { color: #fca5a5; background: rgba(239, 68, 68, .13); border: 1px solid rgba(239, 68, 68, .55); }
@media (max-width: 520px) {
  .mqp-history { padding: 14px; }
  .mqp-history-row { grid-template-columns: minmax(0, 1fr) auto; }
  .mqp-history-date { grid-column: 1; grid-row: 2; }
  .mqp-history-status { grid-column: 2; grid-row: 1 / span 2; }
}
.mqp-btn-gold, .mqp-btn-ghost { font: inherit; cursor: pointer; border-radius: 12px; font-weight: 800; letter-spacing: .04em; transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease; }
.mqp-btn-gold { padding: 15px 22px; border: 0; color: #1a1305; background: var(--mqp-gold-grad); box-shadow: 0 10px 28px rgba(212, 175, 55, .28); font-size: 15px; text-transform: uppercase; }
.mqp-btn-gold:disabled { cursor: not-allowed; opacity: .38; filter: grayscale(.4); box-shadow: none; }
.mqp-btn-gold.is-ready:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(212, 175, 55, .4); }
.mqp-btn-ghost { flex: 0 0 auto; padding: 11px 16px; color: var(--mqp-gold-hi); background: transparent; border: 1px solid rgba(212, 175, 55, .55); }
.mqp-btn-ghost:hover { background: rgba(212, 175, 55, .1); }

.mqp-menu-item span { color: var(--mqp-gold); }

/* "Partnyor Klubu 👑" links to the public /partner-club page (landing header + footers) */
a.mqp-club-link { display: inline-flex; align-items: center; text-decoration: none; color: var(--mqp-gold-hi); border-color: rgba(246, 226, 122, .6); white-space: nowrap; }
.mqp-club-footer-link { color: var(--mqp-gold); font-weight: 700; text-decoration: none; }
.mqp-club-footer-link:hover { color: var(--mqp-gold-hi); text-decoration: underline; }
.footer-links .mqp-club-footer-link { margin-left: 18px; }
.mqp-club-footer-link--app { font-size: 12px; }
@media (max-width: 520px) {
  a.mqp-club-link { padding: 8px 10px; font-size: 12px; }
  .footer-links .mqp-club-footer-link { display: inline-block; margin: 10px 0 0; }
  .footer-links { display: flex; flex-direction: column; align-items: center; }
}

/* In-app "Partnyor Klubu 👑" page (sidebar link for signed-in users; /partnyor-klubu) */
#partnyor-klubu.mqp-club { color: var(--mqp-text); }
.mqp-club-lead { font-size: 17px; color: #e6dcc0; }
.mqp-club-heading { margin: 6px 0 14px; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 24px; color: var(--mqp-gold-hi); }
.mqp-club-steps { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mqp-club-step {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px 20px 20px; border-radius: 18px; border: 1px solid var(--mqp-line);
  background: linear-gradient(170deg, rgba(212, 175, 55, .08), rgba(255, 255, 255, .015) 45%, rgba(0, 0, 0, .25)); box-shadow: inset 0 1px 0 rgba(246, 226, 122, .08);
}
.mqp-club-step-num { position: absolute; top: 14px; right: 16px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font-family: Georgia, serif; font-size: 16px; font-weight: 700; color: #1a1305; background: var(--mqp-gold-grad); box-shadow: 0 0 18px rgba(212, 175, 55, .35); }
.mqp-club-step-icon { width: 46px; height: 46px; display: grid; place-items: center; font-size: 22px; border-radius: 13px; background: rgba(212, 175, 55, .1); border: 1px solid rgba(212, 175, 55, .32); }
.mqp-club-step strong { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 21px; color: var(--mqp-gold-hi); }
.mqp-club-step p { margin: 0; font-size: 14px; line-height: 1.6; color: #d9cfb3; }
.mqp-club-terms { display: flex; align-items: flex-start; gap: 16px; padding: 20px 22px; margin-bottom: 22px; border-radius: 18px; border: 1px solid rgba(246, 226, 122, .5); background: radial-gradient(80% 140% at 0% 0%, rgba(212, 175, 55, .16), transparent 60%), rgba(0, 0, 0, .3); box-shadow: 0 0 34px rgba(212, 175, 55, .1); }
.mqp-club-terms-icon { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; font-size: 22px; border-radius: 50%; border: 1px solid rgba(246, 226, 122, .5); background: rgba(212, 175, 55, .1); }
.mqp-club-terms h3 { margin: 0 0 6px; font-family: Georgia, serif; font-weight: 400; font-size: 20px; color: var(--mqp-gold-hi); }
.mqp-club-terms p { margin: 0; font-size: 15px; line-height: 1.65; color: #e6dcc0; }
.mqp-club-cta { display: grid; justify-items: center; gap: 12px; padding: 10px 0 2px; }
.mqp-club-whatsapp { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: min(560px, 100%); padding: 20px 28px; font-size: 18px; border-radius: 16px; text-decoration: none; }
.mqp-club-whatsapp svg { width: 26px; height: 26px; flex: 0 0 auto; }
.mqp-club-panel-link { font-size: 13px; }
.mqp-club-menu-item span { color: var(--mqp-gold); }
@media (max-width: 760px) {
  .mqp-club-steps { grid-template-columns: 1fr; gap: 12px; }
  .mqp-club-step { padding: 18px 16px 16px; }
  .mqp-club-terms { padding: 16px; gap: 12px; }
  .mqp-club-whatsapp { padding: 18px 16px; font-size: 16px; }
  .mqp-club-heading { font-size: 21px; }
}

/* Homepage partner banner (under the three feature boxes; same width and side padding as that grid) */
.mqp-home-banner-wrap { max-width: 1200px; margin: 0 auto; padding: 0 50px 34px; flex: 0 0 auto; width: 100%; box-sizing: border-box; }
.mqp-home-banner {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 22px; padding: 22px 26px; border-radius: 18px; color: var(--mqp-text);
  border: 1px solid rgba(246, 226, 122, .5);
  background: radial-gradient(70% 140% at 100% 0%, rgba(212, 175, 55, .2), transparent 60%), linear-gradient(120deg, #110d08 0%, #08070b 55%, #120e07 100%);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(246, 226, 122, .14);
}
.mqp-home-banner::after { content: ""; position: absolute; top: 0; left: -40%; width: 30%; height: 100%; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(246, 226, 122, .08), transparent); transform: skewX(-18deg); animation: mqpBannerSheen 6s ease-in-out infinite; }
@keyframes mqpBannerSheen { 0%, 60% { left: -40%; } 100% { left: 120%; } }
.mqp-home-banner-crest { flex: 0 0 auto; width: 56px; height: 56px; display: grid; place-items: center; font-size: 27px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #2a2316, #0d0b10 70%); border: 1px solid rgba(246, 226, 122, .55); box-shadow: 0 0 26px rgba(212, 175, 55, .28); }
.mqp-home-banner-text { flex: 1 1 auto; min-width: 0; }
.mqp-home-banner-text h3 { margin: 0 0 6px; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 23px; line-height: 1.2; color: var(--mqp-gold-hi); }
.mqp-home-banner-text p { margin: 0; font-size: 14px; line-height: 1.6; color: #d9cfb3; }
.mqp-home-banner-btn {
  position: relative; z-index: 1; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; border-radius: 12px; text-decoration: none; white-space: nowrap;
  font-weight: 800; font-size: 15px; color: #1a1305; background: var(--mqp-gold-grad); background-size: 200% 100%; box-shadow: 0 10px 26px rgba(212, 175, 55, .3); transition: transform .18s ease, box-shadow .25s ease, background-position .5s ease;
}
.mqp-home-banner-btn:hover { transform: translateY(-2px); background-position: 100% 50%; box-shadow: 0 16px 34px rgba(212, 175, 55, .45); }
@media (max-width: 900px) { .mqp-home-banner-wrap { padding: 0 20px 26px; } }
@media (max-width: 640px) {
  .mqp-home-banner-wrap { padding: 0 14px 22px; }
  .mqp-home-banner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px 18px; }
  .mqp-home-banner-text h3 { font-size: 21px; }
  .mqp-home-banner-btn { width: 100%; white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .mqp-home-banner::after { animation: none; } }

/* Profile shortcut to the panel (shown only to partners, like the menu items) */
.mqp-profile-cta {
  display: flex; align-items: center; gap: 14px; width: 100%; margin: 0 0 22px; padding: 16px 18px; text-align: left; cursor: pointer; font: inherit;
  border-radius: 16px; border: 1px solid rgba(246, 226, 122, .55); color: var(--mqp-text);
  background: radial-gradient(120% 120% at 100% 0%, rgba(212, 175, 55, .22), transparent 60%), linear-gradient(150deg, #17120a, #08070b);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .35), 0 0 26px rgba(212, 175, 55, .14); transition: transform .15s ease, box-shadow .2s ease;
}
.mqp-profile-cta:hover { transform: translateY(-1px); box-shadow: 0 16px 40px rgba(0, 0, 0, .4), 0 0 34px rgba(212, 175, 55, .26); }
.mqp-profile-cta-icon { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; font-size: 22px; border-radius: 50%; border: 1px solid rgba(246, 226, 122, .5); background: rgba(212, 175, 55, .1); }
.mqp-profile-cta-text { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; }
.mqp-profile-cta-text strong { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 20px; color: var(--mqp-gold-hi); text-shadow: 0 0 18px rgba(212, 175, 55, .35); }
.mqp-profile-cta-text small { font-size: 12px; color: var(--mqp-muted); }
.mqp-profile-cta-arrow { flex: 0 0 auto; font-size: 20px; font-weight: 800; color: var(--mqp-gold-hi); }

@media (max-width: 760px) {
  .mqp-shell { padding: 22px 16px 24px; border-radius: 18px; }
  .mqp-hero { gap: 14px; margin-bottom: 20px; }
  .mqp-crest { width: 58px; height: 58px; font-size: 28px; }
  .mqp-title { font-size: 28px; }
  .mqp-hero { flex-wrap: wrap; }
  .mqp-rate { order: 3; width: 100%; grid-auto-flow: column; justify-content: space-between; padding: 12px 16px; }
  .mqp-rate-value { font-size: 30px; }
  .mqp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mqp-stat { min-height: 132px; padding: 14px; gap: 8px; }
  .mqp-stat-balance { grid-column: 1 / -1; order: -1; min-height: 0; }
  .mqp-stat .mqp-label { font-size: 11px; }
  .mqp-stat-value { font-size: 30px; }
  .mqp-link-row { flex-direction: column; align-items: stretch; }
  .mqp-link { white-space: normal; word-break: break-all; text-overflow: clip; }
}

/* ---------- Admin card ---------- */
.mqp-admin-card { margin-bottom: 20px; border: 1px solid rgba(212, 175, 55, .55); background: linear-gradient(135deg, rgba(120, 90, 15, .16), rgba(10, 8, 14, .94)); }
.mqp-admin-card h3 { margin: 0 0 6px; color: var(--mqp-gold-hi); }
.mqp-admin-hint { margin: 0 0 12px; font-size: 13px; color: var(--mqp-muted); line-height: 1.6; }
.mqp-admin-form { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.mqp-admin-form input { flex: 1 1 200px; min-width: 0; padding: 10px 12px; border-radius: 8px; background: rgba(0, 0, 0, .35); color: #fff; border: 1px solid rgba(212, 175, 55, .3); }
.mqp-admin-form input[type=number] { flex: 0 0 110px; }
.mqp-admin-btn { padding: 10px 16px; border-radius: 8px; border: 0; cursor: pointer; font-weight: 800; color: #1a1305; background: var(--mqp-gold-grad); }
.mqp-admin-btn-ghost { color: var(--mqp-gold-hi); background: transparent; border: 1px solid rgba(212, 175, 55, .5); }
/* Global switch: everything partner-related on the site is hidden while the program is off (admin card stays). */
.mqp-system-off .mqp-menu-item, .mqp-system-off .mqp-club-menu-item, .mqp-system-off .mqp-club-link,
.mqp-system-off .mqp-club-footer-link, .mqp-system-off .mqp-home-banner-wrap,
.mqp-system-off #partnyor, .mqp-system-off #partnyor-klubu { display: none !important; }
.mqp-admin-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 12px; padding: 14px 16px; border-radius: 12px; background: linear-gradient(120deg, rgba(212, 175, 55, .16), rgba(0, 0, 0, .3)); border: 1px solid rgba(246, 226, 122, .5); }
.mqp-admin-switch-text { display: grid; gap: 3px; min-width: 0; }
.mqp-admin-switch-text strong { color: var(--mqp-gold-hi); font-size: 15px; }
.mqp-admin-switch-text small { color: #86efac; font-size: 12px; }
.mqp-admin-switch-text small.is-off { color: #fca5a5; }
.mqp-switch { position: relative; flex: 0 0 auto; width: 62px; height: 32px; cursor: pointer; }
.mqp-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.mqp-switch-slider { position: absolute; inset: 0; border-radius: 999px; background: #2a2630; border: 1px solid rgba(212, 175, 55, .4); transition: background .25s ease, box-shadow .25s ease; }
.mqp-switch-slider::before { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #8a8170; transition: transform .25s ease, background .25s ease; }
.mqp-switch input:checked + .mqp-switch-slider { background: var(--mqp-gold-grad); box-shadow: 0 0 18px rgba(212, 175, 55, .45); }
.mqp-switch input:checked + .mqp-switch-slider::before { transform: translateX(30px); background: #1a1305; }
.mqp-switch input:disabled + .mqp-switch-slider { opacity: .6; }
.mqp-switch input:focus-visible + .mqp-switch-slider { outline: 2px solid #f6e27a; outline-offset: 2px; }
.mqp-admin-limit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(212, 175, 55, .3); }
.mqp-admin-limit label { font-size: 13px; font-weight: 700; color: var(--mqp-gold-hi); }
.mqp-admin-limit input { width: 110px; padding: 9px 10px; border-radius: 8px; background: rgba(0, 0, 0, .35); color: #fff; border: 1px solid rgba(212, 175, 55, .3); }
.mqp-promo-usage { display: inline-block; margin-top: 5px; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; color: #f6e27a; background: rgba(212, 175, 55, .1); border: 1px solid rgba(212, 175, 55, .35); white-space: nowrap; }
.mqp-promo-usage strong { color: #fff; }
.mqp-promo-usage.is-full { color: #fca5a5; background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .5); }
.mqp-promo-usage.is-missing { color: var(--mqp-muted); }
.mqp-edit-usage { font-weight: 400; }
.mqp-admin-note { display: inline-block; margin-top: 4px; color: var(--mqp-muted); font-size: 11px; }
.mqp-modal-input-plain { font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.mqp-modal-textarea { font-size: 15px; font-weight: 500; resize: vertical; min-height: 80px; font-family: inherit; }
.mqp-modal-hint { margin: 8px 0 14px; font-size: 12px; color: var(--mqp-muted); }
.mqp-admin-status { min-height: 18px; margin: 4px 0 10px; font-size: 13px; color: #86efac; word-break: break-all; }
.mqp-admin-status.is-bad { color: #fca5a5; }
.mqp-admin-table-wrap { overflow-x: auto; }
.mqp-admin-table { width: 100%; border-collapse: collapse; color: #fff; font-size: 13px; text-align: left; }
.mqp-admin-table th, .mqp-admin-table td { padding: 10px 8px; border-bottom: 1px solid rgba(255, 255, 255, .06); vertical-align: top; }
.mqp-admin-table th { color: var(--mqp-gold); font-weight: 700; white-space: nowrap; }
.mqp-admin-table small { color: var(--mqp-muted); }
.mqp-admin-table code { color: var(--mqp-gold-hi); }
.mqp-admin-table tr.is-off { opacity: .5; }
.mqp-admin-pct { width: 64px; padding: 5px 6px; border-radius: 6px; background: rgba(0, 0, 0, .35); color: #fff; border: 1px solid rgba(212, 175, 55, .3); }
.mqp-admin-mini { margin: 4px 4px 0 0; padding: 5px 9px; border-radius: 6px; cursor: pointer; font-size: 11px; font-weight: 700; color: var(--mqp-gold-hi); background: rgba(212, 175, 55, .08); border: 1px solid rgba(212, 175, 55, .4); }
.mqp-admin-mini:disabled { opacity: .4; cursor: not-allowed; }
.mqp-admin-mini.mqp-admin-delete { color: #fff; background: #dc2626; border-color: #ef4444; }
.mqp-admin-mini.mqp-admin-delete:hover { background: #b91c1c; }
.mqp-admin-pending { display: inline-block; padding: 4px 8px; border-radius: 6px; background: rgba(245, 158, 11, .15); color: #fbbf24; font-weight: 800; }
.mqp-admin-requests { margin: 0 0 14px; padding: 14px; border-radius: 12px; border: 1px solid rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .06); }
.mqp-admin-requests h4 { margin: 0 0 10px; color: #fbbf24; font-size: 15px; }
.mqp-admin-empty { margin: 0; font-size: 13px; color: var(--mqp-muted); }
.mqp-admin-request { display: grid; grid-template-columns: minmax(160px, 1.2fr) auto minmax(200px, 1.6fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: 10px; background: rgba(0, 0, 0, .3); border: 1px solid rgba(212, 175, 55, .25); color: #fff; }
.mqp-admin-request + .mqp-admin-request { margin-top: 8px; }
.mqp-admin-request-main { display: grid; gap: 3px; min-width: 0; }
.mqp-admin-request-main small, .mqp-admin-request-amount small { color: var(--mqp-muted); font-size: 11px; font-weight: 400; }
.mqp-admin-request-amount { display: grid; font-size: 18px; font-weight: 900; color: #fbbf24; white-space: nowrap; }
.mqp-admin-request-method { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.mqp-admin-request-method span { font-size: 11px; color: var(--mqp-muted); text-transform: uppercase; letter-spacing: .08em; }
.mqp-admin-request-method code { padding: 6px 9px; border-radius: 6px; background: #0a080d; border: 1px solid rgba(212, 175, 55, .35); color: var(--mqp-gold-hi); font-size: 14px; word-break: break-all; }
.mqp-admin-request-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.mqp-admin-request.is-paid, .mqp-admin-request.is-rejected { opacity: .72; }
.mqp-status-badge { display: inline-block; margin-right: 6px; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .03em; }
.mqp-status-badge.mqp-status-pending { color: #fbbf24; background: rgba(245, 158, 11, .15); border: 1px solid rgba(245, 158, 11, .5); }
.mqp-status-badge.mqp-status-paid { color: #4ade80; background: rgba(34, 197, 94, .14); border: 1px solid rgba(34, 197, 94, .5); }
.mqp-status-badge.mqp-status-rejected { color: #fca5a5; background: rgba(239, 68, 68, .14); border: 1px solid rgba(239, 68, 68, .5); }
.mqp-status-btn.mqp-status-paid:not(:disabled) { color: #052e16; background: #4ade80; border-color: #22c55e; }
.mqp-status-btn.mqp-status-rejected:not(:disabled) { color: #fff; background: #dc2626; border-color: #ef4444; }
.mqp-status-btn.is-current { outline: 2px solid rgba(246, 226, 122, .7); }
.mqp-admin-mini.mqp-admin-pay { color: #052e16; background: #4ade80; border-color: #22c55e; }
@media (max-width: 760px) { .mqp-admin-request { grid-template-columns: 1fr; } }
.mqp-admin-ref-tag { display: inline-block; margin-top: 4px; padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; color: #f6e27a; background: rgba(212, 175, 55, .12); border: 1px solid rgba(212, 175, 55, .35); }

/* ---------- Approval window ---------- */
.mqp-modal { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px; background: rgba(3, 2, 6, .78); backdrop-filter: blur(4px); }
.mqp-modal-card {
  position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 26px 24px 20px; border-radius: 20px; color: var(--mqp-text);
  background: radial-gradient(110% 60% at 100% 0%, rgba(212, 175, 55, .16), transparent 60%), linear-gradient(160deg, #15111a, #08070b);
  border: 1px solid rgba(246, 226, 122, .45); box-shadow: 0 30px 90px rgba(0, 0, 0, .7);
}
.mqp-modal-crest { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 10px; font-size: 26px; border-radius: 50%; border: 1px solid rgba(246, 226, 122, .5); background: rgba(212, 175, 55, .08); }
.mqp-modal-card h3 { margin: 0 0 16px; text-align: center; font-family: Georgia, serif; font-weight: 400; font-size: 21px; color: var(--mqp-gold-hi); }
.mqp-modal-rows { display: grid; gap: 8px; margin-bottom: 16px; }
.mqp-modal-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(212, 175, 55, .14); font-size: 13px; }
.mqp-modal-rows span { color: var(--mqp-muted); }
.mqp-modal-rows strong { text-align: right; word-break: break-word; }
.mqp-modal-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--mqp-gold); }
.mqp-modal-input { width: 100%; box-sizing: border-box; padding: 14px; border-radius: 12px; font-size: 20px; font-weight: 800; color: var(--mqp-gold-hi); background: #0a080d; border: 1px solid rgba(212, 175, 55, .45); }
.mqp-modal-preview { margin: 12px 0 4px; font-size: 14px; color: var(--mqp-muted); }
.mqp-modal-preview strong { color: var(--mqp-gold-hi); font-size: 16px; }
.mqp-modal-error { min-height: 18px; margin: 4px 0 8px; font-size: 13px; color: #fca5a5; }
.mqp-modal-actions { display: flex; gap: 10px; }
.mqp-modal-actions .mqp-btn-gold { flex: 1 1 auto; }
.mqp-modal-amount-row { display: flex; gap: 8px; margin-bottom: 14px; }
.mqp-modal-amount-row .mqp-modal-input { flex: 1 1 auto; min-width: 0; }
.mqp-modal-warning { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.55; color: #fde68a; background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .55); }
#mqp-withdraw-modal input:disabled, #mqp-withdraw-modal select:disabled { opacity: .45; cursor: not-allowed; }
#mqp-withdraw-modal .mqp-btn-gold:disabled, #mqp-withdraw-modal .mqp-btn-ghost:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.mqp-btn-gold.is-below-min { opacity: .75; }
/* Dropdown readable on every device: dark list, white text, gold accent (the list itself is drawn by the browser). */
.mqp-modal-select { margin-bottom: 14px; font-size: 16px; cursor: pointer; appearance: auto; color: #fff; background-color: #0a080d; color-scheme: dark; }
.mqp-modal-select.is-empty { color: var(--mqp-muted); }
.mqp-modal-select option { color: #fff; background-color: #141118; }
.mqp-modal-select option:checked { color: #1a1305; background-color: #d4af37; }
.mqp-modal-select option:disabled { color: #8a8170; background-color: #0e0c12; }
.mqp-modal-input-text { font-size: 17px; letter-spacing: .06em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.mqp-modal-check { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 13px; color: var(--mqp-text); cursor: pointer; }
.mqp-modal-check input { width: 18px; height: 18px; accent-color: #d4af37; }
.mqp-modal-check small { color: var(--mqp-muted); }
.mqp-modal-plain { display: block; width: 100%; margin-top: 12px; padding: 8px; border: 0; background: none; cursor: pointer; font-size: 12px; color: var(--mqp-muted); text-decoration: underline; }
