/* ==========================================================================
   ctrading.tools theme for OpenCart 3.0.x (default theme + Bootstrap 3)
   Loaded last in <head> by the ctrading_theme OCMOD, so it overrides
   bootstrap.min.css and the default stylesheet.css without editing them.
   Sizes are in px on purpose: Bootstrap 3 sets html{font-size:10px}.
   ========================================================================== */

:root {
  --ct-desk: #0B0F14;      /* page ground */
  --ct-deep: #080B0F;      /* top bar, footer */
  --ct-sunk: #0E131A;      /* image wells, inputs */
  --ct-panel: #121821;     /* cards */
  --ct-raise: #18202B;     /* hover */
  --ct-control: #1A2330;   /* secondary buttons */
  --ct-rule: #1F2A37;      /* borders */
  --ct-rule-2: #2A3646;    /* control borders */
  --ct-text: #E6EDF3;
  --ct-text-2: #B7C2CF;
  --ct-muted: #8B98A8;
  --ct-amber: #F2B134;     /* brand / primary action */
  --ct-amber-hi: #FFC552;
  --ct-up: #3D8BFF;        /* bid / profit */
  --ct-up-text: #5B9DFF;
  --ct-down: #FF7A45;      /* offer / loss */
  --ct-down-text: #FF8A5C;
  --ct-f-display: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  --ct-f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ct-f-num: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}

/* ---------- base ---------------------------------------------------------- */
html, body { background: var(--ct-desk); }
body {
  font-family: var(--ct-f-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ct-text-2);
}
h1, h2, h3, h4, h5, h6 { font-family: var(--ct-f-display); color: var(--ct-text); letter-spacing: -0.01em; }
h1 { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 28px; font-weight: 700; }
h3 { font-size: 22px; font-weight: 700; }
h4 { font-size: 17px; font-weight: 700; }
a { color: var(--ct-amber); }
a:hover, a:focus { color: var(--ct-amber-hi); }
hr { border-top-color: var(--ct-rule); }
::selection { background: var(--ct-amber); color: var(--ct-desk); }
:focus-visible { outline: 2px solid var(--ct-amber); outline-offset: 2px; }
.text-muted, .help-block { color: var(--ct-muted); }
.text-danger { color: var(--ct-down-text); }
.text-success { color: var(--ct-up-text); }
code, pre { background: var(--ct-sunk); color: var(--ct-text); border-color: var(--ct-rule); }
legend { font-family: var(--ct-f-display); font-size: 20px; color: var(--ct-text); border-bottom-color: var(--ct-rule); }
label, .control-label { font-size: 14px; color: var(--ct-text-2); }
div.required .control-label:before { color: var(--ct-down-text); }

/* ---------- top bar ------------------------------------------------------- */
#top {
  background: var(--ct-deep);
  border-bottom: 1px solid var(--ct-rule);
  margin: 0;
  padding: 6px 0 4px;
}
#top .btn-link, #top-links li, #top-links a {
  color: var(--ct-muted);
  text-shadow: none;
  font-size: 13px;
}
#top .btn-link:hover, #top-links a:hover { color: var(--ct-text); }
#top .btn-link strong { font-family: var(--ct-f-num); font-size: 13px; }
#top #form-currency .currency-select:hover,
#top #form-language .language-select:hover { background: var(--ct-raise); background-image: none; color: var(--ct-amber); }

/* ---------- header -------------------------------------------------------- */
body > header {
  border-bottom: 1px solid var(--ct-rule);
  padding: 18px 0 8px;
}
@media (min-width: 768px) {
  body > header .row { display: flex; align-items: center; }
}
#logo { margin: 0 0 10px; }
#logo > a:not(.ct-logo), #logo > h1 { display: none; }   /* the store-logo image/name is replaced by the brand mark */
.ct-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ct-text); text-decoration: none; }
.ct-logo:hover, .ct-logo:focus { color: var(--ct-text); text-decoration: none; }
.ct-logo svg { width: 40px; height: 40px; flex: none; }
.ct-logo-word { font-family: var(--ct-f-display); font-weight: 700; font-size: 25px; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.ct-logo-word span { font-family: var(--ct-f-num); font-weight: 500; color: var(--ct-amber); letter-spacing: 0; }

/* search */
#search .input-lg, #search .form-control {
  height: 44px;
  background: var(--ct-panel);
  border: 1px solid var(--ct-rule-2);
  border-right: 0;
  color: var(--ct-text);
  font-size: 14px;
  border-radius: 8px 0 0 8px;
  box-shadow: none;
}
#search .btn-lg {
  height: 44px;
  padding: 0 20px;
  background: var(--ct-control);
  background-image: none;
  border: 1px solid var(--ct-rule-2);
  color: var(--ct-text);
  text-shadow: none;
  border-radius: 0 8px 8px 0;
}
#search .btn-lg:hover { background: var(--ct-raise); color: var(--ct-amber); }

/* cart button + dropdown */
#cart > .btn, #cart.open > .btn {
  height: 44px;
  background: var(--ct-panel);
  background-image: none;
  border: 1px solid var(--ct-rule-2);
  border-radius: 8px;
  color: var(--ct-text);
  font-family: var(--ct-f-num);
  font-size: 13px;
  text-shadow: none;
  box-shadow: none;
}
#cart > .btn:hover, #cart.open > .btn:hover { border-color: var(--ct-amber); color: var(--ct-text); }
#cart .dropdown-menu { background: var(--ct-panel); border: 1px solid var(--ct-rule-2); border-radius: 10px; }
#cart .dropdown-menu .table > tbody > tr > td { border-color: var(--ct-rule); color: var(--ct-text-2); }
#cart .dropdown-menu a { color: var(--ct-text); }
#cart .dropdown-menu .text-right a { color: var(--ct-amber); }

/* ---------- category menu ------------------------------------------------- */
#menu {
  background: var(--ct-sunk);
  background-image: none;
  border: 1px solid var(--ct-rule);
  border-radius: 10px;
  margin: 16px 0 0;
  min-height: 48px;
}
#menu .nav > li > a {
  color: var(--ct-text);
  text-shadow: none;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 18px;
}
#menu .nav > li > a:hover, #menu .nav > li.open > a, #menu .nav > li > a:focus { background: var(--ct-raise); color: var(--ct-amber); }
#menu .nav > li.ct-menu-live > a { color: var(--ct-amber); }
#menu .nav > li.ct-menu-live > a:before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--ct-amber);
  vertical-align: 1px;
}
#menu .dropdown-menu { background: var(--ct-panel); border: 1px solid var(--ct-rule-2); border-radius: 10px; }
#menu .dropdown-inner a { color: var(--ct-text); font-size: 14px; padding: 6px 20px; }
#menu .see-all { color: var(--ct-amber); border-top-color: var(--ct-rule); font-size: 13px; padding: 8px 20px; }
#menu .see-all:hover, #menu .see-all:focus { background: var(--ct-raise); background-image: none; color: var(--ct-amber-hi); }
#menu #category { color: var(--ct-text); text-shadow: none; font-family: var(--ct-f-display); line-height: 48px; }
#menu .btn-navbar {
  margin: 6px 8px;
  padding: 6px 14px;
  background: var(--ct-control);
  background-image: none;
  border: 1px solid var(--ct-rule-2);
  color: var(--ct-text);
}
#menu .btn-navbar:hover, #menu .btn-navbar:focus { background: var(--ct-raise); color: var(--ct-amber); }
@media (max-width: 767px) {
  #menu div.dropdown-menu { background: var(--ct-panel); }
  #menu .dropdown-inner a { color: var(--ct-text); }
  #menu .see-all { color: var(--ct-amber); }
}

/* generic dropdowns (account, currency, language) */
.dropdown-menu { background: var(--ct-panel); border: 1px solid var(--ct-rule-2); border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, .45); }
.dropdown-menu > li > a { color: var(--ct-text); padding: 7px 18px; }
.dropdown-menu li > a:hover, .dropdown-menu li > a:focus { background: var(--ct-raise); background-image: none; color: var(--ct-amber); }
.dropdown-menu .divider { background: var(--ct-rule); }

/* ---------- breadcrumb ---------------------------------------------------- */
.breadcrumb {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 24px 0;
  font-family: var(--ct-f-num);
  font-size: 13px;
}
.breadcrumb > li { padding: 0 10px 0 0; text-shadow: none; color: var(--ct-muted); }
.breadcrumb > li:after { display: none; }
.breadcrumb > li + li:before { content: "/"; color: #4B5768; padding: 0 10px 0 0; }
.breadcrumb > li a { color: var(--ct-muted); }
.breadcrumb > li:last-child a { color: var(--ct-text); }
.breadcrumb > li a:hover { color: var(--ct-amber); }
.breadcrumb i { font-size: 14px; }
html[dir=rtl] .breadcrumb > li::after { display: none; }

/* ---------- buttons ------------------------------------------------------- */
.btn {
  font-family: var(--ct-f-body);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 8px;
  text-shadow: none;
  box-shadow: none;
  background-image: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-lg, .btn-group > .btn-lg { font-size: 16px; padding: 14px 22px; border-radius: 10px; }
.btn-sm, .btn-group > .btn-sm { font-size: 13px; padding: 6px 12px; }
.btn-xs, .btn-group > .btn-xs { font-size: 12px; padding: 3px 8px; }
.btn-group > .btn { font-size: 14px; }

.btn-primary, .btn-warning {
  background: var(--ct-amber);
  border: 1px solid var(--ct-amber);
  color: var(--ct-desk);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active,
.btn-warning:hover, .btn-warning:focus, .btn-warning:active, .btn-warning.active {
  background: var(--ct-amber-hi);
  border-color: var(--ct-amber-hi);
  color: var(--ct-desk);
  box-shadow: none;
}
.btn-primary.disabled, .btn-primary[disabled] { background: var(--ct-amber); border-color: var(--ct-amber); opacity: .55; }

.btn-default, .btn-inverse, .btn-info {
  background: var(--ct-control);
  border: 1px solid var(--ct-rule-2);
  color: var(--ct-text);
}
.btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active,
.btn-inverse:hover, .btn-inverse:focus, .btn-inverse:active, .btn-inverse.active,
.btn-info:hover, .btn-info:focus, .btn-info:active, .btn-info.active, .open > .dropdown-toggle.btn-default {
  background: var(--ct-raise);
  background-image: none;
  border-color: var(--ct-amber);
  color: var(--ct-text);
  box-shadow: none;
}
.btn-success {
  background: var(--ct-up);
  border: 1px solid var(--ct-up);
  color: var(--ct-desk);
}
.btn-success:hover, .btn-success:focus, .btn-success:active { background: #5B9DFF; border-color: #5B9DFF; color: var(--ct-desk); box-shadow: none; }
.btn-danger {
  background: transparent;
  border: 1px solid var(--ct-down);
  color: var(--ct-down-text);
}
.btn-danger:hover, .btn-danger:focus, .btn-danger:active { background: var(--ct-down); border-color: var(--ct-down); color: var(--ct-desk); box-shadow: none; }
.btn-link { color: var(--ct-amber); }
.btn-link:hover, .btn-link:focus { color: var(--ct-amber-hi); }

/* ---------- forms --------------------------------------------------------- */
body .form-control,
body input[type].form-control,
body select.form-control,
body textarea.form-control,
body .input-group input,
body .input-group select {
  background: var(--ct-sunk);
  border: 1px solid var(--ct-rule-2);
  border-radius: 8px;
  color: var(--ct-text);
  font-size: 14px;
  box-shadow: none;
}
body .form-control { height: 40px; }
body textarea.form-control { height: auto; }
body .form-control:focus { border-color: var(--ct-amber); box-shadow: 0 0 0 3px rgba(242, 177, 52, .22); }
body .form-control::placeholder { color: #6B7888; }
body .form-control[disabled], body .form-control[readonly] { background: var(--ct-panel); color: var(--ct-muted); }
body .input-group-sm > .form-control, body .input-group-sm > .input-group-addon { height: 40px; font-size: 14px; padding: 6px 12px; }
.input-group .input-group-addon { background: var(--ct-control); border-color: var(--ct-rule-2); color: var(--ct-text-2); font-size: 14px; height: 40px; }
.input-group .form-control:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group-btn:last-child > .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.has-error .form-control { border-color: var(--ct-down); }
.has-error .help-block, .has-error .control-label { color: var(--ct-down-text); }
.radio label, .checkbox label { color: var(--ct-text); }
input[type="radio"], input[type="checkbox"] { accent-color: var(--ct-amber); }

/* ---------- tables, panels, wells, lists --------------------------------- */
.table { color: var(--ct-text-2); }
.table > thead > tr > td, .table > thead > tr > th {
  color: var(--ct-muted);
  font-family: var(--ct-f-num);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 500;
  background: transparent;
}
.table > thead > tr > td, .table > thead > tr > th, .table > tbody > tr > td, .table > tbody > tr > th,
.table > tfoot > tr > td, .table > tfoot > tr > th { border-color: var(--ct-rule); }
.table-bordered, .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td,
.table-bordered > thead > tr > th, .table-bordered > tbody > tr > th { border-color: var(--ct-rule); }
.table-striped > tbody > tr:nth-of-type(odd) { background: var(--ct-sunk); }
.table-hover > tbody > tr:hover { background: var(--ct-raise); }
.table td a { color: var(--ct-text); }
.table td a:hover { color: var(--ct-amber); }

html body .well, html body .panel, html body .panel-default {
  background: var(--ct-panel);
  border: 1px solid var(--ct-rule);
  border-radius: 12px;
  box-shadow: none;
  color: var(--ct-text-2);
}
html body .panel-default > .panel-heading {
  background: var(--ct-sunk);
  border-color: var(--ct-rule);
  color: var(--ct-text);
  border-radius: 12px 12px 0 0;
}
.panel-default > .panel-heading a, .panel-title a { color: var(--ct-text); }
.panel-default > .panel-heading + .panel-collapse > .panel-body { border-top-color: var(--ct-rule); }
.panel-footer { background: var(--ct-sunk); border-top-color: var(--ct-rule); }
.panel-group .panel-heading + .panel-collapse > .panel-body { border-top-color: var(--ct-rule); }

.list-group a, .list-group-item {
  background: var(--ct-panel);
  border: 1px solid var(--ct-rule);
  color: var(--ct-text-2);
}
.list-group a.active, .list-group a.active:hover, .list-group a:hover, .list-group a:focus {
  background: var(--ct-raise);
  border-color: var(--ct-rule);
  color: var(--ct-amber);
  text-shadow: none;
}
.list-group-item:first-child { border-top-left-radius: 10px; border-top-right-radius: 10px; }
.list-group-item:last-child { border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; }

/* tabs */
.nav-tabs { border-bottom: 1px solid var(--ct-rule); margin-bottom: 20px; }
.nav-tabs > li > a {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--ct-muted);
  font-weight: 600;
  padding: 14px 16px;
  margin: 0;
}
.nav-tabs > li > a:hover, .nav-tabs > li > a:focus { background: transparent; border-color: transparent; color: var(--ct-text); }
.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--ct-amber);
  color: var(--ct-text);
}

/* alerts */
.alert { border-radius: 10px; border-width: 1px; }
.alert-success { background: rgba(61, 139, 255, .12); border-color: var(--ct-up); color: #CFE1FF; }
.alert-danger { background: rgba(255, 122, 69, .12); border-color: var(--ct-down); color: #FFD3C2; }
.alert-info, .alert-warning { background: rgba(242, 177, 52, .10); border-color: var(--ct-amber); color: #FBE3B0; }
.alert a { color: inherit; text-decoration: underline; }
.alert .close { color: inherit; opacity: .8; text-shadow: none; }

/* pagination */
.pagination > li > a, .pagination > li > span { background: var(--ct-panel); border-color: var(--ct-rule-2); color: var(--ct-text-2); font-family: var(--ct-f-num); }
.pagination > li > a:hover, .pagination > li > span:hover { background: var(--ct-raise); color: var(--ct-amber); border-color: var(--ct-rule-2); }
.pagination > .active > span, .pagination > .active > span:hover, .pagination > .active > a { background: var(--ct-amber); border-color: var(--ct-amber); color: var(--ct-desk); }

/* modals, popovers, tooltips */
.modal-content { background: var(--ct-panel); border: 1px solid var(--ct-rule-2); border-radius: 14px; color: var(--ct-text-2); }
.modal-header, .modal-footer { border-color: var(--ct-rule); }
.modal-title { color: var(--ct-text); font-family: var(--ct-f-display); }
.close { color: var(--ct-text); text-shadow: none; opacity: .7; }
.close:hover, .close:focus { color: var(--ct-text); opacity: 1; }
.popover { background: var(--ct-panel); border-color: var(--ct-rule-2); color: var(--ct-text-2); }
.popover-title { background: var(--ct-sunk); border-color: var(--ct-rule); color: var(--ct-text); }

/* images */
.img-thumbnail, .thumbnail { background: var(--ct-panel); border: 1px solid var(--ct-rule); border-radius: 12px; padding: 6px; }
a.thumbnail:hover, a.thumbnail:focus { border-color: var(--ct-amber); }

/* ---------- product cards (featured, latest, category, search) ------------ */
.product-thumb {
  background: var(--ct-panel);
  border: 1px solid var(--ct-rule);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .15s;
}
.product-thumb:hover { border-color: var(--ct-rule-2); }
.product-thumb .image { background: var(--ct-sunk); border-bottom: 1px solid var(--ct-rule); }
.product-list .product-thumb .image { border-bottom: 0; }
.product-thumb .image a:hover { opacity: .9; }
.product-thumb .caption { padding: 16px 18px 4px; }
.product-thumb h4 { font-family: var(--ct-f-display); font-size: 19px; margin-top: 0; }
.product-thumb h4 a { color: var(--ct-text); }
.product-thumb h4 a:hover { color: var(--ct-amber); }
.product-thumb .caption p { color: var(--ct-muted); font-size: 14px; line-height: 1.55; }
.product-thumb .price { color: var(--ct-text); font-family: var(--ct-f-num); font-size: 18px; font-weight: 500; }
.product-thumb .price-new { color: var(--ct-amber); font-weight: 600; }
.product-thumb .price-old { color: #6B7888; }
.product-thumb .price-tax { color: var(--ct-muted); font-size: 12px; }
.rating .fa-star { color: var(--ct-amber); }
.rating .fa-star-o { color: #4B5768; }
.rating .fa-star + .fa-star-o { color: #C88A16; }
.product-thumb .button-group { background: var(--ct-sunk); border-top: 1px solid var(--ct-rule); }
.product-list .product-thumb .button-group { border-left-color: var(--ct-rule); }
.product-thumb .button-group button {
  background: transparent;
  color: var(--ct-text-2);
  line-height: 44px;
  font-family: var(--ct-f-body);
  font-size: 13px;
  letter-spacing: .04em;
}
.product-thumb .button-group button:first-child { background: var(--ct-amber); color: var(--ct-desk); }
.product-thumb .button-group button:first-child:hover { background: var(--ct-amber-hi); color: var(--ct-desk); }
.product-thumb .button-group button + button { border-left: 1px solid var(--ct-rule); }
.product-thumb .button-group button + button:hover { background: var(--ct-raise); color: var(--ct-text); }

/* equal-height cards in grid rows (featured module, category grid view) */
.row:has(> .product-layout:not(.product-list)) { display: flex; flex-wrap: wrap; }
.row:has(> .product-layout:not(.product-list))::before, .row:has(> .product-layout:not(.product-list))::after { display: none; }
.product-layout:not(.product-list) { display: flex; }
.product-layout:not(.product-list) > .product-thumb { display: flex; flex-direction: column; width: 100%; }
.product-layout:not(.product-list) > .product-thumb > div:not(.image):not(.caption):not(.button-group) { display: flex; flex-direction: column; flex: 1 1 auto; }
.product-layout:not(.product-list) > .product-thumb .caption { flex: 1 1 auto; min-height: 0; }

/* caption padding at every width, grid and list (beats the default theme's breakpoint rules) */
.product-layout .product-thumb .caption { padding: 16px 18px 4px; }
@media (max-width: 767px) {
  .product-list .product-thumb .image { border-bottom: 1px solid var(--ct-rule); }
}

/* grid/list toggle + sort bar on category pages */
#list-view, #grid-view { padding: 8px 12px; }
#compare-total { color: var(--ct-amber); }

/* ---------- product page -------------------------------------------------- */
#product-product h1 { font-size: 40px; margin-top: 0; }
#product-product h2 { font-family: var(--ct-f-num); font-weight: 500; font-size: 30px; letter-spacing: 0; color: var(--ct-text); }
#product-product .list-unstyled li { color: var(--ct-text-2); }
#product-product #tab-description, #product-category #content, #information-information #content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ct-text-2);
}
#product-product #tab-description img { max-width: 100%; height: auto; border-radius: 10px; }
#product .control-label { font-family: var(--ct-f-num); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ct-muted); }
/* radio options (e.g. license type) render as selectable cards */
#product .radio {
  background: var(--ct-panel);
  border: 1px solid var(--ct-rule-2);
  border-radius: 10px;
  margin: 0 0 8px;
  transition: border-color .15s;
}
#product .radio label { display: block; padding: 13px 14px 13px 40px; min-height: 44px; font-weight: 600; }
#product .radio input[type="radio"] { margin-left: -26px; margin-top: 5px; width: 16px; height: 16px; }
#product .radio:hover { border-color: #3A4758; }
#product .radio:has(input:checked) { border-color: var(--ct-amber); box-shadow: inset 0 0 0 1px var(--ct-amber); }
#product .checkbox { background: var(--ct-panel); border: 1px solid var(--ct-rule-2); border-radius: 10px; margin: 0 0 8px; }
#product .checkbox label { display: block; padding: 13px 14px 13px 40px; }
#product .checkbox input[type="checkbox"] { margin-left: -26px; }
#button-cart { margin-top: 6px; }
.thumbnails > li .thumbnail { padding: 0; overflow: hidden; }
.image-additional a { border-color: var(--ct-rule); border-radius: 8px; }

/* ---------- carousel / slideshow (swiper) -------------------------------- */
.swiper-viewport {
  background: var(--ct-panel);
  border: 1px solid var(--ct-rule);
  border-radius: 14px;
  box-shadow: none;
  overflow: hidden;
}
.swiper-pagination-bullet { background: #4B5768; opacity: 1; }
.swiper-pagination-bullet-active { background: var(--ct-amber); }
.swiper-button-next, .swiper-button-prev { color: var(--ct-text); }

/* ---------- footer -------------------------------------------------------- */
footer {
  background: var(--ct-deep);
  border-top: 1px solid var(--ct-rule);
  color: var(--ct-muted);
  margin-top: 64px;
  padding-top: 48px;
  font-size: 14px;
}
footer h5 {
  font-family: var(--ct-f-num);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ct-muted);
  margin-bottom: 14px;
}
footer a { color: var(--ct-text-2); }
footer a:hover, footer a:focus { color: var(--ct-amber); }
footer ul.list-unstyled li { padding: 3px 0; }
footer hr { border-bottom-color: var(--ct-rule); }
footer .ct-risk { font-size: 12px; line-height: 1.7; color: var(--ct-muted); max-width: 980px; margin: 0 0 12px; }
footer .ct-risk strong { color: var(--ct-text-2); font-weight: 600; }
footer .ct-legal { font-family: var(--ct-f-num); font-size: 12px; color: var(--ct-muted); padding-bottom: 32px; }

/* ==========================================================================
   Home page blocks — used by the "HTML Content" module snippet (home-blocks.html)
   ========================================================================== */
.ct-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: 56px 0 48px; }
.ct-hero-copy { flex: 1 1 440px; display: flex; flex-direction: column; gap: 20px; }
.ct-eyebrow { font-family: var(--ct-f-num); font-size: 13px; letter-spacing: .14em; color: var(--ct-amber); text-transform: uppercase; }
.ct-hero h1 { font-size: 54px; line-height: 1.05; letter-spacing: -0.03em; margin: 0; }
.ct-hero p.ct-lead { font-size: 19px; line-height: 1.6; color: var(--ct-text-2); margin: 0; max-width: 34em; }
.ct-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ct-btn-amber, .ct-btn-ghost {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
  border-radius: 10px; font-weight: 600; font-size: 16px; text-decoration: none;
}
.ct-btn-amber { background: var(--ct-amber); color: var(--ct-desk); }
.ct-btn-amber:hover, .ct-btn-amber:focus { background: var(--ct-amber-hi); color: var(--ct-desk); text-decoration: none; }
.ct-btn-ghost { border: 1px solid var(--ct-rule-2); color: var(--ct-text); }
.ct-btn-ghost:hover, .ct-btn-ghost:focus { border-color: var(--ct-amber); color: var(--ct-text); text-decoration: none; }

.ct-live-card {
  flex: 1 1 400px;
  background: var(--ct-panel);
  border: 1px solid var(--ct-rule);
  border-radius: 14px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.ct-live-card .ct-live-head { display: flex; justify-content: space-between; font-family: var(--ct-f-num); font-size: 12px; color: var(--ct-muted); letter-spacing: .06em; }
.ct-live-card .ct-live-dot { color: var(--ct-amber); }
.ct-live-card h2 { font-size: 24px; margin: 0; }
.ct-live-card p { margin: 0; color: var(--ct-text-2); font-size: 15px; }
.ct-live-card svg { width: 100%; height: auto; display: block; }
.ct-live-card a { font-family: var(--ct-f-num); font-size: 14px; }

.ct-strip { border-top: 1px solid var(--ct-rule); border-bottom: 1px solid var(--ct-rule); padding: 22px 0; margin: 0 0 56px; display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: space-between; color: var(--ct-text-2); font-size: 15px; }
.ct-strip b { font-family: var(--ct-f-num); font-weight: 500; color: var(--ct-amber); margin-right: 8px; }

.ct-section-title { font-size: 32px; margin: 0 0 24px; }
.ct-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 0 0 56px; }
.ct-cat {
  background: var(--ct-panel); border: 1px solid var(--ct-rule); border-radius: 12px; padding: 26px;
  display: flex; flex-direction: column; gap: 12px; color: var(--ct-text-2); text-decoration: none; transition: border-color .15s;
}
.ct-cat:hover, .ct-cat:focus { border-color: var(--ct-amber); color: var(--ct-text-2); text-decoration: none; }
.ct-cat svg { width: 28px; height: 28px; }
.ct-cat .fa { font-size: 28px; color: var(--ct-amber); }
.ct-cat strong { font-family: var(--ct-f-display); font-size: 21px; color: var(--ct-text); }
.ct-cat span { font-size: 15px; line-height: 1.6; }
.ct-cat em { font-style: normal; font-family: var(--ct-f-num); font-size: 13px; color: var(--ct-amber); }

.ct-cta {
  background: var(--ct-panel); border: 1px solid var(--ct-rule); border-radius: 14px; padding: 40px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; margin: 32px 0 0;
}
.ct-cta > div { flex: 1 1 400px; }
.ct-cta h2 { font-size: 28px; margin: 0 0 8px; }
.ct-cta p { margin: 0; font-size: 16px; }

@media (max-width: 767px) {
  .ct-hero { padding: 32px 0; gap: 32px; }
  .ct-hero h1 { font-size: 38px; }
  .ct-cta { padding: 28px 22px; }
  h1, #product-product h1 { font-size: 30px; }
}

/* ==========================================================================
   Performance dashboard (extension/module/ctrading_dashboard) — brand tokens.
   Higher specificity than the template's own #ctrading-wrap rules, so only
   colours and fonts change; layout and features stay as they are.
   ========================================================================== */
html body #ctrading-wrap {
  --bg: #F5F6F8; --panel: #FFFFFF; --ink: #0B0F14; --ink-2: #4A5563; --ink-3: #66717F; --rule: #E2E5EA; --grid: #ECEEF2; --hover: #F6F7F9;
  --line: #1F63C9; --line-fill: rgba(31, 99, 201, .10); --pos: #1F63C9; --neg: #C2511F; --neg-fill: rgba(194, 81, 31, .16);
  --warn: #9A6408; --warn-bg: #FDF5E4; --neg-bg: #FCEDE6; --pos-bg: #E8F0FC; --accent-ink: #FFFFFF;
  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-num: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
html body #ctrading-wrap[data-ct-theme="dark"] {
  --bg: #0B0F14; --panel: #121821; --ink: #E6EDF3; --ink-2: #B7C2CF; --ink-3: #8B98A8; --rule: #1F2A37; --grid: #18212C; --hover: #18202B;
  --line: #F2B134; --line-fill: rgba(242, 177, 52, .12); --pos: #5B9DFF; --neg: #FF8A5C; --neg-fill: rgba(255, 122, 69, .22);
  --warn: #F2B134; --warn-bg: #2A2312; --neg-bg: #2C1A14; --pos-bg: #14223A; --accent-ink: #0B0F14;
}

/* hide the phone number (and its icon) in the top bar */
#top-links li:has(> a > .fa-phone) { display: none; }

/* Rich text pasted from Word/Docs/websites (information pages, product and category descriptions):
   drop the pasted text colours and highlights so the theme colours apply. */
#information-information #content [style*="color"], #information-information #content font[color],
#product-product #tab-description [style*="color"], #product-product #tab-description font[color],
#product-category #content [style*="color"], #product-category #content font[color] {
  color: inherit !important;
}
#information-information #content [style*="background"], #information-information #content [bgcolor],
#product-product #tab-description [style*="background"], #product-product #tab-description [bgcolor],
#product-category #content .row:first-of-type [style*="background"] {
  background-color: transparent !important;
}
#information-information #content a, #information-information #content a [style*="color"],
#product-product #tab-description a, #product-product #tab-description a [style*="color"] {
  color: var(--ct-amber) !important;
}
#information-information #content strong, #information-information #content b,
#product-product #tab-description strong, #product-product #tab-description b { color: var(--ct-text); }
#information-information #content h1, #information-information #content h2, #information-information #content h3,
#information-information #content h4, #information-information #content h5, #information-information #content h6 { color: var(--ct-text); }
#information-information #content table td, #information-information #content table th,
#product-product #tab-description table td, #product-product #tab-description table th { border-color: var(--ct-rule) !important; }

/* Information pages (terms, privacy, about): force readable text whatever the pasted content carries
   (class-based colours, embedded <style> blocks, opacity, wide letter-spacing). */
#information-information #content,
#information-information #content * {
  color: var(--ct-text-2) !important;
  -webkit-text-fill-color: currentColor !important;
  background-color: transparent !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
#information-information #content :is(p, span, div, li, font, td, th, em, small):not(:is(h1, h2, h3, h4, h5, h6) *) {
  font-family: inherit !important;
  letter-spacing: normal !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
}
#information-information #content :is(h1, h2, h3, h4, h5, h6, strong, b),
#information-information #content :is(h1, h2, h3, h4, h5, h6) * {
  color: var(--ct-text) !important;
  letter-spacing: 0.02em !important;
}
#information-information #content :is(h2, h3, h4, h5, h6) { margin-top: 32px; font-size: 20px; }
#information-information #content a,
#information-information #content a * { color: var(--ct-amber) !important; }
#information-information #content { max-width: 900px; }

/* Contact page: hide the telephone/fax column (OpenCart requires a phone number in settings) */
#information-contact .panel-body .row > .col-sm-3:has(> address) + .col-sm-3 { display: none; }
#information-contact .panel-body .img-thumbnail { background: transparent; border: 0; padding: 0; }

/* ==========================================================================
   FAQ module (extension/efaq, ziehharmonika accordion)
   ========================================================================== */
#faq-information #content > h2 { margin-top: 8px; }
#faq-information #content > hr { border-top-color: var(--ct-rule); margin: 32px 0 24px; }
#faq-information .efaq h3 {
  background: var(--ct-panel);
  border: 1px solid var(--ct-rule);
  border-radius: 10px;
  color: var(--ct-text);
  font-family: var(--ct-f-display);
  font-size: 18px;
  font-weight: 700;
  padding: 16px 48px 16px 20px;
  margin-bottom: 10px;
}
#faq-information .efaq h3:hover { border-color: var(--ct-rule-2); background: var(--ct-raise); }
#faq-information .efaq h3.active {
  background: var(--ct-raise);
  border-color: var(--ct-amber);
  color: var(--ct-text);
  margin-bottom: 18px;
}
#faq-information .efaq .collapseIcon { color: var(--ct-amber); }
#faq-information .efaq .arrowDown { border-color: var(--ct-amber) transparent transparent transparent; }
#faq-information .efaq .active .arrowDown { border-color: var(--ct-amber) transparent transparent transparent; }
#faq-information .efaq > div {
  background: var(--ct-panel);
  border: 1px solid var(--ct-rule);
  border-radius: 12px;
  color: var(--ct-text-2);
  font-size: 15px;
  line-height: 1.75;
  padding: 28px 32px;
  margin-bottom: 14px;
}
#faq-information .efaq > div [style*="color"], #faq-information .efaq > div font[color] { color: inherit !important; }
#faq-information .efaq > div [style*="background"] { background-color: transparent !important; }
#faq-information .efaq > div :is(strong, b) { color: var(--ct-text); }
#faq-information .efaq > div a { color: var(--ct-amber); }
#faq-information .efaq > div img {
  max-width: 100% !important;
  height: auto !important;
  border: 1px solid var(--ct-rule);
  border-radius: 8px;
}
#faq-information .efaq > div ol, #faq-information .efaq > div ul { padding-left: 22px; }
#faq-information .list-group h3 { background: var(--ct-panel); color: var(--ct-text); border: 1px solid var(--ct-rule); border-radius: 10px 10px 0 0; }
@media (max-width: 767px) {
  #faq-information .efaq > div { padding: 20px 18px; }
  #faq-information .efaq h3 { font-size: 16px; }
}

/* ==========================================================================
   TMD Blog (listing pages .blogs1). The blog module's own CSS is generated
   and loads after this file, so colours here use !important.
   ========================================================================== */
html body .blogs1 .headingmain {
  font-family: var(--ct-f-display);
  font-size: 30px; font-weight: 700; letter-spacing: -0.01em; text-transform: none;
  color: var(--ct-text) !important;
}
html body .blogs1 #content > h3 { margin: 8px 0 20px; }
html body .blogs1 .btnread, html body .blogs1 .btnread a, html body .blogs1 a.btnread {
  background: var(--ct-amber) !important;
  color: var(--ct-desk) !important;
  border: 0 !important;
  border-radius: 8px;
  font-family: var(--ct-f-body);
  font-weight: 600; font-size: 14px; letter-spacing: 0; text-transform: none;
  text-decoration: none; text-shadow: none;
}
html body .blogs1 a.btnread { display: inline-block; padding: 11px 18px; }
html body .blogs1 .btnread a { display: inline-block; padding: 4px 12px; }
html body .blogs1 .btnread:hover, html body .blogs1 .btnread a:hover { background: var(--ct-amber-hi) !important; }
html body .blogs1 .mainboxlatestorder, html body .blogs1 .mainboxlatestorder * { color: var(--ct-text-2) !important; }
html body .blogs1 .mainboxlatestorder :is(b, strong) { color: var(--ct-text) !important; }
html body .blogs1 .mainboxlatestorder font[color], html body .blogs1 .mainboxlatestorder a { color: var(--ct-amber) !important; }
html body .blogs1 .mainboxlatestorder img { max-width: 100%; height: auto; border-radius: 8px; }

html body .blogs1 .blog-thumb {
  background: var(--ct-panel) !important;
  border: 1px solid var(--ct-rule) !important;
  border-radius: 12px;
  overflow: hidden;
  padding: 0 !important;
  margin-bottom: 24px;
  box-shadow: none !important;
  transition: border-color .15s;
}
html body .blogs1 .blog-thumb:hover { border-color: var(--ct-rule-2) !important; }
html body .blogs1 .blog-thumb .image { background: transparent !important; }
html body .blogs1 .blog-thumb .image > a { display: block; background: var(--ct-sunk); }
html body .blogs1 .detailcategory { display: flow-root; }
html body .blogs1 .detailcategory > [class*="col-"] { float: none; width: auto; }
html body .blogs1 .blog-thumb .image > a img { width: 100%; margin: 0 auto; border-bottom: 1px solid var(--ct-rule); }
html body .blogs1 .detailcategory {
  background: var(--ct-panel) !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 18px 20px 20px !important;
  color: var(--ct-text-2) !important;
  text-align: left !important;
  box-shadow: none !important;
}
html body .blogs1 .detailcategory h4 {
  color: var(--ct-text) !important;
  font-family: var(--ct-f-display);
  font-size: 19px; font-weight: 700; line-height: 1.35;
  text-align: left !important; margin: 0 0 10px;
}
html body .blogs1 .detailcategory .feedback, html body .blogs1 .detailcategory .feedback li {
  color: var(--ct-muted) !important;
  font-family: var(--ct-f-num); font-size: 12px;
  text-align: left !important; padding-left: 0;
}
html body .blogs1 .detailcategory .feedback .fa { color: var(--ct-muted) !important; margin-right: 4px; }
html body .blogs1 .detailcategory .description {
  color: var(--ct-text-2) !important;
  font-size: 15px; line-height: 1.6;
  text-align: left !important; padding-left: 0; padding-right: 0; margin: 8px 0 14px;
}
html body .blogs1 .detailcategory .description .btnread { display: block; width: max-content; margin-top: 12px; padding: 0; }
html body .blogs1 .detailcategory .padd { padding-left: 0; padding-right: 0; }
html body .blogs1 .social-icons ul { text-align: left !important; margin: 0; padding: 0; }
html body .blogs1 .social-icons li a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ct-control) !important;
  border: 1px solid var(--ct-rule-2) !important;
  color: var(--ct-text-2) !important;
}
html body .blogs1 .social-icons li a:hover { border-color: var(--ct-amber) !important; color: var(--ct-amber) !important; }
html body .blogs1 .social-icons li a .fa { color: inherit !important; font-size: 15px; }
html body .blogs1 .logmain, html body .blogs1 .lognhead { color: var(--ct-text) !important; background: transparent !important; }
html body .blogs1 .forgot, html body .blogs1 .forgot a { color: var(--ct-text-2) !important; }
html body .blogs1 .forgot a { color: var(--ct-amber) !important; }

/* equal-height cards in each row of two */
html body .blogs1 #content > .row:has(.blog-thumb) { display: flex; flex-wrap: wrap; }
html body .blogs1 #content > .row:has(.blog-thumb)::before, html body .blogs1 #content > .row:has(.blog-thumb)::after { display: none; }
html body .blogs1 #content > .row > [class*="col-"]:has(> .blog-thumb) { display: flex; }
html body .blogs1 #content > .row > [class*="col-"] > .blog-thumb { width: 100%; display: flex; flex-direction: column; }
/* intro "read more" toggle: a clear pill centred under the intro text, with a fade on the clipped text */
html body .blogs1 .tmdreadmore {
  display: flex !important; align-items: center; gap: 8px;
  float: none !important; clear: both;
  position: static !important;
  width: auto !important; height: auto !important;
  margin: 16px auto 0 !important;
  padding: 9px 18px !important;
  border-radius: 999px !important;
  background: var(--ct-control) !important;
  border: 1px solid var(--ct-rule-2) !important;
  color: var(--ct-amber) !important;
  font: 600 14px var(--ct-f-body) !important;
  box-shadow: none !important; opacity: 1 !important;
}
html body .blogs1 .tmdreadmore[style*="display: none"] { display: none !important; }
html body .blogs1 .tmdreadmore::after { content: "Read more"; }
html body .blogs1 .tmdreadmore:has(.fa-angle-double-up)::after { content: "Show less"; }
html body .blogs1 .tmdreadmore .fa { color: inherit !important; font-size: 16px; }
html body .blogs1 .tmdreadmore:hover { border-color: var(--ct-amber) !important; }
html body .blogs1 .mainboxlatestorder:not(.active) {
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

/* PayPal buttons / card form: the form itself is drawn by PayPal inside a secure frame and
   can't be restyled; round its corners so it sits in the layout as a deliberate card. */
.paypal-buttons { border-radius: 10px; overflow: hidden; }

/* feature strip: keep up to five items on one line on desktop */
.ct-strip { gap: 14px 24px; }
@media (min-width: 1200px) { .ct-strip { flex-wrap: nowrap; } .ct-strip span { white-space: nowrap; } }

/* ==========================================================================
   TMD Blog: add / edit blog form (#form-addblog) and blog headings anywhere
   ========================================================================== */
html body .headingmain {
  font-family: var(--ct-f-display);
  font-size: 30px; font-weight: 700; letter-spacing: -0.01em; text-transform: none;
  color: var(--ct-text) !important;
}
html body div#content form#form-addblog,
html body div#content form#form-addblog .tab-content,
html body div#content form#form-addblog .tab-pane {
  background: transparent !important;
  color: var(--ct-text-2) !important;
  box-shadow: none !important;
}
html body div#content form#form-addblog {
  background: var(--ct-panel) !important;
  border: 1px solid var(--ct-rule) !important;
  border-radius: 14px;
  padding: 24px 28px 32px !important;
}
html body div#content form#form-addblog .form-group {
  background: transparent !important;
  border: 0 !important;
  margin: 0 0 22px !important;
  padding: 0 !important;
}
html body div#content form#form-addblog div.form-group label.control-label,
html body div#content form#form-addblog label.control-label {
  display: block;
  float: none !important;
  width: auto !important;
  text-align: left !important;
  background: transparent !important;
  background-color: transparent !important;
  color: var(--ct-muted) !important;
  font-family: var(--ct-f-num) !important;
  font-size: 12px !important; font-weight: 500 !important; letter-spacing: .1em !important; text-transform: uppercase !important;
  border: 0 !important; box-shadow: none !important; line-height: 1.4 !important;
  margin: 0 0 8px !important; padding: 0 !important;
  position: static !important;
}
html body div#content form#form-addblog .form-group.required .control-label:before { color: var(--ct-down-text); }
html body div#content form#form-addblog div.form-group .form-control,
html body div#content form#form-addblog .form-control {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 42px;
  padding: 9px 12px !important;
  background: var(--ct-sunk) !important;
  background-color: var(--ct-sunk) !important;
  border: 1px solid var(--ct-rule-2) !important;
  border-radius: 8px !important;
  color: var(--ct-text) !important;
  font-size: 14px !important;
  box-shadow: none !important;
  opacity: 1 !important;
}
html body div#content form#form-addblog div.form-group .form-control:focus { border-color: var(--ct-amber) !important; box-shadow: 0 0 0 3px rgba(242, 177, 52, .22) !important; }
html body div#content form#form-addblog .well {
  background: var(--ct-sunk) !important;
  border: 1px solid var(--ct-rule-2) !important;
  color: var(--ct-text-2) !important;
  border-radius: 8px;
}
html body div#content form#form-addblog .nav-tabs > li > a { background: transparent !important; color: var(--ct-muted) !important; }
html body div#content form#form-addblog .nav-tabs > li.active > a,
html body div#content form#form-addblog .nav-tabs > li > a:hover { color: var(--ct-text) !important; }
html body div#content form#form-addblog .imagebox img, html body div#content form#form-addblog #thumb-image img {
  background: var(--ct-sunk); border: 1px solid var(--ct-rule-2); border-radius: 8px;
}
html body div#content form#form-addblog .checkbox label, html body div#content form#form-addblog .radio-inline { color: var(--ct-text) !important; }
html body div#content form#form-addblog [type="submit"], html body div#content form#form-addblog .btn-primary {
  background: var(--ct-amber) !important; border-color: var(--ct-amber) !important; color: var(--ct-desk) !important;
}

/* Summernote editor (blog description) */
html body .note-editor.note-frame, html body .note-editor {
  background: var(--ct-sunk) !important;
  border: 1px solid var(--ct-rule-2) !important;
  border-radius: 10px;
  overflow: hidden;
}
html body .note-editor .note-toolbar, html body .note-editor .panel-heading {
  background: var(--ct-control) !important;
  border-bottom: 1px solid var(--ct-rule-2) !important;
  border-radius: 0 !important;
}
html body .note-editor .note-editing-area,
html body .note-editor .note-editable {
  background: var(--ct-sunk) !important;
  color: var(--ct-text) !important;
  font-family: var(--ct-f-body);
  font-size: 15px; line-height: 1.7;
}
html body .note-editor .note-codable { background: #05080B !important; color: var(--ct-text) !important; font-family: var(--ct-f-num); }
html body .note-editor .note-statusbar, html body .note-editor .note-resizebar { background: var(--ct-control) !important; border-top: 1px solid var(--ct-rule-2) !important; }
html body .note-editor .note-statusbar .note-resizebar .note-icon-bar { border-top-color: var(--ct-muted) !important; }
html body .note-editor .note-placeholder { color: #6B7888 !important; }
html body .note-popover .popover-content, html body .note-editor .dropdown-menu { background: var(--ct-panel) !important; color: var(--ct-text) !important; }
html body .note-editor .note-btn, html body .note-popover .note-btn {
  background: var(--ct-panel) !important; border-color: var(--ct-rule-2) !important; color: var(--ct-text) !important;
}
html body .note-editor .note-btn:hover, html body .note-editor .note-btn.active { border-color: var(--ct-amber) !important; color: var(--ct-amber) !important; }
