* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: #050414; color: #ffffff; min-height: 100vh; overflow-x: hidden; position: relative; padding: 20px 0 50px 0; }

body::before { content: ''; position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(140, 123, 108, 0.12) 0%, rgba(0,0,0,0) 70%); top: -10%; left: -10%; z-index: 0; pointer-events: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; }

.back-btn {
    position: fixed; top: 25px; right: 25px; background: rgba(11, 10, 38, 0.8); backdrop-filter: blur(10px);
    color: #d9d2c5; text-decoration: none; padding: 10px 20px; border-radius: 12px; border: 1px solid #3a322b;
    font-weight: bold; display: flex; align-items: center; gap: 10px; transition: all 0.3s ease; z-index: 1000;
}
.back-btn:hover { background: #3a322b; color: #fff; transform: translateX(-5px); }

header { text-align: center; margin-bottom: 35px; margin-top: 10px; }
header h1 { font-size: 3rem; font-weight: 900; background: linear-gradient(45deg, #d9d2c5, #3a322b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
header p { color: #e1e0ff; font-size: 1rem; margin-top: 5px; font-weight: 600; }

/* لوحة الحساب والنقاط - ألوان الترا HQ */
.points-dashboard { background: #1c1815; border: 1px solid #3a322b; border-radius: 20px; padding: 25px; width: 100%; max-width: 650px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.4); margin-bottom: 40px; }
.user-status p { color: #e1e0ff; font-weight: 600; margin-bottom: 12px; }

.action-btn { background: linear-gradient(90deg, #3a322b, #1c1815); color: #e1e0ff; border: 1px solid #3a322b; padding: 12px 24px; border-radius: 10px; font-weight: bold; cursor: pointer; font-size: 0.95rem; box-shadow: 0 0 15px rgba(58, 50, 42, 0.4); transition: all 0.2s; }
.action-btn:hover { transform: translateY(-2px); border-color: #d9d2c5; box-shadow: 0 0 25px rgba(58, 50, 42, 0.7); color: #fff; }

.checkin-btn { background: linear-gradient(90deg, #d9d2c5, #3a322b); color: #1c1815; box-shadow: 0 0 15px rgba(217, 210, 197, 0.3); border: none; }
.checkin-btn:hover { box-shadow: 0 0 25px rgba(217, 210, 197, 0.6); color: #1c1815; }

.user-info-area { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.stat-box { display: flex; flex-direction: column; align-items: center; }
.stat-label { font-size: 0.85rem; color: #e1e0ff; font-weight: bold; text-transform: uppercase; }
.stat-val { font-size: 3rem; font-weight: 900; color: #d9d2c5; line-height: 1.1; margin-top: 5px; font-family: monospace; }

/* هندسة قسم العجلة والمؤشر */
.wheel-section { display: flex; flex-direction: column; align-items: center; gap: 30px; margin-bottom: 40px; }
.wheel-outer-wrapper { position: relative; width: 450px; height: 450px; }
.wheel-pointer { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); font-size: 2.5rem; color: #d9d2c5; z-index: 20; text-shadow: 0 4px 15px rgba(217, 210, 197, 0.5); }
#lucky-wheel-canvas { width: 100%; height: 100%; display: block; background: #1a1614; border-radius: 50%; border: 6px solid #3a322b; box-shadow: 0 0 40px rgba(140, 123, 108, 0.3); position: relative; z-index: 10; }

.spin-trigger-btn { background: linear-gradient(90deg, #d9d2c5, #3a322b); color: #1c1815; border: none; padding: 15px 40px; border-radius: 12px; font-size: 1.2rem; font-weight: bold; cursor: pointer; box-shadow: 0 0 20px rgba(217, 210, 197, 0.3); transition: all 0.3s; }
.spin-trigger-btn:hover:not(:disabled) { transform: scale(1.05); box-shadow: 0 0 35px rgba(217, 210, 197, 0.6); }
.spin-trigger-btn:disabled { background: #3a322b; color: #e1e0ff; box-shadow: none; cursor: not-allowed; border: 1px solid #1c1815; }

/* النوافذ المنبثقة (Modals) */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(28, 24, 21, 0.9); backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: center; z-index: 10000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; padding: 20px; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-box { background: #1c1815; border: 1px solid #3a322b; width: 100%; max-width: 420px; border-radius: 20px; padding: 30px; text-align: center; position: relative; }
.close-modal-btn { position: absolute; top: 12px; left: 12px; background: none; border: none; color: #e1e0ff; font-size: 1.8rem; cursor: pointer; }

.input-group { text-align: right; margin-bottom: 20px; }
.input-group label { font-size: 0.85rem; color: #e1e0ff; font-weight: bold; display: block; margin-bottom: 6px; }
.input-group input { width: 100%; background: #050414; border: 1px solid #3a322b; border-radius: 8px; padding: 12px; color: #ffffff; outline: none; font-size: 1rem; }
.input-group input:focus { border-color: #d9d2c5; }

.modal-submit-btn { width: 100%; background: linear-gradient(90deg, #3a322b, #1c1815); color: #e1e0ff; border: 1px solid #3a322b; padding: 12px; border-radius: 8px; font-weight: bold; cursor: pointer; font-size: 1.1rem; }
.switch-auth-text { font-size: 0.85rem; color: #e1e0ff; margin-top: 15px; cursor: pointer; text-decoration: underline; }
.switch-auth-text:hover { color: #ffffff; }

/* نافذة الفوز الفخمة */
.win-box { border: 2px solid #d9d2c5; box-shadow: 0 0 50px rgba(217, 210, 197, 0.4); }
.prize-name-tag { background: rgba(217, 210, 197, 0.1); border: 2px dashed #d9d2c5; padding: 15px; border-radius: 10px; font-size: 1.8rem; font-weight: 900; color: #d9d2c5; margin: 20px 0; text-shadow: 0 0 15px rgba(217, 210, 197, 0.3); }

@media (max-width: 768px) {
    .back-btn { position: relative; top: 0; right: 0; margin-bottom: 20px; width: 100%; justify-content: center; }
    .wheel-outer-wrapper { width: 320px; height: 320px; }
    .wheel-pointer { font-size: 2rem; top: -10px; }
    header h1 { font-size: 2.2rem; }
}