/* ========================================
   AI STOCK ANALYSTS - STYLESHEET
   ======================================== */

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

html {
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  overflow-x: hidden;
  position: relative;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  padding: 20px 8%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(90deg, #22d3ee, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav a {
  color: #cbd5e1;
  margin-left: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

nav a:hover {
  color: #22d3ee;
}

nav a.active {
  color: #22d3ee;
  font-weight: 600;
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 100px 8%;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, #22d3ee, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  margin-top: 20px;
  font-size: 1.2rem;
  color: #94a3b8;
}

.hero button {
  margin-top: 30px;
  padding: 15px 35px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(90deg, #22d3ee, #3b82f6);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.4s;
}

.hero button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(59,130,246,0.6);
}

/* ===== GENERAL SECTION STYLES ===== */
.section {
  padding: 80px 8%;
}

.section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
}

.section-description {
  text-align: center;
  max-width: 900px;
  margin: -30px auto 50px;
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 1.6;
}

.section-description.compact {
  max-width: 800px;
}

/* ===== CARD SYSTEM ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 30px;
  border-radius: 20px;
  transition: 0.4s;
  border: 1px solid rgba(255,255,255,0.08);
  min-height: 200px;
  transform: translateZ(0);
  will-change: transform;
  contain: layout style;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px rgba(59,130,246,0.4);
}

.card.clickable {
  cursor: pointer;
}

.card.clickable:active {
  transform: translateY(-5px);
}

.card h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
  color: #22d3ee;
}

.card p {
  color: #cbd5e1;
  line-height: 1.6;
}

/* ===== STOCK SELECTOR ===== */
.stock-selector-container {
  margin-bottom: 25px;
  position: relative;
  display: flex;
  justify-content: center;
}

.stock-selector {
  width: 100%;
  max-width: 400px;
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(34, 211, 238, 0.15)) no-repeat 0 0 / 100% 100%,
              url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgb(34, 211, 238)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 12px center / 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 45px;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.stock-selector:hover {
  border-color: rgba(34, 211, 238, 0.5);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(34, 211, 238, 0.2)) no-repeat 0 0 / 100% 100%,
              url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgb(34, 211, 238)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 12px center / 20px;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
  transform: translateY(-2px);
}

.stock-selector:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2), 0 6px 20px rgba(59, 130, 246, 0.35);
}

.stock-selector option {
  background: #1e293b;
  color: #ffffff;
  padding: 12px;
  font-weight: 600;
}

.stock-selector option:hover {
  background: rgba(59, 130, 246, 0.2);
}

/* ===== STOCK LAYOUT & INFO ===== */
.stock-layout {
  display: flex;
  gap: 30px;
  align-items: stretch;
  flex-wrap: wrap;
}

.stock-info {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
}

.stock-chart-section {
  flex: 2;
  min-width: 450px;
  display: flex;
  flex-direction: column;
}

.stock-chart-section .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.stock-info .stock-selector-container {
  flex-shrink: 0;
}

.stock-info #stockResult {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.combined-stock-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(59, 130, 246, 0.03));
  border-left: 4px solid #3b82f6;
  border-radius: 15px;
}

.stock-title {
  color: #3b82f6;
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-weight: bold;
}

.stock-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

/* ===== AI SECTION ===== */
.ai-section {
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  padding-top: 15px;
  margin-top: 15px;
}

.ai-section h4 {
  color: #22d3ee;
  margin: 0 0 10px 0;
  font-size: 1.1rem;
}

/* ===== CHART CONTAINER ===== */
.chart-container {
  position: relative;
  flex: 1;
  min-height: 380px;
  width: 100%;
}

.chart-canvas {
  width: 100% !important;
  height: 100% !important;
  max-height: 420px;
}

/* ===== PRICE ANALYSIS SECTION ===== */
.price-analysis-container {
  max-width: 1200px;
  margin: 0 auto;
}

.price-analysis-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
}

.indicators-panel {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  transform: translateZ(0);
  contain: layout style;
}

.indicators-panel h3 {
  color: #22d3ee;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.indicator-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.indicator-item {
  background: rgba(255,255,255,0.03);
  padding: 8px;
  border-radius: 10px;
  border-left: 3px solid #3b82f6;
  transition: 0.3s;
}

.indicator-item:hover {
  background: rgba(255,255,255,0.08);
  transform: translateX(5px);
}

.indicator-name {
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.indicator-value {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.indicator-signal {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
}

.signal-buy {
  background: rgba(34, 211, 238, 0.2);
  color: #22d3ee;
}

.signal-sell {
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
}

.signal-neutral {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.price-chart-panel {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(34, 211, 238, 0.05));
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 12px;
  border: 2px solid rgba(59, 130, 246, 0.3);
  transform: translateZ(0);
  contain: layout style;
}

.price-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.price-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e2e8f0;
}

.price-current {
  font-size: 1.85rem;
  font-weight: 800;
  color: #22d3ee;
}

.price-change-badge {
  font-size: 1.05rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
}

.price-change-badge.positive {
  background: rgba(34, 211, 238, 0.2);
  color: #22d3ee;
}

.price-change-badge.negative {
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
}

.technical-summary {
  background: rgba(15, 23, 42, 0.6);
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.summary-label {
  color: #94a3b8;
  font-size: 0.95rem;
}

.summary-value {
  color: #e2e8f0;
  font-weight: 600;
  font-size: 1rem;
}

.ai-signal-box {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}

.ai-signal-box h4 {
  color: #22d3ee;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.signal-recommendation {
  font-size: 1.85rem;
  font-weight: 800;
  margin: 6px 0;
}

.signal-recommendation.buy {
  color: #22d3ee;
}

.signal-recommendation.sell {
  color: #f87171;
}

.signal-confidence {
  color: #cbd5e1;
  font-size: 1rem;
  margin-top: 4px;
}

/* ===== FUNDAMENTAL ANALYSIS SECTION ===== */
.fundamental-container {
  max-width: 1100px;
  margin: 0 auto;
}

.fundamental-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 25px;
}

.fundamental-info {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 25px;
  border: 1px solid rgba(255,255,255,0.08);
  transform: translateZ(0);
  contain: layout style;
}

.fundamental-metrics {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(34, 211, 238, 0.05));
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 25px;
  border: 2px solid rgba(59, 130, 246, 0.3);
  transform: translateZ(0);
  contain: layout style;
}

.fundamental-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #22d3ee;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fundamental-subtitle {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.fundamental-info h4 {
  color: #e2e8f0;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.fundamental-info ul {
  list-style: none;
  padding: 0;
}

.fundamental-info li {
  color: #cbd5e1;
  padding: 6px 0;
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
  font-size: 1rem;
}

.fundamental-info li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #22d3ee;
  font-weight: bold;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.metric-box {
  background: rgba(15, 23, 42, 0.6);
  padding: 14px;
  border-radius: 10px;
  border-left: 3px solid #3b82f6;
  transition: 0.3s;
}

.metric-box:hover {
  background: rgba(15, 23, 42, 0.8);
  transform: translateX(5px);
}

.metric-box-label {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-box-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #22d3ee;
  margin-bottom: 4px;
}

.metric-box-change {
  font-size: 0.8rem;
  font-weight: 600;
}

.metric-box-change.positive {
  color: #22d3ee;
}

.metric-box-change.negative {
  color: #f87171;
}

.fundamental-score {
  margin-top: 18px;
  padding: 15px;
  background: rgba(34, 211, 238, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  text-align: center;
}

.score-label {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.score-value {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(90deg, #22d3ee, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.score-description {
  color: #e2e8f0;
  font-size: 0.85rem;
}

/* ===== MARKET PREDICTION SECTION ===== */
.prediction-container {
  max-width: 1000px;
  margin: 0 auto;
}

.prediction-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.prediction-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: 0.4s;
  min-height: 160px;
  transform: translateZ(0);
  will-change: transform;
  contain: layout style;
}

.prediction-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(59,130,246,0.3);
}

.prediction-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.prediction-icon {
  font-size: 1.6rem;
}

.prediction-label {
  font-size: 0.8rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prediction-value {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.prediction-value.bullish {
  color: #22d3ee;
}

.prediction-value.bearish {
  color: #f87171;
}

.prediction-value.neutral {
  color: #fbbf24;
}

.prediction-description {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.live-prediction-box {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(34, 211, 238, 0.05));
  border-radius: 20px;
  padding: 25px;
  border: 2px solid rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.live-prediction-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(59,130,246,0.2), transparent);
  border-radius: 50%;
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

.live-badge {
  display: inline-block;
  background: #22d3ee;
  color: #0f172a;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 15px;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.prediction-example-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 15px;
}

.prediction-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  position: relative;
  z-index: 1;
}

.metric-item {
  background: rgba(15, 23, 42, 0.6);
  padding: 12px 16px;
  border-radius: 10px;
  border-left: 3px solid #3b82f6;
}

.metric-label {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

.metric-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #22d3ee;
}

.ai-recommendation {
  margin-top: 18px;
  padding: 15px;
  background: rgba(34, 211, 238, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  position: relative;
  z-index: 1;
}

.ai-recommendation h4 {
  color: #22d3ee;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.ai-recommendation p {
  color: #e2e8f0;
  line-height: 1.5;
  font-size: 1rem;
}

/* ===== WINNERS & LOSERS SECTION ===== */
.winners-losers-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.winners-card, .losers-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: 0.4s;
  min-height: 300px;
  transform: translateZ(0);
  will-change: transform;
  contain: layout style;
}

.winners-card {
  border-left: 4px solid #22d3ee;
}

.losers-card {
  border-left: 4px solid #f87171;
}

.winners-card:hover, .losers-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(59,130,246,0.3);
}

.stock-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.stock-item {
  background: rgba(255,255,255,0.03);
  padding: 15px;
  border-radius: 12px;
  transition: 0.3s;
  border-left: 3px solid transparent;
}

.stock-item.winner {
  border-left-color: #22d3ee;
}

.stock-item.loser {
  border-left-color: #f87171;
}

.stock-item:hover {
  background: rgba(255,255,255,0.08);
  transform: translateX(5px);
}

.stock-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.stock-symbol {
  font-weight: 700;
  font-size: 1.1rem;
  color: #22d3ee;
}

.stock-name {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-left: 10px;
}

.stock-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stock-price {
  font-weight: 600;
  font-size: 1rem;
  color: #e2e8f0;
}

.stock-change {
  font-weight: 700;
  font-size: 1.1rem;
  padding: 4px 12px;
  border-radius: 8px;
}

.stock-change.positive {
  color: #22d3ee;
  background: rgba(34, 211, 238, 0.15);
}

.stock-change.negative {
  color: #f87171;
  background: rgba(248, 113, 113, 0.15);
}

/* ===== FAQ SECTION ===== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 12px;
  margin-bottom: 15px;
  border: 1px solid rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  transform: translateZ(0);
  contain: layout style;
}

.faq-item:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background 0.3s ease;
  user-select: none;
}

.faq-question:hover {
  background: rgba(59, 130, 246, 0.05);
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: #3b82f6;
  font-weight: bold;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  background: rgba(59, 130, 246, 0.02);
  padding: 0 20px 0 20px;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 20px 20px 20px;
}

.faq-answer p {
  margin: 0;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

/* ===== FOOTER ===== */
.footer {
  margin-top: auto;
  text-align: center;
  padding: 30px;
  background: rgba(255,255,255,0.03);
  color: #94a3b8;
}

.footer a {
  color: #22d3ee;
  text-decoration: none;
  transition: 0.3s;
}

.footer a:hover {
  color: #3b82f6;
}

/* ===== FLOATING ANIMATION ===== */
.floating-shape {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59,130,246,0.4), transparent);
  top: -100px;
  right: -100px;
  border-radius: 50%;
  animation: float 6s infinite alternate ease-in-out;
  pointer-events: none;
}

@keyframes float {
  from { transform: translateY(0px); }
  to { transform: translateY(40px); }
}

/* ===== LOGIN PAGE STYLES ===== */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 200px);
  padding: 50px 8%;
  position: relative;
  z-index: 10;
}

.login-box {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 50px 40px;
  max-width: 450px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.login-box h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #22d3ee, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.login-box p {
  color: #94a3b8;
  text-align: center;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  color: white;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 0.9rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
}

.remember-me input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #3b82f6;
}

.forgot-password {
  color: #22d3ee;
  text-decoration: none;
  transition: 0.3s;
}

.forgot-password:hover {
  color: #3b82f6;
}

.login-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #22d3ee, #3b82f6);
  color: white;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 20px;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.login-btn:active {
  transform: translateY(0);
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 12px 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  display: none;
}

.success-message {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
  padding: 12px 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  display: none;
}

/* ===== CONTACT PAGE STYLES ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(15px);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  height: fit-content;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: #22d3ee;
}

.contact-item {
  margin-bottom: 25px;
  padding: 20px;
  background: rgba(59, 130, 246, 0.05);
  border-radius: 12px;
  border-left: 4px solid #3b82f6;
}

.contact-item h4 {
  color: #3b82f6;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.contact-item p {
  color: #cbd5e1;
  line-height: 1.6;
  margin: 5px 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.contact-form {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(15px);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
}

.contact-form h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: #22d3ee;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #22d3ee, #3b82f6);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s ease;
  margin-top: 10px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59,130,246,0.4);
}

/* ===== IMPRESSUM PAGE STYLES ===== */
.container {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 8%;
}

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

.impressum-header h1 {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(90deg, #22d3ee, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
}

.impressum-header p {
  font-size: 1.1rem;
  color: #94a3b8;
}

.impressum-content {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.08);
}

.impressum-content h2 {
  font-size: 1.8rem;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #22d3ee;
}

.impressum-content h2:first-child {
  margin-top: 0;
}

.impressum-content p {
  line-height: 1.8;
  color: #cbd5e1;
  margin-bottom: 15px;
}

.impressum-content strong {
  color: #e2e8f0;
}

.impressum-content a {
  color: #22d3ee;
  text-decoration: none;
  transition: 0.3s;
}

.impressum-content a:hover {
  color: #3b82f6;
  text-decoration: underline;
}

/* ===== BROWSER COMPATIBILITY ===== */
/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(15px)) {
  .card,
  .winners-card,
  .losers-card,
  .faq-item {
    background: rgba(30, 41, 59, 0.85) !important;
  }
}

/* ========================================
   RESPONSIVE DESIGN - TABLET
   ======================================== */
@media (max-width: 968px) {
  .price-analysis-layout {
    grid-template-columns: 1fr;
  }
  
  .fundamental-grid {
    grid-template-columns: 1fr;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .floating-shape {
    display: none;
  }

  header {
    padding: 15px 5%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  nav {
    width: 100%;
    margin-top: 15px;
    text-align: center;
  }
  
  nav a {
    margin: 0 10px;
    font-size: 0.9rem;
  }
  
  .stock-selector {
    max-width: 100%;
    font-size: 0.95rem;
  }
  
  .container {
    padding: 30px 5%;
    margin: 40px auto;
  }
  
  .hero {
    padding: 60px 5%;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section {
    padding: 60px 5%;
  }
  
  .section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
  }
  
  .price-analysis-container,
  .fundamental-container,
  .prediction-container,
  .winners-losers-container {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .section-description {
    font-size: 1rem;
    margin: -20px auto 40px;
  }
  
  .stock-layout {
    flex-direction: column;
  }
  
  .stock-info,
  .stock-chart-section {
    min-width: 100%;
  }
  
  .winners-losers-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .winners-card, .losers-card {
    padding: 25px;
  }
  
  .indicators-panel,
  .price-chart-panel {
    padding: 18px;
  }
  
  .prediction-cards {
    grid-template-columns: 1fr;
  }
  
  .prediction-metrics {
    grid-template-columns: 1fr;
  }
  
  .stock-name {
    display: none;
  }
  
  .price-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .align-right {
    text-align: left;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
  }
  
  .impressum-header h1 {
    font-size: 2rem;
  }
  
  .impressum-content {
    padding: 25px;
  }

  #get-access > div {
    padding: 30px 20px !important;
  }

  #get-access .features-grid {
    grid-template-columns: 1fr !important;
  }

  #get-access .cta-button {
    padding: 15px 30px !important;
    font-size: 1rem !important;
  }
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE
   ======================================== */
@media (max-width: 480px) {
  .logo {
    font-size: 1.3rem;
  }

  nav a {
    margin: 0 5px;
    font-size: 0.85rem;
  }

  .hero {
    padding: 40px 5%;
  }

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

  .hero p {
    font-size: 0.9rem;
  }

  .container {
    padding: 25px 4%;
    margin: 30px auto;
  }
  
  .section {
    padding: 40px 5%;
  }

  .section h2 {
    font-size: 1.6rem;
  }
  
  .price-analysis-container,
  .fundamental-container,
  .prediction-container,
  .winners-losers-container {
    width: 92%;
    margin-left: auto;
    margin-right: auto;
  }

  .prediction-card {
    padding: 15px;
  }

  .prediction-value {
    font-size: 1.4rem;
  }

  .prediction-example-title {
    font-size: 1.2rem;
  }
  
  .winners-losers-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .winners-card, .losers-card {
    padding: 20px;
  }
  
  .section-description {
    font-size: 0.95rem;
    padding: 0 3%;
  }
  
  .indicators-panel,
  .price-chart-panel {
    padding: 15px;
  }
  
  .price-title {
    font-size: 1.3rem;
  }
  
  .price-current {
    font-size: 1.6rem;
  }
  
  .indicator-item {
    padding: 10px;
  }

  header {
    padding: 10px 3%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  nav {
    margin-top: 10px;
  }
  
  .contact-layout {
    padding: 0;
    gap: 30px;
    margin-bottom: 30px;
  }

  .contact-info,
  .contact-form {
    padding: 20px 15px;
    border-radius: 15px;
  }

  .contact-item {
    padding: 12px;
    margin-bottom: 15px;
  }

  .contact-item p {
    font-size: 0.85rem;
  }

  .contact-info h3,
  .contact-form h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }

  .contact-item h4 {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }

  .submit-btn {
    padding: 12px;
    font-size: 0.9rem;
  }
  
  .impressum-header h1 {
    font-size: 1.6rem;
  }

  .impressum-content {
    padding: 20px;
  }

  .impressum-content h2 {
    font-size: 1.3rem;
  }

  .impressum-content h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 20px 3%;
    margin: 20px auto;
  }
  
  .impressum-content {
    padding: 15px;
  }
  
  .impressum-content h2 {
    font-size: 1.2rem;
  }
  
  .contact-info,
  .contact-form {
    padding: 15px 10px;
  }

  .contact-item {
    padding: 10px;
    margin-bottom: 12px;
  }

  .contact-info h3,
  .contact-form h3 {
    font-size: 1.2rem;
  }

  .submit-btn {
    padding: 10px;
    font-size: 0.85rem;
  }
}

.realtime-section {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.05), rgba(59, 130, 246, 0.05));
  border-radius: 20px;
  padding: 50px 40px;
  margin: 60px auto;
  width: 90%;
  max-width: 1100px;
}

.realtime-header {
  text-align: center;
  margin-bottom: 40px;
}

.realtime-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.realtime-header p {
  font-size: 1.2rem;
  color: #94a3b8;
  line-height: 1.8;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 211, 238, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  margin: 20px auto;
  justify-content: center;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: #22d3ee;
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 10px #22d3ee;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

.realtime-visualization {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.ticker-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.6));
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 15px;
  padding: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.ticker-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #22d3ee, transparent);
  animation: scan 3s infinite;
}

@keyframes scan {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

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

.ticker-symbol {
  font-size: 1.3rem;
  font-weight: bold;
  color: #22d3ee;
}

.update-time {
  font-size: 0.75rem;
  color: #64748b;
  animation: fadeInOut 2s infinite;
}

@keyframes fadeInOut {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.ticker-price {
  font-size: 2rem;
  font-weight: bold;
  color: #e2e8f0;
  margin-bottom: 10px;
}

.ticker-change {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.ticker-change.positive {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.ticker-change.negative {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.data-points {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.data-row {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  font-size: 0.9rem;
}

.data-label {
  color: #94a3b8;
}

.data-value {
  color: #e2e8f0;
  font-weight: 600;
}

.algorithms-section {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(34, 211, 238, 0.05));
  border-radius: 20px;
  padding: 50px 40px;
  margin: 60px auto;
  width: 90%;
  max-width: 1100px;
}

.algorithms-header {
  text-align: center;
  margin-bottom: 40px;
}

.algorithms-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #3b82f6, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.algorithms-header p {
  font-size: 1.2rem;
  color: #94a3b8;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

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

.algorithm-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.algo-feature {
  background: rgba(15, 23, 42, 0.6);
  border-left: 3px solid #3b82f6;
  padding: 20px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.algo-feature h3 {
  color: #22d3ee;
  font-size: 1.2rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.algo-feature p {
  color: #cbd5e1;
  line-height: 1.6;
  font-size: 0.95rem;
}

.algorithm-visualization {
  position: relative;
  height: 500px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.6));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 15px;
  padding: 30px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ml-pipeline {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 100%;
}

.ml-stage {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.ml-stage-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #3b82f6, #22d3ee);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  }
  50% {
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.8);
  }
}

.ml-stage-content {
  flex: 1;
}

.ml-stage-title {
  color: #22d3ee;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.ml-stage-desc {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.5;
}

.ml-arrow {
  position: absolute;
  left: 40px;
  top: 90px;
  height: 40px;
  width: 2px;
  background: linear-gradient(180deg, #3b82f6, transparent);
  animation: flow 2s ease-in-out infinite;
}

@keyframes flow {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

.ml-arrow::after {
  content: '▼';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  color: #3b82f6;
  font-size: 1.2rem;
}

.algo-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  text-align: center;
}

.stat-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 10px;
  padding: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: bold;
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 5px;
}

.stat-label {
  color: #94a3b8;
  font-size: 0.9rem;
}

.insights-section {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.05), rgba(59, 130, 246, 0.05));
  border-radius: 20px;
  padding: 50px 40px;
  margin: 60px auto;
  width: 90%;
  max-width: 1100px;
}

.insights-header {
  text-align: center;
  margin-bottom: 40px;
}

.insights-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.insights-header p {
  font-size: 1.2rem;
  color: #94a3b8;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

.insights-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.signal-examples {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.signal-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.6));
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 15px;
  padding: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.signal-card.buy {
  border-left: 4px solid #10b981;
}

.signal-card.sell {
  border-left: 4px solid #ef4444;
}

.signal-card.hold {
  border-left: 4px solid #fbbf24;
}

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

.signal-type {
  font-size: 1.3rem;
  font-weight: bold;
}

.signal-type.buy {
  color: #10b981;
}

.signal-type.sell {
  color: #ef4444;
}

.signal-type.hold {
  color: #fbbf24;
}

.signal-stock {
  font-size: 1.1rem;
  color: #22d3ee;
  font-weight: 600;
}

.confidence-bar {
  margin: 15px 0;
}

.confidence-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.confidence-label span:first-child {
  color: #94a3b8;
}

.confidence-label span:last-child {
  color: #22d3ee;
  font-weight: 700;
}

.confidence-progress {
  height: 8px;
  background: rgba(30, 41, 59, 0.8);
  border-radius: 10px;
  overflow: hidden;
}

.confidence-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 1s ease-out;
  background: linear-gradient(90deg, #10b981, #22d3ee);
}

.confidence-fill.warning {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.confidence-fill.danger {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.signal-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  font-size: 0.85rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
}

.detail-label {
  color: #64748b;
}

.detail-value {
  color: #e2e8f0;
  font-weight: 600;
}

.insights-diagram {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.6));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 15px;
  padding: 30px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.insight-flow {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 15px 0;
}

.flow-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
}

.flow-content {
  flex: 1;
}

.flow-title {
  color: #22d3ee;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.flow-desc {
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.5;
}

.flow-arrow {
  text-align: center;
  color: #3b82f6;
  font-size: 1.5rem;
  margin: 0;
}

.insight-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 30px;
}

/* ===== RESPONSIVE DESIGN - TECHNOLOGY PAGE ===== */
@media (max-width: 968px) {
  .realtime-visualization {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .algorithm-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .algorithm-visualization {
    height: auto;
    min-height: 400px;
    padding: 25px;
  }
  
  .ml-stage {
    gap: 15px;
    margin-bottom: 20px;
  }
  
  .algo-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .insights-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .insight-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .insight-flow {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .flow-icon {
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
  }
  
  .realtime-section,
  .algorithms-section,
  .insights-section {
    padding: 45px 40px;
    margin: 50px auto;
    width: 95%;
    max-width: none;
    border: 1px solid rgba(34, 211, 238, 0.2);
  }
  
  .realtime-header h2,
  .algorithms-header h2,
  .insights-header h2 {
    font-size: 2.2rem;
  }
  
  header {
    flex-direction: column;
    padding: 20px;
    justify-content: center;
    align-items: center;
  }
  
  nav a {
    margin: 10px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .realtime-visualization {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .realtime-section,
  .algorithms-section,
  .insights-section {
    padding: 40px 30px;
    margin: 40px auto;
    width: 92%;
    max-width: none;
    border: 1px solid rgba(34, 211, 238, 0.15);
  }
  
  .realtime-header h2,
  .algorithms-header h2,
  .insights-header h2 {
    font-size: 2rem;
    margin-bottom: 12px;
  }
  
  .realtime-header p,
  .algorithms-header p,
  .insights-header p {
    font-size: 1.05rem;
    line-height: 1.6;
  }
  
  .ticker-card {
    padding: 18px;
  }
  
  .algorithm-visualization {
    height: auto;
    padding: 25px 20px;
  }
  
  .ml-stage {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    margin-bottom: 25px;
  }
  
  .ml-stage:last-child {
    margin-bottom: 0;
  }
  
  .ml-stage-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .ml-arrow {
    display: none;
  }
  
  .algo-stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .signal-card {
    padding: 18px;
  }
  
  .insight-flow {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .flow-icon {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }

  header {
    padding: 15px 5%;
  }
  
  nav {
    width: 100%;
    margin-top: 15px;
    text-align: center;
  }
  
  nav a {
    margin: 0 10px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.3rem;
  }

  nav a {
    margin: 0 5px;
    font-size: 0.85rem;
  }

  .hero {
    padding: 60px 5% 40px;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  .section h2,
  .realtime-header h2,
  .algorithms-header h2,
  .insights-header h2 {
    font-size: 1.6rem;
    line-height: 1.3;
  }
  
  .realtime-header p,
  .algorithms-header p,
  .insights-header p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .ticker-card {
    padding: 15px;
  }
  
  .ticker-symbol {
    font-size: 1.1rem;
  }
  
  .ticker-price {
    font-size: 1.5rem;
  }
  
  .algo-feature {
    padding: 15px;
  }
  
  .algo-feature h3 {
    font-size: 1rem;
  }
  
  .ml-stage {
    margin-bottom: 20px;
  }
  
  .ml-stage:last-child {
    margin-bottom: 0;
  }
  
  .ml-stage-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  .ml-stage-title {
    font-size: 0.95rem;
  }
  
  .ml-stage-desc {
    font-size: 0.8rem;
  }
  
  .stat-value {
    font-size: 1.8rem;
  }
  
  .stat-label {
    font-size: 0.85rem;
  }
  
  .algo-stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .signal-card {
    padding: 15px;
  }
  
  .signal-type {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
  
  .flow-step {
    padding: 15px;
  }
  
  .insight-flow {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .flow-icon {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
  
  .flow-title {
    font-size: 1rem;
  }
  
  .flow-desc {
    font-size: 0.8rem;
  }

  header {
    padding: 10px 3%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  nav {
    margin-top: 10px;
  }

  .section {
    padding: 40px 3%;
  }

  .realtime-section,
  .algorithms-section,
  .insights-section {
    padding: 30px 20px;
    margin: 30px auto;
    width: 90%;
    max-width: none;
    border: 1px solid rgba(34, 211, 238, 0.12);
  }
}

.success-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid #22d3ee;
  border-radius: 15px;
  padding: 25px 30px;
  box-shadow: 0 10px 40px rgba(34, 211, 238, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 10000;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  max-width: 400px;
}

.success-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.success-notification.hide {
  opacity: 0;
  transform: translateX(400px);
}

.success-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  animation: successPulse 1.5s infinite;
}

@keyframes successPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(34, 211, 238, 0);
  }
}

.success-content h4 {
  margin: 0 0 5px 0;
  color: #22d3ee;
  font-size: 1.1rem;
  font-weight: 700;
}

.success-content p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.4;
}

.success-close {
  width: 24px;
  height: 24px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: 10px;
}

.success-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .success-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    padding: 20px;
    transform: translateY(-200px);
  }
  
  .success-notification.show {
    transform: translateY(0);
  }
  
  .success-notification.hide {
    transform: translateY(-200px);
  }
  
  .success-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}