File size: 14,076 Bytes
c5893c2 53a0c46 c5893c2 53a0c46 c5893c2 53a0c46 c5893c2 53a0c46 c5893c2 53a0c46 c5893c2 53a0c46 c5893c2 53a0c46 c5893c2 53a0c46 c5893c2 53a0c46 c5893c2 53a0c46 c5893c2 53a0c46 c5893c2 53a0c46 c5893c2 53a0c46 c5893c2 53a0c46 c5893c2 53a0c46 c5893c2 53a0c46 c5893c2 53a0c46 c5893c2 53a0c46 c5893c2 53a0c46 c5893c2 53a0c46 c5893c2 53a0c46 c5893c2 53a0c46 c5893c2 53a0c46 c5893c2 53a0c46 c5893c2 53a0c46 c5893c2 53a0c46 c5893c2 53a0c46 c5893c2 53a0c46 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 | *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--black: #080808;
--white: #ffffff;
--gray1: #111111;
--gray2: #1a1a1a;
--gray3: #2a2a2a;
--gray4: #444444;
--gray5: #888888;
--gray6: #bbbbbb;
--blur: blur(3.5px);
--glass-bg: rgba(255,255,255,0.04);
--glass-border: rgba(255,255,255,0.09);
--radius: 16px;
--radius-sm: 10px;
}
html, body { height: 100%; background: var(--black); color: var(--white); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.6; overflow-x: hidden; }
.noise { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.025; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 200px 200px; }
header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; background: rgba(8,8,8,0.75); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-bottom: 0.5px solid var(--glass-border); }
.logo { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 700; letter-spacing: 0.5px; }
.logo em { font-style: normal; color: var(--gray5); font-weight: 400; }
.header-right { display: flex; align-items: center; gap: 20px; }
.status-bar { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--gray5); letter-spacing: 1px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gray4); display: inline-block; }
.dot.connected { background: #4ade80; }
.dot.green { background: #4ade80; }
.user-badge { display: flex; align-items: center; gap: 10px; font-size: 12px; background: var(--glass-bg); border: 0.5px solid var(--glass-border); border-radius: 30px; padding: 6px 14px; backdrop-filter: var(--blur); }
.user-badge.hidden { display: none; }
#user-cp { color: var(--gray5); font-variant-numeric: tabular-nums; letter-spacing: 1px; }
#user-name { color: var(--white); font-weight: 500; }
.logout-btn { background: none; border: none; color: var(--gray5); cursor: pointer; font-size: 14px; padding: 0; transition: color 0.2s; }
.logout-btn:hover { color: var(--white); }
main { min-height: 100vh; padding-top: 80px; position: relative; z-index: 1; }
.view { display: none; padding: 40px 28px; max-width: 500px; margin: 0 auto; animation: fadeUp 0.35s ease; }
.view.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
/* ββ AUTH ββ */
.auth-wrap { display: flex; flex-direction: column; gap: 20px; }
.usb-card { background: var(--glass-bg); border: 0.5px solid var(--glass-border); backdrop-filter: var(--blur); border-radius: var(--radius); padding: 28px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: border-color 0.3s; }
.usb-card.detected { border-color: #4ade8066; background: rgba(74,222,128,0.04); }
.usb-card.detected .usb-icon { color: #4ade80; }
.usb-icon { color: var(--gray5); transition: color 0.3s; }
.usb-card p { font-size: 14px; color: var(--gray6); }
.usb-card small { font-size: 12px; color: var(--gray4); }
.auth-tabs { display: flex; gap: 4px; background: var(--gray1); border-radius: var(--radius-sm); padding: 4px; }
.auth-tab { flex: 1; background: none; border: none; color: var(--gray5); font-size: 13px; padding: 10px; border-radius: 8px; cursor: pointer; transition: background 0.2s, color 0.2s; font-family: inherit; }
.auth-tab.active { background: var(--gray2); color: var(--white); }
.form-glass { background: var(--glass-bg); border: 0.5px solid var(--glass-border); backdrop-filter: var(--blur); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.form-glass.hidden { display: none; }
label { font-size: 11px; color: var(--gray5); letter-spacing: 1px; text-transform: uppercase; }
label small { font-size: 10px; text-transform: none; letter-spacing: 0; color: var(--gray4); }
input[type=text], input[type=password], input[type=date], input[type=number] { background: rgba(255,255,255,0.05); border: 0.5px solid var(--glass-border); border-radius: var(--radius-sm); color: var(--white); font-size: 14px; padding: 11px 14px; outline: none; width: 100%; transition: border-color 0.2s; font-family: inherit; }
input:focus { border-color: rgba(255,255,255,0.3); }
input::placeholder { color: var(--gray4); }
.form-error { background: rgba(239,68,68,0.08); border: 0.5px solid rgba(239,68,68,0.25); border-radius: 8px; padding: 10px 14px; font-size: 13px; color: #fca5a5; }
.form-error.hidden { display: none; }
.usb-mini { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--gray5); padding: 8px 0; }
.btn-primary { background: var(--white); color: var(--black); border: none; border-radius: var(--radius-sm); padding: 13px 24px; font-size: 14px; font-weight: 700; cursor: pointer; width: 100%; margin-top: 4px; transition: opacity 0.2s, transform 0.15s; letter-spacing: 0.3px; font-family: inherit; }
.btn-primary:hover { opacity: 0.88; }
.btn-primary:active { transform: scale(0.98); }
/* ββ KEY CREATED ββ */
.key-created-wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; padding-top: 20px; }
.key-icon { font-size: 52px; }
.key-created-wrap h2 { font-size: 26px; font-weight: 700; }
.key-sub { color: var(--gray5); font-size: 14px; }
.key-info-box { background: var(--glass-bg); border: 0.5px solid var(--glass-border); backdrop-filter: var(--blur); border-radius: var(--radius); padding: 24px 28px; width: 100%; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.key-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.key-label { font-size: 11px; color: var(--gray5); letter-spacing: 1px; text-transform: uppercase; }
.key-value { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.key-note { font-size: 12px; color: var(--gray4); max-width: 320px; line-height: 1.6; }
/* ββ HOME ββ */
.hero { margin-bottom: 44px; padding-top: 16px; }
.hero h1 { font-size: clamp(40px, 8vw, 60px); font-weight: 700; line-height: 1.05; letter-spacing: -2px; margin-bottom: 14px; }
.hero p { font-size: 14px; color: var(--gray5); }
.hero strong { color: var(--white); }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card-btn { background: var(--glass-bg); border: 0.5px solid var(--glass-border); backdrop-filter: var(--blur); border-radius: var(--radius); padding: 26px 22px; cursor: pointer; color: var(--white); text-align: left; transition: background 0.2s, border-color 0.2s, transform 0.15s; display: flex; flex-direction: column; gap: 10px; font-family: inherit; }
.card-btn:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.16); transform: translateY(-2px); }
.card-icon { width: 42px; height: 42px; border: 0.5px solid var(--glass-border); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.card-title { font-size: 15px; font-weight: 600; }
.card-sub { font-size: 11px; color: var(--gray5); }
/* ββ BACK ββ */
.back-bar { margin-bottom: 24px; }
.back-bar button { background: none; border: none; color: var(--gray5); cursor: pointer; font-size: 13px; padding: 0; transition: color 0.2s; font-family: inherit; }
.back-bar button:hover { color: var(--white); }
h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 24px; }
/* ββ QR ββ */
.qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 28px; }
#qr-img { width: 210px; height: 210px; border-radius: var(--radius); border: 0.5px solid var(--glass-border); background: #fff; padding: 8px; }
.qr-timer { display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--gray5); letter-spacing: 1px; gap: 2px; }
#qr-countdown { font-size: 20px; font-weight: 700; color: var(--white); font-variant-numeric: tabular-nums; }
.file-drop-zone { border: 0.5px dashed var(--gray3); border-radius: var(--radius); padding: 28px; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--gray5); margin-bottom: 16px; }
.file-drop-zone:hover { border-color: var(--gray5); background: var(--glass-bg); }
.file-drop-zone p { font-size: 13px; }
.file-drop-zone small { font-size: 11px; color: var(--gray4); }
.peer-status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #4ade80; justify-content: center; margin-top: 12px; }
.peer-status.hidden { display: none; }
/* ββ CAMERA ββ */
.camera-wrap { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--gray1); aspect-ratio: 1; max-width: 360px; margin: 0 auto; }
#camera-feed { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 28px; pointer-events: none; }
.corner { position: absolute; width: 22px; height: 22px; border-color: white; border-style: solid; opacity: 0.9; }
.corner.tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.corner.tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.corner.bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.corner.br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }
.scan-line { position: absolute; left: 0; right: 0; height: 1.5px; background: white; opacity: 0.5; animation: scanMove 2.5s ease-in-out infinite; }
@keyframes scanMove { 0%,100% { top: 0; } 50% { top: 100%; } }
.cam-overlay { position: absolute; inset: 0; background: rgba(8,8,8,0.65); backdrop-filter: var(--blur); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: var(--gray6); font-size: 13px; letter-spacing: 1px; }
.cam-overlay.hidden { display: none; }
/* ββ PROCESSING ββ */
.process-center { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; gap: 22px; text-align: center; }
.process-center h2 { font-size: 22px; margin-bottom: 0; }
.process-center p { color: var(--gray5); font-size: 13px; }
.process-steps { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; width: 100%; max-width: 260px; }
.step { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--gray4); transition: color 0.4s; letter-spacing: 0.5px; }
.step.done { color: var(--white); }
.step-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gray3); border: 1px solid var(--gray4); flex-shrink: 0; transition: background 0.4s; }
.step.done .step-dot { background: var(--white); border-color: var(--white); }
/* ββ TRANSFER ββ */
.transfer-header { text-align: center; margin-bottom: 28px; }
.transfer-anim { display: flex; justify-content: center; margin-bottom: 20px; }
.transfer-header h2 { font-size: 24px; }
.transfer-header p { color: var(--gray5); font-size: 13px; }
.transfer-header strong { color: var(--white); }
.files-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.file-item { background: var(--glass-bg); border: 0.5px solid var(--glass-border); backdrop-filter: var(--blur); border-radius: var(--radius-sm); padding: 14px 18px; display: flex; align-items: center; gap: 12px; }
.file-icon { width: 34px; height: 34px; border: 0.5px solid var(--glass-border); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.file-name { font-size: 13px; font-weight: 500; flex: 1; word-break: break-all; }
.file-size { font-size: 11px; color: var(--gray5); flex-shrink: 0; }
.expire-note { text-align: center; font-size: 11px; color: var(--gray4); margin-top: 12px; letter-spacing: 0.5px; }
#dl-countdown { color: var(--white); font-weight: 600; }
/* ββ SUCCESS ββ */
.success-center { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 70vh; text-align: center; gap: 14px; }
.success-icon { width: 76px; height: 76px; border-radius: 50%; border: 0.5px solid var(--glass-border); background: var(--glass-bg); backdrop-filter: var(--blur); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.success-center h2 { font-size: 26px; }
.success-center p { color: var(--gray5); }
/* ββ ANIM 1: pulsing rings ββ */
.loader-anim1 { width: 50px; height: 50px; display: inline-block; position: relative; flex-shrink: 0; }
.loader-anim1::after, .loader-anim1::before { content: ''; box-sizing: border-box; width: 50px; height: 50px; border-radius: 50%; border: 2px solid #fff; position: absolute; left: 0; top: 0; animation: anim1 2s linear infinite; }
.loader-anim1::after { animation-delay: 1s; }
@keyframes anim1 { 0% { transform: scale(0); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
/* ββ ANIM 2: data bars ββ */
.loader-anim2 { display: flex; align-items: flex-end; gap: 5px; height: 50px; }
.bar { width: 5px; background: white; border-radius: 2px; animation: barPulse 1.2s ease-in-out infinite; }
.bar:nth-child(1){animation-delay:0s;height:18px}
.bar:nth-child(2){animation-delay:.15s;height:30px}
.bar:nth-child(3){animation-delay:.3s;height:46px}
.bar:nth-child(4){animation-delay:.45s;height:34px}
.bar:nth-child(5){animation-delay:.6s;height:22px}
.bar:nth-child(6){animation-delay:.75s;height:38px}
.bar:nth-child(7){animation-delay:.9s;height:26px}
@keyframes barPulse { 0%,100%{opacity:.2;transform:scaleY(.5)} 50%{opacity:1;transform:scaleY(1)} }
@media(max-width:480px){ .action-grid{grid-template-columns:1fr} header{padding:14px 18px} .view{padding:28px 18px} }
|