/* TradeMentor — shared tokens, reset and primitives (site + admin) */
:root {
  --tm-font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tm-ink: #0f172a;
  --tm-ink-2: #334155;
  --tm-muted: #64748b;
  --tm-line: #e2e8f0;
  --tm-line-2: #eef2f7;
  --tm-bg: #f6f8fb;
  --tm-white: #ffffff;
  --tm-navy: #0b1728;
  --tm-navy-2: #0f2238;
  --tm-green: #14a150;
  --tm-green-dark: #0f8a43;
  --tm-green-soft: #e8f7ee;
  --tm-green-light: #2ccf6e;
  --tm-secondary: #1677ff;
  --tm-secondary-dark: #0f64dc;
  --tm-secondary-soft: #eaf2ff;
  --tm-blue: #1d74f5;
  --tm-blue-soft: #eaf2ff;
  --tm-orange: #f78c12;
  --tm-orange-soft: #fff4e6;
  --tm-purple: #8a3ff0;
  --tm-purple-soft: #f3ecfe;
  --tm-red: #e5384b;
  --tm-red-soft: #fdecee;
  --tm-teal: #0ea5a4;
  --tm-teal-soft: #e6f7f7;
  --tm-radius: 14px;
  --tm-radius-sm: 9px;
  --tm-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 24px rgba(15, 23, 42, .06);
  --tm-focus: 0 0 0 3px rgba(20, 161, 80, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--tm-font); color: var(--tm-ink); background: var(--tm-white); line-height: 1.55; font-size: 16px; }
img, video, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.tm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tm-hidden { display: none !important; }

/* Colour themes — every plan / block picks one of these. */
.tm-c-blue { --c: var(--tm-blue); --c-soft: var(--tm-blue-soft); --c-line: #cfe0fd; --c-dark: #135fd0; }
.tm-c-green { --c: var(--tm-green); --c-soft: var(--tm-green-soft); --c-line: #c4ead3; --c-dark: var(--tm-green-dark); }
.tm-c-orange { --c: var(--tm-orange); --c-soft: var(--tm-orange-soft); --c-line: #fde0b8; --c-dark: #dd7705; }
.tm-c-purple { --c: var(--tm-purple); --c-soft: var(--tm-purple-soft); --c-line: #e0cffc; --c-dark: #7429d6; }
.tm-c-red { --c: var(--tm-red); --c-soft: var(--tm-red-soft); --c-line: #f9c9cf; --c-dark: #c9243a; }
.tm-c-teal { --c: var(--tm-teal); --c-soft: var(--tm-teal-soft); --c-line: #bfe8e8; --c-dark: #0b8584; }

/* Buttons */
.tm-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .6rem 1.25rem; border-radius: var(--tm-radius-sm); border: 1px solid transparent; font-weight: 600; font-size: .95rem; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s; text-align: center; }
.tm-btn:focus-visible { outline: none; box-shadow: var(--tm-focus); }
.tm-btn:disabled { opacity: .6; cursor: not-allowed; }
.tm-btn-primary { background: var(--tm-green); color: #fff; }
.tm-btn-primary:hover { background: var(--tm-green-dark); }
.tm-btn-outline { background: #fff; border-color: #cbd5e1; color: var(--tm-ink); }
.tm-btn-outline:hover { border-color: var(--tm-ink); }
.tm-btn-ghost { background: transparent; color: var(--tm-ink-2); }
.tm-btn-ghost:hover { background: var(--tm-line-2); }
.tm-btn-theme { background: var(--c); color: #fff; }
.tm-btn-theme:hover { background: var(--c-dark); }
.tm-btn-telegram { background: #229ed9; color: #fff; }
.tm-btn-telegram:hover { background: #1a88bd; }
.tm-btn-danger { background: var(--tm-red); color: #fff; }
.tm-btn-danger:hover { background: #c9243a; }
.tm-btn-block { width: 100%; }
.tm-btn-lg { min-height: 52px; font-size: 1.05rem; padding: .75rem 1.5rem; }
.tm-btn-sm { min-height: 34px; padding: .35rem .8rem; font-size: .85rem; }

/* Forms */
.tm-field { display: grid; gap: .4rem; margin-bottom: 1rem; align-content: start; }
.tm-label { font-weight: 600; font-size: .9rem; color: var(--tm-ink-2); }
.tm-hint { font-size: .8rem; color: var(--tm-muted); }
.tm-input, .tm-select, .tm-textarea { width: 100%; min-height: 46px; padding: .65rem .9rem; border: 1px solid #cfd8e3; border-radius: var(--tm-radius-sm); background: #fff; font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
.tm-textarea { min-height: 120px; resize: vertical; }
.tm-input:focus, .tm-select:focus, .tm-textarea:focus { outline: none; border-color: var(--tm-green); box-shadow: var(--tm-focus); }
.tm-input.is-invalid, .tm-select.is-invalid, .tm-textarea.is-invalid { border-color: var(--tm-red); }
.tm-error { color: var(--tm-red); font-size: .82rem; }
.tm-check { display: flex; align-items: flex-start; gap: .55rem; font-size: .92rem; cursor: pointer; }
.tm-check input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--tm-green); flex: none; }

/* Alerts */
.tm-alert { display: flex; gap: .6rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--tm-radius-sm); font-size: .93rem; margin-bottom: 1rem; border: 1px solid; }
.tm-alert .ic { margin-top: .1rem; }
.tm-alert-success { background: var(--tm-green-soft); border-color: #bfe6cf; color: #0b6b35; }
.tm-alert-error { background: var(--tm-red-soft); border-color: #f6c6cc; color: #a51d2f; }
.tm-alert-info { background: var(--tm-blue-soft); border-color: #cddffd; color: #144fa3; }
.tm-alert-warning { background: var(--tm-orange-soft); border-color: #fbdcb4; color: #9a5203; }

/* Pills */
.tm-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--c-soft, var(--tm-line-2)); color: var(--c, var(--tm-ink-2)); white-space: nowrap; }

/* Pagination (shared) */
.tm-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; }
.tm-pager-info { font-size: .85rem; color: var(--tm-muted); }
.tm-pager-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.tm-pager-link { min-width: 36px; height: 36px; padding: 0 .55rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--tm-line); background: #fff; font-size: .88rem; }
.tm-pager-link.is-active { background: var(--tm-green); border-color: var(--tm-green); color: #fff; }
.tm-pager-link.is-disabled { opacity: .45; }

/* FAQ */
.tm-faqs { display: grid; gap: .75rem; }
.tm-faq { background: #fff; border: 1px solid var(--tm-line); border-radius: 12px; }
.tm-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; font-weight: 600; }
.tm-faq summary::-webkit-details-marker { display: none; }
.tm-faq summary .ic { transition: transform .2s; color: var(--tm-muted); }
.tm-faq[open] summary .ic { transform: rotate(180deg); }
.tm-faq-answer { padding: 0 1.1rem 1.1rem; color: var(--tm-ink-2); }
.tm-faq-answer > :first-child { margin-top: 0; }
.tm-faq-answer > :last-child { margin-bottom: 0; }


/* Payment gateway logo tiles (checkout + admin) */
.tm-pay-logo { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; color: #fff; background: var(--tm-muted); }
.tm-pay-logo svg { width: 18px; height: 18px; }
.tm-pay-razorpay { background: #2b6cf6; }
.tm-pay-stripe { background: #635bff; }
.tm-pay-paypal { background: #003087; }
.tm-pay-paytm { background: #00b9f1; }
.tm-pay-manual { background: #0f9d58; }
.tm-pay-test { background: #f59e0b; }

/* Social profile icons (footer + admin preview) */
.tm-socials { display: flex; flex-wrap: wrap; gap: .55rem; }
.tm-socials.is-footer { margin-top: 1.1rem; }
.tm-social { display: inline-flex; flex-direction: column; align-items: center; gap: .3rem; color: inherit; text-decoration: none; }
.tm-social-icon { --s: 40px; width: var(--s); height: var(--s); display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: #fff; background: var(--tm-social, #64748b); transition: transform .15s, filter .15s; }
.tm-social-icon svg { width: 46%; height: 46%; }
.tm-social:hover .tm-social-icon { transform: translateY(-2px); filter: brightness(1.08); }
.tm-socials.is-sm .tm-social-icon { --s: 32px; }
.tm-socials.is-lg .tm-social-icon { --s: 50px; }
.tm-socials.is-circle .tm-social-icon { border-radius: 50%; }
.tm-socials.is-square .tm-social-icon { border-radius: 3px; }
.tm-social-name { font-size: .72rem; font-weight: 500; }
.tm-social-youtube { --tm-social: #ff0000; }
.tm-social-telegram { --tm-social: #229ed9; }
.tm-social-facebook { --tm-social: #1877f2; }
.tm-social-twitter { --tm-social: #111827; }
.tm-social-instagram { --tm-social: #e1306c; }
.tm-social-linkedin { --tm-social: #0a66c2; }
.tm-social-website { --tm-social: #16a34a; }
.tm-socials.is-mono .tm-social-icon { background: rgba(100, 116, 139, .18); color: currentColor; }
.tm-socials.is-footer.is-mono .tm-social-icon { background: rgba(255, 255, 255, .1); color: #fff; }
.tm-socials.is-theme .tm-social-icon { background: var(--tm-green); }
.tm-socials.is-footer .tm-social-twitter .tm-social-icon { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }


/* Captcha widget on public forms — the providers' iframe is a fixed 300px, so let it scroll inside narrow cards instead of the page. */
.tm-captcha { display: grid; gap: .3rem; margin: .8rem 0 1rem; max-width: 100%; overflow-x: auto; }
