/* Technical Analysis Guide Styles */
/* Vazirmatn font is self-hosted via @font-face in styles.css (loaded by base.html) */

:root {
  --gold: #c9a961;
  --gold-light: #e5d4a1;
  --gold-dark: #8b7355;
  --black: #0a0a0a;
  --black-light: #111111;
  --black-lighter: #1a1a1a;
  --gray-dark: #2a2a2a;
  --gray: #666666;
  --gray-light: #999999;
  --white: #ffffff;
  --green: #22c55e;
  --red: #ef4444;
}

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

body {
  font-family: "Vazirmatn", sans-serif;
  background: var(--black);
  color: var(--white);
  direction: rtl;
  line-height: 1.8;
}


/* Hero Section */
.ta-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  overflow: hidden;
}

#chartCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.9) 100%);
}

.ta-hero .container {
  position: relative;
  z-index: 10;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(201, 169, 97, 0.1);
  border: 1px solid rgba(201, 169, 97, 0.3);
  padding: 10px 25px;
  border-radius: 50px;
  margin-bottom: 30px;
  animation: fadeInUp 0.8s ease;
}

.hero-badge svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
}

.hero-badge span {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--gray-light);
  margin-bottom: 50px;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  animation: fadeInUp 0.8s ease 0.6s backwards;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-light);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: bounce 2s infinite;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--gold);
  border-radius: 15px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

.scroll-indicator span {
  font-size: 0.8rem;
  color: var(--gray-light);
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
}

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

/* Reading Progress */
.reading-progress {
  position: fixed;
  top: 60px;
  right: 0;
  left: 0;
  height: 3px;
  background: rgba(201, 169, 97, 0.2);
  z-index: 999;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  width: 0;
  transition: width 0.1s;
}

/* Table of Contents */
.toc-section {
  padding: 80px 0;
  background: var(--black-light);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
}

.toc-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: var(--black-lighter);
  border: 1px solid rgba(201, 169, 97, 0.1);
  border-radius: 10px;
  text-decoration: none;
  color: var(--white);
  transition: all 0.3s ease;
}

.toc-item:hover {
  background: rgba(201, 169, 97, 0.1);
  border-color: var(--gold);
  transform: translateX(-5px);
}

.toc-number {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 169, 97, 0.1);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
}

.toc-text {
  font-size: 0.95rem;
}

/* Chapters */
.chapter {
  padding: 100px 0;
}

.chapter-alt {
  background: var(--black-light);
}

.chapter-header {
  text-align: center;
  margin-bottom: 60px;
}

.chapter-number {
  display: inline-block;
  background: rgba(201, 169, 97, 0.1);
  color: var(--gold);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 15px;
}

.chapter-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
}

.chapter-content {
  max-width: 900px;
  margin: 0 auto;
}

.content-block {
  margin-bottom: 40px;
}

.lead-text {
  font-size: 1.2rem;
  color: var(--gray-light);
  line-height: 2;
  margin-bottom: 25px;
  border-right: 3px solid var(--gold);
  padding-right: 20px;
}

/* Image Placeholders */
.image-placeholder .placeholder-content {
    text-align: center;
    padding: 18px;
}

/* make the PNG visually prominent and responsive */
.image-placeholder .placeholder-content img,
.placeholder-content img {
    display: block;
    width: min(900px, 100%);     /* max visual width but responsive */
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 auto;
    box-shadow: 0 14px 36px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
    transition: transform 220ms ease, box-shadow 220ms ease;
    border: 1px solid rgba(255,255,255,0.03);
}

/* larger variant used in some placeholders */
.image-placeholder.large .placeholder-content img {
    width: min(1100px, 100%);
}

/* subtle hover / focus effect */
.image-placeholder .placeholder-content img:hover,
.image-placeholder .placeholder-content img:focus {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 26px 60px rgba(0,0,0,0.75);
}

/* mobile adjustments */
@media (max-width: 768px) {
    .image-placeholder .placeholder-content {
        padding: 12px;
    }
    .image-placeholder .placeholder-content img {
        width: 100%;
        border-radius: 8px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    }
}

/* optional caption styling if you add a caption under the image */
.placeholder-caption {
    margin-top: 10px;
    color: var(--gray-light);
    font-size: 0.95rem;
}
.placeholder-content svg {
  width: 60px;
  height: 60px;
  stroke: var(--gold);
  opacity: 0.5;
}

.placeholder-content span {
  color: var(--gray-light);
  font-size: 1rem;
}

.placeholder-content small {
  color: var(--gray);
  font-size: 0.85rem;
}

/* Principles Grid */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.principle-card {
  background: var(--black-lighter);
  border: 1px solid rgba(201, 169, 97, 0.1);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.principle-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
}

.principle-icon {
  width: 60px;
  height: 60px;
  background: rgba(201, 169, 97, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.principle-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--gold);
}

.principle-card h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.principle-card p {
  color: var(--gray-light);
  font-size: 0.9rem;
}

/* Comparison Table */
.comparison-table {
  background: var(--black-lighter);
  border-radius: 15px;
  overflow: hidden;
  margin: 40px 0;
}

.comparison-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: rgba(201, 169, 97, 0.1);
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid rgba(201, 169, 97, 0.1);
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-col {
  padding: 20px;
  font-size: 0.95rem;
}

.comparison-header .comparison-col {
  font-weight: 600;
  color: var(--gold);
}

.comparison-col.technical {
  background: rgba(34, 197, 94, 0.05);
  color: var(--green);
}

.comparison-col.fundamental {
  background: rgba(201, 169, 97, 0.05);
  color: var(--gold-light);
}

/* Info Box */
.info-box {
  display: flex;
  gap: 20px;
  background: rgba(201, 169, 97, 0.1);
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-radius: 15px;
  padding: 25px;
  margin: 40px 0;
}

.info-icon {
  width: 50px;
  height: 50px;
  background: rgba(201, 169, 97, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold);
}

.info-content h4 {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.info-content p {
  color: var(--gray-light);
  font-size: 0.95rem;
}

/* Warning Box */
.warning-box {
  display: flex;
  gap: 20px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 15px;
  padding: 25px;
  margin: 40px 0;
}

.warning-icon {
  width: 50px;
  height: 50px;
  background: rgba(239, 68, 68, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.warning-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--red);
}

.warning-content h4 {
  color: var(--red);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.warning-content p {
  color: var(--gray-light);
  font-size: 0.95rem;
}

/* Chart Types Grid */
.chart-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.chart-type-card {
  background: var(--black-lighter);
  border: 1px solid rgba(201, 169, 97, 0.1);
  border-radius: 15px;
  padding: 25px;
  position: relative;
  transition: all 0.3s ease;
}

.chart-type-card.featured {
  border-color: var(--gold);
}

.featured-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--gold);
  color: var(--black);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.chart-type-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}

.chart-preview {
  background: rgba(10, 10, 10, 0.5);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-preview svg {
  width: 100%;
  height: 100%;
}

.chart-type-card h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.chart-type-card p {
  color: var(--gray-light);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.chart-features {
  list-style: none;
}

.chart-features li {
  color: var(--gray);
  font-size: 0.85rem;
  padding: 5px 0;
  padding-right: 20px;
  position: relative;
}

.chart-features li::before {
  content: "•";
  color: var(--gold);
  position: absolute;
  right: 0;
}

/* Candlestick Anatomy */
.candlestick-anatomy {
  background: var(--black-lighter);
  border-radius: 15px;
  padding: 40px;
  margin: 40px 0;
}

.candlestick-anatomy h3 {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 30px;
  text-align: center;
}

.anatomy-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.anatomy-visual {
  display: flex;
  justify-content: center;
}

.anatomy-visual svg {
  max-width: 300px;
}

.anatomy-description {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.anatomy-item {
  background: rgba(201, 169, 97, 0.05);
  padding: 20px;
  border-radius: 10px;
  border-right: 3px solid var(--gold);
}

.anatomy-item h5 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 8px;
}

.anatomy-item p {
  color: var(--gray-light);
  font-size: 0.9rem;
}

/* Timeframes */
.timeframes-showcase {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 40px 0;
}

.timeframe-category h4 {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.timeframe-items {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.timeframe-item {
  background: var(--black-lighter);
  border: 1px solid rgba(201, 169, 97, 0.1);
  border-radius: 10px;
  padding: 15px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.timeframe-item.featured {
  border-color: var(--gold);
  background: rgba(201, 169, 97, 0.1);
}

.timeframe-item:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.tf-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
}

.tf-name {
  font-size: 0.85rem;
  color: var(--gray-light);
}

/* Support & Resistance */
.sr-visualization {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 40px 0;
}

.sr-card {
  background: var(--black-lighter);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
}

.sr-card.support {
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.sr-card.resistance {
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.sr-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.sr-card.support .sr-icon {
  background: rgba(34, 197, 94, 0.1);
}

.sr-card.support .sr-icon svg {
  stroke: var(--green);
}

.sr-card.resistance .sr-icon {
  background: rgba(239, 68, 68, 0.1);
}

.sr-card.resistance .sr-icon svg {
  stroke: var(--red);
}

.sr-icon svg {
  width: 30px;
  height: 30px;
}

.sr-card h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.sr-card p {
  color: var(--gray-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.sr-card ul {
  list-style: none;
  text-align: right;
}

.sr-card ul li {
  color: var(--gray);
  font-size: 0.9rem;
  padding: 8px 0;
  padding-right: 20px;
  position: relative;
}

.sr-card ul li::before {
  content: "✓";
  position: absolute;
  right: 0;
}

.sr-card.support ul li::before {
  color: var(--green);
}

.sr-card.resistance ul li::before {
  color: var(--red);
}

/* SR Types */
.sr-types {
  margin-top: 40px;
}

.sr-types h3 {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 25px;
}

.sr-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.sr-type-item {
  display: flex;
  gap: 15px;
  background: var(--black-lighter);
  padding: 20px;
  border-radius: 10px;
}

.sr-type-number {
  width: 40px;
  height: 40px;
  background: rgba(201, 169, 97, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

.sr-type-content h5 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 5px;
}

.sr-type-content p {
  color: var(--gray-light);
  font-size: 0.85rem;
}

/* Trend Types */
.trend-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.trend-card {
  background: var(--black-lighter);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
}

.trend-visual {
  background: rgba(10, 10, 10, 0.5);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  height: 100px;
}

.trend-visual svg {
  width: 100%;
  height: 100%;
}

.trend-card h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.trend-card p {
  color: var(--gray-light);
  font-size: 0.9rem;
}

/* Tips Box */
.tips-box {
  background: rgba(201, 169, 97, 0.1);
  border-radius: 15px;
  padding: 30px;
  margin: 40px 0;
}

.tips-box h4 {
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.tips-list {
  list-style: none;
}

.tips-list li {
  color: var(--gray-light);
  font-size: 0.95rem;
  padding: 10px 0;
  padding-right: 30px;
  position: relative;
  border-bottom: 1px solid rgba(201, 169, 97, 0.1);
}

.tips-list li:last-child {
  border-bottom: none;
}

.tips-list li::before {
  content: "💡";
  position: absolute;
  right: 0;
}

/* Candlestick Patterns */
.subsection-title {
  color: var(--gold);
  font-size: 1.3rem;
  margin: 40px 0 25px;
}

.candlestick-patterns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.pattern-card {
  background: var(--black-lighter);
  border: 1px solid rgba(201, 169, 97, 0.1);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.pattern-card.wide {
  grid-column: span 2;
}

.pattern-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.pattern-visual {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.pattern-visual svg {
  height: 100%;
}

.pattern-card h5 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.pattern-card p {
  color: var(--gray-light);
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.pattern-signal {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 500;
}

.pattern-signal.bullish {
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
}

.pattern-signal.bearish {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
}

.pattern-signal.neutral {
  background: rgba(201, 169, 97, 0.1);
  color: var(--gold);
}

/* Chart Patterns */
.chart-patterns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.chart-pattern-card {
  background: var(--black-lighter);
  border: 1px solid rgba(201, 169, 97, 0.1);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.chart-pattern-card:hover {
  border-color: var(--gold);
}

.pattern-diagram {
  position: relative;
  width: 100%;
  max-width: 420px;        /* adjust max width */
  margin: 0 auto 18px;
  display: block;
  border-radius: 12px;
  overflow: visible;
}

.pattern-diagram .pattern-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.03);
}

/* overlay holds the neckline line and label */
.pattern-diagram .pattern-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none; /* allow clicks through image if needed */
}

/* neckline line */
.pattern-diagram .neckline {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 33%; /* position to match original SVG */
  height: 3px;
  background: rgba(34,197,94,0.95);
  border-radius: 2px;
  box-shadow: 0 6px 18px rgba(34,197,94,0.06);
  transform-origin: center;
  z-index: 5;
  border: 1px dashed rgba(255,255,255,0.06); /* subtle dash if preferred */
}

/* label above the neckline */
.pattern-diagram .neckline-label {
  position: absolute;
  top: calc(33% - 18px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.78rem;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 6;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

/* small marker on the right end (optional) */
.pattern-diagram .neckline::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: rgba(34,197,94,1);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(34,197,94,0.25);
}

/* responsive adjustments */
@media (max-width: 720px) {
  .pattern-diagram { max-width: 100%; }
  .pattern-diagram .neckline { left: 8%; right: 8%; top: 34%; height: 2px; }
  .pattern-diagram .neckline-label { font-size: 0.72rem; top: calc(34% - 16px); }
}

/* Indicators Grid */
.indicators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.indicator-card {
  background: var(--black-lighter);
  border: 1px solid rgba(201, 169, 97, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.indicator-card:hover {
  border-color: var(--gold);
}

.indicator-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: rgba(201, 169, 97, 0.05);
}

.indicator-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.indicator-icon.ma {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
}

.indicator-icon.bb {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: white;
}

.indicator-icon.macd {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.indicator-icon.sar {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.indicator-header h4 {
  color: var(--white);
  font-size: 1rem;
}

.indicator-content {
  padding: 20px;
}

.indicator-content p {
  color: var(--gray-light);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.indicator-types {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.type-badge {
  background: rgba(201, 169, 97, 0.1);
  color: var(--gold);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
}

.indicator-usage h6 {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.indicator-usage ul {
  list-style: none;
}

.indicator-usage ul li {
  color: var(--gray);
  font-size: 0.85rem;
  padding: 5px 0;
  padding-right: 15px;
  position: relative;
}

.indicator-usage ul li::before {
  content: "•";
  color: var(--gold);
  position: absolute;
  right: 0;
}

.indicator-components {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.component {
  display: flex;
  justify-content: space-between;
  background: rgba(10, 10, 10, 0.3);
  padding: 8px 12px;
  border-radius: 6px;
}

.component-name {
  color: var(--gray-light);
  font-size: 0.85rem;
}

.component-desc {
  color: var(--gold);
  font-size: 0.85rem;
  font-family: monospace;
}

.indicator-signals {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.signal-type {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.signal-type.bullish {
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
}

.signal-type.bearish {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
}

.signal-desc {
  color: var(--gray-light);
  font-size: 0.85rem;
}

/* Oscillators */
.oscillators-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.oscillator-detail {
  background: var(--black-lighter);
  border: 1px solid rgba(201, 169, 97, 0.1);
  border-radius: 15px;
  padding: 25px;
}

.oscillator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.oscillator-header h4 {
  color: var(--white);
  font-size: 1.1rem;
}

.oscillator-range {
  background: rgba(201, 169, 97, 0.1);
  color: var(--gold);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
}

.rsi-scale {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scale-zone {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-radius: 8px;
}

.scale-zone.overbought {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.scale-zone.neutral {
  background: rgba(201, 169, 97, 0.05);
  border: 1px solid rgba(201, 169, 97, 0.1);
}

.scale-zone.oversold {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.zone-label {
  color: var(--gray-light);
  font-size: 0.9rem;
}

.scale-zone.overbought .zone-value {
  color: var(--red);
}

.scale-zone.neutral .zone-value {
  color: var(--gold);
}

.scale-zone.oversold .zone-value {
  color: var(--green);
}

.zone-value {
  font-weight: 600;
}

.oscillator-tips {
  margin-top: 15px;
  padding: 15px;
  background: rgba(201, 169, 97, 0.05);
  border-radius: 8px;
}

.oscillator-tips p {
  color: var(--gray-light);
  font-size: 0.85rem;
  text-align: center;
}

.oscillator-components {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.osc-component {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.osc-line {
  width: 40px;
  height: 4px;
  border-radius: 2px;
}

.osc-line.k {
  background: var(--gold);
}

.osc-line.d {
  background: var(--red);
}

.osc-desc {
  color: var(--gray-light);
  font-size: 0.8rem;
}

.oscillator-signals-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.osc-signal {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  background: rgba(10, 10, 10, 0.3);
  border-radius: 8px;
}

.signal-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signal-icon.bullish {
  background: rgba(34, 197, 94, 0.1);
}

.signal-icon.bullish svg {
  stroke: var(--green);
  width: 18px;
  height: 18px;
}

.signal-icon.bearish {
  background: rgba(239, 68, 68, 0.1);
}

.signal-icon.bearish svg {
  stroke: var(--red);
  width: 18px;
  height: 18px;
}

.osc-signal span:last-child {
  color: var(--gray-light);
  font-size: 0.9rem;
}

/* Divergence Section */
.divergence-section {
  margin-top: 40px;
}

.divergence-section h3 {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.divergence-section > p {
  color: var(--gray-light);
  font-size: 0.95rem;
  margin-bottom: 25px;
}

.divergence-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.divergence-card {
  background: var(--black-lighter);
  border-radius: 12px;
  padding: 25px;
}

.divergence-card:first-child {
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.divergence-card:last-child {
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.divergence-card h5 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 10px;
}

.divergence-card:first-child h5 {
  color: var(--green);
}

.divergence-card:last-child h5 {
  color: var(--red);
}

.divergence-card p {
  color: var(--gray-light);
  font-size: 0.9rem;
}

/* Fibonacci Levels */
.fibonacci-levels {
  background: var(--black-lighter);
  border-radius: 15px;
  padding: 30px;
  margin: 40px 0;
}

.fibonacci-levels h3 {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 30px;
}

.fib-levels-visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fib-level {
  display: flex;
  align-items: center;
  gap: 15px;
}

.fib-value {
  width: 70px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
}

.fib-line {
  flex: 1;
  height: 2px;
  background: rgba(201, 169, 97, 0.3);
  position: relative;
}

.fib-level.important .fib-line {
  height: 3px;
  background: var(--gold);
}

.fib-desc {
  width: 120px;
  color: var(--gray-light);
  font-size: 0.85rem;
  text-align: left;
}

.fib-extension {
  margin-top: 40px;
}

.fib-extension h3 {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 25px;
}

.extension-levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ext-level {
  background: var(--black-lighter);
  border: 1px solid rgba(201, 169, 97, 0.1);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
}

.ext-value {
  display: block;
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.ext-level p {
  color: var(--gray-light);
  font-size: 0.9rem;
}

/* Volume Rules */
.volume-rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.volume-rule {
  background: var(--black-lighter);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
}

.rule-visual {
  height: 80px;
  margin-bottom: 20px;
}

.rule-visual svg {
  width: 100%;
  height: 100%;
}

.volume-rule h5 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 10px;
}

.volume-rule p {
  color: var(--gray-light);
  font-size: 0.9rem;
}

/* Dow Principles */
.dow-principles {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 40px 0;
}

.principle-item {
  display: flex;
  gap: 20px;
  background: var(--black-lighter);
  border-radius: 12px;
  padding: 25px;
}

.principle-item .principle-number {
  width: 50px;
  height: 50px;
  background: rgba(201, 169, 97, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
}

.principle-item .principle-content h5 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.principle-item .principle-content p {
  color: var(--gray-light);
  font-size: 0.95rem;
}

/* Elliott Waves */
.elliott-visual {
  background: var(--black-lighter);
  border-radius: 15px;
  padding: 30px;
  margin: 40px 0;
  display: flex;
  justify-content: center;
}

.elliott-visual svg {
  max-width: 100%;
}

.elliott-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.rule-card {
  background: var(--black-lighter);
  border-radius: 12px;
  padding: 25px;
}

.rule-card h5 {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.rule-card ul {
  list-style: none;
}

.rule-card ul li {
  color: var(--gray-light);
  font-size: 0.9rem;
  padding: 8px 0;
  padding-right: 20px;
  position: relative;
}

.rule-card ul li::before {
  content: "•";
  color: var(--gold);
  position: absolute;
  right: 0;
}

/* Ichimoku Components */
.ichimoku-components {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 40px 0;
}

.ichi-component {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--black-lighter);
  border-radius: 10px;
  padding: 20px;
}

.ichi-line {
  width: 40px;
  height: 4px;
  border-radius: 2px;
}

.ichi-line.tenkan {
  background: #3b82f6;
}

.ichi-line.kijun {
  background: #ef4444;
}

.ichi-line.senkou-a {
  background: #22c55e;
}

.ichi-line.senkou-b {
  background: #f59e0b;
}

.ichi-line.chikou {
  background: #8b5cf6;
}

.ichi-info h5 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 5px;
}

.ichi-info p {
  color: var(--gray-light);
  font-size: 0.85rem;
}

.ichi-signals {
  margin-top: 40px;
}

.ichi-signals h3 {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 25px;
}

.signals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.signal-card {
  background: var(--black-lighter);
  border-radius: 12px;
  padding: 25px;
}

.signal-card.bullish {
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.signal-card.bearish {
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.signal-card h5 {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.signal-card.bullish h5 {
  color: var(--green);
}

.signal-card.bearish h5 {
  color: var(--red);
}

.signal-card ul {
  list-style: none;
}

.signal-card ul li {
  color: var(--gray-light);
  font-size: 0.9rem;
  padding: 8px 0;
  padding-right: 20px;
  position: relative;
}

.signal-card ul li::before {
  content: "✓";
  position: absolute;
  right: 0;
}

.signal-card.bullish ul li::before {
  color: var(--green);
}

.signal-card.bearish ul li::before {
  color: var(--red);
}

/* Price Action */
.price-action-concepts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.pa-concept {
  background: var(--black-lighter);
  border: 1px solid rgba(201, 169, 97, 0.1);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.pa-concept:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
}

.pa-icon {
  width: 60px;
  height: 60px;
  background: rgba(201, 169, 97, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.pa-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--gold);
}

.pa-concept h5 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 10px;
}

.pa-concept p {
  color: var(--gray-light);
  font-size: 0.9rem;
}

/* Strategy Steps */
.strategy-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 40px 0;
}

.strategy-step {
  display: flex;
  gap: 20px;
  background: var(--black-lighter);
  border-radius: 12px;
  padding: 25px;
  position: relative;
}

.strategy-step::before {
  content: "";
  position: absolute;
  top: 70px;
  right: 44px;
  width: 2px;
  height: calc(100% + 20px);
  background: rgba(201, 169, 97, 0.2);
}

.strategy-step:last-child::before {
  display: none;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-content h5 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--gray-light);
  font-size: 0.95rem;
}

/* Strategy Calculator */
.strategy-calculator {
  background: var(--black-lighter);
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-radius: 15px;
  padding: 30px;
  margin: 40px 0;
}

.strategy-calculator h3 {
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 25px;
  text-align: center;
}

.calculator-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 20px;
  align-items: end;
}

.calc-input {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-input label {
  color: var(--gray-light);
  font-size: 0.9rem;
}

.calc-input input {
  background: rgba(10, 10, 10, 0.5);
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-radius: 8px;
  padding: 12px 15px;
  color: var(--white);
  font-family: "Vazirmatn", sans-serif;
  font-size: 1rem;
  direction: ltr;
  text-align: left;
}

.calc-input input:focus {
  outline: none;
  border-color: var(--gold);
}

.calc-btn {
  background: var(--gold);
  color: var(--black);
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-family: "Vazirmatn", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.calc-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.calc-result {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
  padding: 20px;
  background: rgba(201, 169, 97, 0.1);
  border-radius: 10px;
}

.result-label {
  color: var(--gray-light);
  font-size: 1rem;
}

.result-value {
  color: var(--gold);
  font-size: 2rem;
  font-weight: 700;
}

/* Mistakes Grid */
.mistakes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.mistake-card {
  background: var(--black-lighter);
  border: 1px solid rgba(239, 68, 68, 0.1);
  border-radius: 12px;
  padding: 25px;
  position: relative;
}

.mistake-number {
  position: absolute;
  top: -15px;
  right: 20px;
  width: 35px;
  height: 35px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
}

.mistake-card h5 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 10px;
  margin-top: 10px;
}

.mistake-card p {
  color: var(--gray-light);
  font-size: 0.9rem;
}

/* Conclusion Section */
.conclusion-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--black-light) 0%, var(--black) 100%);
}

.conclusion-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.conclusion-content h2 {
  color: var(--gold);
  font-size: 2rem;
  margin-bottom: 20px;
}

.conclusion-content p {
  color: var(--gray-light);
  font-size: 1.1rem;
  line-height: 2;
  margin-bottom: 40px;
}

.conclusion-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
  padding: 15px 35px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  padding: 15px 35px;
  border-radius: 30px;
  border: 2px solid var(--gold);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(201, 169, 97, 0.1);
  transform: translateY(-3px);
}


/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-stats {
    gap: 30px;
  }

  .anatomy-content {
    grid-template-columns: 1fr;
  }

  .sr-visualization {
    grid-template-columns: 1fr;
  }

  .oscillators-showcase {
    grid-template-columns: 1fr;
  }

  .elliott-rules {
    grid-template-columns: 1fr;
  }

  .signals-grid {
    grid-template-columns: 1fr;
  }

  .divergence-types {
    grid-template-columns: 1fr;
  }

  .extension-levels {
    grid-template-columns: 1fr;
  }

  .calculator-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar .container {
    flex-direction: column;
    gap: 15px;
  }

  .nav-links {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .stat-item {
    flex: 0 0 45%;
  }

  .chapter-title {
    font-size: 1.8rem;
  }

  .toc-grid {
    grid-template-columns: 1fr;
  }

  .comparison-table {
    overflow-x: auto;
  }

  .comparison-header,
  .comparison-row {
    min-width: 500px;
  }

  .candlestick-patterns-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .pattern-card.wide {
    grid-column: span 1;
  }

  .conclusion-cta {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .chapter {
    padding: 60px 0;
  }

  .chapter-title {
    font-size: 1.5rem;
  }

  .lead-text {
    font-size: 1rem;
  }
}
