:root {
     /* ปรับโทนสีหลักตามที่กำหนด */
     --gold-dark: #a54e07;     /* สีทองแดงเข้ม */
     --gold-medium: #b47e11;   /* สีทองกลาง */
     --gold-light: #fef1a2;    /* สีทองอ่อน */
     --gold-yellow: #bc881b;   /* สีทองเหลือง */

     --neon-dark: #B026FF;    /* ม่วงนีออนเข้ม */
     --neon-medium: #D700FF;  /* ม่วงนีออนกลาง */
     --neon-light: #F700FF;   /* ม่วงนีออนอ่อน */
     --neon-bright: #FF00FF;  /* สีม่วงนีออนสด */
     --neon-glow: #E100FF;    /* ม่วงนีออนสว่าง */

     /* สีหลักแบบ Cosmic Purple */
    --cosmic-dark: #0B0033;     /* สีม่วงเข้มมาก */
    --cosmic-deep: #1B0042;     /* สีม่วงเข้ม */
    --cosmic-medium: #4B0082;   /* สีม่วงกลาง */
    --cosmic-light: #9932CC;    /* สีม่วงอ่อน */
    --cosmic-bright: #B026FF;   /* สีม่วงสว่าง */
    --cosmic-glow: #E0B0FF;     /* สีม่วงเรืองแสง */
    
    /* แปลงเป็น RGB สำหรับ effects */
    --color-cosmic-dark: 11, 0, 51;      /* 0B0033 */
    --color-cosmic-deep: 27, 0, 66;      /* 1B0042 */
    --color-cosmic-medium: 75, 0, 130;   /* 4B0082 */
    --color-cosmic-light: 153, 50, 204;  /* 9932CC */
    --color-cosmic-bright: 176, 38, 255; /* B026FF */
    --color-cosmic-glow: 224, 176, 255;  /* E0B0FF */
     
     /* แปลงเป็น RGB สำหรับใช้กับ rgba */
     --color-gold-dark: 165, 78, 7;      /* a54e07 */
     --color-gold-medium: 180, 126, 17;  /* b47e11 */
     --color-gold-light: 254, 241, 162;  /* fef1a2 */
     --color-gold-yellow: 188, 136, 27;  /* bc881b */
     /* แปลงเป็น RGB สำหรับใช้กับ rgba */
     --color-neon-dark: 176, 38, 255;    /* B026FF */
     --color-neon-medium: 215, 0, 255;   /* D700FF */
     --color-neon-light: 247, 0, 255;    /* F700FF */
     --color-neon-bright: 255, 0, 255;   /* FF00FF */
     --color-neon-glow: 225, 0, 255;     /* E100FF */
     /* สีพื้นฐานของระบบ */
    --primary-color: var(--cosmic-medium);
    --secondary-color: var(--cosmic-deep);
    --accent-color: var(--cosmic-bright);
    --text-color: #FFFFFF;
    --bg-color: var(--cosmic-dark);
     --menu-bg: #ffffff;

    --dark-gold: #8B7355; /* สีทองเข้ม */
    --color-primary: 255, 215, 0;   
    --color-secondary: 192, 192, 192;
    --color-tertiary: 184, 134, 11; 
    --color-error: 244, 63, 93;
    --color-success: 16, 185, 129;
    --color-warning: 251, 191, 36;
    --color-background: 44, 44, 44; 
    --tw-border-spacing-x: 0;
    --tw-translate-x: 0;
    --tw-translate-y: 0;
    --tw-rotate: 0;
    --tw-skew-x: 0;
    --tw-skew-y: 0;
    --tw-scale-x: 1;
    --tw-scale-y: 1;
    --tw-pan-x: ;
    --tw-pan-y: ;
    --tw-pinch-zoom: ;
    --tw-scroll-snap-strictness: proximity;
    --tw-gradient-from-position: ;
    --tw-gradient-via-position: ;
    --tw-gradient-to-position: ;
    --tw-ordinal: ;
    --tw-slashed-zero: ;
    --tw-numeric-figure: ;
    --tw-numeric-spacing: ;
    --tw-numeric-fraction: ;
    --tw-ring-inset: ;
    --tw-ring-offset-width: 0px;
    --tw-ring-offset-color: #fff;
    --tw-ring-color: rgba(59, 130, 246, .5);
    --tw-ring-offset-shadow: 0 0 #0000;
    --tw-ring-shadow: 0 0 #0000;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    --tw-blur: ;
    --tw-brightness: ;
    --tw-contrast: ;
    --tw-grayscale: ;
    --tw-hue-rotate: ;
    --tw-invert: ;
    --tw-saturate: ;
    --tw-sepia: ;
    --tw-drop-shadow: ;
    --tw-backdrop-blur: ;
    --tw-backdrop-brightness: ;
    --tw-backdrop-contrast: ;
    --tw-backdrop-grayscale: ;
    --tw-backdrop-hue-rotate: ;
    --tw-backdrop-invert: ;
    --tw-backdrop-opacity: ;
    --tw-backdrop-saturate: ;
    --tw-backdrop-sepia: ;
    --tw-contain-size: ;
    --tw-contain-layout: ;
    --tw-contain-paint: ;
    --tw-contain-style: ;
}

body {
    font-family: 'Prompt', sans-serif;
    --tw-text-opacity: 1;
     background: linear-gradient(135deg,
        var(--cosmic-dark),
        var(--cosmic-deep),
        var(--cosmic-medium)
    );
    color: var(--text-color);
    animation: neonShimmer 3s ease infinite;
    color: var(--text-color);
    margin: 0;
    padding: 0;
}
.container {
    margin-left: auto;
    margin-right: auto;
    padding-left: .5rem;
    padding-right: .5rem;
    width: 100%;
}

.navbar {
    background: linear-gradient(to right, #4B0082, #8A2BE2);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand img {
    height: 40px;
}

.btn-gold {
    background-image: linear-gradient(45deg,
        var(--cosmic-medium),
        var(--cosmic-light),
        var(--cosmic-bright)
    );
    border: 1px solid rgba(224, 176, 255, 0.3);
    box-shadow: 0 0 15px rgba(176, 38, 255, 0.3);
}

.btn-gold:hover {
    background-image: linear-gradient(45deg,
        var(--cosmic-bright),
        var(--cosmic-light),
        var(--cosmic-medium)
    );
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(176, 38, 255, 0.5);
}

.card {

    background: linear-gradient(145deg, 
        rgba(27, 0, 66, 0.95),
        rgba(75, 0, 130, 0.95)
    );
    border: 1px solid rgba(224, 176, 255, 0.2);
    box-shadow: 0 4px 15px rgba(176, 38, 255, 0.1);
    border-radius: 15px;
}

.card-header {
    color: var(--text-color);
}

.lottery-result {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-color);
}

.lottery-number {
    font-size: 2.5em;
    color: #fbfbfb;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.lottery-type img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--text-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 25px;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.flags img {
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
}

.prize-info {
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    color: #ffd700;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-tabs .nav-link {
    color: var(--gold-medium);
    border: none;
    border-bottom: 1px solid transparent;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-link:hover {
    color: var(--text-color);
    background-color: #47007d;
    border-bottom: 1px solid var(--primary-color);
}

/* Gold text effect */
.gold-text {
    background: linear-gradient(to right,
        var(--cosmic-glow),
        var(--cosmic-bright),
        var(--cosmic-light),
        var(--cosmic-medium)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: cosmicText 8s ease infinite;
}
@keyframes cosmicText {
    0% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(30deg); }
    100% { filter: hue-rotate(0deg); }
}
/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cosmic-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        var(--cosmic-medium),
        var(--cosmic-light)
    );
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        var(--cosmic-light),
        var(--cosmic-bright)
    );
}

.lottery-table {
    width: 100%;
    border-collapse: separate;
}

.lottery-table th {
    font-weight: normal;
}

.lottery-table tr {
    background: linear-gradient(145deg, 
        rgba(27, 0, 66, 0.95),
        rgba(75, 0, 130, 0.95)
    );
    border-bottom: 1px solid rgba(224, 176, 255, 0.2);
    transition: all 0.3s ease;
}

.lottery-table tr:hover {
    background: linear-gradient(to right,
        rgba(176, 38, 255, 0.1),
        rgba(224, 176, 255, 0.1)
    );
    transform: scale(1.02);
}

.lottery-table td {
    padding: 5px;
    vertical-align: middle;
    border-bottom: 1px solid #ffd70036;
}

.lottery-info-container {
    display: flex;
    align-items: center;
}

.lottery-icon-img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin-right: 15px;
}

.lottery-details {
    display: flex;
    flex-direction: column;
}

.lottery-title {
    font-size: 16px;
    color: var(--text-color);
}

.lottery-date {
    font-size: 12px;
}

.tab-content {
    max-height: 32rem !important;
    overflow-x: auto !important;
}

.lottery-result {
    background-color: #5d3f8f;
    border-radius: 10px;
    color: white;
    padding: 15px;
    font-family: 'Prompt', sans-serif;
}

.lottery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.lottery-flag {
    width: 30px;
    height: auto;
    margin-right: 10px;
}

.lottery-date {
    font-size: 14px;
}

.lottery-body {
    display: flex;
    flex-direction: column;
}

.lottery-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.lottery-label {
    font-size: 14px;
}

.lottery-number {
    font-weight: bold;
    font-size: 16px;
}

.main-prize {
    font-size: 24px;
    color: #ffd700;
}

.header {
    background: linear-gradient(to right,
        var(--cosmic-dark),
        var(--cosmic-deep),
        var(--cosmic-medium)
    );
    box-shadow: 0 2px 10px rgba(176, 38, 255, 0.3);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
}

.balance-display {
    background-color: #ffffff;
    color: var(--bg-color);
    padding: 5px 10px;
    border-radius: 5px;
}

.user-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--menu-bg);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 3;
    border-radius: 5px;
}

.dropdown-menu a {
    color: var(--menu-text);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-menu a:hover {
    background-color: #f1f1f1;
}

.main-content {
    padding: 20px;
    display: grid;

    gap: 20px;
}

.action-button {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    border: none;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    text-align: center;
}

.menu-item {
    background: rgba(44, 44, 44, 0.95);
    border: 1px solid rgba(254, 241, 162, 0.2);
    transition: all 0.3s ease;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: var(--bg-color);
}

.menu-item i {
    font-size: 2em;
    margin-bottom: 10px;
    color: #eee2f1;
    transition: color 0.3s ease;
}
.menu-item:hover i {
    transform: translateY(-2px);
}

.logout-button {
    background-color: #e74c3c;
    color: var(--text-color);
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

.side-menu {
    width: 250px;
    margin-right: 20px;
}



.logo img {
    height: 40px;
}

.user-info {
    display: flex;
    align-items: center;
}

.balance {
    background-color: #2c3e50;
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 10px;
}

.user-id {
    background-color: var(--secondary-color);
    padding: 5px 10px;
    border-radius: 5px;
}

.main-content {
    padding: 20px;
}

.user-panel {
    background: linear-gradient(135deg,
        var(--cosmic-deep),
        var(--cosmic-medium),
        var(--cosmic-light)
    );
    animation: cosmicGlow 15s ease infinite;
    border: 1px solid rgba(247, 0, 255, 0.3);
    box-shadow: 0 4px 15px rgba(176, 38, 255, 0.2);
    border-radius: 10px;
    padding: 10px;
}
/* เพิ่ม Animation Effects */
@keyframes cosmicGlow {
    0% {
        box-shadow: 0 0 15px rgba(176, 38, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(224, 176, 255, 0.5);
    }
    100% {
        box-shadow: 0 0 15px rgba(176, 38, 255, 0.3);
    }
}
.balance-large {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--text-color);
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    color: var(--text-color);
    font-weight: bold;
    cursor: pointer;
}

.btn-deposit {
    background-color: #27ae60;
}

.btn-withdraw {
    background-color: #e74c3c;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.game-providers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.game-provider img {
    width: 100%;
    border-radius: 10px;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px; /* กำหนดความสูงคงที่ */
    background: linear-gradient(to right, 
        rgba(44, 44, 44, 0.95), 
        rgba(26, 26, 26, 0.95)
    );
    border-top: 1px solid rgba(254, 241, 162, 0.2);
    padding: 10px 20px;
    text-align: center;
    box-sizing: border-box;
    z-index: 1000; /* ให้อยู่ด้านบนสุดของ layer */
}

.btn,
[type=button],
[type=submit],
button {
    align-items: center;
    background: linear-gradient(to right,
        var(--cosmic-dark),
        var(--cosmic-deep),
        var(--cosmic-medium)
    );
    border: 1px solid rgba(254, 241, 162, 0.3);
    transition: all 0.3s ease;
    border-radius: .375rem;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 500;
    height: auto;
    justify-content: center;
    line-height: 1.5rem;
    padding: .5rem .75rem;
    position: relative;
    touch-action: manipulation;
}

.user-panel button {
    height: 100%;
    --tw-bg-opacity: 1;
    background-color: rgb(68 40 124 / var(--tw-bg-opacity));
    color: #ffff;
    border: 1px solid #75329b;
}

.gap-3 {
    gap: .75rem !important;
}

.gap-4 {
    gap: 1rem !important;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.flex-col {
    flex-direction: column !important;
}

.flex {
    display: flex !important;
}

.grid {
    display: grid !important;
}

.main-link {
    background: linear-gradient(to right,
        var(--cosmic-dark),
        var(--cosmic-deep),
        var(--cosmic-medium)
    );
    animation: cosmicText 8s ease infinite;
    padding: 2px;
    color: #eee2f1;
}

.main-link button {
    background: rgba(44, 44, 44, 0.9);
    transition: background 0.3s ease;
}

.main-link button:hover {
    background: var(--neon-dark);
}

.navbar {
    background: linear-gradient(to right,
        var(--cosmic-dark),
        var(--cosmic-deep),
        var(--cosmic-medium)
    );
    box-shadow: 0 2px 10px rgba(176, 38, 255, 0.3);
    padding: 10px 0;
}

.navbar-brand img {
    height: 40px;
}
/* เพิ่ม animation effect */
@keyframes neonShimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ปรับ Glass Effect */
.glass-neon {
    background: rgba(176, 38, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(247, 0, 255, 0.2);
    box-shadow: 0 4px 15px rgba(255, 0, 255, 0.1);
}

.btn:hover,
[type=button]:hover,
[type=submit]:hover,
button:hover {
    background-image: linear-gradient(45deg,
        var(--neon-dark),
        var(--neon-medium),
        var(--neon-bright)
    );
    filter: brightness(1.1);
}

.text-lg {
    font-size: 1.125rem !important;
    line-height: 1.75rem !important;
}

.py-2 {
    padding-bottom: .5rem !important;
    padding-top: .5rem !important;
}

.w-full {
    width: 100% !important;
}

.icon-large {
    font-size: 1.5em;
    /* ปรับขนาดไอคอนให้ใหญ่ขึ้น */
    margin-right: 0.5em;
    /* เพิ่มระยะห่างระหว่างไอคอนกับข้อความ */
}

.menu-item:hover {
     background: linear-gradient(135deg,
     var(--neon-medium),
     var(--neon-bright)
    );
}


a:hover {
     text-decoration: none !important; 
}

@media (min-width: 640px) {
    .sm\:grid-cols-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    }

    .sm\:col-span-3 {
        grid-column: span 3 / span 3 !important;
    }

    /* .container {
        max-width: 640px;
    } */
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .side-menu {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .lg\:col-span-4 {
        grid-column: span 4 / span 4 !important;
    }

    .lg\:col-span-2 {
        grid-column: span 2 / span 2 !important;
    }

    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1536px;
    }
}

/* เพิ่ม Metallic Effect */
.metallic-effect {
    background: linear-gradient(135deg,
        rgba(192, 192, 192, 0.9),
        rgba(255, 255, 255, 0.9),
        rgba(192, 192, 192, 0.9)
    );
    background-size: 200% 200%;
    animation: goldShimmer 3s ease infinite;
}

/* เพิ่ม Glass Effect */
.glass-gold {
    background: rgba(180, 126, 17, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(254, 241, 162, 0.2);
    box-shadow: 0 4px 15px rgba(165, 78, 7, 0.1);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgb(253 253 253) !important;
}

.review-box {
    height: 100%;
    transition: transform 0.2s;
}
.review-box:hover {
    transform: translateY(-2px);
}
.review-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lottery-board-container {
    background: rgb(11, 0, 51);
    background: linear-gradient(135deg, #0B0033 0%, #1B0042 50%, #4B0082 100%);
    border-radius: 1rem;
    padding: 2rem;
  }

  .neon-box {
    background: rgba(75, 0, 130, 0.3);
    border: 2px solid #B026FF;
    border-radius: 0.75rem;
    padding: 10px;
    box-shadow: 
      0 0 5px #B026FF,
      0 0 10px #B026FF,
      inset 0 0 5px #B026FF;
    /* animation: neonPulse 2s infinite; */
  }

  .line-id-box {
    background: rgba(75, 0, 130, 0.3);
    border: 2px solid #B026FF;
    border-radius: 2rem;
    padding: 0.5rem 2rem;
    box-shadow: 
      0 0 5px #B026FF,
      0 0 10px #B026FF,
      inset 0 0 5px #B026FF;
    animation: neonPulse 2s infinite;
  }

  @keyframes neonPulse {
    0% {
      box-shadow: 
        0 0 5px #B026FF,
        0 0 10px #B026FF,
        inset 0 0 5px #B026FF;
    }
    50% {
      box-shadow: 
        0 0 10px #B026FF,
        0 0 20px #B026FF,
        inset 0 0 10px #B026FF;
    }
    100% {
      box-shadow: 
        0 0 5px #B026FF,
        0 0 10px #B026FF,
        inset 0 0 5px #B026FF;
    }
  }