* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif; background-image: url('white.webp'); background-size: cover; background-position: center; background-attachment: fixed; min-height: 100vh; padding: 10px 10px; display: flex; justify-content: center; align-items: flex-start; }
.app { max-width: 1100px; width: 100%; background: transparent; border-radius: 10px; padding: 10px 10px 10px; animation: appFadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes appFadeIn { 0% { opacity: 0; transform: translateY(15px) scale(0.98); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.page { display: none; animation: pageFade 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.page.active { display: block; }
@keyframes pageFade { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: translateY(0); } }
#mainPage.active { display: flex; flex-direction: column; }
.home-img-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 10px 0; margin-top: 16px; min-height: 200px; }
.home-img-wrap img { max-width: 100%; max-height: 80%; object-fit: contain; border-radius: 10px; }
#blockOverlay { position: fixed; inset: 0; z-index: 9999; background: rgba(30, 18, 28, 0.95); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 30px; }
#blockOverlay.show { display: flex; }
.block-box { background: rgba(80, 45, 60, 0.35); border: 1px solid rgba(255,180,200,0.25); border-radius: 12px; padding: 40px 36px; max-width: 420px; text-align: center; }
.block-box h2 { color: #f0c0d0; font-size: 22px; margin-bottom: 14px; }
.block-box p { color: #d8b8c4; font-size: 14px; line-height: 1.8; }
.block-box .dev { color: #b08898; font-size: 12px; margin-top: 18px; word-break: break-all; }
h1 { font-size: 32px; font-weight: 700; color: #6a4a56; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; letter-spacing: -0.3px; text-shadow: 0 0 4px rgba(255,255,255,0.58), 0 0 8px rgba(200,150,170,0.32); }
.logo-img { height: 32px; width: auto; vertical-align: middle; }
.subtitle { color: #7a5a6a; font-size: 15px; margin-bottom: 28px; padding: 8px 0; font-weight: 450; text-shadow: 0 0 2px rgba(255,255,255,0.51); }
.subtitle code { background: transparent; color: #7a5a6a; font-size: 15px; text-shadow: 0 0 2px rgba(255,255,255,0.51); }
.price-status { font-size: 13px; color: #7a5a6a; font-weight: 600; margin-left: 8px; text-shadow: 0 0 2px rgba(255,255,255,0.51); }
.input-section { margin-bottom: 30px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; align-items: center; justify-content: space-between; }
.toolbar .left { font-weight: 600; font-size: 16px; color: #6a4a56; text-shadow: 0 0 2px rgba(255,255,255,0.51); }
.toolbar .right { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { border: none; border-radius: 5px; padding: 9px 22px; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 15px; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; outline: none; transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1); background: rgba(255, 248, 250, 0.70); backdrop-filter: blur(4px); color: #6a4a56; box-shadow: 0 2px 8px rgba(200, 140, 160, 0.04); transform: translateY(0) scale(1); will-change: transform, box-shadow; border: 1px solid rgba(255, 255, 255, 0.30); text-shadow: 0 0 2px rgba(255,255,255,0.45); }
.btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 24px rgba(200, 140, 160, 0.14); background: rgba(255, 248, 250, 0.88); }
.btn:active { transform: scale(0.96) translateY(0px); transition-duration: 0.1s; box-shadow: 0 2px 6px rgba(200, 140, 160, 0.10); }
.btn-primary { background: rgba(226, 192, 206, 0.70); backdrop-filter: blur(4px); color: #4a303a; box-shadow: 0 4px 12px rgba(200, 140, 160, 0.14); border: 1px solid rgba(255, 255, 255, 0.35); text-shadow: 0 0 2px rgba(255,255,255,0.45); }
.btn-primary:hover { background: rgba(212, 174, 187, 0.88); box-shadow: 0 12px 28px rgba(200, 140, 160, 0.20); }
.btn-outline { background: transparent; border: 1.8px solid rgb(234 181 203 / 0.65); color: #ffc0cb; backdrop-filter: none; text-shadow: 0 0 4px rgba(255,192,203,0.38); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.20); border-color: #d4aebb; }
.btn-success { background: rgba(212, 184, 196, 0.70); backdrop-filter: blur(4px); color: #3a2a32; box-shadow: 0 4px 12px rgba(200, 140, 160, 0.12); border: 1px solid rgba(255, 255, 255, 0.35); text-shadow: 0 0 2px rgba(255,255,255,0.45); }
.btn-success:hover { background: rgba(196, 166, 178, 0.88); box-shadow: 0 12px 28px rgba(200, 140, 160, 0.18); }
.btn-sm { padding: 5px 14px; font-size: 12px; border-radius: 12px; }
.btn-danger-outline { background: transparent; border: 1.5px solid rgba(200, 140, 150, 0.35); color: #b07a8a; backdrop-filter: none; transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1); text-shadow: 0 0 2px rgba(255,255,255,0.38); }
.btn-danger-outline:hover { background: rgba(220, 160, 170, 0.12); border-color: #c08a9a; color: #a06070; transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 20px rgba(200, 140, 160, 0.12); }
.btn-danger-outline:active { transform: scale(0.96) translateY(0px); }
textarea { width: 100%; min-height: 180px; padding: 5px; font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace; font-size: 14px; border: 1.5px solid rgba(232, 212, 220, 0.50); border-radius: 4px; background: transparent; resize: vertical; line-height: 1.7; color: #4a343e; transition: border 0.25s ease, box-shadow 0.3s ease, background 0.2s; text-shadow: 0 0 1px rgba(255,255,255,0.38); }
textarea:focus { outline: none; border-color: rgba(226, 192, 206, 0.80); box-shadow: 0 0 0 6px rgba(210, 160, 180, 0.08); background: rgba(255, 255, 255, 0.10); }
.result-section { border-top: none; padding-top: 16px; margin-top: 8px; }
.empty-hint { text-align: center; padding: 52px 20px; color: #b0909e; font-style: italic; animation: fadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1); text-shadow: 0 0 4px rgba(255,255,255,0.51); }
.card { background: transparent; border-radius: 10px; padding: 22px 26px; border: 1px solid rgba(255, 255, 255, 0.20); margin-bottom: 22px; box-shadow: 0 4px 16px rgba(200, 140, 160, 0.04); animation: cardSlide 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.12s; }
@keyframes cardSlide { 0% { opacity: 0; transform: translateY(20px) scale(0.97); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.card-title { font-size: 18px; font-weight: 700; color: #6a4a56; display: flex; gap: 12px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; letter-spacing: -0.2px; text-shadow: 0 0 3px rgba(255,255,255,0.51); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 24px; }
.grid-item { display: flex; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed rgba(200, 140, 160, 0.10); }
.grid-item .label { color: #9a7a88; font-weight: 500; min-width: 56px; font-size: 17px; text-shadow: 0 0 1px rgba(255,255,255,0.38); }
.grid-item .value { color: #4a343e; font-weight: 600; font-size: 17px; text-shadow: 0 0 2px rgba(255,255,255,0.45); }
.grid-item .value.empty { color: #c0a8b2; font-weight: 400; text-shadow: 0 0 1px rgba(255,255,255,0.32); }
.table-wrap { overflow-x: auto; border-radius: 7px; border: 1px solid rgba(200, 140, 160, 0.08); background: transparent; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 350px; }
table th { background: rgba(255, 255, 255, 0.15); padding: 14px 14px; text-align: left; border-bottom: 2px solid rgba(232, 212, 220, 0.40); font-weight: 600; color: #6a4a56; text-shadow: 0 0 2px rgba(255,255,255,0.45); }
table td { padding: 14px 18px; border-bottom: 1px solid rgba(200, 140, 160, 0.06); vertical-align: middle; color: #4a343e; text-shadow: 0 0 1px rgba(255,255,255,0.38); }
table tr:last-child td { border-bottom: none; }
table tr { transition: background 0.2s ease; }
table tr:hover { background: rgba(255, 255, 255, 0.10); }
.tag-gift { background: rgba(255, 255, 255, 0.30); backdrop-filter: blur(4px); color: #8a6a7a; padding: 2px 14px; border-radius: 12px; display: inline-block; font-size: 13px; font-weight: 500; text-shadow: 0 0 1px rgba(255,255,255,0.38); }
.expr { background: rgba(255, 255, 255, 0.20); backdrop-filter: blur(4px); padding: 0 12px; border-radius: 10px; font-family: monospace; font-size: 15px; display: inline-block; color: #6a4a56; text-shadow: 0 0 1px rgba(255,255,255,0.38); }
.earnings-zero { color: #c0a8b2; text-shadow: 0 0 1px rgba(255,255,255,0.32); }
.stats-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.stats-header .title { font-size: 24px; font-weight: 700; color: #6a4a56; letter-spacing: -0.3px; text-shadow: 0 0 4px rgba(255,255,255,0.58); }
.stats-tabs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; width: 100%; }
.stats-tab-btn { padding: 7px 24px; font-size: 13px; border-radius: 4px; background: rgba(255,248,250,0.45); color: #9a7a88; border: 1px solid rgba(200,140,160,0.15); cursor: pointer; transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1); font-weight: 500; text-shadow: 0 0 2px rgba(255,255,255,0.4); width: 100%; text-align: center; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.stats-tab-btn.active { background: rgba(226,192,206,0.55); color: #4a303a; border-color: rgba(200,140,160,0.35); text-shadow: 0 0 3px rgba(255,255,255,0.5); }
.stats-tab-btn:hover { background: rgba(226,192,206,0.35); }
.stats-summary { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 24px; margin-bottom: 6px; border-radius: 5px; padding: 18px 24px; border: 1px solid rgba(255, 255, 255, 0.15); animation: fadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.stats-summary .stat-item { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed rgba(200, 140, 160, 0.08); }
.stats-summary .stat-item .name { color: #ffc0cb; font-weight: 700; text-shadow: 0 0 4px rgba(255,192,203,0.45), 0 0 8px rgba(255,192,203,0.19); }
.stats-summary .stat-item .amount { font-weight: 600; color: #fdd7df; text-shadow: 0 0 3px rgba(253,215,223,0.45); }
.stats-summary .stat-total { grid-column: 1 / -1; margin-top: 10px; padding-top: 12px; border-top: 2px solid rgba(232, 212, 220, 0.40); font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; color: #e68585; text-shadow: 0 0 5px rgba(225,215,216,0.58), 0 0 10px rgba(200,150,170,0.26); }
.player-list { display: flex; flex-direction: column; }
.player-row { display: flex; align-items: center; gap: 12px; padding: 13px 8px; border-bottom: 1px dashed rgba(200,140,160,0.14); }
.player-row:last-child { border-bottom: none; }
.player-rank { width: 28px; height: 28px; border-radius: 50%; background: rgba(226,192,206,0.45); color: #6a4a56; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.player-rank.top { background: rgb(255, 182, 193); color: #6a4a56; }
.player-name { flex: 1; font-weight: 600; color: #6a4a56; font-size: 15px; text-shadow: 0 0 2px rgba(255,255,255,0.45); }
.player-count { color: rgb(255, 182, 193); font-size: 13px; font-weight: 600; flex-shrink: 0; }
.player-amount { font-weight: 700; color: rgb(255, 182, 193); font-size: 15px; text-shadow: 0 0 2px rgba(255,255,255,0.45); flex-shrink: 0; }
.adjust-section { background: transparent; border: 1px solid rgba(255, 255, 255, 0.20); border-radius: 5px; padding: 18px 22px; margin-bottom: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; transition: box-shadow 0.2s ease; }
.adjust-section:focus-within { box-shadow: 0 0 0 4px rgba(210, 160, 180, 0.06); }
.adjust-section label { font-weight: 600; color: #6a4a56; font-size: 14px; text-shadow: 0 0 2px rgba(255,255,255,0.45); }
.adjust-section input { padding: 10px 14px; border-radius: 5px; border: 1.5px solid rgba(232, 212, 220, 0.50); font-size: 14px; outline: none; width: 140px; background: rgba(255, 255, 255, 0.20); backdrop-filter: blur(4px); transition: border 0.25s ease, box-shadow 0.25s ease, background 0.2s; color: #4a343e; text-shadow: 0 0 1px rgba(255,255,255,0.38); }
.adjust-section input:focus { border-color: rgba(226, 192, 206, 0.80); box-shadow: 0 0 0 4px rgba(210, 160, 180, 0.06); background: rgba(255, 255, 255, 0.35); }
.history-list .history-item { background: transparent; border-radius: 6px; padding: 10px 10px; margin-bottom: 14px; border: 1px solid rgba(255, 255, 255, 0.15); transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1); transform: translateY(0) scale(1); will-change: transform, box-shadow; animation: historyIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
.history-item:nth-child(1) { animation-delay: 0.03s; }
.history-item:nth-child(2) { animation-delay: 0.07s; }
.history-item:nth-child(3) { animation-delay: 0.11s; }
.history-item:nth-child(4) { animation-delay: 0.15s; }
.history-item:nth-child(5) { animation-delay: 0.19s; }
@keyframes historyIn { 0% { opacity: 0; transform: translateY(15px) scale(0.96); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.history-item:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 28px rgba(200, 140, 160, 0.10); border-color: rgba(210, 160, 180, 0.35); background: rgba(255, 255, 255, 0.08); }
.history-item .hdr { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.history-item .hdr .order-info { font-weight: 600; color: #6a4a56; font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; text-shadow: 0 0 2px rgba(255,255,255,0.45); }
.history-item .hdr .order-info .time { font-weight: 400; color: #9a7a88; font-size: 13px; text-shadow: 0 0 1px rgba(255,255,255,0.38); }
.history-item .hdr .order-info .text-muted { color: #9a7a88; font-size: 13px; font-weight: 400; text-shadow: 0 0 1px rgba(255,255,255,0.38); }
.history-item .hdr .actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.history-item .detail { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 20px; font-size: 14px; color: #4a343e; }
.history-item .detail .p-item { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dotted rgba(200, 140, 160, 0.06); }
.history-item .detail .p-item .p-name { font-weight: 500; color: #6a4a56; text-shadow: 0 0 1px rgba(255,255,255,0.38); }
.history-item .detail .p-item .p-earn { font-weight: 600; color: #6a4a56; text-shadow: 0 0 2px rgba(255,255,255,0.45); }
.adjust-badge { background: rgba(255, 255, 255, 0.30); backdrop-filter: blur(4px); color: #8a6a7a; font-size: 12px; padding: 2px 14px; border-radius: 30px; font-weight: 500; text-shadow: 0 0 1px rgba(255,255,255,0.38); }
.history-empty { text-align: center; color: #c0a8b2; padding: 48px 20px; font-size: 16px; animation: fadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1); text-shadow: 0 0 4px rgba(255,255,255,0.51); }
.connection-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: 20px; margin-left: 10px; transition: all 0.3s ease; text-shadow: 0 0 1px rgba(255,255,255,0.38); }
.connection-status.online { background: rgba(180, 220, 180, 0.25); color: #5a8a5a; border: 1px solid rgba(150, 200, 150, 0.35); }
.connection-status.offline { background: rgba(220, 180, 180, 0.25); color: #9a6a6a; border: 1px solid rgba(200, 150, 150, 0.35); }
.connection-status .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.connection-status.online .dot { background: #6ab86a; box-shadow: 0 0 6px rgba(100, 180, 100, 0.5); }
.connection-status.offline .dot { background: #c08080; box-shadow: 0 0 6px rgba(180, 100, 100, 0.4); }
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px); background: rgba(122, 90, 106, 0.85); backdrop-filter: blur(8px); color: #fff; padding: 14px 32px; border-radius: 5px; font-size: 14px; font-weight: 500; box-shadow: 0 8px 28px rgba(160, 120, 130, 0.15); opacity: 0; transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1); pointer-events: none; z-index: 999; border: 1px solid rgba(255, 255, 255, 0.10); will-change: transform, opacity; text-shadow: 0 0 2px rgba(255,255,255,0.32); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: rgb(0 0 0 / 0.00); }
.toast.success { background: rgba(138, 106, 122, 0.85); }
.toast.info { background: rgba(122, 90, 106, 0.85); }
@keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
.sync-indicator { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: #9a7a88; animation: pulse 2s infinite ease-in-out; text-shadow: 0 0 1px rgba(255,255,255,0.38); }
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
.order-id-text { color: #ffc0cb; font-weight: 700; font-size: 16px; text-shadow: 0 0 5px rgba(255,192,203,0.51), 0 0 10px rgba(255,192,203,0.26); }
.tab-content { display: none; animation: fadeIn 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.tab-content.active { display: block; }
.statsContent.total-mode { display: flex; flex-direction: column; height: calc(100vh - 220px); min-height: 400px; }
.total-container { flex: 1; display: flex; flex-direction: column; }
.total-summary { flex-shrink: 0; }
.total-image { flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 10px 0; }
.total-image img { max-height: 70%; max-width: 100%; object-fit: contain; }
.search-bar { margin-bottom: 16px; }
.search-bar input { width: 100%; padding: 11px 16px; border-radius: 8px; border: 1.5px solid rgba(232, 212, 220, 0.55); font-size: 14px; outline: none; background: rgba(255, 255, 255, 0.22); backdrop-filter: blur(4px); color: #4a343e; transition: border 0.25s ease, box-shadow 0.25s ease, background 0.2s; }
.search-bar input:focus { border-color: rgba(226, 192, 206, 0.85); box-shadow: 0 0 0 4px rgba(210, 160, 180, 0.08); background: rgba(255, 255, 255, 0.35); }
.chart-box { display: flex; align-items: flex-end; gap: 8px; height: 220px; padding: 14px 10px 6px; overflow-x: auto; }
.chart-col { flex: 1 0 46px; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; min-width: 0; }
.chart-bar { width: 70%; max-width: 42px; background: linear-gradient(180deg, rgba(226,192,206,0.85), rgba(200,150,175,0.55)); border-radius: 5px 5px 0 0; transition: height .3s ease; min-height: 3px; box-shadow: 0 0 10px rgba(210,160,185,0.25); }
.chart-val { font-size: 10px; color: #9a7a88; font-weight: 600; white-space: nowrap; }
.chart-label { font-size: 10px; color: #9a7a88; transform: rotate(-40deg); white-space: nowrap; margin-top: 2px; }
.edit-player-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.edit-player-row input { flex: 1; width: 100%; }
.edit-modal-body { max-height: 55vh; overflow-y: auto; margin-bottom: 12px; }
.auth-remember-wrap { display: flex; align-items: center; justify-content: flex-start; margin: 6px 0 12px; }
.auth-remember { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #8a6a7a; cursor: pointer; user-select: none; white-space: nowrap; line-height: 1; }
.auth-modal .auth-remember input { width: auto; height: auto; margin: 0; padding: 0; flex-shrink: 0; }
@media (max-width: 640px) {
    .app { padding: 20px 14px; }
    .grid-2 { grid-template-columns: 1fr; }
    .stats-summary { grid-template-columns: 1fr 1fr; padding: 5px 5px; }
    .history-item .detail { grid-template-columns: 1fr; }
    .adjust-section { flex-direction: column; align-items: stretch; }
    .adjust-section input { width: 100%; }
    .statsContent.total-mode { height: calc(100vh - 180px); }
    .home-img-wrap { min-height: 120px; }
    h1 { font-size: 24px; }
    .toolbar { flex-direction: column; align-items: stretch; }
    .toolbar .left { margin-bottom: 2px; }
    .toolbar .right { justify-content: stretch; flex-wrap: nowrap; gap: 8px; }
    .toolbar .right .btn { flex: 1 1 auto; min-width: 0; min-height: 40px; padding: 0 8px; border-radius: 7px; font-size: 13px; white-space: nowrap; justify-content: center; }
    .stats-header { gap: 10px; }
    .stats-header .btn { min-height: 42px; padding: 0 22px; border-radius: 7px; font-size: 13px; }
    .stats-tabs { flex-direction: column; }
    .stats-tab-btn { width: 100%; min-height: 42px; border-radius: 7px; }
    .adjust-section .btn { min-height: 42px; padding: 0 24px; border-radius: 7px; }
    .auth-actions .btn { min-height: 44px; border-radius: 7px; }
    .auth-remember-wrap { justify-content: flex-start; }
    .auth-remember { flex-direction: row; white-space: nowrap; justify-content: center; font-size: 12px; }
    .history-item .hdr .actions { width: 100%; justify-content: flex-end; }
    .history-item .hdr .actions .btn { min-height: 34px; padding: 0 16px; border-radius: 7px; font-size: 12px; }
    .chart-box { height: 160px; }
    .btn, .btn-primary, .btn-success, .btn-outline, .btn-danger-outline, .tag-gift, .expr, .adjust-badge, textarea, .adjust-section input, .search-bar input, .auth-modal input, .toast, .auth-modal, .auth-overlay { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; will-change: auto !important; }
    .btn, .stats-tab-btn, .history-item { transition: background 0.15s ease, color 0.15s ease !important; }
    .btn:hover { transform: none !important; }
    .history-item:hover { transform: none !important; box-shadow: none !important; }
    .history-item { animation: none !important; }
}
.auth-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(74, 48, 58, 0.45); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 20px; }
.auth-overlay.show { display: flex; }
.auth-modal { width: 100%; max-width: 380px; background: rgba(255, 248, 250, 0.92); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 12px; padding: 28px 30px; box-shadow: 0 16px 44px rgba(160, 110, 130, 0.25); animation: modalIn 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes modalIn { 0% { opacity: 0; transform: translateY(18px) scale(0.96); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.auth-modal h2 { font-size: 20px; color: #6a4a56; margin-bottom: 6px; letter-spacing: -0.2px; text-shadow: 0 0 3px rgba(255,255,255,0.5); }
.auth-modal .auth-sub { font-size: 12px; color: #9a7a88; margin-bottom: 18px; }
.auth-modal input { width: 100%; padding: 11px 14px; margin-bottom: 12px; border: 1.5px solid rgba(232, 212, 220, 0.60); border-radius: 6px; font-size: 14px; color: #4a343e; outline: none; background: rgba(255, 255, 255, 0.35); transition: border 0.25s ease, box-shadow 0.25s ease, background 0.2s; }
.auth-modal input:focus { border-color: rgba(226, 192, 206, 0.85); box-shadow: 0 0 0 4px rgba(210, 160, 180, 0.10); background: rgba(255, 255, 255, 0.55); }
.auth-modal .auth-actions { display: flex; gap: 10px; margin-top: 6px; }
.auth-modal .auth-actions .btn { flex: 1; justify-content: center; }
.auth-modal .auth-cancel { background: transparent; color: #9a7a88; border: 1px solid rgba(200, 140, 160, 0.30); }
.auth-modal .auth-cancel:hover { background: rgba(255, 255, 255, 0.20); transform: translateY(-1px); }
.auth-err { color: #c05060; font-size: 13px; margin-top: 10px; min-height: 18px; }
@media (hover: none) { .btn:hover, .btn-primary:hover, .btn-success:hover, .btn-outline:hover, .btn-danger-outline:hover, .auth-cancel:hover, .stats-tab-btn:hover, .history-item:hover, table tr:hover { transform: none !important; box-shadow: none !important; } .btn:active { transform: scale(0.97) !important; } }
.btn { gap: 8px; }
.btn svg, .stats-tab-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.stats-tab-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.client-lock { position: fixed; inset: 0; z-index: 950; background: rgba(255,248,250,0.85); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 20px; }
.client-lock.show { display: flex; }
.client-lock .lock-box { text-align: center; max-width: 340px; padding: 32px 34px; background: rgba(255,248,250,0.95); border: 1px solid rgba(255,255,255,0.55); border-radius: 12px; box-shadow: 0 16px 44px rgba(160,110,130,0.25); }
.client-lock .lock-box h2 { font-size: 20px; color: #6a4a56; margin-bottom: 8px; }
.client-lock .lock-box p { font-size: 13px; color: #9a7a88; margin-bottom: 18px; }
.client-lock .lock-box .btn { justify-content: center; width: 100%; margin-bottom: 8px; }
#inputText::placeholder { font-size: 15px; color: #4e4e4e; opacity: 1; }
.boss-neg { color: #d03030 !important; font-weight: 700; }
.stats-tab-btn svg { display: none; }
#inputText {
    color: #000000 !important;
}