/* NovaUpload Cosmic Theme Stylesheet */
* {
    box-sizing: border-box;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    margin: 0;
    padding: 0;
}
body {
    background-color: #04020c;
    color: #f8fafc;
    min-height: 100vh;
    overflow-x: hidden;
}
#galaxy-canvas {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}
.nebula-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
}
.nebula-1 { background: #c70036; top: -150px; right: -100px; }
.nebula-2 { background: #5a189a; bottom: -150px; left: -100px; }

.cosmic-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px;
}
.cosmic-navbar {
    background: rgba(15, 9, 35, 0.75);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 15px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.brand-logo {
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.25rem;
}
.nav-links { display: flex; gap: 10px; align-items: center; }
.btn-ruby {
    background: linear-gradient(135deg, #c70036, #7209b7);
    color: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(199, 0, 54, 0.45);
    transition: 0.3s;
    display: inline-block;
}
.btn-ruby:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(255, 30, 86, 0.8); }
.btn-cyan {
    background: linear-gradient(135deg, #00b4d8, #4361ee);
    color: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
}
.btn-outline {
    background: rgba(255,255,255,0.08);
    color: #fff;
    padding: 10px 18px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.15);
}
.main-hero { text-align: center; margin-top: 30px; }
.hero-title { font-size: 2.3rem; font-weight: 900; margin-bottom: 12px; }
.hero-title span { color: #ff1e56; }
.hero-subtitle { color: #cbd5e1; margin-bottom: 30px; }

.upload-portal-card {
    background: rgba(15, 9, 35, 0.65);
    backdrop-filter: blur(18px);
    border: 2px dashed rgba(157, 78, 221, 0.5);
    border-radius: 24px;
    padding: 45px 25px;
    margin-bottom: 35px;
    transition: 0.3s;
}
.upload-portal-card:hover { border-color: #c70036; box-shadow: 0 0 35px rgba(199, 0, 54, 0.25); }
.dropzone-area { cursor: pointer; display: block; }
.portal-icon { font-size: 3.5rem; margin-bottom: 12px; }
.dropzone-area p { color: #94a3b8; margin: 10px 0 22px; font-size: 0.9rem; }

/* Blur Lock & Result Box */
.result-card {
    background: rgba(18, 10, 46, 0.82);
    border: 1px solid rgba(199, 0, 54, 0.5);
    border-radius: 24px;
    padding: 28px;
    text-align: right;
    position: relative;
}
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.result-body-wrapper { position: relative; }
.result-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 24px;
    align-items: center;
}
.blurred-locked-content {
    filter: blur(16px) brightness(0.7);
    pointer-events: none;
    user-select: none;
}
.unlocked-content {
    filter: blur(0);
    transition: filter 0.7s ease;
}
.preview-box img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 14px; }
.copy-row { display: flex; gap: 8px; margin: 8px 0 18px; }
.copy-row input, .auth-card input, .file-item-card input {
    width: 100%;
    background: #060311;
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 11px 14px;
    border-radius: 10px;
}
.guest-lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.lock-modal-box {
    background: rgba(9, 5, 24, 0.92);
    border: 2px solid #c70036;
    border-radius: 22px;
    padding: 28px;
    text-align: center;
    max-width: 440px;
    box-shadow: 0 0 40px rgba(199, 0, 54, 0.5);
}
.lock-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }

/* Auth & Dashboard */
.auth-wrapper { display: flex; justify-content: center; align-items: center; min-height: 85vh; }
.auth-card {
    background: rgba(15, 9, 35, 0.85);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 24px;
    padding: 35px;
    width: 100%;
    max-width: 430px;
}
.auth-card input { margin: 8px 0 18px; }
.full-width { width: 100%; padding: 14px; }
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}
.file-item-card {
    background: rgba(15, 9, 35, 0.8);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 16px;
}
.file-item-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; margin-bottom: 10px; }
.file-actions { display: flex; gap: 8px; margin-top: 10px; }
.btn-delete { background: rgba(239,68,68,0.2); color: #fca5a5; padding: 10px 14px; border-radius: 10px; text-decoration: none; }
@media (max-width: 768px) { .result-grid { grid-template-columns: 1fr; } }
