.plan-summary .result-title {
  margin-bottom: 0.35rem;
}
/* RESET & BASE -------------------------------------------------------------- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: radial-gradient(140% 120% at 15% -20%, rgba(14, 165, 233, 0.12), transparent 55%),
    radial-gradient(120% 100% at 90% -10%, rgba(56, 189, 248, 0.1), transparent 65%),
    linear-gradient(180deg, #020617 0%, #0f172a 55%, #020617 100%);
  color: #e2e8f0;
  min-height: 100vh;
}

.action-center-page--react [data-legacy-action-center] {
  display: none;
}

body:not(.action-center-page--react) #action-center2-root {
  display: none;
}

/* SUBSCRIPTION & SETTINGS LAYOUT ------------------------------------------ */
.subscription-body {
  background: radial-gradient(140% 120% at 15% -20%, rgba(14, 165, 233, 0.15), transparent 55%),
    radial-gradient(120% 100% at 90% -10%, rgba(56, 189, 248, 0.12), transparent 65%),
    linear-gradient(180deg, #020617 0%, #0f172a 55%, #020617 100%);
  min-height: 100vh;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: #e2e8f0;
}

.report-center-body {
  background: radial-gradient(140% 120% at 15% -20%, rgba(14, 165, 233, 0.15), transparent 55%),
    radial-gradient(120% 100% at 90% -10%, rgba(56, 189, 248, 0.12), transparent 65%),
    linear-gradient(180deg, #020617 0%, #0f172a 55%, #020617 100%);
  min-height: 100vh;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: #e2e8f0;
}
/* CONTACT WIDGET --------------------------------------------------------- */
.contact-widget {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
}

.contact-fab {
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #4338ca);
  color: #ffffff;
  font-weight: 600;
  font-size: 1.6rem;
  padding: 1.7rem 2.8rem;
  box-shadow: 0 24px 52px rgba(79, 70, 229, 0.32);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  letter-spacing: 0.02em;
}
.contact-fab:hover,
.contact-fab:focus {
  transform: translateY(-2px);
  box-shadow: 0 30px 64px rgba(67, 56, 202, 0.38);
  outline: none;
}

.contact-fab:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.section-description {
  margin: 0;
  font-size: 0.98rem;
  color: rgba(30, 27, 75, 0.68);
  line-height: 1.6;
}

.user-info {
  display: grid;
  gap: 0.65rem;
  background: rgba(102, 126, 234, 0.08);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  color: #1f2937;
  border: 1px solid rgba(102, 126, 234, 0.22);
}

.status-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.98rem;
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
  background: rgba(148, 163, 184, 0.6);
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.18);
}

.status-indicator.status-active {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.verified {
  color: #4caf50;
}

.not-verified {
  color: #f44336;
}

.info-box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(237, 242, 255, 0.9));
  border-radius: 16px;
  padding: 1.5rem 1.7rem;
  border: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.08);
  color: #1f2937;
}

.info-box h4 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  color: #1e1b4b;
}

.info-box p {
  margin: 0.35rem 0;
  line-height: 1.55;
  color: rgba(30, 27, 75, 0.75);
}

.info-list {
  list-style: disc;
  margin: 0.2rem 0 0;
  padding-left: 1.2rem;
  color: rgba(30, 27, 75, 0.85);
  line-height: 1.55;
}

.subscription-status {
  display: grid;
  gap: 0.6rem;
  background: rgba(102, 126, 234, 0.12);
  border: 1px solid rgba(102, 126, 234, 0.28);
  border-radius: 14px;
  padding: 1.1rem 1.4rem 1.2rem;
  color: #1f2937;
}

.subscription-message {
  margin: 1.25rem auto 0;
  min-height: 1.2rem;
  font-size: 0.95rem;
  text-align: center;
  color: rgba(248, 250, 252, 0.85);
}

.plan-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.settings-page .plan-grid {
  width: 100%;
}

@media (min-width: 900px) {
  .settings-page .plan-grid {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
  }
}

.plan-grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(15, 23, 42, 0.65);
  border-radius: 14px;
  color: rgba(226, 232, 240, 0.72);
}

.plan-card {
  position: relative;
  background: linear-gradient(145deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.88));
  border-radius: 18px;
  padding: 2rem 1.75rem;
  border: 1px solid rgba(51, 65, 85, 0.65);
  box-shadow: 0 24px 48px rgba(2, 6, 23, 0.55);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: radial-gradient(110% 140% at 0% 0%, rgba(14, 165, 233, 0.2), transparent 55%),
    linear-gradient(135deg, rgba(148, 163, 184, 0.08), rgba(30, 41, 59, 0.35));
  pointer-events: none;
}

.plan-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 34px 56px rgba(15, 23, 42, 0.18);
}

.plan-card--current {
  border: 1px solid rgba(34, 197, 94, 0.65);
  box-shadow: 0 34px 60px rgba(34, 197, 94, 0.28);
}

.plan-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.plan-card__logo {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.35);
  overflow: hidden;
}

.plan-card__logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.plan-card__title {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.plan-card__name {
  font-size: 1.45rem;
  font-weight: 700;
  color: #f8fafc;
}

.plan-card__tagline {
  font-size: 0.98rem;
  color: rgba(148, 163, 184, 0.88);
  line-height: 1.45;
  max-width: 240px;
}

.plan-card__badge {
  margin-left: auto;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  color: #bae6fd;
  font-weight: 600;
}

.plan-card__price {
  font-size: 1.75rem;
  font-weight: 700;
  color: #f8fafc;
  z-index: 1;
}

.plan-card__price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(148, 163, 184, 0.8);
}

.plan-card__runs {
  font-size: 0.98rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.92);
  background: rgba(15, 23, 42, 0.7);
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  width: fit-content;
  z-index: 1;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.45);
}

.plan-card__description {
  font-size: 0.98rem;
  color: rgba(226, 232, 240, 0.85);
  line-height: 1.6;
  z-index: 1;
}

.plan-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 1;
}

.plan-card__features li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.93rem;
  color: rgba(226, 232, 240, 0.82);
  line-height: 1.45;
}

.plan-card__features li::before {
  content: '\\25CF';
  position: absolute;
  left: 0;
  color: rgba(56, 189, 248, 0.7);
  font-size: 0.55rem;
  top: 0.45rem;
}

.plan-card__note {
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.78);
  background: rgba(15, 23, 42, 0.7);
  padding: 0.5rem 0.75rem;
  border-radius: 9px;
  z-index: 1;
}

.plan-button {
  margin-top: auto;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.8rem 1.1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  z-index: 1;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: #f8fafc;
  box-shadow: 0 18px 32px rgba(30, 64, 175, 0.35);
}

.plan-button:hover:not([disabled]) {
  transform: translateY(-2px);
}

.plan-button[disabled] {
  background: rgba(15, 23, 42, 0.6);
  color: rgba(148, 163, 184, 0.6);
  cursor: not-allowed;
  box-shadow: none;
}

.plan-card--alpha {
  background: linear-gradient(150deg, rgba(6, 78, 59, 0.88), rgba(2, 6, 23, 0.95));
  border: 1px solid rgba(45, 212, 191, 0.42);
}

.plan-card--alpha .plan-card__badge {
  background: rgba(45, 212, 191, 0.2);
  color: #99f6e4;
}

.plan-card--alpha .plan-button {
  background: linear-gradient(135deg, #5eead4, #0d9488);
  color: #042f2e;
  box-shadow: 0 14px 26px rgba(13, 148, 136, 0.35);
}

.plan-card--sigma {
  background: linear-gradient(150deg, rgba(55, 48, 163, 0.9), rgba(2, 6, 23, 0.9));
  border: 1px solid rgba(129, 140, 248, 0.55);
}

.plan-card--sigma::before {
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.25), rgba(14, 116, 144, 0.2));
}

.plan-card--sigma .plan-card__badge {
  background: rgba(129, 140, 248, 0.24);
  color: #c7d2fe;
}

.plan-card--sigma .plan-card__features li::before {
  color: rgba(129, 140, 248, 0.85);
}

.plan-card--sigma .plan-button {
  background: linear-gradient(135deg, #a5b4fc, #6366f1);
  color: #0b1334;
  box-shadow: 0 18px 32px rgba(79, 70, 229, 0.4);
}

.plan-card--omega {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.95), rgba(3, 7, 18, 0.95));
  border: 1px solid rgba(250, 204, 21, 0.35);
  color: rgba(226, 232, 240, 0.92);
}

.plan-card--omega::before {
  background: linear-gradient(160deg, rgba(250, 204, 21, 0.18), rgba(56, 189, 248, 0.16));
}

.plan-card--omega .plan-card__badge {
  background: rgba(250, 204, 21, 0.2);
  color: #fef3c7;
}

.plan-card--omega .plan-card__features li::before {
  color: rgba(250, 204, 21, 0.75);
}

.plan-card--omega .plan-button {
  background: linear-gradient(135deg, #facc15, #ca8a04);
  color: #2f1700;
  box-shadow: 0 22px 38px rgba(161, 98, 7, 0.45);
}

/* CONTACT WIDGET --------------------------------------------------------- */
.contact-widget {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.contact-fab {
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.1rem;
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.32);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  letter-spacing: 0.02em;
}

.contact-fab:hover,
.contact-fab:focus {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(14, 165, 233, 0.38);
  outline: none;
}

.contact-fab:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.contact-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.contact-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.contact-modal__dialog {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.28);
  padding: 2rem 2.2rem;
  width: min(420px, calc(100% - 2.5rem));
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: contact-modal-in 0.24s ease;
}

.contact-modal__close {
  position: absolute;
  right: 18px;
  top: 16px;
  border: none;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  color: rgba(15, 23, 42, 0.55);
  cursor: pointer;
  padding: 0;
}

.contact-modal__title {
  margin: 0;
  font-size: 1.5rem;
  color: #1f2937;
}

.contact-modal__intro {
  margin: 0;
  font-size: 0.98rem;
  color: rgba(55, 65, 81, 0.82);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}


.contact-form__field label {
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(30, 27, 75, 0.9);
}

.contact-form__field input,
.contact-form__field textarea {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 1.1rem 1.3rem;
  font-size: 1.2rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.94);
  color: #1f2937;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.85);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.25);
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}


.contact-form__status {
  font-size: 1.1rem;
  color: rgba(55, 65, 81, 0.82);
  min-height: 1.65rem;
}

.contact-form__status--error {
  color: #dc2626;
}

.contact-form__status--success {
  color: #16a34a;
}

.contact-form__status--info {
  color: #2563eb;
}


.contact-form__submit {
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #10b981, #047857);
  color: #ffffff;
  font-weight: 600;
  font-size: 1.2rem;
  padding: 1.1rem 2.6rem;
  cursor: pointer;
  box-shadow: 0 24px 48px rgba(5, 150, 105, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.contact-form__submit:hover:not([disabled]) {
  transform: translateY(-1px);
  box-shadow: 0 30px 58px rgba(4, 120, 87, 0.34);
}

.contact-form__submit:disabled {
  cursor: not-allowed;
  filter: grayscale(0.2);
  box-shadow: none;
}

body.contact-modal--open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .contact-widget {
    right: 18px;
    bottom: 18px;
  }

  .contact-fab {
    font-size: 0.85rem;
    padding: 0.65rem 1.0rem;
  }

  .contact-modal__dialog {
    width: calc(100% - 1.5rem);
    padding: 1.6rem 1.5rem 1.8rem;
    border-radius: 16px;
  }
}

@keyframes contact-modal-in {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.plan-card--omega .plan-card__badge {
  background: rgba(148, 163, 184, 0.35);
  color: rgba(226, 232, 240, 0.95);
}

.plan-card--omega .plan-card__price span {
  color: rgba(226, 232, 240, 0.8);
}

.plan-card--omega .plan-card__tagline,
.plan-card--omega .plan-card__description,
.plan-card--omega .plan-card__features li,
.plan-card--omega .plan-card__note {
  color: rgba(226, 232, 240, 0.82);
}

.plan-card--omega .plan-card__features li::before {
  color: rgba(148, 163, 184, 0.85);
}

.plan-card--omega .plan-button {
  background: linear-gradient(135deg, #38bdf8, #0f172a);
  color: #f8fafc;
  box-shadow: 0 22px 38px rgba(51, 65, 85, 0.4);
}

.plan-card--current .plan-card__badge {
  background: rgba(34, 197, 94, 0.25);
  color: #166534;
}

.plan-card--current .plan-button[disabled] {
  background: rgba(34, 197, 94, 0.15);
  color: #166534;
}

.section--spotlight {
  animation: spotlight 1.8s ease;
}

@keyframes spotlight {
  0% {
    box-shadow: 0 0 0 rgba(102, 126, 234, 0);
  }
  40% {
    box-shadow: 0 0 0 18px rgba(102, 126, 234, 0.18);
  }
  100% {
    box-shadow: 0 0 0 rgba(102, 126, 234, 0);
  }
}

.subscription-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
  color: #e2e8f0;
}

.subscription-hero {
  text-align: center;
  margin-bottom: 2.75rem;
}

.subscription-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 1rem;
}

.subscription-hero p {
  font-size: 1.05rem;
  color: rgba(148, 163, 184, 0.9);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .subscription-page {
    padding: 2rem 1rem 3rem;
  }

  .settings-panel {
    padding: 1.8rem;
  }
}

/* HEADER & LOGO ------------------------------------------------------------- */
.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 16px rgba(102, 126, 234, 0.08);
  z-index: 10;
  position: sticky;
  top: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

/* SIGN-IN LAYOUT ------------------------------------------------------------ */
.signin-wrapper {
  width: min(960px, 100%);
  display: flex;
  flex-direction: column;
  gap: 2.7rem;
  align-items: center;
}

.signin-helper {
  margin-top: 1.35rem;
  color: #4a4f72;
  font-size: 0.95rem;
}

.signin-video {
  width: min(960px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.signin-video-frame {
  width: min(840px, 100%);
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(33, 64, 150, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: #000;
}

.signin-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.signin-video-caption {
  color: #f5f6ff;
  font-size: 0.95rem;
  max-width: 720px;
}

.marketing-section {
  width: min(960px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  text-align: center;
}

.marketing-section h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.2rem);
  color: #f8faff;
  margin: 0;
}

.marketing-intro {
  color: #e3e7ff;
  line-height: 1.7;
  font-size: 1rem;
  max-width: 640px;
  margin: 0;
}

.marketing-grid {
  width: 100%;
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
}

.marketing-card {
  border-radius: 20px;
  padding: 2rem 1.5rem 1.6rem 1.5rem;
  box-shadow: 0 24px 46px rgba(37, 52, 111, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  min-height: 220px;
  min-width: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.marketing-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: #ffffff;
  box-shadow: 0 18px 28px rgba(102, 126, 234, 0.26);
}

.marketing-icon span {
  display: inline-block;
}

.marketing-card h3 {
  font-size: 1.08rem;
  color: #ffffff;
  margin: 0;
}

.marketing-card p {
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.55;
  font-size: 0.95rem;
  margin: 0;
}

.icon-insights {
  background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
}

.icon-ai {
  background: linear-gradient(135deg, #8f67ff 0%, #4b5dff 100%);
}

.icon-strategy {
  background: linear-gradient(135deg, #ff9a5a 0%, #ff6a88 100%);
}

.icon-security {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.icon-decisions {
  background: linear-gradient(135deg, #fddb92 0%, #d1fdff 100%);
  color: #233348;
}

.card-insights {
  background: linear-gradient(135deg, #2f80ed 0%, #56ccf2 100%);
}

.card-ai {
  background: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%);
}

.card-strategy {
  background: linear-gradient(135deg, #ff6a00 0%, #ee0979 100%);
}

.card-security {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.card-decisions {
  background: linear-gradient(135deg, #ff5858 0%, #f09819 100%);
}

.marketing-footnote {
  font-size: 0.82rem;
  color: #ced5ff;
  line-height: 1.6;
  margin: 0;
  max-width: 640px;
}

.logo img {
  display: block;
  height: 56px;
  width: 56px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.logo span {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: #fff;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  padding: 6px 18px;
  border-radius: 8px;
  transition: background 0.22s;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a:focus {
  background: rgba(255, 255, 255, 0.18);
}

/* MAIN LAYOUT --------------------------------------------------------------- */
.container {
  width: min(1200px, 100%);
  margin: 2.4rem auto;
  padding: 0 1.3rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  align-items: start;
  justify-items: stretch;
}

@media (min-width: 900px) {
  .container {
    grid-template-columns: 360px minmax(0, 1fr);
  }

  .results-panel {
    grid-column: 1 / -1;
  }
}

/* PANEL STYLES -------------------------------------------------------------- */
.trading-panel, .results-panel {
  background: #fff;
  border-radius: 12px;
  padding: 1.8rem 1.3rem 1.3rem 1.3rem;
  box-shadow: 0 4px 24px rgba(33, 150, 243, 0.08), 0 0.5px 3px #e0f7fa;
  margin-bottom: 2rem;
}
.panel-title {
  font-size: 1.24rem;
  font-weight: bold;
  margin-bottom: 1.1rem;
  color: #68439e;
}

/* FORM STYLES --------------------------------------------------------------- */
.input-group,
.checkbox-group {
  margin-bottom: 1.45rem;
}
.input-group label,
.checkbox-group label {
  font-weight: 500;
  margin-bottom: 0.45rem;
  color: #555;
  display: block;
}
.input-group input[type="text"],
.input-group input[type="email"],
.input-group input[type="password"],
.input-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #eee;
  border-radius: 6px;
  font-size: 1rem;
  background: #f7faff;
  transition: border 0.23s;
}
.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: #667eea;
  background: #fffffc;
}

.market-select {
  appearance: none;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
  cursor: pointer;
}

.symbol-input-wrapper {
  position: relative;
}

.symbol-suggestions {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  box-shadow: 0 24px 46px rgba(79, 70, 229, 0.18);
  max-height: 280px;
  overflow-y: auto;
  padding: 0.65rem 0.55rem;
  z-index: 40;
  backdrop-filter: blur(6px);
}

.symbol-suggestions.hidden {
  display: none;
}

.symbol-suggestion {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.15rem 1.3rem 1.1rem 1.45rem;
  margin: 0.34rem 0;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.52;
  border-radius: 16px;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.symbol-suggestion:hover,
.symbol-suggestion.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(59, 130, 246, 0.12));
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.22);
  transform: translateX(4px) scale(1.01);
}


.symbol-suggestion::after {
  content: '➜';
  font-size: 1.16rem;
  color: #1e1b4b;
  position: absolute;
  right: 1.05rem;
  top: 50%;
  opacity: 0;
  transform: translateY(-50%) translateX(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.symbol-suggestion:hover::after,
.symbol-suggestion.active::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.symbol-suggestion:first-child {
  margin-top: 0;
}

.symbol-suggestion:last-child {
  margin-bottom: 0;
}

.symbol-suggestion::before {
  content: '';
  position: absolute;
  left: 0.55rem;
  top: 50%;
  width: 4px;
  height: 58%;
  border-radius: 999px;
  background: linear-gradient(180deg, #6366f1, #38bdf8);
  opacity: 0;
  transform: translateY(-50%) scaleY(0.3);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.symbol-suggestion:hover::before,
.symbol-suggestion.active::before {
  opacity: 1;
  transform: translateY(-50%) scaleY(1);
}

.symbol-suggestion__ticker {
  font-weight: 600;
  color: #1e1b4b;
  min-width: 3.75rem;
  transition: color 0.18s ease;
}

.symbol-suggestion__separator {
  color: #64748b;
  font-weight: 500;
  margin: 0 0.25rem;
  transition: color 0.18s ease;
}

.symbol-suggestion__company {
  flex: 1;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.18s ease;
}

.symbol-suggestion:hover .symbol-suggestion__ticker,
.symbol-suggestion.active .symbol-suggestion__ticker,
.symbol-suggestion:hover .symbol-suggestion__company,
.symbol-suggestion.active .symbol-suggestion__company,
.symbol-suggestion:hover .symbol-suggestion__separator,
.symbol-suggestion.active .symbol-suggestion__separator {
  color: #0f172a;
}

@media (max-width: 600px) {
  .symbol-suggestions {
    max-height: 200px;
  }

  .symbol-suggestion {
    padding: 1rem 1.05rem 0.95rem 1.25rem;
    margin: 0.3rem 0;
  }
}

/* Checkbox (align row) */
.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  display: flex;
}
.checkbox-group input[type="checkbox"] {
  accent-color: #764ba2;
  width: 19px;
  height: 19px;
}
.checkbox-group.sub-option {
  margin-left: 1.8rem;
  opacity: 0.85;
  font-size: 0.95rem;
}
.checkbox-group.sub-option input[type="checkbox"] {
  width: 17px;
  height: 17px;
}
/* Sign in page style */
.signin-body * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.signin-body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.signin-container {
  background: linear-gradient(180deg, #ffffff 0%, #f5f6ff 100%);
  padding: clamp(2.6rem, 5vw, 3.4rem) clamp(2rem, 5vw, 3rem);
  border-radius: 20px;
  box-shadow: 0 28px 60px rgba(58, 70, 153, 0.22);
  text-align: center;
  max-width: 540px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  position: relative;
}

.signin-container::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

.signin-container .logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 3rem;
  font-weight: 700;
  color: #2f5dd7;
}

.signin-container .logo img {
  width: 100px;
  height: 100px;
  margin-bottom: 4px;
  border-radius: 22px;
  box-shadow: 0 16px 24px rgba(46, 110, 214, 0.18);
}

.signin-container .logo span {
  font-size: 2.35rem;
  letter-spacing: 0.05em;
  color: #2d4fd0;
}

.signin-container .subtitle {
  color: #4a4f72;
  font-size: 1.25rem;
  font-weight: 500;
}

.google-signin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #4a8bf5 0%, #3678f0 100%);
  color: #fff;
  padding: 0.95rem 0;
  border: 1px solid rgba(66, 133, 244, 0.25);
  border-radius: 14px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  box-shadow: 0 20px 32px rgba(66, 133, 244, 0.28);
}

.google-signin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 40px rgba(66, 133, 244, 0.35);
}

.google-signin-btn:focus-visible {
  outline: 3px solid rgba(66, 133, 244, 0.35);
  outline-offset: 3px;
}

.google-icon {
  width: 26px;
  height: 26px;
}
/* AI notice box */
.ai-info {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  padding: 1rem;
  margin-top: 0.65rem;
  border-radius: 0 7px 7px 0;
  font-size: 0.97em;
}
/* BUTTONS ------------------------------------------------------------------- */
.analyze-btn, button[type="submit"], .big-green-btn {
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.1em;
  box-shadow: 0 1px 8px rgba(102, 126, 234, 0.07);
  transition: background 0.18s, box-shadow 0.18s;
  margin-top: 0.45rem;
}
.analyze-btn:hover, button[type="submit"]:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  box-shadow: 0 2px 16px rgba(102,126,234,0.16);
}
.analyze-btn:disabled {
  background: #ccc!important;
  color: #afacac!important;
  cursor: not-allowed;
  box-shadow: none;
  font-weight: normal;
}

/* LOADING & FEEDBACK -------------------------------------------------------- */
.loading, .error, .success {
  text-align: center;
  padding: 1rem 0;
  font-size: 1.05em;
}
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  animation: spin 1s linear infinite;
  margin: 1.4rem auto;
}

@keyframes spin {
  0% {transform: rotate(0);}
  100% {transform: rotate(360deg);}
}

/* RESULT CARD & TABLES ------------------------------------------------------ */
.result-item {
  padding: 1.1em 1em;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 1px 5px rgba(33,150,243,0.06);
}
.result-item.success { border-left: 4px solid #27ae60; }
.result-item.error { border-left: 4px solid #e74c3c; background: #fee; }
.result-title {
  font-weight: 600;
  font-size: 1.04em;
  color: #4b427a;
  margin-bottom: 6px;
}
.result-content {
  color: #555;
  font-size: 1em;
  line-height: 1.6;
  white-space: pre-wrap;
}

.result-meta {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: #6c6c84;
}

.result-meta span[aria-hidden="true"] {
  color: #b0b0bd;
}

.result-cta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.result-cta .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6b6b 0%, #f06595 100%);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(240, 101, 149, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.result-cta .cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(240, 101, 149, 0.36);
}

.legal-note {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: #6a6a6a;
  font-style: italic;
  text-align: center;
}
ul {
  margin: 0.5em 0 0.5em 1.3em;
}
.ai-section { background: #fafafa; border-radius: 7px; padding: 1em; margin: 1em 0; }
.ai-section-title {
  font-weight: bold;
  color: #68439e;
  text-transform: uppercase;
  font-size: 0.97rem;
  margin-bottom: 0.3em;
}

.ai-section.plan-section {
  margin: 0.85em 0;
}

.plan-summary__grid {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  background: #f2f4fb;
  border-radius: 10px;
  padding: 0.8rem;
}

.plan-summary__cell {
  background: #fff;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: inset 0 0 0 1px rgba(104, 67, 158, 0.08);
}

.plan-summary__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6f6a91;
}

.plan-summary__value {
  font-weight: 600;
  color: #2c2646;
  font-size: 0.97rem;
  word-break: break-word;
}

.plan-section__content {
  display: grid;
  gap: 0.55rem;
  color: #4a4d63;
}

.plan-field {
  background: #fff;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  box-shadow: inset 0 0 0 1px rgba(104, 67, 158, 0.08);
  white-space: normal;
  line-height: 1.5;
}

.plan-subsection {
  background: #f7f5ff;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  box-shadow: inset 0 0 0 1px rgba(104, 67, 158, 0.12);
  display: grid;
  gap: 0.5rem;
}

.plan-subsection--buy {
  background: #ecfdf5;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.18);
}

.plan-subsection--sell {
  background: #fef2f2;
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.2);
}

.plan-subsection--neutral {
  background: #eef2ff;
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.18);
}

.plan-subsection--meta {
  background: #fdf6ee;
  box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.18);
}

.plan-subsection[data-has-setup="false"] {
  opacity: 0.65;
}

.plan-subsection__title {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4a2f80;
}

.plan-subsection__content {
  display: grid;
  gap: 0.45rem;
}

.plan-field strong {
  display: block;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #68439e;
  margin-bottom: 0.32rem;
}

.plan-field span {
  display: block;
  white-space: normal;
}

.plan-field .plan-list {
  margin: 0.35rem 0 0.3rem 1.1rem;
  padding: 0;
}

.plan-field .plan-list li {
  margin-bottom: 0.3rem;
}

.plan-field .plan-list li:last-child {
  margin-bottom: 0;
}

.expert-report {
  display: grid;
  gap: 0.75rem;
}

.expert-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(104, 67, 158, 0.12);
  box-shadow: 0 16px 32px rgba(31, 26, 56, 0.08);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.expert-card:not([open]):hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(31, 26, 56, 0.12);
}

.expert-card__summary {
  margin: 0;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: #2c2646;
  background: linear-gradient(135deg, rgba(104, 67, 158, 0.08), rgba(104, 67, 158, 0.02));
}

.expert-card__summary::-webkit-details-marker {
  display: none;
}

.expert-card__summary::after {
  content: '\25BE';
  font-size: 0.85rem;
  color: #6f6a91;
  transition: transform 0.2s ease;
}

.expert-card[open] .expert-card__summary::after {
  transform: rotate(-180deg);
}

.expert-card__title {
  flex: 1;
}

.expert-card__status {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(104, 67, 158, 0.15);
}

.expert-card__status--success {
  background: rgba(34, 197, 94, 0.18);
  color: #15803d;
}

.expert-card__status--error {
  background: rgba(239, 68, 68, 0.18);
  color: #b91c1c;
}

.expert-card__content {
  padding: 0.85rem 1rem 1rem;
  display: grid;
  gap: 0.8rem;
  background: #fbfbff;
  border-top: 1px solid rgba(104, 67, 158, 0.08);
}

.expert-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.expert-card__meta-item {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(104, 67, 158, 0.12);
  color: #4a4d63;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.expert-field {
  background: #fff;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  box-shadow: inset 0 0 0 1px rgba(104, 67, 158, 0.08);
  line-height: 1.55;
}

.expert-field__label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #68439e;
  margin-bottom: 0.35rem;
}

.expert-field__value {
  color: #3a3d54;
}

.expert-field__value .plan-list {
  margin: 0.3rem 0 0.3rem 1.1rem;
  padding: 0;
}

.expert-card__note {
  margin: 0;
  padding: 0.65rem 0.75rem;
  background: #f5f6ff;
  border-radius: 8px;
  border: 1px solid rgba(104, 67, 158, 0.08);
  font-size: 0.85rem;
  line-height: 1.45;
  white-space: pre-wrap;
  color: #3a3d54;
}

.expert-card__message {
  font-size: 0.9rem;
  line-height: 1.45;
  color: #4b4d63;
}

.expert-card__message--error {
  background: rgba(239, 68, 68, 0.12);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* PRICE ACTION ------------------------------------------------------------- */
.price-action-summary {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  font-size: 0.95rem;
}
.price-action-summary div {
  background: #f4f6fb;
  padding: 0.65rem;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(102, 126, 234, 0.12);
}
.price-action-overview {
  display: grid;
  gap: 0.6rem;
  font-size: 0.95rem;
}
.price-action-overview strong {
  color: #4b427a;
}
.price-action-overview__levels ul,
.price-action-overview__patterns ul {
  margin: 0.4rem 0 0.4rem 1.1rem;
}
.price-action-card {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.price-action-section {
  background: #fdfdfd;
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  box-shadow: inset 0 0 0 1px rgba(104, 67, 158, 0.08);
}
.price-action-section strong {
  display: block;
  margin-bottom: 0.55rem;
  color: #68439e;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}
.price-action-section ul {
  margin: 0.2rem 0 0.2rem 1.05rem;
  font-size: 0.93rem;
}
.price-action-section li {
  margin-bottom: 0.15rem;
}
.price-action-note {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #666;
}

/* Table styles */
table {
  border: 3px solid #667eea;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
  margin-bottom: 1.7rem;
  font-size: 0.95rem;
}
th {
  padding: 11px 6px;
  font-size: 1rem;
  background: #667eea;
  color: white;
  font-weight: bold;
}
td {
  border-bottom: 1px solid #eee;
  padding: 8px 7px;
}
tbody tr:last-child td {border-bottom:none;}
tbody tr:nth-child(even) { background: #f8f8fc;}
/* Responsive stack tables for mobile */
@media (max-width:650px) {
  table, thead, tbody, th, td, tr {display:block;}
  tr {
    margin-bottom: 12px;
    border-radius: 8px;
    box-shadow: 0 1px 6px #e0e7ff;
    background: #f9fcff;
    overflow: hidden;
  }
  th {display:none;}
  td {
    border:none!important;
    position: relative;
    padding-left: 52%;
    min-height: 35px;
    text-align: left;
    background: none!important;
  }
  td:before {
    position: absolute;
    left: 11px;
    top: 10px;
    width: 45%;
    color: #764ba2;
    font-weight: bold;
    white-space: nowrap;
    content: attr(data-label);
    font-size: 13px;
    text-align: left;
  }
}

/* TABS ---------------------------------------------------------------------- */
.tabs {
  display: flex;
  border-bottom: 2px solid #eee;
  margin-bottom: 1rem;
  gap: 14px;
}
.tabs.hidden {
  display: none !important;
}
.tab {
  padding: 0.8rem 1.1rem;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  font-size: 1.06em;
  transition: all 0.25s;
  color: #68439e;
  background: none;
}
.tab.active {
  border-bottom-color: #667eea;
  color: #667eea;
  font-weight: bold;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

.plan-meta {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #555;
}

.plan-raw {
  margin-top: 1.4rem;
  background: #f4f6fb;
  border: 1px solid #e0e7ff;
  border-radius: 8px;
  padding: 0.9rem;
}
.plan-raw summary {
  cursor: pointer;
  font-weight: 600;
  color: #68439e;
}
.plan-raw pre {
  margin-top: 0.8rem;
  max-height: 240px;
  overflow: auto;
  background: #fff;
  padding: 0.9rem;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.4;
  border: 1px solid #dfe6ff;
}

/* REPORT CENTER ----------------------------------------------------------- */
.dashboard-container {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  width: min(1180px, 100%);
  margin: 2.5rem auto 4rem;
}

.dashboard-meta h1 {
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  color: #1e1b4b;
}

.dashboard-meta p {
  margin: 0.45rem 0 0;
  color: rgba(30, 27, 75, 0.7);
  line-height: 1.6;
}

.dashboard-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid rgba(102, 126, 234, 0.22);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 160px;
}

.filter-group label {
  font-weight: 600;
  font-size: 0.92rem;
  color: #4338ca;
}

.filter-group input {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.55);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-group input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
  outline: none;
}

.filter-submit {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.filter-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(118, 75, 162, 0.25);
}

.filter-reset {
  font-size: 0.92rem;
  color: #4f46e5;
  text-decoration: none;
  font-weight: 600;
}

.filter-reset:hover {
  text-decoration: underline;
}

.dashboard-available {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(30, 27, 75, 0.6);
}

.symbol-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(102, 126, 234, 0.12);
  color: #4338ca;
  text-decoration: none;
  font-weight: 600;
}

.symbol-chip:hover {
  background: rgba(102, 126, 234, 0.22);
}

.dashboard-alert {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 500;
}

.dashboard-alert.warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.4rem;
}

.dashboard-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 1.4rem;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

.dashboard-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.dashboard-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.favorite-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: none;
  background: rgba(148, 163, 184, 0.18);
  color: #1f2937;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.favorite-toggle:hover {
  background: rgba(99, 102, 241, 0.18);
  color: #312e81;
}

.favorite-toggle--active {
  background: rgba(250, 204, 21, 0.32);
  color: #92400e;
}

.favorite-toggle--active .favorite-toggle__icon {
  color: #b45309;
}

.favorite-toggle[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.favorite-toggle__icon {
  font-size: 0.95rem;
  line-height: 1;
}

.favorite-toggle__label {
  line-height: 1;
}

.dashboard-card-header h2 {
  margin: 0;
  font-size: 1.45rem;
  color: #1f2937;
}

.dashboard-card-header .timestamp {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: rgba(55, 65, 81, 0.7);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(102, 126, 234, 0.18);
  color: #4338ca;
}

.badge.consensus-strong-buy,
.badge.consensus-buy {
  background: rgba(22, 101, 52, 0.14);
  color: #166534;
}

.badge.consensus-strong-sell,
.badge.consensus-sell {
  background: rgba(190, 18, 60, 0.16);
  color: #be123c;
}

.badge.consensus-hold {
  background: rgba(79, 70, 229, 0.16);
  color: #4f46e5;
}

.dashboard-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dashboard-section h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #312e81;
}

.price-grid,
.consensus-grid,
.levels-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.price-grid div,
.consensus-grid div,
.levels-grid div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: rgba(102, 126, 234, 0.08);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}

.dashboard-section .label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(55, 65, 81, 0.66);
}

.focus-card {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  background: rgba(236, 233, 252, 0.6);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
}

.reasoning-list,
.pattern-list,
.strategy-card ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
  color: rgba(17, 24, 39, 0.86);
}

.strategy-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.strategy-card {
  background: rgba(248, 250, 255, 0.92);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.strategy-card h4 {
  margin: 0;
  font-size: 1rem;
  color: #4338ca;
}

.muted {
  color: rgba(55, 65, 81, 0.6);
  font-size: 0.85rem;
}

.dashboard-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}

.dashboard-empty {
  background: #ffffff;
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.55);
  padding: 2.2rem;
  text-align: center;
  color: rgba(30, 27, 75, 0.6);
  font-size: 1.05rem;
}

.price-action-overview p {
  margin: 0;
}

.price-action-overview strong {
  color: #1e1b4b;
}

.dashboard-card-header .badge {
  white-space: nowrap;
}

.dashboard-card-footer span {
  white-space: nowrap;
}

.dashboard-card-footer span:last-child {
  margin-left: auto;
}

/* ACTION CENTER ------------------------------------------------------------ */
.action-center-page {
  background: radial-gradient(140% 120% at 15% -20%, rgba(14, 165, 233, 0.15), transparent 55%),
    radial-gradient(120% 100% at 90% -10%, rgba(56, 189, 248, 0.12), transparent 65%),
    linear-gradient(180deg, #020617 0%, #0f172a 55%, #020617 100%);
  color: #e2e8f0;
  min-height: 100vh;
}

.action-center {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.2rem 1.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.action-center__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.6rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 26px 46px rgba(79, 70, 229, 0.08);
}

.action-center__header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  color: #1f2350;
}

.action-center__header p {
  margin: 0.35rem 0 0;
  color: rgba(31, 41, 55, 0.7);
  line-height: 1.5;
}

.action-center__meta {
  font-size: 0.92rem;
  color: rgba(17, 24, 39, 0.62);
}

.action-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(231, 233, 255, 0.92));
  border-radius: 14px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(79, 70, 229, 0.7);
}

.control-group select {
  appearance: none;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.36);
  padding: 0.55rem 1.85rem 0.55rem 0.9rem;
  background: url('data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6" fill="none"%3E%3Cpath d="M1 1l4 4 4-4" stroke="%235768a5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E') no-repeat right 0.6rem center / 10px 6px,
    #ffffff;
  font-size: 0.95rem;
  color: #1f2937;
  min-width: 120px;
}

.pill-button {
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.3rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 14px 28px rgba(99, 102, 241, 0.26);
}

.pill-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(79, 70, 229, 0.32);
}

.pill-button--ghost {
  background: rgba(79, 70, 229, 0.12);
  color: #4338ca;
  box-shadow: none;
  border: 1px solid rgba(79, 70, 229, 0.18);
}

.pill-button--active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.28);
}

.pill-button[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-size: 0.92rem;
  color: #4338ca;
  font-weight: 600;
}

.toggle input {
  appearance: none;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(79, 70, 229, 0.2);
  position: relative;
  background: rgba(79, 70, 229, 0.16);
  transition: background 0.2s ease;
}

.toggle input::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
  transition: transform 0.2s ease;
}

.toggle input:checked {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
}

.toggle input:checked::after {
  transform: translateX(20px);
}

.action-center__empty {
  background: #ffffff;
  border: 1px dashed rgba(99, 102, 241, 0.35);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  color: rgba(55, 65, 81, 0.72);
}

.action-dashboards {
  display: grid;
  gap: 1.8rem;
}

.action-dashboard {
  display: grid;
  gap: 1.1rem;
}

.action-dashboard__summary {
  position: relative;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 20px;
  padding: 1.4rem 4.4rem 1.6rem 1.6rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(231, 233, 255, 0.94));
  box-shadow: 0 22px 38px rgba(79, 70, 229, 0.12);
  color: inherit;
  text-align: left;
  cursor: default;
  display: grid;
  gap: 1.2rem;
  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.action-dashboard__summary:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 54px rgba(79, 70, 229, 0.16);
}


.action-dashboard__summary-toggle {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.24);
  display: grid;
  place-items: center;
  padding: 0;
  margin: 0;
  color: inherit;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.24s ease;
}

.action-dashboard__summary-toggle:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
}

.action-dashboard__summary-toggle:focus-visible {
  outline: 3px solid rgba(99, 102, 241, 0.38);
  outline-offset: 3px;
}

.action-dashboard[data-expanded="true"] .action-dashboard__summary {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 34px 64px rgba(79, 70, 229, 0.18);
}

.action-dashboard[data-expanded="true"] .action-dashboard__summary-toggle {
  background: rgba(99, 102, 241, 0.24);
  border-color: rgba(99, 102, 241, 0.55);
}

.action-dashboard__summary-shell {
  display: grid;
  gap: 0.85rem;
}

.action-dashboard__summary-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 1.8rem;
}

.action-dashboard__summary-head-col {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.action-dashboard__summary-head-col--identity {
  display: grid;
  gap: 0.65rem;
  align-content: stretch;
  justify-items: start;
}

.action-dashboard__summary-head-col--gauge {
  justify-self: end;
}

.action-dashboard__summary-head-col--gauge .level-gauge {
  width: clamp(320px, 36vw, 360px);
  margin-left: auto;
}

.action-dashboard__summary-head-col--gauge .level-gauge__body {
  width: 100%;
}

.action-dashboard__summary-head-col--gauge .level-gauge__range {
  justify-self: end;
}

.action-dashboard__summary-symbol-row {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.action-dashboard__summary-traffic {
  flex-shrink: 0;
}

.action-dashboard__summary-symbol {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1f2350;
}

.action-dashboard__summary-strategy {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(55, 65, 81, 0.7);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.action-dashboard__summary-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: auto;
}

.summary-control {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.7rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(255, 255, 255, 0.72);
  min-width: 150px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.summary-control span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(79, 70, 229, 0.78);
}

.summary-control select {
  appearance: none;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.5rem 2.2rem 0.5rem 0.85rem;
  background: url('data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6" fill="none"%3E%3Cpath d="M1 1l4 4 4-4" stroke="%235768a5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E') no-repeat right 0.6rem center / 10px 6px,
    #ffffff;
  font-size: 0.95rem;
  color: #1f2937;
  font-weight: 600;
}

.summary-control select:focus {
  outline: none;
  border-color: rgba(79, 70, 229, 0.6);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.action-dashboard__callout {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.action-dashboard__callout-label {
  font-size: 0.75rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(79, 70, 229, 0.75);
  font-weight: 700;
}

.action-dashboard__callout-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: 0.02em;
}

.action-dashboard__callout-subtitle {
  color: rgba(55, 65, 81, 0.72);
  font-size: 0.98rem;
}

.action-dashboard__summary-right {
  display: grid;
  gap: 1rem;
  align-content: space-between;
  justify-items: end;
  flex: 0 0 210px;
}

.action-dashboard__summary-right .traffic-light {
  width: 58px;
  height: 58px;
  font-size: 0.78rem;
}

.action-dashboard__toggle-indicator {
  width: 12px;
  height: 12px;
  border-right: 2px solid #4c51bf;
  border-bottom: 2px solid #4c51bf;
  transform: rotate(45deg);
  transition: transform 0.24s ease;
  pointer-events: none;
}

.action-dashboard[data-expanded="true"] .action-dashboard__toggle-indicator {
  transform: rotate(-135deg);
}

.action-dashboard__body {
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 32px 60px rgba(31, 41, 55, 0.12);
  padding: 1.8rem;
}

.action-dashboard__body[hidden] {
  display: none;
}

.action-dashboard__content {
  display: grid;
  gap: 1.4rem;
}

.action-dashboard__empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  gap: 0.6rem;
  text-align: center;
  color: rgba(55, 65, 81, 0.68);
}

.action-dashboard__empty p {
  margin: 0;
}

.action-dashboard__content[hidden],
.action-dashboard__empty[hidden] {
  display: none;
}

.action-dashboard[data-expanded="true"] .action-dashboard__body {
  animation: dashboard-expand 0.28s ease;
}

@keyframes dashboard-expand {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.action-card {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.12), rgba(79, 70, 229, 0.05));
  border-radius: 20px;
  padding: 1.9rem 2.2rem;
  border: 1px solid rgba(79, 70, 229, 0.25);
  box-shadow: 0 28px 48px rgba(79, 70, 229, 0.15);
  display: grid;
  gap: 1.1rem;
}

.action-card__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(39, 45, 74, 0.7);
}

.action-card__body {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: flex-start;
}

.action-card__status {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.action-card__status-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #1f2350;
}

.action-card__status--buy .action-card__status-title {
  color: #15803d;
}

.action-card__status--sell .action-card__status-title {
  color: #b91c1c;
}

.action-card__status--wait .action-card__status-title {
  color: #d97706;
}

.action-card__status-subtitle {
  font-size: 0.95rem;
  color: rgba(30, 27, 75, 0.72);
}

.action-card__details {
  display: grid;
  gap: 0.6rem;
  font-size: 0.98rem;
  color: rgba(17, 24, 39, 0.76);
  line-height: 1.55;
}

.confidence-meter {
  display: grid;
  gap: 0.45rem;
  align-self: stretch;
}

.confidence-meter__label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(30, 27, 75, 0.6);
}

.confidence-meter__bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.12);
  overflow: hidden;
}

.confidence-meter__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(135deg, #34d399, #10b981);
  border-radius: inherit;
  transition: width 0.4s ease;
}

.gauge-cluster {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gauge {
  --gauge-value: 50;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  box-shadow: 0 18px 36px rgba(30, 64, 175, 0.08);
}

.gauge__dial {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: conic-gradient(#4338ca 0deg, #4338ca calc(var(--gauge-value, 0) * 3.6deg), rgba(79, 70, 229, 0.12) calc(var(--gauge-value, 0) * 3.6deg));
  position: relative;
  flex-shrink: 0;
}

.gauge__dial::after {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.3);
}

.gauge__content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gauge__label {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(17, 24, 39, 0.52);
}

.level-radar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.4rem;
  align-items: center;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  padding: 1.6rem 1.8rem;
  box-shadow: 0 24px 40px rgba(30, 64, 175, 0.1);
}

.level-radar__track {
  --price-position: 0.5;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(70px, 1fr));
  gap: 0.8rem;
}

.level-radar__track::after {
  content: '';
  position: absolute;
  top: -16px;
  bottom: -28px;
  left: calc(var(--price-position) * 100%);
  width: 2px;
  background: linear-gradient(180deg, rgba(79, 70, 229, 0), rgba(79, 70, 229, 0.2), rgba(79, 70, 229, 0));
  transform: translateX(-1px);
}

.level-marker {
  display: grid;
  gap: 0.25rem;
  background: rgba(236, 233, 255, 0.6);
  border-radius: 12px;
  padding: 0.75rem 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.26);
}

.level-marker__title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(55, 65, 81, 0.7);
}

.level-marker__value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2350;
}

.level-marker__delta {
  font-size: 0.8rem;
  color: rgba(79, 70, 229, 0.7);
}

.traffic-light {
  width: 68px;
  height: 68px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 20px 36px rgba(30, 64, 175, 0.14);
}

.traffic-light--mini {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 12px 22px rgba(30, 64, 175, 0.18);
  font-size: 0;
  letter-spacing: 0;
}

.traffic-light--buy {
  background: linear-gradient(135deg, #16a34a, #15803d);
}

.traffic-light--sell {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.traffic-light--wait {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.scenario-cards {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.scenario-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1.2rem 1.4rem;
  box-shadow: 0 20px 38px rgba(31, 41, 55, 0.08);
  display: grid;
  gap: 0.6rem;
}

.scenario-card--bull {
  border-left: 4px solid #15803d;
}

.scenario-card--bear {
  border-left: 4px solid #b91c1c;
}

.scenario-card--range {
  border-left: 4px solid #d97706;
}

.scenario-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #1f2350;
}

.scenario-card p {
  margin: 0;
  color: rgba(55, 65, 81, 0.75);
  line-height: 1.55;
}

.trade-plan {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  padding: 1.8rem 2rem;
  box-shadow: 0 24px 44px rgba(31, 41, 55, 0.1);
  display: grid;
  gap: 1.4rem;
}

.trade-plan h2 {
  margin: 0;
  font-size: 1.35rem;
  color: #1f2350;
}

.trade-plan__grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.trade-plan__grid h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: rgba(31, 41, 55, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trade-plan__grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
  color: #1f2350;
}

.trade-plan__grid li {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: rgba(31, 41, 55, 0.85);
}

.trade-plan__size {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 1rem;
}

.action-lower {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.alerts {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  padding: 1.6rem 1.8rem;
  box-shadow: 0 20px 40px rgba(31, 41, 55, 0.08);
}

.alerts h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: #1f2350;
}

.alerts ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.alert-button {
  width: 100%;
  border: 1px solid rgba(79, 70, 229, 0.24);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  background: rgba(79, 70, 229, 0.08);
  color: #4338ca;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.alert-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(79, 70, 229, 0.18);
}

.level-gauge {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  padding: 1.6rem 1.8rem;
  box-shadow: 0 20px 40px rgba(31, 41, 55, 0.08);
  display: grid;
  gap: 1.1rem;
  --gauge-accent: #fde68a;
  --gauge-accent-bg: rgba(17, 24, 39, 0.85);
  --gauge-range-color: rgba(55, 65, 81, 0.72);
  --gauge-accent-shadow: rgba(253, 230, 138, 0.45);
}

.level-gauge--compact {
  padding: 0.95rem 1.1rem 1.2rem;
  border-radius: 16px;
  box-shadow: 0 16px 32px rgba(79, 70, 229, 0.16);
  gap: 0.7rem;
  min-width: 180px;
}

.level-gauge--compact .level-gauge__header {
  display: none;
}

.level-gauge--compact .level-gauge__body {
  width: min(180px, 32vw);
}

.level-gauge--compact .level-gauge__needle-value {
  font-size: 1.05rem;
  padding: 0.45rem 0.95rem;
}

.level-gauge--compact .level-gauge__range {
  font-size: 0.82rem;
  justify-self: end;
}

.level-gauge__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.level-gauge__header h2 {
  margin: 0;
  font-size: 1.1rem;
  color: #101631;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.level-gauge__range {
  font-size: 0.9rem;
  color: var(--gauge-range-color);
  font-variant-numeric: tabular-nums;
}

.level-gauge__body {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 2 / 1;
  margin: 0 auto;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 120%, #0f172a 0%, #111d2f 60%, #0b1221 100%);
  box-shadow: inset 0 -18px 32px rgba(15, 23, 42, 0.55), 0 28px 40px rgba(15, 23, 42, 0.28);
}

.level-gauge__body::after {
  content: '';
  position: absolute;
  inset: 12% 10% auto;
  height: 40%;
  border-radius: 999px 999px 0 0;
  background: radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0));
  pointer-events: none;
  opacity: 0.8;
}

.level-gauge__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.level-gauge__needle-value {
  position: absolute;
  top: var(--needle-label-y, 58%);
  left: var(--needle-label-x, 50%);
  transform: translate(-50%, -50%);
  background: var(--gauge-accent-bg);
  color: var(--gauge-accent);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 14px 36px var(--gauge-accent-shadow);
  z-index: 2;
  font-variant-numeric: tabular-nums;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.level-gauge[data-zone="belowS2"] {
  --gauge-accent: #f8d7d9;
  --gauge-accent-bg: rgba(59, 15, 20, 0.86);
  --gauge-range-color: #7f1d1d;
  --gauge-accent-shadow: rgba(59, 15, 20, 0.52);
}

.level-gauge[data-zone="betweenSupports"] {
  --gauge-accent: #fde2e2;
  --gauge-accent-bg: rgba(127, 29, 29, 0.78);
  --gauge-range-color: #991b1b;
  --gauge-accent-shadow: rgba(127, 29, 29, 0.48);
}

.level-gauge[data-zone="midZone"] {
  --gauge-accent: #fef3c7;
  --gauge-accent-bg: rgba(180, 83, 9, 0.82);
  --gauge-range-color: #b45309;
  --gauge-accent-shadow: rgba(180, 83, 9, 0.46);
}

.level-gauge[data-zone="betweenResistances"] {
  --gauge-accent: #d1fae5;
  --gauge-accent-bg: rgba(15, 118, 110, 0.82);
  --gauge-range-color: #0f766e;
  --gauge-accent-shadow: rgba(15, 118, 110, 0.46);
}

.level-gauge[data-zone="aboveR2"] {
  --gauge-accent: #bbf7d0;
  --gauge-accent-bg: rgba(6, 78, 59, 0.85);
  --gauge-range-color: #065f46;
  --gauge-accent-shadow: rgba(6, 78, 59, 0.5);
}

.action-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
}

.action-tags span {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.12);
  color: #4338ca;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .action-center__header {
    padding: 1.4rem 1.5rem;
  }

  .action-controls {
    width: 100%;
  }

  .action-dashboard__summary-shell {
    grid-template-columns: 1fr;
  }

  .action-dashboard__summary-head {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
    gap: 1rem;
  }

  .action-dashboard__summary-head-col--gauge {
    justify-self: center;
    width: 100%;
  }

  .action-dashboard__summary-head-col--gauge .level-gauge {
    width: min(280px, 100%);
  }

  .action-dashboard__summary-symbol-row {
    justify-content: center;
  }

  .action-dashboard__summary-controls {
    justify-content: center;
    margin-top: 0.6rem;
  }

  .action-dashboard__summary-controls {
    justify-content: center;
  }

  .summary-control {
    min-width: 180px;
  }

  .action-dashboard__body {
    padding: 1.4rem;
  }

  .action-card__body {
    grid-template-columns: 1fr;
  }

  .level-radar {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

}

@media (max-width: 640px) {
  .action-center {
    padding: 1.8rem 1rem 3rem;
  }

  .action-controls {
    gap: 0.65rem;
    padding: 0.85rem;
  }

  .action-dashboard__summary {
    padding: 1.2rem 1.2rem 1.4rem;
  }

  .action-dashboard__summary-symbol {
    font-size: 1.5rem;
  }

  .action-dashboard__summary-head {
    gap: 0.75rem;
  }

  .action-dashboard__summary-controls {
    flex-direction: column;
    gap: 0.6rem;
    align-items: stretch;
    margin-top: 0.6rem;
  }

  .summary-control {
    min-width: 100%;
  }

  .action-dashboard__summary-head-col--gauge .level-gauge {
    width: 100%;
  }

  .pill-button,
  .pill-button--ghost {
    width: 100%;
    text-align: center;
  }

  .gauge {
    padding: 1.1rem;
  }

  .level-gauge__body {
    width: 100%;
    max-width: 100%;
  }

  .level-gauge__needle-value {
    top: 58%;
    font-size: 0.9rem;
  }

  .level-gauge--compact .level-gauge__body {
    width: 100%;
  }
}

/* SMALL DEVICES / MOBILE ---------------------------------------------------- */
@media (max-width: 600px) {
  html { font-size:15px; }
  .header { flex-wrap:wrap; padding: 0.8rem 0.8rem;}
  .logo span { font-size: 1.07rem; }
  .nav-links { gap: 7px; font-size:0.95em;}
  .container { padding: 0 0.5rem; }
  .trading-panel, .results-panel { padding: 1.2rem 0.7rem;}
}

/* ACCESSIBILITY ------------------------------------------------------------- */
:focus-visible {
  outline: 2px dashed #2196f3 !important;
  outline-offset: 2px;
}
a:focus {background: rgba(255,255,255,0.26);}
button:focus {box-shadow: 0 0 0 2.5px #bbb;}