.strategy-guide-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.sg-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
  border-bottom: 1px solid #2a2e39;
  padding-bottom: 0;
}

.sg-tab {
  padding: 12px 22px;
  border: none;
  background: none;
  color: #787b86;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
}

.sg-tab:hover {
  color: #d1d4dc;
}

.sg-tab.active {
  color: #3b6df0;
  border-bottom-color: #3b6df0;
}

.sg-tab-content {
  display: none;
}

.sg-tab-content.active {
  display: block;
}

.sg-sub-toggle {
  display: flex;
  gap: 4px;
  margin-top: 14px;
  margin-bottom: 2px;
}

.sg-sub-toggle-btn {
  padding: 8px 20px;
  border: 1px solid #2a2e39;
  background: transparent;
  color: #787b86;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}

.sg-sub-toggle-btn:hover {
  color: #d1d4dc;
  border-color: #363a45;
  background: #1e222d;
}

.sg-sub-toggle-btn.active {
  color: #fff;
  background: #3b6df0;
  border-color: #3b6df0;
}

.sg-sub-content {
  display: none;
}

.sg-sub-content.active {
  display: block;
}

.sg-mode-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2a2e39;
  width: fit-content;
}

.sg-mode-btn {
  padding: 10px 28px;
  border: none;
  background: transparent;
  color: #787b86;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  border-right: 1px solid #2a2e39;
}

.sg-mode-btn:last-child {
  border-right: none;
}

.sg-mode-btn:hover {
  color: #d1d4dc;
  background: #1e222d;
}

.sg-mode-btn.active {
  color: #fff;
  background: #3b6df0;
}

.sg-mode-content {
  display: none;
}

.sg-mode-content.active {
  display: block;
}

.sg-screenshot-preview {
  border-radius: 10px;
  border: 1px solid #2a2e39;
  overflow: hidden;
  margin-bottom: 16px;
  background: #131722;
}

.sg-screenshot-preview img {
  width: 100%;
  height: auto;
  display: block;
}

.sg-screenshot-label {
  padding: 8px 14px;
  background: #1a1e2d;
  font-size: 11px;
  font-weight: 600;
  color: #787b86;
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid #2a2e39;
}

.sg-screenshot-label i {
  color: #3b6df0;
}

.sg-header {
  margin-bottom: 30px;
}

.sg-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.sg-subtitle {
  color: #787b86;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.sg-search-wrapper {
  position: relative;
  max-width: 600px;
  margin-bottom: 16px;
}

.sg-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9a9da6;
  font-size: 14px;
  pointer-events: none;
}

.sg-search-input {
  width: 100%;
  padding: 12px 40px 12px 42px;
  background: #ffffff;
  border: 1px solid #d1d4dc;
  border-radius: 10px;
  color: #1e222d;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sg-search-input:focus {
  border-color: #3b6df0;
  box-shadow: 0 0 0 3px rgba(59, 109, 240, 0.15);
}

.sg-search-input::placeholder {
  color: #787b86;
}

.sg-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #787b86;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: background 0.2s;
}

.sg-search-clear:hover {
  background: rgba(255,255,255,0.08);
  color: #d1d4dc;
}

.sg-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.sg-filter-btn {
  padding: 7px 16px;
  border: 1px solid #d1d4dc;
  border-radius: 20px;
  background: #ffffff;
  color: #545b6a;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.sg-filter-btn:hover {
  background: #f0f1f5;
  color: #1e222d;
}

.sg-filter-btn.active {
  background: #3b6df0;
  color: #fff;
  border-color: #3b6df0;
}

.sg-search-count {
  color: #545b6a;
  font-size: 13px;
  min-height: 20px;
}

.sg-strategies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 24px;
}

@media (max-width: 500px) {
  .sg-strategies-grid {
    grid-template-columns: 1fr;
  }
}

.sg-card {
  background: #ffffff;
  border: 1px solid #e0e3eb;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.sg-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  border-color: #c8ccd6;
}

.sg-card-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid #e0e3eb;
  background: linear-gradient(135deg, rgba(59,109,240,0.04), rgba(108,92,231,0.02));
}

.sg-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.sg-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e222d;
  margin: 0;
  line-height: 1.3;
}

.sg-outlook {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

.sg-risk-badge {
  display: inline-block;
  padding: 3px 10px;
  background: #f0f1f5;
  border-radius: 12px;
  color: #545b6a;
  font-size: 11px;
  font-weight: 500;
}

.sg-card-body {
  padding: 16px 20px 20px;
}

.sg-payoff-diagram {
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
}

.sg-description {
  color: #363a45;
  font-size: 13.5px;
  line-height: 1.65;
  margin-bottom: 18px;
}

.sg-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #1e222d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 10px;
}

.sg-legs-section {
  margin-bottom: 18px;
}

.sg-legs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sg-leg {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #e0e3eb;
}

.sg-leg-long {
  background: rgba(8, 153, 129, 0.06);
  border-color: rgba(8, 153, 129, 0.2);
}

.sg-leg-short {
  background: rgba(242, 54, 69, 0.06);
  border-color: rgba(242, 54, 69, 0.2);
}

.sg-leg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.sg-leg-header i {
  font-size: 13px;
}

.sg-leg-long .sg-leg-header i {
  color: #089981;
}

.sg-leg-short .sg-leg-header i {
  color: #f23645;
}

.sg-leg-label {
  font-size: 13px;
  font-weight: 600;
  color: #1e222d;
}

.sg-leg-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 21px;
}

.sg-leg-type-badge {
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.sg-leg-type-badge.sg-call {
  background: rgba(8, 153, 129, 0.15);
  color: #089981;
}

.sg-leg-type-badge.sg-put {
  background: rgba(242, 54, 69, 0.15);
  color: #f23645;
}

.sg-leg-strike {
  font-size: 12px;
  color: #545b6a;
}

.sg-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px;
  background: #f5f6f8;
  border-radius: 10px;
}

.sg-metric {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sg-metric:last-child {
  grid-column: 1 / -1;
}

.sg-metric-label {
  font-size: 11px;
  color: #787b86;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.sg-metric-value {
  font-size: 13px;
  color: #1e222d;
  font-weight: 500;
}

.sg-metric-value.sg-profit {
  color: #089981;
}

.sg-metric-value.sg-loss {
  color: #f23645;
}

.sg-conditions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sg-condition p {
  margin: 0;
  color: #363a45;
  font-size: 13px;
  line-height: 1.6;
}

.sg-no-results {
  text-align: center;
  padding: 60px 20px;
  color: #545b6a;
}

.sg-no-results i {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.sg-no-results h4 {
  color: #787b86;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.sg-no-results p {
  font-size: 14px;
}

.sg-bt-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sg-bt-section {
  background: #ffffff;
  border: 1px solid #e0e3eb;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.sg-bt-section:hover {
  border-color: #c8ccd6;
}

.sg-bt-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(59,109,240,0.04), rgba(108,92,231,0.02));
  border-bottom: 1px solid #e0e3eb;
}

.sg-bt-section-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e222d;
  margin: 0;
}

.sg-bt-step {
  min-width: 38px;
  height: 30px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3b6df0;
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.sg-bt-section-body {
  padding: 20px 22px 24px;
}

.sg-bt-ui-preview {
  margin: 0 0 20px;
  border: 1px solid #e0e3eb;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.sg-bt-ui-preview svg {
  display: block;
  width: 100%;
  height: auto;
}

#sgTabScreener .sg-bt-ui-preview,
#sgTabNotifications .sg-bt-ui-preview {
  max-width: 560px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.sg-trade-log-preview {
  padding: 0;
  overflow: visible;
}
.sg-tl-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 8px;
  border-bottom: 1px solid #e2e8f0;
}
.sg-tl-title {
  font-weight: 700;
  font-size: 14px;
  color: #1e222d;
}
.sg-tl-badge {
  font-size: 11px;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 2px 10px;
}
.sg-tl-dl-btn {
  margin-left: auto;
  background: #3b6df0;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 6px;
  cursor: default;
}
.sg-tl-scroll-hint {
  padding: 6px 16px;
  font-size: 11px;
  color: #94a3b8;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}
.sg-tl-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.sg-tl-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
}
.sg-tl-table thead th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  color: #64748b;
  font-weight: 700;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 7px 12px;
  white-space: nowrap;
  border-bottom: 2px solid #e2e8f0;
  text-align: left;
}
.sg-tl-table tbody td {
  padding: 6px 12px;
  white-space: nowrap;
  color: #1e222d;
  border-bottom: 1px solid #f1f5f9;
}
.sg-tl-table tbody tr:hover {
  background: #f8fafc;
}
.sg-tl-pnl-pos {
  color: #089981 !important;
  font-weight: 600;
}
.sg-tl-pnl-neg {
  color: #f23645 !important;
  font-weight: 600;
}
.sg-tl-reason-tp {
  color: #089981 !important;
}
.sg-tl-reason-sl {
  color: #f23645 !important;
}
.sg-tl-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  font-size: 11px;
  color: #94a3b8;
  border-top: 1px solid #e2e8f0;
}
.sg-tl-page-btns {
  display: flex;
  gap: 4px;
}
.sg-tl-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid #d1d4dc;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 14px;
  cursor: default;
}

.sg-bt-intro {
  color: #363a45;
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 18px;
}

.sg-bt-field {
  padding: 16px 18px;
  background: #f5f6f8;
  border: 1px solid #e0e3eb;
  border-radius: 10px;
  margin-bottom: 14px;
}

.sg-bt-field:last-child {
  margin-bottom: 0;
}

.sg-bt-field-name {
  font-size: 14px;
  font-weight: 700;
  color: #1e222d;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sg-bt-field-name i {
  color: #3b6df0;
  font-size: 13px;
  width: 16px;
  text-align: center;
}

.sg-bt-field-desc {
  color: #363a45;
  font-size: 13.5px;
  line-height: 1.65;
  margin-bottom: 0;
}

.sg-bt-list {
  margin: 10px 0 0;
  padding-left: 18px;
  list-style: none;
}

.sg-bt-list li {
  color: #363a45;
  font-size: 13.5px;
  line-height: 1.65;
  margin-bottom: 6px;
  position: relative;
  padding-left: 14px;
}

.sg-bt-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  background: #3b6df0;
  border-radius: 50%;
}

.sg-bt-list li strong {
  color: #1e222d;
  font-weight: 600;
}

.sg-bt-field-tip {
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(59, 109, 240, 0.06);
  border-left: 3px solid #3b6df0;
  border-radius: 0 8px 8px 0;
  color: #4a5068;
  font-size: 13px;
  line-height: 1.55;
}

.sg-bt-field-tip i {
  color: #f0b03b;
  margin-right: 4px;
}

.sg-bt-example-field {
  background: #ffffff !important;
  border: 1px solid #d1d4dc !important;
}

.sg-bt-example-diagram {
  margin: 14px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e0e3eb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.sg-bt-example-config {
  margin-top: 14px;
  padding: 14px 16px;
  background: #f5f6f8;
  border-radius: 8px;
  border: 1px solid #e0e3eb;
}

.sg-bt-example-label {
  font-size: 12px;
  font-weight: 700;
  color: #1e222d;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
}

.sg-bt-example-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.sg-bt-example-pill {
  padding: 4px 10px;
  background: #ffffff;
  border: 1px solid #d1d4dc;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #1e222d;
}

.sg-bt-pill-op {
  background: #eef2ff;
  border-color: #3b6df0;
  color: #3b6df0;
  font-weight: 700;
}

.sg-bt-pill-thresh {
  background: #fef9ee;
  border-color: #f0b03b;
  color: #b8860b;
  font-weight: 600;
}

.sg-bt-example-meaning {
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(8,153,129,0.06);
  border-left: 3px solid #089981;
  border-radius: 0 6px 6px 0;
  color: #363a45;
  font-size: 12.5px;
  line-height: 1.55;
  font-style: italic;
}


@media (max-width: 600px) {
  .sg-tabs {
    gap: 0;
  }
  .sg-tab {
    padding: 10px 12px;
    font-size: 12px;
  }
  .sg-bt-section-body {
    padding: 16px 14px 18px;
  }
  .sg-bt-field {
    padding: 12px 14px;
  }
}
