/* Investor Relations Page Styles */

/* Page Container */
.investor-page {
  background-color: #f8f9fa;
  min-height: 100vh;
}

/* Top Bar */
.investor-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.investor-top-bar .top-bar-logo a {
  font-size: 1.4em;
  font-weight: 700;
  color: #333;
  text-decoration: none;
}

.investor-top-bar .top-bar-actions {
  display: flex;
  gap: 20px;
}

.investor-top-bar .top-bar-link {
  color: #555;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.investor-top-bar .top-bar-link:hover {
  color: var(--color-primary);
}

.investor-top-bar .top-bar-login {
  background: var(--color-primary);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
}

.investor-top-bar .top-bar-login:hover {
  background: var(--color-primary-dark);
  color: white;
}

/* Hero Section */
.investor-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: white;
  padding: 80px 30px;
  text-align: center;
  margin-bottom: 0;
}

.investor-hero.compact {
  padding: 50px 30px;
}

.investor-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.investor-hero h1 {
  font-size: 3em;
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.investor-hero h1 .highlight {
  color: #4fc3f7;
}

.investor-hero-subtitle {
  font-size: 1.2em;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
  line-height: 1.6;
}

/* AI Disclaimer */
.ai-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  max-width: 900px;
  margin: -20px auto 30px;
  padding: 20px 25px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 12px;
  position: relative;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ai-disclaimer.prominent {
  background: linear-gradient(135deg, #fff3cd 0%, #ffe8a1 100%);
  border: 2px solid #ffc107;
}

.ai-disclaimer-icon {
  font-size: 2em;
  flex-shrink: 0;
}

.ai-disclaimer-content {
  font-size: 0.95em;
  line-height: 1.6;
  color: #856404;
}

.ai-disclaimer-content strong {
  color: #664d03;
}

/* Investor Groups Section */
.investor-groups-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 30px;
}

.investor-groups-section h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 10px;
  color: #333;
}

.section-subtitle {
  text-align: center;
  color: #666;
  font-size: 1.1em;
  margin-bottom: 40px;
}

.investor-groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.investor-group-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}

.investor-group-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--color-primary);
}

.investor-group-card.coming-soon {
  opacity: 0.7;
  cursor: default;
}

.investor-group-card.coming-soon:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.investor-group-icon {
  font-size: 2.5em;
  margin-bottom: 15px;
}

.investor-group-card h3 {
  font-size: 1.3em;
  margin: 0 0 10px 0;
  color: #333;
}

.investor-group-card p {
  font-size: 0.95em;
  color: #666;
  line-height: 1.6;
  flex-grow: 1;
}

.card-cta {
  display: inline-block;
  margin-top: 15px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.95em;
}

.coming-soon-badge {
  color: #999;
  font-style: italic;
}

/* Highlight New Card */
.investor-group-card.highlight-new {
  position: relative;
  background: linear-gradient(135deg, #f8f9ff 0%, #fff5f5 100%);
  border: 2px solid #667eea;
  animation: card-pulse 3s ease-in-out infinite;
}

.investor-group-card.highlight-new:hover {
  border-color: #764ba2;
  background: linear-gradient(135deg, #f0f2ff 0%, #fff0f5 100%);
}

@keyframes card-pulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
  }
  50% {
    box-shadow: 0 4px 25px rgba(102, 126, 234, 0.4), 0 0 0 3px rgba(102, 126, 234, 0.1);
  }
}

.investor-group-card .new-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
  color: white;
  font-size: 0.75em;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(238, 90, 90, 0.4);
  animation: badge-bounce 2s ease-in-out infinite;
}

@keyframes badge-bounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Stats Section */
.investor-stats-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 60px 30px;
  color: white;
}

.investor-stats-section h2 {
  text-align: center;
  font-size: 1.8em;
  margin-bottom: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.stat-box {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.stat-box .stat-number {
  display: block;
  font-size: 2.5em;
  font-weight: 700;
}

.stat-box .stat-label {
  display: block;
  font-size: 1em;
  opacity: 0.9;
  margin-top: 5px;
}

/* Core Values Section */
.core-values-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 30px;
}

.core-values-section h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 40px;
  color: #333;
}

.core-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.core-value-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.core-value-icon {
  font-size: 3em;
  margin-bottom: 15px;
}

.core-value-card h3 {
  font-size: 1.3em;
  margin: 0 0 10px 0;
  color: #333;
}

.core-value-card p {
  font-size: 0.95em;
  color: #666;
  line-height: 1.6;
}

/* Chat Container Styles */
.chat-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 30px;
}

.chat-message {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  align-items: flex-start;
}

.chat-message.developer {
  flex-direction: row;
}

.chat-message.ai {
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  flex-shrink: 0;
  background: #f0f0f0;
}

.chat-message.developer .chat-avatar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.chat-message.ai .chat-avatar {
  background: linear-gradient(135deg, #00c853 0%, #00acc1 100%);
}

.chat-bubble {
  background: white;
  padding: 20px 25px;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  max-width: 700px;
  position: relative;
}

.chat-message.developer .chat-bubble {
  border-top-left-radius: 4px;
}

.chat-message.ai .chat-bubble {
  border-top-right-radius: 4px;
  background: #f8f9fa;
}

.chat-sender {
  font-weight: 600;
  font-size: 0.9em;
  color: #666;
  margin-bottom: 10px;
}

.chat-bubble p {
  margin: 0 0 15px 0;
  line-height: 1.7;
  color: #333;
}

.chat-bubble p:last-child {
  margin-bottom: 0;
}

.chat-bubble ol, .chat-bubble ul {
  margin: 15px 0;
  padding-left: 25px;
}

.chat-bubble li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Chat Highlights */
.chat-highlight {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  padding: 15px 20px;
  margin: 15px 0;
  border-radius: 0 8px 8px 0;
}

.chat-highlight.warning {
  background: #fff8e1;
  border-left-color: #ff9800;
}

.chat-highlight.success {
  background: #e8f5e9;
  border-left-color: #4caf50;
}

.chat-highlight.conclusion {
  background: #f3e5f5;
  border-left-color: #9c27b0;
}

.chat-highlight h4 {
  margin: 0 0 10px 0;
  font-size: 1.05em;
  color: #333;
}

.chat-highlight p {
  margin: 10px 0;
}

.chat-highlight ul, .chat-highlight ol {
  margin: 10px 0;
  padding-left: 20px;
}

/* Feature Section */
.feature-section {
  max-width: 1000px;
  margin: 40px auto;
  padding: 40px 30px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.feature-section h2 {
  text-align: center;
  font-size: 1.8em;
  margin-bottom: 30px;
  color: #333;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.feature-card {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 30px;
  border: 2px solid #e9ecef;
}

.feature-card.goal-1 {
  border-color: #667eea;
  background: linear-gradient(180deg, #f0f2ff 0%, #f8f9fa 100%);
}

.feature-card.goal-2 {
  border-color: #4caf50;
  background: linear-gradient(180deg, #f0fff0 0%, #f8f9fa 100%);
}

.feature-card .feature-icon {
  font-size: 2.5em;
  margin-bottom: 15px;
}

.feature-card h3 {
  font-size: 1.4em;
  margin: 0 0 10px 0;
  color: #333;
}

.feature-card > p {
  font-size: 1em;
  color: #555;
  margin-bottom: 15px;
  font-weight: 500;
}

.feature-card ul {
  margin: 15px 0;
  padding-left: 20px;
}

.feature-card li {
  margin-bottom: 8px;
  line-height: 1.5;
  color: #555;
}

.feature-insight {
  background: white;
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
  border-left: 3px solid #667eea;
  font-size: 0.95em;
  line-height: 1.6;
}

/* Timeline Visual */
.timeline-visual {
  margin-top: 20px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
  padding: 10px 15px;
  background: white;
  border-radius: 8px;
  position: relative;
}

.timeline-item.active {
  background: #e8f5e9;
  border-left: 3px solid #4caf50;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background: #ccc;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.timeline-item.active .timeline-dot {
  background: #4caf50;
}

.timeline-label {
  font-weight: 600;
  color: #333;
  display: block;
}

.timeline-item p {
  margin: 5px 0 0 0;
  font-size: 0.9em;
  color: #666;
}

/* Questions Section */
.questions-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 40px 30px;
  background: #f8f9fa;
  border-radius: 20px;
}

.questions-section h2 {
  text-align: center;
  font-size: 1.8em;
  margin-bottom: 30px;
  color: #333;
}

.question-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.question-icon {
  font-size: 1.5em;
}

.question-header h3 {
  margin: 0;
  font-size: 1.2em;
  color: #333;
}

.question-text {
  background: #f8f9fa;
  padding: 15px 20px;
  border-radius: 8px;
  font-style: italic;
  color: #555;
  margin-bottom: 15px;
  border-left: 3px solid #667eea;
}

.answer-box {
  padding: 15px;
  background: #e8f4fd;
  border-radius: 8px;
}

.answer-box p {
  margin: 0;
  line-height: 1.6;
  color: #333;
}

/* CTA Section */
.cta-section {
  max-width: 700px;
  margin: 40px auto;
  padding: 50px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  text-align: center;
  color: white;
}

.cta-section h2 {
  font-size: 2em;
  margin: 0 0 15px 0;
}

.cta-section p {
  font-size: 1.1em;
  margin: 0 0 25px 0;
  opacity: 0.95;
}

.cta-section .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.cta-section .cta-button {
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-section .cta-primary {
  background: white;
  color: #667eea;
}

.cta-section .cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.cta-section .cta-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
}

.cta-section .cta-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Footer */
.investor-footer {
  background: #1a1a2e;
  color: white;
  padding: 40px 30px;
  text-align: center;
}

.investor-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.investor-footer .footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.investor-footer .footer-links a:hover {
  color: white;
}

.investor-footer .footer-copyright {
  font-size: 0.9em;
  opacity: 0.7;
  margin-bottom: 10px;
}

.investor-footer .footer-disclaimer {
  font-size: 0.85em;
  opacity: 0.6;
  max-width: 700px;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .investor-hero {
    padding: 50px 20px;
  }

  .investor-hero h1 {
    font-size: 2em;
  }

  .ai-disclaimer {
    flex-direction: column;
    margin: -10px 15px 20px;
  }

  .chat-container {
    padding: 20px 15px;
  }

  .chat-avatar {
    width: 40px;
    height: 40px;
    font-size: 1.4em;
  }

  .chat-bubble {
    padding: 15px 18px;
  }

  .feature-cards {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-box .stat-number {
    font-size: 2em;
  }

  .investor-groups-grid {
    grid-template-columns: 1fr;
  }

  .cta-section .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .investor-hero h1 {
    font-size: 1.6em;
  }

  .chat-message {
    gap: 10px;
  }

  .chat-avatar {
    width: 35px;
    height: 35px;
    font-size: 1.2em;
  }

  .investor-top-bar {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  }

  .investor-top-bar .top-bar-actions {
    gap: 10px;
  }
}

/* Accordion Styles */
.accordion-container {
  margin: 30px 0;
}

.accordion-section {
  background: white;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.accordion-section:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.accordion-header {
  width: 100%;
  padding: 20px 25px;
  background: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  font-size: 1.1em;
  font-weight: 600;
  color: #333;
  transition: background 0.2s ease;
}

.accordion-header:hover {
  background: #f8f9fa;
}

.accordion-icon {
  font-size: 1.3em;
  flex-shrink: 0;
}

.accordion-title {
  flex-grow: 1;
}

.accordion-arrow {
  font-size: 0.8em;
  color: #666;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.accordion-section.open .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.3s ease;
  padding: 0 25px;
}

.accordion-section.open .accordion-content {
  max-height: 3000px;
  padding: 0 25px 25px 25px;
}

/* Inline chat messages inside accordion */
.chat-message.inline {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.chat-message.inline .chat-bubble {
  background: #f0f4f8;
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  font-size: 0.95em;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.comparison-table th {
  background: rgba(0, 0, 0, 0.05);
  font-weight: 600;
  color: #333;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td:first-child {
  font-weight: 500;
  color: #555;
}

/* Responsive table */
@media (max-width: 600px) {
  .comparison-table {
    font-size: 0.85em;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 8px 10px;
  }
}

/* Founder Note Section */
.founder-note-section {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 20px;
}

.founder-accordion {
  background: linear-gradient(135deg, #fff9e6 0%, #fff5cc 100%);
  border: 2px solid #e6c84a;
  box-shadow: 0 4px 15px rgba(230, 200, 74, 0.2);
}

.founder-accordion .accordion-header {
  background: transparent;
}

.founder-accordion .accordion-icon {
  font-size: 1.4em;
}

.founder-content {
  font-size: 0.95em;
  line-height: 1.7;
  color: #444;
}

.founder-section {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.founder-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.founder-section h4 {
  font-size: 1.1em;
  color: #333;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.founder-section p {
  margin: 0 0 10px 0;
}

.founder-section p:last-child {
  margin-bottom: 0;
}

/* Links in founder sections - clearly visible */
.founder-content a {
  color: #1976d2;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s, background 0.2s;
}

.founder-content a:hover {
  color: #0d47a1;
  background: rgba(25, 118, 210, 0.1);
  border-radius: 3px;
  padding: 0 2px;
  margin: 0 -2px;
}

.founder-section ol {
  margin: 10px 0;
  padding-left: 20px;
}

.founder-section ol li {
  margin-bottom: 10px;
  padding-left: 5px;
}

.founder-section.highlight-box {
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 10px;
  padding: 20px;
  margin-top: 25px;
  border-bottom: none;
}

.founder-section.highlight-box h4 {
  color: #667eea;
}

/* Friendly Version - Soft Blue/Green */
.founder-accordion-friendly {
  background: linear-gradient(135deg, #e8f5e9 0%, #e3f2fd 100%);
  border: 2px solid #4db6ac;
  box-shadow: 0 4px 15px rgba(77, 182, 172, 0.2);
  margin-top: 15px;
}

.founder-accordion-friendly .accordion-header {
  background: transparent;
}

.founder-accordion-friendly .accordion-icon {
  font-size: 1.4em;
}

.founder-section.highlight-box-friendly {
  background: rgba(77, 182, 172, 0.15);
  border: 1px solid rgba(77, 182, 172, 0.4);
  border-radius: 10px;
  padding: 20px;
  margin-top: 25px;
  border-bottom: none;
}

.founder-section.highlight-box-friendly h4 {
  color: #00897b;
}

/* Mobile responsiveness for founder note */
@media (max-width: 600px) {
  .founder-note-section {
    margin: 20px auto;
    padding: 0 15px;
  }

  .founder-content {
    font-size: 0.9em;
  }

  .founder-section h4 {
    font-size: 1em;
  }
}

/* ========================================
   Live Balance Widget Styles
   ======================================== */

.live-balance-section {
  max-width: 900px;
  margin: -30px auto 30px;
  padding: 0 20px;
  position: relative;
  z-index: 15;
}

/* Balance Accordion Styling */
.balance-accordion {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 2px solid #4caf50;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.balance-accordion .accordion-header {
  background: transparent;
  padding: 18px 25px;
}

.balance-accordion .accordion-header:hover {
  background: rgba(255, 255, 255, 0.3);
}

.balance-accordion .accordion-title {
  font-size: 1.2em;
  color: #1a5f3c;
}

.balance-accordion .accordion-icon {
  font-size: 1.4em;
}

.balance-accordion .accordion-arrow {
  color: #2e7d32;
}

.balance-accordion-content {
  background: white;
}

.balance-accordion-content .balance-subtitle {
  margin: 0 0 15px 0;
  padding: 0;
  font-size: 0.9em;
  color: #666;
  text-align: center;
}

.live-badge {
  background: #4caf50;
  color: white;
  font-size: 0.7em;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulse-badge 2s ease-in-out infinite;
  margin-left: auto;
  margin-right: 10px;
}

.live-badge.cached {
  background: #ff9800;
  animation: none;
}

.live-badge.error {
  background: #f44336;
  animation: none;
}

@keyframes pulse-badge {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.balance-subtitle {
  margin: 8px 0 0 0;
  font-size: 0.9em;
  opacity: 0.9;
}

/* Balance Content */
.balance-content {
  padding: 25px;
}

/* Loading State */
.balance-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 40px 20px;
  color: #666;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #e0e0e0;
  border-top-color: #4caf50;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Balance Data */
.balance-main {
  text-align: center;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.balance-amount {
  font-size: 3em;
  font-weight: 700;
  color: #1a5f3c;
  line-height: 1;
  margin-bottom: 8px;
}

.balance-label {
  font-size: 1em;
  color: #666;
  font-weight: 500;
}

.balance-breakdown {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 20px;
}

.balance-item {
  text-align: center;
  padding: 15px 25px;
  background: #f8f9fa;
  border-radius: 10px;
  min-width: 140px;
}

.balance-item.available {
  border-left: 4px solid #4caf50;
}

.balance-item.pending {
  border-left: 4px solid #ff9800;
}

.balance-item .item-label {
  display: block;
  font-size: 0.85em;
  color: #666;
  margin-bottom: 5px;
}

.balance-item .item-amount {
  display: block;
  font-size: 1.4em;
  font-weight: 600;
  color: #333;
}

/* Balance Meta */
.balance-meta {
  display: flex;
  justify-content: center;
  gap: 25px;
  font-size: 0.85em;
  color: #888;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mode-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
}

.mode-dot.live {
  background: #4caf50;
  box-shadow: 0 0 6px #4caf50;
}

.mode-dot.test {
  background: #ff9800;
}

.meta-item.mode-live {
  color: #2e7d32;
}

.meta-item.mode-test {
  color: #f57c00;
}

/* Error State */
.balance-error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px 20px;
  color: #d32f2f;
  background: #ffebee;
  border-radius: 8px;
}

.error-icon {
  font-size: 1.5em;
}

/* Verify Section */
.verify-section,
.verify-section-inline {
  background: #e8f5e9;
  padding: 20px 25px;
  border-top: 1px solid #c8e6c9;
}

.verify-section-inline {
  margin-top: 20px;
  border-radius: 8px;
  border: 1px solid #c8e6c9;
}

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

.verify-header h4 {
  margin: 0;
  font-size: 1.05em;
  color: #2e7d32;
}

.verify-icon {
  font-size: 1.2em;
}

.verify-section > p {
  margin: 0 0 15px 0;
  font-size: 0.9em;
  color: #555;
  line-height: 1.5;
}

.verify-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.verify-option {
  background: white;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 0.9em;
  color: #333;
}

.verify-option code {
  display: inline-block;
  background: #f5f5f5;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 0.85em;
  color: #d32f2f;
  margin-left: 5px;
}

.verify-option .access-hint {
  display: block;
  margin-top: 5px;
  font-size: 0.85em;
  color: #666;
  font-style: italic;
}

/* Mobile Responsiveness for Balance Widget */
@media (max-width: 600px) {
  .live-balance-section {
    margin: -20px auto 20px;
    padding: 0 15px;
  }

  .balance-header {
    padding: 15px 20px;
  }

  .balance-title h3 {
    font-size: 1.1em;
  }

  .balance-amount {
    font-size: 2.2em;
  }

  .balance-breakdown {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .balance-item {
    width: 100%;
    max-width: 200px;
  }

  .balance-meta {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .verify-options {
    gap: 8px;
  }
}

/* ========================================
   Options-Schein Purchase Section
   ======================================== */

.options-purchase-section {
  max-width: 600px;
  margin: 30px auto;
  padding: 0 20px;
}

.options-card {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 100%);
  border: 2px solid #3498db;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(52, 152, 219, 0.15);
}

.options-header {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  padding: 20px 25px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.options-icon {
  font-size: 1.8em;
}

.options-header h3 {
  margin: 0;
  font-size: 1.3em;
  font-weight: 600;
}

.options-accordion.open .options-content {
  padding: 25px;
}

.options-price {
  font-size: 2.5em;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 5px 0;
}

.options-price .price-note {
  font-size: 0.4em;
  font-weight: 400;
  color: #7f8c8d;
  vertical-align: middle;
}

.options-description {
  color: #555;
  line-height: 1.6;
  margin: 15px 0;
  font-size: 0.95em;
}

.options-details {
  background: white;
  border-radius: 10px;
  padding: 15px 20px 15px 35px;
  margin: 20px 0;
  list-style: none;
}

.options-details li {
  position: relative;
  padding: 8px 0;
  color: #444;
  font-size: 0.9em;
  line-height: 1.5;
}

.options-details li::before {
  content: "✓";
  position: absolute;
  left: -20px;
  color: #27ae60;
  font-weight: bold;
}

.options-details li strong {
  color: #2c3e50;
}

.options-buy-btn {
  display: block;
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #27ae60 0%, #219a52 100%);
  color: white;
  text-align: center;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.options-buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.options-secure {
  text-align: center;
  margin: 15px 0 0 0;
  font-size: 0.85em;
  color: #7f8c8d;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .options-purchase-section {
    margin: 20px auto;
    padding: 0 15px;
  }

  .options-price {
    font-size: 2em;
  }

  .options-header {
    padding: 15px 20px;
  }

  .options-accordion.open .options-content {
    padding: 20px;
  }
}

/* ========================================
   Countries Dialog Styles
   ======================================== */

.countries-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(3px);
}

.countries-dialog {
  background: white;
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: dialog-appear 0.3s ease-out;
}

@keyframes dialog-appear {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.countries-dialog-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 24px 16px;
  border-bottom: 1px solid #eee;
}

.countries-dialog-icon {
  font-size: 1.8em;
}

.countries-dialog-header h3 {
  margin: 0;
  font-size: 1.3em;
  color: #333;
}

.countries-dialog-content {
  padding: 20px 24px;
}

.countries-dialog-content > p {
  margin: 0 0 20px 0;
  color: #555;
  line-height: 1.6;
}

.countries-status {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 16px 20px;
  min-height: 50px;
  display: flex;
  align-items: center;
}

.countries-status .status-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #666;
  width: 100%;
}

.countries-status .status-available,
.countries-status .status-unavailable,
.countries-status .status-error {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.countries-status .status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.countries-status .status-dot.available {
  background: #4caf50;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

.countries-status .status-dot.unavailable {
  background: #ff9800;
  box-shadow: 0 0 8px rgba(255, 152, 0, 0.5);
}

.countries-status .status-dot.error {
  background: #f44336;
}

.countries-status .status-available {
  color: #2e7d32;
}

.countries-status .status-unavailable {
  color: #e65100;
}

.countries-status .status-error {
  color: #c62828;
}

.countries-dialog-actions {
  display: flex;
  gap: 12px;
  padding: 16px 24px 24px;
  justify-content: flex-end;
}

.countries-dialog-actions button {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.countries-dialog-actions .btn-cancel {
  background: #f0f0f0;
  color: #555;
}

.countries-dialog-actions .btn-cancel:hover {
  background: #e0e0e0;
}

.countries-dialog-actions .btn-continue {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.countries-dialog-actions .btn-continue:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.countries-dialog-actions .btn-continue:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Mobile responsive for dialog */
@media (max-width: 500px) {
  .countries-dialog {
    margin: 10px;
  }

  .countries-dialog-header {
    padding: 20px 20px 14px;
  }

  .countries-dialog-content {
    padding: 16px 20px;
  }

  .countries-dialog-actions {
    flex-direction: column;
    padding: 14px 20px 20px;
  }

  .countries-dialog-actions button {
    width: 100%;
  }
}

/* ========================================
   Dashboard Access Card Styles
   ======================================== */

.verify-option.dashboard-access {
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
  border: 2px solid #667eea;
  border-radius: 12px;
  padding: 20px;
}

.verify-option.dashboard-access > strong {
  display: block;
  font-size: 1.1em;
  color: #333;
  margin-bottom: 15px;
}

.access-credentials {
  background: white;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}

.credential-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.credential-row:first-child {
  border-bottom: 1px solid #eee;
}

.credential-label {
  font-size: 0.9em;
  color: #666;
  min-width: 70px;
}

.credential-value {
  background: #f5f5f5;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 0.95em;
  color: #333;
  user-select: all;
}

.auth-code-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff8e1;
  border: 1px solid #ffcc02;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}

.auth-icon {
  font-size: 1.5em;
  flex-shrink: 0;
}

.auth-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-text strong {
  color: #333;
  font-size: 0.95em;
}

.auth-text span {
  color: #666;
  font-size: 0.9em;
}

.auth-text .auth-hint {
  font-size: 0.8em;
  color: #888;
  font-style: italic;
  margin-top: 4px;
}

.phone-link {
  color: #1976d2;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.phone-link:hover {
  text-decoration: underline;
}

.stripe-login-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #635bff 0%, #5851ea 100%);
  color: white;
  text-align: center;
  text-decoration: none;
  font-size: 1em;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(99, 91, 255, 0.3);
}

.stripe-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 91, 255, 0.4);
  background: linear-gradient(135deg, #7a73ff 0%, #635bff 100%);
}

/* Mobile responsive for dashboard access */
@media (max-width: 500px) {
  .verify-option.dashboard-access {
    padding: 15px;
  }

  .credential-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .credential-value {
    width: 100%;
    text-align: center;
  }

  .auth-code-info {
    flex-direction: column;
    text-align: center;
  }

  .auth-icon {
    align-self: center;
  }

  .auth-text {
    align-items: center;
  }
}
