/**
 * Job Application Gamification Styles
 * Retro Gaming + iOS Design
 */

/* ========================================
   LEADERBOARD SECTION
   ======================================== */

.madb-gamification-leaderboard {
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.madb-gamification-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.madb-gamification-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.madb-tab {
    flex: 1;
    min-width: 50px;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.madb-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.madb-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* ========================================
   TOP USER DISPLAY
   ======================================== */

.madb-gamification-top-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.job-avatar-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    object-fit: contain;
    flex-shrink: 0;
}

.madb-gamification-user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.madb-gamification-nickname {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 0.875rem;
    color: #fff;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.madb-gamification-level {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.madb-gamification-score {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 8px rgba(102, 126, 234, 0.4);
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.4));
}

/* ========================================
   AVERAGE STATS
   ======================================== */

.madb-gamification-average {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.madb-gamification-avg-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.madb-gamification-avg-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.madb-gamification-user-stats {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   MODALS - HIDDEN BY DEFAULT
   ======================================== */

.madb-modal,
.madb-levelup-overlay,
.madb-badge-notification {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}

.madb-modal.show,
.madb-levelup-overlay.show,
.madb-badge-notification.show {
    display: flex;
}

/* ========================================
   NICKNAME MODAL
   ======================================== */

.madb-modal {
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.madb-modal-content {
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.madb-retro-card {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                inset 0 0 20px rgba(102, 126, 234, 0.1);
}

.madb-pixel-title {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 1rem;
    color: #fff;
    text-align: center;
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8),
                 0 0 10px rgba(102, 126, 234, 0.5);
}

.madb-retro-input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
    margin-bottom: 1rem;
}

.madb-retro-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.madb-retro-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.madb-retro-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.madb-retro-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

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

/* ========================================
   LEVEL UP OVERLAY
   ======================================== */

.madb-levelup-overlay {
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.madb-levelup-content {
    text-align: center;
    animation: levelUpBurst 0.5s ease-out;
}

@keyframes levelUpBurst {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.madb-glow {
    animation: glowPulse 1s ease-in-out infinite;
    text-shadow: 0 0 10px #667eea, 
                 0 0 20px #764ba2,
                 0 0 30px #667eea,
                 0 0 40px #764ba2;
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 0 0 10px #667eea, 
                     0 0 20px #764ba2;
    }
    50% {
        text-shadow: 0 0 20px #667eea, 
                     0 0 40px #764ba2,
                     0 0 60px #667eea;
    }
}

.madb-level-display {
    font-size: 6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 1rem 0;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.6));
}

.madb-xp-next {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    margin-top: 1rem;
}

/* ========================================
   BADGE NOTIFICATION
   ======================================== */

.madb-badge-notification {
    align-items: flex-end;
    justify-content: flex-end;
    padding: 2rem;
    pointer-events: none;
}

.madb-badge-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    animation: badgeSlideIn 0.5s ease-out;
}

@keyframes badgeSlideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.madb-badge-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
    animation: badgeShake 0.5s ease-in-out;
}

@keyframes badgeShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.madb-badge-info {
    display: flex;
    flex-direction: column;
}

.madb-badge-name {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 0.875rem;
    color: #ffd700;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* ========================================
   SCORE POPUP (+1 ANIMATION)
   ======================================== */

.madb-score-popup {
    position: fixed;
    z-index: 9999;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.8));
    pointer-events: none;
    animation: scoreFloat 0.8s ease-out forwards;
}

@keyframes scoreFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-80px) scale(1.5);
    }
}

/* ========================================
   SINGLE JOB TEMPLATE - SIDEBAR VERTICAL LAYOUT
   ======================================== */

.madb-gamification-sidebar-section {
    margin-bottom: 2rem;
}

.madb-gamification-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.madb-gamification-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0;
}


.madb-gamification-tabs {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    width: 100%;
}

.madb-tab {
    flex: 1;
    min-width: auto;
    padding: 0.4rem 0.5rem;
    font-size: 0.6rem;
}

.madb-gamification-top-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0;
}

.job-avatar-image {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.madb-gamification-user-info {
    flex: 1;
    min-width: 0;
}

.madb-gamification-nickname {
    font-size: 0.7rem;
}

.madb-gamification-level {
    font-size: 0.6rem;
}

.madb-gamification-score {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.madb-gamification-average {
    padding: 0.75rem;
    margin-bottom: 0;
}

.madb-gamification-avg-label {
    font-size: 0.75rem;
}

.madb-gamification-avg-value {
    font-size: 1.1rem;
}

.madb-gamification-user-stats {
    margin-top: 0;
    padding-top: 0.75rem;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
    font-size: 0.7rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 968px) {
    .madb-gamification-sidebar-section {
        margin-bottom: 1.5rem;
    }
    
    .madb-gamification-leaderboard {
        padding: 1rem;
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .madb-gamification-leaderboard {
        padding: 1rem;
    }
    
    .madb-tab {
        font-size: 0.65rem;
        padding: 0.4rem 0.5rem;
    }
    
    .madb-gamification-nickname {
        font-size: 0.75rem;
    }
    
    .madb-gamification-score {
        font-size: 1.5rem;
    }
    
    .madb-pixel-title {
        font-size: 0.75rem;
    }
    
    .madb-level-display {
        font-size: 4rem;
    }
    
    .madb-score-popup {
        font-size: 1.5rem;
    }
    
    .madb-gamification-leaderboard {
        padding: 0.875rem;
        gap: 0.65rem;
    }
    
    .madb-gamification-header {
        gap: 0.5rem;
    }
    
    
    .madb-tab {
        font-size: 0.55rem;
        padding: 0.35rem 0.4rem;
    }
}

/* ========================================
   SIDEBAR WIZARD GIF - Positioned to the left of ad
   ======================================== */

.job-sidebar {
    position: relative; /* Ensure sidebar is positioned for absolute children */
    overflow: visible; /* Allow wizard to be visible outside sidebar */
}

.madb-gamification-sidebar-section {
    position: relative;
    overflow: visible; /* Allow wizard to be visible outside section */
}

.madb-sidebar-ad-wrapper {
	position: relative;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

/* ========================================
   MAGIC SPONSORED CONTENT LABEL & GLOW
   ======================================== */

.madb-magic-ad-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border: 2px solid rgba(102, 126, 234, 0.5);
    border-radius: 8px;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 0.65rem;
    color: #fff;
    text-align: center;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.8);
    box-shadow: 
        0 0 20px rgba(102, 126, 234, 0.6),
        0 0 40px rgba(102, 126, 234, 0.4),
        inset 0 0 20px rgba(102, 126, 234, 0.2);
    animation: magicGlow 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.madb-magic-ad-label::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes magicGlow {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(102, 126, 234, 0.6),
            0 0 40px rgba(102, 126, 234, 0.4),
            inset 0 0 20px rgba(102, 126, 234, 0.2);
        border-color: rgba(102, 126, 234, 0.5);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(102, 126, 234, 0.8),
            0 0 60px rgba(118, 75, 162, 0.6),
            0 0 90px rgba(102, 126, 234, 0.4),
            inset 0 0 30px rgba(102, 126, 234, 0.3);
        border-color: rgba(118, 75, 162, 0.8);
    }
}

.madb-magic-label-icon {
    font-size: 1rem;
    filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.8));
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.8));
    }
    50% {
        transform: scale(1.2);
        filter: drop-shadow(0 0 12px rgba(118, 75, 162, 1));
    }
}

.madb-magic-label-text {
    flex: 1;
    letter-spacing: 0.5px;
}

.madb-magic-label-points {
    color: #ffd700;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.6);
    font-weight: 700;
    animation: pointsGlow 1.5s ease-in-out infinite;
}

@keyframes pointsGlow {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(255, 215, 0, 0.8),
            0 0 20px rgba(255, 215, 0, 0.6);
    }
    50% {
        text-shadow: 
            0 0 15px rgba(255, 215, 0, 1),
            0 0 30px rgba(255, 215, 0, 0.8),
            0 0 45px rgba(255, 215, 0, 0.6);
    }
}

.madb-magic-ad-container {
	position: relative;
	width: 100%;
	max-width: 100%;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 
		0 0 15px rgba(102, 126, 234, 0.4),
		0 0 30px rgba(102, 126, 234, 0.2);
	transition: box-shadow 0.3s ease;
}

.madb-magic-ad-container:hover {
	box-shadow: 
		0 0 25px rgba(102, 126, 234, 0.6),
		0 0 50px rgba(118, 75, 162, 0.4),
		0 0 75px rgba(102, 126, 234, 0.3);
}

/* Ensure Advanced Ads content inside has proper styling */
.madb-magic-ad-container .advanced-ads-ad,
.madb-magic-ad-container .advads-ad,
.madb-magic-ad-container .magic-content,
.madb-magic-ad-container .local-sidebar-ads,
.madb-magic-ad-container > div {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	border-radius: 8px;
	overflow: hidden;
	line-height: 0;
}

.madb-magic-ad-container a {
	display: block;
	width: 100%;
	max-width: 100%;
	line-height: 0;
}

/* Scale wide banner creatives to sidebar width (keeps aspect ratio) */
.madb-magic-ad-container img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	object-fit: contain;
}


/* Ensure smooth magic bar transitions */
.jqg-magic-fill {
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.jqg-magic-value {
    transition: color 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .madb-magic-ad-label {
        font-size: 0.6rem;
        padding: 0.625rem 0.875rem;
    }
    
    .madb-magic-label-icon {
        font-size: 0.875rem;
    }
}

@media (max-width: 1024px) {
    .madb-magic-ad-label {
        font-size: 0.55rem;
        padding: 0.5rem 0.75rem;
        gap: 0.375rem;
    }
}

/* Override with more specific selector for proper positioning */
img.madb-sidebar-wizard-gif {
    position: absolute !important;
    left: -26px !important;
    width: 81px !important;
    top: 40px !important;
    bottom: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10 !important;
}


/* Responsive adjustments for smaller screens */
@media (max-width: 1200px) {
    img.madb-sidebar-wizard-gif {
        left: -20px;
        width: 70px;
    }
}

@media (max-width: 1024px) {
    img.madb-sidebar-wizard-gif {
        display: none !important; /* Hide on smaller screens to avoid layout issues */
    }
}

/* Wizard GIF positioning for hero section in jobs inbox template */

.madb-hero-content .madb-sidebar-ad-wrapper {
    position: relative;
    overflow: visible;
}


 .madb-hero-content .madb-sidebar-wizard-gif {
    position: absolute;
    left: -26px;
    width: 81px;
    top: 40px;
    z-index: 10;
    pointer-events: none;
    display: block;
    visibility: visible;
    opacity: 1;
}

@media (max-width: 1200px) {
.madb-hero-content .madb-sidebar-wizard-gif {
        left: -20px;
        width: 70px;
    }
}

@media (max-width: 1024px) {
 .madb-hero-content .madb-sidebar-wizard-gif {
        display: none; /* Hide on smaller screens to avoid layout issues */
    }
}

/* ========================================
   SIGN-UP WIDGET FOR LOGGED-OUT USERS
   ======================================== */

.jqg-signup-widget {
    position: relative;
}

.jqg-signup-widget .jqg-header h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.jqg-preview-user {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border: 2px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.jqg-signup-features {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.jqg-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.jqg-feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.jqg-feature-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(102, 126, 234, 0.5));
}

.jqg-feature-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.jqg-signup-cta {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.jqg-signup-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.jqg-signup-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.jqg-signup-button:hover::before {
    left: 100%;
}

.jqg-signup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.jqg-signup-button:active {
    transform: translateY(0);
}

.jqg-button-icon {
    font-size: 1.25rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.jqg-button-text {
    letter-spacing: 1px;
}

.jqg-login-link {
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
}

.jqg-login-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.jqg-login-link a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Signup widget adjustments */
.jqg-signup-widget .jqg-leaderboard {
    padding: 1.25rem;
}

.jqg-signup-widget .jqg-feature-text {
    font-size: 0.7rem;
}

.jqg-signup-widget .jqg-signup-button {
    padding: 0.875rem 1.25rem;
    font-size: 0.7rem;
}

/* ========================================
   RETRO INPUT AND BUTTON STYLES (for signup form)
   ======================================== */

.jqg-retro-input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
    margin-bottom: 1rem;
}

.jqg-retro-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.jqg-retro-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.jqg-retro-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.jqg-retro-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

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

/* ========================================
   MULTI-STEP SIGNUP FORM
   ======================================== */

.jqg-signup-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    min-height: 200px;
}

.jqg-signup-step {
    display: none;
    animation: fadeInSlide 0.3s ease-out;
}

.jqg-signup-step.jqg-step-active {
    display: block;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jqg-step-label {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.jqg-signup-step .jqg-retro-input {
    margin-bottom: 1rem;
    width: 100%;
}

.jqg-step-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.jqg-step-buttons .jqg-retro-btn {
    flex: 1;
}

.jqg-signup-loading {
    text-align: center;
    padding: 2rem 1rem;
}

.jqg-loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.jqg-loading-text {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
}

.jqg-signup-error {
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(220, 38, 38, 0.5);
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 1rem;
    color: #ff6b6b;
    font-size: 0.75rem;
    text-align: center;
    line-height: 1.4;
}

/* Signup form adjustments */
.jqg-signup-step .jqg-retro-input {
    font-size: 0.7rem;
    padding: 0.75rem;
}

.jqg-step-label {
    font-size: 0.6rem;
    margin-bottom: 0.75rem;
}

.jqg-step-buttons .jqg-retro-btn {
    font-size: 0.6rem;
    padding: 0.75rem 1rem;
}
