/* KAHIN Index Page Styles */

/* Base Styles */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #0a0a0f, #1c1c22);
  color: #c0ffc0;
}

/* Header Styles */
.header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(20,20,25,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  box-sizing: border-box;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
    padding: 0 20px;
}

.logo h1 {
    color: #52ffa0;
  margin: 0;
    font-size: 2rem;
    font-weight: bold;
}

/* Header Search Bar */
.header-search {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 30px;
}

.search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 12px 20px;
    color: #ffffff;
    font-size: 14px;
    width: 250px;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    outline: none;
    border-color: rgba(82, 255, 160, 0.5);
    box-shadow: 0 0 15px rgba(82, 255, 160, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.how-it-works-btn {
    background: linear-gradient(135deg, #00d4aa, #52ffa0);
    color: #000;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.how-it-works-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(82, 255, 160, 0.4);
    background: linear-gradient(135deg, #52ffa0, #00d4aa);
}

.nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #c0ffc0;
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: #52ffa0;
  background: rgba(80,255,160,0.1);
}

.nav-link.active {
  color: #52ffa0;
  background: rgba(80,255,160,0.2);
  border: 1px solid rgba(80,255,160,0.4);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.username {
  color: #7affc0;
  font-weight: 600;
}

.balance {
  background: rgba(80, 255, 160, 0.2);
  color: #7affc0;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(80, 255, 160, 0.4);
  font-weight: 600;
}

/* Main Content */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 5%;
}

/* Main Container */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  box-sizing: border-box;
}

.markets-section {
  margin-bottom: 40px;
}



.markets-info {
  text-align: center;
  margin-bottom: 20px;
}

.markets-warning {
  color: #ffa500;
  font-size: 14px;
  background: rgba(255, 165, 0, 0.1);
  padding: 10px 20px;
  border-radius: 15px;
  border: 1px solid rgba(255, 165, 0, 0.3);
  display: inline-block;
  margin: 0 auto;
  font-weight: 500;
}



/* Markets Grid */
.markets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 20px;
}

/* Market Cards - Image Design */
.market-card {
  background: linear-gradient(145deg, #2a2a35, #1e1e28);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 200px;
  cursor: pointer;
  position: relative;
}

.market-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  background: linear-gradient(145deg, #2f2f3a, #23232e);
}

.market-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 0;
}

.market-image {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.market-image::before {
  content: '🇷🇺';
  font-size: 18px;
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
}

.market-image::after {
  content: '🇺🇦';
  font-size: 18px;
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
}

.market-image .x-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 22px;
  font-weight: bold;
  color: #000;
  z-index: 2;
}

.market-title {
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  flex: 1;
  height: 48px;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.market-header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex: 1;
}

.market-question {
  flex: 1;
  margin-right: 16px;
}

.probability-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #ff6b6b 0deg,
    #ff6b6b calc(var(--probability) * 3.6deg),
    #4a4a5a calc(var(--probability) * 3.6deg),
    #4a4a5a 360deg
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.probability-circle::before {
  content: '';
  width: 34px;
  height: 34px;
  background: #2a2a35;
  border-radius: 50%;
  position: absolute;
}

.probability-percentage {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  z-index: 1;
  position: relative;
}

.probability-label {
  font-size: 0.6rem;
  color: #a0a0a0;
  z-index: 1;
  position: relative;
  margin-top: -2px;
}

/* Category removed - not needed in new design */

.market-options {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.option-display {
  flex: 1;
  background: #00d4aa;
  border: none;
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 212, 170, 0.3);
}

.option-display:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 212, 170, 0.4);
}

.option-display.no-option {
  background: #ff6b6b;
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
}

.option-display.no-option:hover {
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.option-text {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.option-price {
  display: none;
}

/* Market stats removed - no frames */

.volume {
  color: #a0a0a0;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 8px;
}

.market-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.market-icons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.market-icon {
  color: #a0a0a0;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.market-icon:hover {
  color: #ffffff;
}

.status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.status-open {
  background: rgba(80, 255, 160, 0.2);
  color: #7affc0;
  border: 1px solid rgba(80, 255, 160, 0.3);
}

.status-closed {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.status-resolved {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

/* Old probability display removed - using new circular design */

/* Market actions removed - no additional frames */





/* Redundant old market card styles removed */

/* Modal Styles - Compact and Centered */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background: rgba(30, 30, 40, 0.98);
  margin: 5% auto;
  padding: 0;
  border: 1px solid rgba(80, 255, 160, 0.3);
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  backdrop-filter: none;
}

.modal-header {
  background: linear-gradient(135deg, rgba(80, 255, 160, 0.1), rgba(0, 212, 170, 0.1));
  padding: 20px 25px 15px;
  border-bottom: 1px solid rgba(80, 255, 160, 0.2);
  border-radius: 12px 12px 0 0;
  position: relative;
}

.modal-header h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
}

.close {
  color: rgba(255, 255, 255, 0.7);
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 20px;
  top: 15px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #7affc0;
}

.modal-body {
  padding: 25px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}



.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}



.form-group label {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2px;
}



.form-group input {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: rgba(80, 255, 160, 0.6);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(80, 255, 160, 0.1);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.form-actions .btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #00d4aa, #52ffa0);
  color: #000000;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #52ffa0, #00d4aa);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 212, 170, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.auth-message {
  margin-top: 15px;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
}

.auth-message.success {
  background: rgba(80, 255, 160, 0.1);
  color: #7affc0;
  border: 1px solid rgba(80, 255, 160, 0.3);
}

.auth-message.error {
  background: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(30, 30, 40, 0.98);
  border: 1px solid rgba(80, 255, 160, 0.3);
  border-radius: 16px;
  padding: 30px;
  max-width: 420px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to { 
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(80, 255, 160, 0.2);
}

.modal-header h3 {
  color: #7affc0;
  margin: 0;
  font-size: 20px;
}

.close {
  background: none;
  border: none;
  color: #a0a0a0;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.modal-body {
  color: #ffffff;
}

#tradeModalQuestion {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

#tradeModalCategory {
  color: #7affc0;
  font-size: 14px;
  margin-bottom: 20px;
}

/* Trade Form */
.trade-form {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  padding: 20px;
}

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

.form-group label {
  display: block;
  color: #ffffff;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(80, 255, 160, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(80, 255, 160, 0.6);
  box-shadow: 0 0 0 3px rgba(80, 255, 160, 0.1);
}

/* Trade Summary */
.trade-summary {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
}

.trade-summary p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: #a0a0a0;
  font-size: 14px;
}

.trade-summary p:last-child {
  margin-bottom: 0;
}

.trade-summary span:last-child {
  color: #7affc0;
  font-weight: 700;
  font-size: 16px;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 15px;
}

.form-actions .btn {
  flex: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .markets-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 20px 3%;
  }
  
  .markets-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  

  
  .modal-content {
    width: 95%;
    padding: 20px;
    max-width: none;
  }
  
  .auth-form .form-actions {
    flex-direction: column;
  }
  
  .auth-form .form-actions .btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .main-content {
    width: 95%;
    padding: 15px;
  }
  
  .markets-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
  }
}

/* Authentication Form Styles */
.auth-form {
  margin-bottom: 20px;
}

.auth-form .form-group {
  margin-bottom: 18px;
}

.auth-form .form-group label {
  display: block;
  color: #ffffff;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
}

.auth-form .form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(80, 255, 160, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.auth-form .form-group input:focus {
  outline: none;
  border-color: rgba(80, 255, 160, 0.6);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(80, 255, 160, 0.1);
}

.auth-form .form-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.auth-form .form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.auth-form .form-actions .btn {
  flex: 1;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
}

.auth-form .form-actions .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.auth-form .form-actions .btn:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Forgot Password Link */
.forgot-password-link {
  text-align: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.forgot-password-link a {
  color: #52ffa0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.forgot-password-link a:hover {
  color: #7affc0;
  text-decoration: underline;
  text-shadow: 0 0 8px rgba(82, 255, 160, 0.5);
}

/* Authentication Messages */
.auth-message {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
}

.success-message {
  background: rgba(0, 212, 170, 0.15);
  border: 1px solid rgba(0, 212, 170, 0.3);
  color: #00d4aa;
}

.success-message small {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.8;
  font-style: italic;
}

.error-message {
  background: rgba(255, 107, 107, 0.15);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: #ff6b6b;
}

/* Login Popup Modal Styles */
.login-popup-content {
  text-align: center;
  padding: 20px 0;
}

.login-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.login-popup-content h4 {
  color: #7affc0;
  margin-bottom: 15px;
  font-size: 20px;
}

.login-popup-content p {
  color: #c0ffc0;
  margin-bottom: 25px;
  line-height: 1.6;
}

.login-actions {
  display: flex;
    gap: 15px;
  justify-content: center;
  margin-bottom: 25px;
}

.login-actions .btn {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.login-actions .btn:hover {
  transform: translateY(-2px);
}

.login-info {
  background: rgba(80, 255, 160, 0.1);
  border: 1px solid rgba(80, 255, 160, 0.3);
  border-radius: 8px;
  padding: 20px;
  text-align: left;
}

.login-info p {
  color: #7affc0;
  font-weight: 600;
  margin-bottom: 15px;
}

.login-info ul {
  color: #c0ffc0;
  margin: 0;
  padding-left: 20px;
}

.login-info li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Make market options clickable */
.market-options .option {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.market-options .option:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(80, 255, 160, 0.2);
  background: rgba(255,255,255,0.08);
}

.market-options .option:active {
  transform: translateY(0);
}

.market-options .option::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(80, 255, 160, 0.1), transparent);
  transition: left 0.5s ease;
}

.market-options .option:hover::before {
  left: 100%;
}

/* Add click indicator */
.market-options .option::after {
  content: '👆';
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 12px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.market-options .option:hover::after {
  opacity: 1;
}

/* Performance optimizations for many markets */
.markets-grid {
  will-change: transform;
  contain: layout style paint;
}
  


/* Smooth scrolling for long lists */
.markets-section {
  scroll-behavior: smooth;
}

/* Loading state for many markets */
.markets-grid.loading {
  opacity: 0.7;
  transition: opacity 0.5s ease;
}

.markets-grid.loaded {
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* Real-time price update animations */
.option-price.updating {
  animation: priceUpdate 1s ease-in-out;
}

@keyframes priceUpdate {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); color: #00ff88; }
  100% { transform: scale(1); }
}

/* Real-time update indicator */
.real-time-indicator {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 255, 136, 0.9);
  color: #000;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 1001;
  display: none;
  animation: pulse 2s infinite;
}

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

.real-time-indicator.show {
  display: block;
}

/* Price change indicators */
.price-change-up {
  color: #00ff88 !important;
  transition: color 0.3s ease;
}

.price-change-down {
  color: #ff6b6b !important;
  transition: color 0.3s ease;
}

/* Google Translate Container */
#google_translate_element_container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 1002;
  background: rgba(30, 30, 40, 0.95);
  border-radius: 10px;
    padding: 15px;
  border: 1px solid rgba(80, 255, 160, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Category Navigation */
.category-navigation {
  width: 100%;
  position: sticky;
  top: 60px;
  z-index: 999;
  background: rgba(20,20,25,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  box-sizing: border-box;
}

/* Category Info Display */
.category-info {
  text-align: center;
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(80, 255, 160, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(80, 255, 160, 0.1);
}

.category-info p {
  margin: 0;
  color: #7affc0;
  font-size: 16px;
  font-weight: 500;
  text-shadow: 0 0 10px rgba(122, 255, 192, 0.3);
}

.category-navigation .main-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  box-sizing: border-box;
}

.category-filters {
  display: flex;
  gap: 20px;
  align-items: center;
}

.category {
  cursor: pointer;
  padding: 8px 16px;
  font-weight: 500;
  color: #7affc0;
  transition: color 0.2s ease;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.category:hover {
  color: #52ffa0;
  background: rgba(80, 255, 160, 0.1);
}

.category.active {
  color: #52ffa0;
  font-weight: 600;
  background: rgba(80, 255, 160, 0.2);
  border: 1px solid rgba(80, 255, 160, 0.4);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(80, 255, 160, 0.2);
}

.category:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

.translate-controls {
  display: flex;
  align-items: center;
}

.translate-btn {
  background: rgba(40,40,50,0.5);
  color: #c0ffc0;
  border: 1px solid rgba(80,255,160,0.4);
  border-radius: 14px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(10px);
}

.translate-btn:hover {
  background: rgba(60,60,70,0.6);
  transform: translateY(-2px);
}

/* Prediction Window Section */
.prediction-window-section {
  margin-bottom: 40px;
}

.prediction-window {
  background: rgba(30,30,40,0.4);
  border-radius: 24px;
  border: none;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  margin-bottom: 30px;
  overflow: hidden;
}

.window-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  background: transparent;
  border-bottom: none;
}

.window-header h3 {
  color: #7affc0;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  text-align: center;
  opacity: 0.9;
}

.window-content {
  padding: 20px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Window Card Styles */
.window-card {
  display: none;
  width: 100%;
  max-width: 100%;
  background: transparent;
  border: none;
  overflow: visible;
  transition: all 0.3s ease;
  cursor: pointer;
}

.window-card.active {
  display: block;
}

.window-card-header {
  padding: 15px 15px 10px 15px;
  background: transparent;
  border-bottom: none;
}

.window-card-title {
  color: #7affc0;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.window-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #a0a0a0;
  font-size: 12px;
}

.window-card-body {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
  width: 100%;
}

.window-card-info {
  display: flex;
    flex-direction: column;
  gap: 12px;
}



/* Candidate Legend */
.candidate-legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.candidate-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  padding: 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  border: none;
  backdrop-filter: blur(10px);
}

.candidate-color {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.candidate-name {
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  flex: 1;
}

.candidate-probability {
  color: #7affc0;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

/* Trade Section */
.trade-section {
  display: flex;
  gap: 15px;
}

.window-trade-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
}

.window-trade-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}

.window-trade-btn.yes {
  background: #00d4aa;
}

.window-trade-btn.yes:hover {
  background: #00b894;
}

.window-trade-btn.no {
  background: #ff6b6b;
}

.window-trade-btn.no:hover {
  background: #ff5252;
}

/* Chart Container */
.chart-container {
  background: rgba(40,40,50,0.3);
  border-radius: 8px;
  padding: 15px;
  border: 1px solid rgba(80,255,160,0.2);
  height: 260px;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

.chart-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.chart-options {
  display: flex;
  align-items: center;
}

.time-tabs {
  display: flex;
  gap: 5px;
}

.time-tab {
  background: rgba(255,255,255,0.1);
  color: #a0a0a0;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.time-tab:hover {
  background: rgba(255,255,255,0.2);
  color: #ffffff;
}

.time-tab.active {
  background: #7affc0;
  color: #000000;
  font-weight: 600;
}

.chart-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-loading,
.chart-error {
  color: #a0a0a0;
  font-size: 14px;
  text-align: center;
}

/* Carousel Navigation */
.carousel-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 15px;
  background: transparent;
  border-top: none;
}

.nav-arrow {
  background: rgba(255,255,255,0.1);
  color: #7affc0;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 300;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.nav-arrow:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.nav-arrow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.carousel-dot:hover {
  background: rgba(255,255,255,0.6);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: #7affc0;
  box-shadow: 0 0 8px rgba(122,255,192,0.5);
  transform: scale(1.3);
}

/* Responsive Design for New Features */
@media (max-width: 768px) {
  .window-card-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .window-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .window-content {
    padding: 20px;
  }
  
  .carousel-navigation {
    gap: 15px;
    padding: 15px;
  }
  
  .nav-arrow {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .carousel-dot {
    width: 10px;
    height: 10px;
  }
  
  .category-filters {
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .category {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .category-info {
    padding: 12px;
    margin-bottom: 15px;
  }
  
  .category-info p {
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .prediction-window {
    border-radius: 16px;
  }
  
  .window-card-body {
    padding: 15px;
  }
  
  .chart-container {
    height: 200px;
  }
  
  .time-tabs {
    gap: 3px;
  }
  
  .time-tab {
    padding: 3px 6px;
    font-size: 10px;
  }
  
  .modal-content {
    width: 95%;
    padding: 20px;
    max-width: none;
  }
  
  .auth-form .form-actions {
    flex-direction: column;
  }
  
  .auth-form .form-actions .btn {
    width: 100%;
  }
}



/* Responsive Design for Market Cards */
@media (max-width: 768px) {
  .market-card {
    min-height: 160px;
    padding: 16px;
  }
  
  .market-header {
    gap: 10px;
  }
  
  .market-image {
    width: 40px;
    height: 40px;
  }
  
  .market-title {
    font-size: 13px;
    height: 40px;
  }
  
  .probability-circle {
    width: 40px;
    height: 40px;
  }
  
  .probability-circle::before {
    width: 28px;
    height: 28px;
  }
  
  .probability-percentage {
    font-size: 1rem;
  }
  
  .probability-label {
    font-size: 0.6rem;
  }
  
  .market-options {
    gap: 8px;
  }
  
  .option-display {
    padding: 12px 8px;
  }
  
  .option-text {
    font-size: 0.9rem;
  }
  
  .volume {
    font-size: 0.7rem;
  }
  
  .market-icons {
    gap: 8px;
  }
  
  .market-icon {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
    .market-card {
        min-height: 140px;
        padding: 12px;
    }
    
    .market-header {
        gap: 6px;
    }
    
    .market-image {
        width: 32px;
        height: 32px;
    }
    
    .market-title {
        font-size: 11px;
        height: 32px;
    }
    
    .probability-circle {
        width: 32px;
        height: 32px;
    }
    
    .probability-circle::before {
        width: 22px;
        height: 22px;
    }
    
    .probability-percentage {
        font-size: 0.8rem;
    }
    
    .probability-label {
        font-size: 0.5rem;
    }
    
    .market-options {
        gap: 6px;
    }
    
    .option-display {
        padding: 8px 6px;
    }
    
    .option-text {
        font-size: 0.8rem;
    }
    
    .volume {
        font-size: 0.6rem;
    }
    
    .market-icons {
        gap: 6px;
    }
    
    .market-icon {
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 4px 8px;
        font-size: 9px;
    }
}

/* Responsive Design for Header */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .header-search {
        order: 3;
        margin: 0;
        max-width: 100%;
        width: 100%;
    }
    
    .nav {
        order: 2;
        gap: 15px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 15px 15px;
    }
    
    .search-input {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* How It Works Modal Styles */
.how-it-works-content {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
}

.slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-content {
    text-align: center;
    padding: 20px;
}

.slide-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.slide-content h4 {
    font-size: 1.8rem;
    color: #52ffa0;
    margin-bottom: 15px;
    font-weight: bold;
}

.slide-content p {
    font-size: 1.1rem;
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.slide-example {
    margin-top: 30px;
}

/* Slide 1: Example Card */
.example-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(20px);
    max-width: 400px;
    margin: 0 auto;
}

.example-question {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.4;
}

.example-options {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.option {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.option.yes {
    background: rgba(82, 255, 160, 0.2);
    color: #52ffa0;
    border: 1px solid rgba(82, 255, 160, 0.3);
}

.option.no {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

/* Slide 2: Trading Panel */
.example-trading {
    margin-top: 20px;
}

.trading-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(20px);
    max-width: 500px;
    margin: 0 auto;
}

.trading-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.trading-option:last-child {
    margin-bottom: 0;
}

.option-label {
    font-weight: 600;
    color: #ffffff;
    font-size: 1.1rem;
}

.option-price {
    color: #52ffa0;
    font-weight: 600;
    font-size: 1.1rem;
}

.trade-btn {
    background: linear-gradient(135deg, #52ffa0, #00d4aa);
    color: #000;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.trade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(82, 255, 160, 0.4);
}

/* Slide 3: Result Card */
.example-result {
    margin-top: 20px;
}

.result-card {
    background: rgba(82, 255, 160, 0.1);
    border: 1px solid rgba(82, 255, 160, 0.3);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(20px);
    max-width: 400px;
    margin: 0 auto;
}

.result-status {
    color: #52ffa0;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.winning-option {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
}

.profit {
    color: #52ffa0;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Slide Navigation */
.slide-navigation {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.slide-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #52ffa0;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(82, 255, 160, 0.6);
}

.slide-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.slide-buttons .btn {
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #52ffa0, #00d4aa);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(82, 255, 160, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #00d4aa, #52ffa0);
    color: #000;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(82, 255, 160, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .how-it-works-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .slide-content h4 {
        font-size: 1.5rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .slide-icon {
        font-size: 3rem;
    }
    
    .example-card,
    .trading-panel,
    .result-card {
        padding: 20px;
    }
    
    .slide-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .slide-buttons .btn {
        width: 200px;
  }
}
