/* 
  LuckyNumberTH - Premium Theme 2024
  Color Palette:
  - Primary: #6366F1 (Royal Purple)
  - Secondary: #3B82F6 (Sky Blue)
  - Accent: #10B981 (Emerald)
  - Gold: #F59E0B (Premium Gold)
  - Rose: #EC4899 (Vibrant Pink)
  - Light: #FAFBFC
  - Dark: #0F172A
*/

:root {
    --primary-color: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #818CF8;
    --secondary-color: #3B82F6;
    --secondary-light: #60A5FA;
    --accent-color: #10B981;
    --accent-hover: #059669;
    --gold-color: #F59E0B;
    --gold-light: #FCD34D;
    --rose-color: #EC4899;
    --light-bg: #FAFBFC;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-500: #6B7280;
    --gray-700: #374151;
    --gray-900: #0F172A;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --gradient-primary: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    --gradient-gold: linear-gradient(135deg, #F59E0B 0%, #FCD34D 50%, #F59E0B 100%);
    --gradient-premium: linear-gradient(135deg, #6366F1 0%, #3B82F6 50%, #10B981 100%);
    --gradient-vibrant: linear-gradient(135deg, #EC4899 0%, #8B5CF6 50%, #3B82F6 100%);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.3);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-700);
    background-color: var(--gray-50);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--gray-900);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    font-family: 'Kanit', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

/* Responsive Text Sizing - Auto-fit to screen */
.text-gradient, h1, h2, h3, h4, h6 {
    font-size: clamp(1.5rem, 4vw, 3rem) !important;
    line-height: 1.2 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* H5 specific sizing - ลดขนาดลงจาก h1-h4 */
h5 {
    font-size: clamp(1rem, 2.5vw, 1.5rem) !important;
    line-height: 1.2 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.hero-subtitle, .text-muted, p {
    font-size: clamp(1rem, 2.5vw, 1.2rem) !important;
    line-height: 1.5 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* Featured numbers section background and subtitle style */
section.py-5:not(.bg-light) {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    position: relative;
    margin-top: -1px; /* Fix any gap */
    padding: 5rem 0; /* Add more padding for better spacing */
}

section.py-5:not(.bg-light) > .container > .text-center > p.text-muted:not(.small) {
    color: #ffffff !important;
    font-weight: 500;
    opacity: 0.95;
    font-size: 1.125rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

section.py-5:not(.bg-light) .text-gradient {
    color: #ffffff !important;
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 10px rgba(245, 158, 11, 0.3));
}

/* Mobile responsiveness for featured section */
@media (max-width: 768px) {
    section.py-5:not(.bg-light) {
        padding: 3rem 0;
    }
    
    section.py-5:not(.bg-light) > .container > .text-center > p.text-muted:not(.small) {
        font-size: 1rem;
    }
}

/* Button Text Fix - Prevent wrapping */
.btn {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: clamp(0.875rem, 2vw, 1rem) !important;
}

.btn-lg {
    font-size: clamp(1rem, 2.5vw, 1.25rem) !important;
}

.btn-sm {
    font-size: clamp(0.75rem, 1.8vw, 0.875rem) !important;
}

/* Navbar Styles */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    padding: 1rem 0;
    z-index: 2000; /* ensure dropdown over hero */
}

.navbar-brand {
    font-size: 1.875rem;
    font-weight: 900;
    background: linear-gradient(90deg, 
        #FFD700 0%, 
        #FFA500 20%, 
        #FF69B4 40%, 
        #8A2BE2 60%, 
        #00CED1 80%, 
        #FFD700 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: shineGradient 3s linear infinite;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    letter-spacing: 0.5px;
}

@keyframes shineGradient {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.navbar-brand i {
    -webkit-text-fill-color: transparent;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 1.875rem;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

.navbar-nav .nav-link {
    color: var(--gray-700) !important;
    font-weight: 500;
    padding: 0.625rem 1.25rem !important;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 0.5rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: var(--gray-50);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 0;
    height: 3px;
    background: var(--gradient-premium);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.navbar .dropdown-menu {
    z-index: 2100; /* keep above hero */
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    padding: 0.5rem 0.25rem;
}

/* Show dropdown on hover (desktop UX) */
@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu { display: block; }
}

.navbar-nav .nav-link:hover::after {
    width: 60%;
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
}

.btn-success {
    background: var(--gradient-premium);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.4);
}

.btn-gold {
    background: var(--gradient-gold);
    color: var(--gray-900);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    font-weight: 700;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.4);
}

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

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.3);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-vibrant);
    color: white;
    padding: 10rem 0 8rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
    z-index: 0;
    pointer-events: none; /* Ensure hero buttons are clickable */
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: rotate 30s linear infinite;
    z-index: 0;
    pointer-events: none; /* Ensure hero buttons are clickable */
}

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

.hero-section h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(45deg, 
        #FFFFFF 0%,
        #FFD700 25%, 
        #FFA500 50%, 
        #FF69B4 75%,
        #FFFFFF 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroShine 4s ease-in-out infinite;
    filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.6)) 
            drop-shadow(0 0 80px rgba(255, 105, 180, 0.4));
    line-height: 1.2;
}

.hero-section .hero-subtitle,
.hero-section .lead,
.lux-hero .lux-subtitle {
    text-align: center;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure buttons in hero are always interactive */
.hero-section .btn,
.hero-section .btn-enhanced,
.hero-section a.btn,
.hero-section .chip {
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

@keyframes heroShine {
    0%, 100% { 
        background-position: 0% center;
        filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.6)) 
                drop-shadow(0 0 80px rgba(255, 105, 180, 0.4));
    }
    50% { 
        background-position: 200% center;
        filter: drop-shadow(0 0 60px rgba(255, 215, 0, 0.8)) 
                drop-shadow(0 0 100px rgba(255, 105, 180, 0.6));
    }
}

.hero-section h1 .emoji {
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-section .lead {
    font-size: 1.5rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto 2rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

/* Cards */
.card {
    border: none;
    border-radius: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    padding: 1.25rem;
    border: none;
}

/* Number Cards */
.number-card {
    background: white;
    border-radius: 1.25rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.number-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-premium);
}

.number-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-light);
}

.number-card.vip {
    background: linear-gradient(135deg, #FFFBF0 0%, #FFF8E1 100%);
    border: 2px solid var(--gold-color);
}

.number-card.vip::before {
    background: var(--gradient-gold);
    height: 8px;
}

.number-card.vip::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: var(--gradient-gold);
    border-radius: 50%;
    opacity: 0.2;
}

.phone-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: 0.1em;
    margin: 1.5rem 0;
    font-family: 'Arial Black', sans-serif;
}

.price {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}



/* Category Cards */
.category-card {
    background: white;
    border-radius: 1.25rem;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: visible !important; /* เปลี่ยนจาก hidden เป็น visible */
}

.category-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-premium);
    opacity: 0;
    transition: all 0.5s ease;
    transform: rotate(45deg);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-light);
}

.category-card:hover::before {
    opacity: 0.05;
}

.category-card i {
    font-size: 3.5rem;
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.category-card:hover i {
    transform: scale(1.2) rotate(5deg);
}

.category-card h5 {
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.category-card p {
    color: var(--gray-500);
    font-size: 0.9375rem;
    margin: 0;
}

/* Search Box */
.search-box {
    background: white;
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
    margin: -4rem auto 4rem;
    position: relative;
    z-index: 10;
    border: 1px solid var(--gray-100);
}

.search-box h2 {
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-box .form-control {
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.search-box .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

.search-box .input-group-text {
    background: var(--gradient-premium);
    border: none;
    color: white;
    padding: 0 1.5rem;
}

/* Feature Box */
.feature-box {
    text-align: center;
    padding: 2.5rem;
    border-radius: 1.25rem;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--gray-100);
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-light);
}

.feature-box i {
    font-size: 3.5rem;
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-box h5 {
    color: var(--gray-900);
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-box p {
    color: var(--gray-500);
    margin: 0;
    line-height: 1.7;
}

/* Statistics Box */
.stat-box {
    padding: 2rem;
    border-radius: 1.25rem;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.stat-box h3 {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Contact Info */
.contact-info {
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-100);
}

.contact-info h6 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.125rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--gray-900) 0%, #1E293B 100%);
    color: var(--gray-300);
    padding: 5rem 0 2rem;
    margin-top: 5rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-premium);
}

body footer h5,
html body footer h5,
footer > div h5,
footer .container h5 {
    color: white !important;
    font-weight: 600 !important;
    margin-bottom: 1.25rem !important;
    font-size: 1rem !important; /* ลดขนาด base size ให้สอดคล้องกับ desktop */
    line-height: 1.3 !important; /* override line-height จาก h5 general rule */
    word-wrap: normal !important; /* override word-wrap */
    overflow-wrap: normal !important; /* override overflow-wrap */
}

footer a {
    color: var(--gray-300);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

footer a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

footer .social-links a:hover {
    background: var(--gradient-premium);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.3);
}

/* Desktop footer adjustments for better proportions */
@media (min-width: 992px) {
    footer {
        padding: 3rem 0 1.5rem; /* ลด padding ให้กระชับขึ้น */
        margin-top: 3rem; /* ลด margin top */
    }
    
    body footer h5,
    html body footer h5,
    footer > div h5,
    footer .container h5 {
        font-size: 0.875rem !important; /* ลดขนาดหัวข้อลงอีก 3 ขั้น จาก 1.1rem เป็น 0.875rem (14px) */
        margin-bottom: 1rem !important; /* ลด margin bottom */
        letter-spacing: 0.03em !important; /* เพิ่มระยะห่างตัวอักษรเพื่อให้อ่านง่าย */
        font-weight: 600 !important; /* ลด font-weight เล็กน้อย */
        line-height: 1.3 !important; /* override line-height จาก h5 general rule */
        word-wrap: normal !important; /* override word-wrap */
        overflow-wrap: normal !important; /* override overflow-wrap */
    }
    
    footer p,
    footer li,
    footer a {
        font-size: 0.8125rem; /* ลดขนาดข้อความเป็น 13px เพื่อให้สมดุลกับหัวข้อที่เล็กลง */
        line-height: 1.5;
    }
    
    footer .social-links a {
        width: 36px; /* ลดขนาดจาก 40px เป็น 36px */
        height: 36px;
        font-size: 1rem; /* ลดขนาดไอคอน */
        margin: 0 0.3rem; /* ลดระยะห่าง */
    }
    
    /* ปรับขนาดไอคอนในลิสต์ให้เล็กลง */
    footer ul li a i {
        font-size: 0.875rem;
        opacity: 0.8;
        transition: all 0.3s ease;
    }
    
    footer ul li a:hover i {
        opacity: 1;
        transform: none; /* ยกเลิก scale เพื่อให้ข้อความไม่เลื่อน */
    }
    
    /* Brand name styling */
    body footer .col-lg-4:first-child h5,
    html body footer .col-lg-4:first-child h5,
    footer > div .col-lg-4:first-child h5,
    footer .container .col-lg-4:first-child h5 {
        background: linear-gradient(45deg, #f59e0b, #fbbf24) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        font-weight: 700 !important;
        font-size: 1.25rem !important; /* เพิ่มขนาด brand name ขึ้น 2 ขั้น (20px) */
        line-height: 1.3 !important; /* override line-height */
        word-wrap: normal !important; /* override word-wrap */
        overflow-wrap: normal !important; /* override overflow-wrap */
        padding-left: 0 !important; /* ชิดซ้าย */
        margin-left: 0 !important; /* ชิดซ้าย */
        text-align: left !important; /* ชิดซ้าย */
    }
}

/* Large desktop adjustments */
@media (min-width: 1200px) {
    body footer h5,
    html body footer h5,
    footer > div h5,
    footer .container h5 {
        font-size: 0.9rem !important; /* ลดขนาดลงจาก 1.15rem เป็น 0.9rem สำหรับจอใหญ่ */
        line-height: 1.3 !important; /* override line-height จาก h5 general rule */
        word-wrap: normal !important; /* override word-wrap */
        overflow-wrap: normal !important; /* override overflow-wrap */
    }
    
    footer p,
    footer li,
    footer a {
        font-size: 0.875rem; /* คงขนาดไว้ที่ 14px */
    }
    
    /* Brand name สำหรับจอใหญ่ */
    body footer .col-lg-4:first-child h5,
    html body footer .col-lg-4:first-child h5,
    footer > div .col-lg-4:first-child h5,
    footer .container .col-lg-4:first-child h5 {
        font-size: 1.35rem !important; /* เพิ่มขนาด brand name ขึ้น 2 ขั้นบนจอใหญ่ (21.6px) */
        line-height: 1.3 !important; /* override line-height */
        word-wrap: normal !important; /* override word-wrap */
        overflow-wrap: normal !important; /* override overflow-wrap */
        padding-left: 0 !important; /* ชิดซ้าย */
        margin-left: 0 !important; /* ชิดซ้าย */
        text-align: left !important; /* ชิดซ้าย */
    }
}

/* Additional footer enhancements */
footer ul {
    list-style: none;
    padding-left: 0;
}

/* Footer text alignment - ชิดซ้ายทั้งหมด */
footer h5,
footer p,
footer ul,
footer ul li,
footer ul li a {
    text-align: left !important;
}

/* Footer columns - Keep Bootstrap default padding */
footer .col-lg-4,
footer .col-lg-2,
footer .col-lg-3,
footer .col-md-4 {
    padding-left: 15px; /* Bootstrap default */
    padding-right: 15px; /* Bootstrap default */
}

/* Footer brand name positioning - Force align to left edge */
footer .container .row .col-lg-4:first-child > h5:first-child,
body footer .col-lg-4:first-child h5:first-child {
    position: relative;
    left: -15px !important; /* Pull brand name to the left edge */
    display: inline-block;
}

/* Mobile responsiveness - คงการชิดซ้ายบน mobile */
@media (max-width: 991px) {
    footer .container .row .col-md-4:first-child > h5:first-child,
    footer .container .row .col-12:first-child > h5:first-child,
    body footer .col-md-4:first-child h5:first-child,
    body footer .col-12:first-child h5:first-child {
        left: -15px !important; /* Keep brand aligned left on mobile */
        position: relative;
        display: inline-block;
    }
    
    /* Reset padding for mobile columns */
    footer .col-12:not(:first-child) {
        margin-top: 2rem;
    }
}

/* ปรับ padding และ margin ให้ตรงกัน */
footer h5 {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

footer p {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* จัดการ icons ให้มีระยะห่างเท่ากัน */
footer i {
    width: 1.25rem; /* กำหนดความกว้างคงที่ */
    text-align: center;
    display: inline-block;
    margin-right: 0.5rem; /* ระยะห่างจากข้อความ */
    vertical-align: middle;
}

/* Contact info icons - ติดกับข้อความ */
footer p i {
    margin-right: 0.75rem; /* เพิ่มระยะห่างสำหรับ contact info */
}

/* Social links จัดชิดซ้าย */
footer .social-links {
    padding-left: 0 !important;
    margin-left: 0 !important;
    text-align: left !important;
    justify-content: flex-start !important;
}

/* Footer first column content alignment */
footer .col-lg-4:first-child p,
footer .col-lg-4:first-child .social-links {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* Ensure brand name is fully visible */
footer {
    overflow-x: hidden; /* Prevent horizontal scroll */
}

footer ul li {
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

footer ul li:hover {
    transform: none; /* ยกเลิกการเลื่อนเมื่อ hover เพื่อให้ข้อความตรงกัน */
}

/* Footer links styling */
footer ul li a {
    color: var(--gray-300);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block; /* เปลี่ยนจาก flex เป็น inline-block */
    vertical-align: middle;
}

footer ul li a:hover {
    color: var(--primary-light);
}

/* ยกเลิก hover effect สำหรับ icons */
footer ul li a:hover i {
    transform: none !important;
}

/* Copyright section styling */
footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 3rem 0 2rem 0;
}

@media (min-width: 992px) {
    footer hr {
        margin: 2.5rem 0 1.5rem 0;
    }
    
    /* Compact footer lists on desktop */
    footer ul li {
        margin-bottom: 0.4rem; /* ลด spacing ระหว่าง list items */
    }
    
    /* Fine-tune copyright text */
    footer .row.align-items-center p {
        font-size: 0.85rem;
        opacity: 0.8;
    }
    
    footer .row.align-items-center a {
        font-size: 0.85rem;
        opacity: 0.8;
        transition: opacity 0.3s ease;
    }
    
    footer .row.align-items-center a:hover {
        opacity: 1;
        transform: none; /* ไม่ต้องเลื่อนสำหรับ copyright links */
    }
}

/* ULTIMATE FORCE OVERRIDE - Footer H5 Sizes */
body footer h5,
html body footer h5,
footer h5,
footer > div h5,
footer .container h5,
footer .row h5,
footer .col-lg-4 h5,
footer .col-lg-2 h5,
footer .col-lg-3 h5,
footer .col-md-4 h5 {
    font-size: 1rem !important; /* Mobile and base size */
}

@media (min-width: 992px) {
    body footer h5,
    html body footer h5,
    footer h5,
    footer > div h5,
    footer .container h5,
    footer .row h5,
    footer .col-lg-4 h5,
    footer .col-lg-2 h5,
    footer .col-lg-3 h5,
    footer .col-md-4 h5 {
        font-size: 1.125rem !important; /* Desktop: 18px - เพิ่มขึ้น 2 ขั้น */
    }
}

@media (min-width: 1200px) {
    body footer h5,
    html body footer h5,
    footer h5,
    footer > div h5,
    footer .container h5,
    footer .row h5,
    footer .col-lg-4 h5,
    footer .col-lg-2 h5,
    footer .col-lg-3 h5,
    footer .col-md-4 h5 {
        font-size: 1.2rem !important; /* Large desktop: 19.2px - เพิ่มขึ้น 2 ขั้น */
    }
}

/* Mobile footer adjustments */
@media (max-width: 991px) {
    footer {
        text-align: center;
    }
    
    footer .col-lg-4,
    footer .col-lg-2,
    footer .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    footer ul {
        margin-bottom: 1rem;
    }
    
    footer .social-links {
        justify-content: flex-start; /* จัดชิดซ้ายบน mobile ด้วย */
        margin-top: 1rem;
    }
}

/* Badges */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge.bg-warning {
    background: var(--gradient-gold) !important;
    color: var(--gray-900);
}

.badge.bg-success {
    background: linear-gradient(135deg, var(--success) 0%, #34D399 100%) !important;
}

.badge.bg-primary {
    background: var(--gradient-primary) !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, var(--gray-500) 0%, var(--gray-600) 100%) !important;
}

/* Pagination */
.pagination {
    gap: 0.75rem;
}

.page-link {
    color: var(--primary-color);
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 0.625rem 1.25rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.page-link:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Stat Cards (Admin) */
.stat-card {
    border-radius: 1.25rem;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: white;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
}

.stat-card.bg-primary {
    background: var(--gradient-primary) !important;
}

.stat-card.bg-success {
    background: linear-gradient(135deg, var(--success) 0%, #34D399 100%) !important;
}

.stat-card.bg-warning {
    background: var(--gradient-gold) !important;
    color: var(--gray-900);
}

.stat-card.bg-info {
    background: var(--gradient-vibrant) !important;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-section {
        padding: 6rem 0 4rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6)) 
                drop-shadow(0 0 40px rgba(255, 105, 180, 0.4));
    }
    
    .hero-section .lead {
        font-size: 1.125rem;
    }
    
    .search-box {
        padding: 2rem;
        margin: -3rem auto 3rem;
    }
    
    .navbar-brand {
        font-size: 1.375rem;
    }
    
    .navbar-brand i {
        font-size: 1.5rem;
    }
    
    .phone-number {
        font-size: 1.75rem;
    }
    
    .price {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .text-gradient, h1, h2, h3, h4, h5, h6 {
        font-size: clamp(1rem, 6vw, 1.5rem) !important;
    }
    
    .hero-subtitle, .text-muted, p {
        font-size: clamp(0.75rem, 3.5vw, 0.875rem) !important;
    }
    
    .btn {
        font-size: clamp(0.625rem, 3vw, 0.75rem) !important;
        padding: 0.375rem 0.75rem !important;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(99, 102, 241, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Scroll to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: var(--gradient-premium);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

/* Loading Spinner */
.spinner-border {
    color: var(--primary-color);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Glow Effects */
.glow {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.text-glow {
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

/* Premium Effects */
.premium-border {
    position: relative;
    background: white;
    border-radius: 1.25rem;
    padding: 2rem;
}

.premium-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-premium);
    border-radius: 1.25rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-border:hover::before {
    opacity: 1;
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* 🔥 2024-2025 Modern Design Enhancements */

/* Glassmorphism Effects */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

/* Neumorphism for special elements */
.neomorph {
    background: #f0f0f3;
    border-radius: 20px;
    box-shadow: 
        20px 20px 60px #bebebe,
        -20px -20px 60px #ffffff;
    transition: all 0.3s ease;
}

.neomorph:hover {
    box-shadow: 
        inset 20px 20px 60px #bebebe,
        inset -20px -20px 60px #ffffff;
}

/* Magnetic Button Effects */
.btn-magnetic {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-magnetic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.5s;
    z-index: -1;
}

.btn-magnetic:hover::before {
    left: 100%;
}

.btn-magnetic:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* Enhanced Number Card with Glassmorphism - 2025 PREMIUM UPGRADE */
.number-card-glass {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(124, 58, 237, 0.15) !important;
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(124, 58, 237, 0.1) !important;
}

.number-card-glass:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.2) !important;
    border-color: rgba(124, 58, 237, 0.3) !important;
}

/* PREMIUM PHONE NUMBER DISPLAY - 2025 ENHANCED - FIXED SIZE */
.number-display-enhanced {
    font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
    font-size: 1.2rem !important; /* Desktop default */
    font-weight: 900 !important;
    color: #1e40af !important;
    letter-spacing: 0.01em;
    line-height: 1.1;
    margin: 2rem 0 1rem 0; /* กลับไปใช้ margin เดิม */
    text-shadow: 0 2px 10px rgba(30, 64, 175, 0.3);
    background: linear-gradient(135deg, #1e40af, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Enhanced price display - FIXED SIZE */
.price-display-enhanced {
    font-size: 1.1rem !important; /* Desktop default */
    font-weight: 900 !important;
    color: #dc2626 !important;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
    background: linear-gradient(135deg, #dc2626, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* VIP Badge Enhancement - FIXED POSITIONING */
.vip-card .badge,
.number-card-glass .badge.bg-warning {
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706) !important;
    color: #1f2937 !important;
    border: 2px solid #f59e0b;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    padding: 6px 10px !important;
    border-radius: 18px !important;
    box-shadow: 0 3px 15px rgba(245, 158, 11, 0.4);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    z-index: 4;
}

/* Prevent badge overlap */
.vip-card .position-absolute.top-0.start-0 {
    z-index: 4;
}

.vip-card .operator-badge {
    z-index: 3;
}

/* Enhanced spacing for VIP cards */
.vip-card .number-display-enhanced {
    margin-top: 3.5rem !important;
    margin-bottom: 1rem !important;
}

.vip-card .price-display-enhanced {
    margin-bottom: 1rem !important;
}



/* Mobile Responsiveness for Enhanced Numbers - FIXED */
@media (max-width: 768px) {
    .number-display-enhanced {
        font-size: 1.6rem !important; /* Mobile size */
        margin: 1.5rem 0 0.5rem 0;
    }
    
    .price-display-enhanced {
        font-size: 1.3rem !important; /* Mobile size */
        margin-bottom: 0.5rem;
    }
    
    .number-card-glass {
        padding: 1.5rem;
    }
    
    .operator-badge .badge {
        font-size: 0.75rem !important;
        padding: 5px 8px !important;
    }
    
    .vip-card .badge {
        font-size: 0.75rem !important;
        padding: 5px 8px !important;
    }
}

@media (max-width: 576px) {
    .number-display-enhanced {
        font-size: 1.6rem !important; /* Small Mobile size */
        margin: 1.5rem 0 0.5rem 0;
    }
    
    .price-display-enhanced {
        font-size: 1.3rem !important; /* Small Mobile size */
    }
    
    .number-card-glass {
        padding: 1.25rem;
    }
    
    .operator-badge .badge {
        font-size: 0.7rem !important;
        padding: 4px 6px !important;
    }
    
    .vip-card .badge {
        font-size: 0.7rem !important;
        padding: 4px 6px !important;
    }
}

/* Desktop Enhancement - FIXED SIZE */
@media (min-width: 992px) {
    .number-display-enhanced {
        font-size: 1.3rem !important; /* Desktop size - เล็กลงจากเดิม */
        margin: 2rem 0 1rem 0;
    }
    
    .price-display-enhanced {
        font-size: 1.1rem !important; /* Desktop size - เล็กลงจากเดิม */
        margin-bottom: 1rem;
    }
    
    .number-card-glass {
        padding: 2rem;
    }
    
    .operator-badge .badge {
        font-size: 0.9rem !important;
        padding: 8px 12px !important;
    }
    
    .vip-card .badge {
        font-size: 0.9rem !important;
        padding: 8px 12px !important;
    }
}

/* Extra Large Desktop - FIXED SIZE */
@media (min-width: 1200px) {
    .number-display-enhanced {
        font-size: 1.6rem !important; /* Large Desktop size */
        margin: 2rem 0 1rem 0;
    }
    
    .price-display-enhanced {
        font-size: 1.3rem !important; /* Large Desktop size */
    }
}

/* Hover Effects Enhancement */
.number-card-glass:hover .number-display-enhanced {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.number-card-glass:hover .price-display-enhanced {
    transform: scale(1.08);
    transition: transform 0.3s ease;
}

/* Animation for Number Cards */
@keyframes numberCardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.number-card-glass {
    animation: numberCardFloat 6s ease-in-out infinite;
}

.number-card-glass:hover {
    animation: none;
}

/* Glow Effect for Premium Numbers */
.premium-border::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #fbbf24, #f59e0b, #d97706, #fbbf24);
    border-radius: 26px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-border:hover::after {
    opacity: 0.3;
}

/* Advanced Gradients */
.gradient-mesh {
    background: 
        radial-gradient(at 40% 20%, hsla(28,100%,74%,1) 0px, transparent 50%),
        radial-gradient(at 80% 0%, hsla(189,100%,56%,1) 0px, transparent 50%),
        radial-gradient(at 0% 50%, hsla(355,100%,93%,1) 0px, transparent 50%),
        radial-gradient(at 80% 50%, hsla(340,100%,76%,1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, hsla(22,100%,77%,1) 0px, transparent 50%),
        radial-gradient(at 80% 100%, hsla(242,100%,70%,1) 0px, transparent 50%),
        radial-gradient(at 0% 0%, hsla(343,100%,76%,1) 0px, transparent 50%);
}

/* Interactive Focus Ring */
.focus-ring {
    transition: all 0.3s ease;
}

.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.3);
    transform: scale(1.02);
}

/* Staggered Animation Helper */
.stagger-animation {
    animation: fadeInUp 0.8s ease-out both;
}

.stagger-animation:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation:nth-child(5) { animation-delay: 0.5s; }
.stagger-animation:nth-child(6) { animation-delay: 0.6s; }

/* Text Effects */
.text-gradient {
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shimmer {
    background: linear-gradient(90deg, 
        #dc2626 0%, 
        #ef4444 50%, 
        #dc2626 100%);
    background-size: 100% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: priceBlink 3s ease-in-out infinite;
}

@keyframes priceBlink {
    0%, 100% { 
        opacity: 1;
        filter: brightness(1);
    }
    50% { 
        opacity: 0.7;
        filter: brightness(1.3);
    }
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, 
        #f0f0f0 25%, 
        #e0e0e0 50%, 
        #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Enhanced Form Controls */
.form-control-modern {
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control-modern:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: scale(1.02);
}

/* Interactive Chips */
.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--gray-200);
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0.25rem;
}

.chip:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.chip.active {
    background: var(--gradient-premium);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Premium Toast Notifications */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 9999;
}

.toast-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    min-width: 300px;
    animation: slideInRight 0.4s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile-First Optimizations */
@media (max-width: 576px) {
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        min-height: 48px; /* Touch-friendly */
    }
    
    .number-card-glass,
    .number-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .search-morph {
        padding: 2rem 1.5rem;
        margin: -2rem auto 2rem;
    }
    
    .hero-section {
        padding: 4rem 0 3rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar-brand,
    .hero-section h1,
    .text-gradient {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Dark Mode Support (if needed) */
@media (prefers-color-scheme: dark) {
    :root {
        --gray-50: #0F172A;
        --gray-100: #1E293B;
        --gray-200: #334155;
        --white: #1E293B;
    }
    
    .number-card-glass {
        background: rgba(30, 41, 59, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
    }
}

/* Performance Optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible for keyboard navigation */
.btn:focus-visible,
.form-control:focus-visible,
.page-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
} 

/* vip-card style (match homepage featured) - 2025 ENHANCED */
.vip-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 251, 240, 0.98), rgba(255, 248, 225, 0.98)) !important;
    border: 3px solid #f59e0b !important;
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.15) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.vip-card:before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(124,58,237,.08), rgba(14,165,233,.05));
}

.vip-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 30px 80px rgba(245, 158, 11, 0.25);
    border-color: #fbbf24;
}

.vip-card.sold { 
    filter: grayscale(0.8) !important; 
    opacity: 0.7 !important; 
}

/* Enhanced number display for vip-card */
.vip-card .number-display-enhanced {
    font-size: 2.5rem !important;
    color: #1e40af !important;
    text-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
    margin: 2rem 0 1.5rem 0;
}

.vip-card .price-display-enhanced {
    font-size: 2rem !important;
    color: #dc2626 !important;
    text-shadow: 0 3px 10px rgba(220, 38, 38, 0.3);
    margin-bottom: 1.5rem;
}

/* Search morphing box enhancement */
.search-morph {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(124, 58, 237, 0.2);
    border-radius: 30px;
    padding: 3rem 3rem 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.15);
}

.search-morph::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: conic-gradient(from 0deg at 50% 50%, 
        #6366F1 0deg, 
        #8B5CF6 60deg, 
        #EC4899 120deg, 
        #EF4444 180deg,
        #F59E0B 240deg,
        #10B981 300deg,
        #6366F1 360deg);
    border-radius: 30px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: rotate 4s linear infinite;
}

.search-morph:hover::before {
    opacity: 0.7;
}

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

/* Enhanced form controls */
.form-control-modern {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(124, 58, 237, 0.2);
    border-radius: 20px;
    padding: 15px 20px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control-modern:focus {
    border-color: #6366f1;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    transform: scale(1.02);
}

/* Enhanced buttons */
.btn-magnetic {
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: 20px;
    font-weight: 700;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

.btn-magnetic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.5s;
    z-index: -1;
}

.btn-magnetic:hover::before {
    left: 100%;
}

.btn-magnetic:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* Focus ring enhancement */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    transform: scale(1.02);
}

/* Stagger animation enhancement */
.stagger-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.stagger-animation.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Text effects enhancement */
.text-gradient {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.text-shimmer {
    background: linear-gradient(90deg, #dc2626, #ef4444, #f97316, #dc2626);
    background-size: 100% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: priceBlink 3s ease-in-out infinite;
}

/* Neumorphism enhancement */
.neomorph {
    background: #f8fafc;
    box-shadow: 
        8px 8px 16px #d1d5db,
        -8px -8px 16px #ffffff;
    border-radius: 20px;
    border: none;
}

.neomorph:hover {
    box-shadow: 
        12px 12px 20px #d1d5db,
        -12px -12px 20px #ffffff;
    transform: translateY(-2px);
}

/* Category cards enhancement */
.category-card {
    background: #fff;
    border: 2px solid #eef2ff;
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(15,23,42,.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible !important; /* เปลี่ยนจาก hidden เป็น visible */
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(15,23,42,.12);
    border-color: #6366f1;
}

.category-card i {
    font-size: 3rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.category-card h5 {
    color: #1e293b;
    font-weight: 800;
    margin-bottom: 1rem;
}

.category-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Hero section enhancement */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: #fff;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><defs><linearGradient id="g" x1="0" y1="0" x2="1" y2="1"><stop stop-color="%236366f1"/><stop offset="1" stop-color="%238b5cf6"/></linearGradient></defs><circle cx="20" cy="20" r="2" fill="url(%23g)"/><circle cx="80" cy="30" r="1.5" fill="url(%23g)"/><circle cx="40" cy="70" r="2.5" fill="url(%23g)"/><circle cx="70" cy="80" r="1" fill="url(%23g)"/></svg>');
    background-size: 400px 400px;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-section .lead {
    font-size: 1.125rem;
    color: #e2e8f0;
    margin-bottom: 3rem;
}

/* Stats enhancement */
.stat-card {
    background: #1e293b !important; /* เปลี่ยนจาก #fff เป็น #1e293b (สีน้ำเงินเข้ม) */
    color: #ffffff !important; /* ข้อความเป็นสีขาว */
    border: 1px solid rgba(255, 255, 255, 0.2) !important; /* เส้นขอบสีขาวโปร่งแสง */
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 15px 40px rgba(15,23,42,.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(15,23,42,.12);
    border-color: rgba(255, 255, 255, 0.4) !important; /* เปลี่ยนสีเส้นขอบเมื่อ hover */
}

.stat-card .icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.stat-card .num {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff !important; /* เปลี่ยนจาก #1e293b เป็น #ffffff (สีขาว) */
    margin-bottom: 0.5rem;
}

.stat-card .text-muted {
    color: #cbd5e1 !important; /* เปลี่ยนจาก #64748b เป็น #cbd5e1 (สีเทาอ่อน) */
    font-size: 1.1rem;
    font-weight: 600;
}

/* FORCE OVERRIDE THEME COLORS - Ensure consistency across all pages */
.number-card-glass,
.vip-card,
.number-card-enhanced {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 2px solid rgba(124, 58, 237, 0.15) !important;
    border-radius: 24px !important;
    box-shadow: 0 15px 50px rgba(124, 58, 237, 0.1) !important;
}

/* Force override any theme color restrictions */
.number-card-glass *,
.vip-card *,
.number-card-enhanced * {
    color: inherit !important;
}

/* Force number display colors */
.number-display-enhanced,
.vip-card .number-display-enhanced {
    color: #1e40af !important;
    background: linear-gradient(135deg, #1e40af, #3b82f6, #60a5fa) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Force price display colors */
.price-display-enhanced,
.vip-card .price-display-enhanced {
    color: #dc2626 !important;
    background: linear-gradient(135deg, #dc2626, #ef4444) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Force badge colors */
.badge.bg-light.text-dark {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0) !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
}

.badge.bg-info.text-white {
    background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
    color: #fff !important;
    border: 1px solid #0ea5e9 !important;
}

/* Force operator badge colors */


/* Force VIP badge colors */
.vip-card .badge,
.number-card-glass .badge.bg-warning {
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706) !important;
    color: #1f2937 !important;
}

/* Force button colors */
.number-card-glass .btn-outline-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    color: #fff !important;
    border-color: #3b82f6 !important;
}

.number-card-glass .btn-primary,
.number-card-glass .btn-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border-color: #10b981 !important;
    color: #fff !important;
}

/* Force text colors */
.number-card-glass .text-muted {
    color: #64748b !important;
}

.number-card-glass .text-dark {
    color: #1e293b !important;
}

/* Force highlight box styling */
.number-card-glass .text-muted.small {
    background: rgba(124, 58, 237, 0.05) !important;
    border-left: 3px solid #7c3aed !important;
    border-radius: 12px !important;
    color: #64748b !important;
}

/* Force sold state styling */
.number-card-glass.sold {
    filter: grayscale(0.8) !important;
    opacity: 0.7 !important;
    background: rgba(248, 250, 252, 0.9) !important;
}

.sold-ribbon {
    background: linear-gradient(135deg, #6b7280, #9ca3af) !important;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

/* Force premium border styling */
.premium-border {
    border: 3px solid #f59e0b !important;
    background: linear-gradient(135deg, rgba(255, 251, 240, 0.98), rgba(255, 248, 225, 0.98)) !important;
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.15) !important;
}

.premium-border::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 6px !important;
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706) !important;
    border-radius: 24px 24px 0 0 !important;
}

/* Force hover effects and animation */
.number-card-glass:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.2) !important;
    border-color: rgba(124, 58, 237, 0.3) !important;
    animation: none !important;
}

.number-card-glass {
    animation: numberCardFloat 6s ease-in-out infinite !important;
}

/* Force text effects */
.text-gradient {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.text-shimmer {
    background: linear-gradient(90deg, #dc2626, #ef4444, #f97316, #dc2626) !important;
    background-size: 100% 100% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: priceBlink 3s ease-in-out infinite !important;
}

/* Force neumorphism effect */
.neomorph {
    background: #f8fafc !important;
    box-shadow: 8px 8px 16px #d1d5db, -8px -8px 16px #ffffff !important;
    border-radius: 20px !important;
    border: none !important;
}

/* Force magnetic button effects */
.btn-magnetic:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3) !important;
}

/* Force focus ring */
.focus-ring:focus {
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2) !important;
    transform: scale(1.02) !important;
}

/* Force stagger animation */
.stagger-animation {
    opacity: 0 !important;
    transform: translateY(30px) !important;
    transition: all 0.6s ease !important;
}

.stagger-animation.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
} 

/* Index Page Specific Styles - Phone Number Size and Alignment */
/* Target only the index page featured numbers section */
.hero-section + section .vip-card .number-display-enhanced {
    font-size: 1.3rem !important; /* ลดขนาดเบอร์สำหรับหน้า index */
    text-align: center !important; /* จัดให้เบอร์อยู่ตรงกลาง */
    margin: 5rem 0 1rem 0 !important; /* เพิ่ม margin-top จาก 2rem เป็น 5rem (ห่างจากเครือข่ายอีก 3 ขั้น) */
}

.hero-section + section .vip-card .price-display-enhanced {
    font-size: 1.1rem !important; /* ลดขนาดราคาสำหรับหน้า index */
    text-align: center !important; /* จัดให้ราคาอยู่ตรงกลาง */
    margin-bottom: 1rem !important;
}

/* Mobile responsiveness for index page */
@media (max-width: 768px) {
    .hero-section + section .vip-card .number-display-enhanced {
        font-size: 1.6rem !important; /* Mobile size */
        text-align: center !important;
        margin: 4rem 0 1rem 0 !important; /* เพิ่ม margin-top เป็น 4rem บน mobile */
    }
    
    .hero-section + section .vip-card .price-display-enhanced {
        font-size: 1.3rem !important; /* Mobile size */
        text-align: center !important;
    }
}

@media (max-width: 576px) {
    .hero-section + section .vip-card .number-display-enhanced {
        font-size: 1.6rem !important; /* Small Mobile size */
        text-align: center !important;
        margin: 4rem 0 1rem 0 !important; /* เพิ่ม margin-top เป็น 4rem บน small mobile */
    }
    
    .hero-section + section .vip-card .price-display-enhanced {
        font-size: 1.3rem !important; /* Small Mobile size */
        text-align: center !important;
    }
}

/* Desktop enhancement for index page */
@media (min-width: 992px) {
    .hero-section + section .vip-card .number-display-enhanced {
        font-size: 1.3rem !important; /* Desktop size */
        text-align: center !important;
        margin: 5rem 0 1rem 0 !important; /* เพิ่ม margin-top เป็น 5rem บน desktop */
    }
    
    .hero-section + section .vip-card .price-display-enhanced {
        font-size: 1.1rem !important; /* Desktop size */
        text-align: center !important;
    }
}

/* Large Desktop for index page */
@media (min-width: 1200px) {
    .hero-section + section .vip-card .number-display-enhanced {
        font-size: 1.6rem !important; /* Large Desktop size */
        text-align: center !important;
        margin: 5rem 0 1rem 0 !important; /* เพิ่ม margin-top เป็น 5rem บน large desktop */
    }
    
    .hero-section + section .vip-card .price-display-enhanced {
        font-size: 1.3rem !important; /* Large Desktop size */
        text-align: center !important;
    }
}

/* Numbers Page Specific Fixes - Sold Cards and Consistent Sizing */
/* Fix sold number cards to have different background color (not white) */
.number-card-glass.sold,
.vip-card.sold,
.card.sold,
.numbers-page .number-card-glass.sold,
.numbers-page .vip-card.sold,
.numbers-page .card.sold {
    background: #f8fafc !important; /* สีเทาอ่อนสำหรับเบอร์ที่ขายแล้ว (ไม่ใช่สีขาว) */
    border: 1px solid #cbd5e1 !important;
    opacity: 0.9 !important;
    filter: grayscale(0.3) !important; /* เพิ่มเอฟเฟกต์ grayscale เล็กน้อย */
}

/* Force consistent background and sizing for all number cards in numbers page */
.numbers-page .number-card-glass,
.numbers-page .vip-card,
.numbers-page .card,
.numbers-page .number-card-enhanced {
    background: #ffffff !important; /* สีขาวสำหรับเบอร์ที่ยังไม่ขาย */
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    min-height: 300px !important; /* กำหนดความสูงขั้นต่ำให้เท่ากัน */
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Fix category count numbers overflow */
.category-card,
.numbers-page .category-card,
.numbers-page .btn,
.numbers-page .badge {
    white-space: nowrap !important;
    overflow: visible !important; /* เปลี่ยนจาก hidden เป็น visible */
    text-overflow: unset !important; /* ลบ text-overflow */
    max-width: none !important; /* ลบ max-width restriction */
}

/* Specific fix for category buttons with counts */
.numbers-page .btn[href*="category"],
.numbers-page .category-card,
.numbers-page .badge.bg-primary,
.numbers-page .badge.bg-secondary {
    min-width: fit-content !important;
    width: auto !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.875rem !important;
    text-align: center !important;
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
}

/* Ensure all number cards have equal dimensions */
.numbers-page .col-lg-3,
.numbers-page .col-md-6,
.numbers-page .col-12 {
    display: flex !important;
}

.numbers-page .col-lg-3 > div,
.numbers-page .col-md-6 > div,
.numbers-page .col-12 > div {
    width: 100% !important;
    height: 100% !important;
}

/* Force consistent padding and margins for all cards */
.numbers-page .number-card-glass,
.numbers-page .vip-card,
.numbers-page .card {
    padding: 2rem !important;
    margin: 0 !important;
    border-radius: 24px !important;
}

/* Mobile responsiveness for consistent sizing */
@media (max-width: 768px) {
    .numbers-page .number-card-glass,
    .numbers-page .vip-card,
    .numbers-page .card {
        min-height: 280px !important;
        padding: 1.5rem !important;
    }
    
    /* Fix category buttons on mobile */
    .numbers-page .btn[href*="category"],
    .numbers-page .category-card {
        font-size: 0.8rem !important;
        padding: 0.5rem 1rem !important;
        overflow: visible !important;
        text-overflow: unset !important;
        max-width: none !important;
    }
}

@media (max-width: 576px) {
    .numbers-page .number-card-glass,
    .numbers-page .vip-card,
    .numbers-page .card {
        min-height: 260px !important;
        padding: 1.25rem !important;
    }
    
    /* Fix category buttons on small mobile */
    .numbers-page .btn[href*="category"],
    .numbers-page .category-card {
        font-size: 0.75rem !important;
        padding: 0.375rem 0.75rem !important;
        overflow: visible !important;
        text-overflow: unset !important;
        max-width: none !important;
    }
}

/* Desktop enhancement for consistent sizing */
@media (min-width: 992px) {
    .numbers-page .number-card-glass,
    .numbers-page .vip-card,
    .numbers-page .card {
        min-height: 320px !important;
        padding: 2rem !important;
    }
}

/* Large Desktop for consistent sizing */
@media (min-width: 1200px) {
    .numbers-page .number-card-glass,
    .numbers-page .vip-card,
    .numbers-page .card {
        min-height: 340px !important;
        padding: 2.5rem !important;
    }
}

/* Fix the first statistics card (available numbers count) to match other cards */
.numbers-page .stat-card:first-child,
.numbers-page .stat-card:first-of-type,
.numbers-page .col:first-child .stat-card,
.numbers-page .col:first-of-type .stat-card {
    background: #1e293b !important; /* สีน้ำเงินเข้มเหมือนช่องอื่นๆ */
    color: #ffffff !important; /* ข้อความเป็นสีขาว */
    border: 1px solid rgba(255, 255, 255, 0.2) !important; /* เส้นขอบสีขาวโปร่งแสง */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

/* Ensure all statistics cards have consistent styling */
.numbers-page .stat-card,
.numbers-page .col .stat-card {
    background: #1e293b !important; /* สีน้ำเงินเข้มมาตรฐาน */
    color: #ffffff !important; /* ข้อความเป็นสีขาว */
    border: 1px solid rgba(255, 255, 255, 0.2) !important; /* เส้นขอบสีขาวโปร่งแสง */
    border-radius: 12px !important;
    padding: 1.5rem !important;
    text-align: center !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

/* Specific styling for the first card content */
.numbers-page .stat-card:first-child .num,
.numbers-page .stat-card:first-of-type .num,
.numbers-page .col:first-child .stat-card .num,
.numbers-page .col:first-of-type .stat-card .num {
    font-size: 2rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    margin-bottom: 0.5rem !important;
}

.numbers-page .stat-card:first-child .text-muted,
.numbers-page .stat-card:first-of-type .text-muted,
.numbers-page .col:first-child .stat-card .text-muted,
.numbers-page .col:first-of-type .stat-card .text-muted {
    color: #cbd5e1 !important; /* สีเทาอ่อนสำหรับข้อความรอง */
    font-size: 0.875rem !important;
    font-weight: 500 !important;
}

/* Fix category cards overflow in numbers page */
.category-card,
.numbers-page .category-card,
.numbers-page .btn[href*="category"],
.numbers-page .badge.bg-primary,
.numbers-page .badge.bg-secondary {
    white-space: nowrap !important;
    overflow: visible !important; /* เปลี่ยนจาก hidden เป็น visible */
    text-overflow: unset !important; /* ลบ text-overflow */
    max-width: none !important; /* ลบ max-width restriction */
    min-width: fit-content !important;
    width: auto !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.875rem !important;
    text-align: center !important;
    position: relative !important;
}

/* Ensure category count numbers are fully visible */
.category-card .badge,
.numbers-page .category-card .badge,
.numbers-page .btn[href*="category"] .badge,
.numbers-page .badge.bg-primary,
.numbers-page .badge.bg-secondary {
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    min-width: fit-content !important;
    width: auto !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    position: relative !important;
    z-index: 10 !important; /* ให้ badge อยู่ด้านบนสุด */
}

/* Fix category card layout to prevent overflow */
.category-card,
.numbers-page .category-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    min-height: 120px !important;
    position: relative !important;
}

/* Ensure category text doesn't wrap */
.category-card h5,
.numbers-page .category-card h5,
.numbers-page .btn[href*="category"] h5 {
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    text-align: center !important;
}

/* Fix category icon sizing */
.category-card i,
.numbers-page .category-card i,
.numbers-page .btn[href*="category"] i {
    font-size: 2rem !important;
    margin-bottom: 0.5rem !important;
}

/* Mobile responsiveness for category cards */
@media (max-width: 768px) {
    .category-card,
    .numbers-page .category-card {
        min-height: 100px !important;
        padding: 0.5rem 1rem !important;
        gap: 0.5rem !important;
    }
    
    .category-card h5,
    .numbers-page .category-card h5 {
        font-size: 0.8rem !important;
    }
    
    .category-card .badge,
    .numbers-page .category-card .badge {
        font-size: 0.75rem !important;
        padding: 0.375rem 0.75rem !important;
    }
}

@media (max-width: 576px) {
    .category-card,
    .numbers-page .category-card {
        min-height: 90px !important;
        padding: 0.375rem 0.75rem !important;
        gap: 0.375rem !important;
    }
    
    .category-card h5,
    .numbers-page .category-card h5 {
        font-size: 0.75rem !important;
    }
    
    .category-card .badge,
    .numbers-page .category-card .badge {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.5rem !important;
    }
}

/* Force override for category cards in numbers page - HIGH PRIORITY */
.numbers-page .category-card,
.numbers-page .btn[href*="category"],
.numbers-page .badge.bg-primary,
.numbers-page .badge.bg-secondary,
.numbers-page .badge.bg-info,
.numbers-page .badge.bg-success,
.numbers-page .badge.bg-warning,
.numbers-page .badge.bg-danger {
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    min-width: fit-content !important;
    width: auto !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 100 !important;
}

/* Force override for category card content */
.numbers-page .category-card h5,
.numbers-page .category-card p,
.numbers-page .category-card .badge,
.numbers-page .btn[href*="category"] h5,
.numbers-page .btn[href*="category"] p,
.numbers-page .btn[href*="category"] .badge {
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 101 !important;
}

/* Force override for category card icons */
.numbers-page .category-card i,
.numbers-page .btn[href*="category"] i {
    overflow: visible !important;
    position: relative !important;
    z-index: 102 !important;
}

/* Force override for category card containers */
.numbers-page .col-lg-3 .category-card,
.numbers-page .col-md-6 .category-card,
.numbers-page .col-12 .category-card {
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    min-width: fit-content !important;
    width: auto !important;
    position: relative !important;
    z-index: 103 !important;
}

/* Force override for category card grid system */
.numbers-page .row .category-card,
.numbers-page .container .category-card,
.numbers-page .container-fluid .category-card {
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    min-width: fit-content !important;
    width: auto !important;
    position: relative !important;
    z-index: 104 !important;
}

/* Force override for category card parent elements */
.numbers-page .card-body .category-card,
.numbers-page .card .category-card,
.numbers-page .section .category-card {
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    min-width: fit-content !important;
    width: auto !important;
    position: relative !important;
    z-index: 105 !important;
}

/* Force override for category card text elements */
.numbers-page .category-card *,
.numbers-page .btn[href*="category"] * {
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    white-space: nowrap !important;
}

/* Force override for category card badges specifically */
.numbers-page .category-card .badge,
.numbers-page .btn[href*="category"] .badge,
.numbers-page .badge.bg-primary,
.numbers-page .badge.bg-secondary,
.numbers-page .badge.bg-info,
.numbers-page .badge.bg-success,
.numbers-page .badge.bg-warning,
.numbers-page .badge.bg-danger {
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    min-width: fit-content !important;
    width: auto !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 200 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force override for category card text content */
.numbers-page .category-card h5,
.numbers-page .category-card p,
.numbers-page .btn[href*="category"] h5,
.numbers-page .btn[href*="category"] p {
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 201 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Premium Category Section - Numbers Page */
.category-premium-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #1e293b 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.category-premium-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="white" stroke-width="0.5" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.category-premium-section .section-title {
    color: #ffffff !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 10px rgba(245, 158, 11, 0.3));
    margin-bottom: 2rem !important;
}

/* Premium Category Cards */
.category-premium-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    text-decoration: none !important;
    display: block;
    height: 100%;
    min-height: 180px;
}

.category-premium-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #fbbf24, #f59e0b, #d97706, #fbbf24);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.category-premium-card:hover::before {
    opacity: 0.6;
}

.category-premium-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.3);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(245, 158, 11, 0.5);
}

.category-premium-card.active {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.8);
}

.category-premium-card .category-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: block;
    transition: all 0.3s ease;
}

.category-premium-card:hover .category-icon {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 4px 20px rgba(245, 158, 11, 0.5));
}

.category-premium-card .category-name {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.category-premium-card .category-count {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-top: 0.75rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    min-width: 60px;
}

/* Numbers Section Description - White Color */
.numbers-section-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 2rem 0;
    margin-bottom: 2rem;
    position: relative;
}

.numbers-section-header .section-title {
    color: #ffffff !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 10px rgba(59, 130, 246, 0.3));
    margin-bottom: 0.5rem !important;
}

.numbers-section-header .section-description {
    color: #ffffff !important;
    font-size: 1.125rem !important;
    font-weight: 400 !important;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin: 0 !important;
}

/* Premium Search Section */
.search-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 251, 0.98));
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 3rem;
    margin: -5rem auto 3rem;
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.search-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.search-section:hover::before {
    opacity: 0.3;
}

.search-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    text-align: center;
}

/* Enhanced Search Input */
.form-control-modern {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 15px;
    padding: 1.25rem 1.5rem;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.form-control-modern:focus {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: scale(1.02);
}

/* Glass Input Group */
.input-group-text.glass-dark {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(51, 65, 85, 0.9));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Popular Search Tags */
.popular-searches {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.search-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 25px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0.25rem;
}

.search-tag:hover {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.3);
}

/* Search Results Header */
.search-results-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.search-results-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="white" stroke-width="0.5" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.search-results-header .result-title {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.search-results-header .result-subtitle {
    color: #cbd5e1;
    font-size: 1.125rem;
    margin: 0;
}

.search-results-header strong {
    color: #fbbf24;
    font-weight: 700;
}

/* Advanced Filters Card */
.advanced-filters-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 1rem;
}

/* Search Tips Alert */
.alert-info.search-tips {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 15px;
    color: #1e40af;
}

.alert-info.search-tips code {
    background: rgba(59, 130, 246, 0.2);
    color: #1e40af;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-weight: 600;
}

/* Search Section Responsive */
@media (max-width: 768px) {
    .search-section {
        padding: 2rem 1.5rem;
        margin: -3rem auto 2rem;
    }
    
    .search-title {
        font-size: 1.5rem;
    }
    
    .search-results-header {
        padding: 1.5rem;
    }
    
    .search-results-header .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-results-header .result-title {
        font-size: 1.5rem;
    }
    
    .search-results-header .result-subtitle {
        font-size: 1rem;
    }
}

/* Search Animation */
@keyframes searchPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.search-section:hover {
    animation: searchPulse 2s ease-in-out infinite;
}

/* No Results Animation */
@keyframes noResultsFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.fa-search.fa-5x {
    animation: noResultsFloat 3s ease-in-out infinite;
}

/* Search Results Grid Enhancement */
.search-results-grid {
    position: relative;
}

.search-results-grid .col-lg-3 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.search-results-grid .col-lg-3:nth-child(1) { animation-delay: 0.1s; }
.search-results-grid .col-lg-3:nth-child(2) { animation-delay: 0.2s; }
.search-results-grid .col-lg-3:nth-child(3) { animation-delay: 0.3s; }
.search-results-grid .col-lg-3:nth-child(4) { animation-delay: 0.4s; }
.search-results-grid .col-lg-3:nth-child(5) { animation-delay: 0.5s; }
.search-results-grid .col-lg-3:nth-child(6) { animation-delay: 0.6s; }
.search-results-grid .col-lg-3:nth-child(7) { animation-delay: 0.7s; }
.search-results-grid .col-lg-3:nth-child(8) { animation-delay: 0.8s; }

/* Category Card Animation */
@keyframes categoryFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.category-premium-card {
    animation: categoryFloat 4s ease-in-out infinite;
}

.category-premium-section .col-lg-2:nth-child(2) .category-premium-card { animation-delay: 0.5s; }
.category-premium-section .col-lg-2:nth-child(3) .category-premium-card { animation-delay: 1s; }
.category-premium-section .col-lg-2:nth-child(4) .category-premium-card { animation-delay: 1.5s; }
.category-premium-section .col-lg-2:nth-child(5) .category-premium-card { animation-delay: 2s; }
.category-premium-section .col-lg-2:nth-child(6) .category-premium-card { animation-delay: 2.5s; }

/* Responsive Design for Premium Categories */
@media (max-width: 768px) {
    .category-premium-section {
        padding: 3rem 0;
    }
    
    .category-premium-section .section-title {
        font-size: 1.5rem !important;
    }
    
    .category-premium-card {
        padding: 1.5rem 1rem;
        min-height: 150px;
    }
    
    .category-premium-card .category-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }
    
    .category-premium-card .category-name {
        font-size: 0.875rem;
    }
    
    .category-premium-card .category-count {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}

@media (max-width: 576px) {
    .category-premium-card {
        padding: 1.25rem 0.75rem;
        min-height: 130px;
    }
    
    .category-premium-card .category-icon {
        font-size: 2rem;
    }
    
    .category-premium-card .category-name {
        font-size: 0.8rem;
    }
}

/* Numbers Section Header Responsive */
@media (max-width: 768px) {
    .numbers-section-header {
        padding: 1.5rem 0;
    }
    
    .numbers-section-header .section-title {
        font-size: 1.5rem !important;
    }
    
    .numbers-section-header .section-description {
        font-size: 1rem !important;
    }
    
    .numbers-section-header .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Glass Morphism Enhancement */
.category-premium-card {
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.37),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Glow Effect on Active Category */
.category-premium-card.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, transparent 70%);
    opacity: 0.6;
    pointer-events: none;
}

/* Add loading animation for categories */
.category-premium-section .row {
    position: relative;
}

.category-premium-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards, categoryFloat 4s ease-in-out infinite;
}

.category-premium-section .col-lg-2:nth-child(1) .category-premium-card { animation-delay: 0.1s, 0s; }
.category-premium-section .col-lg-2:nth-child(2) .category-premium-card { animation-delay: 0.2s, 0.5s; }
.category-premium-section .col-lg-2:nth-child(3) .category-premium-card { animation-delay: 0.3s, 1s; }
.category-premium-section .col-lg-2:nth-child(4) .category-premium-card { animation-delay: 0.4s, 1.5s; }
.category-premium-section .col-lg-2:nth-child(5) .category-premium-card { animation-delay: 0.5s, 2s; }
.category-premium-section .col-lg-2:nth-child(6) .category-premium-card { animation-delay: 0.6s, 2.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Force override for category card icons */
.numbers-page .category-card i,
.numbers-page .btn[href*="category"] i {
    overflow: visible !important;
    position: relative !important;
    z-index: 202 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ULTIMATE FORCE OVERRIDE - Category Cards in Numbers Page */
body .numbers-page .category-card,
body .numbers-page .btn[href*="category"],
body .numbers-page .badge,
html .numbers-page .category-card,
html .numbers-page .btn[href*="category"],
html .numbers-page .badge {
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    min-width: fit-content !important;
    width: auto !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 9999 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    clip: auto !important;
    clip-path: none !important;
}

/* ULTIMATE FORCE OVERRIDE - Category Card Content */
body .numbers-page .category-card *,
body .numbers-page .btn[href*="category"] *,
body .numbers-page .badge *,
html .numbers-page .category-card *,
html .numbers-page .btn[href*="category"] *,
html .numbers-page .badge * {
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 10000 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    clip: auto !important;
    clip-path: none !important;
}

/* ULTIMATE FORCE OVERRIDE - Category Card Badges */
body .numbers-page .category-card .badge,
body .numbers-page .btn[href*="category"] .badge,
body .numbers-page .badge.bg-primary,
body .numbers-page .badge.bg-secondary,
body .numbers-page .badge.bg-info,
body .numbers-page .badge.bg-success,
body .numbers-page .badge.bg-warning,
body .numbers-page .badge.bg-danger,
html .numbers-page .category-card .badge,
html .numbers-page .btn[href*="category"] .badge,
html .numbers-page .badge.bg-primary,
html .numbers-page .badge.bg-secondary,
html .numbers-page .badge.bg-info,
html .numbers-page .badge.bg-success,
html .numbers-page .badge.bg-warning,
html .numbers-page .badge.bg-danger {
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    min-width: fit-content !important;
    width: auto !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 10001 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    clip: auto !important;
    clip-path: none !important;
    box-sizing: border-box !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

/* ULTIMATE FORCE OVERRIDE - Category Card Text */
body .numbers-page .category-card h5,
body .numbers-page .category-card p,
body .numbers-page .btn[href*="category"] h5,
body .numbers-page .btn[href*="category"] p,
html .numbers-page .category-card h5,
html .numbers-page .category-card p,
html .numbers-page .btn[href*="category"] h5,
html .numbers-page .btn[href*="category"] p {
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 10002 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    clip: auto !important;
    clip-path: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

/* ULTIMATE FORCE OVERRIDE - Category Card Icons */
body .numbers-page .category-card i,
body .numbers-page .btn[href*="category"] i,
html .numbers-page .category-card i,
html .numbers-page .btn[href*="category"] i {
    overflow: visible !important;
    position: relative !important;
    z-index: 10003 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    clip: auto !important;
    clip-path: none !important;
    box-sizing: border-box !important;
    font-size: 2rem !important;
    margin-bottom: 0.5rem !important;
}

/* ULTIMATE FORCE OVERRIDE - Category Card Layout */
body .numbers-page .category-card,
html .numbers-page .category-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    min-height: 120px !important;
    position: relative !important;
    z-index: 9998 !important;
    box-sizing: border-box !important;
    padding: 0.75rem 1.25rem !important;
    margin: 0 !important;
    border: 2px solid #eef2ff !important;
    border-radius: 24px !important;
    background: #fff !important;
    box-shadow: 0 10px 30px rgba(15,23,42,.08) !important;
}

/* ULTIMATE FORCE OVERRIDE - Mobile Responsiveness */
@media (max-width: 768px) {
    body .numbers-page .category-card,
    html .numbers-page .category-card {
        min-height: 100px !important;
        padding: 0.5rem 1rem !important;
        gap: 0.5rem !important;
    }
    
    body .numbers-page .category-card h5,
    body .numbers-page .category-card p,
    html .numbers-page .category-card h5,
    html .numbers-page .category-card p {
        font-size: 0.8rem !important;
    }
    
    body .numbers-page .category-card .badge,
    html .numbers-page .category-card .badge {
        font-size: 0.75rem !important;
        padding: 0.375rem 0.75rem !important;
    }
}

@media (max-width: 576px) {
    body .numbers-page .category-card,
    html .numbers-page .category-card {
        min-height: 90px !important;
        padding: 0.375rem 0.75rem !important;
        gap: 0.375rem !important;
    }
    
    body .numbers-page .category-card h5,
    body .numbers-page .category-card p,
    html .numbers-page .category-card h5,
    html .numbers-page .category-card p {
        font-size: 0.75rem !important;
    }
    
    body .numbers-page .category-card .badge,
    html .numbers-page .category-card .badge {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.5rem !important;
    }
}

/* ULTIMATE FORCE OVERRIDE - Category Buttons in Numbers Page */
body .numbers-page .btn.btn-outline-primary,
body .numbers-page .badge.bg-primary,
body .numbers-page .badge.bg-secondary,
html .numbers-page .btn.btn-outline-primary,
html .numbers-page .badge.bg-primary,
html .numbers-page .badge.bg-secondary {
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    min-width: fit-content !important;
    width: auto !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 9999 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    clip: auto !important;
    clip-path: none !important;
}

/* ULTIMATE FORCE OVERRIDE - Category Button Content */
body .numbers-page .btn.btn-outline-primary *,
body .numbers-page .badge.bg-primary *,
body .numbers-page .badge.bg-secondary *,
html .numbers-page .btn.btn-outline-primary *,
html .numbers-page .badge.bg-primary *,
html .numbers-page .badge.bg-secondary * {
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 10000 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    clip: auto !important;
    clip-path: none !important;
}

/* ULTIMATE FORCE OVERRIDE - Category Button Badges */
body .numbers-page .btn.btn-outline-primary .badge,
body .numbers-page .badge.bg-primary,
body .numbers-page .badge.bg-secondary,
html .numbers-page .btn.btn-outline-primary .badge,
html .numbers-page .badge.bg-primary,
html .numbers-page .badge.bg-secondary {
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    min-width: fit-content !important;
    width: auto !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 10001 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    clip: auto !important;
    clip-path: none !important;
    box-sizing: border-box !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

/* ULTIMATE FORCE OVERRIDE - Category Button Text */
body .numbers-page .btn.btn-outline-primary small,
body .numbers-page .btn.btn-outline-primary i,
html .numbers-page .btn.btn-outline-primary small,
html .numbers-page .btn.btn-outline-primary i {
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 10002 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    clip: auto !important;
    clip-path: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

/* ULTIMATE FORCE OVERRIDE - Category Button Icons */
body .numbers-page .btn.btn-outline-primary i,
html .numbers-page .btn.btn-outline-primary i {
    overflow: visible !important;
    position: relative !important;
    z-index: 10003 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    clip: auto !important;
    clip-path: none !important;
    box-sizing: border-box !important;
    font-size: 2rem !important;
    margin-bottom: 0.5rem !important;
}

/* ULTIMATE FORCE OVERRIDE - Category Button Layout */
body .numbers-page .btn.btn-outline-primary,
html .numbers-page .btn.btn-outline-primary {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    min-height: 120px !important;
    position: relative !important;
    z-index: 9998 !important;
    box-sizing: border-box !important;
    padding: 0.75rem 1.25rem !important;
    margin: 0 !important;
    border: 2px solid #6366f1 !important;
    border-radius: 24px !important;
    background: transparent !important;
    color: #6366f1 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

/* ULTIMATE FORCE OVERRIDE - Category Button Hover */
body .numbers-page .btn.btn-outline-primary:hover,
html .numbers-page .btn.btn-outline-primary:hover {
    background: #6366f1 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3) !important;
}

/* ULTIMATE FORCE OVERRIDE - Category Button Active */
body .numbers-page .btn.btn-outline-primary.active,
html .numbers-page .btn.btn-outline-primary.active {
    background: #6366f1 !important;
    color: #ffffff !important;
    border-color: #6366f1 !important;
}

/* ULTIMATE FORCE OVERRIDE - Mobile Responsiveness */
@media (max-width: 768px) {
    body .numbers-page .btn.btn-outline-primary,
    html .numbers-page .btn.btn-outline-primary {
        min-height: 100px !important;
        padding: 0.5rem 1rem !important;
        gap: 0.5rem !important;
    }
    
    body .numbers-page .btn.btn-outline-primary small,
    html .numbers-page .btn.btn-outline-primary small {
        font-size: 0.8rem !important;
    }
    
    body .numbers-page .btn.btn-outline-primary .badge,
    html .numbers-page .btn.btn-outline-primary .badge {
        font-size: 0.75rem !important;
        padding: 0.375rem 0.75rem !important;
    }
}

@media (max-width: 576px) {
    body .numbers-page .btn.btn-outline-primary,
    html .numbers-page .btn.btn-outline-primary {
        min-height: 90px !important;
        padding: 0.375rem 0.75rem !important;
        gap: 0.375rem !important;
    }
    
    body .numbers-page .btn.btn-outline-primary small,
    html .numbers-page .btn.btn-outline-primary small {
        font-size: 0.75rem !important;
    }
    
    body .numbers-page .btn.btn-outline-primary .badge,
    html .numbers-page .btn.btn-outline-primary .badge {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.5rem !important;
    }
}

/* ULTIMATE FORCE OVERRIDE - Badge Specific Fixes */
body .numbers-page .badge.bg-primary,
body .numbers-page .badge.bg-secondary,
html .numbers-page .badge.bg-primary,
html .numbers-page .badge.bg-secondary {
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    min-width: fit-content !important;
    width: auto !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 10004 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    clip: auto !important;
    clip-path: none !important;
    box-sizing: border-box !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    margin-top: 0.5rem !important;
}

/* ULTIMATE FORCE OVERRIDE - Button Container */
body .numbers-page .col-lg-2 .btn.btn-outline-primary,
body .numbers-page .col-md-4 .btn.btn-outline-primary,
body .numbers-page .col-6 .btn.btn-outline-primary,
html .numbers-page .col-lg-2 .btn.btn-outline-primary,
html .numbers-page .col-md-4 .btn.btn-outline-primary,
html .numbers-page .col-6 .btn.btn-outline-primary {
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    min-width: fit-content !important;
    width: 100% !important;
    position: relative !important;
    z-index: 9997 !important;
}

/* ULTIMATE FORCE OVERRIDE - Numbers Page Specific */
.numbers-page .btn.btn-outline-primary,
.numbers-page .badge.bg-primary,
.numbers-page .badge.bg-secondary {
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    min-width: fit-content !important;
    width: auto !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 9999 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    clip: auto !important;
    clip-path: none !important;
}

/* ULTIMATE FORCE OVERRIDE - Numbers Page Button Content */
.numbers-page .btn.btn-outline-primary *,
.numbers-page .badge.bg-primary *,
.numbers-page .badge.bg-secondary * {
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 10000 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    clip: auto !important;
    clip-path: none !important;
}

/* ULTIMATE FORCE OVERRIDE - Numbers Page Button Badges */
.numbers-page .btn.btn-outline-primary .badge,
.numbers-page .badge.bg-primary,
.numbers-page .badge.bg-secondary {
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    min-width: fit-content !important;
    width: auto !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 10001 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    clip: auto !important;
    clip-path: none !important;
    box-sizing: border-box !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

/* ULTIMATE FORCE OVERRIDE - Numbers Page Button Text */
.numbers-page .btn.btn-outline-primary small,
.numbers-page .btn.btn-outline-primary i {
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 10002 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    clip: auto !important;
    clip-path: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

/* ULTIMATE FORCE OVERRIDE - Numbers Page Button Icons */
.numbers-page .btn.btn-outline-primary i {
    overflow: visible !important;
    position: relative !important;
    z-index: 10003 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    clip: auto !important;
    clip-path: none !important;
    box-sizing: border-box !important;
    font-size: 2rem !important;
    margin-bottom: 0.5rem !important;
}

/* ULTIMATE FORCE OVERRIDE - Numbers Page Button Layout */
.numbers-page .btn.btn-outline-primary {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    min-height: 120px !important;
    position: relative !important;
    z-index: 9998 !important;
    box-sizing: border-box !important;
    padding: 0.75rem 1.25rem !important;
    margin: 0 !important;
    border: 2px solid #6366f1 !important;
    border-radius: 24px !important;
    background: transparent !important;
    color: #6366f1 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

/* ULTIMATE FORCE OVERRIDE - Numbers Page Button Hover */
.numbers-page .btn.btn-outline-primary:hover {
    background: #6366f1 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3) !important;
}

/* ULTIMATE FORCE OVERRIDE - Numbers Page Button Active */
.numbers-page .btn.btn-outline-primary.active {
    background: #6366f1 !important;
    color: #ffffff !important;
    border-color: #6366f1 !important;
}

/* ULTIMATE FORCE OVERRIDE - Numbers Page Mobile Responsiveness */
@media (max-width: 768px) {
    .numbers-page .btn.btn-outline-primary {
        min-height: 100px !important;
        padding: 0.5rem 1rem !important;
        gap: 0.5rem !important;
    }
    
    .numbers-page .btn.btn-outline-primary small {
        font-size: 0.8rem !important;
    }
    
    .numbers-page .btn.btn-outline-primary .badge {
        font-size: 0.75rem !important;
        padding: 0.375rem 0.75rem !important;
    }
}

@media (max-width: 576px) {
    .numbers-page .btn.btn-outline-primary {
        min-height: 90px !important;
        padding: 0.375rem 0.75rem !important;
        gap: 0.375rem !important;
    }
    
    .numbers-page .btn.btn-outline-primary small {
        font-size: 0.75rem !important;
    }
    
    .numbers-page .btn.btn-outline-primary .badge {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.5rem !important;
    }
}

/* ULTIMATE FORCE OVERRIDE - Numbers Page Badge Specific Fixes */
.numbers-page .badge.bg-primary,
.numbers-page .badge.bg-secondary {
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    min-width: fit-content !important;
    width: auto !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 10004 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    clip: auto !important;
    clip-path: none !important;
    box-sizing: border-box !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    margin-top: 0.5rem !important;
}

/* ULTIMATE FORCE OVERRIDE - Button Container */
body .numbers-page .col-lg-2 .btn.btn-outline-primary,
body .numbers-page .col-md-4 .btn.btn-outline-primary,
body .numbers-page .col-6 .btn.btn-outline-primary,
html .numbers-page .col-lg-2 .btn.btn-outline-primary,
html .numbers-page .col-md-4 .btn.btn-outline-primary,
html .numbers-page .col-6 .btn.btn-outline-primary {
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    min-width: fit-content !important;
    width: 100% !important;
    position: relative !important;
    z-index: 9997 !important;
}

/* ULTIMATE FORCE OVERRIDE - Numbers Page Specific */
.numbers-page .btn.btn-outline-primary,
.numbers-page .badge.bg-primary,
.numbers-page .badge.bg-secondary {
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    min-width: fit-content !important;
    width: auto !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 9999 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    clip: auto !important;
    clip-path: none !important;
}

/* ULTIMATE FORCE OVERRIDE - Numbers Page Button Content */
.numbers-page .btn.btn-outline-primary *,
.numbers-page .badge.bg-primary *,
.numbers-page .badge.bg-secondary * {
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 10000 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    clip: auto !important;
    clip-path: none !important;
}

/* ULTIMATE FORCE OVERRIDE - Numbers Page Button Badges */
.numbers-page .btn.btn-outline-primary .badge,
.numbers-page .badge.bg-primary,
.numbers-page .badge.bg-secondary {
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    min-width: fit-content !important;
    width: auto !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 10001 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    clip: auto !important;
    clip-path: none !important;
    box-sizing: border-box !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

/* ULTIMATE FORCE OVERRIDE - Numbers Page Button Text */
.numbers-page .btn.btn-outline-primary small,
.numbers-page .btn.btn-outline-primary i {
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 10002 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    clip: auto !important;
    clip-path: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

/* ULTIMATE FORCE OVERRIDE - Numbers Page Button Icons */
.numbers-page .btn.btn-outline-primary i {
    overflow: visible !important;
    position: relative !important;
    z-index: 10003 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    clip: auto !important;
    clip-path: none !important;
    box-sizing: border-box !important;
    font-size: 2rem !important;
    margin-bottom: 0.5rem !important;
}

/* ULTIMATE FORCE OVERRIDE - Numbers Page Button Layout */
.numbers-page .btn.btn-outline-primary {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    min-height: 120px !important;
    position: relative !important;
    z-index: 9998 !important;
    box-sizing: border-box !important;
    padding: 0.75rem 1.25rem !important;
    margin: 0 !important;
    border: 2px solid #6366f1 !important;
    border-radius: 24px !important;
    background: transparent !important;
    color: #6366f1 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

/* ULTIMATE FORCE OVERRIDE - Numbers Page Button Hover */
.numbers-page .btn.btn-outline-primary:hover {
    background: #6366f1 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3) !important;
}

/* ULTIMATE FORCE OVERRIDE - Numbers Page Button Active */
.numbers-page .btn.btn-outline-primary.active {
    background: #6366f1 !important;
    color: #ffffff !important;
    border-color: #6366f1 !important;
}

/* ULTIMATE FORCE OVERRIDE - Numbers Page Mobile Responsiveness */
@media (max-width: 768px) {
    .numbers-page .btn.btn-outline-primary {
        min-height: 100px !important;
        padding: 0.5rem 1rem !important;
        gap: 0.5rem !important;
    }
    
    .numbers-page .btn.btn-outline-primary small {
        font-size: 0.8rem !important;
    }
    
    .numbers-page .btn.btn-outline-primary .badge {
        font-size: 0.75rem !important;
        padding: 0.375rem 0.75rem !important;
    }
}

@media (max-width: 576px) {
    .numbers-page .btn.btn-outline-primary {
        min-height: 90px !important;
        padding: 0.375rem 0.75rem !important;
        gap: 0.375rem !important;
    }
    
    .numbers-page .btn.btn-outline-primary small {
        font-size: 0.75rem !important;
    }
    
    .numbers-page .btn.btn-outline-primary .badge {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.5rem !important;
    }
}

/* ULTIMATE FORCE OVERRIDE - Numbers Page Badge Specific Fixes */
.numbers-page .badge.bg-primary,
.numbers-page .badge.bg-secondary {
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    min-width: fit-content !important;
    width: auto !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 10004 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    clip: auto !important;
    clip-path: none !important;
    box-sizing: border-box !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    margin-top: 0.5rem !important;
}

/* ULTIMATE FORCE OVERRIDE - Numbers Page Button Container */
.numbers-page .col-lg-2 .btn.btn-outline-primary,
.numbers-page .col-md-4 .btn.btn-outline-primary,
.numbers-page .col-6 .btn.btn-outline-primary {
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    min-width: fit-content !important;
    width: 100% !important;
    position: relative !important;
    z-index: 9997 !important;
}

/* ULTIMATE FORCE OVERRIDE - Numbers Page Row and Container */
.numbers-page .row .btn.btn-outline-primary,
.numbers-page .container .btn.btn-outline-primary,
.numbers-page .container-fluid .btn.btn-outline-primary {
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    min-width: fit-content !important;
    width: 100% !important;
    position: relative !important;
    z-index: 9996 !important;
}

/* ULTIMATE FORCE OVERRIDE - Numbers Page Section */
.numbers-page section .btn.btn-outline-primary,
.numbers-page .py-4 .btn.btn-outline-primary,
.numbers-page .py-5 .btn.btn-outline-primary {
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    min-width: fit-content !important;
    width: 100% !important;
    position: relative !important;
    z-index: 9995 !important;
}

/* ULTIMATE FORCE OVERRIDE - Number Card Optimization */
.numbers-page .number-card-glass,
.numbers-page .vip-card,
.numbers-page .card {
    min-height: 320px !important; /* คืนค่าเดิม */
    max-height: none !important; /* คืนค่าเดิม */
    padding: 2rem !important; /* คืนค่าเดิม */
    margin: 0 !important;
    border-radius: 24px !important; /* คืนค่าเดิม */
    box-shadow: 0 10px 30px rgba(15,23,42,.08) !important; /* คืนค่าเดิม */
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* ULTIMATE FORCE OVERRIDE - Number Display Optimization */
.numbers-page .number-display-enhanced {
    font-size: 1.3rem !important; /* คืนค่าเดิม */
    font-weight: 700 !important;
    color: #1e293b !important;
    text-align: center !important;
    margin: 2rem 0 0.5rem 0 !important; /* คืนค่าเดิม */
    letter-spacing: 0.02em !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
}

/* ULTIMATE FORCE OVERRIDE - Price Display Optimization */
.numbers-page .price-display-enhanced {
    font-size: 1.1rem !important; /* คืนค่าเดิม */
    font-weight: 600 !important;
    color: #6366f1 !important;
    text-align: center !important;
    margin: 0.5rem 0 0.75rem 0 !important; /* คืนค่าเดิม */
    letter-spacing: 0.01em !important;
    line-height: 1.2 !important;
}



/* ULTIMATE FORCE OVERRIDE - Feature Badges Optimization */
.numbers-page .badge.bg-info,
.numbers-page .badge.bg-success,
.numbers-page .badge.bg-warning,
.numbers-page .badge.bg-primary {
    font-size: 0.75rem !important; /* คืนค่าเดิม */
    padding: 0.25rem 0.5rem !important; /* คืนค่าเดิม */
    margin: 0.25rem !important; /* คืนค่าเดิม */
    border-radius: 12px !important; /* คืนค่าเดิม */
    font-weight: 500 !important;
    line-height: 1.1 !important;
}

/* ULTIMATE FORCE OVERRIDE - VIP Badge Optimization */
.numbers-page .neomorph {
    font-size: 0.7rem !important; /* คืนค่าเดิม */
    padding: 0.2rem 0.4rem !important; /* คืนค่าเดิม */
    border-radius: 8px !important; /* คืนค่าเดิม */
    font-weight: 600 !important;
    line-height: 1.1 !important;
}

/* ULTIMATE FORCE OVERRIDE - Highlight Text Optimization */
.numbers-page .highlight-box {
    font-size: 0.8rem !important; /* คืนค่าเดิม */
    padding: 0.5rem 0.75rem !important; /* คืนค่าเดิม */
    margin: 0.75rem 0 !important; /* คืนค่าเดิม */
    border-radius: 10px !important; /* คืนค่าเดิม */
    line-height: 1.3 !important;
    background: rgba(99, 102, 241, 0.08) !important;
    border: 1px solid rgba(99, 102, 241, 0.15) !important;
}

/* ULTIMATE FORCE OVERRIDE - Action Buttons Optimization */
.numbers-page .btn {
    font-size: 0.8rem !important; /* คืนค่าเดิม */
    padding: 0.5rem 1rem !important; /* คืนค่าเดิม */
    border-radius: 10px !important; /* คืนค่าเดิม */
    margin: 0.5rem !important; /* คืนค่าเดิม */
    font-weight: 500 !important;
    line-height: 1.2 !important;
    min-height: 40px !important; /* คืนค่าเดิม */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.25rem !important;
}

/* ULTIMATE FORCE OVERRIDE - Grid Layout Optimization */
.numbers-page .col-lg-3,
.numbers-page .col-md-6,
.numbers-page .col-12 {
    display: flex !important;
    margin-bottom: 1.5rem !important; /* คืนค่าเดิม */
}

.numbers-page .col-lg-3 > div,
.numbers-page .col-md-6 > div,
.numbers-page .col-12 > div {
    width: 100% !important;
    height: 100% !important;
}

/* ULTIMATE FORCE OVERRIDE - Mobile Responsiveness Optimization */
@media (max-width: 768px) {
    .numbers-page .number-card-glass,
    .numbers-page .vip-card,
    .numbers-page .card {
        min-height: 280px !important; /* คืนค่าเดิม */
        max-height: none !important; /* คืนค่าเดิม */
        padding: 1.5rem !important; /* คืนค่าเดิม */
    }
    
    .numbers-page .number-display-enhanced {
        font-size: 1.1rem !important; /* คืนค่าเดิม */
        margin: 1rem 0 0.5rem 0 !important;
    }
    
    .numbers-page .price-display-enhanced {
        font-size: 0.95rem !important; /* คืนค่าเดิม */
        margin: 0.25rem 0 0.75rem 0 !important;
    }
    
    .numbers-page .operator-badge {
        top: 12px !important;
        right: 12px !important;
        padding: 0.25rem 0.5rem !important;
        font-size: 0.7rem !important;
    }
    
    .numbers-page .badge.bg-info,
    .numbers-page .badge.bg-success,
    .numbers-page .badge.bg-warning,
    .numbers-page .badge.bg-primary {
        font-size: 0.65rem !important;
        padding: 0.2rem 0.4rem !important;
        margin: 0.15rem !important;
    }
    
    .numbers-page .btn {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.8rem !important;
        min-height: 36px !important;
    }
}

@media (max-width: 576px) {
    .numbers-page .number-card-glass,
    .numbers-page .vip-card,
    .numbers-page .card {
        min-height: 260px !important; /* คืนค่าเดิม */
        max-height: none !important; /* คืนค่าเดิม */
        padding: 1.25rem !important; /* คืนค่าเดิม */
    }
    
    .numbers-page .number-display-enhanced {
        font-size: 1rem !important; /* คืนค่าเดิม */
        margin: 0.75rem 0 0.4rem 0 !important;
    }
    
    .numbers-page .price-display-enhanced {
        font-size: 0.9rem !important; /* คืนค่าเดิม */
        margin: 0.2rem 0 0.6rem 0 !important;
    }
    
    .numbers-page .operator-badge {
        top: 10px !important;
        right: 10px !important;
        padding: 0.2rem 0.4rem !important;
        font-size: 0.65rem !important;
    }
    
    .numbers-page .badge.bg-info,
    .numbers-page .badge.bg-success,
    .numbers-page .badge.bg-warning,
    .numbers-page .badge.bg-primary {
        font-size: 0.6rem !important;
        padding: 0.15rem 0.3rem !important;
        margin: 0.1rem !important;
    }
    
    .numbers-page .btn {
        font-size: 0.7rem !important;
        padding: 0.35rem 0.7rem !important;
        min-height: 32px !important;
    }
}

/* ULTIMATE FORCE OVERRIDE - Desktop Enhancement Optimization */
@media (min-width: 992px) {
    .numbers-page .number-card-glass,
    .numbers-page .vip-card,
    .numbers-page .card {
        min-height: 320px !important; /* คืนค่าเดิม */
        max-height: none !important; /* คืนค่าเดิม */
        padding: 2rem !important; /* คืนค่าเดิม */
    }
    
    .numbers-page .number-display-enhanced {
        font-size: 1.3rem !important; /* คืนค่าเดิม */
        margin: 2rem 0 0.5rem 0 !important;
    }
    
    .numbers-page .price-display-enhanced {
        font-size: 1.1rem !important; /* คืนค่าเดิม */
        margin: 0.5rem 0 0.75rem 0 !important;
    }
    
    .numbers-page .operator-badge {
        top: 15px !important;
        right: 15px !important;
        padding: 0.375rem 0.75rem !important;
        font-size: 0.75rem !important;
    }
    
    .numbers-page .badge.bg-info,
    .numbers-page .badge.bg-success,
    .numbers-page .badge.bg-warning,
    .numbers-page .badge.bg-primary {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.5rem !important;
        margin: 0.25rem !important;
    }
    
    .numbers-page .btn {
        font-size: 0.8rem !important;
        padding: 0.5rem 1rem !important;
        min-height: 40px !important;
    }
}

/* ULTIMATE FORCE OVERRIDE - Large Desktop Optimization */
@media (min-width: 1200px) {
    .numbers-page .number-card-glass,
    .numbers-page .vip-card,
    .numbers-page .card {
        min-height: 340px !important; /* คืนค่าเดิม */
        max-height: none !important; /* คืนค่าเดิม */
        padding: 2.5rem !important; /* คืนค่าเดิม */
    }
    
    .numbers-page .number-display-enhanced {
        font-size: 1.3rem !important; /* คืนค่าเดิม */
        margin: 2rem 0 0.5rem 0 !important;
    }
    
    .numbers-page .price-display-enhanced {
        font-size: 1.1rem !important; /* คืนค่าเดิม */
        margin: 0.5rem 0 0.75rem 0 !important;
    }
    
    .numbers-page .operator-badge {
        top: 18px !important;
        right: 18px !important;
        padding: 0.375rem 0.75rem !important;
        font-size: 0.75rem !important;
    }
    
    .numbers-page .badge.bg-info,
    .numbers-page .badge.bg-success,
    .numbers-page .badge.bg-warning,
    .numbers-page .badge.bg-primary {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.5rem !important;
        margin: 0.25rem !important;
    }
    
    .numbers-page .btn {
        font-size: 0.8rem !important;
        padding: 0.5rem 1rem !important;
        min-height: 40px !important;
    }
}

/* ULTIMATE FORCE OVERRIDE - Hover Effects Optimization */
.numbers-page .number-card-glass:hover,
.numbers-page .vip-card:hover,
.numbers-page .card:hover {
    transform: translateY(-8px) !important; /* คืนค่าเดิม */
    box-shadow: 0 20px 50px rgba(15,23,42,.12) !important; /* คืนค่าเดิม */
}

/* ULTIMATE FORCE OVERRIDE - Sold Number Optimization */
.numbers-page .number-card-glass.sold {
    background: #f8fafc !important;
    opacity: 0.9 !important; /* คืนค่าเดิม */
    filter: grayscale(0.3) !important; /* คืนค่าเดิม */
}

.numbers-page .sold-ribbon {
    font-size: 0.7rem !important; /* คืนค่าเดิม */
    padding: 0.25rem 0.6rem !important; /* คืนค่าเดิม */
    border-radius: 8px !important; /* คืนค่าเดิม */
}

/* ULTIMATE FORCE OVERRIDE - Number Card Size Reduction */
.numbers-page .number-card-glass,
.numbers-page .vip-card,
.numbers-page .card {
    min-height: 240px !important; /* ลดจาก 320px เป็น 240px */
    max-height: 280px !important; /* เพิ่ม max-height เพื่อควบคุมขนาด */
    padding: 1.25rem !important; /* ลดจาก 2rem เป็น 1.25rem */
    margin: 0 !important;
    border-radius: 18px !important; /* ลดจาก 24px เป็น 18px */
    box-shadow: 0 6px 20px rgba(15,23,42,.08) !important; /* ลด shadow */
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* ULTIMATE FORCE OVERRIDE - Number Display Size Reduction */
.numbers-page .number-display-enhanced {
    font-size: 1rem !important; /* ลดจาก 1.3rem เป็น 1rem */
    font-weight: 700 !important;
    color: #1e293b !important;
    text-align: center !important;
    margin: 1.25rem 0 0.4rem 0 !important; /* ลด margin */
    letter-spacing: 0.02em !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
}

/* ULTIMATE FORCE OVERRIDE - Price Display Size Reduction */
.numbers-page .price-display-enhanced {
    font-size: 0.9rem !important; /* ลดจาก 1.1rem เป็น 0.9rem */
    font-weight: 600 !important;
    color: #6366f1 !important;
    text-align: center !important;
    margin: 0.3rem 0 0.6rem 0 !important; /* ลด margin */
    letter-spacing: 0.01em !important;
    line-height: 1.2 !important;
}



/* ULTIMATE FORCE OVERRIDE - Feature Badges Size Reduction */
.numbers-page .badge.bg-info,
.numbers-page .badge.bg-success,
.numbers-page .badge.bg-warning,
.numbers-page .badge.bg-primary {
    font-size: 0.6rem !important; /* ลดจาก 0.75rem เป็น 0.6rem */
    padding: 0.15rem 0.3rem !important; /* ลดจาก 0.25rem 0.5rem */
    margin: 0.1rem !important; /* ลดจาก 0.25rem */
    border-radius: 6px !important; /* ลดจาก 12px เป็น 6px */
    font-weight: 500 !important;
    line-height: 1.1 !important;
}

/* ULTIMATE FORCE OVERRIDE - VIP Badge Size Reduction */
.numbers-page .neomorph {
    font-size: 0.55rem !important; /* ลดจาก 0.7rem เป็น 0.55rem */
    padding: 0.1rem 0.25rem !important; /* ลดจาก 0.2rem 0.4rem */
    border-radius: 5px !important; /* ลดจาก 8px เป็น 5px */
    font-weight: 600 !important;
    line-height: 1.1 !important;
}

/* ULTIMATE FORCE OVERRIDE - Highlight Text Size Reduction */
.numbers-page .highlight-box {
    font-size: 0.65rem !important; /* ลดจาก 0.8rem เป็น 0.65rem */
    padding: 0.3rem 0.5rem !important; /* ลดจาก 0.5rem 0.75rem */
    margin: 0.4rem 0 !important; /* ลดจาก 0.75rem */
    border-radius: 6px !important; /* ลดจาก 10px เป็น 6px */
    line-height: 1.2 !important;
    background: rgba(99, 102, 241, 0.08) !important;
    border: 1px solid rgba(99, 102, 241, 0.15) !important;
}

/* ULTIMATE FORCE OVERRIDE - Action Buttons Size Reduction */
.numbers-page .btn {
    font-size: 0.7rem !important; /* ลดจาก 0.8rem เป็น 0.7rem */
    padding: 0.35rem 0.7rem !important; /* ลดจาก 0.5rem 1rem */
    border-radius: 8px !important; /* ลดจาก 10px เป็น 8px */
    margin: 0.2rem !important; /* ลดจาก 0.5rem */
    font-weight: 500 !important;
    line-height: 1.2 !important;
    min-height: 32px !important; /* ลดจาก 40px เป็น 32px */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.2rem !important;
}

/* ULTIMATE FORCE OVERRIDE - Grid Layout Size Reduction */
.numbers-page .col-lg-3,
.numbers-page .col-md-6,
.numbers-page .col-12 {
    display: flex !important;
    margin-bottom: 1rem !important; /* ลดจาก 1.5rem */
}

.numbers-page .col-lg-3 > div,
.numbers-page .col-md-6 > div,
.numbers-page .col-12 > div {
    width: 100% !important;
    height: 100% !important;
}

/* ULTIMATE FORCE OVERRIDE - Mobile Responsiveness Size Reduction */
@media (max-width: 768px) {
    .numbers-page .number-card-glass,
    .numbers-page .vip-card,
    .numbers-page .card {
        min-height: 220px !important; /* ลดจาก 280px เป็น 220px */
        max-height: 260px !important; /* ลดจาก 300px เป็น 260px */
        padding: 1rem !important; /* ลดจาก 1.5rem เป็น 1rem */
    }
    
    .numbers-page .number-display-enhanced {
        font-size: 0.9rem !important; /* ลดจาก 1.1rem เป็น 0.9rem */
        margin: 1rem 0 0.3rem 0 !important;
    }
    
    .numbers-page .price-display-enhanced {
        font-size: 0.8rem !important; /* ลดจาก 0.95rem เป็น 0.8rem */
        margin: 0.2rem 0 0.5rem 0 !important;
    }
    
    .numbers-page .operator-badge {
        top: 8px !important;
        right: 8px !important;
        padding: 0.2rem 0.4rem !important;
        font-size: 0.6rem !important;
    }
    
    .numbers-page .badge.bg-info,
    .numbers-page .badge.bg-success,
    .numbers-page .badge.bg-warning,
    .numbers-page .badge.bg-primary {
        font-size: 0.55rem !important;
        padding: 0.1rem 0.25rem !important;
        margin: 0.08rem !important;
    }
    
    .numbers-page .btn {
        font-size: 0.65rem !important;
        padding: 0.3rem 0.6rem !important;
        min-height: 28px !important;
    }
}

@media (max-width: 576px) {
    .numbers-page .number-card-glass,
    .numbers-page .vip-card,
    .numbers-page .card {
        min-height: 200px !important; /* ลดจาก 260px เป็น 200px */
        max-height: 240px !important; /* ลดจาก 280px เป็น 240px */
        padding: 0.875rem !important; /* ลดจาก 1.25rem เป็น 0.875rem */
    }
    
    .numbers-page .number-display-enhanced {
        font-size: 0.85rem !important; /* ลดจาก 1rem เป็น 0.85rem */
        margin: 0.875rem 0 0.25rem 0 !important;
    }
    
    .numbers-page .price-display-enhanced {
        font-size: 0.75rem !important; /* ลดจาก 0.9rem เป็น 0.75rem */
        margin: 0.15rem 0 0.4rem 0 !important;
    }
    
    .numbers-page .operator-badge {
        top: 6px !important;
        right: 6px !important;
        padding: 0.15rem 0.3rem !important;
        font-size: 0.55rem !important;
    }
    
    .numbers-page .badge.bg-info,
    .numbers-page .badge.bg-success,
    .numbers-page .badge.bg-warning,
    .numbers-page .badge.bg-primary {
        font-size: 0.5rem !important;
        padding: 0.08rem 0.2rem !important;
        margin: 0.06rem !important;
    }
    
    .numbers-page .btn {
        font-size: 0.6rem !important;
        padding: 0.25rem 0.5rem !important;
        min-height: 26px !important;
    }
}

/* ULTIMATE FORCE OVERRIDE - Desktop Enhancement Size Reduction */
@media (min-width: 992px) {
    .numbers-page .number-card-glass,
    .numbers-page .vip-card,
    .numbers-page .card {
        min-height: 260px !important; /* ลดจาก 320px เป็น 260px */
        max-height: 300px !important; /* เพิ่ม max-height */
        padding: 1.5rem !important; /* ลดจาก 2rem เป็น 1.5rem */
    }
    
    .numbers-page .number-display-enhanced {
        font-size: 1.1rem !important; /* ลดจาก 1.3rem เป็น 1.1rem */
        margin: 1.5rem 0 0.4rem 0 !important;
    }
    
    .numbers-page .price-display-enhanced {
        font-size: 0.95rem !important; /* ลดจาก 1.1rem เป็น 0.95rem */
        margin: 0.25rem 0 0.6rem 0 !important;
    }
    
    .numbers-page .operator-badge {
        top: 12px !important;
        right: 12px !important;
        padding: 0.3rem 0.6rem !important;
        font-size: 0.7rem !important;
    }
    
    .numbers-page .badge.bg-info,
    .numbers-page .badge.bg-success,
    .numbers-page .badge.bg-warning,
    .numbers-page .badge.bg-primary {
        font-size: 0.65rem !important;
        padding: 0.2rem 0.4rem !important;
        margin: 0.15rem !important;
    }
    
    .numbers-page .btn {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.8rem !important;
        min-height: 34px !important;
    }
}

/* ULTIMATE FORCE OVERRIDE - Large Desktop Size Reduction */
@media (min-width: 1200px) {
    .numbers-page .number-card-glass,
    .numbers-page .vip-card,
    .numbers-page .card {
        min-height: 280px !important; /* ลดจาก 340px เป็น 280px */
        max-height: 320px !important; /* เพิ่ม max-height */
        padding: 1.75rem !important; /* ลดจาก 2.5rem เป็น 1.75rem */
    }
    
    .numbers-page .number-display-enhanced {
        font-size: 1.2rem !important; /* ลดจาก 1.3rem เป็น 1.2rem */
        margin: 1.75rem 0 0.5rem 0 !important;
    }
    
    .numbers-page .price-display-enhanced {
        font-size: 1rem !important; /* ลดจาก 1.1rem เป็น 1rem */
        margin: 0.3rem 0 0.7rem 0 !important;
    }
    
    .numbers-page .operator-badge {
        top: 15px !important;
        right: 15px !important;
        padding: 0.35rem 0.7rem !important;
        font-size: 0.75rem !important;
    }
    
    .numbers-page .badge.bg-info,
    .numbers-page .badge.bg-success,
    .numbers-page .badge.bg-warning,
    .numbers-page .badge.bg-primary {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.5rem !important;
        margin: 0.2rem !important;
    }
    
    .numbers-page .btn {
        font-size: 0.8rem !important;
        padding: 0.45rem 0.9rem !important;
        min-height: 36px !important;
    }
}

/* ULTIMATE FORCE OVERRIDE - Hover Effects Size Reduction */
.numbers-page .number-card-glass:hover,
.numbers-page .vip-card:hover,
.numbers-page .card:hover {
    transform: translateY(-6px) !important; /* ลดจาก -8px เป็น -6px */
    box-shadow: 0 15px 40px rgba(15,23,42,.12) !important; /* ลด shadow */
}

/* ULTIMATE FORCE OVERRIDE - Sold Number Size Reduction */
.numbers-page .number-card-glass.sold {
    background: #f8fafc !important;
    opacity: 0.9 !important;
    filter: grayscale(0.3) !important;
}

.numbers-page .sold-ribbon {
    font-size: 0.6rem !important; /* ลดจาก 0.7rem เป็น 0.6rem */
    padding: 0.2rem 0.5rem !important; /* ลดจาก 0.25rem 0.6rem */
    border-radius: 6px !important; /* ลดจาก 8px เป็น 6px */
}

/* ULTIMATE FORCE OVERRIDE - Match Category Page Design */
.numbers-page .number-card-glass,
.numbers-page .vip-card,
.numbers-page .card {
    min-height: auto !important; /* ใช้ auto height เหมือนหน้า category */
    max-height: none !important;
    padding: 1rem !important; /* ลด padding ให้กะทัดรัด */
    margin: 0 0 1rem 0 !important; /* เพิ่ม margin bottom */
    border-radius: 12px !important; /* ลด border radius */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important; /* shadow แบบเรียบง่าย */
    transition: all 0.2s ease !important; /* ลด transition time */
    position: relative !important;
    overflow: visible !important; /* เปลี่ยนเป็น visible */
    background: #ffffff !important; /* สีขาวเรียบง่าย */
    backdrop-filter: none !important; /* ลบ backdrop filter */
    border: 1px solid #e5e7eb !important; /* เส้นขอบเรียบง่าย */
}

/* ULTIMATE FORCE OVERRIDE - Match Category Page Number Display */
.numbers-page .number-display-enhanced {
    font-size: 1.25rem !important; /* เพิ่มขนาดให้ใหญ่ขึ้น */
    font-weight: 700 !important; /* เพิ่มขนาดขึ้น */
    color: #1f2937 !important; /* สีเข้มขึ้น */
    text-align: left !important; /* จัดชิดซ้ายเหมือนหน้า category */
    margin: 0.5rem 0 0.25rem 0 !important; /* ลด margin */
    letter-spacing: 0.01em !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
}

/* ULTIMATE FORCE OVERRIDE - Match Category Page Price Display */
.numbers-page .price-display-enhanced {
    font-size: 1.1rem !important; /* เพิ่มขนาดราคา */
    font-weight: 600 !important; /* เพิ่มขนาดราคา */
    color: #059669 !important; /* สีเขียวเหมือนหน้า category */
    text-align: left !important; /* จัดชิดซ้าย */
    margin: 0.25rem 0 0.5rem 0 !important;
    letter-spacing: 0.01em !important;
    line-height: 1.2 !important;
}

/* Price Blink Animation - Slow and Smooth */
.numbers-page .price-display-enhanced.text-shimmer,
.numbers-page .vip-card .price-display-enhanced,
.price-display-enhanced.text-shimmer {
    animation: priceGentleBlink 4s ease-in-out infinite !important;
}

@keyframes priceGentleBlink {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    25% {
        opacity: 0.9;
        transform: scale(1.01);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.03);
    }
    75% {
        opacity: 0.9;
        transform: scale(1.01);
    }
}



/* ULTIMATE FORCE OVERRIDE - Match Category Page Feature Badges */
.numbers-page .badge.bg-info,
.numbers-page .badge.bg-success,
.numbers-page .badge.bg-warning,
.numbers-page .badge.bg-primary {
    font-size: 0.75rem !important; /* เพิ่มขนาด badge */
    padding: 0.25rem 0.5rem !important;
    margin: 0.25rem 0.25rem 0.25rem 0 !important; /* เพิ่ม margin right */
    border-radius: 6px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    display: inline-block !important;
    background: #3b82f6 !important; /* สีน้ำเงินเรียบง่าย */
    color: white !important;
}

/* ULTIMATE FORCE OVERRIDE - Match Category Page VIP Badge */
.numbers-page .neomorph {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.4rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    background: #f59e0b !important; /* สีส้มสำหรับ VIP */
    color: white !important;
    display: inline-block !important;
}

/* ULTIMATE FORCE OVERRIDE - Match Category Page Highlight Text */
.numbers-page .highlight-box {
    font-size: 0.8rem !important; /* เพิ่มขนาดข้อความ */
    padding: 0.5rem 0.75rem !important;
    margin: 0.5rem 0 !important;
    border-radius: 8px !important;
    line-height: 1.4 !important;
    background: #f3f4f6 !important; /* สีเทาอ่อน */
    border: 1px solid #e5e7eb !important;
    color: #374151 !important; /* สีข้อความเข้ม */
    text-align: left !important; /* จัดชิดซ้าย */
}

/* ULTIMATE FORCE OVERRIDE - Match Category Page Action Buttons */
.numbers-page .btn {
    font-size: 0.8rem !important; /* เพิ่มขนาดปุ่ม */
    padding: 0.5rem 1rem !important;
    border-radius: 6px !important;
    margin: 0.25rem 0.25rem 0.25rem 0 !important; /* เพิ่ม margin right */
    font-weight: 500 !important;
    line-height: 1.2 !important;
    min-height: 36px !important;
    display: inline-block !important; /* เปลี่ยนเป็น inline-block */
    align-items: center !important;
    justify-content: center !important;
    gap: 0.25rem !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

/* ULTIMATE FORCE OVERRIDE - Match Category Page Copy Button */
.numbers-page .btn.btn-outline-primary {
    background: #ffffff !important;
    color: #3b82f6 !important;
    border: 1px solid #3b82f6 !important;
}

.numbers-page .btn.btn-outline-primary:hover {
    background: #3b82f6 !important;
    color: #ffffff !important;
    transform: none !important; /* ลบ hover effect */
}

/* ULTIMATE FORCE OVERRIDE - Match Category Page Order Button */
.numbers-page .btn.btn-success {
    background: #10b981 !important;
    color: #ffffff !important;
    border: 1px solid #10b981 !important;
}

.numbers-page .btn.btn-success:hover {
    background: #059669 !important;
    border-color: #059669 !important;
    transform: none !important; /* ลบ hover effect */
}

/* ULTIMATE FORCE OVERRIDE - Match Category Page Grid Layout */
.numbers-page .col-lg-3,
.numbers-page .col-md-6,
.numbers-page .col-12 {
    display: block !important; /* เปลี่ยนเป็น block */
    margin-bottom: 0 !important;
}

.numbers-page .col-lg-3 > div,
.numbers-page .col-md-6 > div,
.numbers-page .col-12 > div {
    width: 100% !important;
    height: auto !important; /* เปลี่ยนเป็น auto */
}

/* ULTIMATE FORCE OVERRIDE - Match Category Page Card Structure */
.numbers-page .number-card-glass {
    display: block !important; /* เปลี่ยนเป็น block layout */
    text-align: left !important; /* จัดชิดซ้าย */
}

/* ULTIMATE FORCE OVERRIDE - Match Category Page Mobile Responsiveness */
@media (max-width: 768px) {
    .numbers-page .number-card-glass,
    .numbers-page .vip-card,
    .numbers-page .card {
        padding: 0.875rem !important;
        margin: 0 0 0.75rem 0 !important;
    }
    
    .numbers-page .number-display-enhanced {
        font-size: 1.1rem !important;
        margin: 0.4rem 0 0.2rem 0 !important;
    }
    
    .numbers-page .price-display-enhanced {
        font-size: 1rem !important;
        margin: 0.2rem 0 0.4rem 0 !important;
    }
    
    .numbers-page .operator-badge {
        top: 6px !important;
        right: 6px !important;
        padding: 0.2rem 0.4rem !important;
        font-size: 0.7rem !important;
    }
    
    .numbers-page .badge.bg-info,
    .numbers-page .badge.bg-success,
    .numbers-page .badge.bg-warning,
    .numbers-page .badge.bg-primary {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.4rem !important;
        margin: 0.2rem 0.2rem 0.2rem 0 !important;
    }
    
    .numbers-page .btn {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.8rem !important;
        min-height: 32px !important;
    }
}

@media (max-width: 576px) {
    .numbers-page .number-card-glass,
    .numbers-page .vip-card,
    .numbers-page .card {
        padding: 0.75rem !important;
        margin: 0 0 0.5rem 0 !important;
    }
    
    .numbers-page .number-display-enhanced {
        font-size: 1rem !important;
        margin: 0.3rem 0 0.15rem 0 !important;
    }
    
    .numbers-page .price-display-enhanced {
        font-size: 0.9rem !important;
        margin: 0.15rem 0 0.3rem 0 !important;
    }
    
    .numbers-page .operator-badge {
        top: 5px !important;
        right: 5px !important;
        padding: 0.15rem 0.3rem !important;
        font-size: 0.65rem !important;
    }
    
    .numbers-page .badge.bg-info,
    .numbers-page .badge.bg-success,
    .numbers-page .badge.bg-warning,
    .numbers-page .badge.bg-primary {
        font-size: 0.65rem !important;
        padding: 0.15rem 0.3rem !important;
        margin: 0.15rem 0.15rem 0.15rem 0 !important;
    }
    
    .numbers-page .btn {
        font-size: 0.7rem !important;
        padding: 0.35rem 0.7rem !important;
        min-height: 30px !important;
    }
}

/* ULTIMATE FORCE OVERRIDE - Match Category Page Desktop Enhancement */
@media (min-width: 992px) {
    .numbers-page .number-card-glass,
    .numbers-page .vip-card,
    .numbers-page .card {
        padding: 1.25rem !important;
        margin: 0 0 1.25rem 0 !important;
    }
    
    .numbers-page .number-display-enhanced {
        font-size: 1.3rem !important;
        margin: 0.6rem 0 0.3rem 0 !important;
    }
    
    .numbers-page .price-display-enhanced {
        font-size: 1.2rem !important;
        margin: 0.3rem 0 0.6rem 0 !important;
    }
    
    .numbers-page .operator-badge {
        top: 10px !important;
        right: 10px !important;
        padding: 0.3rem 0.6rem !important;
        font-size: 0.8rem !important;
    }
    
    .numbers-page .badge.bg-info,
    .numbers-page .badge.bg-success,
    .numbers-page .badge.bg-warning,
    .numbers-page .badge.bg-primary {
        font-size: 0.8rem !important;
        padding: 0.3rem 0.6rem !important;
        margin: 0.3rem 0.3rem 0.3rem 0 !important;
    }
    
    .numbers-page .btn {
        font-size: 0.85rem !important;
        padding: 0.55rem 1.1rem !important;
        min-height: 38px !important;
    }
}

/* ULTIMATE FORCE OVERRIDE - Match Category Page Large Desktop */
@media (min-width: 1200px) {
    .numbers-page .number-card-glass,
    .numbers-page .vip-card,
    .numbers-page .card {
        padding: 1.5rem !important;
        margin: 0 0 1.5rem 0 !important;
    }
    
    .numbers-page .number-display-enhanced {
        font-size: 1.4rem !important;
        margin: 0.75rem 0 0.4rem 0 !important;
    }
    
    .numbers-page .price-display-enhanced {
        font-size: 1.3rem !important;
        margin: 0.4rem 0 0.75rem 0 !important;
    }
    
    .numbers-page .operator-badge {
        top: 12px !important;
        right: 12px !important;
        padding: 0.35rem 0.7rem !important;
        font-size: 0.85rem !important;
    }
    
    .numbers-page .badge.bg-info,
    .numbers-page .badge.bg-success,
    .numbers-page .badge.bg-warning,
    .numbers-page .badge.bg-primary {
        font-size: 0.85rem !important;
        padding: 0.35rem 0.7rem !important;
        margin: 0.35rem 0.35rem 0.35rem 0 !important;
    }
    
    .numbers-page .btn {
        font-size: 0.9rem !important;
        padding: 0.6rem 1.2rem !important;
        min-height: 40px !important;
    }
}

/* ULTIMATE FORCE OVERRIDE - Match Category Page Hover Effects */
.numbers-page .number-card-glass:hover,
.numbers-page .vip-card:hover,
.numbers-page .card:hover {
    transform: none !important; /* ลบ hover effect */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important; /* คง shadow เดิม */
}

/* ULTIMATE FORCE OVERRIDE - Match Category Page Sold Number */
.numbers-page .number-card-glass.sold {
    background: #f9fafb !important; /* สีเทาอ่อน */
    opacity: 0.8 !important;
    filter: grayscale(0.5) !important;
}

.numbers-page .sold-ribbon {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.5rem !important;
    border-radius: 6px !important;
    background: #6b7280 !important; /* สีเทา */
    color: white !important;
}

/* ============================================
   ANALYZE NUMBER PAGE - PREMIUM STYLES 2025
   ============================================ */

/* Hero Section */
.analyze-hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

.analyze-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="white" stroke-width="0.5" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.analyze-hero h1 {
    color: #ffffff !important;
    font-size: 2.5rem !important;
    font-weight: 900 !important;
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 20px rgba(245, 158, 11, 0.4));
    margin-bottom: 1rem !important;
}

.analyze-hero .lead {
    color: #cbd5e1 !important;
    font-size: 1.125rem !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

/* Premium Analysis Form */
.analysis-form-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(99, 102, 241, 0.1);
    border-radius: 30px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.analysis-form-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.analysis-form-card:hover::before {
    opacity: 0.2;
}

/* Result Card Premium Style */
.result-card-premium {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.result-header-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    text-align: center;
    position: relative;
}

.result-header-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.result-number-display {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 20px rgba(139, 92, 246, 0.4));
    animation: numberPulse 2s ease-in-out infinite;
}

@keyframes numberPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Meaning Cards */
.meaning-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.meaning-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
}

.meaning-card h5 {
    font-size: 1.125rem !important;
    font-weight: 700;
    margin-bottom: 1rem;
}

.meaning-card p {
    font-size: 0.95rem !important;
    line-height: 1.6;
    color: #475569;
}

.good-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.05));
    border-color: rgba(16, 185, 129, 0.2);
}

.good-card:hover {
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
}

.warning-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(217, 119, 6, 0.05));
    border-color: rgba(245, 158, 11, 0.2);
}

.warning-card:hover {
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
}

/* Individual Number Meaning */
.number-meaning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.single-number-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.single-number-card:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.single-number-card .number {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.single-number-card .meaning-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.single-number-card .meaning-desc {
    font-size: 0.7rem;
    color: #64748b;
    line-height: 1.3;
}

/* Popular Sums Enhanced */
.popular-sum-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(249, 250, 251, 0.95));
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popular-sum-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.popular-sum-card:hover {
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.2);
}

.popular-sum-card:hover::before {
    opacity: 0.1;
}

.popular-sum-card .sum-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
    line-height: 1;
}

/* Lucky Stars Rating */
.lucky-stars {
    display: flex;
    justify-content: center;
    gap: 0.2rem;
    margin: 0.5rem 0;
}

.lucky-stars .fa-star {
    color: #fbbf24;
    font-size: 1rem;
    filter: drop-shadow(0 2px 8px rgba(251, 191, 36, 0.4));
}

.lucky-stars .fa-star.empty {
    color: #e5e7eb;
    filter: none;
}

.lucky-stars .fa-star.small {
    font-size: 0.875rem;
}

/* Popular Sum Card Typography */
.popular-sum-card h6 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.popular-sum-card small {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
    display: block;
    margin-top: 0.25rem;
}

/* Animated Background Pattern */
.analyze-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    animation: patternFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes patternFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Enhanced Input Style */
.analyze-input {
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    padding: 1.25rem 1.75rem;
    font-size: 1.25rem;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.analyze-input:focus {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.1);
    transform: scale(1.02);
}

/* Animated Button */
.btn-analyze {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 0.875rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-analyze::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-analyze:hover::before {
    left: 100%;
}

.btn-analyze:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .analyze-hero h1 {
        font-size: 1.875rem !important;
    }
    
    .analyze-hero .lead {
        font-size: 1rem !important;
    }
    
    .result-number-display {
        font-size: 3rem;
    }
    
    .single-number-card {
        padding: 0.875rem;
    }
    
    .single-number-card .number {
        font-size: 1.75rem;
    }
    
    .single-number-card .meaning-title {
        font-size: 0.75rem;
    }
    
    .single-number-card .meaning-desc {
        font-size: 0.65rem;
    }
    
    .popular-sum-card {
        padding: 1.25rem;
        min-height: 180px;
    }
    
    .popular-sum-card .sum-number {
        font-size: 2rem;
    }
    
    .popular-sum-card h6 {
        font-size: 1rem;
    }
    
    .popular-sum-card small {
        font-size: 0.75rem;
    }
    
    .analyze-input {
        font-size: 1.125rem;
        padding: 1rem 1.25rem;
    }
    
    .btn-analyze {
        font-size: 1rem;
        padding: 0.75rem 2rem;
    }
    
    .meaning-card {
        padding: 1.5rem;
    }
    
    .meaning-card h5 {
        font-size: 1rem !important;
    }
    
    .meaning-card p {
        font-size: 0.875rem !important;
    }
}

/* ============================================
   SUM PAGE - PREMIUM STYLES 2025
   ============================================ */

/* Hero Section for Sum Page */
.sum-hero-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    position: relative;
    overflow: hidden;
    padding: 6rem 0 4rem 0;
}

.sum-hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    animation: patternFloat 30s ease-in-out infinite;
}

@keyframes patternFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -20px) scale(1.1); }
}

.sum-number-hero {
    font-size: 8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 8px 30px rgba(245, 158, 11, 0.5));
    animation: numberGlow 3s ease-in-out infinite;
    line-height: 1;
}

@keyframes numberGlow {
    0%, 100% { filter: drop-shadow(0 8px 30px rgba(245, 158, 11, 0.5)); }
    50% { filter: drop-shadow(0 12px 40px rgba(245, 158, 11, 0.8)); }
}

.hero-title-enhanced {
    color: #ffffff !important;
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    margin-bottom: 1rem !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle-enhanced {
    color: #cbd5e1 !important;
    font-size: 1.25rem !important;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.sum-lucky-stars {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.sum-lucky-stars .fa-star {
    color: #fbbf24;
    font-size: 2rem;
    filter: drop-shadow(0 4px 15px rgba(251, 191, 36, 0.6));
    animation: starRotate 4s ease-in-out infinite;
}

.sum-lucky-stars .fa-star:nth-child(1) { animation-delay: 0s; }
.sum-lucky-stars .fa-star:nth-child(2) { animation-delay: 0.2s; }
.sum-lucky-stars .fa-star:nth-child(3) { animation-delay: 0.4s; }
.sum-lucky-stars .fa-star:nth-child(4) { animation-delay: 0.6s; }
.sum-lucky-stars .fa-star:nth-child(5) { animation-delay: 0.8s; }

@keyframes starRotate {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(15deg) scale(1.1); }
}

.sum-lucky-stars .fa-star.empty {
    color: #475569;
    filter: none;
    animation: none;
}

/* Glow Buttons */
.btn-glow {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    font-weight: 700;
    padding: 0.875rem 2.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.3);
}

.btn-outline-glow {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    font-weight: 700;
    padding: 0.875rem 2.5rem;
    transition: all 0.3s ease;
}

.btn-outline-glow:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.1);
    color: white;
}

/* Content Section */
.sum-content-section {
    background: #f8fafc;
}

/* Section Header */
.sum-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.sum-section-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.sum-section-desc {
    color: #64748b;
    font-size: 1.125rem;
}

/* Number Cards */
.sum-number-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sum-number-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.sum-number-card.vip {
    background: linear-gradient(135deg, #fffbf0 0%, #fff7e6 100%);
    border: 2px solid #fbbf24;
}

.vip-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1e293b;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}



.number-display {
    font-size: 1.75rem;
    font-weight: 900;
    color: #1e293b;
    margin: 2rem 0 1rem;
    letter-spacing: 0.05em;
}

.price-display {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.category-badge {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-copy, .btn-buy {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-copy {
    background: #e2e8f0;
    color: #334155;
}

.btn-copy:hover {
    background: #cbd5e1;
    transform: translateY(-2px);
}

.btn-buy {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    color: white;
}

/* Meaning Card */
.sum-meaning-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.meaning-header {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    padding: 1.5rem;
    text-align: center;
}

.meaning-title {
    color: white !important;
    font-size: 1.25rem !important;
    font-weight: 700;
    margin: 0;
}

.meaning-content {
    padding: 2rem;
}

.meaning-stars {
    margin-bottom: 1.5rem;
}

.meaning-stars .fa-star {
    font-size: 1.5rem;
    margin: 0 0.2rem;
}

.meaning-stars .fa-star.gold {
    color: #fbbf24;
    filter: drop-shadow(0 2px 8px rgba(251, 191, 36, 0.4));
}

.meaning-stars .fa-star.empty {
    color: #e2e8f0;
}

.meaning-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1.5rem;
}

.meaning-details {
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #334155;
}

.detail-item:last-child {
    margin-bottom: 0;
}

/* Popular Sums Card */
.sum-popular-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.popular-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    text-align: center;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.popular-sum-link {
    display: block;
    text-decoration: none;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.popular-sum-link:hover {
    border-color: #6366f1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    transform: translateY(-3px);
}

.popular-sum-link.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: transparent;
}

.popular-sum-link .sum-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.popular-sum-link.active .sum-number {
    color: white;
}

.popular-sum-link .sum-mini-title {
    font-size: 0.7rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popular-sum-link.active .sum-mini-title {
    color: rgba(255, 255, 255, 0.9);
}

/* CTA Card */
.sum-cta-card {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.2);
}

.cta-icon {
    font-size: 3rem;
    color: #f59e0b;
    margin-bottom: 1rem;
}

.cta-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 0.5rem;
}

.cta-desc {
    color: #b45309;
    margin-bottom: 1.5rem;
}

.btn-cta {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    border: none;
    padding: 0.875rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
    color: white;
}

/* Alert Styling */
.sum-alert {
    border-radius: 15px;
    padding: 1.5rem;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .sum-number-hero {
        font-size: 6rem;
    }
    
    .hero-title-enhanced {
        font-size: 2rem !important;
    }
    
    .hero-subtitle-enhanced {
        font-size: 1.125rem !important;
    }
    
    .sum-lucky-stars .fa-star {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .sum-number-hero {
        font-size: 5rem;
    }
    
    .hero-title-enhanced {
        font-size: 1.75rem !important;
    }
    
    .hero-subtitle-enhanced {
        font-size: 1rem !important;
        padding: 0 1rem;
    }
    
    .sum-hero-section {
        padding: 4rem 0 3rem 0;
    }
    
    .sum-section-title {
        font-size: 1.5rem;
    }
    
    .number-display {
        font-size: 1.5rem;
    }
    
    .price-display {
        font-size: 1.25rem;
    }
    
    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .btn-glow, .btn-outline-glow {
        padding: 0.75rem 2rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .sum-number-hero {
        font-size: 4rem;
    }
    
    .sum-lucky-stars .fa-star {
        font-size: 1.25rem;
    }
    
    .sum-number-card {
        padding: 1.5rem;
    }
    
    .number-display {
        font-size: 1.25rem;
    }
    
    .popular-sum-link .sum-number {
        font-size: 1.25rem;
    }
    
    .popular-sum-link .sum-mini-title {
        font-size: 0.6rem;
    }
}

/* ===== ENHANCED HOW-TO-ORDER & CONTACT PAGE STYLES ===== */

.how-to-order-hero,
.contact-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.how-to-order-hero::before,
.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

.hero-icon-wrapper {
    position: relative;
    display: inline-block;
}

.hero-sparkle {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #ffd700 0%, transparent 70%);
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
}

/* Step Cards for How-to-Order */
.step-card {
    padding: 2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102,126,234,0.05) 0%, rgba(118,75,162,0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-card:hover::before {
    opacity: 1;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(102,126,234,0.2);
}

.step-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-number-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    z-index: 2;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.step-icon {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.step-features {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Detailed Steps Styling */
.detailed-steps-card {
    border-radius: 20px;
    overflow: hidden;
}

.card-header-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem;
    border: none;
}

.header-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-detail-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(102,126,234,0.03);
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.step-detail-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.step-detail-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
}

.step-detail-content {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-detail-content li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

/* Payment & Shipping Cards */
.payment-card,
.shipping-card {
    border-radius: 20px;
    overflow: hidden;
}

.card-header-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 1.5rem;
}

.card-header-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    padding: 1.5rem;
}

.card-header-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: white;
    padding: 1.5rem;
}

.payment-method-card,
.shipping-option-card {
    padding: 2rem 1.5rem;
    border-radius: 15px;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.payment-method-card::before,
.shipping-option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102,126,234,0.05) 0%, rgba(118,75,162,0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-method-card:hover::before,
.shipping-option-card:hover::before {
    opacity: 1;
}

.payment-method-card:hover,
.shipping-option-card:hover {
    transform: translateY(-5px);
}

.payment-icon {
    margin-bottom: 1rem;
}

.bank-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bank-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.bank-logo {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.promptpay-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: left;
}

.shipping-option-card.featured {
    border: 2px solid #28a745;
    position: relative;
}

.shipping-option-card.featured::after {
    content: '⭐ แนะนำ';
    position: absolute;
    top: -10px;
    right: 15px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.shipping-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.shipping-time,
.shipping-price {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* Notes Card */
.notes-card {
    border-radius: 20px;
    overflow: hidden;
}

.important-notes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.note-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.note-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
}

.note-icon {
    margin-right: 1rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* Enhanced CTA Section */
.cta-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.cta-wrapper {
    border-radius: 25px;
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.cta-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(102,126,234,0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(118,75,162,0.1) 0%, transparent 50%);
    animation: float 8s ease-in-out infinite;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-icon {
    margin-bottom: 1.5rem;
}

.cta-buttons {
    margin-top: 2rem;
}

/* ===== CONTACT PAGE SPECIFIC STYLES ===== */

.contact-info-card {
    border-radius: 20px;
    padding: 2rem;
}

.contact-header-icon {
    background: rgba(102,126,234,0.1);
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item {
    padding: 1.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
}

.contact-item.featured {
    background: linear-gradient(135deg, rgba(40,167,69,0.05) 0%, rgba(32,201,151,0.05) 100%);
    border: 2px solid rgba(40,167,69,0.2);
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102,126,234,0.1);
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(102,126,234,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-item-content {
    flex: 1;
}

.contact-method-card {
    padding: 2rem;
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-method-card.featured {
    border: 2px solid #28a745;
}

.contact-method-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(102,126,234,0.15);
}

.method-icon-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.featured-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 3;
}

.method-features {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.feature-badge {
    margin: 0.25rem 0;
}

/* QR Code Styling */
.qr-code-card {
    border-radius: 25px;
    overflow: hidden;
}

.qr-code-container {
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(40,167,69,0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.qr-code-container:hover {
    border-color: rgba(40,167,69,0.5);
    box-shadow: 0 0 25px rgba(40,167,69,0.3);
}

.qr-code-image {
    border-radius: 15px;
}

.line-id-display {
    background: rgba(40,167,69,0.1);
    border: 2px solid rgba(40,167,69,0.2);
}

.qr-features {
    gap: 0.5rem;
}

/* FAQ Styling */
.faq-card {
    border-radius: 20px;
    overflow: hidden;
}

.faq-header-icon {
    background: rgba(23,162,184,0.1);
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accordion-premium .accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
}

.accordion-premium .accordion-button {
    background: rgba(102,126,234,0.05);
    border: none;
    border-radius: 15px;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.accordion-premium .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}

.accordion-premium .accordion-button:focus {
    border-color: rgba(102,126,234,0.25);
    box-shadow: 0 0 0 0.25rem rgba(102,126,234,0.25);
}

.accordion-premium .accordion-body {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
}

.faq-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-step {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: rgba(102,126,234,0.05);
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.faq-step .step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    font-size: 0.9rem;
}

.shipping-options-faq {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.shipping-option {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: rgba(102,126,234,0.05);
    border-radius: 10px;
}

.faq-answer {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem;
    background: rgba(102,126,234,0.05);
    border-radius: 10px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .how-to-order-hero,
    .contact-hero {
        padding: 3rem 0;
    }
    
    .step-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .step-number-circle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .cta-wrapper {
        padding: 2.5rem 2rem;
    }
    
    .contact-method-card {
        padding: 1.5rem;
    }
    
    .method-features {
        justify-content: center;
    }
    
    .qr-code-container {
        padding: 2rem !important;
    }
    
    .detailed-steps-card .card-body {
        padding: 2rem 1rem;
    }
    
    .step-detail-item {
        padding: 1rem;
    }
    
    .payment-method-card,
    .shipping-option-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    .contact-item-icon {
        width: 40px;
        height: 40px;
    }
}

/* ===== CLEAN OPERATOR BADGE STYLES ===== */

/* Base operator badge container */
.operator-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
}

/* Badge inside operator badge container */
.operator-badge .badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Operator specific colors */
.operator-badge .badge.operator-ais {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.operator-badge .badge.operator-true {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.operator-badge .badge.operator-dtac {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .operator-badge {
        top: 8px;
        right: 8px;
    }
    
    .operator-badge .badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
        border-radius: 10px;
    }
}

@media (max-width: 576px) {
    .operator-badge {
        top: 6px;
        right: 6px;
    }
    
    .operator-badge .badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.35rem;
        border-radius: 8px;
    }
}

/* ===== ENHANCED ANALYZE NUMBER STYLES ===== */

/* Enhanced result number display */
.result-number-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

.result-number-display::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
    border-radius: 50%;
    z-index: -1;
    animation: rotate 3s linear infinite;
    opacity: 0.3;
}

/* Enhanced number cards in analyze page */
.analyze-number-card {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.analyze-number-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.analyze-number-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.analyze-number-card:hover::before {
    opacity: 0.1;
}

/* Premium number display in analyze */
.analyze-number-display {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Premium price display in analyze */
.analyze-price-display {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .analyze-number-display {
        font-size: 1.4rem;
    }
    
    .analyze-price-display {
        font-size: 1.2rem;
    }
}

