body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    /* Thêm CSS cho việc scale: Điều chỉnh chiều cao tối thiểu và ẩn thanh cuộn ngang */
    overflow-x: hidden;
    /* Đặt chiều cao tối thiểu để chứa toàn bộ nội dung sau khi đã scale (100vh / 0.65) */
    
}

/* --- CSS TỪ FILE INDEX.CSS BỊ MẤT (ĐÃ THÊM VÀO ĐÂY) --- */
#root {
    /* 1. Thiết lập kích thước để #root chiếm toàn bộ viewport */
    min-height: 100vh;
    width: 100vw;
    box-sizing: border-box;

    /* 2. Áp dụng scale 65% (0.65) */
    transform: scale(1.0);

    /* 3. Đảm bảo việc scale diễn ra từ góc trên bên trái */
    transform-origin: top left;
}
/* --- KẾT THÚC PHẦN CSS SCALE --- */

/* Basic prose styles for when tailwind typography plugin is not available */
.prose {
     color: #d1d5db;
}
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    color: #c4b5fd;
    font-weight: 600;
}
.prose strong {
    color: #f9fafb;
}
.prose a {
    color: #93c5fd;
}
.prose blockquote {
    border-left-color: #4f46e5;
    color: #a5b4fc;
}
.prose ul > li::before {
    background-color: #a5b4fc;
}

/* Utility to hide scrollbar but keep functionality */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Additions for toast animation */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-down {
    animation: fadeInDown 0.3s ease-out forwards;
}

/* News bubble animations */
@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-30px);
    }
}
.animate-slide-in-up {
    animation: slideInUp 0.4s ease-out forwards;
}
.animate-fade-out-up {
    animation: fadeOutUp 0.4s ease-in forwards;
}

/* Price flash animations */
@keyframes price-flash-up {
    0% { background-color: rgba(34, 197, 94, 0.4); } /* green-500 with opacity */
    100% { background-color: transparent; }
}
@keyframes price-flash-down {
    0% { background-color: rgba(239, 68, 68, 0.4); } /* red-500 with opacity */
    100% { background-color: transparent; }
}
.animate-price-flash-up {
    animation: price-flash-up 0.7s ease-out;
}
.animate-price-flash-down {
    animation: price-flash-down 0.7s ease-out;
}

/* --- Crypto Mode Theme Overrides --- */
/* Inspired by Binance Yellow/Gold */
:root {
    --crypto-accent-light: #fcd34d; /* amber-300 */
    --crypto-accent-main: #f59e0b;  /* amber-500 */
    --crypto-accent-dark: #b45309;  /* amber-700 */
}
.crypto-mode .text-purple-300 { color: var(--crypto-accent-light); }
.crypto-mode .text-purple-400 { color: var(--crypto-accent-main); }
.crypto-mode .bg-purple-600 { background-color: var(--crypto-accent-main); }
.crypto-mode .hover\:bg-purple-700:hover { background-color: var(--crypto-accent-dark); }
.crypto-mode .border-purple-400 { border-color: var(--crypto-accent-main); }
.crypto-mode .border-purple-500\/50 { border-color: rgba(245, 158, 11, 0.5); } /* amber-500 with 50% opacity */
.crypto-mode .focus\:ring-purple-500:focus { --tw-ring-color: var(--crypto-accent-main); }
.crypto-mode .bg-blue-600 { background-color: var(--crypto-accent-main); }
.crypto-mode .hover\:bg-blue-700:hover { background-color: var(--crypto-accent-dark); }
.crypto-mode .focus\:ring-blue-500:focus { --tw-ring-color: var(--crypto-accent-main); }
.crypto-mode .text-blue-400 { color: var(--crypto-accent-light); }
.crypto-mode .text-blue-300 { color: var(--crypto-accent-light); }
.crypto-mode .text-teal-300 { color: var(--crypto-accent-light); }
.crypto-mode .bg-teal-600 { background-color: var(--crypto-accent-main); }
.crypto-mode .hover\:bg-teal-700:hover { background-color: var(--crypto-accent-dark); }
.crypto-mode .blinking-cursor { background-color: var(--crypto-accent-light); }
.crypto-mode .text-purple-200 { color: var(--crypto-accent-light); }
.crypto-mode .prose h1, .crypto-mode .prose h2, .crypto-mode .prose h3, .crypto-mode .prose h4, .crypto-mode .prose h5, .crypto-mode .prose h6 { color: var(--crypto-accent-light); }