/* Money Management Guide Styles */

:root {
  --gold: #c9a961;
  --gold-light: #e8d5a3;
  --gold-dark: #8b7355;
  --dark-bg: #0a0a0b;
  --dark-card: #111113;
  --dark-elevated: #1a1a1d;
  --dark-border: #2a2a2e;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a5;
  --text-muted: #6a6a70;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
}


body {
  font-family: "Vazirmatn", sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-primary);
  direction: rtl;
  line-height: 1.8;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Reading Progress */
.reading-progress {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: var(--dark-border);
  z-index: 1000;
}

.reading-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  width: 0%;
  transition: width 0.1s;
}


/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-particles {
  position: absolute;
  inset: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, var(--dark-bg) 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 169, 97, 0.1);
  border: 1px solid var(--gold);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 25px;
  animation: fadeInUp 0.6s ease;
}

.hero-badge svg {
  stroke: var(--gold);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 50px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.stat-item {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 25px;
  transition: all 0.3s;
}

.stat-item:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: rgba(201, 169, 97, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  stroke: var(--gold);
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Table of Contents */
.toc-section {
  padding: 80px 0;
  background: var(--dark-card);
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
}

.toc-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.toc-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.5rem;
  margin-bottom: 40px;
  color: var(--gold);
}

.toc-title svg {
  stroke: var(--gold);
}

.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(--dark-elevated);
  border: 1px solid var(--dark-border);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s;
}

.toc-item:hover {
  border-color: var(--gold);
  background: rgba(201, 169, 97, 0.05);
  transform: translateX(-5px);
}

.toc-number {
  width: 32px;
  height: 32px;
  background: rgba(201, 169, 97, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--gold);
  font-size: 0.9rem;
}

.toc-text {
  color: var(--text-primary);
  font-weight: 500;
}

/* Chapter Styles */
.chapter {
  padding: 100px 0;
}

.chapter-dark {
  background: var(--dark-card);
}

.chapter-header {
  text-align: center;
  margin-bottom: 60px;
}

.chapter-number {
  font-size: 4rem;
  font-weight: 800;
  color: rgba(201, 169, 97, 0.15);
  margin-bottom: -20px;
}

.chapter-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
}

.chapter-content {
  max-width: 900px;
  margin: 0 auto;
}

.lead-text {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 2;
}

/* Definition Box */
.definition-box {
  display: flex;
  gap: 20px;
  background: var(--dark-elevated);
  border: 1px solid var(--dark-border);
  border-right: 4px solid var(--gold);
  border-radius: 12px;
  padding: 25px;
  margin: 30px 0;
}

.definition-icon {
  width: 50px;
  height: 50px;
  background: rgba(201, 169, 97, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.definition-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold);
}

.definition-content h4 {
  color: var(--gold);
  margin-bottom: 10px;
}

.definition-content p {
  color: var(--text-secondary);
}

/* Image Placeholder */
.image-placeholder {
  background: var(--dark-elevated);
  border-radius: 16px;
  text-align: center;
  margin: 40px 0;
}

.image-placeholder.large {
  padding: 80px;
}

.placeholder-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  opacity: 0.3;
}

.image-placeholder img {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 12px;
    margin: 0 auto;
    box-shadow: 0 14px 36px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.03);
    object-fit: contain;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.image-placeholder span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Components Grid */
.components-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.component-card {
  background: var(--dark-elevated);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s;
}

.component-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.component-icon {
  width: 45px;
  height: 45px;
  background: rgba(201, 169, 97, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.component-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold);
}

.component-card h4 {
  color: var(--text-primary);
  margin-bottom: 8px;
}

.component-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Stats Showcase */
.stats-showcase {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin: 50px 0;
}

.showcase-item {
  text-align: center;
}

.showcase-circle {
  width: 150px;
  height: 150px;
  position: relative;
  margin: 0 auto 20px;
}

.showcase-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circle-bg {
  fill: none;
  stroke: var(--dark-border);
  stroke-width: 8;
}

.circle-progress {
  fill: none;
  stroke: var(--danger);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: calc(283 - (283 * var(--progress)) / 100);
  transition: stroke-dashoffset 1s ease;
}

.circle-progress.success {
  stroke: var(--success);
}

.circle-progress.warning {
  stroke: var(--warning);
}

.showcase-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.showcase-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 150px;
}

/* Comparison Table */
.comparison-table {
  margin: 50px 0;
}

.comparison-table h3 {
  color: var(--gold);
  margin-bottom: 10px;
}

.table-desc {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--dark-elevated);
  border-radius: 12px;
  overflow: hidden;
}

thead {
  background: rgba(201, 169, 97, 0.1);
}

th {
  padding: 15px 20px;
  text-align: right;
  color: var(--gold);
  font-weight: 600;
}

td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--dark-border);
  color: var(--text-secondary);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(201, 169, 97, 0.03);
}

.difficulty {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.difficulty.easy {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.difficulty.medium {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.difficulty.hard {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.difficulty.extreme {
  background: rgba(239, 68, 68, 0.2);
  color: #ff6b6b;
}

/* Risk Cards */
.risk-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.risk-card {
  background: var(--dark-elevated);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 25px;
  transition: all 0.3s;
}

.risk-card:hover {
  transform: translateY(-5px);
}

.risk-card.market:hover {
  border-color: var(--info);
}
.risk-card.liquidity:hover {
  border-color: #06b6d4;
}
.risk-card.leverage:hover {
  border-color: var(--danger);
}
.risk-card.emotional:hover {
  border-color: #f472b6;
}
.risk-card.systematic:hover {
  border-color: #8b5cf6;
}
.risk-card.geopolitical:hover {
  border-color: var(--warning);
}

.risk-icon {
  width: 50px;
  height: 50px;
  background: rgba(201, 169, 97, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.risk-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold);
}

.risk-card h4 {
  color: var(--text-primary);
  margin-bottom: 10px;
}

.risk-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.risk-card ul {
  list-style: none;
}

.risk-card li {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 3px 0;
  padding-right: 15px;
  position: relative;
}

.risk-card li::before {
  content: "•";
  position: absolute;
  right: 0;
  color: var(--gold);
}

/* Formula Box */
.formula-box {
  background: var(--dark-elevated);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 30px;
  margin: 40px 0;
  text-align: center;
}

.formula-box h4 {
  color: var(--gold);
  margin-bottom: 20px;
}

.formula {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 1.2rem;
}

.formula-part {
  color: var(--text-primary);
  font-weight: 600;
}

.formula-equals {
  color: var(--gold);
  font-size: 1.5rem;
}

.formula-fraction {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.numerator {
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  color: var(--success);
}

.denominator {
  padding-top: 8px;
  color: var(--danger);
}

/* Example Box */
.example-box {
  background: var(--dark-elevated);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 30px;
  margin: 30px 0;
}

.example-box h4 {
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.example-content ul {
  list-style: none;
  margin: 15px 0;
}

.example-content li {
  color: var(--text-secondary);
  padding: 5px 0;
  padding-right: 20px;
  position: relative;
}

.example-content li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--gold);
}

.calculation {
  background: rgba(201, 169, 97, 0.05);
  border-radius: 10px;
  padding: 20px;
  margin-top: 15px;
}

.calculation p {
  color: var(--text-secondary);
  margin: 8px 0;
}

.calculation strong {
  color: var(--gold);
}

/* Rules Grid */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.rule-item {
  display: flex;
  gap: 20px;
  background: var(--dark-elevated);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s;
}

.rule-item:hover {
  border-color: var(--gold);
}

.rule-number {
  width: 40px;
  height: 40px;
  background: rgba(201, 169, 97, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

.rule-content h5 {
  color: var(--text-primary);
  margin-bottom: 5px;
}

.rule-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Risk Reward Visualizer */
.rr-visualizer {
  background: var(--dark-elevated);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 30px;
  margin: 40px 0;
  text-align: center;
}

.rr-visualizer h4 {
  color: var(--gold);
  margin-bottom: 30px;
}

.rr-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 30px;
  height: 200px;
  margin-bottom: 20px;
}

.rr-bar {
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  border-radius: 8px 8px 0 0;
  transition: all 0.3s;
}

.rr-bar.risk {
  height: 60px;
  background: linear-gradient(to top, var(--danger), #ff6b6b);
}

.rr-bar.reward {
  height: calc(60px * var(--reward-ratio));
  background: linear-gradient(to top, var(--success), #34d399);
}

.rr-label {
  color: white;
  font-size: 0.85rem;
  padding: 10px;
}

.rr-value {
  position: absolute;
  bottom: -30px;
  font-weight: 700;
  color: var(--text-primary);
}

.rr-result {
  color: var(--text-secondary);
  margin-top: 40px;
}

/* RR Table */
.rr-table-section {
  margin: 50px 0;
}

.rr-table-section h3 {
  color: var(--gold);
  margin-bottom: 10px;
}

.rr-table-section p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.tag.warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.tag.good {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.tag.excellent {
  background: rgba(201, 169, 97, 0.1);
  color: var(--gold);
}

/* Tip Box */
.tip-box {
  display: flex;
  gap: 20px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid var(--success);
  border-radius: 12px;
  padding: 25px;
  margin: 30px 0;
}

.tip-icon {
  width: 50px;
  height: 50px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tip-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--success);
}

.tip-content h4 {
  color: var(--success);
  margin-bottom: 10px;
}

.tip-content p {
  color: var(--text-secondary);
}

/* Warning Box */
.warning-box {
  display: flex;
  gap: 20px;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid var(--danger);
  border-radius: 12px;
  padding: 25px;
  margin: 30px 0;
}

.warning-icon {
  width: 50px;
  height: 50px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.warning-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--danger);
}

.warning-content h4 {
  color: var(--danger);
  margin-bottom: 10px;
}

.warning-content p {
  color: var(--text-secondary);
}

/* Stop Loss / Take Profit Grid */
.sl-tp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin: 40px 0;
}

.sl-tp-card {
  background: var(--dark-elevated);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 30px;
  transition: all 0.3s;
}

.sl-tp-card.stop-loss:hover {
  border-color: var(--danger);
}

.sl-tp-card.take-profit:hover {
  border-color: var(--success);
}

.sl-tp-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.sl-tp-card.stop-loss .sl-tp-icon {
  background: rgba(239, 68, 68, 0.1);
}

.sl-tp-card.stop-loss .sl-tp-icon svg {
  stroke: var(--danger);
}

.sl-tp-card.take-profit .sl-tp-icon {
  background: rgba(16, 185, 129, 0.1);
}

.sl-tp-card.take-profit .sl-tp-icon svg {
  stroke: var(--success);
}

.sl-tp-icon svg {
  width: 28px;
  height: 28px;
}

.sl-tp-card h3 {
  color: var(--text-primary);
  margin-bottom: 10px;
}

.sl-tp-card > p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.sl-tp-card h4 {
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.sl-tp-card ul {
  list-style: none;
}

.sl-tp-card li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 8px 0;
  padding-right: 15px;
  position: relative;
  border-bottom: 1px solid var(--dark-border);
}

.sl-tp-card li:last-child {
  border-bottom: none;
}

.sl-tp-card li::before {
  content: "→";
  position: absolute;
  right: 0;
  color: var(--gold);
}

/* Strategies Accordion */
.strategies-accordion {
  margin: 40px 0;
}

.strategy-item {
  background: var(--dark-elevated);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s;
}

.strategy-item:hover {
  border-color: var(--gold);
}

.strategy-item.active {
  border-color: var(--gold);
}

.strategy-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: right;
}

.strategy-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.strategy-number {
  width: 35px;
  height: 35px;
  background: rgba(201, 169, 97, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--gold);
}

.strategy-info h4 {
  color: var(--text-primary);
  font-weight: 600;
}

.strategy-arrow {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
  transition: transform 0.3s;
}

.strategy-item.active .strategy-arrow {
  transform: rotate(180deg);
  stroke: var(--gold);
}

.strategy-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.strategy-item.active .strategy-content {
  max-height: 500px;
}

.strategy-content > p {
  padding: 0 25px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.formula-mini {
  background: rgba(201, 169, 97, 0.05);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 15px;
  margin: 0 25px 20px;
  font-family: monospace;
  color: var(--gold);
  text-align: center;
}

.formula-mini small {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-family: "Vazirmatn", sans-serif;
}

.danger-badge {
  display: inline-block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin: 0 25px 20px;
}

.pros-cons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 0 25px 25px;
}

.pros,
.cons {
  background: var(--dark-card);
  border-radius: 10px;
  padding: 15px;
}

.pros h5 {
  color: var(--success);
  margin-bottom: 10px;
}

.cons h5 {
  color: var(--danger);
  margin-bottom: 10px;
}

.pros ul,
.cons ul {
  list-style: none;
}

.pros li,
.cons li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 5px 0;
  padding-right: 15px;
  position: relative;
}

.pros li::before {
  content: "+";
  position: absolute;
  right: 0;
  color: var(--success);
  font-weight: 700;
}

.cons li::before {
  content: "-";
  position: absolute;
  right: 0;
  color: var(--danger);
  font-weight: 700;
}

/* Drawdown Visual */
.drawdown-visual {
  background: var(--dark-elevated);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 30px;
  margin: 40px 0;
}

.drawdown-visual h4 {
  color: var(--gold);
  margin-bottom: 20px;
  text-align: center;
}

.drawdown-chart {
  height: 200px;
  position: relative;
}

/* Drawdown Types */
.drawdown-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.dd-type {
  background: var(--dark-elevated);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 20px;
}

.dd-type h4 {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 10px;
}

.dd-type p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Limits Grid */
.dd-limits {
  margin: 50px 0;
}

.dd-limits h3 {
  color: var(--gold);
  margin-bottom: 30px;
  text-align: center;
}

.limits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.limit-item {
  background: var(--dark-elevated);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s;
}

.limit-item:hover {
  transform: translateY(-5px);
}

.limit-item.safe {
  border-top: 4px solid var(--success);
}

.limit-item.warning {
  border-top: 4px solid var(--warning);
}

.limit-item.danger {
  border-top: 4px solid var(--danger);
}

.limit-item.critical {
  border-top: 4px solid #ff6b6b;
}

.limit-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.limit-item.safe .limit-value {
  color: var(--success);
}
.limit-item.warning .limit-value {
  color: var(--warning);
}
.limit-item.danger .limit-value {
  color: var(--danger);
}
.limit-item.critical .limit-value {
  color: #ff6b6b;
}

.limit-label {
  font-weight: 600;
  margin-bottom: 10px;
}

.limit-item.safe .limit-label {
  color: var(--success);
}
.limit-item.warning .limit-label {
  color: var(--warning);
}
.limit-item.danger .limit-label {
  color: var(--danger);
}
.limit-item.critical .limit-label {
  color: #ff6b6b;
}

.limit-item p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Emotions Wheel */
.emotions-wheel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin: 40px 0;
}

.emotion-item {
  background: var(--dark-elevated);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 25px;
  transition: all 0.3s;
}

.emotion-item:hover {
  transform: translateY(-5px);
}

.emotion-item.fear:hover {
  border-color: #3b82f6;
}
.emotion-item.greed:hover {
  border-color: var(--gold);
}
.emotion-item.revenge:hover {
  border-color: var(--danger);
}
.emotion-item.fomo:hover {
  border-color: var(--warning);
}
.emotion-item.overconfidence:hover {
  border-color: #8b5cf6;
}
.emotion-item.hope:hover {
  border-color: #f472b6;
}

.emotion-icon {
  width: 50px;
  height: 50px;
  background: rgba(201, 169, 97, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.emotion-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold);
}

.emotion-item h4 {
  color: var(--text-primary);
  margin-bottom: 10px;
}

.emotion-item > p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.solution {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid var(--success);
  border-radius: 8px;
  padding: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.solution strong {
  color: var(--success);
}

/* Calculators Grid */
.calculators-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin: 40px 0;
}

.calculator-card {
  background: var(--dark-elevated);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 25px;
}

.calculator-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.calculator-card h3 svg {
  stroke: var(--gold);
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-group input {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  padding: 12px 15px;
  color: var(--text-primary);
  font-family: "Vazirmatn", sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--gold);
}

.calc-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border: none;
  border-radius: 8px;
  padding: 12px;
  color: var(--dark-bg);
  font-family: "Vazirmatn", sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.calc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(201, 169, 97, 0.3);
}

.calc-result {
  background: var(--dark-card);
  border-radius: 10px;
  padding: 15px;
  margin-top: 10px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--dark-border);
}

.result-item:last-child {
  border-bottom: none;
}

.result-item.highlight {
  background: rgba(201, 169, 97, 0.05);
  margin: -8px -15px;
  padding: 12px 15px;
  border-radius: 8px;
}

.result-label {
  color: var(--text-secondary);
}

.result-value {
  color: var(--gold);
  font-weight: 600;
}

/* Mistakes List */
.mistakes-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 40px 0;
}

.mistake-item {
  display: flex;
  gap: 20px;
  background: var(--dark-elevated);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s;
}

.mistake-item:hover {
  border-color: var(--danger);
}

.mistake-number {
  width: 45px;
  height: 45px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--danger);
  flex-shrink: 0;
  font-size: 1.2rem;
}

.mistake-content h4 {
  color: var(--text-primary);
  margin-bottom: 8px;
}

.mistake-content > p {
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.mistake-solution {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid var(--success);
  border-radius: 8px;
  padding: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.mistake-solution strong {
  color: var(--success);
}

/* Golden Rules Grid */
.golden-rules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.golden-rule {
  background: var(--dark-elevated);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s;
}

.golden-rule:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
}

.golden-rule .rule-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 15px;
}

.golden-rule .rule-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--gold);
}

.golden-rule h4 {
  color: var(--gold);
  margin-bottom: 10px;
}

.golden-rule p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Final Quote */
.final-quote {
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.1), rgba(201, 169, 97, 0.05));
  border: 1px solid var(--gold);
  border-radius: 20px;
  padding: 40px;
  margin-top: 60px;
  text-align: center;
}

.final-quote blockquote {
  font-size: 1.4rem;
  color: var(--text-primary);
  font-style: italic;
  line-height: 2;
}

.final-quote cite {
  display: block;
  margin-top: 20px;
  color: var(--gold);
  font-style: normal;
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.1), transparent);
  text-align: center;
}

.cta-content h2 {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 15px;
}

.cta-content p {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--dark-bg);
  padding: 15px 35px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(201, 169, 97, 0.3);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 13px 33px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: rgba(201, 169, 97, 0.1);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .risk-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .limits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .golden-rules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .toc-grid {
    grid-template-columns: 1fr;
  }

  .components-grid,
  .rules-grid,
  .sl-tp-grid,
  .calculators-grid {
    grid-template-columns: 1fr;
  }

  .risk-cards,
  .emotions-wheel,
  .drawdown-types {
    grid-template-columns: 1fr;
  }

  .stats-showcase {
    flex-direction: column;
    gap: 30px;
  }

  .limits-grid {
    grid-template-columns: 1fr;
  }

  .golden-rules-grid {
    grid-template-columns: 1fr;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
  }
}
