/* Toast Notification */
.toast {
    position: fixed;
    top: -100px; /* Start above viewport */
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 14px;
    transition: top 0.3s ease-in-out;
    z-index: 9999;
    min-width: 300px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast.show {
    top: 20px; /* Slide down to this position */
}

.toast-success {
    background-color: green;
    color: #fff;
}

.toast-error {
    background-color: #dc3545;
    color: #fff;
}

.toast-warning {
    background-color: #ffc107;
    color: #000;
}

.toast-info {
    background-color: #000;
    color: #fff;
}

@media (min-width: 768px) {
    .toast {
        width: 300px;
    }
}
/* Back Button */
.back-button {
    position: absolute;
    top: 0.21rem;
    left: 0.43rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: transparent;
    border: none; 
    
}
.back-button:hover {
    color: #049ebd;
}

body.light-theme .back-button {
    color: var(--text);
}

.error-state {
    text-align: center;
    padding: 2rem;
    color: #e74c3c;
}

.error-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-state button {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.error-state button:hover {
    background-color: #2980b9;
}

.clickable {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.clickable:hover {
    transform: translateY(-2px);
}

.level-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.level-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.level-modal-content {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.2s ease;
}

.close-modal:hover {
    transform: scale(1.1);
}

.current-level {
    text-align: center;
    margin-bottom: 2rem;
}

.level-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent);
    display: block;
}

.level-text {
    color: var(--muted);
    font-size: 0.9rem;
}

.level-progress {
    margin-bottom: 2rem;
}

.progress-text {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.3s ease;
}

.level-rewards {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.level-rewards h4 {
    margin-bottom: 1rem;
    color: var(--text);
}

.level-rewards ul {
    list-style: none;
    padding: 0;
}

.level-rewards li {
    color: var(--muted);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ...existing code... */
.close-chaport {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  cursor: pointer;
  font-size: 1.5em;
  color: #333;
  background: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s;
  z-index: 1001;
}
.close-chaport.hidden {
  display: none;
}

/* Hide Chaport native floating button */
.chaport-launcher,
.chaport-launcher__button,
.chaport-widget .chaport-launcher {
  display: none !important;
}

/* Adjust Chaport chat tab margin */
.chaport-widget {
  bottom: 100px !important; /* Adjust vertical margin from bottom */
  right: 40px !important;   /* Adjust horizontal margin from right */
}
/* ...existing code... */



/* TradingView Widget Desktop Styles */
@media (min-width: 1024px) {
  .tradingview-widget-container {
    margin: 1px 0 12px 0;
    max-width: 700px;
    min-width: 600px;
    background: #181a20;
    border-radius: 18px;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.10);
    padding: 24px 32px 16px 32px;
    position: relative;
    transition: box-shadow 0.2s;
  }

  .tradingview-widget-container__widget {
    min-height: 20px;
    min-width: 600px;
  }
}

@media (max-width: 680px) {

  .tradingview-widget-container {
    margin-top: -1rem;
    margin-bottom: -10px;
}
}

/* App Downloads and Support Area Container */
.app-support-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 430px;
  margin: 2rem auto 1rem auto;
}

@media (min-width: 700px) {
  .app-support-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
  }
  .app-downloads, .support-area {
    width: 48%;
  }
}

/* Support Area Styles */
.support-area {
  background: #101624;
  border-radius: 12px;
  padding: 1rem 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  text-align: center;
  width: 450px;
}
.support-area h3 {
  margin-bottom: 1rem;
  color: #fff;
}
.support-options {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.support-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #00b894;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.2s;
}
.support-link:hover {
  color: #00e6b8;
}
.support-link i {
  font-size: 1.2rem;
}

/* Live Chat Modal */
.live-chat-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10,15,26,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.live-chat-content {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  width: 95%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.close-chat {
  position: absolute;
  top: 10px; right: 12px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
}

@media (max-width: 480px) {
 .support-area {
    width: 92%;
    padding: 1rem;
  }
}