:root {
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --text-main: #2d3748;
    --text-muted: #64748b;
    --text-light-content: #718096;
    --text-highlight: #4E2576;
    --bg-gradient: linear-gradient(135deg, #e8ebf0 0%, #c8d0d8 100%);
    --card-gradient: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
}

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

body {
    font-family: 'Noto Sans Thai', sans-serif;
    color: var(--text-main);
    background: var(--bg-gradient) no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    padding-bottom: 40px;
    overflow-x: hidden;
    display: flex; justify-content: center;
}

body::before, body::after {
    content: ''; position: fixed; width: 600px; height: 600px; border-radius: 50%;
    filter: blur(90px); z-index: -1; opacity: 0.5;
}
body::before { background: #ffffff; top: -150px; left: -150px; opacity: 0.4; }
body::after { background: #dce4f0; bottom: -150px; right: -150px; opacity: 0.6; }

.main-container {
    width: 100%; max-width: 1400px;
    margin: 0 auto; padding: 10px 60px 40px;
    display: flex; flex-direction: column; min-height: 85vh;
}

nav {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 50px; margin-top: 10px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 10px 20px; border-radius: 100px;
    box-shadow: var(--glass-shadow);
    position: relative; z-index: 100;
}
.logo img { height: 36px; width: auto; }

.nav-menu-group { display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
    text-decoration: none; color: var(--text-muted);
    padding: 8px 18px; border-radius: 40px; font-size: 0.9rem; font-weight: 500; transition: 0.3s;
}
.nav-links a:hover { color: var(--text-main); background: rgba(0,0,0,0.03); }
.nav-links a.active { background-color: rgba(255,255,255,0.8); color: var(--text-main); font-weight: 600; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

.btn-glass {
    background: #2d3748; color: #fff;
    padding: 6px 6px 6px 20px; border-radius: 30px;
    text-decoration: none; font-size: 0.9rem; font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    white-space: nowrap; display: inline-flex; align-items: center; gap: 12px;
    transition: transform 0.2s ease;
}
.btn-glass:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,0.15); }

.admin-badge {
    background: #241f1f; color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem; font-weight: 400; text-transform: lowercase;
    padding: 2px 10px; border-radius: 20px; line-height: 1;
}

.hamburger { display: none; font-size: 1.8rem; color: var(--text-main); cursor: pointer; padding: 5px; }

.hero-donation {
    display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 80px;
    margin-bottom: 60px; padding: 50px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    border-radius: 50px; border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 60px rgba(0,0,0,0.02);
    position: relative;
}

.badge-donate {
    display: inline-block; background: #fff7ed; color: #ea580c;
    font-size: 0.75rem; font-weight: 700;
    padding: 6px 14px; border-radius: 20px; margin-bottom: 15px;
    border: 1px solid #ffedd5; letter-spacing: 0.5px;
    text-transform: uppercase; box-shadow: 0 2px 5px rgba(234, 88, 12, 0.1);
}

.hero-content h1 {
    font-size: 3rem; font-weight: 800; line-height: 1.25; margin-bottom: 24px;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    cursor: default; position: relative; z-index: 10;
}

.hero-content p {
    font-size: 1.15rem; color: #475569; margin-bottom: 35px; line-height: 1.7; max-width: 95%;
}
.benefit-box {
    background: rgba(255,255,255,0.6); border-radius: 20px; padding: 25px;
    margin-bottom: 30px; border: 1px solid rgba(255,255,255,0.5);
}

.feature-list { list-style: none; }
.feature-list li {
    display: flex; align-items: flex-start; gap: 15px;
    margin-bottom: 15px;
    font-size: 1rem; color: var(--text-light-content); font-weight: 300;
}
.feature-list li:last-child { margin-bottom: 0; }

.check-icon {
    color: #fff; background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    min-width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: 0.8rem; margin-top: 2px;
    box-shadow: 0 2px 5px rgba(16, 185, 129, 0.3);
}

.floating-icon-global {
    position: fixed; z-index: 9999;
    pointer-events: none; opacity: 0;
    animation: shootToTop linear forwards;
}

@keyframes shootToTop {
    0% { transform: translateY(0) scale(0.5) rotate(0deg); opacity: 0; }
    10% { opacity: 1; transform: translateY(-20px) scale(1) rotate(10deg); }
    100% { top: -100px; transform: scale(1.5) rotate(90deg); opacity: 0; }
}

.tax-highlight {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff7ed; color: #ea580c;
    padding: 8px 16px; border-radius: 12px;
    font-size: 0.9rem; font-weight: 400;
    border: 1px solid #ffedd5;
}

.bank-card-wrapper { position: relative; display: flex; justify-content: center; }
.bank-card-wrapper::before {
    content: ''; position: absolute; top: -10%; right: -10%; width: 80%; height: 80%; border-radius: 50%;
    background: linear-gradient(135deg, #a78bfa 0%, #4E2576 100%);
    filter: blur(60px); opacity: 0.2; z-index: 0; animation: pulse-glow 4s infinite alternate;
}
@keyframes pulse-glow { 0% { transform: scale(1); opacity: 0.2; } 100% { transform: scale(1.1); opacity: 0.3; } }

.bank-card {
    position: relative; z-index: 2; width: 100%; max-width: 380px;
    background: var(--card-gradient); backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 32px; padding: 35px 30px;
    box-shadow: 0 20px 50px -10px rgba(78, 37, 118, 0.15), 0 10px 20px -5px rgba(0,0,0,0.05), inset 0 0 0 1px rgba(255,255,255,0.6);
    text-align: center; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.bank-card:hover { transform: translateY(-8px); }
.card-top-logos {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid rgba(0,0,0,0.05);
}
.bank-brand { display: flex; align-items: center; gap: 10px; }
.scb-icon {
    width: 40px; height: 40px; border-radius: 10px; overflow: hidden;
    display: flex; align-items: center; justify-content: center; background: transparent; padding: 0;
}
.scb-icon img { width: 100%; height: 100%; object-fit: cover; }
.bank-text h4 { font-size: 0.95rem; color: #4E2576; font-weight: 700; line-height: 1.1; }
.bank-text span { font-size: 0.7rem; color: #94a3b8; font-weight: 500; }

.qr-area {
    position: relative; background: #fff; padding: 15px; border-radius: 24px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.06); display: inline-block; margin-bottom: 25px;
}
.qr-img { width: 170px; height: 170px; display: block; mix-blend-mode: multiply; }
.scan-frame { position: absolute; top: 10px; left: 10px; right: 10px; bottom: 10px; pointer-events: none; }
.scan-frame::before, .scan-frame::after, .scan-frame span::before, .scan-frame span::after {
    content: ''; position: absolute; width: 20px; height: 20px;
    border-color: #4E2576; border-style: solid; border-width: 0; opacity: 0.8; transition: 0.3s;
}
.scan-frame::before { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 12px; }
.scan-frame::after { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 12px; }
.scan-frame span::before { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 12px; }
.scan-frame span::after { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 12px; }
.bank-card:hover .scan-frame::before, .bank-card:hover .scan-frame::after, .bank-card:hover .scan-frame span::before, .bank-card:hover .scan-frame span::after { width: 100%; height: 100%; border-radius: 18px; opacity: 0.1; }
.scan-label {
    position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%);
    background: #4E2576; color: #fff; font-size: 0.7rem; font-weight: 700;
    padding: 4px 12px; border-radius: 20px; box-shadow: 0 4px 10px rgba(78, 37, 118, 0.3); white-space: nowrap;
}
.acc-details { text-align: left; }
.acc-label { font-size: 0.85rem; color: #64748b; margin-bottom: 6px; font-weight: 500; display: block; }
.copy-box {
    background: #f8fafc; border: 1px solid #e2e8f0; padding: 10px 14px; border-radius: 16px;
    display: flex; justify-content: space-between; align-items: center; transition: 0.3s;
}
.copy-box:hover { border-color: #cbd5e1; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.acc-number { font-family: 'Noto Sans Thai', sans-serif; font-size: 1.35rem; font-weight: 700; color: #1e293b; letter-spacing: 0.5px; }
.btn-copy-icon {
    width: 32px; height: 32px; border-radius: 10px; border: none; background: #e0e7ff; color: #4f46e5;
    cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: all 0.2s;
}
.btn-copy-icon:hover { background: #4f46e5; color: white; }
.btn-copy-icon:active { transform: scale(0.9); }
.tooltip { position: relative; }
.tooltip::after {
    content: "คัดลอกแล้ว!"; position: absolute; top: -40px; right: -10px;
    background: #1e293b; color: #fff; padding: 6px 12px; font-size: 0.75rem; border-radius: 8px;
    opacity: 0; transform: translateY(10px); transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none; white-space: nowrap;
}
.tooltip.show::after { opacity: 1; transform: translateY(0); }
.main-footer { margin-top: auto; text-align: center; color: #94a3b8; font-size: 0.85rem; font-weight: 400; padding-top: 20px; }

@media (max-width: 1366px) {
    .main-container { padding: 10px 30px 40px; }
    .hamburger { display: block; }
    .nav-menu-group {
        position: absolute; top: 70px; left: 0; width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        flex-direction: column; align-items: center; gap: 15px; padding: 30px;
        border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        border: 1px solid rgba(255,255,255,0.8);
        opacity: 0; transform: translateY(-20px); pointer-events: none;
        transition: all 0.3s ease; z-index: 99;
    }
    .nav-menu-group.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
    .nav-links { flex-direction: column; width: 100%; text-align: center; gap: 10px; }
    .nav-links a { display: block; width: 100%; }
    .btn-glass { width: 100%; justify-content: center; }
    .hero-donation { gap: 30px; padding: 40px 30px; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1rem; }
    .bank-card { transform: scale(0.95); }
}

@media (max-width: 768px) {
    .hero-donation { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .main-container { padding: 10px 20px 30px; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { margin: 0 auto 30px; }
    .benefit-box { display: inline-block; text-align: left; }
    .bank-card { margin: 0 auto; transform: scale(1); }
    .card-top-logos { justify-content: center; gap: 20px; }
    .acc-number { font-size: 1.1rem; }
}
