/* ========================================
   AppGold - Component Styles
   ======================================== */

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

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

.btn-gold {
    background: var(--gradient-gold);
    color: var(--bg-dark);
    animation: shimmer 3s ease-in-out infinite;
}

.btn-diamond {
    background: var(--gradient-diamond);
    color: var(--bg-dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover {
    background: var(--error-dark);
}

/* ========================================
   Signal Cards
   ======================================== */

.signals-container {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    padding-bottom: var(--space-md);
    margin: 0 calc(var(--space-md) * -1);
    padding: 0 var(--space-md) var(--space-md);
    scrollbar-width: none;
}

.signals-container::-webkit-scrollbar {
    display: none;
}

.signal-card {
    min-width: 280px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    border: 1px solid var(--border);
    transition: var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.signal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.signal-card.vip {
    border-color: var(--gold);
    background: linear-gradient(145deg, rgba(245, 166, 35, 0.1), var(--bg-card));
}

.signal-card.vip::before {
    content: 'VIP';
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: var(--gradient-gold);
    color: var(--bg-dark);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.signal-card.live::after {
    content: '';
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    width: 8px;
    height: 8px;
    background: var(--error);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.signal-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.signal-sport {
    width: 40px;
    height: 40px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.signal-info {
    flex: 1;
}

.signal-league {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.signal-teams {
    font-weight: 600;
    font-size: 0.9rem;
}

.signal-time {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
}

.signal-prediction {
    background: var(--bg-input);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.prediction-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.prediction-value {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--success);
}

.signal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.signal-odds {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.odds-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.odds-value {
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-mono);
}

.signal-confidence {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.confidence-bar {
    width: 60px;
    height: 6px;
    background: var(--bg-input);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: var(--success);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.confidence-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success);
}

/* Signals Grid (All Signals Page) */
.signals-grid {
    display: grid;
    gap: var(--space-md);
}

.signals-grid .signal-card {
    min-width: auto;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    overflow-x: auto;
    padding-bottom: var(--space-sm);
}

.filter-tab {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition-base);
}

.filter-tab.active {
    background: var(--gradient-gold);
    border-color: var(--primary);
    color: var(--bg-dark);
}

/* ========================================
   VIP Section
   ======================================== */

/* Banner Section */
.banner-section {
    margin-bottom: var(--space-md);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.banner-link {
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.banner-link:hover {
    transform: scale(1.02);
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.vip-promo-card {
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.2), rgba(255, 215, 0, 0.1));
    border: 1px solid var(--gold);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    position: relative;
    overflow: hidden;
}

.vip-promo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 215, 0, 0.1) 50%, transparent 60%);
    animation: shimmer-bg 3s ease-in-out infinite;
}

.vip-promo-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    position: relative;
}

.vip-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--bg-dark);
    flex-shrink: 0;
}

.vip-info h3 {
    font-weight: 700;
    margin-bottom: 2px;
    font-size: 0.9rem;
}

.vip-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.vip-promo-card .btn {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.85rem;
}

/* VIP Header */
.vip-header {
    text-align: center;
    padding: var(--space-xl) 0;
}

.vip-crown {
    width: 80px;
    height: 80px;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--bg-dark);
    margin: 0 auto var(--space-md);
    animation: float 3s ease-in-out infinite;
    box-shadow: var(--shadow-gold);
}

/* VIP Status Card */
.vip-status-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--border);
    margin-bottom: var(--space-xl);
}

.vip-level {
    margin-bottom: var(--space-lg);
}

.level-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.level-badge.silver {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: var(--bg-dark);
}

.level-badge.gold {
    background: var(--gradient-gold);
    color: var(--bg-dark);
}

.level-badge.diamond {
    background: var(--gradient-diamond);
    color: var(--bg-dark);
}

.level-progress {
    height: 8px;
    background: var(--bg-input);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-xs);
}

.level-progress .progress-bar {
    height: 100%;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.level-next {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.vip-benefits {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.benefit {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
}

.benefit i {
    width: 24px;
    text-align: center;
    color: var(--success);
}

.benefit.locked {
    color: var(--text-muted);
}

.benefit.locked i {
    color: var(--text-muted);
}

/* Plans Section */
.plans-section h2 {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.plans-grid {
    display: grid;
    gap: var(--space-md);
}

.plan-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--border);
    position: relative;
}

.plan-card.featured {
    border-color: var(--gold);
    background: linear-gradient(145deg, rgba(245, 166, 35, 0.1), var(--bg-card));
}

.plan-card.premium {
    border-color: var(--diamond-dark);
    background: linear-gradient(145deg, rgba(0, 188, 212, 0.1), var(--bg-card));
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-gold);
    color: var(--bg-dark);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.plan-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    padding-top: var(--space-sm);
}

.plan-name {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.plan-price {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-mono);
}

.plan-price small {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.plan-features {
    margin-bottom: var(--space-lg);
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    font-size: 0.9rem;
}

.plan-features li i {
    width: 20px;
    text-align: center;
}

.plan-features li i.fa-check {
    color: var(--success);
}

.plan-features li i.fa-times {
    color: var(--text-muted);
}

.plan-features li.disabled {
    color: var(--text-muted);
}

/* ========================================
   Tasks
   ======================================== */

.tasks-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.task-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transition: var(--transition-base);
}

.task-card:hover {
    border-color: var(--border-light);
}

.task-card.completed {
    opacity: 0.6;
}

.task-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.task-icon.purple {
    background: rgba(156, 39, 176, 0.15);
    color: #9c27b0;
}

.task-icon.blue {
    background: rgba(64, 196, 255, 0.15);
    color: var(--info);
}

.task-icon.green {
    background: rgba(0, 230, 118, 0.15);
    color: var(--success);
}

.task-icon.gold {
    background: rgba(245, 166, 35, 0.15);
    color: var(--primary);
}

.task-icon.red {
    background: rgba(255, 82, 82, 0.15);
    color: var(--error);
}

.task-info {
    flex: 1;
}

.task-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.task-reward {
    font-size: 0.8rem;
    color: var(--success);
}

.task-action {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.task-action:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.task-card.completed .task-action {
    background: var(--success);
    color: white;
}

/* ========================================
   History
   ======================================== */

.history-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.history-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.history-status {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.history-status.win {
    background: rgba(0, 230, 118, 0.15);
    color: var(--success);
}

.history-status.loss {
    background: rgba(255, 82, 82, 0.15);
    color: var(--error);
}

.history-info {
    flex: 1;
}

.history-match {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 0.9rem;
}

.history-bet {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.history-result {
    text-align: right;
}

.history-amount {
    font-weight: 700;
    font-family: var(--font-mono);
}

.history-amount.positive {
    color: var(--success);
}

.history-amount.negative {
    color: var(--error);
}

.history-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* History Stats */
.history-stats {
    display: flex;
    justify-content: space-around;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    border: 1px solid var(--border);
}

.history-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.stat-number.green {
    color: var(--success);
}

.stat-number.red {
    color: var(--error);
}

.stat-number.blue {
    color: var(--info);
}

.stat-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.history-full-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* ========================================
   Profile
   ======================================== */

.profile-header {
    margin: 0 calc(var(--space-md) * -1);
    margin-bottom: var(--space-lg);
}

.profile-cover {
    height: 120px;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    position: relative;
}

.cover-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, var(--bg-dark) 100%);
}

.profile-avatar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -50px;
    position: relative;
    padding: 0 var(--space-md);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    border: 4px solid var(--bg-dark);
    position: relative;
    margin-bottom: var(--space-md);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
}

.edit-avatar {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    border: 2px solid var(--bg-dark);
}

.profile-name-section {
    text-align: center;
}

.profile-name-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.profile-email {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: var(--space-xs);
}

.member-since {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Profile Stats Grid */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.profile-stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: center;
    border: 1px solid var(--border);
}

.profile-stat-card i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.profile-stat-card .value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-mono);
    margin-bottom: 2px;
}

.profile-stat-card .label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Profile Menu */
.profile-menu {
    margin-bottom: var(--space-xl);
}

.menu-section {
    margin-bottom: var(--space-lg);
}

.menu-section h3 {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
    padding: 0 var(--space-sm);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xs);
    transition: var(--transition-base);
}

.menu-item:hover {
    background: var(--bg-card-hover);
}

.menu-item i:first-child {
    width: 24px;
    text-align: center;
    color: var(--text-secondary);
}

.menu-item span {
    flex: 1;
}

.menu-item i:last-child {
    color: var(--text-muted);
}

.menu-value {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.menu-badge {
    background: var(--success);
    color: white;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
}

.toggle-switch {
    width: 44px;
    height: 24px;
    background: var(--bg-input);
    border-radius: var(--radius-full);
    position: relative;
    transition: var(--transition-base);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--text-muted);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.toggle-switch.active {
    background: var(--primary);
}

.toggle-switch.active::after {
    left: 22px;
    background: white;
}

/* ========================================
   Notification Panel
   ======================================== */

.notification-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--bg-card);
    z-index: var(--z-modal);
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
}

.notification-panel.active {
    right: 0;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.panel-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.close-panel {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-base);
}

.close-panel:hover {
    background: var(--bg-input);
    color: var(--text-primary);
}

.notifications-list {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
}

.notification-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-input);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
}

.notification-item.unread {
    background: rgba(245, 166, 35, 0.1);
    border-left: 3px solid var(--primary);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.success {
    background: rgba(0, 230, 118, 0.15);
    color: var(--success);
}

.notification-icon.warning {
    background: rgba(255, 171, 64, 0.15);
    color: var(--warning);
}

.notification-icon.info {
    background: rgba(64, 196, 255, 0.15);
    color: var(--info);
}

.notification-icon.gold {
    background: rgba(245, 166, 35, 0.15);
    color: var(--primary);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 0.9rem;
}

.notification-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.notification-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ========================================
   Support Chat
   ======================================== */

.support-chat {
    position: fixed;
    bottom: 100px;
    right: var(--space-md);
    width: calc(100% - var(--space-md) * 2);
    max-width: 360px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-modal);
    display: flex;
    flex-direction: column;
    max-height: 500px;
    transform: scale(0);
    transform-origin: bottom right;
    opacity: 0;
    transition: var(--transition-base);
}

.support-chat.active {
    transform: scale(1);
    opacity: 1;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-elevated);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    position: relative;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
}

.online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-elevated);
}

.chat-info {
    flex: 1;
}

.chat-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
}

.chat-info span {
    font-size: 0.75rem;
    color: var(--success);
}

.close-chat {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.close-chat:hover {
    background: var(--bg-input);
    color: var(--text-primary);
}

.chat-messages {
    flex: 1;
    padding: var(--space-md);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    min-height: 200px;
}

.message {
    max-width: 80%;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.message.received {
    background: var(--bg-input);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message.sent {
    background: var(--primary);
    color: var(--bg-dark);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message .time {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.message.sent .time {
    color: rgba(0, 0, 0, 0.5);
}

.chat-input-wrapper {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-top: 1px solid var(--border);
}

.chat-input-wrapper input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.chat-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
}

.send-btn {
    width: 40px;
    height: 40px;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    transition: var(--transition-base);
}

.send-btn:hover {
    transform: scale(1.1);
}

/* ========================================
   Modals
   ======================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    display: none;
    transition: var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    display: block;
}

.modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    z-index: calc(var(--z-modal) + 1);
    transform: translateY(100%);
    transition: var(--transition-slow);
    max-height: 90vh;
    overflow-y: auto;
    display: none;
}

.modal.active {
    transform: translateY(0);
    display: block;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-card);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.close-modal {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-base);
}

.close-modal:hover {
    background: var(--bg-input);
    color: var(--text-primary);
}

.modal-content {
    padding: var(--space-lg);
}

/* Deposit Modal */
.deposit-methods {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.method-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.method-btn img {
    height: 24px;
    width: auto;
}

.method-btn i {
    font-size: 1.5rem;
}

.method-btn span {
    font-size: 0.75rem;
    font-weight: 500;
}

.method-btn.active {
    border-color: var(--primary);
    background: rgba(245, 166, 35, 0.1);
    color: var(--primary);
}

.amount-presets {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.preset-btn {
    flex: 1;
    padding: var(--space-sm);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition-base);
}

.preset-btn.active {
    border-color: var(--primary);
    background: rgba(245, 166, 35, 0.1);
    color: var(--primary);
}

.deposit-bonus {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(0, 230, 118, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    color: var(--success);
    font-size: 0.875rem;
}

/* Withdraw Modal */
.withdraw-balance {
    text-align: center;
    padding: var(--space-lg);
    background: var(--bg-input);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.withdraw-balance span {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.withdraw-balance strong {
    font-size: 1.75rem;
    font-family: var(--font-mono);
}

.withdraw-info {
    margin-bottom: var(--space-lg);
}

.withdraw-info p {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

/* ========================================
   Toasts
   ======================================== */

.toast-container {
    position: fixed;
    top: var(--space-lg);
    right: var(--space-md);
    left: var(--space-md);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    pointer-events: none;
}

.toast {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary);
    animation: slideInRight 0.3s ease;
    pointer-events: auto;
}

.toast.success {
    border-color: var(--success);
}

.toast.error {
    border-color: var(--error);
}

.toast.warning {
    border-color: var(--warning);
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    background: rgba(0, 230, 118, 0.15);
    color: var(--success);
}

.toast.error .toast-icon {
    background: rgba(255, 82, 82, 0.15);
    color: var(--error);
}

.toast.warning .toast-icon {
    background: rgba(255, 171, 64, 0.15);
    color: var(--warning);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.toast-close {
    color: var(--text-muted);
    padding: var(--space-xs);
    transition: var(--transition-fast);
}

.toast-close:hover {
    color: var(--text-primary);
}

.toast.fade-out {
    animation: slideOutRight 0.3s ease forwards;
}

/* ========================================
   Install Banner (PWA)
   ======================================== */

.install-banner {
    position: fixed;
    bottom: 80px;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 12px 16px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-top: 2px solid var(--color-gold, #f5a623);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    display: none;
}

.install-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.install-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
}

.install-banner-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5a623 0%, #ffb84d 100%);
    border-radius: 12px;
    color: #0a0a0f;
    font-size: 18px;
}

.install-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.install-banner-text strong {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.install-banner-text span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    line-height: 1.2;
}

.install-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.install-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f5a623 0%, #ffb84d 100%);
    color: #0a0a0f;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.4);
}

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

.install-btn i {
    font-size: 14px;
}

.install-close-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.install-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.install-close-btn i {
    font-size: 14px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .install-banner {
        bottom: 70px;
        padding: 10px 12px;
    }

    .install-banner-content {
        gap: 10px;
    }

    .install-banner-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .install-banner-text strong {
        font-size: 13px;
    }

    .install-banner-text span {
        font-size: 11px;
    }

    .install-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .install-btn span {
        display: none;
    }

    .install-close-btn {
        width: 28px;
        height: 28px;
    }
}

/* Hide banner when app is installed */
@media (display-mode: standalone) {
    .install-banner {
        display: none !important;
    }
}

