/* Import Font */
@font-face {
    font-family: 'LINE Seed Sans TH';
    src: url('assets/LINESeedSansTH_W_Rg-D9D-DJkH.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: 'LINE Seed Sans TH', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, #0a1628 0%, #050911 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background Stars */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 85%, white, transparent),
        radial-gradient(1px 1px at 15% 40%, white, transparent);
    background-size: 200% 200%, 200% 200%, 150% 150%, 180% 180%, 220% 220%, 160% 160%, 190% 190%;
    background-position: 0 0, 40px 60px, 130px 270px, 70px 100px, 150px 50px, 250px 180px, 90px 220px;
    opacity: 0.4;
    animation: twinkle 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

/* Header */
.header {
    background: linear-gradient(180deg, 
        rgba(10, 22, 40, 0.98) 0%, 
        rgba(15, 30, 55, 0.95) 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(255, 215, 0, 0.15),
        inset 0 -1px 0 rgba(255, 215, 0, 0.3);
    border-bottom: 1px solid rgba(255, 215, 0, 0.4);
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Link wrappers - reset default link styles */
.btn-link-header {
    text-decoration: none;
    display: inline-block;
}

.btn-link-footer {
    text-decoration: none;
    display: inline-block;
}

.logo img {
    height: 45px;
    width: auto;
    filter: 
        drop-shadow(0 0 10px rgba(255, 215, 0, 0.6))
        drop-shadow(0 0 20px rgba(255, 215, 0, 0.4))
        drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { 
        filter: 
            drop-shadow(0 0 10px rgba(255, 215, 0, 0.6))
            drop-shadow(0 0 20px rgba(255, 215, 0, 0.4))
            drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    }
    50% { 
        filter: 
            drop-shadow(0 0 20px rgba(255, 215, 0, 0.8))
            drop-shadow(0 0 30px rgba(255, 215, 0, 0.6))
            drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    }
}

.btn-register-header {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, 
        #ffd700 0%, 
        #ffed4e 30%,
        #ffd700 60%,
        #ffb700 100%);
    color: #0a0e27;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 
        0 4px 15px rgba(255, 215, 0, 0.5),
        0 0 20px rgba(255, 215, 0, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-family: 'LINE Seed Sans TH', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn-register-header .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.btn-register-header .btn-icon svg {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.btn-register-header .btn-text {
    line-height: 1;
}

.btn-register-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 70%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: rotate(0deg) translate(-50%, -50%); }
    100% { transform: rotate(360deg) translate(-50%, -50%); }
}

.btn-register-header:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 6px 20px rgba(255, 215, 0, 0.7),
        0 0 30px rgba(255, 215, 0, 0.5),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

/* Main Content */
.main-content {
    padding: 20px 0 100px;
}

/* Banner */
.banner-slider {
    margin: 20px 0 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(255, 215, 0, 0.2),
        0 0 60px rgba(139, 92, 246, 0.15);
    transition: all 0.3s ease;
    position: relative;
}

.banner-slider::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 15px;
    padding: 2px;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.4) 0%,
        rgba(139, 92, 246, 0.3) 50%,
        rgba(0, 212, 255, 0.2) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
}

.banner-slider:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(255, 215, 0, 0.4),
        0 0 80px rgba(139, 92, 246, 0.3);
}

.banner-slider img {
    width: 100%;
    height: auto;
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    width: 100%;
}

.btn-link {
    width: 100%;
    max-width: 500px;
    text-decoration: none;
    display: block;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px 40px;
    border: none;
    border-radius: 50px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'LINE Seed Sans TH', sans-serif;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.2);
    width: 100%;
}

.btn-action::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 ease;
}

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

.btn-register {
    background: linear-gradient(135deg, 
        #ffd700 0%, 
        #ffed4e 25%,
        #ffd700 50%,
        #ffb700 75%,
        #ffd700 100%);
    color: #0a0e27;
    border: 2px solid rgba(255, 183, 0, 0.5);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-contact {
    background: linear-gradient(135deg, 
        #ff8c00 0%, 
        #ffa500 25%,
        #ff8c00 50%,
        #ff6600 75%,
        #ff8c00 100%);
    color: white;
    border: 2px solid rgba(255, 102, 0, 0.5);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-action:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.7),
        0 0 50px rgba(255, 215, 0, 0.5),
        0 0 70px rgba(255, 215, 0, 0.3);
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.btn-icon svg {
    display: block;
}

/* Promotion Section */
.promotion-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.promo-banner {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.15),
        0 0 50px rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.promo-banner:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(255, 215, 0, 0.3),
        0 0 60px rgba(139, 92, 246, 0.2);
    border-color: rgba(255, 215, 0, 0.4);
}

.promo-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Bank Section */
.bank-section {
    margin: 40px 0;
    padding: 30px 20px;
    background: linear-gradient(135deg, 
        rgba(10, 22, 40, 0.6) 0%,
        rgba(15, 30, 55, 0.5) 100%);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.bank-section h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
    }
    50% { 
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.8));
    }
}

.bank-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.bank-item {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 1) 100%);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.bank-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(255, 215, 0, 0.2) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bank-item:hover::before {
    opacity: 1;
}

.bank-item:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 215, 0, 0.5),
        0 0 50px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.6);
}

.bank-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, 
        rgba(10, 22, 40, 0.98) 0%, 
        rgba(5, 9, 17, 0.98) 100%);
    padding: 10px 0;
    box-shadow: 
        0 -4px 20px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(255, 215, 0, 0.1),
        inset 0 1px 0 rgba(255, 215, 0, 0.3);
    border-top: 1px solid rgba(255, 215, 0, 0.4);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.footer-buttons {
    display: flex;
    justify-content: space-around;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px 30px;
    transition: all 0.3s ease;
    font-family: 'LINE Seed Sans TH', sans-serif;
}

.footer-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    filter: 
        drop-shadow(0 0 8px rgba(255, 215, 0, 0.6))
        drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease;
}

.footer-btn-icon svg {
    display: block;
}

.footer-btn-text {
    font-size: 14px;
    font-weight: bold;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-btn:hover {
    transform: scale(1.15) translateY(-3px);
}

.btn-register-footer:hover .footer-btn-icon,
.btn-contact-footer:hover .footer-btn-icon {
    filter: 
        drop-shadow(0 0 15px rgba(255, 215, 0, 0.9))
        drop-shadow(0 0 25px rgba(255, 215, 0, 0.6))
        drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Responsive Design */
@media (max-width: 480px) {
    .logo img {
        height: 35px;
    }
    
    .btn-link-header {
        display: inline-block;
    }
    
    .btn-register-header {
        padding: 8px 16px;
        font-size: 13px;
        gap: 6px;
    }
    
    .btn-register-header .btn-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .btn-link {
        width: 100%;
    }
    
    .btn-action {
        font-size: 20px;
        padding: 18px 30px;
        width: 100%;
    }
    
    .btn-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .bank-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .bank-section h2 {
        font-size: 22px;
    }
    
    .btn-link-footer {
        flex: 1;
        display: flex;
    }
    
    .footer-btn {
        width: 100%;
    }
    
    .footer-btn-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .footer-btn-text {
        font-size: 12px;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s ease-in-out infinite;
}

/* Withdrawal Notifications */
.withdrawal-container {
    position: fixed;
    bottom: 80px;
    left: 0;
    right: 0;
    max-width: 640px;
    margin: 0 auto;
    pointer-events: none;
    z-index: 998;
    padding: 0 15px;
    height: calc(100vh - 80px);
    overflow: hidden; /* ไม่ให้ล้นออกนอกจอ */
}

.withdrawal-notification {
    position: absolute;
    bottom: 0;
    pointer-events: auto;
    animation: riseAndFade var(--duration, 7s) ease-out forwards;
    opacity: 0;
    transform: translateX(-50%); /* จัดกึ่งกลางที่ตำแหน่ง left */
}

.withdrawal-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, 
        #FFE55C 0%, 
        #FFD700 50%,
        #FFED4E 100%);
    color: #000000;
    border: 1.5px solid rgba(255, 183, 0, 0.6);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
    width: fit-content;
    min-width: 200px;
    max-width: 280px;
    position: relative;
    overflow: hidden;
    user-select: none; /* ไม่ให้เลือกข้อความ */
}

.withdrawal-card:active {
    transform: scale(0.95);
}

.withdrawal-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 70%);
    animation: cardShine 3s infinite linear;
}

@keyframes cardShine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.withdrawal-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 215, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 183, 0, 0.8);
}

/* Title Row - Icon + Title */
.withdrawal-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.withdrawal-bank-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.withdrawal-title-text {
    font-size: 13px;
    font-weight: 700;
    color: #000000;
}

/* Account Row - Account Number | Username */
.withdrawal-account-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.withdrawal-account-number {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.7);
}

.withdrawal-username-text {
    font-size: 12px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.7);
}

/* Amount - Smaller Size */
.withdrawal-amount-text {
    font-size: 14px;
    font-weight: 700;
    color: #DC2626;
    text-align: left;
    line-height: 1;
    margin: 2px 0;
}

/* Bottom Row - Time | Success */
.withdrawal-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.withdrawal-time-text {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.65);
}

.withdrawal-success-badge {
    font-size: 11px;
    font-weight: 600;
    color: #16A34A;
}

/* Rise to Top Animation - ลอยขึ้นจากล่างไปบนสุด */
@keyframes riseAndFade {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(150px); /* เพิ่ม translateX */
    }
    5% {
        opacity: 1;
        transform: translateX(-50%) translateY(0); /* เพิ่ม translateX */
    }
    10% {
        opacity: 1;
        transform: translateX(-50%) translateY(0); /* เพิ่ม translateX */
    }
    90% {
        opacity: 1;
        transform: translateX(-50%) translateY(-800px); /* เพิ่ม translateX */
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-850px); /* เพิ่ม translateX */
    }
}

/* Responsive for Notifications */
@media (max-width: 480px) {
    .withdrawal-container {
        bottom: 70px;
        padding: 0 10px;
        height: calc(100vh - 70px);
    }
    
    .withdrawal-card {
        min-width: 180px;
        max-width: 240px; /* ลดขนาดลงสำหรับมือถือ */
        padding: 8px 10px;
        gap: 3px;
    }
    
    .withdrawal-bank-icon {
        width: 20px;
        height: 20px;
    }
    
    .withdrawal-title-text {
        font-size: 11px;
    }
    
    .withdrawal-account-number {
        font-size: 10px;
    }
    
    .withdrawal-username-text {
        font-size: 10px;
        font-weight: 400;
    }
    
    .withdrawal-amount-text {
        font-size: 11px;
        margin: 1px 0;
    }
    
    .withdrawal-time-text {
        font-size: 9px;
    }
    
    .withdrawal-success-badge {
        font-size: 9px;
    }
}

