/*
Theme Name: Kyrex Exchange
Theme URI: https://kyrex.com
Author: Kyrex Exchange
Author URI: https://kyrex.com
Description: Kyrex Exchange is a dark, terminal-style WordPress theme for a fictional crypto and multi-asset trading platform: live TradingView widgets and charts, market tables with sparklines, a fee calculator, VIP tiers, academy, support and a legal centre with CRM-ready client forms.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kyrex
Tags: dark, one-column, custom-logo, custom-menu
*/

* { box-sizing: border-box; }
html, body { max-width: 100%; }
html { background: #0D1015; color-scheme: dark; }
body { overflow-x: clip; background: #0D1015; color: #E8ECF1; font-feature-settings: "cv11", "ss01"; }
[hidden] { display: none !important; }
::selection { background: rgba(255, 122, 26, .35); color: #fff; }

.kx-num { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

.kx-hero-bg {
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(255, 122, 26, .10), transparent 60%),
    linear-gradient(180deg, #10141A 0%, #0D1015 100%);
}
.kx-glow-panel {
  background:
    radial-gradient(600px 260px at 100% 0%, rgba(255, 122, 26, .12), transparent 65%),
    #151A21;
}

.kx-book-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 2.5px 12px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  line-height: 1.45;
}
.kx-depth { position: absolute; top: 1px; bottom: 1px; right: 0; transition: width .6s ease; }
.kx-depth-ask { background: rgba(234, 57, 67, .13); }
.kx-depth-bid { background: rgba(22, 199, 132, .13); }

.kx-row { transition: background-color .15s ease; }
.kx-row:hover { background: rgba(255, 255, 255, .025); }

.kx-tab { color: #8B95A5; border: 1px solid transparent; transition: color .15s, background-color .15s, border-color .15s; }
.kx-tab:hover { color: #E8ECF1; }
.kx-tab[aria-selected="true"] { color: #E8ECF1; background: #1B212A; border-color: #2A3340; }

.kx-field {
  width: 100%;
  min-height: 2.875rem;
  border-radius: 6px;
  border: 1px solid #1E2530;
  background: #0D1015;
  padding: .65rem .85rem;
  color: #E8ECF1;
  font-size: .925rem;
  transition: border-color .15s, box-shadow .15s;
}
.kx-field::placeholder { color: #4B5463; }
.kx-field:focus { outline: none; border-color: #FF7A1A; box-shadow: 0 0 0 3px rgba(255, 122, 26, .15); }
.kx-field[aria-invalid="true"] { border-color: #EA3943; box-shadow: 0 0 0 3px rgba(234, 57, 67, .15); }
input[type="number"].kx-field { -moz-appearance: textfield; }
select.kx-field {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B95A5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}
select.kx-field option { background: #151A21; color: #E8ECF1; }
textarea.kx-field { min-height: 8rem; resize: vertical; }
.kx-check { width: 1.05rem; height: 1.05rem; accent-color: #FF7A1A; }
.kx-check[aria-invalid="true"] { outline: 2px solid #EA3943; outline-offset: 2px; }

.kx-range { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 9999px; background: #2A3340; accent-color: #FF7A1A; }
.kx-range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 9999px; background: #FF7A1A; border: 3px solid #0D1015; box-shadow: 0 0 0 1px #FF7A1A; cursor: pointer; }
.kx-range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 9999px; background: #FF7A1A; border: 3px solid #0D1015; cursor: pointer; }

.kx-status { margin-top: 1rem; border-radius: 6px; padding: .75rem 1rem; font-size: .875rem; font-weight: 500; line-height: 1.55; }
.kx-status-error { background: rgba(234, 57, 67, .10); color: #FF8C93; box-shadow: inset 0 0 0 1px rgba(234, 57, 67, .32); }
.kx-status-success { background: rgba(22, 199, 132, .10); color: #4BE3AA; box-shadow: inset 0 0 0 1px rgba(22, 199, 132, .32); }
.kx-status-info { background: rgba(255, 122, 26, .10); color: #FFB37D; box-shadow: inset 0 0 0 1px rgba(255, 122, 26, .32); }
button.is-busy { opacity: .6; cursor: progress; }

.kx-faq-icon { transition: transform .2s ease, color .2s, border-color .2s; }
[aria-expanded="true"] .kx-faq-icon { transform: rotate(45deg); color: #FF7A1A; border-color: rgba(255, 122, 26, .45); }

.kx-toc-link.is-current { color: #E8ECF1; border-left-color: #FF7A1A; }
.kx-prose p + p { margin-top: 1rem; }

.kx-bar { transform-origin: bottom; }

.kx-rise { animation: kx-rise .5s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes kx-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.kx-pre { opacity: 0; transform: translateY(14px); }
.kx-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.16, 1, .3, 1); }

.tradingview-widget-container { position: relative; }
.tradingview-widget-copyright { font-size: 11px; color: #5D6776; }

@media (prefers-reduced-motion: reduce) {
  .kx-rise { animation: none; }
  .kx-pre { opacity: 1; transform: none; }
  .kx-depth { transition: none; }
}
.tradingview-widget-container iframe { color-scheme: normal; }
