/* ============ COMMON STYLES - SPACE THEME ============ */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #0D0B2E 0%, #1A0A2E 30%, #2D1B4E 60%, #1A0A2E 100%);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    direction: rtl;
}

/* Stars */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 2s infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.2; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.3); }
}

/* Crescent Moon */
.crescent-moon {
    position: fixed;
    top: 20px;
    left: 30px;
    font-size: 3em;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
    animation: moonFloat 6s ease-in-out infinite;
    z-index: 1;
}

@keyframes moonFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* Floating Orbs */
.floating-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.orb-1 {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #FFD700, #FFD700 40%, transparent);
    bottom: 30%;
    left: 15%;
    animation: orbFloat 8s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.orb-2 {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #7B68EE, #7B68EE 40%, transparent);
    bottom: 20%;
    right: 20%;
    animation: orbFloat 10s ease-in-out infinite reverse;
    box-shadow: 0 0 10px rgba(123, 104, 238, 0.5);
}

.orb-3 {
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #FF6B6B, #FF6B6B 40%, transparent);
    top: 40%;
    right: 10%;
    animation: orbFloat 7s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(255, 107, 107, 0.5);
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(20px, -30px); }
    50% { transform: translate(-10px, -50px); }
    75% { transform: translate(30px, -20px); }
}

/* Glass effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.glass-input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 1em;
    outline: none;
    transition: all 0.3s ease;
}

.glass-input:focus {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
    background: rgba(255, 255, 255, 0.12);
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Buttons */
.btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 14px;
    font-family: 'Cairo', sans-serif;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, #7B2FBE, #9C27B0);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #8E3AD0, #AB47BC);
    box-shadow: 0 8px 25px rgba(123, 47, 190, 0.4);
}

.btn-dark {
    background: rgba(30, 20, 50, 0.8);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-dark:hover {
    background: rgba(40, 30, 60, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-gold {
    background: linear-gradient(135deg, #FFD700, #FFC107);
    color: #1A0A2E;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #FFE44D, #FFD54F);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.btn-green {
    background: linear-gradient(135deg, #4CAF50, #43A047);
    color: #fff;
}

.btn-green:hover {
    background: linear-gradient(135deg, #66BB6A, #4CAF50);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.btn-blue {
    background: linear-gradient(135deg, #2196F3, #1E88E5);
    color: #fff;
}

.btn-red {
    background: linear-gradient(135deg, #F44336, #E53935);
    color: #fff;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9em;
    width: auto;
}

/* Toast */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 28px;
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 0.95em;
    z-index: 10000;
    transition: bottom 0.4s ease;
    backdrop-filter: blur(15px);
}

.toast.show {
    bottom: 30px;
}

.toast.error {
    background: rgba(244, 67, 54, 0.9);
    color: #fff;
    border: 1px solid rgba(244, 67, 54, 0.5);
}

.toast.success {
    background: rgba(76, 175, 80, 0.9);
    color: #fff;
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.toast.info {
    background: rgba(33, 150, 243, 0.9);
    color: #fff;
    border: 1px solid rgba(33, 150, 243, 0.5);
}

/* Pulse dot */
.pulse-dot {
    color: #4CAF50;
    font-size: 0.6em;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Selection */
::selection {
    background: rgba(255, 215, 0, 0.3);
    color: #FFD700;
}
