/* CryptoPro Trading Suite — landing page styles */

body {
  margin: 0;
  background: #0b0e14;
  color: #e6e9f0;
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: #4cc9a4; text-decoration: none; }
a:hover { color: #6fe0bd; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Header ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #1c2230;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand img {
  border-radius: 8px;
  display: block;
}
.brand-name {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.2px;
  color: #e6e9f0;
}
.brand-name .dim { color: #8a93a6; font-weight: 400; }
.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.tagline {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: #8a93a6;
}

/* ---- Help: user-manual button (opens the left-side slide-out panel) ---- */
.help-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #111624;
  border: 1px solid #1e2637;
  border-radius: 6px;
  color: #f85149;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.help-btn:hover { border-color: #f85149; }

/* ---- Admin: role-management button + modal (Suite roadmap 2026-07-23) ---- */
.admin-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #111624;
  border: 1px solid #1e2637;
  border-radius: 6px;
  color: #e0b45c;
  padding: 6px 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  cursor: pointer;
}
.admin-btn:hover { border-color: #e0b45c; }
.admin-table-wrap { max-height: 50vh; overflow-y: auto; margin-bottom: 16px; border: 1px solid #1e2637; border-radius: 8px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th {
  text-align: left;
  padding: 10px 12px;
  background: #0b0e14;
  color: #8a93a6;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: sticky;
  top: 0;
}
.admin-table td { padding: 10px 12px; border-top: 1px solid #1e2637; vertical-align: middle; }
.admin-username { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: #8a93a6; margin-top: 2px; }
.admin-you { color: #4cc9a4; font-size: 11px; }
.admin-role-select {
  background: #0b0e14;
  border: 1px solid #1e2637;
  border-radius: 6px;
  color: #e6e9f0;
  padding: 6px 8px;
  font-size: 12.5px;
}
.admin-role-select:focus { outline: none; border-color: #4cc9a4; }
.admin-role-status { margin-left: 8px; font-size: 11.5px; color: #a7b0c2; }
.admin-meta { font-size: 11.5px; color: #a7b0c2; white-space: nowrap; }
.admin-meta-muted { color: #5b6272; }
.admin-blocked-tag { color: #f85149; font-size: 11px; margin-left: 6px; }
.admin-block-btn {
  background: #0b0e14;
  border: 1px solid #3a2129;
  border-radius: 6px;
  color: #f85149;
  padding: 6px 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  cursor: pointer;
}
.admin-block-btn:hover { border-color: #f85149; }
.admin-block-btn.is-blocked { color: #4cc9a4; border-color: #1e3a2f; }
.admin-block-btn.is-blocked:hover { border-color: #4cc9a4; }
.admin-block-status { margin-left: 8px; font-size: 11.5px; color: #a7b0c2; }

/* ---- Auth: account button + modal (same login method as CryptoPro Charts) ---- */
.account-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #111624;
  border: 1px solid #1e2637;
  border-radius: 6px;
  color: #e6e9f0;
  padding: 6px 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  cursor: pointer;
}
.account-btn:hover { border-color: #4cc9a4; }
.acct-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #4cc9a4;
  color: #0b0e14;
  font-size: 11px;
  font-weight: 700;
}
.acct-avatar-lg { width: 34px; height: 34px; font-size: 15px; }

.auth-btn {
  background: #111624;
  border: 1px solid #1e2637;
  border-radius: 6px;
  color: #e6e9f0;
  padding: 8px 14px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  cursor: pointer;
}
.auth-btn:hover { border-color: #4cc9a4; }
.auth-btn.primary { background: #4cc9a4; border-color: #4cc9a4; color: #0b0e14; font-weight: 600; }
.auth-btn.primary:hover { background: #6fe0bd; }
.auth-btn:disabled { opacity: 0.6; cursor: default; }

/* ---- Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 13, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.modal {
  width: 100%;
  max-width: 360px;
  background: #111624;
  border: 1px solid #1e2637;
  border-radius: 12px;
  padding: 24px;
  box-sizing: border-box;
}
.modal h3 { margin: 0 0 10px; font-size: 17px; }
.modal-muted { margin: 0 0 16px; font-size: 13px; line-height: 1.5; color: #a7b0c2; }
.modal-wide { max-width: 560px; max-height: 80vh; overflow-y: auto; }
.modal label {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  color: #a7b0c2;
}
.modal label input {
  display: block;
  margin-top: 6px;
  width: 100%;
  box-sizing: border-box;
  background: #0b0e14;
  border: 1px solid #1e2637;
  border-radius: 6px;
  color: #e6e9f0;
  padding: 9px 10px;
  font-size: 13.5px;
}
.modal label input:focus { outline: none; border-color: #4cc9a4; }
.modal-err { min-height: 16px; margin-bottom: 8px; font-size: 12.5px; color: #f85149; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.modal-actions:not(:last-child) { margin-bottom: 12px; }
.acct-card { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.acct-card-name { font-weight: 600; font-size: 15px; }
.totp-secret {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 1px;
  background: #0b0e14;
  border: 1px solid #1e2637;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 14px;
  word-break: break-all;
}
.totp-qr {
  display: flex;
  justify-content: center;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
}
.totp-qr img { display: block; width: 176px; height: 176px; }

/* ---- Hero / tiles ---- */
.hero {
  flex: 1;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 64px 48px;
  box-sizing: border-box;
}
.eyebrow {
  margin: 0 0 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #4cc9a4;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
  text-wrap: pretty;
}
.hero-sub {
  margin: 0 0 52px;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.6;
  color: #a7b0c2;
  text-wrap: pretty;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: #111624;
  border: 1px solid #1e2637;
  border-radius: 12px;
  color: #e6e9f0;
  transition: border-color .15s, transform .15s;
}
.tile:hover {
  border-color: #4cc9a4;
  transform: translateY(-2px);
  color: #e6e9f0;
}
.tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tile-glyph { font-size: 26px; line-height: 1; }
.tile-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 99px;
  padding: 4px 10px;
}
.tile h2 { margin: 0; font-size: 21px; font-weight: 600; }
.tile p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: #a7b0c2;
  text-wrap: pretty;
}
.tile-cta {
  margin-top: auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: #4cc9a4;
}

/* ---- Donation ---- */
.donation {
  padding: 32px 48px;
  border-top: 1px solid #1c2230;
  text-align: center;
}
.donation p {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #a7b0c2;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: pretty;
}
.donation-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #111624;
  border: 1px solid #1e2637;
  border-radius: 8px;
  color: #e0b45c;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
}

/* ---- Footer ---- */
.site-footer {
  padding: 16px 24px;
  border-top: 1px solid #1c2230;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: 12px;
  color: #5c6577;
}
.site-footer .brand-mini {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-footer img { border-radius: 8px; display: block; }
.footer-disclaimer { color: #e0b45c; }
.footer-terms-link { color: #5c6577; text-decoration: underline; }
.footer-terms-link:hover { color: #a7b0c2; }
.footer-donate { color: #e0b45c; }
.footer-donate:hover { color: #f0c876; }

@media (max-width: 620px) {
  .site-header { flex-wrap: wrap; }
  .hero { padding: 40px 24px; }
  .hero h1 { font-size: 32px; }
}
