:root { --bg: #0b0f14; --card:#121923; --accent:#ff3333; --text:#e6f0ff; --muted:#8aa0b8; --danger:#ff5555; }
* { box-sizing: border-box; }
body { margin:0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; background: radial-gradient(1000px 600px at 50% -200px, #3d1414 0%, #0b0f14 60%); color: var(--text); min-height: 100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; padding: 24px; }
.logo-container { margin-bottom: -50px; z-index: 10; animation: slideUp 0.6s ease-out forwards; }
.card { width:100%; max-width: 560px; background: var(--card); border:1px solid rgba(255,255,255,.06); border-radius: 18px; box-shadow: 0 10px 40px rgba(0,0,0,.45); overflow:hidden; animation: slideUp 0.6s ease-out 0.1s forwards; opacity: 0; }
.header { padding: 48px 26px 6px 26px; display:flex; flex-direction:column; align-items:center; gap: 12px; text-align:center; }
.logo { width: 140px; height: 140px; display:grid; place-items:center; transition: transform 0.3s ease; }
.logo:hover { transform: scale(1.1); }
.logo img { width: 130px; height: auto; filter: drop-shadow(0 8px 25px rgba(255,51,51,.5)); }
h1 { font-size: 22px; margin:6px 0 0 0; letter-spacing:.2px; }
.content { padding: 22px 26px 8px 26px; display:grid; gap:14px; }
label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 8px; }
input[type="text"] { width:100%; padding: 14px 14px; border-radius: 12px; border:1px solid #ffffff; background: #ffffff; color: #0b0f14; font-size: 16px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
input[type="text"]::placeholder { color: #8aa0b8; }
input[type="text"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,51,51,0.2); }
.row { display:flex; gap:10px; align-items:center; }
button { appearance:none; border:0; border-radius: 12px; padding: 12px 16px; font-weight: 600; cursor:pointer; transition: transform .04s ease, filter .2s ease, background .2s ease, box-shadow 0.2s; }
.btn { background: #1b2735; color: var(--text); border:1px solid rgba(255,255,255,.08); }
.btn:hover { filter: brightness(1.2); }
.btn-primary { background: var(--accent); color:#fff; box-shadow: 0 4px 14px rgba(255,51,51,0.2); }
.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 6px 20px rgba(255,51,51,0.3); }
.btn-danger { background: var(--danger); color: #fff; }
button:active { transform: scale(.98); }
.muted { color: var(--muted); font-size: 13px; }
.result { border-radius: 12px; padding: 12px 14px; background: #0f1722; border:1px solid rgba(255,255,255,.06); display:none; animation: fadeIn 0.3s ease; }
.result.ok { display:block; border-color: rgba(33,208,122,.5); background: rgba(33,208,122,.08); color: #21d07a; }
.result.err { display:block; border-color: rgba(255,85,85,.5); background: rgba(255,85,85,.08); }
.small { font-size:12px; color:#a8c1db; }
footer { padding: 14px 26px 20px 26px; display:flex; justify-content:space-between; align-items:center; }
a { color:#ff7f7f; text-decoration:none; transition: color 0.2s; }
a:hover { color: var(--accent); }

/* Modal */
.modal-backdrop { position: fixed; inset:0; background: rgba(0,0,0,.6); display:none; align-items:center; justify-content:center; padding: 20px; z-index: 50; backdrop-filter: blur(4px); }
.modal { width:100%; max-width: 520px; background:#101723; border:1px solid rgba(255,255,255,.08); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.5); overflow:hidden; animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.modal header { padding:16px 18px; border-bottom:1px solid rgba(255,255,255,.06); font-weight:700; background: rgba(255,255,255,0.02); }
.modal .body { padding: 18px; display:grid; gap:8px; }
.modal label { margin-bottom: 6px; font-weight: 700; color: var(--text); font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.modal .actions { padding: 16px 18px; border-top:1px solid rgba(255,255,255,.06); display:flex; gap:10px; justify-content:flex-end; }
.center { text-align:center; margin-bottom: 18px; line-height: 1.6; }
.modal-detail { font-size: 15px; display: flex; justify-content: center; gap: 8px; align-items: baseline; }
.modal-detail .label { color: var(--muted); font-weight: 600; font-size: 110%; }
.code-tag { background: rgba(255, 51, 51, 0.15); color: var(--accent); padding: 2px 8px; border-radius: 6px; font-family: monospace; font-weight: 700; border: 1px solid rgba(255, 51, 51, 0.3); font-size: 110%; }
.rank-tag { color: var(--accent); font-weight: 700; font-size: 115%; }
.duration-tag { color: var(--accent); font-weight: 700; font-size: 115%; }

/* Success Modal Specifics */
.modal-success { border-color: rgba(33,208,122,.3); }
.modal-success header { color: #21d07a; }
.success-icon { font-size: 64px; color: #21d07a; margin-bottom: 10px; animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.modal-success h2 { margin: 0 0 10px 0; font-size: 20px; }

/* Animations */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.3); }
  50% { opacity: 1; transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}
