
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Amazon Ember', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; outline: none; }
img { max-width: 100%; height: auto; }

.page { display: flex; flex-direction: column; min-height: 100vh; align-items: center; }
.bg-gray { background: #EAEDED; }
.bg-white { background: #fff; }

/* Header */
.header { width: 100%; background: #131921; padding: 4px 0; display: flex; justify-content: center; align-items: center; }
.header img { height: 56px; width: auto; }

/* SubHeader */
.subheader { width: 100%; background: #fff; border-bottom: 1px solid #DDD; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.subheader img { height: 40px; width: auto; }
.balance-box { background: #232F3E; padding: 4px 12px; border-radius: 6px; display: flex; flex-direction: column; align-items: center; }
.balance-label { font-size: 9px; color: #fff; font-weight: 700; opacity: 0.9; text-transform: uppercase; letter-spacing: 0.05em; line-height: 1; margin-bottom: 2px; }
.balance-value { font-size: 18px; font-weight: 900; color: #fff; line-height: 1; }
.balance-value.animating { color: #4ade80; }

/* Footer */
.footer { width: 100%; background: #fff; border-top: 1px solid #DDD; padding: 32px 0; margin-top: auto; text-align: center; font-size: 12px; color: #565959; }
.footer-links { display: flex; gap: 16px; justify-content: center; margin-bottom: 16px; }

/* Main content */
.main { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; padding: 0 16px; }
.card { max-width: 384px; width: 100%; margin: 40px auto; background: #fff; border-radius: 16px; padding: 24px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border: 1px solid #DDD; }
.card-shadow-xl { box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.product-img { width: 100%; aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; margin-bottom: 24px; border: 1px solid #E0E0E0; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.card h2 { font-size: 20px; font-weight: 700; color: #0F1111; margin-bottom: 32px; }
.btn-row { display: flex; gap: 16px; }
.btn-orange { flex: 1; background: #FF9900; color: #000; font-weight: 700; padding: 12px; border-radius: 8px; font-size: 18px; transition: background 0.2s; }
.btn-orange:hover { background: #e88a00; }
.btn-orange-full { width: 100%; background: #FF9900; color: #000; font-weight: 800; padding: 16px; border-radius: 12px; font-size: 20px; transition: all 0.2s; border-bottom: 4px solid #cc7a00; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.btn-orange-full:hover { background: #e88a00; transform: scale(1.02); }
.btn-orange-full:active { transform: scale(0.98); }
.btn-white-full { width: 100%; background: #FF9900; color: #fff; font-weight: 700; padding: 14px; border-radius: 8px; font-size: 18px; display: flex; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border: 1px solid #E88B00; transition: all 0.2s; }
.btn-white-full:hover { background: #FFB700; }

/* Index page */
.badge { display: inline-flex; align-items: center; gap: 4px; background: #FFF9EE; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #FF9900; text-transform: uppercase; letter-spacing: 0.05em; border: 1px solid rgba(255,153,0,0.2); }
.badge svg { width: 12px; height: 12px; }
.index-card { max-width: 384px; width: 100%; background: #fff; border-radius: 8px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border: 1px solid #DDD; }
.index-card h2 { font-size: 24px; font-weight: 700; color: #111; line-height: 1.2; text-align: left; margin-bottom: 16px; }
.index-card p { font-size: 14px; font-weight: 500; color: #111; text-align: left; margin-bottom: 16px; }
.arrow-right { display: inline-flex; width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid #fff; }

/* Congrats */
.congrats-check { width: 80px; height: 80px; margin: 0 auto 16px; }
.congrats-title { font-size: 24px; font-weight: 700; color: #0F1111; margin-bottom: 8px; }
.congrats-sub { font-size: 16px; font-weight: 500; color: #0F1111; margin-bottom: 16px; }
.congrats-balance-box { background: #232F3E; border-radius: 12px; padding: 16px; margin-bottom: 16px; color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.congrats-balance-label { font-size: 12px; font-weight: 700; opacity: 0.9; margin-bottom: 4px; }
.congrats-balance-amount { font-size: 30px; font-weight: 900; }
.congrats-text { font-size: 16px; font-weight: 500; color: #0F1111; margin-bottom: 16px; line-height: 1.6; }

/* VSL */
.vsl-title { font-size: 20px; font-weight: 700; color: #0F1111; line-height: 1.3; margin-bottom: 8px; }
.vsl-title img { width: 24px; height: 24px; display: inline-block; vertical-align: middle; margin-left: 4px; }
.vsl-sub { font-size: 14px; color: #666; margin-bottom: 16px; }
.sound-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: #000; margin-bottom: 16px; }
.sound-note svg { width: 16px; height: 16px; }

/* Comments */
.comments-box { border-radius: 16px; background: #fff; padding: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border: 1px solid #DDD; margin-top: 24px; }
@media(min-width:768px) { .comments-box { padding: 16px; } }
.comments-title { font-size: 14px; font-weight: 700; color: #1c1e21; margin-bottom: 16px; }
.comment { display: flex; gap: 12px; margin-bottom: 16px; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; background: #e5e7eb; flex-shrink: 0; overflow: hidden; }
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-name { font-size: 14px; font-weight: 700; color: #385898; }
.comment-bubble { background: #f0f2f5; border-radius: 16px; padding: 12px; margin-top: 4px; }
.comment-text { font-size: 14px; color: #1c1e21; line-height: 1.4; }
.comment-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; padding: 0 4px; }
.comment-btns { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 500; color: #65676b; }
.comment-btns button { background: none; border: none; font-size: 10px; font-weight: 500; color: #65676b; cursor: pointer; }
.comment-btns button:hover { text-decoration: underline; }
.comment-btns button.liked { color: #1877F2; font-weight: 700; }
.comment-likes { display: flex; align-items: center; gap: 4px; }
.comment-likes-icons { display: flex; }
.comment-likes-icons span { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-left: -4px; }
.comment-likes-icons span:first-child { margin-left: 0; }
.like-blue { background: #1877F2; }
.like-red { background: #E4405F; }
.comment-likes-icons svg { width: 10px; height: 10px; fill: #fff; }
.like-count { font-size: 10px; color: #365899; font-weight: 600; }
.load-more-btn { width: 100%; margin-top: 16px; background: #1877f2; color: #fff; font-weight: 700; font-size: 14px; padding: 12px; border-radius: 8px; transition: background 0.2s; }
.load-more-btn:hover { background: #166fe5; }
.hidden { display: none; }

/* Popup */
.popup-overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.4); }
.popup-card { width: 90%; max-width: 384px; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); overflow: hidden; animation: zoomIn 0.3s ease-out; }
@keyframes zoomIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.popup-content { padding: 32px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.popup-icon { width: 96px; height: 96px; border-radius: 50%; border: 4px solid #E0E0E0; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.popup-icon svg { width: 64px; height: 64px; color: #22c55e; }
.popup-title { font-size: 30px; font-weight: 700; color: #0F1111; margin-bottom: 8px; }
.popup-amount { font-size: 20px; font-weight: 500; color: #232F3E; }
.popup-amount span { color: #16a34a; font-weight: 700; font-size: 30px; }
.popup-bar { width: 100%; height: 6px; background: #E0E0E0; }
.popup-bar-fill { height: 100%; background: #FF9900; transition: width 0.03s linear; }
