
        .hide-scrollbar::-webkit-scrollbar { display: none; }
        .hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
        
        /* สไตล์สำหรับระบบทำนายยาม */
        .predict-section {
            background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
            border-radius: 20px;
            padding: 24px;
            margin-top: 24px;
            border: 2px solid #e2e8f0;
        }

        .predict-section textarea {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            font-size: 16px;
            transition: border-color 0.3s, box-shadow 0.3s;
            background: white;
            font-family: inherit;
            resize: vertical;
            min-height: 52px;
            line-height: 1.5;
        }

        .predict-section textarea:focus {
            outline: none;
            border-color: #0ba5e9;
            box-shadow: 0 0 0 3px rgba(11, 165, 233, 0.2);
        }

        .predict-section textarea::placeholder {
            color: #94a3b8;
        }

        .question-hint {
            font-size: 13px;
            color: #64748b;
            margin-top: 4px;
        }

        /* ปุ่มทำนาย - โทนแดง */
.btn-predict {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-predict:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.btn-predict:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ปุ่มรีเฟรส - โทนแดง */
#refreshBtn {
    background: #fef2f2;
    color: #991b1b;
    border: 2px solid #fca5a5;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#refreshBtn:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #ef4444;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

#refreshBtn:active {
    transform: scale(0.95);
}

        /* พื้นที่แสดงผลคำทำนาย */
        .predict-result {
            margin-top: 16px;
            padding: 20px;
            border-radius: 16px;
            background: white;
            border: 2px solid #e2e8f0;
            display: none;
            white-space: pre-wrap;
            line-height: 1.8;
            font-size: 15px;
        }

        /* ลูกแก้วหมุน (Loading Spinner) */
        .loading-spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255,255,255,0.3);
            border-radius: 50%;
            border-top-color: #ffffff;
            border-right-color: #ffffff;
            animation: spin 0.8s linear infinite;
            margin-right: 10px;
            vertical-align: middle;
            box-shadow: 0 0 8px rgba(255,255,255,0.8);
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* แอนิเมชัน pulse สำหรับลูกแก้วระหว่างรอ */
        @keyframes pulse {
            0% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.2); opacity: 0.8; }
            100% { transform: scale(1); opacity: 1; }
        }

        /* ปุ่มคัดลอกเล็ก ๆ (แบบระบบแชท) */
        .copy-btn {
            background: transparent;
            border: none;
            color: #64748b;
            cursor: pointer;
            padding: 2px 6px;
            border-radius: 6px;
            font-size: 13px;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-left: 6px;
            vertical-align: middle;
        }

        .copy-btn:hover {
            background: #f1f5f9;
            color: #0ba5e9;
        }

        .copy-btn:active {
            transform: scale(0.9);
        }

        /* ข้อความเวลาที่แสดงด้านล่างคำทำนาย */
        .result-time {
            font-size: 12px;
            color: #94a3b8;
            margin-top: 16px;
            padding-top: 12px;
            border-top: 1px dashed #e2e8f0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
        }

        .result-time .copy-btn {
            font-size: 12px;
            padding: 1px 4px;
            background: transparent;
            border: none;
            cursor: pointer;
            border-radius: 4px;
            transition: all 0.2s;
        }

        .result-time .copy-btn:hover {
            background: #f1f5f9;
            color: #0ba5e9;
        }

        .result-time .copy-btn.copied {
            color: #059669;
        }

        /* ===== จอคอม (640px ขึ้นไป) ===== */
        @media (min-width: 640px) {
            .btn-predict {
                min-width: 140px;
                padding: 0 32px;
                height: 48px;
                font-size: 16px;
            }
            
            #refreshBtn {
                padding: 0 20px;
                min-width: 48px;
                height: 48px;
            }
            
            #refreshBtn span.sm\:inline {
                display: inline !important;
            }
        }

        /* ===== มือถือ (ต่ำกว่า 640px) ===== */
        @media (max-width: 639px) {
            .btn-predict {
                flex: 1;
                min-width: 0;
                padding: 0 16px;
                height: 44px;
                font-size: 14px;
            }
            
            #refreshBtn {
                flex: 0 0 auto;
                padding: 0 12px;
                min-width: 44px;
                height: 44px;
            }
            
            #refreshBtn span.sm\:inline {
                display: none !important;
            }
        }