/* --- Base Theme Styles --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #0f172a; color: #f8fafc; margin: 0; padding: 0;
    display: flex; justify-content: center; align-items: flex-start; min-height: 100vh;
}

.container { max-width: 500px; width: 100%; padding: 20px; box-sizing: border-box; }

@media (min-width: 768px) {
    .container {
        max-width: 600px; padding: 40px; background: #1e293b;
        box-shadow: 0 20px 40px rgba(0,0,0,0.4); border-radius: 20px;
        margin-top: 40px; margin-bottom: 40px; border: 1px solid #334155;
    }
}

/* --- TIGHTENED HEADER LOGO (Animation Removed) --- */
header { text-align: center; margin-bottom: 12px; margin-top: 0px; }
.logo-container { margin-bottom: 2px; }
.glocore-logo { width: 100%; max-width: 85px; height: auto; }
.subtitle { color: #94a3b8; font-size: 0.95rem; line-height: 1.4; margin-top: 0; }

/* --- SWIPABLE NOTICE SLIDER --- */
.notice-wrapper { position: relative; margin-bottom: 15px; }
.notice-slider {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; -ms-overflow-style: none; gap: 12px; padding-bottom: 5px;
}
.notice-slider::-webkit-scrollbar { display: none; }
.notice-item {
    flex: 0 0 90%; scroll-snap-align: center; background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid #10b981; color: #e2e8f0; padding: 14px 16px;
    border-radius: 8px; font-size: 0.85rem; box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); backdrop-filter: blur(5px);
}
.notice-item.warning { background: rgba(245, 158, 11, 0.1); border-left: 4px solid #f59e0b; }
.swipe-hint { text-align: right; font-size: 0.7rem; color: #64748b; margin-top: 5px; padding-right: 5px; }

/* --- Content Sections --- */
.section { margin-bottom: 30px; }
h2 {
    font-size: 1.4rem; font-weight: 700; background: linear-gradient(to right, #f8fafc, #94a3b8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    border-bottom: 1px solid #334155; padding-bottom: 12px; margin-bottom: 20px; letter-spacing: -0.5px;
}
.highlight { background: #1e2937; padding: 15px; border-radius: 8px; border-left: 4px solid #3b82f6; font-size: 0.95rem; line-height: 1.5; color: #cbd5e1; }
.operator { background: #1e2937; padding: 18px; border-radius: 10px; margin-bottom: 15px; cursor: pointer; border: 1px solid #334155; transition: all 0.2s ease; }
.operator:hover { border-color: #3b82f6; transform: translateY(-2px); }
.operator h3 { margin: 0 0 5px 0; font-size: 1.1rem; }
.operator p { margin: 0; color: #94a3b8; font-size: 0.85rem; }

/* --- Modals --- */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); align-items: center; justify-content: center; z-index: 1000; }
.modal-content { background: #0f172a; padding: 25px; border-radius: 12px; width: 90%; max-width: 400px; position: relative; border: 1px solid #334155; box-sizing: border-box; }
.close-btn { position: absolute; top: 15px; right: 15px; font-size: 24px; cursor: pointer; color: #94a3b8; }

/* --- Forms & Inputs --- */
.input-group { margin-bottom: 18px; text-align: left; }
.input-group label { display: block; margin-bottom: 8px; color: #cbd5e1; font-size: 0.9rem; }
.input-group input, .input-group select { width: 100%; padding: 12px; border-radius: 6px; border: 1px solid #334155; background: #1e2937; color: white; box-sizing: border-box; font-size: 1rem; }
.pay-btn { width: 100%; padding: 14px; background: #3b82f6; color: white; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; font-size: 1rem; transition: background 0.2s; }
.pay-btn:disabled { background: #475569; cursor: not-allowed; }

.option-btn { width: 100%; padding: 16px; margin-bottom: 12px; background: #1e2937; color: white; border: 1px solid #334155; border-radius: 8px; font-weight: bold; cursor: pointer; font-size: 1rem; transition: all 0.2s; }
.option-btn:hover { border-color: #3b82f6; background: #0f172a; }
.option-btn.vip { border-color: #f59e0b; color: #f59e0b; background: rgba(245, 158, 11, 0.05); }
.option-btn.vip:hover { background: rgba(245, 158, 11, 0.15); }

/* --- Receipt Styles --- */
.success-icon { width: 65px; height: 65px; background: rgba(16, 185, 129, 0.1); color: #10b981; font-size: 35px; font-weight: bold; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin: 0 auto 15px auto; border: 2px solid #10b981; }
.receipt-box { background: #1e2937; padding: 20px; border-radius: 12px; text-align: left; margin-bottom: 20px; border: 1px dashed #475569; }
.receipt-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.95rem; }
.receipt-row span { color: #94a3b8; }
.receipt-row strong { color: white; }

/* --- Support Widget --- */
.support-container { position: fixed; bottom: 24px; right: 24px; z-index: 1000; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.support-tooltip {
    background: rgba(30, 41, 59, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    color: #e2e8f0; padding: 8px 14px; border-radius: 10px 10px 2px 10px; font-size: 0.8rem; font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 0; transform: translateY(12px) scale(0.96); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none; /* CRITICAL: Lets clicks pass through when invisible! */
    display: flex; align-items: center; gap: 8px; letter-spacing: 0.01em;
}
.support-tooltip.show { opacity: 1; transform: translateY(0) scale(1); }
.support-tooltip svg { opacity: 0.6; transition: transform 0.3s ease; }
.support-tooltip.show svg { transform: translateX(2px); }

.floating-support {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%); color: #f1f5f9; width: 40px; height: 40px;
    border-radius: 12px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.04);
    text-decoration: none; position: relative; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); border: 1px solid rgba(255, 255, 255, 0.06);
}
.floating-support::before { content: ''; position: absolute; inset: -4px; border-radius: 16px; background: inherit; opacity: 0.4; filter: blur(8px); z-index: -1; transition: opacity 0.3s ease; }
.floating-support::after { content: ''; position: absolute; inset: -1px; border-radius: 13px; padding: 1px; background: linear-gradient(135deg, rgba(148, 163, 184, 0.3), transparent 60%); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: 0.6; transition: opacity 0.3s ease; }
.floating-support:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08); background: linear-gradient(135deg, #475569 0%, #334155 100%); }
.floating-support:hover::before { opacity: 0.6; }
.floating-support:hover::after { opacity: 1; }
.floating-support:active { transform: translateY(0) scale(0.98); transition-duration: 0.1s; }
@keyframes supportPulse { 0% { box-shadow: 0 0 0 0 rgba(148, 163, 184, 0.2); } 70% { box-shadow: 0 0 0 8px rgba(148, 163, 184, 0); } 100% { box-shadow: 0 0 0 0 rgba(148, 163, 184, 0); } }
.floating-support.pulse { animation: supportPulse 2s cubic-bezier(0.4, 0, 0.6, 1) 2; }
             
