/* Base Styling */
body {
    background: linear-gradient(135deg, #111 0%, #222 100%);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* User Info Bar - POSITIONED AT THE TOP */
#userInfoBar {
    backdrop-filter: blur(10px);
    animation: slideDown 0.3s ease-out;
    position: sticky;
    top: 0;
    z-index: 40;
    width: 100%;
}

/* Navigation Styling - POSITIONED BELOW USER INFO */
nav {
    position: relative;
    z-index: 30;
}

.nav-item {
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #ff8c00, #ffb347);
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

/* Card Styling */
.card {
    background: linear-gradient(145deg, rgba(40,40,40,0.8) 0%, rgba(30,30,30,0.9) 100%);
    border-top: 2px solid rgba(255,140,0,0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 15px 35px rgba(255,140,0,0.2);
    transform: translateY(-5px);
}

/* Button Styling */
.btn-primary {
    background: linear-gradient(to right, #ff8c00 0%, #ffb347 100%);
    box-shadow: 0 4px 15px rgba(255,140,0,0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(255,140,0,0.6);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Login Modal Styling */
#loginModal {
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
    z-index: 50;
}

#loginModal .bg-secondary {
    animation: slideUp 0.3s ease-out;
    border: 1px solid rgba(255,140,0,0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px rgba(255,140,0,0.5);
    }
    to {
        box-shadow: 0 0 20px rgba(255,140,0,0.8), 0 0 30px rgba(255,140,0,0.3);
    }
}

.glow-effect {
    animation: glow 2s infinite alternate;
}

/* Feature Button Styling */
.see-features-btn {
    background: none;
    border: none;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.feature-icon {
    filter: drop-shadow(0 0 8px rgba(255,140,0,0.7));
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu a {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 140, 0, 0.1);
}

#mobile-menu a:hover {
    color: #ff8c00;
    padding-left: 8px;
}

/* FAQ Animations */
.faq-item {
    transition: all 0.3s ease;
}

.faq-button {
    transition: all 0.3s ease;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    opacity: 0;
}

.faq-content.show {
    max-height: 500px;
    opacity: 1;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.rotate {
    transform: rotate(180deg);
}

@keyframes faqClick {
    0% { transform: scale(1); }
    50% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

.faq-click-animation {
    animation: faqClick 0.3s ease;
}

/* Price Styling for Free Ranks - UPDATED TO SHOW 0RP */
.rank-price.free {
    color: #ff8c00 !important;
    position: relative;
    font-weight: bold;
}

.permission-price.free {
    color: #10b981 !important;
    position: relative;
    font-weight: bold;
}

.permission-price.free::after {
    content: '0RP';
    position: absolute;
    top: -5px;
    right: -30px;
    background: #119468;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

/* Loading State */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
   100% {
        left: 100%;
    }
}

/* Error State */
.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Success State */
.success {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    #loginModal .bg-secondary {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }
    
    .rank-price.free::after,
    .permission-price.free::after {
        position: static;
        display: block;
        margin-top: 5px;
    }
}

/* Print Styles */
@media print {
    #loginModal,
    #userInfoBar {
        display: none !important;
    }
}