/* Bangkok Hero Section */
.bangkok-hero-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bangkok-hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.bangkok-hero-gif {
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.bangkok-hero-video {
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

/* Close button for Bangkok hero */
.bangkok-hero-card .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.bangkok-hero-card .btn-close:hover {
    opacity: 1;
}

/* Modern Stat Cards - Smaller Version */
.modern-stat {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 15px;
}

.modern-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff9008, #ffa733);
}

.modern-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.modern-stat .stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    margin-bottom: 0;
    flex-shrink: 0;
}

.modern-stat .stat-info {
    flex: 1;
}

.modern-stat .stat-amount {
    font-size: 22px;
    font-weight: 700;
    color: #2d2d2d;
    margin: 8px 0;
}

.modern-stat .stat-info h5 {
    color: #666666;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* Modern Cards - Smaller Headers */
.modern-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.modern-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modern-card-header h5 {
    color: #2d2d2d;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.modern-card-header h5 i {
    color: #667eea;
    font-size: 14px;
}

/* Modern Stake Items - Compact */
.modern-stake-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.modern-stake-item:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modern-stake-item .badge {
    font-size: 10px;
    padding: 4px 8px;
}

/* Empty States - Smaller */
.empty-state {
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.empty-state i {
    opacity: 0.5;
}

/* Referral Stats - Compact */
.referral-stat {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px 10px;
    transition: all 0.3s ease;
}

.referral-stat:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.referral-stat .stat-value {
    color: #667eea;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Transaction Items - Compact */
.transaction-item {
    transition: all 0.3s ease;
    padding: 10px 0;
}

.transaction-item:hover {
    background: #f8f9fa;
    margin: 0 -10px;
    padding: 10px;
}

.transaction-icon {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: rgba(102, 126, 234, 0.1);
}

/* Form Improvements - Smaller */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    font-size: 14px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-control-sm {
    border-radius: 8px;
    font-size: 13px;
    padding: 8px 12px;
}

.input-group-text {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    background: #f8f9fa;
    font-size: 14px;
}

/* Button Improvements - Extra Small Support */
.btn-primary {
    background: linear-gradient(135deg, #5a6fd8, #6b4190);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8, #6b4190);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-primary.btn-xs {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-outline-secondary {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-outline-secondary.btn-sm {
    border-radius: 8px;
    font-size: 13px;
    padding: 8px 12px;
}

.btn-outline-secondary:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* Preview Box - Smaller */
.preview-box {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    transition: all 0.3s ease;
    padding: 15px;
}

.preview-box:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f4ff, #e8ecff);
}

/* Responsive Adjustments - Even More Compact */
@media (max-width: 768px) {
    .bangkok-hero-card {
        padding: 25px 15px;
    }
    
    .modern-stat {
        padding: 15px;
        margin-bottom: 12px;
    }
    
    .modern-stat .stat-amount {
        font-size: 20px;
    }
    
    .modern-card-header {
        padding: 15px;
    }
    
    .modern-card-header h5 {
        font-size: 0.9rem;
    }
    
    .referral-stat {
        padding: 12px 8px;
    }
    
    .modern-stake-item {
        padding: 12px;
    }
}

/* Remove old grid layouts that have been replaced with Bootstrap */
.stats-grid {
    display: block !important;
    grid-template-columns: none !important;
}

.dashboard-grid {
    display: block !important;
    grid-template-columns: none !important;
}

.dashboard-col {
    display: block !important;
    flex-direction: unset !important;
    gap: unset !important;
}

.referral-stats {
    display: block !important;
    grid-template-columns: none !important;
}

.stake-item {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: wrap;
}

.transaction-item {
    display: flex !important;
    align-items: center;
    border-bottom: 1px solid var(--light-gray);
}

/* Ensure proper spacing for Bootstrap grid */
.row.g-4 > * {
    margin-bottom: 1.5rem;
}

.row.g-3 > * {
    margin-bottom: 1rem;
}

.row.g-2 > * {
    margin-bottom: 0.5rem;
}

/* Mobile responsive adjustments */
@media (max-width: 767.98px) {
    .stake-item {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .stake-amount, .stake-date, .stake-claim, .stake-earned {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }
    
    .stake-actions {
        justify-content: flex-end;
        margin-top: 10px;
    }
}

/* Ensure transaction items work well on mobile */
@media (max-width: 575.98px) {
    .transaction-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .transaction-icon {
        margin-right: 0;
        margin-bottom: 8px;
    }
}
