:root {
    --primary-dark: #0A1628;
    --primary-blue: #1E3A5F;
    --accent-green: #00FF88;
    --accent-orange: #FF6B35;
    --accent-red: #FF4757;
    --text-white: #FFFFFF;
    --text-gray: #8E99A4;
    --bg-dark: #0D1B2A;
    --card-bg: hsl(213, 35%, 16%);
    --border-color: #2D3E50;
    --primary-bg: var(--bg-dark);
    --accent-color: var(--accent-green);
    --safe-area-top: env(safe-area-inset-top, 30px);
    --safe-area-bottom: env(safe-area-inset-bottom, 20px);
    --header-height: calc(60px + var(--safe-area-top));
    --tabbar-height: calc(60px + var(--safe-area-bottom));
}
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; max-width: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg-dark); color: var(--text-white); min-height: 100vh; padding-bottom: 70px; }
.page { display: none; padding: 20px; padding-top: var(--safe-area-top); padding-bottom: var(--tabbar-height); min-height: 100vh; overflow-x: hidden; max-width: 100%; }
.page.active { display: block; }
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; margin-top: var(--safe-area-top); padding-top: 10px; }
.logo { margin-top: 10px; font-size: 24px; font-weight: 700; background: linear-gradient(135deg, var(--accent-green), #00CC6A); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.card { background: var(--card-bg); border-radius: 16px; padding: 20px; margin-bottom: 16px; border: 1px solid var(--border-color); transition: transform 0.2s; max-width: 100%; overflow: hidden; }
.card:hover { transform: scale(1.02); }
.card:active { transform: scale(0.98); }
.calculator-btn { display: flex; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(135deg, var(--accent-green), #00CC6A); color: var(--primary-dark); padding: 20px; border-radius: 16px; font-size: 18px; font-weight: 600; cursor: pointer; border: none; width: 100%; transition: transform 0.2s, box-shadow 0.2s; }
.calculator-btn:active { transform: scale(0.98); }
.score-ring { width: 160px; height: 160px; margin: 0 auto 20px; position: relative; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring circle { fill: none; stroke-width: 12; }
.score-ring .bg { stroke: var(--border-color); }
.score-ring .progress { stroke: var(--accent-green); stroke-linecap: round; transition: stroke-dashoffset 0.5s ease; }
.score-ring .score-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.score-ring .score-value { font-size: 36px; font-weight: 700; }
.score-ring .score-label { font-size: 12px; color: var(--text-gray); }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; color: var(--text-gray); margin-bottom: 8px; }
.form-select, .form-input { width: 100%; padding: 14px 16px; background: var(--primary-dark); border: 1px solid var(--border-color); border-radius: 12px; color: var(--text-white); font-size: 16px; appearance: none; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238E99A4' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.slider-container { padding: 10px 0; }
.slider-value { text-align: center; font-size: 32px; font-weight: 700; color: var(--accent-green); margin-bottom: 10px; }
.slider-value.warning { color: var(--accent-orange); }
.slider-value.danger { color: var(--accent-red); }
.slider { width: 100%; height: 8px; -webkit-appearance: none; background: var(--border-color); border-radius: 4px; outline: none; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; background: var(--accent-green); border-radius: 50%; cursor: pointer; }
.result-card { text-align: center; padding: 24px 16px; }
.result-bac { font-size: 36px; font-weight: 700; margin-bottom: 8px; word-break: break-word; line-height: 1.2; }
.result-bac.safe { color: var(--accent-green); }
.result-bac.warning { color: var(--accent-orange); }
.result-bac.danger { color: var(--accent-red); }
.result-recommendation { color: var(--text-gray); line-height: 1.6; margin: 16px 0; font-size: 14px; }
.result-time { display: flex; justify-content: space-around; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-color); }
.result-time-item { text-align: center; }
.result-time-item .label { font-size: 12px; color: var(--text-gray); margin-bottom: 4px; }
.result-time-item .value { font-size: 16px; font-weight: 600; }
.tab-bar { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: var(--card-bg); border-top: 1px solid var(--border-color); padding: 8px 0; padding-bottom: var(--safe-area-bottom); z-index: 100; max-width: 100vw; overflow: hidden; }
.tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; color: var(--text-gray); text-decoration: none; cursor: pointer; transition: color 0.3s ease, transform 0.2s ease; min-width: 0; }
.tab-item.active { color: var(--accent-green); transform: scale(1.05); }
.tab-item svg { width: 24px; height: 24px; transition: stroke 0.3s ease, transform 0.3s ease; }
.tab-item.active svg { stroke: var(--accent-green); transform: scale(1.1); }
.tab-item span { font-size: 11px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 20px; }
.calendar-header { text-align: center; font-size: 12px; color: var(--text-gray); padding: 8px 0; }
.calendar-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 14px; background: var(--primary-dark); }
.calendar-day.has-drink { background: var(--accent-orange); color: var(--primary-dark); }
.calendar-day.today { border: 2px solid var(--accent-green); }
.week-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat-item { background: var(--primary-dark); padding: 16px; border-radius: 12px; text-align: center; }
.stat-value { font-size: 24px; font-weight: 700; color: var(--accent-green); }
.stat-label { font-size: 12px; color: var(--text-gray); margin-top: 4px; }
.knowledge-list { display: flex; flex-direction: column; gap: 16px; }

.masonry-grid { column-count: 2; column-gap: 12px; margin-top: 16px; }
.masonry-item { break-inside: avoid; margin-bottom: 12px; background: var(--card-bg); border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); cursor: pointer; }
.masonry-item .card-cover { width: 100%; display: block; }
.masonry-item .card-info { padding: 10px; }
.masonry-item .card-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; line-height: 1.3; }
.masonry-item .card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.masonry-item .card-type { font-size: 11px; color: var(--accent-green); }
.masonry-item .card-likes { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-gray); }
.card-likes.liked { color: #ff4757; }
.masonry-item .card-likes svg { width: 16px; height: 16px; }
.knowledge-card { background: var(--card-bg); border-radius: 16px; padding: 20px; border: 1px solid var(--border-color); }
.knowledge-card .type-tag { display: inline-block; padding: 4px 10px; background: var(--primary-dark); border-radius: 20px; font-size: 11px; color: var(--accent-green); margin-bottom: 12px; }
.knowledge-card h3 { font-size: 16px; margin-bottom: 8px; }
.knowledge-card p { font-size: 14px; color: var(--text-gray); line-height: 1.6; }
.profile-section { margin-bottom: 24px; }
.profile-section h3 { font-size: 14px; color: var(--text-gray); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.profile-item { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border-color); }
.profile-item:last-child { border-bottom: none; }
.profile-item .label { color: var(--text-gray); }
.profile-item .value { font-weight: 500; cursor: pointer; }
.modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.8); z-index: 200; align-items: center; justify-content: center; padding: 20px; overflow-x: hidden; }
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.8); z-index: 200; align-items: center; justify-content: center; padding: 20px; overflow-x: hidden; }
.modal.active { display: flex; }
.modal-content { background: var(--card-bg); border-radius: 20px; width: 100%; max-width: 400px; max-height: 90vh; overflow-y: auto; overflow-x: hidden; padding: 20px; box-sizing: border-box; margin-top: var(--safe-area-top); margin-bottom: var(--safe-area-bottom); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-title { font-size: 20px; font-weight: 600; }
.modal-close { background: none; border: none; color: var(--text-gray); font-size: 24px; cursor: pointer; padding: 4px; }
.toast { position: fixed; bottom: calc(100px + var(--safe-area-bottom)); left: 50%; transform: translateX(-50%); background: #4CAF50; color: white; padding: 12px 24px; border-radius: 8px; font-size: 14px; z-index: 10000; opacity: 0; transition: opacity 0.3s; }
.toast.show { opacity: 1; }
.toast.error { background: #f44336; }
.btn-primary { width: 100%; padding: 14px; background: var(--accent-green); color: var(--primary-dark); border: none; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; transition: transform 0.2s; box-sizing: border-box; }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary { width: 100%; padding: 14px; background: transparent; color: var(--text-white); border: 1px solid var(--border-color); border-radius: 12px; font-size: 16px; font-weight: 500; cursor: pointer; margin-top: 12px; box-sizing: border-box; }
.history-list { margin-top: 20px; }
.history-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border-color); transition: transform 0.3s ease; background: var(--primary-bg); }
.history-item:last-child { border-bottom: none; }
.history-item-wrapper { position: relative; overflow: hidden; display: flex; justify-content: flex-end; }
.history-item-actions { position: absolute; right: 0; top: 0; bottom: 0; display: flex; width: 120px; z-index: 1; transform: translateX(100%); transition: transform 0.3s ease; }
.history-item-wrapper.slided .history-item-actions { transform: translateX(0); }
.history-item-wrapper.slided .history-item { transform: translateX(-120px); }
.history-item { position: relative; z-index: 2; flex: 1; transition: transform 0.3s ease; }
.action-edit, .action-delete { border: none; padding: 0 20px; font-size: 14px; font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: center; height: 100%; }
.action-edit { background: #4CAF50; color: white; }
.action-delete { background: #f44336; color: white; }
.history-drink { display: flex; align-items: center; gap: 12px; }
.history-drink-icon { width: 40px; height: 40px; background: var(--primary-dark); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.history-time { font-size: 12px; color: var(--text-gray); }
.history-amount { font-weight: 600; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-gray); }
.empty-state svg { width: 64px; height: 64px; margin-bottom: 16px; opacity: 0.5; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.page.active { animation: fadeIn 0.3s ease; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; width: 100%; max-width: 100%; }
.product-card { background: var(--card-bg); border-radius: 12px; padding: 12px; border: 1px solid var(--border-color); display: flex; flex-direction: column; cursor: pointer; min-width: 0; overflow: hidden; }
.product-image { width: 100%; aspect-ratio: 1 / 1; background: var(--primary-dark); border-radius: 8px; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; color: var(--text-gray); font-size: 12px; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-points { font-size: 12px; color: var(--accent-green); font-weight: 600; margin-bottom: 4px; word-break: break-word; }
.product-stock { font-size: 11px; color: var(--text-gray); margin-bottom: 8px; }
.product-redeem-btn { width: 100%; padding: 8px; background: var(--accent-green); color: var(--primary-dark); border: none; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: transform 0.2s, opacity 0.2s; white-space: nowrap; }
.product-redeem-btn:active { transform: scale(0.98); }
.product-redeem-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.product-cart-btn, .product-share-btn { flex-shrink: 0; }
.points-header { background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark)); border-radius: 16px; padding: 20px; margin-bottom: 16px; border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; }
.points-header-label { font-size: 12px; color: var(--text-gray); margin-bottom: 4px; }
.points-header-value { font-size: 32px; font-weight: 700; color: var(--accent-green); }
.points-header-unit { font-size: 14px; color: var(--text-gray); font-weight: 400; margin-left: 4px; }
.order-item { background: var(--primary-dark); border-radius: 12px; padding: 16px; margin-bottom: 12px; border: 1px solid var(--border-color); max-width: 100%; overflow: hidden; }
.order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.order-body { display: flex; }
.order-product-image { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; margin-right: 12px; background: var(--card-bg); flex-shrink: 0; }
.order-product-image-placeholder { width: 60px; height: 60px; border-radius: 8px; margin-right: 12px; background: var(--bg-secondary); border: 1px dashed var(--border-color); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--text-gray); font-size: 22px; }
.order-detail-image-placeholder { width: 60px; height: 60px; border-radius: 8px; background: var(--bg-secondary); border: 1px dashed var(--border-color); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--text-gray); font-size: 22px; }
.order-product-info { flex: 1; min-width: 0; overflow: hidden; }
.order-product-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-product-points { font-size: 12px; color: var(--accent-green); margin-bottom: 4px; }
.order-product-type { font-size: 11px; color: var(--text-gray); }
.order-footer { border-top: 1px dashed var(--border-color); padding-top: 12px; margin-top: 12px; color: var(--text-gray); font-size: 12px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.badge-warning { background: #f59e0b20; color: #f59e0b; }
.badge-info { background: #3b82f620; color: #3b82f6; }
.badge-success { background: #10b98120; color: #10b981; }
.badge-error { background: #ef444420; color: #ef4444; }

#product-detail-modal .modal-content { position: relative; }
.product-detail-header { position: sticky; top: 0; background: transparent; z-index: 10; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; }
.product-detail-back { background: rgba(0,0,0,0.5); border: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: white; font-size: 18px; }
.product-detail-carousel { width: 100%; aspect-ratio: 1 / 1; position: relative; background: var(--primary-dark); }
.product-detail-carousel .carousel-container { width: 100%; height: 100%; }
.product-detail-carousel .carousel-slide { width: 100%; height: 100%; flex-shrink: 0; scroll-snap-align: start; }
.product-detail-carousel .carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-counter { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,0.6); color: white; padding: 4px 10px; border-radius: 12px; font-size: 12px; }
.product-detail-info { padding: 16px; }
.product-detail-price { font-size: 24px; font-weight: 700; color: #ef4444; margin-bottom: 8px; }
.product-detail-price span { font-size: 14px; font-weight: 400; }
.product-detail-points { font-size: 24px; font-weight: 700; color: var(--accent-green); margin-bottom: 8px; }
.product-detail-title { font-size: 18px; font-weight: 600; margin-bottom: 12px; line-height: 1.4; }
.product-detail-meta { display: flex; gap: 12px; margin-bottom: 16px; }
.product-detail-meta .badge { font-size: 12px; }
.product-detail-desc { font-size: 14px; color: var(--text-gray); line-height: 1.6; margin-bottom: 20px; }
.product-detail-images { margin-top: 20px; }
.product-detail-images img { display: block; width: 100%; margin: 0; }
.product-detail-footer { position: fixed; bottom: 0; left: 0; right: 0; background: var(--card-bg); border-top: 1px solid var(--border-color); padding: 12px 16px; padding-bottom: calc(12px + var(--safe-area-bottom)); display: flex; justify-content: flex-end; align-items: center; gap: 16px; z-index: 100; }
.product-detail-cart-btn { width: 48px; height: 48px; border: 1px solid var(--border-color); border-radius: 12px; background: var(--primary-dark); color: var(--text-white); font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.product-detail-cart-btn:active { opacity: 0.7; }
.product-detail-btn { padding: 14px 32px; border: none; border-radius: 24px; font-size: 16px; font-weight: 600; cursor: pointer; flex: 1; }
.product-detail-btn.points { background: var(--accent-green); color: var(--primary-dark); }
.product-detail-btn.cash { background: #ef4444; color: white; }
.product-detail-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.carousel-container { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; width: 100%; position: relative; }
.carousel-container::-webkit-scrollbar { display: none; }
.carousel-slide { flex-shrink: 0; width: 100%; scroll-snap-align: start; }
.carousel-slide img { width: 100%; height: auto; object-fit: cover; display: block; max-height: 500px; }
.image-counter { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.6); color: white; padding: 4px 12px; border-radius: 12px; font-size: 12px; z-index: 10; pointer-events: none; backdrop-filter: blur(4px); }
.carousel-wrapper { position: relative; }
.knowledge-detail-card { background: var(--card-bg); border-radius: 16px; overflow: hidden; margin: 0 16px 16px 16px; border: 1px solid var(--border-color); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.image-preview-modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.95); z-index: 1000; align-items: center; justify-content: center; }
.image-preview-modal.active { display: flex; }
.image-preview-modal img { max-width: 100%; max-height: 100%; object-fit: contain; }
.image-preview-close { position: absolute; top: 100px; right: 20px; background: none; border: none; color: white; font-size: 32px; cursor: pointer; z-index: 1001; padding: 10px; }
.detail-section { background: var(--primary-dark); border-radius: 12px; padding: 16px; }
.detail-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.detail-row:last-child { margin-bottom: 0; }
.detail-label { color: var(--text-gray); font-size: 14px; min-width: 80px; }
.detail-value { color: var(--text-primary); font-size: 14px; text-align: right; word-break: break-all; flex: 1; margin-left: 12px; }

.cart-item { display: flex; align-items: stretch; padding: 12px; margin-bottom: 12px; background: var(--card-bg); border-radius: 8px; border: 1px solid var(--border-color); position: relative; max-width: 100%; overflow: hidden; }
.cart-item-left { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-right: 12px; }
.cart-item-right { display: flex; flex-direction: column; justify-content: space-between; flex-grow: 1; min-width: 0; padding-right: 30px; overflow: hidden; }
.cart-item-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.cart-item-checkbox { width: 20px; height: 20px; accent-color: var(--accent-green); flex-shrink: 0; cursor: pointer; }
.cart-item-image { width: 70px; height: 70px; border-radius: 8px; object-fit: cover; background: var(--primary-dark); flex-shrink: 0; }
.cart-item-name { font-size: 14px; font-weight: 500; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; line-height: 1.4; word-break: break-word; }
.cart-item-price { font-size: 14px; color: var(--accent-green); font-weight: 600; }
.cart-item-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.cart-item-qty { width: 40px; height: 32px; text-align: center; background: #f5f5f5; border: none; border-radius: 4px; color: #333; font-size: 14px; }
.cart-item-btn { min-width: 32px; min-height: 32px; padding: 0 8px; background: #f5f5f5; border: none; border-radius: 4px; color: #333; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.cart-item-delete { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; background: none; border: none; color: var(--accent-red); cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }

#user-avatar-container { flex-shrink: 0; }
#user-avatar-img { transition: opacity 0.3s ease; }
#user-avatar-fallback { transition: opacity 0.3s ease; }

@media (max-width: 480px) {
    #user-avatar-container {
        width: 48px !important;
        height: 48px !important;
    }
    #user-avatar-fallback {
        font-size: 20px !important;
    }
}

.order-shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 100%;
}

.order-shop-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 4px;
    background: var(--primary-dark);
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    min-width: 0;
    overflow: hidden;
}

.order-shop-item:active {
    transform: scale(0.95);
    background: var(--border-color);
}

.order-shop-icon {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-shop-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent-green);
}

.order-shop-label {
    font-size: 11px;
    color: var(--text-white);
    text-align: center;
    white-space: nowrap;
}

.cart-badge-icon {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--accent-red);
    color: white;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 活动领取相关样式 */
.activity-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-green), #00CC6A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 24px;
}

.activity-icon svg {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.activity-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 12px;
    text-align: center;
}

.activity-desc {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.5;
}

.status-message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.status-message.error {
    background-color: rgba(255, 107, 107, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.status-message.success {
    background-color: rgba(0, 204, 106, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(0, 204, 106, 0.3);
}

.claim-btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.claim-btn.primary {
    background-color: var(--accent-green);
    color: var(--primary-dark);
}

.claim-btn.primary:hover {
    background-color: #00CC6A;
}

.claim-btn.secondary {
    background-color: var(--primary-dark);
    color: var(--text-white);
    border: 1px solid var(--border-color);
}

.claim-btn.secondary:hover {
    background-color: var(--border-color);
}

.claim-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-group {
    display: flex;
    gap: 12px;
}

.btn-group .claim-btn {
    flex: 1;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary-dark);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
