:root {
    --primary: #10b981;
    --primary-hover: #34d399;
    --bg-dark: #022c22;
    --glass: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; transition: all 0.25s ease; }

body {
    background: radial-gradient(circle at top left, #064e3b 0%, #020617 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    margin: 0;
    color: #e2e8f0;
    direction: rtl;
    overflow-x: hidden;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border);
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.main-container { width: 92%; max-width: 440px; padding: 40px 30px; text-align: center; }

/* Header */
.logo-icon { color: var(--primary); margin-bottom: 15px; }
.logo-icon svg { width: 50px; height: 50px; filter: drop-shadow(0 0 8px var(--primary)); }
.brand-title { font-size: 32px; font-weight: 800; margin: 0; letter-spacing: -1px; background: linear-gradient(to right, #fff, var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.brand-subtitle { font-size: 14px; color: #94a3b8; margin-top: 8px; }

/* Intro & Notice */
.intro-box { background: rgba(0,0,0,0.2); padding: 15px; border-radius: 16px; font-size: 13px; line-height: 1.7; color: #cbd5e1; margin: 25px 0; border: 1px solid rgba(255,255,255,0.05); }
.policy-notice { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); color: #fca5a5; padding: 12px; border-radius: 12px; font-size: 11px; text-align: justify; line-height: 1.6; margin-bottom: 20px; display: flex; align-items: flex-start; }

/* Buttons */
.btn-primary { background: var(--primary); color: #fff; border: none; padding: 14px 28px; border-radius: 14px; font-weight: 600; cursor: pointer; width: 100%; font-size: 15px; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3); }
.btn-secondary { background: transparent; border: 1px solid var(--border); color: #fff; padding: 12px; border-radius: 14px; width: 100%; margin-top: 10px; cursor: pointer; }
.btn-secondary:hover { background: rgba(255,255,255,0.05); }
.reg-disabled { font-size: 12px; color: #64748b; margin-top: 15px; }

/* Dashboard */
.user-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; background: rgba(0,0,0,0.2); padding: 10px 15px; border-radius: 50px; }
.user-info { display: flex; align-items: center; font-size: 13px; font-weight: 500; }
.user-avatar { width: 28px; height: 28px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-left: 10px; font-size: 12px; color: #000; font-weight: bold; }
.logout-link { color: #f87171; text-decoration: none; font-size: 11px; }

/* Upload Area */
.upload-area { border: 2px dashed rgba(16, 185, 129, 0.25); border-radius: 24px; padding: 40px 20px; cursor: pointer; background: rgba(0,0,0,0.1); }
.upload-area:hover { border-color: var(--primary); background: rgba(16, 185, 129, 0.05); }
.up-icon { width: 40px; color: var(--primary); margin-bottom: 15px; }
.main-text { font-weight: 600; font-size: 15px; margin: 0; }
.sub-text { font-size: 11px; color: #64748b; margin-top: 8px; }
.expiry-tag { font-size: 10px; color: var(--primary); margin-top: 15px; display: flex; align-items: center; justify-content: center; opacity: 0.8; }

/* Progress */
.progress-container { display: none; margin-top: 25px; }
.progress-info { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 8px; color: #94a3b8; }
.progress-bar-bg { background: rgba(255,255,255,0.05); height: 6px; border-radius: 10px; overflow: hidden; }
.progress-bar-fill { background: var(--primary); height: 100%; width: 0%; box-shadow: 0 0 10px var(--primary); }

/* Result */
.result-area { display: none; margin-top: 30px; text-align: right; }
.result-area label { font-size: 12px; color: #94a3b8; display: block; margin-bottom: 8px; }
.link-input-group { display: flex; direction: ltr; gap: 8px; }
.link-input { flex: 1; background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 12px; padding: 12px; color: var(--primary-hover); font-size: 13px; outline: none; }
.copy-btn { background: #1e293b; color: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 0 15px; cursor: pointer; font-size: 12px; white-space: nowrap; }
.copy-btn:hover { background: var(--primary); border-color: var(--primary); }

/* Modals */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(2, 6, 23, 0.85); backdrop-filter: blur(10px); z-index: 1000; align-items: center; justify-content: center; }
.modal-content { width: 340px; padding: 35px; }
.modal-title { font-size: 20px; margin-bottom: 25px; color: var(--primary); }
.input-group input { width: 100%; background: rgba(0,0,0,0.3); border: 1px solid var(--border); padding: 14px; border-radius: 12px; color: #fff; margin-bottom: 12px; outline: none; text-align: center; }
.btn-close { background: none; border: none; color: #64748b; margin-top: 15px; cursor: pointer; font-size: 12px; }

/* Animations */
.fade-in { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.scale-in { animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes scaleIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.hidden { display: none; }
.w-full { width: 100%; }