/* style.css - ১০০% প্রফেশনাল ডার্ক-থিম নান্দনিকতা */

:root {
  --bg-dark: #181c24;
  --bg-card: #1d222c;
  --bg-card-hover: #232936;
  --border-color: rgba(255, 255, 255, 0.06);
  --neon-green: #10b981;
  --neon-green-glow: rgba(16, 185, 129, 0.22);
  --neon-red: #ff3366;
  --neon-red-glow: rgba(255, 51, 102, 0.18);
  --neon-cyan: #10b981;
  --text-main: #F8FAFC;
  --text-muted: #CBD5E1;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  overflow-x: hidden;
}

/* টপ নেভিগেশন */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 24px;
  background: rgba(0, 217, 255, 0.1);
  padding: 6px;
  border-radius: 8px;
  border: 1px solid rgba(0, 217, 255, 0.3);
}

.brand-text h1 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.brand-text span {
  font-size: 11px;
  color: var(--text-muted);
}

.live-status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--neon-green);
  min-width: 105px;
  justify-content: center;
  flex-shrink: 0;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--neon-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon-green);
  animation: pulse 1s infinite;
  flex-shrink: 0;
}

.ping-badge {
  background: rgba(0, 255, 136, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--neon-green);
  min-width: 46px;
  text-align: center;
  display: inline-block;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  animation: pingBlink 1.5s infinite ease-in-out;
}

@keyframes pingBlink {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 6px rgba(0, 255, 136, 0.4);
  }

  50% {
    opacity: 0.35;
    box-shadow: none;
  }
}

@keyframes pulse {
  0% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.3;
  }
}

/* সুইচ বাটনস */
.lang-switch,
.mode-switch {
  display: flex;
  background: #06080d;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 3px;
}

.lang-btn,
.mode-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.active,
.mode-btn.active {
  background: #172133;
  color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.2);
}

.mode-btn.active {
  color: var(--neon-green);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-pdf-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.15), rgba(0, 210, 255, 0.15));
  border: 1px solid rgba(0, 230, 118, 0.5);
  color: #00e676;
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.guide-pdf-btn:hover {
  background: linear-gradient(135deg, #00e676, #00d2ff);
  color: #060a12;
  border-color: #00e676;
  box-shadow: 0 0 16px rgba(0, 230, 118, 0.5);
  transform: translateY(-1px);
}

.guide-icon {
  font-size: 15px;
}

.icon-btn {
  background: #101622;
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
}

/* টিকার রিবন */
.ticker-ribbon {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #05070a;
  border-bottom: 1px solid var(--border-color);
  padding: 8px 24px;
  font-size: 13px;
  overflow-x: auto;
  white-space: nowrap;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.ticker-item.clickable {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
}

.ticker-item.clickable:hover {
  background: #111a28;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.15);
  transform: translateY(-1px);
}

.ticker-item .rank-badge {
  font-size: 12px;
  font-weight: 700;
  color: #00d9ff;
}

.ticker-item .coin-pair {
  color: #e2e8f0;
  font-weight: 600;
}

.ticker-item .win-score {
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

/* কালার ইউটিলিটি */
.green {
  color: var(--neon-green) !important;
}

.red {
  color: var(--neon-red) !important;
}

.cyan {
  color: var(--neon-cyan) !important;
}

/* মেইন লেআউট */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 20px;
  padding: 20px 24px;
  max-width: 1720px;
  margin: 0 auto;
}

/* কয়েন কন্ট্রোল বার ও সার্চ */
.coin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  border-radius: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.coin-search-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ইন্টিগ্রেটেড কয়েন সিলেক্টর ও সার্চ ড্রপডাউন */
.coin-dropdown-wrapper {
  position: relative;
  display: inline-block;
  user-select: none;
}

.coin-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #080c14;
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 42px;
}

.coin-dropdown-trigger .coin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.coin-dropdown-trigger .coin-name {
  color: var(--neon-cyan);
  letter-spacing: 0.5px;
  display: inline-block;
  white-space: nowrap;
}

.coin-dropdown-trigger .dropdown-arrow {
  font-size: 10px;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.coin-dropdown-wrapper.open .dropdown-arrow {
  transform: rotate(180deg);
}

/* ড্রপডাউন প্যানেল */
.coin-dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 290px;
  background: #0b0f17;
  border: 1px solid #1f2d42;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: none;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.coin-dropdown-wrapper.open .coin-dropdown-panel {
  display: block;
  animation: fadeInDown 0.15s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ড্রপডাউনের ভেতরের সার্চ বক্স */
.coin-search-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #161e2e;
  background: #070a10;
}

.coin-search-inner .search-icon {
  font-size: 13px;
  color: var(--text-muted);
}

#coinSearchInput {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

#coinSearchInput::placeholder {
  color: #4a5d78;
  font-size: 12px;
}

/* কয়েন তালিকা কনটেইনার */
.coin-list-container {
  max-height: 320px;
  overflow-y: auto;
  padding: 6px 0;
}

.coin-group-title {
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #637792;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.02);
}

.coin-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #d1dce8;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.coin-item-row:hover {
  background: #141f30;
  color: var(--neon-cyan);
}

.coin-item-row.selected {
  background: rgba(0, 217, 255, 0.1);
  color: var(--neon-cyan);
  border-left: 3px solid var(--neon-cyan);
}

.coin-item-row .coin-ticker {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ফেভারিট স্টার বাটন স্টাইল */
.coin-star-btn {
  background: transparent;
  border: none;
  color: #3b4d66;
  font-size: 14px;
  cursor: pointer;
  padding: 0 4px 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.coin-star-btn:hover {
  color: #ffaa00;
  transform: scale(1.15);
}

.coin-star-btn.active {
  color: #ffaa00 !important;
  text-shadow: 0 0 8px rgba(255, 170, 0, 0.6);
}

.coin-item-row .match-text {
  color: var(--neon-green);
  font-weight: 700;
}

.coin-item-row .tag-select {
  font-size: 11px;
  color: #4f6785;
}

.coin-item-row:hover .tag-select {
  color: var(--neon-cyan);
}

.coin-empty-msg {
  padding: 18px 14px;
  text-align: center;
  font-size: 12px;
  color: #637792;
}

.price-display {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-display h2 {
  font-size: 24px;
  font-weight: 800;
  transition: color 0.2s;
}

.price-up {
  color: var(--neon-green) !important;
  text-shadow: 0 0 10px var(--neon-green-glow);
}

.price-down {
  color: var(--neon-red) !important;
  text-shadow: 0 0 10px var(--neon-red-glow);
}

.change-tag {
  font-size: 13px;
  font-weight: 600;
}

/* টাইমফ্রেম র‍্যাপার ও বাইন্যান্স স্টাইল ইন্টারভাল পপআপ */
.timeframe-wrapper {
  position: relative;
}

.timeframe-group {
  display: flex;
  gap: 4px;
  background: #080c14;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.tf-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  box-sizing: border-box;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.tf-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.tf-btn.active {
  background: rgba(0, 217, 255, 0.15) !important;
  color: var(--neon-cyan) !important;
  font-weight: 700 !important;
  border-color: rgba(0, 217, 255, 0.4) !important;
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.25) !important;
}

.tf-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 65px;
  text-align: center;
  border-left: 1px solid #1c2636;
  border-radius: 0 6px 6px 0;
}

/* বাইন্যান্স ইন্টারভাল মডাল */
.interval-modal {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: #131a24;
  border: 1px solid #233144;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
  padding: 14px;
  z-index: 1000;
  display: none;
  animation: fadeInDown 0.15s ease-out;
}

.interval-modal.open {
  display: block;
}

.interval-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #1e2a3b;
}

.interval-modal-head h4 {
  font-size: 15px;
  font-weight: 700;
  color: #f0f4f8;
  margin: 0;
}

.close-modal-btn {
  background: transparent;
  border: none;
  color: #718298;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.close-modal-btn:hover {
  color: #fff;
  background: #1f2c3d;
}

/* বাইন্যান্স গ্রিড লেআউট */
.interval-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.int-cell {
  background: #192230;
  border: 1px solid #243448;
  color: #a0aec0;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 0;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.int-cell:hover {
  background: #202d40;
  color: #fff;
  border-color: #3b506d;
}

.int-cell.active {
  border-color: #fff;
  color: #fff;
  background: #1f2d40;
  box-shadow: inset 0 0 0 1px #fff;
}

/* কাস্টম ইন্টারভাল সেকশন */
.custom-interval-section {
  padding-top: 10px;
  border-top: 1px solid #1e2a3b;
}

.custom-title {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #718298;
  margin-bottom: 8px;
}

.custom-input-row {
  display: flex;
  gap: 6px;
}

#customTfNum {
  width: 60px;
  background: #090e15;
  border: 1px solid #243448;
  border-radius: 6px;
  color: #fff;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

#customTfUnit {
  flex: 1;
  background: #090e15;
  border: 1px solid #243448;
  border-radius: 6px;
  color: #cbd5e0;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 600;
}

.custom-add-btn {
  background: var(--neon-cyan);
  border: none;
  color: #06090e;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.custom-add-btn:hover {
  opacity: 0.9;
}

/* চার্ট কন্টেইনার */
.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.chart-indicators-legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
  min-height: 20px;
  max-height: 20px;
  overflow: hidden;
  box-sizing: border-box;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.ema50 {
  background: #00d9ff;
}

.dot.ema100 {
  background: #ffaa00;
}

.dot.ema200 {
  background: #bf5af2;
}

.dot.resistance {
  background: #ffaa00;
  /* গোল্ডেন অরেঞ্জ */
}

.dot.support {
  background: #00d9ff;
  /* নিয়ন সায়ান আকাশি */
}

.tv-chart {
  width: 100%;
  height: 440px;
  min-height: 400px;
}

/* ৮-লেয়ার চেকলিস্ট গ্রিড */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 8px;
}

.check-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px 10px;
  border-radius: 10px;
  min-width: 0;
  min-height: 96px;
  box-sizing: border-box;
  overflow: visible;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ডায়নামিক অ্যাকশন পুরো কার্ড ব্যাকগ্রাউন্ড, বর্ডার ও গ্লো কালারস */
.check-card.action-buy {
  background: linear-gradient(145deg, rgba(0, 255, 136, 0.16) 0%, rgba(13, 24, 21, 0.95) 100%) !important;
  border-color: rgba(0, 255, 136, 0.65) !important;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.18), inset 0 0 15px rgba(0, 255, 136, 0.08) !important;
}

.check-card.action-buy .card-head {
  color: var(--neon-green) !important;
  font-weight: 700;
}

.check-card.action-avoid {
  background: linear-gradient(145deg, rgba(255, 51, 102, 0.16) 0%, rgba(26, 13, 17, 0.95) 100%) !important;
  border-color: rgba(255, 51, 102, 0.65) !important;
  box-shadow: 0 0 20px rgba(255, 51, 102, 0.18), inset 0 0 15px rgba(255, 51, 102, 0.08) !important;
}

.check-card.action-avoid .card-head {
  color: var(--neon-red) !important;
  font-weight: 700;
}

.check-card.action-sell {
  background: linear-gradient(145deg, rgba(255, 170, 0, 0.16) 0%, rgba(26, 21, 13, 0.95) 100%) !important;
  border-color: rgba(255, 170, 0, 0.65) !important;
  box-shadow: 0 0 20px rgba(255, 170, 0, 0.18), inset 0 0 15px rgba(255, 170, 0, 0.08) !important;
}

.check-card.action-sell .card-head {
  color: #ffaa00 !important;
  font-weight: 700;
}

.check-card:hover {
  border-color: rgba(0, 217, 255, 0.4);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  font-size: 10.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.card-head span:first-child {
  flex-shrink: 0;
  font-size: 12px;
}

.card-head span[id^="lbl"] {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  font-size: 10px;
  font-weight: 700;
}

.badge-check {
  color: var(--neon-green);
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

.card-body h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 2px;
}

.card-body .sub {
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: var(--text-muted);
}

.wall-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  white-space: nowrap;
  margin-bottom: 3px;
}

.fng-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.fng-score {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
}

.fng-label {
  font-size: 11px;
  font-weight: bold;
}

/* ডান পাশের কলাম */
.right-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px;
}

/* এআই সিগন্যাল কার্ড */
.sniper-card {
  border: 1px solid rgba(0, 255, 136, 0.4);
  box-shadow: 0 0 20px var(--neon-green-glow);
}

.sniper-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.sniper-head>div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

/* Coin Logo Styles */
.coin-logo-img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
}

.coin-fallback-icon {
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ticker-item .coin-logo-img {
  width: 17px;
  height: 17px;
}

.coin-dropdown-trigger .coin-logo-img {
  width: 22px;
  height: 22px;
}

.active-coin-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.2), rgba(0, 230, 118, 0.2));
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

.active-coin-badge .coin-logo-img {
  width: 18px;
  height: 18px;
}

.sniper-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.sniper-head h2 {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

.prob-box {
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.2);
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 12px;
  min-height: 82px;
  display: flex;
  align-items: center;
}

.prob-num {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.prob-num h1 {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  min-width: 90px;
  flex-shrink: 0;
}

.prob-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.prob-dir {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.verdict-badge {
  display: inline-block;
  background: rgba(0, 255, 136, 0.15);
  color: var(--neon-green);
  border: 1px solid var(--neon-green);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: normal;
  line-height: 1.4;
  word-break: break-word;
}

.time-window {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: #090d15;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--border-color);
  min-height: 40px;
}

.time-window .time-label {
  white-space: nowrap;
  font-size: 11.5px;
  color: #94a3b8;
  flex-shrink: 0;
}

.time-window b {
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reasons-box {
  background: #080c13;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid var(--border-color);
  min-height: 125px;
  max-height: 155px;
  overflow-y: auto;
}

.reasons-box::-webkit-scrollbar {
  width: 4px;
}

.reasons-box::-webkit-scrollbar-thumb {
  background: #233144;
  border-radius: 4px;
}

.reasons-box h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-bottom: 8px;
}

.reasons-box ul {
  list-style: none;
  font-size: 12px;
  line-height: 1.6;
}

.reasons-box li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 4px;
  color: #d8e3f0;
}

.reasons-box li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--neon-green);
  font-weight: bold;
}

.price-targets-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.target-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #06090f;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  border: 1px solid var(--border-color);
}

/* স্পট ও ফিউচার্স মোড সুইচার বার */
.trade-mode-toggle-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #090e16;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  margin-bottom: 4px;
}

.mode-tab-btn {
  background: transparent;
  border: none;
  color: #7e8fa4;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.mode-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.mode-tab-btn.active {
  background: #162438;
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 217, 255, 0.35);
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.15);
}

.fut-dir-switch {
  display: flex;
  gap: 4px;
}

.fut-dir-btn {
  background: #0f1622;
  border: 1px solid #233144;
  color: #8a9bb0;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.fut-dir-btn.active#btnFutLong {
  background: rgba(0, 255, 136, 0.2);
  color: var(--neon-green);
  border-color: var(--neon-green);
}

.fut-dir-btn.active#btnFutShort {
  background: rgba(255, 51, 102, 0.2);
  color: var(--neon-red);
  border-color: var(--neon-red);
}

.calc-active-mode-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0, 217, 255, 0.15);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 217, 255, 0.3);
  margin-left: auto;
}

/* স্প্লিট কার্ডস */
.split-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.sub-card {
  padding: 14px;
}

.sub-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 8px;
}

.badge-mini {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}

.badge-mini.green {
  background: rgba(0, 255, 136, 0.15);
  color: var(--neon-green);
}

.sub-p {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.dca-list,
.fut-setup {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.dca-item,
.fut-row {
  display: flex;
  justify-content: space-between;
  background: #06090e;
  padding: 6px 10px;
  border-radius: 6px;
}

/* রিস্ক ক্যালকুলেটর */
.calc-card {
  border: 1px solid var(--border-color);
}

.calc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.calc-head h3 {
  font-size: 14px;
  font-weight: 700;
}

.calc-input-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #080c13;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid var(--border-color);
  font-size: 13px;
}

.input-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-ctrl input {
  width: 80px;
  background: #030508;
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  -moz-appearance: textfield;
  /* ফায়ারফক্স ব্রাউজারে ওল্ড অ্যারো হাইড */
  appearance: textfield;
}

/* ক্রোম, এজ, সাফারি ব্রাউজারে ইনপুটের ভেতর থাকা ওল্ড মডেলের স্পিন অ্যারো বোতাম হাইড করা */
.input-ctrl input::-webkit-outer-spin-button,
.input-ctrl input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.step-btn {
  background: #172133;
  border: 1px solid #233144;
  color: var(--neon-cyan);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.step-btn:hover {
  background: #23334d;
  color: #fff;
  border-color: var(--neon-cyan);
}

/* আল্ট্রা-কম্প্যাক্ট কাস্টম ট্রেড সিমুলেটর (Buy/Sell Price Simulator) */
.custom-trade-sim {
  background: #080c14;
  border: 1px solid #1c2738;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 12px;
}

.sim-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 6px;
}

.sim-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sim-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.buy-tag {
  color: var(--neon-cyan);
}

.sell-tag {
  color: #ffaa00;
}

.sim-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.sim-input-wrap input {
  width: 100%;
  background: #030508;
  border: 1px solid #1f2b3e;
  border-radius: 6px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 36px 6px 8px;
  outline: none;
  transition: border-color 0.15s;
}

.sim-input-wrap input:focus {
  border-color: var(--neon-cyan);
}

.sim-live-btn {
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  background: #172438;
  border: 1px solid #2a3e5c;
  color: var(--neon-cyan);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.sim-live-btn:hover {
  background: var(--neon-cyan);
  color: #000;
}

.sim-return-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 217, 255, 0.05);
  border: 1px dashed rgba(0, 217, 255, 0.25);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
}

.return-label {
  color: var(--text-muted);
  font-size: 10.5px;
}

.return-value {
  font-size: 13.5px;
  font-weight: 800;
}

.return-pnl {
  font-size: 10px;
  font-weight: 600;
  color: var(--neon-green);
}

.calc-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.calc-res-item {
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}

.calc-res-item span {
  font-size: 11px;
  color: var(--text-muted);
}

.calc-res-item h2 {
  font-size: 17px;
  font-weight: 800;
  margin-top: 4px;
}

.green-box {
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.red-box {
  background: rgba(255, 51, 102, 0.08);
  border: 1px solid rgba(255, 51, 102, 0.2);
}

.calc-note {
  font-size: 11px;
  color: var(--neon-cyan);
}

/* ========================================================
   Floating AI Copilot Chatbot Widget Styles
   ======================================================== */
.copilot-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: inherit;
}

.copilot-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0f1c2e 0%, #172a45 100%);
  border: 1px solid rgba(0, 217, 255, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 217, 255, 0.25);
  padding: 10px 16px;
  border-radius: 50px;
  cursor: pointer;
  color: #fff;
  transition: all 0.2s ease-in-out;
}

.copilot-trigger:hover {
  transform: translateY(-2px);
  border-color: var(--neon-cyan);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 22px rgba(0, 217, 255, 0.4);
}

.copilot-trigger-icon {
  font-size: 22px;
  line-height: 1;
}

.copilot-trigger-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.copilot-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
}

.copilot-status {
  font-size: 10px;
  color: var(--neon-green);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.copilot-dot {
  width: 6px;
  height: 6px;
  background: var(--neon-green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--neon-green);
  animation: pulse 1.5s infinite;
}

.copilot-badge {
  background: rgba(0, 217, 255, 0.15);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 2px;
}

/* Copilot Panel */
.copilot-panel {
  position: absolute;
  bottom: calc(100% + 14px);
  right: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: #0d1420;
  border: 1px solid #1e2c40;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 217, 255, 0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(12px);
  animation: fadeInDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.copilot-panel.open {
  display: flex;
}

.copilot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #111a28;
  border-bottom: 1px solid #1a273b;
}

.copilot-head-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.copilot-avatar {
  width: 34px;
  height: 34px;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.copilot-head h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.copilot-sub {
  font-size: 10px;
  color: #7d8ea3;
  display: block;
}

.copilot-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.copilot-clear-btn,
.copilot-close-btn {
  background: transparent;
  border: none;
  color: #8b9bb0;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.15s;
}

.copilot-clear-btn:hover,
.copilot-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Chips bar */
.copilot-chips {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  overflow-x: auto;
  white-space: nowrap;
  background: rgba(8, 12, 20, 0.6);
  border-bottom: 1px solid #162130;
  scrollbar-width: none;
}

.copilot-chips::-webkit-scrollbar {
  display: none;
}

.copilot-chip {
  background: #141f30;
  border: 1px solid #22344d;
  color: #9cb2cc;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}

.copilot-chip:hover {
  background: rgba(0, 217, 255, 0.15);
  border-color: var(--neon-cyan);
  color: #fff;
}

/* Messages area */
.copilot-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #090e17;
  scroll-behavior: smooth;
}

.copilot-msg {
  display: flex;
  flex-direction: column;
  max-width: 86%;
  font-size: 12.5px;
  line-height: 1.5;
  border-radius: 12px;
  padding: 10px 14px;
  word-break: break-word;
}

.copilot-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #00d9ff, #0077b6);
  color: #fff;
  border-bottom-right-radius: 2px;
  box-shadow: 0 4px 12px rgba(0, 217, 255, 0.2);
}

.copilot-msg.bot {
  align-self: flex-start;
  background: #131c2b;
  border: 1px solid #1f2f45;
  color: #d8e4f2;
  border-bottom-left-radius: 2px;
}

.copilot-msg.bot p {
  margin: 4px 0;
}

.copilot-msg.bot strong {
  color: #fff;
}

.copilot-msg-time {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
  align-self: flex-end;
}

.copilot-msg.bot .copilot-msg-time {
  color: #5b6e85;
}

/* Typing indicator */
.copilot-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: #131c2b;
  border: 1px solid #1f2f45;
  border-radius: 12px;
  align-self: flex-start;
  width: fit-content;
}

.copilot-typing-dot {
  width: 6px;
  height: 6px;
  background: var(--neon-cyan);
  border-radius: 50%;
  animation: pulse 1s infinite alternate;
}

.copilot-typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.copilot-typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* Input bar */
.copilot-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #111a28;
  border-top: 1px solid #1c2a3d;
}

.copilot-input-bar input {
  flex: 1;
  background: #090e17;
  border: 1px solid #22344d;
  color: #fff;
  padding: 9px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.15s;
}

.copilot-input-bar input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 8px rgba(0, 217, 255, 0.2);
}

.copilot-input-bar button {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #00d9ff, #00ff88);
  border: none;
  border-radius: 50%;
  color: #080c14;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}

.copilot-input-bar button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.4);
}

/* ========================================================
   Mobile & Tablet Ultra-Responsive Engine (All Phones Fit)
   ======================================================== */

@media (max-width: 1024px) {
  .main-layout {
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 12px;
  }

  /* চার্টের পরে সবার আগে এআই স্নাইপার স্কোর কার্ড দেখানো */
  .left-col,
  .right-col,
  .mode-content-container {
    display: contents;
    /* এর ভেতরের এলিমেন্টগুলোকে ফ্লেক্স অর্ডারে ইচ্ছামত সাজানো সম্ভব */
  }

  .coin-bar {
    order: 1;
  }

  .chart-container {
    order: 2;
    margin-bottom: 12px;
  }

  /* স্নাইপার স্কোর কার্ড ঠিক ৩ নম্বরে (চার্টের ঠিক নিচে) থাকবে */
  .sniper-card {
    order: 3;
    margin-bottom: 12px;
    width: 100%;
  }

  /* ট্রেড মোড ও স্পট/ফিউচার্স কার্ড ৪ ও ৫ নম্বরে (স্কোর কার্ডের ঠিক নিচে) */
  .trade-mode-toggle-bar {
    order: 4;
    width: 100%;
  }

  #cardSpot,
  #cardFutures {
    order: 5;
    width: 100%;
    margin-bottom: 12px;
  }

  /* ৭টি কনফ্লুয়েন্স কার্ড ৬ নম্বরে */
  .checklist-grid {
    order: 6;
    margin-bottom: 12px;
    width: 100%;
  }

  .calc-card {
    order: 7;
    width: 100%;
  }

  .mobile-bottom-settings {
    order: 8;
    width: 100%;
  }

  .tv-chart {
    height: 300px;
    min-height: 260px;
  }
}

/* মোবাইল নিচের সেটিংস বার (ডেস্কটপে লুকানো) */
.mobile-bottom-settings {
  display: none;
}

@media (max-width: 768px) {

  /* মোবাইলের এক স্ক্রিন আল্ট্রা-কম্প্যাক্ট ফ্রন্ট ফিট (স্ক্রিনশটের হুবহু লেআউট) */
  /* টপ ন্যাভবার মোবাইলে দেখা যাবে তবে স্লিম ও মিনিমাল (ভাষা পরিবর্তনের সুযোগ থাকবে) */
  .top-nav {
    display: flex !important;
    padding: 6px 10px;
    background: #090e17;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
  }

  .top-nav .brand {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: auto;
    /* বামপাশে ব্র্যান্ড থাকবে, ডানে বাকি কন্ট্রোলগুলো একসাথে থাকবে */
  }

  .top-nav .brand .logo-icon {
    font-size: 16px;
  }

  .top-nav .brand-text h1 {
    font-size: 14px;
    font-weight: 800;
  }

  .top-nav .brand-text span {
    display: none;
    /* মোবাইলে অতিরিক্ত সাবটাইটেল হাইড */
  }

  .top-nav .live-status,
  .top-nav .mode-switch {
    display: none !important;
  }

  /* মোবাইলে ভাষা বাটন ও সাউন্ড আইকন একদম কাছাকাছি (কম গ্যাপে) থাকবে */
  .top-nav .lang-switch {
    display: flex !important;
    gap: 2px;
  }

  .top-nav .lang-btn {
    padding: 3px 7px;
    font-size: 11px;
    font-weight: 700;
  }

  .top-nav .nav-actions {
    display: flex !important;
    align-items: center;
    gap: 0px;
    margin-left: 2px;
  }

  .top-nav .nav-actions .guide-pdf-btn {
    display: none !important;
    /* পিডিএফ বাটন নিচে রাখা হয়েছে */
  }

  .top-nav .nav-actions .icon-btn {
    padding: 3px 6px;
    font-size: 13px;
    border-radius: 6px;
    min-width: 28px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111a28;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .ticker-ribbon {
    display: flex !important;
    padding: 4px 6px;
    gap: 4px;
    background: #070b12;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    user-select: none;
    cursor: grab;
    scrollbar-width: none;
    box-sizing: border-box;
    width: 100%;
  }

  .ticker-ribbon:active {
    cursor: grabbing;
  }

  .ticker-ribbon::-webkit-scrollbar {
    display: none;
  }

  .ticker-item {
    /* মোবাইলে একসাথে ঠিক ২টি সম্পূর্ণ কার্ড পাশাপাশি থাকবে, যাতে কোনো লেখা বা উইন স্কোর না কাটে */
    width: calc((100% - 4px) / 2);
    min-width: calc((100% - 4px) / 2);
    max-width: calc((100% - 4px) / 2);
    box-sizing: border-box;
    padding: 4px 6px;
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
  }

  .ticker-item .rank-badge {
    font-size: 11px;
    line-height: 1;
    flex-shrink: 0;
  }

  .ticker-item .coin-logo-img,
  .ticker-item .coin-fallback-icon {
    width: 14px;
    height: 14px;
    font-size: 12px;
    flex-shrink: 0;
  }

  .ticker-item .coin-pair {
    font-weight: 700;
    font-size: 10.5px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .ticker-item b {
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .ticker-item .win-score {
    font-size: 9.5px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    background: rgba(0, 255, 136, 0.16);
    color: var(--neon-green);
    white-space: nowrap;
    flex-shrink: 0;
  }

  .main-layout {
    display: flex;
    flex-direction: column;
    padding: 6px 10px;
    gap: 6px;
    margin: 0;
  }

  .left-col,
  .right-col,
  .mode-content-container {
    display: contents !important;
  }

  /* ১. সবার ওপরে কয়েন বার: SOL/USDT, টাইমফ্রেম বাটন ও প্রাইস — সব সুন্দরভাবে ফিট */
  .coin-bar {
    order: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px;
    gap: 3px;
    margin-bottom: 4px;
    border-radius: 8px;
    background: #090e17;
    overflow: visible;
    /* মডাল পপআপ যেন আটকে না যায় */
    position: relative;
    box-sizing: border-box;
    width: 100%;
    z-index: 200;
  }

  .coin-search-group {
    width: auto;
    flex: 0 0 auto;
    position: relative;
  }

  /* মোবাইলে কয়েন সার্চ ড্রপডাউন প্যানেল ন্যারো ও কম্প্যাক্ট */
  .coin-dropdown-panel {
    width: 215px !important;
    max-width: 75vw !important;
    left: 0 !important;
    border-radius: 8px !important;
  }

  .coin-search-inner {
    padding: 6px 8px !important;
  }

  #coinSearchInput {
    font-size: 11.5px !important;
  }

  .coin-list-container {
    max-height: 310px !important;
    padding: 3px 0 !important;
  }

  .coin-group-title {
    padding: 4px 10px !important;
    font-size: 9.5px !important;
  }

  .coin-item-row {
    padding: 6px 10px !important;
    font-size: 11.5px !important;
  }

  .coin-item-row .coin-ticker {
    gap: 4px !important;
  }

  .coin-star-btn {
    font-size: 12px !important;
    padding: 0 2px 0 0 !important;
  }

  .coin-item-row .tag-select {
    font-size: 9.5px !important;
  }

  .coin-dropdown-trigger {
    padding: 2px 4px;
    min-height: 24px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    gap: 2px;
  }

  .coin-dropdown-trigger .coin-logo-img {
    width: 13px;
    height: 13px;
  }

  /* টাইমফ্রেম বাটনগুলো মাঝখানে একদম এক লাইনে, ওভারল্যাপ ছাড়া সুন্দর ফিট */
  .coin-bar .timeframe-wrapper {
    display: flex !important;
    flex: 0 1 auto;
    margin: 0 1px;
    justify-content: center;
    width: auto;
    min-width: 0;
  }

  .timeframe-group {
    display: flex;
    background: #0c121c;
    padding: 1px;
    border-radius: 4px;
    gap: 1px;
    width: auto;
    max-width: 145px;
    justify-content: center;
  }

  .timeframe-group .tf-btn {
    flex: 0 0 auto;
    padding: 2px 4px;
    font-size: 9px;
    font-weight: 700;
    text-align: center;
    border-radius: 3px;
    min-height: 20px;
    line-height: 1.1;
  }

  .tf-more-btn {
    font-size: 8.5px !important;
    padding: 2px 3px !important;
    min-width: auto !important;
  }

  /* মোবাইলে বাইন্যান্স ইন্টারভাল মডাল অপ্টিমাইজেশন */
  .interval-modal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 290px !important;
    max-width: 90vw !important;
    z-index: 99999 !important;
    background: #101622 !important;
    border: 1px solid #233144 !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 25px rgba(0, 217, 255, 0.25) !important;
  }

  .interval-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
  }

  .int-cell {
    padding: 7px 0 !important;
    font-size: 11.5px !important;
  }

  /* ডানপাশে প্রাইস ডিসপ্লে এক লাইনে ফিট (BTC এর মতো বড় প্রাইস হলেও ছোট ও সুন্দর দেখাবে) */
  .price-display {
    width: auto;
    flex: 0 0 auto;
    display: flex;
    align-items: baseline;
    gap: 2px;
    border: none;
    padding: 0;
  }

  .price-display h2 {
    font-size: 11.5px !important;
    font-weight: 800;
    margin: 0;
    white-space: nowrap;
    letter-spacing: -0.3px;
  }

  .change-tag {
    font-size: 8.5px !important;
    padding: 0px 2px;
    white-space: nowrap;
  }

  /* ক্যান্ডেলস্টিক চার্টের ডানপাশের স্কেলের অপ্রয়োজনীয় চওড়া জায়গা কমানো */
  .tv-chart {
    height: 220px !important;
    min-height: 200px !important;
  }

  .chart-container {
    order: 2;
    padding: 4px;
    margin-bottom: 6px;
    border-radius: 10px;
    background: #090e17;
  }

  .chart-indicators-legend {
    display: flex;
    flex-wrap: wrap;
    /* মোবাইলে ২ লাইনে সুন্দরভাবে ভেঙে আসবে যাতে ছাদ ও মেঝে সরাসরি সামনে দৃশ্যমান থাকে */
    gap: 4px 8px;
    font-size: 9px;
    margin-bottom: 6px;
    line-height: 1.3;
    min-height: auto;
    max-height: none;
    overflow: visible;
    padding: 2px 4px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
  }

  .chart-indicators-legend .legend-item {
    white-space: nowrap;
  }

  .chart-indicators-legend .legend-item.res b,
  .chart-indicators-legend .legend-item.sup b {
    font-weight: 700;
  }

  .chart-indicators-legend .legend-item.res b {
    color: #ffaa00;
  }

  .chart-indicators-legend .legend-item.sup b {
    color: #00d9ff;
  }

  /* ৩. AI স্নাইপার সিগন্যাল ও স্কোর কার্ড (চার্টের ঠিক নিচে সম্পূর্ণ দৃশ্যমান) */
  .sniper-card {
    order: 3;
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 10px;
    width: 100%;
  }

  .sniper-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
  }

  .sniper-head h2 {
    font-size: 13.5px;
    font-weight: 700;
  }

  .active-coin-badge {
    padding: 2px 8px;
    font-size: 11px;
  }

  .prob-box {
    padding: 8px 10px;
    min-height: auto;
    margin-bottom: 8px;
  }

  .prob-num h1 {
    font-size: 32px;
    font-weight: 800;
  }

  .prob-meta .prob-dir {
    font-size: 10px;
    letter-spacing: 0.5px;
  }

  .verdict-badge {
    font-size: 11px;
    padding: 4px 10px;
  }

  /* টাইম উইন্ডো এবং ছোট বিবরণ (মোবাইলে কোনো লেখা কাটবে না ও নমনীয়ভাবে ফিট হবে) */
  .time-window {
    min-height: auto;
    font-size: 11px;
    margin-bottom: 6px;
    padding: 6px 10px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .time-window .time-label {
    white-space: normal !important;
    flex: 0 1 auto !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
  }

  .time-window b {
    white-space: normal !important;
    flex: 1 1 auto !important;
    text-align: right !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
  }

  .safety-verify-box {
    padding: 6px 8px;
    margin: 6px 0;
    font-size: 10.5px;
  }

  .reasons-box {
    min-height: auto;
    max-height: 75px;
    overflow-y: auto;
    padding: 6px 8px;
    margin-bottom: 8px;
    font-size: 11px;
  }

  /* মোবাইলে টার্গেটের ৪টি লাইন ২x২ গ্রিডে (অর্ধেক উচ্চতায় স্লিম ও নিখুঁত ফিট) */
  .price-targets-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }

  .target-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 6px 8px !important;
    gap: 2px !important;
    border-radius: 6px !important;
    background: #06090f !important;
    border: 1px solid var(--border-color) !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .target-row .t-lbl {
    font-size: 9.5px !important;
    color: var(--text-muted) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
  }

  .target-row .t-val {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    letter-spacing: -0.2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
  }

  /* বাকি অংশগুলো (স্কোর ও স্পটের পরে নিচে সুন্দরভাবে থাকবে) */
  .trade-mode-toggle-bar {
    order: 4;
    margin-top: 6px;
    margin-bottom: 6px;
  }

  #cardSpot,
  #cardFutures {
    order: 5;
    margin-bottom: 8px;
    width: 100%;
    padding: 8px 10px !important;
  }

  /* মোবাইলে স্পট DCA ৩টি ধাপ এক লাইনে ৩টি কলামে পাশাপাশি (৩ লাইনের উচ্চতা ১ লাইনে) */
  .dca-list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 5px !important;
  }

  .dca-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 5px 4px !important;
    text-align: center !important;
    min-width: 0 !important;
    background: #06090e !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 6px !important;
  }

  .dca-item span {
    font-size: 8.5px !important;
    color: var(--text-muted) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    line-height: 1.2 !important;
    margin-bottom: 2px !important;
  }

  .dca-item b {
    font-size: 11.5px !important;
    color: var(--neon-cyan) !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
  }

  /* ফিউচার্স মোডের সারিগুলোও মোবাইলে ২x২ গ্রিডে স্লিম ফিট */
  .fut-setup {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 5px !important;
  }

  .fut-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 5px 6px !important;
    min-width: 0 !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 6px !important;
  }

  .fut-row span {
    font-size: 9px !important;
    color: var(--text-muted) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
  }

  .fut-row b {
    font-size: 11.5px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
  }

  .checklist-grid {
    order: 6;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    margin-top: 8px;
  }

  .check-card {
    min-height: 76px !important;
    max-height: 76px !important;
    padding: 6px 8px !important;
  }

  .check-card .card-head {
    font-size: 10px !important;
    margin-bottom: 4px !important;
    gap: 2px !important;
  }

  .check-card .card-head span[id^="lbl"] {
    font-size: 9.5px !important;
  }

  .check-card .badge-check {
    font-size: 9.5px !important;
  }

  .check-card .card-body h3 {
    font-size: 14px !important;
    margin-bottom: 1px !important;
  }

  .check-card .card-body .sub {
    font-size: 9px !important;
  }

  .check-card .wall-row {
    font-size: 9.5px !important;
    margin-bottom: 1px !important;
  }

  .check-card .wall-row b {
    font-size: 10.5px !important;
  }

  .calc-card {
    order: 7;
    margin-top: 10px;
  }

  .mobile-bottom-settings {
    order: 8;
    margin-top: 12px;
  }

  .copilot-panel {
    width: calc(100vw - 20px);
    right: -10px;
    bottom: calc(100% + 10px);
    height: 460px;
  }

  /* মোবাইলে চ্যাট বাটনটি সম্পূর্ণ গোল এবং ছোট (যাতে লেখার উপর ঢেকে না যায়) */
  .copilot-trigger {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50% !important;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 217, 255, 0.35);
  }

  .copilot-trigger-text,
  .copilot-badge {
    display: none !important;
  }

  .copilot-trigger-icon {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .brand-text h1 {
    font-size: 16px;
  }

  .price-display h2 {
    font-size: 20px;
  }

  /* মোবাইলে চেকলিস্ট কার্ডগুলো প্রতি লাইনে ঠিক ২টি করে পাশাপাশি নিখুঁত ফিট */
  .checklist-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }

  .check-card {
    min-height: 78px;
    max-height: 78px;
    padding: 6px 8px !important;
  }

  .check-card .card-head {
    font-size: 10px !important;
    margin-bottom: 4px !important;
    gap: 2px !important;
  }

  .check-card .card-head span[id^="lbl"] {
    font-size: 9.5px !important;
  }

  .check-card .badge-check {
    font-size: 9.5px !important;
  }

  .check-card .card-body h3 {
    font-size: 14px !important;
    margin-bottom: 1px !important;
  }

  .check-card .card-body .sub {
    font-size: 9px !important;
  }

  .check-card .wall-row {
    font-size: 9.5px !important;
    margin-bottom: 1px !important;
  }

  .check-card .wall-row b {
    font-size: 10.5px !important;
  }

  /* মোবাইলে ক্যালকুলেটরের সম্ভাব্য লাভ (সবুজ) ও সর্বোচ্চ ঝুঁকি (লাল) ১ লাইনে পাশাপাশি */
  .calc-result-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .calc-res-item {
    padding: 6px 6px !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .calc-res-item span {
    font-size: 9.5px !important;
    line-height: 1.25 !important;
    display: block !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow: visible !important;
    text-overflow: clip !important;
    margin-bottom: 2px !important;
  }

  .calc-res-item h2 {
    font-size: 13.5px !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .prob-meta {
    gap: 4px;
  }

  .verdict-badge {
    font-size: 11px;
    padding: 3px 8px;
  }

  .copilot-widget {
    bottom: 16px;
    right: 14px;
  }

  /* মোবাইলে চ্যাট বাটনটি সম্পূর্ণ গোল এবং ছোট (যাতে লেখার উপর ঢেকে না যায়) */
  .copilot-trigger {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50% !important;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 217, 255, 0.35);
  }

  .copilot-trigger-text,
  .copilot-badge {
    display: none !important;
  }

  .copilot-trigger-icon {
    font-size: 22px;
  }

  .copilot-panel {
    width: calc(100vw - 16px);
    right: -6px;
    height: 430px;
  }
}

/* ========================================================
   এআই নোটিফিকেশন টোস্ট ও সাউন্ড ভিজ্যুয়ালাইজার স্টাইল
   ======================================================== */
.ai-notification-toast {
  position: fixed;
  top: 18px;
  right: 18px;
  max-width: 380px;
  padding: 12px 18px;
  background: rgba(13, 20, 32, 0.95);
  border: 1px solid rgba(0, 217, 255, 0.4);
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 217, 255, 0.25);
  backdrop-filter: blur(10px);
  z-index: 999999;
  transform: translateY(-80px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.ai-notification-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.ai-notification-toast.success {
  border-color: rgba(0, 255, 136, 0.6);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 255, 136, 0.3);
  color: #bbf7d0;
}

.ai-notification-toast.danger {
  border-color: rgba(255, 51, 102, 0.6);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 51, 102, 0.3);
  color: #fecdd3;
}

.icon-btn.muted {
  opacity: 0.5;
  filter: grayscale(1);
}

@media (max-width: 768px) {
  .ai-notification-toast {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: calc(100vw - 20px);
    font-size: 12px;
    padding: 10px 14px;
    text-align: center;
  }
}

/* --- 1-Click Virtual Paper Trading Simulator Styles --- */
.demo-trading-box {
  margin-top: 12px;
  background: rgba(13, 17, 26, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.demo-box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.demo-balance-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.demo-bal-lbl {
  color: #94a3b8;
}

.demo-bal-val {
  color: #38bdf8;
  font-size: 14px;
  font-family: monospace;
}

.demo-reset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-reset-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.demo-btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.demo-action-btn {
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.demo-buy-btn {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
}

.demo-buy-btn:hover {
  background: linear-gradient(135deg, #10b981, #34d399);
  transform: translateY(-1px);
}

.demo-short-btn {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.25);
}

.demo-short-btn:hover {
  background: linear-gradient(135deg, #ef4444, #f87171);
  transform: translateY(-1px);
}

.demo-positions-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-position-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
}

.demo-pos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.demo-pos-coin {
  font-weight: 700;
  color: #f8fafc;
}

.demo-pos-badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.demo-pos-badge.long {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.demo-pos-badge.short {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.demo-pos-body {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 6px;
}

.demo-pos-pnl {
  font-weight: 700;
  font-family: monospace;
}

.demo-pos-pnl.profit {
  color: #10b981;
}

.demo-pos-pnl.loss {
  color: #ef4444;
}

.demo-close-btn {
  width: 100%;
  padding: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 11px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.demo-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

/* কাস্টম প্রিমিয়াম অ্যারো কন্ট্রোলার বক্স (Hide ugly browser default number spinners) */
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;
  appearance: textfield;
}

.custom-stepper-box {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.custom-stepper-box input {
  padding-right: 28px !important;
}

.custom-stepper-arrows {
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.custom-stepper-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #94a3b8;
  width: 20px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 3px;
  font-size: 8px;
  line-height: 1;
  padding: 0;
  transition: all 0.2s ease;
  user-select: none;
}

.custom-stepper-btn:hover {
  background: #f0b90b;
  color: #000;
  border-color: #f0b90b;
}

.custom-stepper-btn:active {
  transform: scale(0.9);
}

/* =========================================================
   Dark Neumorphism + 3D Card Flip Login Overlay
   ========================================================= */
.neu-auth-overlay {
  position: fixed;
  inset: 0;
  background: #181c24;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}

.bg-circle1,
.bg-circle2,
.bg-circle3 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: #181c24;
  box-shadow: 14px 14px 28px rgba(0, 0, 0, 0.72),
              -10px -10px 22px rgba(255, 255, 255, 0.035);
  animation: neuFloat 9s ease-in-out infinite;
}

.bg-circle1 {
  width: 260px;
  height: 260px;
  top: -60px;
  left: -60px;
}

.bg-circle2 {
  width: 320px;
  height: 320px;
  bottom: -90px;
  right: -80px;
  animation-delay: -3s;
}

.bg-circle3 {
  width: 160px;
  height: 160px;
  top: 18%;
  right: 12%;
  animation-delay: -6s;
}

@keyframes neuFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-14px) scale(1.03); }
}

.neu-login-scene {
  position: relative;
  width: 100%;
  max-width: 400px;
  perspective: 1200px;
  z-index: 2;
}

.neu-login-card {
  position: relative;
  width: 100%;
  min-height: 450px;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.neu-login-card.is-flipped {
  transform: rotateY(180deg);
}

.neu-login-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #181c24;
  border: none;
  border-radius: 24px;
  padding: 28px 24px 68px;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.7),
              -10px -10px 20px rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.neu-login-back {
  transform: rotateY(180deg);
}

.neu-icon-box {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: #181c24;
  border: none;
  box-shadow: 6px 6px 14px rgba(0, 0, 0, 0.75),
              -5px -5px 12px rgba(255, 255, 255, 0.04),
              0 0 14px rgba(16, 185, 129, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}

.neu-login-title {
  margin: 0;
  color: #f8fafc;
  font-size: 19px;
  font-weight: 700;
}

.neu-login-subtitle {
  color: #94a3b8;
  font-size: 12px;
  margin: 6px 0 18px;
  line-height: 1.5;
}

.neu-login-error {
  display: none;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
  text-align: left;
}

.neu-login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.neu-input-group {
  position: relative;
}

.neu-input-group input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  background: #181c24;
  border: none;
  border-radius: 12px;
  color: #f8fafc;
  font-size: 13.5px;
  outline: none;
  box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.6),
              inset -4px -4px 8px rgba(255, 255, 255, 0.04);
  transition: box-shadow 0.25s ease;
}

.neu-pass-group input {
  padding-right: 42px;
}

.neu-input-group input:focus {
  box-shadow: inset 6px 6px 12px rgba(0, 0, 0, 0.72),
              inset -4px -4px 8px rgba(255, 255, 255, 0.05),
              0 0 0 1.5px rgba(16, 185, 129, 0.45);
}

.neu-input-group label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 12.5px;
  pointer-events: none;
  transition: all 0.22s ease;
}

.neu-input-group input:focus ~ label,
.neu-input-group input:not(:placeholder-shown) ~ label,
.neu-input-group.has-value label {
  top: -10px;
  left: 14px;
  transform: translateY(0);
  font-size: 11px;
  background: #181c24;
  padding: 0 6px;
  border-radius: 4px;
  color: #10b981;
}

.neu-eye-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.neu-eye-btn:hover {
  color: #10b981;
}

.neu-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: -2px;
}

.neu-remember {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.neu-remember input {
  accent-color: #059669;
  cursor: pointer;
}

.neu-reset-link {
  background: none;
  border: none;
  color: #10b981;
  font-size: 11.5px;
  cursor: pointer;
  padding: 0;
}

.neu-reset-link:hover {
  text-decoration: underline;
}

.neu-login-btn.neu-pill-btn {
  position: relative;
  width: 100%;
  height: 58px;
  border-radius: 14px;
  background: #181c24;
  border: none;
  color: #10b981;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.3px;
  cursor: pointer;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 6px 6px 14px rgba(0, 0, 0, 0.65),
              -4px -4px 10px rgba(255, 255, 255, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.neu-login-btn.neu-pill-btn::after {
  display: none;
}

.neu-login-btn.neu-pill-btn::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 30px;
  background: #181c24;
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.08),
              3px 3px 8px rgba(0, 0, 0, 0.45);
  filter: blur(0.5px);
  z-index: -1;
  transition: box-shadow 0.28s ease;
}

.neu-login-btn.neu-pill-btn:hover {
  transform: scale(1.015);
}

.neu-login-btn.neu-pill-btn:hover::before {
  box-shadow: inset 4px 4px 10px rgba(0, 0, 0, 0.65),
              inset -3px -3px 8px rgba(255, 255, 255, 0.04);
}

.neu-btn-content {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 1;
}

.neu-btn-text {
  background: linear-gradient(90deg, #10b981 0%, #6ee7b7 50%, #10b981 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.neu-login-btn.neu-pill-btn:hover .neu-btn-text {
  animation: neuWaveShine 1.4s linear infinite;
}

@keyframes neuWaveShine {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.neu-btn-icon {
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.28s ease;
}

.neu-btn-success {
  position: absolute;
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
  color: #34d399;
}

.neu-login-btn.neu-pill-btn.is-clicked .neu-btn-default .neu-btn-icon {
  transform: translateX(48px);
  opacity: 0;
}

.neu-login-btn.neu-pill-btn.is-clicked .neu-btn-default {
  opacity: 0;
  transition: opacity 0.2s ease 0.12s;
}

.neu-login-btn.neu-pill-btn.is-clicked .neu-btn-success {
  opacity: 1;
  animation: neuBounceIn 0.48s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes neuBounceIn {
  0% { opacity: 0; transform: scale(0.6); }
  60% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

.neu-fab-flip {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #181c24;
  border: none;
  color: #10b981;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 6px 6px 14px rgba(0, 0, 0, 0.75),
              -4px -4px 10px rgba(255, 255, 255, 0.04),
              0 0 12px rgba(16, 185, 129, 0.18);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.neu-fab-flip:hover {
  background: #059669;
  color: #fff;
  transform: scale(1.08);
}

@media (max-width: 420px) {
  .neu-login-card {
    min-height: 430px;
  }
  .neu-login-face {
    padding: 24px 18px 34px;
  }
  .bg-circle1, .bg-circle2, .bg-circle3 {
    opacity: 0.65;
  }
}

/* =========================================================
   Bento-Grid Dashboard Polish & Smooth Animations
   ========================================================= */
@keyframes bentoFadeUp {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.top-nav {
  background: #181c24;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.main-layout .card,
.main-layout .panel,
.main-layout .metric-card,
.main-layout .chart-container,
.main-layout .confluence-card,
.main-layout .signal-card,
.main-layout .ai-card,
.main-layout section > div[class*="card"],
.right-col > div {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 8px 8px 18px rgba(0, 0, 0, 0.45),
              -4px -4px 12px rgba(255, 255, 255, 0.025);
  animation: bentoFadeUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tf-btn.active,
.tab-btn.active,
.nav-tab.active,
button[class*="active"] {
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.16);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.45);
}

.tf-btn,
.tab-btn,
.action-btn {
  border-radius: 9999px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

/* =========================================================
   Hollow Rounded Pill Y-Axis Price Badges (RES, SUP, LIVE)
   ========================================================= */
.chart-y-badge {
  position: absolute;
  right: 4px;
  transform: translateY(-50%);
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(24, 28, 36, 0.9);
  color: #F8FAFC;
  font-size: 11px;
  font-weight: 700;
  font-family: monospace;
  pointer-events: none;
  z-index: 20;
  white-space: nowrap;
  transition: top 0.12s ease-out;
}
.chart-y-badge.res { border: 1.5px solid #ef4444; }
.chart-y-badge.sup { border: 1.5px solid #10b981; }
.chart-y-badge.live { border: 1.5px solid #10b981; z-index: 30; }
.chart-y-badge.live.down { border-color: #ef4444; }

/* Fix Chrome autofill white background on dark Neumorphic inputs */
.neu-input-group input:-webkit-autofill,
.neu-input-group input:-webkit-autofill:hover,
.neu-input-group input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f8fafc !important;
  -webkit-box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.65),
                      inset -4px -4px 8px rgba(255, 255, 255, 0.04),
                      0 0 0px 1000px #181c24 inset !important;
  box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.65),
              inset -4px -4px 8px rgba(255, 255, 255, 0.04),
              0 0 0px 1000px #181c24 inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Prevent any card text from overflowing outside card bounds across all viewports */
.check-card,
.confluence-card,
.metric-card,
.signal-card,
.ai-card {
  overflow: hidden;
  min-width: 0;
}

.check-card *,
.confluence-card *,
.metric-card * {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: normal;
}
