* { box-sizing: border-box; font-family: 'Courier New', Courier, monospace !important; }
body { margin: 0; padding: 0; background-color: #050505; overflow: hidden; color: #e0e0e0; height: 100vh; display: flex; align-items: center; justify-content: center; }
a { text-decoration: none; color: inherit; }
.no-select { user-select: none; }
#snow-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#file-input { display: none; }

.auth-corner-btn { position: absolute; top: 30px; right: 30px; z-index: 10; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(0, 0, 0, 0.3); color: #aaa; padding: 10px 20px; font-size: 0.8rem; cursor: pointer; transition: all 0.2s; backdrop-filter: blur(5px); }
.auth-corner-btn:hover { background: #fff; color: #000; border-color: #fff; }

.top-right-container { position: absolute; top: 30px; right: 30px; z-index: 20; display: flex; align-items: center; gap: 20px; }

.storage-widget { display: flex; align-items: center; gap: 12px; padding: 8px 15px; background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; backdrop-filter: blur(5px); flex-direction: row; }
.hdd-icon svg { width: 28px; height: 28px; fill: none; stroke: #aaa; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.storage-info { display: flex; flex-direction: column; gap: 5px; width: 140px; }
.storage-bar-bg { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.storage-bar-fill { height: 100%; width: 0%; background: #00a8ff; transition: width 0.5s, background 0.3s; }
.storage-bar-fill.low-space { background: #ff4444; box-shadow: 0 0 8px #ff4444; }
#storage-text { font-size: 0.75rem; color: #bbb; text-align: right; font-weight: 600; font-family: 'Courier New', Courier, monospace !important; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes fadeOverlay { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: scale(0.95); } }

.upload-container { position: relative; z-index: 1; width: 440px; height: auto; min-height: 260px; background: rgba(30, 30, 30, 0.4); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 4px; padding: 25px; box-shadow: 0 30px 60px rgba(0,0,0,0.9); display: flex; flex-direction: column; justify-content: center; transition: all 0.5s ease; }
.upload-container.success-mode { border-color: #4caf50; background: rgba(20, 60, 20, 0.5); box-shadow: 0 0 40px rgba(76, 175, 80, 0.3); }
.upload-container.error-mode { border-color: #ff4444; background: rgba(60, 10, 10, 0.6); box-shadow: 0 0 40px rgba(255, 0, 0, 0.3); }
.error-message { position: absolute; bottom: -40px; left: 0; width: 100%; font-size: 0.8rem; text-align: center; color: #ff6666; opacity: 0; transition: opacity 0.3s ease; font-weight: bold; pointer-events: none; }
.upload-container.error-mode .error-message { opacity: 1; }

.drop-zone { width: 100%; height: 100%; min-height: 200px; border: 2px dashed rgba(255, 255, 255, 0.2); border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; text-align: center; }
.drop-zone:hover, .drop-zone.dragover { border-color: #fff; background: rgba(255, 255, 255, 0.03); }
.drop-zone p { font-size: 1.1rem; font-weight: bold; margin: 0 0 10px 0; color: #fff; }
.drop-zone span { font-size: 0.75rem; color: rgba(255, 255, 255, 0.4); }

.progress-view, .success-view { display: none; flex-direction: column; justify-content: center; height: 100%; }
.file-info { display: flex; justify-content: space-between; font-size: 0.75rem; margin-bottom: 10px; color: #ccc; }
.progress-bar-bg { width: 100%; height: 4px; background: rgba(255, 255, 255, 0.1); border-radius: 2px; margin-bottom: 10px; overflow: hidden; }
.progress-bar-fill { height: 100%; width: 0%; background: #fff; box-shadow: 0 0 10px rgba(255,255,255,0.5); transition: width 0.1s linear; }
.upload-stats { font-size: 0.7rem; color: #777; text-align: right; }
.success-title { color: #4caf50; font-size: 0.9rem; margin-bottom: 25px; font-weight: bold; text-transform: uppercase; text-align: center;}
.link-wrapper { position: relative; width: 100%; height: 46px; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.15); border-radius: 4px; display: flex; align-items: center; padding: 0 5px 0 15px; }
.link-input { flex-grow: 1; background: transparent; border: none; color: #fff; font-size: 0.85rem; outline: none; width: 100%; padding-right: 10px; }
.copy-btn { width: 36px; height: 36px; background: rgba(255,255,255,0.08); border: none; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #aaa; }
.copy-btn:hover { background: rgba(255,255,255,0.2); color: #fff; }
.copy-btn svg { width: 18px; height: 18px; fill: currentColor; }
.reset-btn { margin-top: 25px; background: transparent; border: none; color: rgba(255,255,255,0.3); font-size: 0.7rem; cursor: pointer; text-decoration: underline; width: 100%; }
.reset-btn:hover { color: #fff; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); z-index: 999; display: flex; align-items: center; justify-content: center; animation: fadeOverlay 0.4s ease forwards; }
.info-card { width: 500px; background: #0a0a0a; border: 1px solid #333; padding: 35px; color: #ddd; box-shadow: 0 20px 60px rgba(0,0,0,1); animation: fadeInUp 0.5s forwards; }
.info-card.fade-out { animation: fadeOut 0.3s forwards; }
.info-header { display: flex; align-items: center; border-bottom: 1px solid #222; padding-bottom: 15px; margin-bottom: 20px; }
.info-header svg { width: 24px; height: 24px; fill: #fff; margin-right: 12px; }
.info-header h2 { margin: 0; font-size: 1.1rem; font-weight: normal; }
.info-card p { font-size: 0.85rem; line-height: 1.6; margin: 0 0 15px 0; color: #888; }
.card-buttons { display: flex; gap: 15px; }
.btn { flex: 1; padding: 12px; border: 1px solid #333; background: transparent; color: #888; font-size: 0.85rem; cursor: pointer; text-align: center; transition: all 0.2s; }
.btn:hover { border-color: #666; color: #fff; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; border-color: #333; color: #555; }
.btn:disabled:hover { border-color: #333; color: #555; background: transparent; }
.btn.btn-primary { background: #fff; color: #000 !important; border: 1px solid #fff; font-weight: bold; }
.btn.btn-primary:hover { background: #ddd; border-color: #ddd; }
.btn.btn-primary:disabled { background: rgba(255,255,255,0.1); color: #555 !important; border-color: rgba(255,255,255,0.1); }

.auth-wrapper-column { display: flex; flex-direction: column; align-items: center; }
.auth-card { width: 400px; animation: fadeInUp 0.3s ease forwards; display: flex; flex-direction: column; }
.auth-card.fade-out { animation: fadeOut 0.3s forwards; }
.auth-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.auth-title-wrap { display: flex; align-items: center; gap: 10px; }
.auth-title-wrap svg { width: 24px; height: 24px; fill: #fff; }
.auth-header h2 { margin: 0; color: #fff; font-size: 1.2rem; letter-spacing: 1px; font-weight: bold; }
.close-cross { background: none; border: none; color: #777; font-size: 1.8rem; cursor: pointer; padding: 0; line-height: 1; }
.close-cross:hover { color: #fff; }

.auth-input { width: 100%; padding: 14px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 4px; color: #fff; outline: none; transition: all 0.3s; margin-bottom: 12px; }
.auth-input:focus { border-color: #fff; background: rgba(0,0,0,0.5); }
.auth-input.input-error { border-color: #ff4444; background: rgba(80, 0, 0, 0.2); box-shadow: 0 0 10px rgba(255, 0, 0, 0.1); }

.captcha-wrapper { display: flex; gap: 10px; margin-bottom: 12px; margin-top: 15px; }
.captcha-img-box { flex-grow: 1; min-width: 180px; height: 46px; display: flex; align-items: center; justify-content: center; background: #222; border-radius: 4px; border: 1px solid rgba(255,255,255,0.1); }
.captcha-img-box svg { width: 100%; height: 100%; }
.captcha-inp { width: 100px !important; margin-bottom: 0 !important; text-align: center; letter-spacing: 4px; font-weight: bold; font-size: 1.1rem; text-transform: uppercase; }
.refresh-captcha { background: none; border: none; color: #aaa; font-size: 1.4rem; cursor: pointer; padding: 0 8px; }
.refresh-captcha:hover { color: #fff; }

.big-action-btn { width: 100%; margin-top: 15px; padding: 15px; font-size: 1rem; letter-spacing: 2px; border-radius: 4px; display: flex; justify-content: center; align-items: center; }
.text-center { text-align: center; letter-spacing: 3px; font-size: 1.1rem; }
.switch-mode { margin-top: 20px; font-size: 0.8rem; color: #888; text-align: center; }
.switch-mode button { background: none; border: none; color: #fff; cursor: pointer; text-decoration: underline; margin-left: 5px; font-weight: bold; padding: 0; }
.auth-bottom-error { margin-top: 20px; color: #ff5555; font-size: 0.9rem; text-align: center; font-weight: bold; min-height: 1rem; text-shadow: 0 2px 4px rgba(0,0,0,1); opacity: 0; transition: opacity 0.3s; }
.auth-bottom-error.show { opacity: 1; }

.user-profile-widget { position: relative; top: auto; right: auto; display: flex; align-items: center; gap: 12px; padding: 8px 15px; background: transparent; border-radius: 8px; cursor: pointer; transition: all 0.2s ease; }
.user-profile-widget:hover, .user-profile-widget.active { background: rgba(255, 255, 255, 0.08); }
.user-avatar { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.user-name { font-size: 0.95rem; font-weight: bold; color: #eee; letter-spacing: 0.5px; }

.profile-dropdown { position: absolute; top: calc(100% + 12px); right: 0; width: 200px; background: #111; border: 1px solid #252525; border-radius: 8px; display: flex; flex-direction: column; box-shadow: 0 15px 40px rgba(0,0,0,0.9); overflow: hidden; z-index: 25; opacity: 0; visibility: hidden; transform: translateY(-15px) scale(0.98); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); pointer-events: none; }
.user-profile-widget.active .profile-dropdown { opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto; }

.dropdown-item { width: 100%; padding: 12px 20px; color: #ccc; font-size: 0.9rem; transition: background 0.2s; border-bottom: 1px solid #1a1a1a; display: flex; align-items: center; justify-content: space-between; cursor: pointer; box-sizing: border-box; }
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: #1f1f1f; color: #fff; }
.dropdown-item.danger { color: #ff4444; }
.dropdown-item.danger:hover { background: rgba(220, 20, 20, 0.15); }
.settings-icon { width: 18px; height: 18px; fill: #888; transition: fill 0.2s; }
.dropdown-item:hover .settings-icon { fill: #fff; }
.logout-icon { width: 18px; height: 18px; fill: #ff4444; }
.help-icon { width: 18px; height: 18px; fill: #888; transition: fill 0.2s; }
.dropdown-item:hover .help-icon { fill: #fff; }
.dropdown-divider { height: 1px; background: #252525; margin: 0; }

#settings-card { width: 450px; }
.settings-content { display: flex; flex-direction: column; gap: 20px; animation: fadeOverlay 0.3s ease; }
.settings-section { display: flex; flex-direction: column; gap: 10px; }
.settings-section label { font-size: 0.8rem; color: #888; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }
.avatar-upload-row { display: flex; align-items: center; gap: 15px; }
.settings-avatar { width: 70px; height: 70px; border-radius: 8px; object-fit: cover; border: 1px solid rgba(255,255,255,0.1); }
.danger-btn { border-color: #ff4444 !important; color: #ff4444 !important; }
.danger-btn:hover { background: rgba(255, 68, 68, 0.1) !important; color: #fff !important; }
.danger-btn-solid { background: #ff4444; color: #000; border: 1px solid #ff4444; font-weight: bold; }
.danger-btn-solid:hover { background: #cc0000; border-color: #cc0000; color: #fff; }
#settings-msg { margin-top: 10px; text-align: center; font-size: 0.9rem; font-weight: bold; min-height: 1rem; }
.confirm-view { text-align: center; padding: 10px 0; }
.warn-icon-box { width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 68, 68, 0.1); display: flex; align-items: center; justify-content: center; margin: 0 auto 15px auto; border: 1px solid rgba(255, 68, 68, 0.3); }
.warn-icon-box svg { width: 28px; height: 28px; fill: #ff4444; }
.warn-title { margin: 0 0 10px 0; color: #ff4444; font-size: 1.2rem; letter-spacing: 1px; }
.warn-text { font-size: 0.9rem; color: #aaa; margin-bottom: 25px; line-height: 1.5; }
.confirm-actions { display: flex; gap: 10px; }

.lang-container { position: fixed; bottom: 30px; right: 30px; z-index: 100; display: flex; align-items: center; gap: 15px; }
.lang-separator { font-size: 1.5rem; color: rgba(255,255,255,0.2); }
.lang-item { display: flex; flex-direction: column; align-items: center; cursor: pointer; opacity: 0.4; transition: all 0.3s; }
.lang-item:hover { opacity: 0.8; }
.lang-item.active { opacity: 1; transform: scale(1.1); }
.lang-code { font-size: 0.8rem; margin-bottom: 5px; font-weight: bold; }
.flag-svg { width: 24px; height: 16px; box-shadow: 0 0 5px rgba(0,0,0,0.5); }

.floating-help { position: fixed; bottom: 15px; left: 15px; z-index: 100; display: flex; align-items: center; flex-direction: row; gap: 15px; cursor: pointer; text-decoration: none; }
.help-icon-box { width: 50px; height: 50px; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); transition: all 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.help-icon-box svg { width: 24px; height: 24px; fill: #fff; }
.help-text { color: #fff; font-size: 0.9rem; font-weight: bold; opacity: 0; transform: translateX(-20px); transition: all 0.3s ease; pointer-events: none; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.floating-help:hover .help-icon-box { background: #fff; border-color: #fff; transform: scale(1.1); }
.floating-help:hover .help-icon-box svg { fill: #000; }
.floating-help:hover .help-text { opacity: 1; transform: translateX(0); }

.copyright { position: absolute; bottom: -60px; left: 0; width: 100%; text-align: center; color: rgba(255,255,255,0.2); font-size: 0.75rem; pointer-events: auto; }
.copyright a { color: rgba(255,255,255,0.4); transition: all 0.2s; text-decoration: none; font-weight: bold; border-bottom: 1px dashed rgba(255,255,255,0.2); }
.copyright a:hover { color: #00a8ff; border-color: #00a8ff; }