/* ═══════════════════════════════════════════════════════
   1. RESET & BASE
═══════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
html {
  scroll-behavior: smooth;
}
html,
body {
  height: 100%;
  width: 100%;
}
button,
input,
select,
textarea {
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
}
img {
  display: block;
  max-width: 100%;
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ═══════════════════════════════════════════════════════
   2. DESIGN TOKENS
═══════════════════════════════════════════════════════ */
:root {
  /* Brand blues (Facebook/Meta) */
  --p50: #ebf5ff;
  --p100: #e7f3ff;
  --p200: #c1e1ff;
  --p400: #2d88ff;
  --p500: #1877f2;
  --p600: #1b74e4;
  --p700: #165dbb;

  /* Neutrals */
  --n0: #ffffff;
  --n50: #f7f8fa;
  --n100: #f0f2f5; /* FB background */
  --n150: #ebedf0;
  --n200: #dadde1; /* FB Borders */
  --n300: #ccd0d5;
  --n400: #bec3c9;
  --n500: #8d949e;
  --n600: #65676b; /* FB Secondary text */
  --n700: #444950;
  --n800: #1c1e21;
  --n900: #050505; /* FB Primary text */

  /* Semantic */
  --ok-bg: #e7f3ff;
  --ok-bg2: #c1e1ff;
  --ok: #1877f2;
  --err-bg: #ffebeb;
  --err: #fa383e;

  /* Trading */
  --up: #00a400;
  --up-bg: rgba(0, 164, 0, 0.08);
  --dn: #fa383e;
  --dn-bg: rgba(250, 56, 62, 0.08);

  /* Layout */
  --hdr-h: 56px;
  --max-w: 480px;

  /* Radii */
  --r8: 6px;
  --r12: 8px;
  --r14: 8px;
  --r16: 8px;
  --r20: 8px;
  --r24: 12px;
  --r-full: 999px;

  /* Shadows */
  --sh-md: 0 1px 3px rgba(0, 0, 0, 0.1);
  --sh-xl: 0 12px 28px rgba(0, 0, 0, 0.2);
  --sh-p: none;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t2: 0.22s;
  --t3: 0.38s;
  --t4: 0.55s;
  --t5: 0.7s;
}

/* ═══════════════════════════════════════════════════════
   3. KEYFRAMES
═══════════════════════════════════════════════════════ */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes ping {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.7);
    opacity: 0.3;
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes viewOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-14px);
  }
}
@keyframes popIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  65% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
@keyframes flashGreen {
  0%,
  100% {
    color: var(--up);
  }
  50% {
    color: #10b981;
    text-shadow: 0 0 12px rgba(5, 150, 105, 0.5);
  }
}
@keyframes flashRed {
  0%,
  100% {
    color: var(--dn);
  }
  50% {
    color: #ef4444;
    text-shadow: 0 0 12px rgba(220, 38, 38, 0.5);
  }
}

/* ═══════════════════════════════════════════════════════
   4. MODAL SYSTEM
═══════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(240, 242, 245, 0);
  pointer-events: none;
  transition: background var(--t5) var(--ease),
    backdrop-filter var(--t5) var(--ease),
    -webkit-backdrop-filter var(--t5) var(--ease);
}
.modal-overlay.is-open {
  background: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: auto;
}
.modal-box {
  background: var(--n0);
  width: 100%;
  max-width: 430px;
  border-radius: var(--r24);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--sh-xl);
  border: 1px solid rgba(255, 255, 255, 0.6);
  opacity: 0;
  transform: scale(0.9) translateY(28px);
  transition: opacity var(--t5) var(--ease), transform var(--t5) var(--spring);
  will-change: transform, opacity;
}
.modal-overlay.is-open .modal-box {
  opacity: 1;
  transform: scale(1) translateY(0);
}
/* Успешная валидация телефона */
.inp[type="tel"].is-valid {
  border-color: #10b981 !important;
  background-color: #f0fdf4 !important;
  background-image: url("") !important;
  background-repeat: no-repeat !important;
  background-position: right 15px center !important;
  background-size: 20px !important;
  padding-right: 40px !important;
}

.inp[type="tel"].error {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
}
/* ═══════════════════════════════════════════════════════
   5. LAYOUT UTILITIES
═══════════════════════════════════════════════════════ */
.hidden {
  display: none !important;
}
.v-enter {
  animation: viewIn var(--t5) var(--ease) both;
}
.v-leave {
  animation: viewOut var(--t3) var(--ease-in) both;
  pointer-events: none;
}
.mt-3 {
  margin-top: 12px;
}
.mt-4 {
  margin-top: 16px;
}
.mb-2 {
  margin-bottom: 8px;
}
.mb-3 {
  margin-bottom: 12px;
}

/* ═══════════════════════════════════════════════════════
   6. BODY / PAGE
═══════════════════════════════════════════════════════ */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--n100);
  color: var(--n900);
  line-height: 1.5;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.page-wrap {
  margin-top: calc(var(--hdr-h) + 12px);
  padding: 0 12px 36px;
  flex: 1;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}
.page-inner {
  margin: auto;
  width: 100%;
  max-width: var(--max-w);
}

/* ═══════════════════════════════════════════════════════
   7. HEADER
═══════════════════════════════════════════════════════ */
.fb-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--hdr-h);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--n200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 1000;
}
.hdr-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hdr-brand-tx {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--n900);
}
.hdr-user {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity var(--t5) var(--ease), transform var(--t5) var(--spring);
}
.hdr-user.active {
  opacity: 1;
  transform: translateX(0);
}
.hdr-uname {
  font-size: 13px;
  font-weight: 600;
  color: var(--n900);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hdr-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p500), var(--p700));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   8. CARD SYSTEM
═══════════════════════════════════════════════════════ */
.ui-card {
  background: var(--n0);
  border-radius: var(--r20);
  padding: 24px 20px;
  box-shadow: var(--sh-md);
  border: 1px solid var(--n150);
  position: relative;
  overflow: hidden;
}
.ui-card + .ui-card,
.ui-card + section {
  margin-top: 10px;
}
.card-hdr {
  text-align: center;
  margin-bottom: 22px;
}
.card-icon-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p50), var(--p100));
  color: var(--p500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.card-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--n900);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.card-sub {
  font-size: 14px;
  color: var(--n500);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════
   9. MODAL CONTENT ATOMS
═══════════════════════════════════════════════════════ */
.m-icon-wrap {
  margin-bottom: 18px;
  display: flex;
  justify-content: center;
}
.m-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--n900);
  margin-bottom: 10px;
  line-height: 1.28;
  letter-spacing: -0.02em;
}
.m-sub {
  font-size: 14px;
  color: var(--n600);
  line-height: 1.6;
  margin-bottom: 18px;
}

.code-block {
  background: linear-gradient(135deg, var(--n50), var(--p50));
  border: 1.5px solid var(--p100);
  border-radius: var(--r14);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.code-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
  pointer-events: none;
}
.code-val {
  font-family: "SF Mono", "Fira Code", monospace;
  font-weight: 700;
  font-size: 15px;
  color: var(--p700);
  letter-spacing: 1.5px;
}
.code-ok {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ok);
  font-size: 11px;
  font-weight: 700;
  background: var(--ok-bg);
  padding: 4px 8px;
  border-radius: var(--r-full);
}

.code-points {
  text-align: left;
  margin-bottom: 20px;
}
.code-points li {
  font-size: 13px;
  color: var(--n700);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.45;
}
.code-points li .icon-ok {
  color: #f59e0b;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ═══════════════════════════════════════════════════════
   10. BUTTONS
═══════════════════════════════════════════════════════ */
.btn {
  width: 100%;
  padding: 15px 22px;
  background: var(--p500);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: var(--r14);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: background var(--t2) var(--ease), transform var(--t2) var(--ease);
  user-select: none;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12) 0%,
    transparent 100%
  );
  pointer-events: none;
}
.btn:hover {
  background: var(--p600);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(1px) scale(0.99);
  background: var(--p700);
}
.btn:disabled {
  background: var(--n300);
  color: var(--n500);
  cursor: not-allowed;
  transform: none;
}
.btn:disabled::after {
  display: none;
}
.btn-spin {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   11. FORM INPUTS
═══════════════════════════════════════════════════════ */
.inp-wrap {
  margin-bottom: 14px;
  position: relative;
}
.inp {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 400;
  color: var(--n900);
  background: var(--n50);
  border: 1.5px solid var(--n300);
  border-radius: var(--r12);
  transition: border-color var(--t2) var(--ease),
    background var(--t2) var(--ease), box-shadow var(--t2) var(--ease);
  -webkit-appearance: none;
}
.inp::placeholder {
  color: var(--n500);
}
.inp:hover {
  background: var(--n150);
  border-color: var(--n400);
}
.inp:focus {
  background: var(--n0);
  border-color: var(--p500);
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.15);
}
.inp.error {
  border-color: var(--err);
  background: var(--err-bg);
  box-shadow: 0 0 0 2.5px rgba(240, 40, 73, 0.12);
}
.inp[readonly] {
  background: var(--n150);
  color: var(--n600);
  cursor: not-allowed;
  border-color: var(--n200);
}
.inp-err-msg {
  display: none;
  color: var(--err);
  font-size: 12px;
  font-weight: 500;
  margin-top: 5px;
  padding-left: 2px;
  animation: slideDown 0.25s var(--ease) both;
}
.inp.error + .inp-err-msg {
  display: block;
}
.sec-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  color: var(--n500);
  margin-top: 12px;
}

/* ═══════════════════════════════════════════════════════
   12. ANALYSIS LOADER SCREEN
═══════════════════════════════════════════════════════ */
.analysis-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--p100);
  border-top-color: var(--p500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 10px auto 20px;
}
.analysis-track {
  width: 100%;
  height: 6px;
  background: var(--n200);
  border-radius: 4px;
  margin-top: 24px;
  overflow: hidden;
}
.analysis-fill {
  height: 100%;
  width: 0%;
  background: var(--p500);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* ═══════════════════════════════════════════════════════
   13. TRADING ACTIVE
═══════════════════════════════════════════════════════ */
.trade-card {
  background: var(--n0);
  border-radius: var(--r20);
  padding: 18px 16px;
  box-shadow: var(--sh-md);
  border: 1px solid var(--n150);
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.trade-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--p600), var(--p400));
}
.trd-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--p50);
  color: var(--p700);
  border: 1px solid var(--p200);
  font-size: 12px;
  font-weight: 600;
}
.s-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--up);
  animation: ping 1.8s ease-in-out infinite;
  display: inline-block;
}
.strat-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--n600);
  background: var(--n50);
  border: 1px solid var(--n200);
  padding: 4px 10px;
  border-radius: var(--r-full);
}

.bal-section {
  margin-bottom: 14px;
}
.bal-label {
  font-size: 10px;
  color: var(--n500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 4px;
}
.bal-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.bal-amount {
  font-size: 30px;
  font-weight: 700;
  color: var(--n900);
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.bal-profit {
  font-size: 15px;
  font-weight: 700;
  color: var(--up);
  font-variant-numeric: tabular-nums;
  padding: 3px 8px;
  background: var(--up-bg);
  border-radius: var(--r-full);
}
.bal-profit.is-loss {
  color: var(--dn);
  background: var(--dn-bg);
}
.bal-profit.flash-g {
  animation: flashGreen 0.75s ease;
}
.bal-profit.flash-r {
  animation: flashRed 0.75s ease;
}

.chart-container {
  height: 150px;
  width: 100%;
  position: relative;
  border-radius: var(--r14);
  overflow: hidden;
  background: linear-gradient(
    to bottom,
    rgba(24, 119, 242, 0.04),
    rgba(24, 119, 242, 0.01)
  );
  border: 1px solid var(--n150);
  margin-bottom: 0;
}
.chart-container canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.stat-box {
  background: var(--n50);
  border: 1px solid var(--n200);
  border-radius: var(--r12);
  padding: 11px 8px;
  text-align: center;
}
.stat-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--n900);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat-lbl {
  font-size: 9px;
  color: var(--n500);
  margin-top: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.feed-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--n500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--up);
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--up);
  animation: ping 1.5s ease-in-out infinite;
}
.feed-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 250px;
  overflow: hidden;
}

@keyframes slideInCard {
  0% {
    opacity: 0;
    transform: translateY(-15px) scale(0.98);
    margin-top: -65px;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    margin-top: 0;
  }
}
@keyframes fadeOutCard {
  0% {
    opacity: 1;
    transform: scale(1);
    max-height: 65px;
    margin-bottom: 8px;
  }
  100% {
    opacity: 0;
    transform: scale(0.9);
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border: none;
  }
}

.feed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--n0);
  border: 1px solid var(--n200);
  border-radius: var(--r8);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  animation: slideInCard 0.2s var(--spring) both;
}
.feed-row.removing {
  animation: fadeOutCard 0.3s ease forwards;
  pointer-events: none;
}
.feed-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.feed-ico-box {
  width: 36px;
  height: 36px;
  border-radius: var(--r8);
  background: var(--n0);
  border: 1px solid var(--n200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--n500);
  flex-shrink: 0;
  padding: 4px;
}
.feed-ico-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.feed-asset {
  font-size: 14px;
  font-weight: 600;
  color: var(--n900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.feed-time-tx {
  font-size: 12px;
  color: var(--n500);
  margin-top: 2px;
}
.feed-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.feed-result {
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.feed-result.up {
  color: var(--up);
}
.feed-result.dn {
  color: var(--dn);
}
.feed-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.feed-pill.up {
  background: var(--up-bg);
  color: var(--up);
}
.feed-pill.dn {
  background: var(--err-bg);
  color: var(--err);
}

/* ═══════════════════════════════════════════════════════
   14. RESULTS & REGISTRATION
═══════════════════════════════════════════════════════ */
.ok-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  background: var(--ok-bg);
  color: var(--ok);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--ok-bg2);
  margin-bottom: 14px;
}
.profit-highlight {
  background: var(--p50);
  border: 1px solid var(--p200);
  border-radius: var(--r8);
  padding: 20px 16px;
  text-align: center;
  margin: 16px 0;
  position: relative;
  overflow: hidden;
}
.profit-label {
  font-size: 12px;
  color: var(--n600);
  margin-bottom: 4px;
  font-weight: 500;
}
.profit-amount {
  font-size: 36px;
  font-weight: 800;
  color: var(--up);
  letter-spacing: -0.05em;
  display: block;
  margin: 4px 0 8px;
  font-variant-numeric: tabular-nums;
  animation: popIn 0.55s var(--spring) both;
}
.profit-note {
  font-size: 12px;
  margin-bottom: 7px;
  color: var(--ok);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.community-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 16px;
}
.com-stat {
  background: linear-gradient(135deg, var(--p50), var(--n50));
  border: 1px solid var(--p100);
  border-radius: var(--r14);
  padding: 14px 10px;
  text-align: center;
}
.com-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--p600);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  animation: popIn 0.6s var(--spring) both;
}
.com-lbl {
  font-size: 11px;
  color: var(--n500);
  margin-top: 3px;
  font-weight: 500;
  line-height: 1.3;
}

.act-section {
  margin-top: 18px;
  border-top: 1px solid var(--n150);
  padding-top: 16px;
}
.act-heading {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--n500);
  margin-bottom: 10px;
}
#act-feed-container {
  height: 190px !important;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
}
.act-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--n0);
  border: 1px solid var(--n200);
  border-radius: var(--r8);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 8px;
  animation: slideInCard 0.2s var(--spring) both;
}
.act-entry.removing {
  animation: fadeOutCard 0.3s ease forwards;
  pointer-events: none;
}
.act-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.act-text {
  font-size: 13px;
  line-height: 1.4;
  color: var(--n900);
  flex: 1;
}
.act-time {
  font-size: 12px;
  color: var(--n500);
  white-space: nowrap;
  flex-shrink: 0;
}

.reg-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.reg-heading {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.timer-badge {
  background: var(--err-bg);
  color: var(--err);
  padding: 5px 11px;
  border-radius: var(--r8);
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  border: 1px solid rgba(240, 40, 73, 0.2);
}

/* ═══════════════════════════════════════════════════════
   15. TRADE DONE MODAL
═══════════════════════════════════════════════════════ */
.done-profit-hero {
  margin: 14px 0 18px;
}
.done-prf-label {
  font-size: 12px;
  color: var(--n500);
  margin-bottom: 4px;
  font-weight: 500;
}
.done-prf-val {
  font-size: 40px;
  font-weight: 700;
  color: var(--up);
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  animation: popIn 0.55s var(--spring) both;
}
.done-prf-val.is-loss {
  color: var(--dn);
}
.done-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: var(--n50);
  border: 1px solid var(--n200);
  border-radius: var(--r14);
  padding: 14px;
  margin-bottom: 18px;
}
.done-cell {
  text-align: center;
}
.done-cell-label {
  font-size: 10px;
  color: var(--n500);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}
.done-cell-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--n900);
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════
   16. FOOTER & COOKIE
═══════════════════════════════════════════════════════ */
.fb-footer {
  padding: 20px 16px;
  text-align: center;
  color: var(--n500);
  font-size: 11px;
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.footer-nav a:hover {
  color: var(--p500);
}
.cookie-popup {
  position: fixed;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: var(--n0);
  padding: 16px 18px;
  border-radius: var(--r16);
  box-shadow: var(--sh-xl);
  z-index: 9800;
  border: 1px solid var(--n200);
  max-width: 380px;
  margin: 0 auto;
  animation: slideUp 0.8s var(--ease) both;
}
@media (min-width: 500px) {
  .cookie-popup {
    left: auto;
  }
}

/* ═══════════════════════════════════════════════════════
   17. intlTelInput OVERRIDES
═══════════════════════════════════════════════════════ */
.iti {
  width: 100%;
}
.iti__flag-container {
  border-top-left-radius: var(--r12);
  border-bottom-left-radius: var(--r12);
}
.iti--separate-dial-code .iti__selected-flag {
  border-radius: var(--r12) 0 0 var(--r12);
}

@media (max-width: 360px) {
  .bal-amount {
    font-size: 26px;
  }
  .profit-amount {
    font-size: 30px;
  }
  .done-prf-val {
    font-size: 34px;
  }
  .chart-container {
    height: 130px;
  }
}
@media (min-width: 600px) {
  .chart-container {
    height: 170px;
  }
  .bal-amount {
    font-size: 32px;
  }
}

.form-text {
  color: gray;
  font-size: 12px;
}
