:root {
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --primary-light: #ff8c5f;
    --secondary: #f7931e;
    --accent: #ff416c;
    --bg-gradient: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --bg-gradient-2: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --text-primary: #2d2d2d;
    --text-secondary: #666;
    --text-light: #999;
    --text-white: #fff;
    --bg-page: #f5f6fa;
    --card-shadow: 0 8px 32px rgba(255, 107, 53, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --nav-height: 60px;
    --header-height: 50px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-size: 14px; line-height: 1.6; color: var(--text-primary);
    background: var(--bg-page); min-height: 100vh; overflow-x: hidden;
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom));
}
a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; transition: all 0.2s ease; }
input, textarea, select { font-family: inherit; font-size: inherit; outline: none; border: none; }
ul, ol { list-style: none; }

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 107, 53, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 107, 53, 0.5); }

.app-container { min-height: 100vh; padding-bottom: var(--nav-height); }

.page-header {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    height: var(--header-height); padding: 0 16px;
    background: var(--bg-gradient); color: var(--text-white);
    box-shadow: 0 2px 12px rgba(255, 107, 53, 0.2);
}
.page-header .back-btn {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-white); font-size: 22px; background: rgba(255, 255, 255, 0.2);
}
.page-header .back-btn:hover { background: rgba(255, 255, 255, 0.3); }
.page-header .page-title { font-size: 17px; font-weight: 600; flex: 1; text-align: center; margin: 0; }
.page-header .header-right { width: 36px; }

.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    height: calc(var(--nav-height) + var(--safe-bottom)); padding-bottom: var(--safe-bottom);
    background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex; align-items: center; justify-content: space-around;
    z-index: 999; box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.05);
}
.bottom-nav .nav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    flex: 1; height: 100%; color: var(--text-light); font-size: 11px; gap: 2px;
    position: relative; transition: color 0.2s ease;
}
.bottom-nav .nav-item i { font-size: 22px; }
.bottom-nav .nav-item.active { color: var(--primary); }
.bottom-nav .nav-item.nav-center { position: relative; }
.bottom-nav .nav-item.nav-center .nav-center-icon {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--bg-gradient); display: flex; align-items: center; justify-content: center;
    color: var(--text-white); font-size: 22px; margin-top: -24px;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4); transition: transform 0.2s ease;
}
.bottom-nav .nav-item.nav-center.active .nav-center-icon { transform: scale(1.05); box-shadow: 0 6px 24px rgba(255, 107, 53, 0.5); }
.bottom-nav .nav-item:active { transform: scale(0.95); }

.home-header {
    position: relative; background: var(--bg-gradient);
    padding: 60px 20px 80px; color: var(--text-white); overflow: hidden;
}
.home-header::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 300px; height: 300px; background: rgba(255, 255, 255, 0.1); border-radius: 50%;
}
.home-header::after {
    content: ''; position: absolute; bottom: -30%; left: -10%;
    width: 200px; height: 200px; background: rgba(255, 255, 255, 0.08); border-radius: 50%;
}
.home-header .header-content { position: relative; z-index: 1; }
.home-header .logo-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.home-header .logo { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.home-header .logo-icon { font-size: 28px; }
.home-header .header-actions { display: flex; gap: 12px; }
.home-header .header-actions a {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.2); display: flex; align-items: center; justify-content: center;
    color: var(--text-white);
}
.home-header .search-bar {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, 0.95); border-radius: var(--radius-lg);
    padding: 12px 16px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.home-header .search-bar i { color: var(--text-light); font-size: 16px; }
.home-header .search-bar input { flex: 1; border: none; background: transparent; font-size: 14px; color: var(--text-primary); }
.home-header .search-bar input::placeholder { color: var(--text-light); }

.banner-section { margin-top: -40px; padding: 0 16px; position: relative; z-index: 2; }
.banner-carousel { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--card-shadow); }
.banner-track { display: flex; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.banner-slide {
    min-width: 100%; height: 160px; position: relative;
    display: flex; align-items: center; justify-content: center;
    padding: 24px; color: var(--text-white);
}
.banner-slide .banner-content { text-align: center; z-index: 1; }
.banner-slide h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); }
.banner-slide p { font-size: 14px; opacity: 0.95; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.banner-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.banner-dots .dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); transition: all 0.3s ease; }
.banner-dots .dot.active { width: 20px; border-radius: 3px; background: var(--text-white); }

.announcement-bar {
    display: flex; align-items: center; gap: 8px;
    margin: 16px 16px 0; padding: 10px 14px;
    background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-md); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04); overflow: hidden;
}
.announcement-bar .announcement-icon { color: var(--primary); font-size: 16px; flex-shrink: 0; }
.announcement-bar .announcement-content { flex: 1; overflow: hidden; position: relative; height: 20px; }
.announcement-bar .announcement-scroll { position: absolute; width: 100%; animation: scrollUp 12s infinite; }
@keyframes scrollUp {
    0%, 25% { transform: translateY(0); }
    33%, 58% { transform: translateY(-20px); }
    66%, 91% { transform: translateY(-40px); }
    100% { transform: translateY(-60px); }
}
.announcement-bar .announcement-item { height: 20px; line-height: 20px; font-size: 12px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.announcement-bar .announcement-tag { font-size: 10px; padding: 1px 6px; border-radius: 4px; margin-right: 6px; color: var(--text-white); }
.announcement-bar .announcement-tag.info { background: var(--primary); }
.announcement-bar .announcement-tag.promo { background: var(--secondary); }
.announcement-bar .announcement-tag.warning { background: var(--accent); }

.quick-entries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 20px 16px; }
.quick-entry-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 16px 8px; background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-md); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease; cursor: pointer;
}
.quick-entry-item:active { transform: scale(0.95); }
.quick-entry-icon {
    width: 48px; height: 48px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: var(--text-white); transition: transform 0.3s ease;
}
.quick-entry-item:nth-child(1) .quick-entry-icon { background: linear-gradient(135deg, #ff6b35, #ff8c5f); }
.quick-entry-item:nth-child(2) .quick-entry-icon { background: linear-gradient(135deg, #f7931e, #ffb347); }
.quick-entry-item:nth-child(3) .quick-entry-icon { background: linear-gradient(135deg, #ff416c, #ff6b8b); }
.quick-entry-item:nth-child(4) .quick-entry-icon { background: linear-gradient(135deg, #f5576c, #ff7e8a); }
.quick-entry-item .quick-entry-name { font-size: 12px; color: var(--text-secondary); text-align: center; }

.section { padding: 0 16px; margin-top: 24px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title { font-size: 17px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ''; width: 4px; height: 18px; background: var(--bg-gradient); border-radius: 2px; }
.section-more { font-size: 12px; color: var(--text-light); display: flex; align-items: center; gap: 4px; }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.category-card {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 20px 12px; background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-md); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease; cursor: pointer;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow); }
.category-card:active { transform: scale(0.96); }
.category-card-icon {
    font-size: 32px; width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(247, 147, 30, 0.15));
}
.category-card-name { font-size: 13px; color: var(--text-primary); font-weight: 500; }

.product-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.product-card {
    background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease; cursor: pointer;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow); }
.product-card:active { transform: scale(0.97); }
.product-card-image {
    width: 100%; height: 100px; background: linear-gradient(135deg, #fff5f0, #ffe8dc);
    display: flex; align-items: center; justify-content: center; font-size: 40px; position: relative;
}
.product-card-badge {
    position: absolute; top: 8px; left: 8px; padding: 2px 8px;
    background: var(--bg-gradient); color: var(--text-white); font-size: 10px; border-radius: 10px;
}
.product-card-body { padding: 12px; }
.product-card-name { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card-desc { font-size: 12px; color: var(--text-light); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; }
.product-card-price { font-size: 16px; font-weight: 700; color: var(--primary); }
.product-card-price small { font-size: 11px; font-weight: 400; }
.product-card-duration { font-size: 11px; color: var(--text-light); }

.ranking-section {
    margin: 24px 16px; padding: 20px;
    background: var(--bg-gradient); border-radius: var(--radius-lg);
    color: var(--text-white); box-shadow: 0 8px 32px rgba(255, 107, 53, 0.25);
}
.ranking-section .ranking-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ranking-section .ranking-title { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.ranking-section .ranking-more { font-size: 12px; color: rgba(255, 255, 255, 0.8); }
.ranking-list { display: flex; flex-direction: column; gap: 10px; }
.ranking-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px;
    background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-md); transition: all 0.2s ease; cursor: pointer;
}
.ranking-item:active { transform: scale(0.98); }
.ranking-num { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.ranking-item:nth-child(1) .ranking-num { background: linear-gradient(135deg, #ffd700, #ffed4e); color: #8b6914; }
.ranking-item:nth-child(2) .ranking-num { background: linear-gradient(135deg, #c0c0c0, #e8e8e8); color: #555; }
.ranking-item:nth-child(3) .ranking-num { background: linear-gradient(135deg, #cd7f32, #e8a87c); color: #5a3510; }
.ranking-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.ranking-info { flex: 1; min-width: 0; }
.ranking-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.ranking-meta { font-size: 11px; opacity: 0.85; display: flex; gap: 8px; }
.ranking-price { font-size: 14px; font-weight: 600; }

.floating-btn {
    position: fixed; right: 16px; bottom: calc(var(--nav-height) + var(--safe-bottom) + 20px);
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--bg-gradient); color: var(--text-white);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.4); z-index: 998; transition: all 0.3s ease;
}
.floating-btn:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(255, 107, 53, 0.5); }
.floating-btn:active { transform: scale(0.95); }
.floating-btn i { font-size: 22px; }

.auth-page { min-height: 100vh; background: var(--bg-gradient); display: flex; flex-direction: column; position: relative; overflow: hidden; padding-bottom: 0; }
.auth-page::before { content: ''; position: absolute; top: -200px; right: -100px; width: 400px; height: 400px; background: rgba(255, 255, 255, 0.08); border-radius: 50%; }
.auth-page::after { content: ''; position: absolute; bottom: -150px; left: -80px; width: 300px; height: 300px; background: rgba(255, 255, 255, 0.06); border-radius: 50%; }
.auth-container { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 40px 32px; position: relative; z-index: 1; }
.auth-logo { text-align: center; margin-bottom: 40px; color: var(--text-white); }
.auth-logo-icon { font-size: 48px; margin-bottom: 12px; }
.auth-logo-text { font-size: 28px; font-weight: 700; letter-spacing: 2px; }
.auth-logo-sub { font-size: 13px; opacity: 0.9; margin-top: 4px; }
.auth-card { background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: var(--radius-xl); padding: 32px 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); }
.auth-tabs { display: flex; margin-bottom: 28px; background: rgba(255, 255, 255, 0.5); border-radius: var(--radius-md); padding: 4px; }
.auth-tab { flex: 1; padding: 10px 0; text-align: center; font-size: 15px; font-weight: 500; color: var(--text-secondary); border-radius: var(--radius-sm); transition: all 0.3s ease; cursor: pointer; }
.auth-tab.active { background: var(--bg-gradient); color: var(--text-white); box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3); }
.auth-form { display: none; }
.auth-form.active { display: block; animation: fadeInUp 0.4s ease; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; font-weight: 500; }
.form-input {
    width: 100%; padding: 14px 16px;
    background: rgba(255, 255, 255, 0.6); border: 1.5px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-md); font-size: 14px; color: var(--text-primary); transition: all 0.3s ease;
}
.form-input:focus { border-color: var(--primary); background: var(--text-white); box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1); }
.form-input::placeholder { color: var(--text-light); }
.form-hint { font-size: 12px; color: var(--text-light); margin-top: 6px; }
.form-error { font-size: 12px; color: var(--accent); margin-top: 6px; display: none; }
.form-error.show { display: block; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: var(--radius-md); font-size: 15px; font-weight: 600; transition: all 0.3s ease; cursor: pointer; border: none; text-decoration: none; width: 100%; }
.btn-primary { background: var(--bg-gradient); color: var(--text-white); box-shadow: 0 4px 16px rgba(255, 107, 53, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(255, 107, 53, 0.45); }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary { background: rgba(255, 255, 255, 0.8); color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-sm { padding: 8px 16px; font-size: 13px; width: auto; }
.btn-disabled, .btn:disabled { opacity: 0.6; cursor: not-allowed; }

.social-login { margin-top: 24px; }
.social-login-title { text-align: center; font-size: 12px; color: var(--text-light); margin-bottom: 16px; position: relative; }
.social-login-title::before, .social-login-title::after { content: ''; position: absolute; top: 50%; width: 30%; height: 1px; background: rgba(0, 0, 0, 0.08); }
.social-login-title::before { left: 0; }
.social-login-title::after { right: 0; }
.social-login-buttons { display: flex; justify-content: center; gap: 20px; }
.social-login-btn { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.6); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); transition: all 0.3s ease; }
.social-login-btn:hover { transform: translateY(-2px); }
.social-login-btn i { font-size: 20px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 13px; color: var(--text-secondary); }
.auth-footer a { color: var(--primary); font-weight: 500; }

.toast-container { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 9999; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { padding: 12px 24px; background: rgba(0, 0, 0, 0.8); color: var(--text-white); border-radius: var(--radius-md); font-size: 14px; display: flex; align-items: center; gap: 8px; animation: toastIn 0.3s ease; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); max-width: 80vw; text-align: center; }
.toast.success { background: rgba(76, 175, 80, 0.95); }
.toast.error { background: rgba(244, 67, 54, 0.95); }
.toast.warning { background: rgba(255, 152, 0, 0.95); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 9998; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.show { display: flex; animation: fadeIn 0.3s ease; }
.modal-mask { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal-content { position: relative; background: var(--text-white); border-radius: var(--radius-xl); padding: 28px 24px; width: 100%; max-width: 360px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2); animation: slideUp 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.modal-close { position: absolute; top: 16px; right: 16px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 18px; }
.modal-body { text-align: center; }
.modal-icon { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #fff5f0, #ffe8dc); display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 16px; }
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.modal-text { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }
.modal-actions { display: flex; gap: 12px; }

.category-tabs { display: flex; gap: 8px; padding: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.category-tab { padding: 8px 18px; background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 20px; font-size: 13px; color: var(--text-secondary); white-space: nowrap; transition: all 0.3s ease; cursor: pointer; flex-shrink: 0; }
.category-tab.active { background: var(--bg-gradient); color: var(--text-white); box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3); }

.product-detail { background: var(--bg-page); min-height: 100vh; }
.product-hero { position: relative; height: 260px; background: linear-gradient(135deg, #fff5f0, #ffe8dc); display: flex; align-items: center; justify-content: center; font-size: 100px; }
.product-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40px; background: var(--bg-page); border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.product-detail-content { margin-top: -20px; position: relative; z-index: 1; padding: 0 16px 100px; }
.detail-card { background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04); }
.detail-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.detail-price { font-size: 28px; font-weight: 700; color: var(--primary); }
.detail-price small { font-size: 14px; font-weight: 400; }
.detail-name { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.detail-duration { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; background: rgba(255, 107, 53, 0.1); color: var(--primary); border-radius: 4px; font-size: 12px; }
.detail-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

.order-bar { position: fixed; bottom: var(--nav-height); left: 0; right: 0; display: flex; align-items: center; padding: 12px 16px; background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid rgba(0, 0, 0, 0.05); gap: 12px; z-index: 998; }
.order-bar-info { flex: 1; }
.order-bar-label { font-size: 11px; color: var(--text-light); }
.order-bar-price { font-size: 20px; font-weight: 700; color: var(--primary); }
.order-bar-price small { font-size: 12px; font-weight: 400; }
.order-bar-btn { padding: 12px 32px; background: var(--bg-gradient); color: var(--text-white); border-radius: var(--radius-lg); font-size: 15px; font-weight: 600; box-shadow: 0 4px 16px rgba(255, 107, 53, 0.35); transition: all 0.3s ease; }
.order-bar-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(255, 107, 53, 0.45); }

.player-list-page { padding: 0 0 24px; }
.player-filters { display: flex; gap: 8px; padding: 12px 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(0, 0, 0, 0.04); }
.player-filter { padding: 6px 14px; background: rgba(255, 255, 255, 0.6); border-radius: 16px; font-size: 12px; color: var(--text-secondary); white-space: nowrap; transition: all 0.3s ease; cursor: pointer; flex-shrink: 0; }
.player-filter.active { background: var(--bg-gradient); color: var(--text-white); }
.player-cards { padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; }
.player-card { display: flex; gap: 14px; padding: 16px; background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: var(--radius-lg); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04); transition: all 0.3s ease; cursor: pointer; }
.player-card:hover { transform: translateY(-2px); box-shadow: var(--card-shadow); }
.player-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #fff5f0, #ffe8dc); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; position: relative; }
.player-status-dot { position: absolute; bottom: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--text-white); }
.player-status-dot.online { background: #4caf50; }
.player-status-dot.busy { background: #ff9800; }
.player-status-dot.offline { background: #9e9e9e; }
.player-info { flex: 1; min-width: 0; }
.player-name-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.player-name { font-size: 15px; font-weight: 600; }
.player-rating { display: flex; align-items: center; gap: 2px; color: #ffb300; font-size: 12px; }
.player-game { font-size: 12px; color: var(--text-light); margin-bottom: 6px; }
.player-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.player-tag { padding: 2px 8px; background: rgba(255, 107, 53, 0.1); color: var(--primary); border-radius: 4px; font-size: 11px; }
.player-meta { display: flex; justify-content: space-between; align-items: center; }
.player-price { font-size: 16px; font-weight: 700; color: var(--primary); }
.player-price small { font-size: 11px; font-weight: 400; color: var(--text-light); }
.player-orders { font-size: 11px; color: var(--text-light); }

.player-detail-hero { background: var(--bg-gradient); padding: 60px 20px 40px; color: var(--text-white); text-align: center; position: relative; }
.player-detail-hero .player-avatar { width: 80px; height: 80px; margin: 0 auto 16px; background: rgba(255, 255, 255, 0.2); font-size: 36px; border: 3px solid rgba(255, 255, 255, 0.5); }
.player-detail-hero .player-name { font-size: 22px; font-weight: 700; margin-bottom: 8px; color: var(--text-white); }
.player-detail-stats { display: flex; justify-content: center; gap: 32px; margin-top: 16px; }
.player-detail-stat { text-align: center; }
.player-detail-stat-value { font-size: 18px; font-weight: 700; }
.player-detail-stat-label { font-size: 11px; opacity: 0.85; }
.player-detail-content { margin-top: -30px; padding: 0 16px 100px; }

.order-tabs { display: flex; background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 0 16px; border-bottom: 1px solid rgba(0, 0, 0, 0.04); position: sticky; top: 0; z-index: 50; }
.order-tab { flex: 1; padding: 14px 0; text-align: center; font-size: 14px; color: var(--text-secondary); position: relative; cursor: pointer; transition: color 0.3s ease; }
.order-tab.active { color: var(--primary); font-weight: 600; }
.order-tab.active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 3px; background: var(--bg-gradient); border-radius: 2px; }
.order-list { padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; }
.order-card { background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: var(--radius-lg); padding: 16px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04); }
.order-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.04); }
.order-no { font-size: 12px; color: var(--text-light); }
.order-status { font-size: 13px; font-weight: 600; }
.order-status.pending { color: var(--secondary); }
.order-status.accepted { color: var(--primary); }
.order-status.in_progress { color: #2196f3; }
.order-status.completed { color: #4caf50; }
.order-status.cancelled { color: var(--text-light); }
.order-status.refunded { color: var(--accent); }
.order-card-body { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.order-product-icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: linear-gradient(135deg, #fff5f0, #ffe8dc); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.order-product-info { flex: 1; min-width: 0; }
.order-product-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.order-player-name { font-size: 12px; color: var(--text-light); }
.order-card-footer { display: flex; justify-content: space-between; align-items: center; }
.order-price { font-size: 16px; font-weight: 700; color: var(--primary); }
.order-actions { display: flex; gap: 8px; }
.order-action-btn { padding: 6px 14px; border-radius: 16px; font-size: 12px; transition: all 0.2s ease; cursor: pointer; }
.order-action-btn.primary { background: var(--bg-gradient); color: var(--text-white); }
.order-action-btn.outline { border: 1px solid var(--text-light); color: var(--text-secondary); }
.order-action-btn:active { transform: scale(0.95); }

.messages-page { padding: 0; }
.messages-header { padding: 60px 16px 16px; background: var(--bg-gradient); color: var(--text-white); }
.message-list { padding: 0 16px; }
.message-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.04); cursor: pointer; transition: background 0.2s ease; }
.message-item:active { background: rgba(0, 0, 0, 0.02); }
.message-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #fff5f0, #ffe8dc); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; position: relative; }
.message-unread { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 5px; background: var(--accent); color: var(--text-white); border-radius: 9px; font-size: 10px; display: flex; align-items: center; justify-content: center; }
.message-info { flex: 1; min-width: 0; }
.message-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.message-name { font-size: 15px; font-weight: 600; }
.message-time { font-size: 11px; color: var(--text-light); }
.message-preview { font-size: 13px; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.profile-header { background: var(--bg-gradient); padding: 60px 20px 80px; color: var(--text-white); text-align: center; position: relative; }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); display: flex; align-items: center; justify-content: center; font-size: 36px; margin: 0 auto 12px; border: 3px solid rgba(255, 255, 255, 0.4); }
.profile-nickname { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.profile-id { font-size: 12px; opacity: 0.85; }
.balance-card { margin: -40px 16px 16px; background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--card-shadow); display: flex; justify-content: space-around; align-items: center; }
.balance-item { text-align: center; flex: 1; }
.balance-value { font-size: 22px; font-weight: 700; color: var(--primary); }
.balance-label { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.balance-divider { width: 1px; height: 32px; background: rgba(0, 0, 0, 0.08); }
.profile-actions { display: flex; gap: 12px; margin: 0 16px 16px; }
.profile-action { flex: 1; padding: 14px; background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: var(--radius-md); text-align: center; font-size: 13px; color: var(--text-primary); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04); transition: all 0.2s ease; cursor: pointer; }
.profile-action i { display: block; font-size: 22px; color: var(--primary); margin-bottom: 6px; }
.profile-action:active { transform: scale(0.96); }
.profile-menu { margin: 0 16px 16px; background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04); }
.profile-menu-item { display: flex; align-items: center; padding: 16px; gap: 14px; border-bottom: 1px solid rgba(0, 0, 0, 0.04); transition: background 0.2s ease; cursor: pointer; }
.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item:active { background: rgba(0, 0, 0, 0.02); }
.profile-menu-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--primary); }
.profile-menu-text { flex: 1; }
.profile-menu-title { font-size: 14px; color: var(--text-primary); }
.profile-menu-desc { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.profile-menu-arrow { color: var(--text-light); font-size: 14px; }

.service-page { display: flex; flex-direction: column; height: 100vh; background: var(--bg-page); padding-bottom: 0; }
.service-header { display: flex; align-items: center; padding: 50px 16px 12px; background: var(--bg-gradient); color: var(--text-white); }
.service-back { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); display: flex; align-items: center; justify-content: center; color: var(--text-white); font-size: 20px; }
.service-title { flex: 1; text-align: center; font-size: 16px; font-weight: 600; margin-right: 36px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-time { text-align: center; font-size: 11px; color: var(--text-light); margin: 8px 0; }
.chat-msg { display: flex; gap: 8px; max-width: 80%; }
.chat-msg.sent { align-self: flex-end; flex-direction: row-reverse; }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #fff5f0, #ffe8dc); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.chat-msg.sent .chat-avatar { background: var(--bg-gradient); }
.chat-bubble { padding: 10px 14px; border-radius: var(--radius-md); font-size: 14px; line-height: 1.5; word-wrap: break-word; }
.chat-msg:not(.sent) .chat-bubble { background: var(--text-white); color: var(--text-primary); border-top-left-radius: 4px; }
.chat-msg.sent .chat-bubble { background: var(--bg-gradient); color: var(--text-white); border-top-right-radius: 4px; }
.chat-input-area { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--text-white); border-top: 1px solid rgba(0, 0, 0, 0.06); padding-bottom: calc(12px + var(--safe-bottom)); }
.chat-input { flex: 1; padding: 10px 14px; background: var(--bg-page); border-radius: var(--radius-lg); font-size: 14px; color: var(--text-primary); }
.chat-send-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-gradient); color: var(--text-white); display: flex; align-items: center; justify-content: center; font-size: 16px; transition: all 0.2s ease; }
.chat-send-btn:active { transform: scale(0.92); }

.ranking-page { padding-bottom: 24px; }
.ranking-hero { background: var(--bg-gradient); padding: 60px 20px 30px; color: var(--text-white); text-align: center; }
.ranking-hero h1 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.ranking-hero p { font-size: 13px; opacity: 0.9; }
.ranking-podium { display: flex; justify-content: center; align-items: flex-end; gap: 12px; margin: -30px 16px 20px; position: relative; z-index: 2; }
.podium-item { text-align: center; flex: 1; }
.podium-avatar { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.podium-avatar.gold { background: linear-gradient(135deg, #ffd700, #ffed4e); }
.podium-avatar.silver { background: linear-gradient(135deg, #c0c0c0, #e8e8e8); }
.podium-avatar.bronze { background: linear-gradient(135deg, #cd7f32, #e8a87c); }
.podium-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.podium-price { font-size: 12px; opacity: 0.85; }
.podium-score { font-size: 11px; color: var(--text-light); }

.guide-page { padding: 0 0 24px; }
.guide-hero { background: var(--bg-gradient); padding: 60px 20px 30px; color: var(--text-white); }
.guide-hero h1 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.guide-hero p { font-size: 13px; opacity: 0.9; line-height: 1.6; }
.guide-steps { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.guide-step { display: flex; gap: 14px; align-items: flex-start; }
.guide-step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-gradient); color: var(--text-white); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.guide-step-content { flex: 1; background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 14px 16px; border-radius: var(--radius-md); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04); }
.guide-step-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.guide-step-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-light); }
.empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.empty-state-text { font-size: 14px; }

.load-more { text-align: center; padding: 16px; font-size: 13px; color: var(--text-light); }

.rate-modal { display: flex; gap: 4px; margin: 12px 0; justify-content: center; }
.rate-star { font-size: 28px; color: #ddd; cursor: pointer; transition: color 0.2s ease; }
.rate-star.active, .rate-star:hover { color: #ffb300; }

@media (max-width: 360px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .product-list { grid-template-columns: 1fr; }
    .quick-entries { grid-template-columns: repeat(2, 1fr); }
    .banner-slide { height: 130px; }
    .banner-slide h2 { font-size: 18px; }
}

@media (min-width: 768px) {
    body { max-width: 768px; margin: 0 auto; }
    .bottom-nav, .floating-btn { max-width: 768px; left: 50%; transform: translateX(-50%); }
    .floating-btn { transform: translateX(0); right: calc(50% - 384px + 16px); }
}