/* Phantom Exchange — dark phantom theme.
   Gold #C8A020 / Smoke #8090B0 / BG #080B12 / Text #DCE4F8 */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,900;1,400&display=swap');

/* ── CSS variables ─────────────────────────────────────────────────────────── */
:root {
  --ph-bg:          #080b12;
  --ph-bg2:         #0e1220;
  --ph-bg3:         #141828;
  --ph-bg4:         #1a2038;
  --ph-gold:        #c8a020;
  --ph-gold-light:  #d4aa28;
  --ph-gold-lighter:#e8c840;
  --ph-gold-dark:   #9a7e18;
  --ph-smoke:       #8090b0;
  --ph-text:        #dce4f8;
  --ph-text2:       #a0aac8;
  --ph-text3:       #5a6480;
  --ph-border:      rgba(160, 180, 255, 0.08);
  --ph-border-gold: rgba(200, 160, 32, 0.20);
}

/* ── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--ph-bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--ph-gold) 0%, var(--ph-gold-dark) 100%);
  border-radius: 20px;
  border: 2px solid var(--ph-bg);
}

/* ── Base ────────────────────────────────────────────────────────────────── */
html {
  font-family: -apple-system, BlinkMacSystemFont, "Montserrat", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  background: var(--ph-bg);
  color: var(--ph-text);
}

body { background: var(--ph-bg); }

/* ── Ghost smoke — full-page ambient effect ──────────────────────────────── */

/* Layer 1: cool smoke blobs drifting slowly */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 15% 25%, rgba(128,144,180,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 70% at 85% 65%, rgba(128,144,180,0.06) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 50% 88%, rgba(200,160,32,0.04)  0%, transparent 60%);
  animation: ghostDrift1 28s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

/* Layer 2: gold-tinted wisps, different rhythm */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 60% at 75% 15%, rgba(128,144,180,0.05) 0%, transparent 65%),
    radial-gradient(ellipse 65% 40% at 25% 75%, rgba(200,160,32,0.035) 0%, transparent 60%),
    radial-gradient(ellipse 35% 55% at 60% 45%, rgba(180,200,240,0.04) 0%, transparent 60%);
  animation: ghostDrift2 36s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes ghostDrift1 {
  0%   { transform: translate(0,    0)    scale(1);    opacity: 0.6; }
  25%  { transform: translate(2%,   3%)   scale(1.04); opacity: 1;   }
  55%  { transform: translate(-2%,  5%)   scale(0.97); opacity: 0.75; }
  80%  { transform: translate(3%,   1%)   scale(1.06); opacity: 0.9; }
  100% { transform: translate(-1%,  4%)   scale(1.02); opacity: 0.8; }
}

@keyframes ghostDrift2 {
  0%   { transform: translate(0,    0)    scale(1);    opacity: 0.5; }
  30%  { transform: translate(-3%,  2%)   scale(1.07); opacity: 0.9; }
  60%  { transform: translate(4%,  -2%)   scale(0.95); opacity: 0.65; }
  85%  { transform: translate(-2%,  5%)   scale(1.03); opacity: 1;   }
  100% { transform: translate(2%,  -3%)   scale(0.98); opacity: 0.7; }
}

/* Make sure page content sits above the smoke */
body > * { position: relative; z-index: 1; }

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

header { padding: 20px 0; }

/* ── Header capsule ──────────────────────────────────────────────────────── */
.home-page header,
.order-page header {
  background: rgba(8, 11, 18, 0.90);
  border-radius: 999px;
  border: 1px solid var(--ph-border-gold);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.home-page header .uk-flex-between { position: relative; }

@media (max-width: 959px) {
  .home-page header { position: relative; }
  .home-page header .header-logo-mobile {
    position: absolute;
    left: 54%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
  }
  .home-page header .header-burger-mobile {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
  }
  .home-page header .header-burger-mobile img { height: 32px; width: auto; }
}

@media (min-width: 960px) {
  .home-page header .header-burger-mobile { margin-left: 4px; }
  .home-page header .btn.gradient-green.uk-float-right {
    margin-right: 0;
    transform: translateX(-16px);
  }
}

.order-page header .uk-grid-small.uk-child-width-expand {
  display: flex;
  align-items: center;
}
.order-page header .uk-width-auto.uk-visible\@m {
  position: static;
  transform: none;
  margin: 0 auto;
}

@media (min-width: 960px) {
  .home-page header .btn.gradient-green.uk-float-right { margin-right: -6px; }
}

.uk-border-rounded { border-radius: 30px; }
.uk-text-primary { color: var(--ph-gold) !important; }

/* ── Headings ────────────────────────────────────────────────────────────── */
.uk-h1, .uk-h2, .uk-h3, .uk-h4, .uk-h5, .uk-h6,
.uk-heading-2xlarge, .uk-heading-3xlarge, .uk-heading-large,
.uk-heading-medium, .uk-heading-small, .uk-heading-xlarge,
h1, h2, h3, h4, h5, h6 {
  font-family: "Cinzel", "Montserrat", sans-serif;
  color: var(--ph-text);
}

.uk-text-lead {
  font-size: 1.5rem;
  color: var(--ph-text2);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn.btn-second {
  color: var(--ph-text) !important;
  font-weight: 400;
  background: var(--ph-bg3);
  border: 1px solid var(--ph-border-gold);
}
.btn.btn-second:hover {
  background: var(--ph-bg4);
}

.btn.exbtn {
  font-weight: 600;
  font-size: 18px;
  padding: 15px 30px;
  border: 0;
}
.btn.exbtn img { width: 30px; height: 30px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border: none;
  border-radius: 9999px;
  font-size: 18px;
  font-weight: 500;
  color: var(--ph-bg) !important;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(200, 160, 32, 0.4);
  text-decoration: none;
}
.btn img { width: 24px; height: 24px; }

.uk-heading-xlarge { font-size: 4rem; }

/* ── Gold gradient button ─────────────────────────────────────────────────── */
.gradient-green {
  background: linear-gradient(90deg, var(--ph-gold-dark) 0%, var(--ph-gold) 50%, var(--ph-gold-lighter) 100%);
  color: #0a0c12 !important;
}
.gradient-green:hover {
  background: linear-gradient(90deg, var(--ph-gold) 0%, var(--ph-gold-light) 50%, var(--ph-gold-lighter) 100%);
}

.gradient-sd {
  background: linear-gradient(90deg, var(--ph-bg2) 0%, var(--ph-bg3) 40%, var(--ph-bg2) 100%);
}

/* ── Exchange cards ──────────────────────────────────────────────────────── */
.exchange-card {
  border-radius: 12px;
  text-align: center;
  color: var(--ph-text);
  background-image: none !important;
  background:
    radial-gradient(circle at 10% 0%, rgba(200, 160, 32, 0.08) 0%, transparent 35%),
    radial-gradient(circle at 90% 100%, rgba(200, 160, 32, 0.05) 0%, transparent 40%),
    var(--ph-bg2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--ph-border-gold);
}

.exchange-title { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: var(--ph-text); }

.exchange-line {
  width: 50px;
  height: 3px;
  margin: 0 auto 20px;
  background: linear-gradient(90deg, var(--ph-gold), var(--ph-gold-lighter));
  border-radius: 2px;
}

.exchange-text { font-size: 14px; line-height: 1.2; color: var(--ph-text2); }

.gradient-wrapper {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;    /* clip pseudo-elements to rounded rect shape */
  padding: 3px;        /* visible "border" width */
}

/* Smoke layer 1 — gold puffs, clockwise, 7s */
.gradient-wrapper::before {
  content: "";
  position: absolute;
  inset: -120%;        /* much larger than container — rotation clips to shape */
  background: conic-gradient(from 0deg,
    transparent        0%,
    transparent        8%,
    rgba(200,160,32,0.0)   10%,
    rgba(200,160,32,0.85)  17%,
    rgba(220,235,255,0.55) 23%,
    rgba(200,160,32,0.25)  27%,
    transparent        34%,
    transparent        55%,
    rgba(200,160,32,0.0)   57%,
    rgba(200,160,32,0.60)  64%,
    rgba(220,235,255,0.35) 69%,
    transparent        76%,
    transparent       100%
  );
  animation: rotategr 7s linear infinite;
  filter: blur(5px);   /* soft but stays on border, not blobs */
  z-index: 0;
}

/* Smoke layer 2 — silver mist, counter-clockwise, 11s */
.gradient-wrapper::after {
  content: "";
  position: absolute;
  inset: -120%;
  background: conic-gradient(from 120deg,
    transparent           0%,
    transparent          10%,
    rgba(180,205,255,0.40) 18%,
    rgba(200,160,32,0.30)  24%,
    rgba(180,205,255,0.15) 30%,
    transparent           40%,
    transparent           72%,
    rgba(180,205,255,0.30) 80%,
    rgba(200,160,32,0.20)  86%,
    transparent           94%,
    transparent          100%
  );
  animation: rotategr 11s linear infinite reverse;
  filter: blur(7px);
  z-index: 0;
}

@media (max-width: 640px) {
  .home-page .stats-grid h3 { font-size: 18px; }
  .home-page .stats-grid div { font-size: 12px; }
}

.gradient-overlay {
  position: relative;
  z-index: 2;
  border-radius: 27px; /* 30 - 3px padding = inset radius */
  background: var(--ph-bg2);
  padding: 30px 20px;
}

@keyframes rotategr { to { transform: rotate(360deg); } }

.plus-icon { display: block; width: 40px; animation: rotategr 60s linear infinite; }
.floating-image { width: 80px; animation: floatUpDown 3s ease-in-out infinite; }
.floating-up { animation: floatUpDown 3s ease-in-out infinite; }
.floating-up-2 { animation: floatUpDown 4s ease-in-out infinite; }

.manager-unassigned {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background-color: rgba(200, 160, 32, 0.12);
  color: var(--ph-gold-light);
}

/* ── Image shadows ───────────────────────────────────────────────────────── */
img[src$="/static/custom/img/card/1.png"],
img[src$="/static/custom/img/card/2.png"],
img[src$="/static/custom/img/card/3.png"] {
  filter: drop-shadow(0 0 24px rgba(200, 160, 32, 0.4));
}
img[src$="/static/custom/img/map-icon.svg"],
img[src$="/static/custom/img/circle.png"] {
  filter: drop-shadow(0 0 18px rgba(200, 160, 32, 0.3));
}
img[src$="/static/custom/img/menu.svg"] {
  filter: drop-shadow(0 0 10px rgba(200, 160, 32, 0.2)) invert(1) brightness(1.5);
}
img[src$="/static/custom/img/alogo.svg"],
img.windshake-image[src$="/static/custom/img/alogo.svg"] {
  filter: drop-shadow(0 0 22px rgba(200, 160, 32, 0.4));
}

@keyframes floatUpDown {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  background: var(--ph-bg2);
  padding: 60px 0;
  border-top: 1px solid var(--ph-border-gold);
  color: var(--ph-text2);
}
footer h3, footer h4, footer h5 { color: var(--ph-text); }
footer p, footer span { color: var(--ph-text2); }

.tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(120deg, var(--ph-bg3) 0%, var(--ph-bg2) 40%, var(--ph-bg3) 100%);
  border-radius: 999px;
  padding: 10px 10px;
  color: var(--ph-text);
  font-size: 18px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
  border: 1px solid var(--ph-border-gold);
}
.tg-btn img { width: 30px; height: 30px; }
.tg-btn:hover { background: var(--ph-bg3); border-color: var(--ph-gold); color: var(--ph-text); }

@media (max-width: 640px) {
  .tg-btn { display: flex; width: 100%; justify-content: center; }
}

.header-logo img {
  border-radius: 999px;
  max-height: 46px;
  object-fit: contain;
  filter:
    saturate(1.0)
    contrast(1.0)
    drop-shadow(0 0 20px rgba(200, 160, 32, 0.45));
}
@media (max-width: 640px) {
  .header-logo img { border-radius: 999px; }
}

.subfooter a { color: var(--ph-text3); font-weight: 300; font-size: 14px; }

@media (max-width: 640px) {
  .subfooter .uk-grid-medium {
    margin-top: 4px; row-gap: 4px;
    justify-content: center; text-align: center;
  }
  .subfooter .uk-grid-medium > div { margin-top: 0; margin-bottom: 0; width: 100%; }
  .subfooter .uk-width-expand { display: none; }
  .home-page .hero-subtitle { text-align: center; }
}

/* ── Auth bar ────────────────────────────────────────────────────────────── */
.auth-bar { display: flex; justify-content: flex-end; align-items: center; gap: 12px; position: relative; }
.auth-bar-label { position: absolute; left: 50%; transform: translateX(-50%); text-align: center; }
.auth-bar span, .auth-bar-label { font-size: 14px; color: var(--ph-text2); }
.auth-bar-actions { display: flex; align-items: center; gap: 12px; }

@media (max-width: 640px) {
  .auth-bar { flex-direction: column; align-items: center; justify-content: center; }
  .auth-bar-label { position: static; transform: none; width: 100%; text-align: center; margin-bottom: 4px; }
  .auth-bar-actions { justify-content: center; }
}

/* ── Auth modal ──────────────────────────────────────────────────────────── */
#auth-modal .uk-modal-dialog {
  border-radius: 24px;
  background: var(--ph-bg2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--ph-border-gold);
}
#auth-modal .uk-modal-title { font-size: 24px; font-weight: 700; color: var(--ph-text); }
#auth-modal .uk-tab > .uk-active > a {
  border-color: transparent;
  color: var(--ph-gold);
}
#auth-modal .uk-tab > * > a { text-transform: none; font-size: 14px; color: var(--ph-text2); }
#auth-modal .uk-input {
  background: var(--ph-bg3);
  border-radius: 999px;
  border: 1px solid var(--ph-border-gold);
  color: var(--ph-text);
}
#auth-modal .uk-input:focus { border-color: var(--ph-gold); }
#auth-modal .uk-form-label { color: var(--ph-text); font-weight: 500; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(200, 160, 32, 1); }
  70%  { box-shadow: 0 0 0 10px rgba(200, 160, 32, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 160, 32, 0); }
}
.pulse { box-shadow: 0 0 0 rgba(200, 160, 32, 1); animation: pulse 2s infinite; }

.uk-modal {
  background: rgba(4, 6, 12, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.uk-modal-body { display: flow-root; padding: 25px; }
.uk-modal-dialog {
  background: var(--ph-bg2);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 40px;
  border: 1px solid var(--ph-border-gold);
  color: var(--ph-text);
}
.uk-modal-container .uk-modal-dialog { width: 900px; }

[class*=uk-modal-close-] {
  position: absolute;
  z-index: 1010;
  top: 20px; right: 20px;
  padding: 15px;
  background: var(--ph-bg3);
  border: 1px solid var(--ph-border);
  border-radius: 50px;
  color: var(--ph-text2);
}
[class*=uk-modal-close-]:hover { background: var(--ph-bg4); color: var(--ph-text); }

.uk-hr, hr { border-top: 1.5px solid var(--ph-border); }

/* ── Gradient text — gold ────────────────────────────────────────────────── */
.gradient-text {
  background: radial-gradient(
    circle at 95% 5%,
    var(--ph-gold-lighter) 0%,
    var(--ph-gold) 30%,
    var(--ph-smoke) 70%,
    var(--ph-gold) 100%
  );
  background-size: 200% 200%;
  animation: gradientMove 6s ease-in-out infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

@keyframes gradientMove {
  0%   { background-position: 95% 5%; }
  50%  { background-position: 5% 95%; }
  100% { background-position: 95% 5%; }
}

/* ── Offcanvas / side menu ───────────────────────────────────────────────── */
.uk-offcanvas-bar a { color: var(--ph-text); }
.uk-offcanvas-close {
  position: absolute; z-index: 1000;
  top: 20px; right: 20px;
  padding: 15px;
  background: var(--ph-bg3);
  border: 1px solid var(--ph-border);
  border-radius: 50px;
  color: var(--ph-text2);
}
.uk-offcanvas-bar {
  background: var(--ph-bg2);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-right: 1px solid var(--ph-border-gold);
}
.uk-offcanvas-bar .uk-nav-primary > li > a { color: var(--ph-text); }
.uk-offcanvas-bar .uk-nav-primary > li > a:hover { color: var(--ph-gold); }

/* ── Sticky header ───────────────────────────────────────────────────────── */
header.uk-sticky.uk-sticky-fixed {
  background: rgba(8, 11, 18, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 15px;
  border-radius: 40px;
  border: 1px solid var(--ph-border-gold);
}

.bg-image-1 { background-image: none; }

.bg-image-2 {
  background-image: none;
  background: radial-gradient(circle at top, rgba(200, 160, 32, 0.06) 0%, transparent 45%);
}

#m3 {
  background-image: none;
  background:
    radial-gradient(circle at 10% -10%, rgba(200, 160, 32, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 90% 110%, rgba(128, 144, 176, 0.06) 0%, transparent 45%);
  background-repeat: no-repeat;
  background-size: cover;
}

/* ── Exchange calculator block ───────────────────────────────────────────── */
.exchange-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--ph-text);
  border-radius: 24px;
  padding: 22px 24px;
  background:
    radial-gradient(circle at 95% 5%, rgba(200, 160, 32, 0.10) 0%, transparent 35%),
    var(--ph-bg2);
  border: 1px solid var(--ph-border-gold);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.exchange-block-left { display: flex; flex-direction: column; }
.exchange-block-left label { font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.6; color: var(--ph-text); }
.exchange-block-left input {
  font-size: 42px;
  font-weight: 600;
  color: var(--ph-text);
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  margin-top: 2px;
  transition: 0.2s ease-out;
  line-height: 1.1;
}
.exchange-block-left input:focus { color: var(--ph-gold); }
.exchange-block-left small { font-size: 12px; opacity: 0.5; margin-top: 2px; color: var(--ph-text2); }

.exchange-block .currency-select { width: 100%; }

img.exchange-icon {
  display: block;
  width: 60px;
  border: 2px solid var(--ph-border-gold);
  border-radius: 18px;
}

/* ── Currency dropdown ───────────────────────────────────────────────────── */
.currency-select { position: relative; }
.currency-select__trigger {
  background: var(--ph-bg3);
  border: 1.5px solid var(--ph-border-gold);
  border-radius: 9999px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  color: var(--ph-text);
  padding: 10px 14px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.4s;
}
.currency-select__trigger:hover { background: var(--ph-bg4); }
.currency-select__trigger img { width: 30px; height: 30px; margin-right: 8px; }
.currency-select__trigger span { flex: 1; text-align: left; font-size: 18px; font-weight: 500; }
.currency-select__trigger .arrow { margin-left: 8px; transition: transform 0.2s; }

.currency-select__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background: var(--ph-bg3);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--ph-border-gold);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  z-index: 10;
}

.currency-select__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ph-text);
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.currency-select__item:hover { background: var(--ph-bg4); }
.currency-select__item img { width: 22px; height: 22px; border-radius: 50%; }
.currency-select__item span { font-size: 16px; font-weight: 500; }
.currency-select__item.active span { color: var(--ph-gold); font-weight: 700; }

.currency-select.is-open .currency-select__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.currency-select.is-open .currency-select__trigger .arrow { transform: rotate(180deg); }
.exchange-block--menu-open { position: relative; z-index: 100; }

/* ── Order form ──────────────────────────────────────────────────────────── */
.custom-form .uk-form-label { color: var(--ph-text); font-weight: 400; font-size: 18px; }
.custom-form .custom-input {
  background: var(--ph-bg3);
  border: 2px solid var(--ph-border-gold);
  border-radius: 9999px;
  padding: 15px 30px !important;
  color: var(--ph-text);
  font-size: 22px;
  font-weight: 500;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.custom-form .custom-input::placeholder { color: var(--ph-text3); }
.custom-form .custom-input:focus {
  background: var(--ph-bg4);
  border: 2px solid var(--ph-gold);
  color: var(--ph-text);
}

.note { font-size: 12px; color: var(--ph-text3); margin-top: 4px; }
.required { color: #f07070; }

/* ── Order total block ───────────────────────────────────────────────────── */
.exchange-total { display: flex; flex-direction: column; color: var(--ph-text); }
.exchange-total-label { color: var(--ph-text); font-weight: 400; font-size: 18px; }
.exchange-total-row { display: flex; align-items: center; justify-content: flex-start; background: transparent; gap: 20px; }
.exchange-total-value { font-size: 50px; font-weight: 500; }
.exchange-total-currency {
  display: flex;
  align-items: center;
  background: var(--ph-bg3);
  border: 1.5px solid var(--ph-border-gold);
  border-radius: 9999px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  padding: 8px 14px;
  gap: 8px;
}
.exchange-total-icon { width: 30px; height: 30px; }
.exchange-total-currency span { font-size: 18px; font-weight: 500; color: var(--ph-text); }

.order-info { margin: 18px auto; color: var(--ph-text2); }
.order-title { margin: 0 0 12px; font-size: 22px; font-weight: 600; color: var(--ph-text); }

.order-grid { display: grid; row-gap: 12px; column-gap: 18px; grid-template-columns: 1fr; margin: 0; }
.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: rgba(200, 160, 32, 0.04);
  border-radius: 8px;
  border: 1px solid var(--ph-border);
}
.order-row dt { font-size: 16px; color: var(--ph-text2); }
.order-row dd { margin: 0; font-size: 18px; font-weight: 600; text-align: right; min-width: 180px; color: var(--ph-text); }

.order-page .advantages { margin-top: 40px; }

.order-page .order-success-wrap { display: flex; flex-direction: column; align-items: center; width: 100%; }
.order-page .order-success-block { width: 100%; max-width: 640px; text-align: center; }
.order-page .order-success-block h1,
.order-page .order-success-block p { text-align: center; }

.order-page footer .uk-grid-small {
  display: flex; flex-wrap: wrap;
  justify-content: center; row-gap: 16px; column-gap: 24px;
}
.order-page footer .uk-grid-small > div { display: flex; justify-content: center; }

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .header-logo { width: 150px; }
  .uk-heading-xlarge { font-size: 1.5rem; }
  .uk-text-lead { font-size: 1.1rem; color: var(--ph-text2); line-height: 1.2rem; }

  .exchange-block {
    padding: 16px 18px;
    gap: 10px;
    border-radius: 16px;
  }
  .exchange-block--menu-open { z-index: 100; }

  .exchange-block-left input { font-size: 32px; }
  .exchange-block-left label { font-size: 12px; }
  img.exchange-icon {
    display: block; width: 30px;
    border: 1px solid var(--ph-border-gold);
    margin: 0 auto; border-radius: 8px;
  }
  .bg-image-1 { background-image: none; }
  .bg-image-2 { background-image: none; }
  .uk-h1, h1 { font-size: 1.2rem; line-height: 1.2; }
  .custom-form .uk-form-label { color: var(--ph-text); font-weight: 400; font-size: 16px; }
  .uk-modal-body { padding: 20px; }
  .uk-modal-dialog { border-radius: 20px; }
  [class*=uk-modal-close-] { top: 15px; right: 15px; padding: 15px; border-radius: 50px; }
  .custom-form .custom-input {
    background: var(--ph-bg3);
    border: 1px solid var(--ph-border-gold);
    border-radius: 9999px;
    padding: 10px 20px !important;
    color: var(--ph-text); font-size: 18px; font-weight: 500;
  }
  .exchange-total-label { color: var(--ph-text); font-weight: 400; font-size: 16px; }
  .exchange-total-row { display: flex; align-items: flex-start; justify-content: flex-start; background: transparent; gap: 0; flex-direction: column; }
  .exchange-total-value { font-size: 40px; font-weight: 500; }
  .exchange-total-currency { border: 1px solid var(--ph-border-gold); }
}

.currency-select { position: relative; z-index: 10; }
.currency-select__menu { z-index: 9999; position: absolute; }
.currency-select__trigger { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* ── Nav links ───────────────────────────────────────────────────────────── */
.dc-nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ph-text2);
  text-decoration: none;
  transition: color 0.2s;
}
.dc-nav-link:hover { color: var(--ph-gold); text-decoration: none; }

/* ── Footer branded ──────────────────────────────────────────────────────── */
.dc-footer {
  background: var(--ph-bg2);
  color: var(--ph-text2);
  padding: 64px 0 0;
  margin-top: 80px;
}
.dc-footer-brand-name {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ph-text);
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}
.dc-footer-tagline {
  font-size: 0.88rem;
  color: var(--ph-smoke);
  line-height: 1.6;
  max-width: 240px;
  margin: 0;
}
.dc-footer-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ph-gold);
  margin-bottom: 18px;
}
.dc-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dc-footer-links a {
  font-size: 0.9rem;
  color: var(--ph-text2);
  text-decoration: none;
  transition: color 0.2s;
}
.dc-footer-links a:hover { color: var(--ph-text); text-decoration: none; }
.dc-footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dc-footer .tg-btn {
  background: rgba(200, 160, 32, 0.08);
  border: 1px solid var(--ph-border-gold);
  color: var(--ph-text);
}
.dc-footer .tg-btn:hover {
  background: rgba(200, 160, 32, 0.16);
  color: var(--ph-text);
}
.dc-subfooter {
  border-top: 1px solid var(--ph-border);
  margin-top: 48px;
  padding: 20px 0;
  font-size: 0.8rem;
  color: var(--ph-text3);
  text-align: center;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.home-page .uk-heading-xlarge { line-height: 1.18; }

/* ── Mobile footer ───────────────────────────────────────────────────────── */
@media (max-width: 959px) {
  .dc-footer { padding: 48px 0 0; }
  .dc-footer .uk-grid-large > div { margin-bottom: 32px; }
  .dc-footer-tagline { max-width: 100%; }
}

/* ── Consent banner dark overrides ──────────────────────────────────────── */
.consent-banner {
  background: var(--ph-bg3) !important;
  border: 1px solid var(--ph-border-gold) !important;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
}
.consent-banner h3 { font-size: 16px; font-weight: 700; color: var(--ph-text) !important; margin: 0 0 8px 0; }
.consent-banner p  { font-size: 14px; color: var(--ph-text2) !important; margin: 0 0 16px 0; }
.consent-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.consent-btn-yes {
  background: #16a34a;
  color: #fff !important;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.consent-btn-yes:hover { background: #15803d; }
.consent-btn-no {
  background: transparent;
  color: #f07070 !important;
  border: 2px solid #f07070;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.consent-btn-no:hover { background: rgba(240,112,112,0.1); }
.consent-result { font-size: 14px; font-weight: 600; margin-top: 8px; }
.consent-result.granted { color: #4ade80; }
.consent-result.denied  { color: #f07070; }
.consent-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid var(--ph-border);
  border-top-color: var(--ph-gold);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── UIkit overrides for dark mode ───────────────────────────────────────── */
.uk-text-muted { color: var(--ph-text2) !important; }
.uk-text-emphasis { color: var(--ph-text) !important; }
.uk-light a, a { color: var(--ph-gold); }
a:hover { color: var(--ph-gold-light); }
.uk-table th { color: var(--ph-text2); }
.uk-table td { color: var(--ph-text); }
.uk-table tbody tr:hover { background: var(--ph-bg3); }
.uk-divider-small::after { background: var(--ph-border); }
.uk-nav-primary > li > a { color: var(--ph-text); }
.uk-nav-primary > .uk-active > a { color: var(--ph-gold); }
.uk-pagination > li > a { color: var(--ph-text2); }
.uk-input, .uk-select, .uk-textarea {
  background: var(--ph-bg3);
  color: var(--ph-text);
  border-color: var(--ph-border-gold);
}
.uk-input:focus, .uk-select:focus, .uk-textarea:focus {
  background: var(--ph-bg4);
  color: var(--ph-text);
  border-color: var(--ph-gold);
}
