/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --bg: #0a0a0f; --bg2: #141420; --accent: #a855f7; --accent2: #ec4899;
    --text: #ffffff; --text-dim: #94a3b8; --card-bg: rgba(255,255,255,0.06);
    --card-border: rgba(255,255,255,0.1); --radius: 16px; --glass-blur: 20px;
    --font: 'Outfit', sans-serif; --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
html { font-size: 16px; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100dvh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
input, textarea, select, button { font-family: inherit; border: none; outline: none; }

/* ===== SPLASH SCREEN ===== */
.splash-screen { position: fixed; inset: 0; z-index: 9999; background: var(--bg); display: flex; align-items: center; justify-content: center; transition: opacity 0.6s, visibility 0.6s; }
.splash-screen.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-content { text-align: center; }
.splash-logo { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 32px; }
.splash-icon { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; box-shadow: 0 0 30px rgba(168,85,247,0.4); animation: pulse-glow 2s infinite; }
.splash-logo h1 { font-size: 36px; font-weight: 800; letter-spacing: -1px; }
.splash-loader { width: 200px; height: 3px; background: var(--bg2); border-radius: 10px; overflow: hidden; margin: 0 auto; }
.splash-bar { width: 0%; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 10px; animation: load-bar 1.5s ease-in-out forwards; }
@keyframes load-bar { 0%{width:0%} 50%{width:70%} 100%{width:100%} }
@keyframes pulse-glow { 0%,100%{box-shadow:0 0 20px rgba(168,85,247,0.3)} 50%{box-shadow:0 0 40px rgba(168,85,247,0.6)} }

/* ===== VIEWS ===== */
.view { min-height: 100dvh; max-width: 480px; margin: 0 auto; position: relative; }
.accent { background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ===== PROFILE BACKGROUND ===== */
.profile-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--bg); }
.animated-orbs { position: absolute; inset: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; }
.orb-1 { width: 300px; height: 300px; background: var(--accent); top: -100px; left: -80px; animation: float-1 8s ease-in-out infinite; }
.orb-2 { width: 250px; height: 250px; background: var(--accent2); bottom: 20%; right: -60px; animation: float-2 10s ease-in-out infinite; }
.orb-3 { width: 200px; height: 200px; background: linear-gradient(var(--accent), var(--accent2)); top: 40%; left: 50%; animation: float-3 12s ease-in-out infinite; }
@keyframes float-1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(40px,60px)} }
@keyframes float-2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-50px,-40px)} }
@keyframes float-3 { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,40px)} }

/* ===== PROFILE HEADER ===== */
.profile-container { position: relative; z-index: 1; padding: 60px 20px 40px; }
.profile-header { text-align: center; margin-bottom: 36px; animation: fade-up 0.8s ease-out; }
.avatar-wrapper { position: relative; width: 110px; height: 110px; margin: 0 auto 20px; }
.avatar-wrapper img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; position: relative; z-index: 2; }
.avatar-ring { position: absolute; inset: -4px; border-radius: 50%; background: conic-gradient(var(--accent), var(--accent2), var(--accent)); animation: spin-ring 4s linear infinite; z-index: 1; }
.avatar-glow { position: absolute; inset: -15px; border-radius: 50%; background: radial-gradient(circle, rgba(168,85,247,0.3), transparent 70%); z-index: 0; animation: pulse-glow 3s infinite; }
.avatar-wrapper img[src=""] { background: linear-gradient(135deg, var(--accent), var(--accent2)); }
@keyframes spin-ring { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
.verified-badge { position: absolute; bottom: 2px; right: 2px; z-index: 3; font-size: 24px; color: #3b82f6; background: var(--bg); border-radius: 50%; line-height: 1; }
.profile-name { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 8px; }
.profile-bio { font-size: 15px; color: var(--text-dim); line-height: 1.5; max-width: 320px; margin: 0 auto; }

/* ===== SOCIAL ICONS ===== */
.profile-socials { display: flex; gap: 12px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.social-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--card-bg); border: 1px solid var(--card-border); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--text-dim); transition: var(--transition); backdrop-filter: blur(10px); }
.social-icon:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(168,85,247,0.3); }

/* ===== LINK CARDS ===== */
.links-container { display: flex; flex-direction: column; gap: 14px; animation: fade-up 0.8s ease-out 0.2s both; }
.link-card { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--radius); background: var(--card-bg); border: 1px solid var(--card-border); backdrop-filter: blur(var(--glass-blur)); cursor: pointer; transition: var(--transition); position: relative; overflow: hidden; }
.link-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(168,85,247,0.1), rgba(236,72,153,0.05)); opacity: 0; transition: var(--transition); }
.link-card:hover::before, .link-card:active::before { opacity: 1; }
.link-card:hover, .link-card:active { transform: translateY(-2px) scale(1.01); border-color: rgba(168,85,247,0.3); box-shadow: 0 8px 32px rgba(168,85,247,0.15); }
.link-card .link-icon { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; font-size: 16px; color: #fff; flex-shrink: 0; position: relative; z-index: 1; }
.link-card .link-info { flex: 1; position: relative; z-index: 1; }
.link-card .link-title { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.link-card .link-url { font-size: 12px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.link-card .link-arrow { color: var(--text-dim); font-size: 14px; transition: var(--transition); position: relative; z-index: 1; }
.link-card:hover .link-arrow { color: var(--accent); transform: translateX(3px); }

/* No Glass variant */
.no-glass .link-card { backdrop-filter: none; background: var(--bg2); }

/* Solid Card Style */
.card-solid .link-card { background: var(--bg2); border-color: transparent; backdrop-filter: none; }
/* Outline Card Style */
.card-outline .link-card { background: transparent; border: 2px solid var(--card-border); backdrop-filter: none; }
/* Filled Card Style */
.card-filled .link-card { background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(236,72,153,0.08)); border-color: transparent; }

/* No Animations */
.no-anim .link-card:hover, .no-anim .link-card:active { transform: none; }
.no-anim .link-card .link-arrow { transition: none; }

/* ===== FOOTER ===== */
.profile-footer { text-align: center; margin-top: 48px; padding-bottom: 30px; animation: fade-up 0.8s ease-out 0.4s both; }
.footer-brand { background: var(--card-bg); border: 1px solid var(--card-border); padding: 10px 24px; border-radius: 50px; font-size: 13px; font-weight: 600; color: var(--text-dim); cursor: pointer; transition: var(--transition); backdrop-filter: blur(10px); }
.footer-brand:hover { border-color: var(--accent); color: var(--text); }

@keyframes fade-up { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

/* ===== ADMIN PANEL ===== */
.admin-header { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: rgba(10,10,15,0.9); backdrop-filter: blur(20px); border-bottom: 1px solid var(--card-border); }
.admin-header h2 { font-size: 18px; font-weight: 700; }
.back-btn { width: 38px; height: 38px; border-radius: 10px; background: var(--card-bg); border: 1px solid var(--card-border); color: var(--text); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.back-btn:hover { border-color: var(--accent); }
.save-btn { padding: 8px 18px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 6px; }
.save-btn:hover { transform: scale(1.05); box-shadow: 0 4px 20px rgba(168,85,247,0.4); }

/* Admin Tabs */
.admin-tabs { display: flex; gap: 4px; padding: 12px 16px; background: var(--bg); border-bottom: 1px solid var(--card-border); overflow-x: auto; }
.tab-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px; border-radius: 12px; background: transparent; color: var(--text-dim); font-size: 11px; font-weight: 600; cursor: pointer; transition: var(--transition); border: 1px solid transparent; white-space: nowrap; }
.tab-btn i { font-size: 18px; }
.tab-btn.active { background: var(--card-bg); color: var(--accent); border-color: var(--card-border); }

/* Admin Body */
.admin-body { padding-bottom: 40px; }
.tab-content { display: none; padding: 16px; }
.tab-content.active { display: block; animation: fade-up 0.3s ease-out; }
.admin-section { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.section-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; margin-bottom: 18px; color: var(--text); }
.section-title i { color: var(--accent); font-size: 16px; }
.section-desc { font-size: 13px; color: var(--text-dim); margin: -10px 0 16px; line-height: 1.4; }

/* Form Elements */
.form-group { margin-bottom: 16px; }
.form-group:last-child { margin-bottom: 0; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dim); margin-bottom: 8px; }
.form-group label i { margin-right: 6px; width: 16px; text-align: center; }
.form-group input[type="text"], .form-group input[type="url"], .form-group input[type="email"],
.form-group textarea, .form-group select {
    width: 100%; padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,0.04);
    border: 1px solid var(--card-border); color: var(--text); font-size: 14px; transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); background: rgba(168,85,247,0.05); box-shadow: 0 0 0 3px rgba(168,85,247,0.1); }
.form-group textarea { resize: vertical; min-height: 70px; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
.form-group select option { background: #1a1a2e; color: #fff; }
.char-count { display: block; text-align: right; font-size: 11px; color: var(--text-dim); margin-top: 4px; }

/* Color Input */
.color-input-wrap { display: flex; gap: 10px; align-items: center; }
.color-input-wrap input[type="color"] { width: 44px; height: 44px; border: 2px solid var(--card-border); border-radius: 12px; cursor: pointer; background: transparent; padding: 2px; }
.color-input-wrap input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
.color-input-wrap input[type="color"]::-webkit-color-swatch { border: none; border-radius: 8px; }
.color-input-wrap input[type="text"] { flex: 1; }

/* Toggle Switch */
.toggle-label { display: flex !important; align-items: center; justify-content: space-between; cursor: pointer; }
.toggle-switch { position: relative; width: 48px; height: 26px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: rgba(255,255,255,0.1); border-radius: 50px; transition: var(--transition); cursor: pointer; }
.toggle-slider::before { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: var(--transition); }
.toggle-switch input:checked + .toggle-slider { background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

/* Avatar Upload */
.avatar-upload-area { display: flex; justify-content: center; }
.avatar-preview-admin { position: relative; width: 100px; height: 100px; border-radius: 50%; overflow: hidden; border: 3px solid var(--card-border); }
.avatar-preview-admin img { width: 100%; height: 100%; object-fit: cover; }
.avatar-preview-admin img[src=""] { background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.avatar-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; opacity: 0; transition: var(--transition); cursor: pointer; font-size: 11px; font-weight: 600; }
.avatar-overlay i { font-size: 18px; }
.avatar-preview-admin:hover .avatar-overlay { opacity: 1; }

/* Icon Picker */
.icon-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; max-height: 180px; overflow-y: auto; padding: 4px; }
.icon-grid::-webkit-scrollbar { width: 4px; }
.icon-grid::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }
.icon-option { width: 100%; aspect-ratio: 1; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid transparent; display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--text-dim); cursor: pointer; transition: var(--transition); }
.icon-option:hover, .icon-option.selected { background: rgba(168,85,247,0.15); color: var(--accent); border-color: var(--accent); }

/* Add Link Button */
.add-link-btn { width: 100%; padding: 14px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; }
.add-link-btn:hover { transform: scale(1.02); box-shadow: 0 4px 24px rgba(168,85,247,0.4); }

/* Admin Links List */
.admin-links-list { display: flex; flex-direction: column; gap: 10px; }
.admin-link-item { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--card-border); transition: var(--transition); }
.admin-link-item .drag-handle { cursor: grab; color: var(--text-dim); font-size: 14px; padding: 4px; }
.admin-link-item .drag-handle:active { cursor: grabbing; }
.admin-link-item .ali-icon { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; font-size: 14px; color: #fff; flex-shrink: 0; }
.admin-link-item .ali-info { flex: 1; min-width: 0; }
.admin-link-item .ali-title { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-link-item .ali-url { font-size: 11px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-link-item .ali-actions { display: flex; gap: 6px; }
.ali-action-btn { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid var(--card-border); color: var(--text-dim); font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.ali-action-btn:hover { color: var(--accent); border-color: var(--accent); }
.ali-action-btn.delete:hover { color: #ef4444; border-color: #ef4444; }
.admin-link-item.dragging { opacity: 0.5; border-color: var(--accent); }

/* Theme Grid */
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.theme-card { padding: 14px 10px; border-radius: 14px; border: 2px solid var(--card-border); cursor: pointer; text-align: center; transition: var(--transition); position: relative; overflow: hidden; }
.theme-card::before { content: ''; position: absolute; inset: 0; border-radius: 12px; opacity: 0.3; z-index: 0; }
.theme-card .theme-preview { display: flex; gap: 4px; justify-content: center; margin-bottom: 8px; position: relative; z-index: 1; }
.theme-preview .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.2); }
.theme-card .theme-name { font-size: 11px; font-weight: 700; position: relative; z-index: 1; letter-spacing: 0.3px; }
.theme-card.active, .theme-card:hover { border-color: var(--accent); box-shadow: 0 0 20px rgba(168,85,247,0.2); }
.theme-card.active::after { content: '✓'; position: absolute; top: 6px; right: 8px; font-size: 12px; color: var(--accent); font-weight: 800; }

/* Card Style Grid */
.card-style-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.card-style-option { padding: 12px 6px; border-radius: 12px; border: 2px solid var(--card-border); cursor: pointer; text-align: center; font-size: 11px; font-weight: 600; color: var(--text-dim); transition: var(--transition); }
.card-style-option.active { border-color: var(--accent); color: var(--accent); }

/* Toast */
.toast { position: fixed; bottom: -80px; left: 50%; transform: translateX(-50%); padding: 12px 24px; border-radius: 50px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; z-index: 9999; transition: bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); box-shadow: 0 8px 32px rgba(168,85,247,0.4); white-space: nowrap; }
.toast.show { bottom: 30px; }

/* Empty State */
.empty-state { text-align: center; color: var(--text-dim); font-size: 14px; padding: 24px; line-height: 2; }
.empty-state i { font-size: 32px; margin-bottom: 8px; }

/* Hide orbs when disabled */
.no-orbs .animated-orbs { display: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

/* Stagger animation for link cards */
.link-card { opacity: 0; animation: fade-up 0.5s ease-out forwards; }
.link-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2) { animation-delay: 0.15s; }
.link-card:nth-child(3) { animation-delay: 0.2s; }
.link-card:nth-child(4) { animation-delay: 0.25s; }
.link-card:nth-child(5) { animation-delay: 0.3s; }
.link-card:nth-child(6) { animation-delay: 0.35s; }
.link-card:nth-child(7) { animation-delay: 0.4s; }
.link-card:nth-child(8) { animation-delay: 0.45s; }

/* ===== ADMIN PAGE SPECIFIC ===== */
.admin-view-page { max-width: 520px; }
.admin-header h2 i { margin-right: 4px; }

/* ===== LIVE MINI PREVIEW ===== */
.mini-preview-wrap {
    padding: 16px;
    background: linear-gradient(135deg, rgba(168,85,247,0.08), rgba(236,72,153,0.04));
    border-bottom: 1px solid var(--card-border);
}
.mini-preview {
    background: var(--bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 20px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.mini-preview::before {
    content: 'LIVE PREVIEW';
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--accent);
    opacity: 0.6;
}
.mp-avatar-wrap {
    position: relative;
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
}
.mp-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}
.mp-avatar-wrap img:not([src]), .mp-avatar-wrap img[src=""] {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.mp-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(var(--accent), var(--accent2), var(--accent));
    animation: spin-ring 4s linear infinite;
    z-index: 1;
}
.mp-name {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 2px;
}
.mp-bio {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 12px;
}
.mp-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mp-link {
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mp-link i {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #fff;
    flex-shrink: 0;
}
.mp-more {
    justify-content: center;
    color: var(--text-dim);
    font-weight: 500;
    font-style: italic;
}

/* Footer brand as non-button on public page */
.profile-footer .footer-brand {
    display: inline-block;
    cursor: default;
}

/* ===== LOGIN GATE ===== */
.login-gate {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.login-gate::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--accent);
    filter: blur(120px);
    opacity: 0.2;
    top: 10%;
    left: -10%;
    animation: float-1 8s ease-in-out infinite;
}
.login-gate::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: var(--accent2);
    filter: blur(100px);
    opacity: 0.15;
    bottom: 10%;
    right: -10%;
    animation: float-2 10s ease-in-out infinite;
}
.login-gate.hide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
    pointer-events: none;
}
.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px 28px 32px;
    backdrop-filter: blur(30px);
    text-align: center;
    animation: fade-up 0.6s ease-out;
}
.login-logo {
    margin-bottom: 32px;
}
.login-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 0 30px rgba(168,85,247,0.3);
}
.login-logo h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 6px;
}
.login-subtitle {
    font-size: 14px;
    color: var(--text-dim);
}
.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.login-input-wrap > i {
    position: absolute;
    left: 16px;
    color: var(--text-dim);
    font-size: 14px;
    z-index: 1;
}
.login-input-wrap input {
    width: 100%;
    padding: 14px 48px 14px 44px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--card-border);
    color: var(--text);
    font-size: 15px;
    transition: var(--transition);
}
.login-input-wrap input:focus {
    border-color: var(--accent);
    background: rgba(168,85,247,0.05);
    box-shadow: 0 0 0 3px rgba(168,85,247,0.1);
}
.toggle-pass {
    position: absolute;
    right: 14px;
    background: none;
    color: var(--text-dim);
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}
.toggle-pass:hover { color: var(--accent); }
.login-error {
    font-size: 13px;
    color: #ef4444;
    min-height: 20px;
    font-weight: 500;
}
.login-btn {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
}
.login-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 24px rgba(168,85,247,0.4);
}
.login-btn:active { transform: scale(0.98); }
.login-footer-text {
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-dim);
    opacity: 0.5;
}
.login-btn.shake {
    animation: shake 0.4s ease-in-out;
}
@keyframes shake {
    0%,100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}
