﻿/* home.css - Single Page Hero Layout - Cleaned Version */

/* RESET & GLOBALS */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #feca57;
    --text-white: #ffffff;
    --text-dark: #1a1a1a;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #feca57 0%, #ff9ff3 50%, #48dbfb 100%);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #060613;
    color: var(--text-white);
    overflow: hidden;
    line-height: 1.6;
    height: 100vh;
    max-height: 100vh;
    position: relative;
}

body.single-page-layout {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* BACKGROUND EFFECTS - Animated depth */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(160deg, #060613 0%, #0a0a1e 25%, #0d0b24 50%, #0e0a20 75%, #080618 100%);
    overflow: hidden;
}

/* Animated gradient orbs that breathe and drift */
.bg-effects .gradient-orbs {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.bg-effects .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    will-change: transform;
}

.bg-effects .orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.22) 0%, transparent 70%);
    top: -10%;
    left: -5%;
    animation: orbDrift1 18s ease-in-out infinite;
}

.bg-effects .orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.2) 0%, transparent 70%);
    bottom: -15%;
    right: -5%;
    animation: orbDrift2 22s ease-in-out infinite;
}

.bg-effects .orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    top: 40%;
    left: 50%;
    animation: orbDrift3 26s ease-in-out infinite;
}

@keyframes orbDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(60px, 40px) scale(1.1); }
    50% { transform: translate(30px, 80px) scale(0.95); }
    75% { transform: translate(-40px, 30px) scale(1.05); }
}

@keyframes orbDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-50px, -30px) scale(1.08); }
    50% { transform: translate(-80px, -60px) scale(0.92); }
    75% { transform: translate(-20px, -80px) scale(1.12); }
}

@keyframes orbDrift3 {
    0%, 100% { transform: translate(-50%, 0) scale(1); }
    33% { transform: translate(calc(-50% + 70px), -40px) scale(1.15); }
    66% { transform: translate(calc(-50% - 50px), 50px) scale(0.9); }
}

/* Dot pattern overlay */
.bg-effects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

/* Subtle grid lines */
.bg-effects::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(102, 126, 234, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(102, 126, 234, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 1;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black, transparent);
}

/* Mouse-following glow */
.mouse-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.04) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: left 0.3s ease-out, top 0.3s ease-out, opacity 0.4s ease;
    opacity: 0;
    will-change: left, top;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.floating-shapes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 85%, rgba(102, 126, 234, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 15%, rgba(118, 75, 162, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 40%);
    animation: glowPulse 6s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% { opacity: 0.4; }
    100% { opacity: 0.8; }    
}

.floating-shapes .shape {
    position: absolute;
    opacity: 0.06;
    border-radius: 50%;
    filter: blur(80px);
    animation: floatShape 25s ease-in-out infinite;
}

.shape-1 { width: 350px; height: 350px; top: 5%; left: 5%; animation-delay: 0s; background: #667eea; }
.shape-2 { width: 280px; height: 280px; top: 55%; left: 75%; animation-delay: 5s; background: #764ba2; }
.shape-3 { width: 200px; height: 200px; top: 75%; left: 15%; animation-delay: 10s; background: #6366f1; }
.shape-4 { width: 400px; height: 400px; top: 25%; left: 65%; animation-delay: 15s; background: #8b5cf6; }
.shape-5 { width: 180px; height: 180px; top: 15%; left: 55%; animation-delay: 8s; background: #a78bfa; }

.gradient-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: orbFloat 30s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #667eea 0%, transparent 70%);
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #764ba2 0%, transparent 70%);
    top: 55%;
    right: 10%;
    animation-delay: 10s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
    top: 35%;
    left: 45%;
    animation-delay: 20s;
}

/* MINIMAL HEADER WITH CENTERED LOGO */
.minimal-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: none;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.minimal-header::before {
    display: none;
}

.minimal-header .header-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding-bottom: 15px;
}

.centered-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-link {
    display: block;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoLevitate 6s ease-in-out infinite;
}

.logo-wrapper:hover {
    animation-duration: 2s;
}

.logo-image {
    height: 75px;
    width: auto;
    filter: brightness(0) invert(1) drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    animation: logoGlow 4s ease-in-out infinite;
}

.logo-link:hover .logo-image {
    filter: brightness(0) invert(1) drop-shadow(0 0 60px rgba(255, 255, 255, 1));
    transform: scale(1.2) rotateY(20deg);
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px; /* Reduced glow for smaller logo */
    height: 120px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: glowPulse 3s ease-in-out infinite;
    z-index: 1;
}

.logo-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 240px; /* Bigger particles area */
    height: 240px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.logo-particles .particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    opacity: 1;
    animation: particleOrbit 8s linear infinite;
}

.logo-particles .particle:nth-child(1) {
    animation-delay: 0s;
    animation-duration: 8s;
}

.logo-particles .particle:nth-child(2) {
    animation-delay: 2s;
    animation-duration: 10s;
}

.logo-particles .particle:nth-child(3) {
    animation-delay: 4s;
    animation-duration: 12s;
}

.logo-particles .particle:nth-child(4) {
    animation-delay: 6s;
    animation-duration: 14s;
}

/* OLD HEADER STYLES - COMMENTED OUT
/* MODERN HEADER NAVIGATION */
/*
.modern-header {
    display: none;
}
*/

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

/* LOGO SECTION */
.header-logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: block;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.logo-link:hover {
    transform: translateY(-2px) scale(1.05);
}

.logo-image {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
    animation: logoFloat 4s ease-in-out infinite;
}

.logo-link:hover .logo-image {
    filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

/* NAVIGATION MENU */
.header-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.nav-item:hover::before {
    left: 100%;
}

.nav-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: var(--text-white);
}

.nav-login {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.nav-login:hover {
    background: linear-gradient(135deg, #5a6fd8, #6b4190);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    border-color: rgba(102, 126, 234, 0.5);
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 1rem;
}

.nav-text {
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* MOBILE MENU */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-white);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu-overlay {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    height: calc(100vh - 90px);
    background: rgba(15, 15, 35, 0.98);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 999;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 2rem;
    padding: 2rem;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    width: 100%;
    max-width: 300px;
    text-align: center;
    justify-content: center;
    transition: all 0.3s ease;
    transform: translateY(30px);
    opacity: 0;
    animation: mobileItemSlide 0.5s ease forwards;
}

.mobile-nav-item:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-item:nth-child(2) { animation-delay: 0.2s; }

.mobile-nav-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: var(--text-white);
}

.mobile-nav-item i {
    font-size: 1.2rem;
}

/* HERO FULLSCREEN */
.hero-fullscreen {
    height: 100vh;
    padding-top: 100px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.1;
}

.animated-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.animated-particles .particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.6);
    animation: particleFloat 10s ease-in-out infinite;
}

.animated-particles .particle:nth-child(1) { width: 4px; height: 4px; top: 20%; left: 20%; animation-delay: 0s; opacity: 0.5; }
.animated-particles .particle:nth-child(2) { width: 6px; height: 6px; top: 60%; left: 80%; animation-delay: 2s; opacity: 0.7; background: rgba(139, 92, 246, 0.6); }
.animated-particles .particle:nth-child(3) { width: 3px; height: 3px; top: 80%; left: 40%; animation-delay: 4s; opacity: 0.4; }
.animated-particles .particle:nth-child(4) { width: 5px; height: 5px; top: 40%; left: 70%; animation-delay: 6s; opacity: 0.6; background: rgba(168, 85, 247, 0.5); }
.animated-particles .particle:nth-child(5) { width: 4px; height: 4px; top: 10%; left: 60%; animation-delay: 8s; opacity: 0.5; }

/* HERO CONTAINER */
.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    height: calc(100vh - 100px);
    display: flex;
    align-items: center;
}

.hero-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    width: 100%;
    align-items: center;
    height: 100%;
}

/* HERO MAIN CONTENT */
.hero-main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-inner {
    max-width: 600px;
}

/* HERO TITLE */
.hero-main-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    text-shadow: 0 2px 30px rgba(102, 126, 234, 0.15);
    letter-spacing: -0.03em;
}

.title-row {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 0.2rem;
}

.title-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) rotateX(-90deg);
    animation: wordReveal 0.8s ease-out forwards;
    transform-origin: bottom;
}

.title-word.highlight-word {
    background: linear-gradient(135deg, #f97316 0%, #ef4444 30%, #ec4899 60%, #a855f7 100%);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: wordReveal 0.8s ease-out forwards, highlightGradient 5s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.2));
}

/* HERO DESCRIPTION */
.hero-subtitle {
    margin-bottom: 0.75rem;
}

.hero-subtitle h2 {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    letter-spacing: 0.02em;
    animation: fadeInUp 0.6s ease-out forwards;
}

.hero-description {
    margin-bottom: 2rem;
}

.main-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
    max-width: 520px;
}

.brand-highlight {
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.feature-highlight {
    color: #48dbfb;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(72, 219, 251, 0.3);
    text-underline-offset: 4px;
}

/* HERO ACTIONS */
.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.5s backwards;
}

.action-btn {
    position: relative;
    padding: 0;
    border: none;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    min-width: 190px;
    height: 56px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 0.02em;
}

.btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    transition: all 0.4s ease;
    pointer-events: none;
}

.primary-action .btn-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 200% 200%;
}

.secondary-action .btn-bg {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(102, 126, 234, 0.15) 100%);
    border: 1.5px solid rgba(139, 92, 246, 0.35);
}

.btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
    color: var(--text-white) !important;
    transition: all 0.3s ease;
    pointer-events: none;
}

.btn-content i,
.btn-content span {
    color: var(--text-white) !important;
    z-index: 3;
    position: relative;
}

.btn-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.action-btn:hover .btn-arrow {
    opacity: 1;
    transform: translateX(0);
}

.action-btn:hover {
    transform: translateY(-3px) scale(1.03);
    text-decoration: none;
    color: var(--text-white);
}

.primary-action:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.35);
}

.primary-action:hover .btn-bg {
    background: linear-gradient(135deg, #7c8cf0 0%, #8b5cf6 100%);
}

.secondary-action:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.08);
}

.secondary-action:hover .btn-bg {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.35) 0%, rgba(102, 126, 234, 0.25) 100%);
    border-color: rgba(139, 92, 246, 0.5);
}

.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.action-btn:active .btn-ripple {
    width: 300px;
    height: 300px;
}

.hot-label {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    font-size: 0.6rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 900;
    letter-spacing: 0.5px;
    z-index: 10;
    animation: hotFloat 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.btn-glow {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.primary-action .btn-glow {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.secondary-action .btn-glow {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.primary-action:hover .btn-glow {
    opacity: 0.6;
    animation: primaryGlow 1.5s ease-in-out infinite;
}

.secondary-action:hover .btn-glow {
    opacity: 0.8;
    animation: purpleGlow 1.5s ease-in-out infinite;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left 0.6s ease;
}

.primary-action .btn-shine {
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.4), transparent);
}

.secondary-action .btn-shine {
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.6), transparent);
}

.primary-action:hover .btn-shine,
.secondary-action:hover .btn-shine {
    left: 100%;
}

/* PHONE PREVIEW */
.hero-phone-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.phone-mockup {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    max-height: calc(100vh - 120px);
}

.phone-container {
    width: 360px;
    height: 730px;
    background: #1a1a2e;
    border-radius: 50px;
    padding: 11px;
    position: relative;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: phoneFloat 6s ease-in-out infinite;
    overflow: visible;
    max-height: calc(100vh - 160px);
}

/* Side buttons */
.phone-container::before {
    content: '';
    position: absolute;
    right: -3px;
    top: 140px;
    width: 3px;
    height: 50px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.15), rgba(255,255,255,0.08));
    border-radius: 0 3px 3px 0;
}

.phone-container::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 200px;
    width: 3px;
    height: 80px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.15), rgba(255,255,255,0.08));
    border-radius: 0 3px 3px 0;
}

.phone-container:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 0 60px rgba(102, 126, 234, 0.1);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 42px;
    padding: 15px 15px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.phone-screen::-webkit-scrollbar {
    display: none;
}

/* Dynamic island / Notch */
.phone-screen::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 24px;
    background: #1a1a2e;
    border-radius: 20px;
    z-index: 10;
}

/* Glass reflection effect - GPU composited, no layout shift */
.phone-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.1) 45%, transparent 50%);
    pointer-events: none;
    z-index: 5;
    will-change: transform, opacity;
    transform: translateX(-100%);
    animation: phoneGlare 6s ease-in-out infinite;
}

@keyframes phoneGlare {
    0%, 100% { transform: translateX(-100%); opacity: 0; }
    50% { transform: translateX(200%); opacity: 1; }
}

/* STATUS BAR */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    margin-top: 18px;
    color: #1a1a1a;
    font-size: 0.65rem;
    font-weight: 600;
}

.status-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* PROFILE HEADER */
.profile-header {
    text-align: center;
    margin-bottom: 14px;
}

.profile-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.avatar-img {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.3);
    overflow: hidden;
    position: relative;
}

.avatar-favicon {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 50%;
    background: rgba(255, 255, 255, 1);
    padding: 4px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.avatar-img:hover .avatar-favicon {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 1);
}

.avatar-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    animation: avatarPulse 3s ease-in-out infinite;
}

.profile-name {
    font-size: 0.85rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.profile-username {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 500;
}

/* LINKS GRID */
.links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 14px;
    padding-bottom: 10px;
}

.link-item {
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 10px;
    padding: 7px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.link-item:hover::before {
    left: 100%;
}

.link-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.9);
}

.link-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.link-item:hover .link-icon {
    transform: scale(1.1) rotateY(180deg);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.link-text {
    font-size: 0.5rem;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    line-height: 1.1;
    transition: all 0.3s ease;
}

.link-item:hover .link-text {
    color: #0f172a;
    transform: scale(1.05);
}

/* LINK ICON GRADIENTS */
.contact-card .link-icon { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.phone-call .link-icon { background: linear-gradient(135deg, #10b981, #059669); }
.whatsapp .link-icon { background: linear-gradient(135deg, #25d366, #128c7e); }
.sms .link-icon { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.email .link-icon { background: linear-gradient(135deg, #ef4444, #dc2626); }
.location .link-icon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.share .link-icon { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.qr-code .link-icon { background: linear-gradient(135deg, #10b981, #059669); }
.instagram .link-icon { background: linear-gradient(135deg, #e1306c, #fd1d1d); }
.telegram .link-icon { background: linear-gradient(135deg, #0088cc, #006daa); }
.youtube .link-icon { background: linear-gradient(135deg, #ff0000, #cc0000); }
.linkedin .link-icon { background: linear-gradient(135deg, #0077b5, #005e93); }
.twitter .link-icon { background: linear-gradient(135deg, #1da1f2, #0d8bd9); }
.facebook .link-icon { background: linear-gradient(135deg, #1877f2, #0d65d9); }
.website .link-icon { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.catalog .link-icon { background: linear-gradient(135deg, #f97316, #ea580c); }
.appointment .link-icon { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.nfc-share .link-icon { background: linear-gradient(135deg, #6366f1, #4f46e5); }

/* FLOATING ELEMENTS AROUND PHONE */
.floating-elements {
    position: absolute;
    top: -40px;
    left: -40px;
    width: calc(100% + 80px);
    height: calc(100% + 80px);
    pointer-events: none;
    z-index: 1;
}

/* NFC CARDS FLOATING */
.nfc-card {
    position: absolute;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    animation: floatNFC 10s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nfc-card-1 {
    top: 5%;
    right: -20px;
    animation-delay: 0s;
}

.nfc-card-2 {
    bottom: 15%;
    left: -20px;
    animation-delay: 3s;
}

.nfc-card-3 {
    top: 55%;
    right: -25px;
    animation-delay: 6s;
}

/* QR CODES FLOATING */
.qr-code-float {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: floatQR 12s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.qr-code-1 {
    top: 25%;
    left: -30px;
    animation-delay: 1s;
}

.qr-code-2 {
    bottom: 25%;
    right: -30px;
    animation-delay: 5s;
}

/* SOCIAL MEDIA ICONS FLOATING */
.social-icon {
    position: absolute;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: floatSocial 14s ease-in-out infinite;
}

.social-instagram {
    top: 10%;
    right: -40px;
    animation-delay: 2s;
}

.social-twitter {
    bottom: 20%;
    left: -40px;
    animation-delay: 4s;
}

.social-linkedin {
    top: 75%;
    right: -45px;
    animation-delay: 7s;
}

.social-tiktok {
    top: 42%;
    left: -40px;
    animation-delay: 9s;
}

/* FLOATING STATS - Updated */
.float-stat {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    animation: floatStat 10s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-1 {
    top: 18%;
    right: -18px;
    animation-delay: 0s;
}

.stat-2 {
    bottom: 22%;
    left: -18px;
    animation-delay: 4s;
}

/* ANIMATIONS */
@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(50px, -30px) rotate(90deg); }
    50% { transform: translate(-30px, 50px) rotate(180deg); }
    75% { transform: translate(-50px, -20px) rotate(270deg); }
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(100px, -50px) scale(1.1); }
    50% { transform: translate(-50px, 100px) scale(0.9); }
    75% { transform: translate(-100px, -50px) scale(1.05); }
}


@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 1; }
}





@keyframes wordReveal {
    0% { opacity: 0; transform: translateY(50px) rotateX(-90deg); }
    100% { opacity: 1; transform: translateY(0) rotateX(0deg); }
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}

@keyframes highlightGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes hotFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.1); }
}

@keyframes avatarPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

@keyframes floatStat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.8; }
    50% { transform: translateY(-15px) scale(1.05); opacity: 1; }
}

@keyframes mobileItemSlide {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.02); }
}


/* ENHANCED LOGO ANIMATIONS */
@keyframes logoLevitate {
    0% { 
        transform: translateY(0) rotateZ(0deg) scale(1);
    }
    25% { 
        transform: translateY(-15px) rotateZ(3deg) scale(1.05);
    }
    50% { 
        transform: translateY(-8px) rotateZ(0deg) scale(1.02);
    }
    75% { 
        transform: translateY(-20px) rotateZ(-3deg) scale(1.08);
    }
    100% { 
        transform: translateY(0) rotateZ(0deg) scale(1);
    }
}

@keyframes logoGlow {
    0% { 
        filter: brightness(0) invert(1) drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
        transform: rotateX(0deg);
    }
    25% { 
        filter: brightness(0) invert(1) drop-shadow(0 0 40px rgba(102, 126, 234, 0.8));
        transform: rotateX(10deg);
    }
    50% { 
        filter: brightness(0) invert(1) drop-shadow(0 0 50px rgba(118, 75, 162, 0.9));
        transform: rotateX(0deg);
    }
    75% { 
        filter: brightness(0) invert(1) drop-shadow(0 0 45px rgba(254, 202, 87, 0.7));
        transform: rotateX(-10deg);
    }
    100% { 
        filter: brightness(0) invert(1) drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
        transform: rotateX(0deg);
    }
}


@keyframes particleOrbit {
    0% { 
        transform: rotate(0deg) translateX(80px) rotate(0deg) scale(1);
        opacity: 0;
        background: linear-gradient(45deg, #667eea, #764ba2);
    }
    15% {
        opacity: 1;
        background: linear-gradient(45deg, #10b981, #059669);
    }
    30% {
        background: linear-gradient(45deg, #8b5cf6, #7c3aed);
        transform: rotate(90deg) translateX(85px) rotate(-90deg) scale(1.3);
    }
    45% {
        background: linear-gradient(45deg, #feca57, #ff9ff3);
    }
    60% {
        background: linear-gradient(45deg, #ff6b6b, #ee5a24);
        transform: rotate(180deg) translateX(90px) rotate(-180deg) scale(0.8);
    }
    75% {
        background: linear-gradient(45deg, #48dbfb, #0abde3);
    }
    90% {
        opacity: 1;
        background: linear-gradient(45deg, #764ba2, #667eea);
    }
    100% { 
        transform: rotate(360deg) translateX(80px) rotate(-360deg) scale(1);
        opacity: 0;
        background: linear-gradient(45deg, #667eea, #764ba2);
    }
}

/* RESPONSIVE DESIGN - Fixed Modal */
@media (max-width: 1200px) {
    .hero-content-grid {
        gap: 3rem;
    }
    
    .phone-container {
        width: 340px;
        height: 690px;
        max-height: calc(100vh - 140px);
    }
    
    .register-popup .popup-container {
        width: 80vw;
        max-width: 850px;
        height: 80vh;
        max-height: 80vh;
    }
    
    .register-popup .popup-content {
        max-height: calc(80vh - 120px);
    }
}

@media (max-width: 1024px) {
    .header-container {
        padding: 0 1.5rem;
    }
    
    .nav-item {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        gap: 0.5rem;
    }
    
    .register-popup .popup-container {
        width: 85vw;
        max-width: 800px;
        height: 85vh;
        max-height: 85vh;
    }
    
    .register-popup .popup-content {
        max-height: calc(85vh - 120px);
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }
}

@media (max-width: 968px) {
    .hero-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-phone-preview {
        order: 1;
    }

    .phone-container {
        width: 300px;
        height: 610px;
        max-height: calc(100vh - 120px);
        transform: scale(0.9);
    }

    .hero-actions {
        justify-content: center;
        gap: 1rem;
    }

    .action-btn {
        min-width: 150px;
        height: 48px;
        font-size: 0.88rem;
    }

    .nav-actions {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .minimal-header {
        height: 80px;
    }

    .minimal-header .header-container {
        padding-bottom: 10px;
        align-items: flex-end;
    }

    .logo-image {
        height: 45px;
    }

    .hero-fullscreen {
        padding-top: 80px;
    }
    
    .register-popup .popup-container {
        width: 90vw;
        max-width: 700px;
        height: 90vh;
        max-height: 90vh;
    }
    
    .register-popup .popup-content {
        max-height: calc(90vh - 120px);
    }
    
    .step-content {
        padding: 0.2rem 0.6rem 0.1rem;
    }
    
    .form-grid {
        gap: 0.25rem;
    }
    
    .form-group {
        min-height: 55px;
    }
    
    .form-input {
        height: 30px;
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    body.single-page-layout {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        position: relative;
    }

    .hero-container {
        height: auto;
        min-height: calc(100vh - 80px);
        padding: 1rem 1.5rem;
    }

    .hero-content-grid {
        gap: 1.5rem;
    }

    .hero-phone-preview {
        display: flex;
    }

    .phone-container {
        display: block;
        width: 280px;
        height: 570px;
        transform: scale(0.85);
    }

    .links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .link-item {
        padding: 0.8rem;
    }

    .link-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .link-text {
        font-size: 0.8rem;
    }

    .floating-elements {
        display: none;
    }

    .hero-main-title {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
        margin-bottom: 1rem;
    }

    .hero-description {
        margin-bottom: 1.5rem;
    }

    .main-desc {
        font-size: 1rem;
        line-height: 1.5;
    }

    .logo-glow {
        width: 90px;
        height: 90px;
    }

    .logo-particles {
        display: none;
    }
}


@media (max-width: 640px) {
    body.single-page-layout {
        height: auto;
        min-height: 100vh;
        max-height: none;
        overflow-y: auto;
        position: relative;
        width: 100%;
    }

    .minimal-header {
        height: 70px;
    }

    .minimal-header .header-container {
        padding: 0 1rem;
        padding-bottom: 8px;
        align-items: flex-end;
    }

    .logo-image {
        height: 35px;
    }

    .hero-fullscreen {
        padding-top: 70px;
    }

    .hero-container {
        height: auto;
        min-height: calc(100vh - 70px);
        padding: 1rem;
    }

    .hero-main-title {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
        margin-bottom: 0.8rem;
    }

    .hero-description {
        margin-bottom: 1rem;
    }

    .main-desc {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .title-row {
        flex-wrap: wrap;
    }

    .phone-container {
        transform: scale(0.55);
        margin: -60px auto;
    }

    .links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }

    .link-item {
        padding: 0.6rem;
    }

    .link-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .link-text {
        font-size: 0.75rem;
    }

    .floating-elements {
        display: none;
    }

    .hero-actions {
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .action-btn {
        min-width: 130px;
        height: 42px;
        font-size: 0.8rem;
    }

    .logo-glow {
        width: 70px;
        height: 70px;
    }

    .logo-particles {
        display: none;
    }

    .hero-copyright {
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .minimal-header {
        height: 45px;
    }

    .minimal-header .header-container {
        padding: 0 0.5rem;
    }

    .logo-image {
        height: 30px;
    }

    .hero-fullscreen {
        padding-top: 45px;
    }

    .hero-main-title {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
        margin-bottom: 0.6rem;
    }

    .hero-description {
        margin-bottom: 0.8rem;
    }

    .main-desc {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .phone-container {
        transform: scale(0.45);
        margin: -80px auto;
    }

    .action-btn {
        min-width: 120px;
        height: 40px;
        font-size: 0.75rem;
    }

    .hero-actions {
        gap: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .logo-glow {
        width: 60px;
        height: 60px;
    }

    .logo-particles {
        display: none;
    }

    .hero-container {
        height: auto;
        min-height: calc(100vh - 45px);
        padding: 1rem 0.8rem;
    }
}

@media (max-width: 360px) {
    .minimal-header {
        height: 40px;
    }

    .minimal-header .header-container {
        padding: 0 0.5rem;
    }

    .logo-image {
        height: 25px;
    }

    .hero-fullscreen {
        padding-top: 40px;
    }

    .hero-main-title {
        font-size: clamp(1.2rem, 5vw, 1.6rem);
        margin-bottom: 0.5rem;
    }

    .hero-description {
        margin-bottom: 0.6rem;
    }

    .main-desc {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .phone-container {
        transform: scale(0.4);
        margin: -90px auto;
    }

    .links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }

    .link-item {
        padding: 0.5rem;
    }

    .link-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .link-text {
        font-size: 0.7rem;
    }

    .action-btn {
        min-width: 110px;
        height: 38px;
        font-size: 0.7rem;
    }

    .hero-actions {
        gap: 0.6rem;
        margin-bottom: 0.6rem;
    }

    .logo-glow {
        width: 50px;
        height: 50px;
    }

    .logo-particles {
        display: none;
    }

    .hero-container {
        height: auto;
        min-height: calc(100vh - 40px);
        padding: 1rem 0.6rem;
    }
}

/* POPUP MODALS */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 35, 0.9);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    max-width: 480px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: scale(0.8) translateY(50px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: popupFloat 6s ease-in-out infinite;
}

.popup-overlay.active .popup-container {
    transform: scale(1) translateY(0);
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-white);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.popup-close {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--text-white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    transform: rotate(90deg) scale(1.1);
}

.popup-content {
    padding: 2rem;
}

/* CONTACT POPUP */
.contact-popup .popup-container {
    max-width: 500px;
    width: 90vw;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contact-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.contact-value {
    font-size: 1rem;
    color: var(--text-white);
    font-weight: 600;
}

.contact-actions {
    display: flex;
    gap: 1rem;
}

.contact-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.phone-btn {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
}

.phone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.email-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.email-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.contact-btn {
    flex: 1;
    padding: 1rem;
    border-radius: 15px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.phone-btn {
    background: linear-gradient(135deg, #10b981, #059669);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: white;
}

/* LOGIN POPUP */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    z-index: 3;
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: var(--text-white);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    position: relative;
    z-index: 1;
}

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

.form-input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.form-input:focus + .input-border {
    width: 100%;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.75rem 0 1rem 0;
    padding: 0.5rem 0;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.3s ease;
    -webkit-user-select: none;
    user-select: none;
}

.remember-me:hover {
    color: rgba(255, 255, 255, 0.9);
}

.remember-me input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid rgba(102, 126, 234, 0.4);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    background: transparent;
    transition: all 0.3s ease;
}

.remember-me input[type="checkbox"]:hover {
    border-color: rgba(102, 126, 234, 0.6);
    background: rgba(102, 126, 234, 0.1);
}

.remember-me input[type="checkbox"]:checked {
    background: rgba(102, 126, 234, 0.8);
    border-color: rgba(102, 126, 234, 0.8);
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.3);
}

.remember-me input[type="checkbox"]:checked::after {
    content: 'ÃƒÆ’Ã‚Â¢Ãƒâ€¦Ã¢â‚¬Å“ÃƒÂ¢Ã¢â€šÂ¬Ã…â€œ';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.remember-text {
    font-size: 0.8rem;
    font-weight: 400;
}

.forgot-password {
    color: rgba(102, 126, 234, 0.7);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 400;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    position: relative;
}

.forgot-password:hover {
    color: rgba(102, 126, 234, 0.9);
    background: rgba(102, 126, 234, 0.1);
    text-decoration: none;
    transform: translateY(-1px);
}

.forgot-password:active {
    transform: translateY(0);
}

.login-submit-btn {
    padding: 1rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.loader-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.signup-link {
    text-align: center;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.signup-btn {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.signup-btn:hover {
    color: #48dbfb;
    text-decoration: underline;
}

/* ENHANCED ANIMATIONS */

@keyframes popupFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* RESPONSIVE POPUP */
@media (max-width: 640px) {
    .popup-container {
        width: 95%;
        margin: 1rem;
    }
    
    .popup-header, .popup-content {
        padding: 1.5rem;
    }
    
    .contact-actions {
        flex-direction: column;
    }
}

/*
.header-container {
    display: none;
}

.header-logo,
.header-nav,
.nav-menu,
.nav-item,
.nav-login,
.nav-icon,
.nav-text,
.mobile-menu-toggle,
.hamburger,
.mobile-menu-overlay,
.mobile-menu-content,
.mobile-nav-item {
    display: none;
}
*/

@keyframes emeraldFlow {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.95;
    }
    50% { 
        transform: scale(1.02);
        opacity: 1;
    }
}

@keyframes purpleFlow {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.95;
    }
    50% { 
        transform: scale(1.02);
        opacity: 1;
    }
}

@keyframes emeraldExplosion {
    0% { 
        background-size: 300% 300%;
        filter: brightness(1);
    }
    50% { 
        background-size: 400% 400%;
        filter: brightness(1.2);
    }
    100% { 
        background-size: 300% 300%;
        filter: brightness(1);
    }
}

@keyframes purpleExplosion {
    0% { 
        background-size: 300% 300%;
        filter: brightness(1);
    }
    50% { 
        background-size: 400% 400%;
        filter: brightness(1.2);
    }
    100% { 
        background-size: 300% 300%;
        filter: brightness(1);
    }
}

@keyframes emeraldGlow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 40px rgba(16, 185, 129, 0.8);
        transform: scale(1.05);
    }
}

@keyframes purpleGlow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.8);
        transform: scale(1.05);
    }
}

@keyframes primaryGlow {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.6);
        transform: scale(1.03);
    }
}

@keyframes phoneFloat {
    0%, 100% { transform: perspective(1000px) rotateY(-10deg) rotateX(5deg) translateY(0); }
    50% { transform: perspective(1000px) rotateY(-10deg) rotateX(5deg) translateY(-10px); }
}

/* NEW FLOATING ANIMATIONS */
@keyframes floatNFC {
    0%, 100% { 
        transform: translateY(0) rotateX(0deg) rotateY(0deg) scale(1);
        opacity: 0.8;
    }
    25% { 
        transform: translateY(-20px) rotateX(10deg) rotateY(5deg) scale(1.1);
        opacity: 1;
    }
    50% { 
        transform: translateY(-10px) rotateX(-5deg) rotateY(-10deg) scale(1.05);
        opacity: 0.9;
    }
    75% { 
        transform: translateY(-25px) rotateX(15deg) rotateY(8deg) scale(1.15);
        opacity: 1;
    }
}

@keyframes floatQR {
    0%, 100% { 
        transform: translateY(0) rotateZ(0deg) scale(1);
        opacity: 0.7;
    }
    20% { 
        transform: translateY(-15px) rotateZ(5deg) scale(1.1);
        opacity: 1;
    }
    40% { 
        transform: translateY(-30px) rotateZ(-3deg) scale(1.05);
        opacity: 0.8;
    }
    60% { 
        transform: translateY(-20px) rotateZ(8deg) scale(1.15);
        opacity: 1;
    }
    80% { 
        transform: translateY(-35px) rotateZ(-2deg) scale(1.08);
        opacity: 0.9;
    }
}

@keyframes floatSocial {
    0%, 100% { 
        transform: translateY(0) rotateZ(0deg) scale(1);
        opacity: 0.6;
    }
    16% { 
        transform: translateY(-18px) rotateZ(10deg) scale(1.1);
        opacity: 1;
    }
    33% { 
        transform: translateY(-5px) rotateZ(-5deg) scale(1.05);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-25px) rotateZ(15deg) scale(1.15);
        opacity: 1;
    }
    66% { 
        transform: translateY(-12px) rotateZ(-8deg) scale(1.08);
        opacity: 0.9;
    }
    83% { 
        transform: translateY(-30px) rotateZ(12deg) scale(1.12);
        opacity: 1;
    }
}

/* LOGIN ERROR/SUCCESS MESSAGES - Enhanced */
.login-error, .login-success, .forgot-error, .forgot-success {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: translateY(-10px);
}

.login-error, .forgot-error {
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid rgba(239, 68, 68, 0.4);
    color: #ff4757;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.2);
}

.login-success, .forgot-success {
    background: rgba(34, 197, 94, 0.15);
    border: 2px solid rgba(34, 197, 94, 0.4);
    color: #2ed573;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.2);
}

/* INPUT GROUP STATES - New */
.input-group {
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.input-group.error {
    animation: inputError 0.6s ease-in-out;
}

.input-group.error .form-input {
    background: rgba(255, 85, 85, 0.1);
    border-color: #ff5555;
    box-shadow: 0 0 0 3px rgba(255, 85, 85, 0.1);
}

.input-group.error .input-icon {
    color: #ff5555;
    animation: iconShake 0.5s ease-in-out;
}

.input-group.success {
    animation: inputSuccess 0.6s ease-in-out;
}

.input-group.success .form-input {
    background: rgba(45, 213, 115, 0.1);
    border-color: #2dd573;
    box-shadow: 0 0 0 3px rgba(45, 213, 115, 0.1);
}

.input-group.success .input-icon {
    color: #2dd573;
    animation: iconSuccess 0.5s ease-in-out;
}

/* Enhanced form input styles */
.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: var(--text-white);
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    outline: none;
    position: relative;
    z-index: 1;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.form-input:focus::placeholder {
    opacity: 0.7;
    transform: translateX(5px);
}

/* Enhanced input icon */
.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    z-index: 3;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.input-group:hover .input-icon {
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

/* Login submit button enhancements */
.login-submit-btn {
    padding: 1rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.login-submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #5a6fd8, #6b4190);
}

.login-submit-btn:active {
    transform: translateY(-1px);
}

.login-submit-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
}

.login-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.8s ease;
}

.login-submit-btn:hover::before {
    left: 100%;
}

/* Loader styles */
.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loader-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn-text {
    transition: opacity 0.3s ease;
}

/* Enhanced checkbox styles */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-container:hover {
    color: var(--primary-color);
}

.checkbox-container input {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.checkbox-container input:hover {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.checkbox-container input:checked {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.checkbox-container input:checked::after {
    content: 'ÃƒÆ’Ã‚Â¢Ãƒâ€¦Ã¢â‚¬Å“ÃƒÂ¢Ã¢â€šÂ¬Ã…â€œ';
    position: absolute;
    top: -3px;
    left: 1px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    animation: checkboxCheck 0.3s ease-out;
}

/* NEW ANIMATIONS */
@keyframes inputError {
    0% { 
        transform: translateX(0);
    }
    10% { 
        transform: translateX(-8px);
        background: rgba(255, 71, 87, 0.1);
    }
    20% { 
        transform: translateX(8px);
    }
    30% { 
        transform: translateX(-5px);
    }
    40% { 
        transform: translateX(5px);
    }
    50% { 
        transform: translateX(-2px);
    }
    60% { 
        transform: translateX(2px);
    }
    100% { 
        transform: translateX(0);
    }
}

@keyframes inputSuccess {
    0% { 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.02);
        background: rgba(46, 213, 115, 0.15);
    }
    100% { 
        transform: scale(1);
    }
}

@keyframes iconShake {
    0%, 100% { transform: translateY(-50%) rotate(0deg); }
    25% { transform: translateY(-50%) rotate(-5deg) scale(1.1); }
    75% { transform: translateY(-50%) rotate(5deg) scale(1.1); }
}

@keyframes iconSuccess {
    0% { 
        transform: translateY(-50%) scale(1);
        color: rgba(255, 255, 255, 0.6);
    }
    50% { 
        transform: translateY(-50%) scale(1.3);
        color: #2ed573;
    }
    100% { 
        transform: translateY(-50%) scale(1.1);
        color: #2ed573;
    }
}




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

/* Popup container enhancements */
.popup-container {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    max-width: 480px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: scale(0.8) translateY(50px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: popupFloat 6s ease-in-out infinite;
    position: relative;
}

.popup-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 25px 25px 0 0;
    opacity: 0.8;
}

/* FORGOT PASSWORD POPUP */
.forgot-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    text-align: center;
}

.back-to-login {
    text-align: center;
    margin-top: 1.5rem;
}

.back-to-login a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    transition: all 0.3s ease;
}

.back-to-login a:hover {
    color: #48dbfb;
    text-decoration: underline;
}



/* LOGOUT SUCCESS POPUP */
.logout-success-popup {
    max-width: 420px;
}

.logout-success-content {
    text-align: center;
    padding: 1rem 0;
}

.logout-icon {
    margin-bottom: 1.5rem;
    font-size: 4rem;
    color: #2ed573;
    animation: logoutPulse 2s ease-in-out infinite;
}

.logout-success-content h4 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #2ed573, #20bf6b);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logout-success-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.logout-countdown {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logout-countdown span {
    color: #2ed573;
    font-weight: 700;
    font-size: 1.1rem;
}

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



/* COPYRIGHT SECTION */
.hero-copyright {
    margin-top: 1.5rem;
    padding-top: 1rem;
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.copyright-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 0.3rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.powered-by {
    font-size: 0.7rem;
}

.powered-by a {
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.powered-by a b {
    color: rgba(255, 255, 255, 0.45) !important;
    font-weight: 600;
    transition: color 0.3s ease;
}

.powered-by a:hover b {
    color: rgba(255, 255, 255, 0.7) !important;
}

.powered-by a:hover {
    transform: translateY(-1px);
}

.powered-by a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.3s ease;
}

.powered-by a:hover::after {
    width: 100%;
}

/* Responsive adjustments for copyright */
@media (max-width: 768px) {
    .hero-copyright {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .copyright-text {
        font-size: 0.75rem;
    }
    
    .powered-by {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .hero-copyright {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
    
    .copyright-text {
        font-size: 0.7rem;
    }
    
    .powered-by {
        font-size: 0.65rem;
    }
}

/* ========================================
   MODERN REGISTER MODAL DESIGN
   ======================================== */

/* Step Content - Optimized for Better Fit */
.step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0.75rem 1.25rem 0.5rem;
    min-height: 0;
    max-height: 100%;
    position: relative;
}

.step-title {
    font-size: 1rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 0.4rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    flex-shrink: 0;
    line-height: 1.2;
}

.step-description {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    flex-shrink: 0;
}

.form-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
    min-height: 0;
    max-height: calc(100% - 120px);
}

.form-group {
    min-height: 75px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.form-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.4rem;
    font-weight: 500;
    flex-shrink: 0;
}

.form-input {
    padding: 0.7rem 0.9rem;
    height: 42px;
    font-size: 0.85rem;
    border-radius: 9px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    background: rgba(102, 126, 234, 0.05);
    color: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.input-hint {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.2rem;
    line-height: 1.2;
    flex-shrink: 0;
}

.step-actions {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.75rem;
    min-height: 55px;
    margin-top: auto;
}

.btn-next, .btn-prev, .btn-submit {
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
    min-height: 42px;
    border-radius: 9px;
    font-weight: 500;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Modal Container - Optimized Size */
.register-popup .popup-container {
    max-width: 950px;
    width: 85vw;
    max-height: 85vh;
    height: 85vh;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(15, 15, 35, 0.95) 0%, rgba(26, 26, 62, 0.95) 100%);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border: 2px solid rgba(102, 126, 234, 0.3);
    box-shadow: 
        0 32px 64px -12px rgba(102, 126, 234, 0.4),
        0 0 0 1px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(102, 126, 234, 0.2);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.register-popup .popup-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    background: rgba(102, 126, 234, 0.03);
    min-height: 0;
    max-height: calc(85vh - 120px);
    position: relative;
}

/* Header Size - Restored */




/* Header Size Optimization */




@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(0);
    }
}

/* Header Design */
.register-popup .popup-header {
    padding: 0.75rem 1.25rem 0.5rem;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.95) 0%, rgba(26, 26, 62, 0.95) 100%);
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.register-popup .popup-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(102, 126, 234, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.header-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    gap: 1rem;
}

.header-left {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.header-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.header-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(102, 126, 234, 0.3) 50%, transparent 70%);
    animation: iconShimmer 2s infinite;
}

@keyframes iconShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.header-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.popup-title {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #667eea 50%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.2;
}

.popup-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 400;
    line-height: 1.3;
}

.close-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.close-btn:hover {
    background: rgba(102, 126, 234, 0.3);
    color: white;
    transform: scale(1.05);
}

/* Popup Content - Fixed Layout */
.register-popup .popup-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    background: rgba(102, 126, 234, 0.03);
    min-height: 0;
    max-height: calc(95vh - 120px);
}

/* Form Steps - Optimized Layout */
}




/* Progress Indicator - Restored */
.form-progress {
    padding: 0.75rem 1.5rem 1rem;
    background: rgba(102, 126, 234, 0.05);
    flex-shrink: 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.progress-bar {
    height: 4px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}



.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    width: 33.33%;
    transition: width 0.5s ease;
    position: relative;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.25rem;
}






.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.4;
    transition: all 0.3s ease;
    flex: 1;
    position: relative;
}

.step.active {
    opacity: 1;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.step.active .step-number {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    color: white;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
    transform: scale(1.1);
}

.step-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

.step.active .step-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* Form Steps */
.form-step {
    display: none;
    padding: 0.125rem 0;
    flex: 1;
    overflow: hidden;
    max-width: 100%;
}

.form-step.active {
    display: flex;
    flex-direction: column;
    animation: slideIn 0.5s ease;
}

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

/* Step Content Layout - Compact */
.step-content {
    max-width: 100%;
    margin: 0;
    padding: 0.75rem 1.25rem 0.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.step-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.375rem;
    padding-bottom: 0.375rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    flex-shrink: 0;
}

.step-title i {
    color: #667eea;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.step-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    flex-shrink: 0;
}

/* Form Grid - Compact */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex: 1;
    padding: 0;
    max-width: 100%;
    min-height: 0;
    align-content: start;
}


/* Form Label - Compact */

/* Form Input - Compact */

/* Input Hint - Compact */
.input-hint {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.2rem;
    line-height: 1.2;
    flex-shrink: 0;
}


.form-group {
    display: flex;
    flex-direction: column;
    min-height: 95px;
    position: relative;
    flex-shrink: 0;
}

/* Form Label */
.form-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.375rem;
    font-size: 0.85rem;
    padding: 0.125rem 0;
}

.form-label i {
    color: #667eea;
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
}

.required {
    color: #ff4757;
    font-weight: 700;
    margin-left: 0.25rem;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Form Input */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    height: 42px;
    font-weight: 400;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

.form-input:valid {
    border-color: rgba(46, 213, 115, 0.3);
    background: rgba(46, 213, 115, 0.05);
}

/* Input Validation */
.input-validation {
    position: absolute;
    right: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-input:valid + .input-validation {
    opacity: 1;
}

/* Input Validation Icons - Blue-Purple Theme */
.validation-icon {
    color: rgba(102, 126, 234, 0.6);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-input:valid + .input-validation .validation-icon {
    color: #667eea;
}

.form-input:invalid:not(:placeholder-shown) + .input-validation .validation-icon {
    color: #ff4757;
}

/* Form Input Border Colors - Blue-Purple Theme */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 0.9rem;
    height: 44px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

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

/* Select Dropdown - Fixed Colors for Visibility */
select.form-input {
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.2);
    color: white;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(102,126,234,0.8)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

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

select.form-input option {
    background: #1a1a3e !important;
    color: white !important;
    padding: 0.75rem;
    border: none;
    font-size: 0.9rem;
}

select.form-input option:hover {
    background: rgba(102, 126, 234, 0.3) !important;
    color: white !important;
}

select.form-input option:checked {
    background: #667eea !important;
    color: white !important;
}

select.form-input option:focus {
    background: rgba(102, 126, 234, 0.3) !important;
    color: white !important;
}

/* Password Toggle - Enhanced Visibility and Functionality */
.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.3);
    border-color: #667eea;
    transform: translateY(-50%) scale(1.05);
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

.password-toggle i {
    transition: all 0.3s ease;
}

.password-toggle.active i {
    color: #667eea;
}

/* Password Input with Toggle */
.form-group:has(.password-toggle) .form-input {
    padding-right: 3.5rem;
}

/* Step 3 Font Sizes - Ultra Compact */
.form-step[data-step="3"] .step-title {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    padding-bottom: 0.25rem;
}

.form-step[data-step="3"] .step-title i {
    font-size: 0.85rem;
}

.form-step[data-step="3"] .step-description {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.form-step[data-step="3"] .form-label {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.form-step[data-step="3"] .form-label i {
    font-size: 0.75rem;
}

.form-step[data-step="3"] .form-input {
    font-size: 0.8rem;
    height: 36px;
    padding: 0.6rem 0.75rem;
}

.form-step[data-step="3"] .input-hint {
    font-size: 0.65rem;
    margin-top: 0.15rem;
    line-height: 1.1;
}

.form-step[data-step="3"] .form-group {
    min-height: 70px;
}

.form-step[data-step="3"] .form-grid {
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.form-step[data-step="3"] .checkbox-label {
    font-size: 0.75rem;
    line-height: 1.2;
}

.form-step[data-step="3"] .checkbox-item {
    padding: 0.375rem;
    gap: 0.375rem;
}

.form-step[data-step="3"] .checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.form-step[data-step="3"] .checkbox-item input[type="checkbox"]:checked::after {
    font-size: 9px;
}

.form-step[data-step="3"] .terms-section {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
}

.form-step[data-step="3"] .step-actions {
    padding-top: 0.5rem;
    min-height: 45px;
}

.form-step[data-step="3"] .btn-next, 
.form-step[data-step="3"] .btn-prev, 
.form-step[data-step="3"] .btn-submit {
    padding: 0.6rem 1.25rem;
    font-size: 0.8rem;
    min-height: 36px;
}

/* Step 3 Layout Improvements */
.form-step[data-step="3"] .form-grid {
    margin-bottom: 1rem;
}

.form-step[data-step="3"] .terms-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

.form-step[data-step="3"] .step-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

/* Step 3 Input Validation Icons */
.form-step[data-step="3"] .validation-icon {
    color: rgba(102, 126, 234, 0.6);
    transition: all 0.3s ease;
}

.form-step[data-step="3"] .form-input:valid + .input-validation .validation-icon {
    color: #2ed573;
}

.form-step[data-step="3"] .form-input:invalid:not(:placeholder-shown) + .input-validation .validation-icon {
    color: #ff4757;
}

/* Step 3 Enhanced Focus States */
.form-step[data-step="3"] .form-input:focus {
    transform: translateY(-1px);
    box-shadow: 
        0 0 20px rgba(102, 126, 234, 0.3),
        0 4px 15px rgba(102, 126, 234, 0.1);
}

/* Step 3 Button Enhancements */
.form-step[data-step="3"] .btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.form-step[data-step="3"] .btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.form-step[data-step="3"] .btn-submit:hover::before {
    left: 100%;
}

.form-step[data-step="3"] .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.checkbox-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

.checkbox-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 6px;
    background: rgba(102, 126, 234, 0.1);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.checkbox-item input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.4);
}

.checkbox-item input[type="checkbox"]:checked::after {
    content: 'ÃƒÆ’Ã‚Â¢Ãƒâ€¦Ã¢â‚¬Å“ÃƒÂ¢Ã¢â€šÂ¬Ã…â€œ';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-item input[type="checkbox"]:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

.checkbox-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    line-height: 1.4;
    cursor: pointer;
    flex: 1;
}

.checkbox-label a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.checkbox-label a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Mini Calendar Styles */
.mini-calendar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.mini-calendar-overlay.active {
    display: flex;
    opacity: 1;
}

.mini-calendar-container {
    background: linear-gradient(145deg, rgba(15, 15, 35, 0.95) 0%, rgba(26, 26, 62, 0.95) 100%);
    border-radius: 15px;
    padding: 1.5rem;
    border: 2px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    min-width: 300px;
    max-width: 350px;
    animation: calendarSlideIn 0.3s ease;
}

@keyframes calendarSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.mini-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.calendar-nav-btn {
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: white;
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.calendar-nav-btn:hover {
    background: rgba(102, 126, 234, 0.3);
    transform: scale(1.05);
}

.calendar-month-year {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.mini-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.calendar-day-header {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 0;
}

.calendar-day {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 6px;
    padding: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
    transform: scale(1.05);
}

.calendar-day.other-month {
    color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.02);
}

.calendar-day.today {
    background: rgba(102, 126, 234, 0.3);
    border-color: #667eea;
    font-weight: 600;
}

.calendar-day.selected {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    color: white;
    font-weight: 600;
}

.mini-calendar-footer {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

.calendar-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
}

.calendar-clear {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.calendar-clear:hover {
    background: rgba(255, 107, 107, 0.3);
}

.calendar-today {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.calendar-today:hover {
    background: rgba(102, 126, 234, 0.3);
}

.calendar-close {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.calendar-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Input Hints */
.input-hint {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.25rem;
    padding-left: 0.125rem;
    font-style: italic;
    line-height: 1.2;
    font-weight: 400;
}

/* Password Strength */
.password-strength {
    margin-top: 0.75rem;
}

.strength-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4757, #ffa502, #2ed573);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}

.strength-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

/* Password Requirements - Improved Layout */
.password-requirements {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.75rem;
    border: 1px solid rgba(102, 126, 234, 0.1);
    flex-shrink: 0;
}

.password-requirements h5 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.requirement-item.valid {
    color: rgba(46, 213, 115, 0.8);
}

.requirement-item.valid i {
    color: rgba(46, 213, 115, 0.8);
}

.requirement-item i {
    font-size: 0.7rem;
    width: 12px;
    text-align: center;
}

.requirement-item i {
    font-size: 0.8rem;
    color: #ff4757;
}

.requirement-item.valid i {
    color: #2ed573;
}

/* Terms Section */
.terms-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

/* Step 4 - Compact Terms Section */
.form-step[data-step="3"] .terms-section {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    flex-shrink: 0;
}

.form-step[data-step="3"] .checkbox-group {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

.form-step[data-step="3"] .checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.form-step[data-step="3"] .checkbox-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 4px;
    background: rgba(102, 126, 234, 0.1);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.form-step[data-step="3"] .checkbox-item input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.3);
}

.form-step[data-step="3"] .checkbox-item input[type="checkbox"]:checked::after {
    content: 'ÃƒÆ’Ã‚Â¢Ãƒâ€¦Ã¢â‚¬Å“ÃƒÂ¢Ã¢â€šÂ¬Ã…â€œ';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.form-step[data-step="3"] .checkbox-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    line-height: 1.2;
    cursor: pointer;
    flex: 1;
}

.form-step[data-step="3"] .checkbox-label a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-step[data-step="3"] .checkbox-label a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-item:hover {
    background: rgba(102, 126, 234, 0.08);
    border-color: rgba(102, 126, 234, 0.15);
}

.checkbox-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 5px;
    background: rgba(102, 126, 234, 0.1);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.checkbox-item input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.checkbox-item input[type="checkbox"]:checked::after {
    content: 'ÃƒÆ’Ã‚Â¢Ãƒâ€¦Ã¢â‚¬Å“ÃƒÂ¢Ã¢â€šÂ¬Ã…â€œ';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-item input[type="checkbox"]:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

.checkbox-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.3;
    cursor: pointer;
    flex: 1;
}

.checkbox-label a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.checkbox-label a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Terms Section - Compact */
.terms-section {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

/* Step Actions - Compact */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.75rem;
    flex-shrink: 0;
    min-height: 50px;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    color: var(--text-white);
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-text a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.checkbox-text a:hover {
    color: #ff9ff3;
    text-decoration: underline;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.75rem;
    flex-shrink: 0;
}

.btn-next, .btn-prev, .btn-submit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-next, .btn-submit {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    margin-left: auto;
}

.btn-prev {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-next:hover, .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-prev:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-submit {
    background: linear-gradient(135deg, #2ed573, #7bed9f);
}

.btn-submit:hover {
    box-shadow: 0 10px 25px rgba(46, 213, 115, 0.4);
}

/* Button Loader */
.btn-loader {
    display: none;
    align-items: center;
    justify-content: center;
}

.btn-submit.loading .btn-text {
    opacity: 0;
}

.btn-submit.loading .btn-loader {
    display: flex;
}

.loader-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}


/* Error and Success Messages */
.register-error, .register-success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin: 1rem 0;
    font-weight: 500;
}

.register-error {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff4757;
}

.register-success {
    background: rgba(46, 213, 115, 0.1);
    border: 1px solid rgba(46, 213, 115, 0.3);
    color: #2ed573;
}

/* Footer */
.register-footer {
    padding: 0.375rem 1.25rem 0.5rem;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    background: rgba(102, 126, 234, 0.05);
    flex-shrink: 0;
}

.register-footer p {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin: 0;
    font-size: 0.8rem;
}

.register-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .register-popup .popup-container {
        max-width: 1000px;
        width: 85vw;
    }
    
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 1024px) {
    .register-popup .popup-container {
        max-width: 900px;
        width: 80vw;
    }
    
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }
}

@media (max-width: 768px) {
    .register-popup .popup-container {
        width: 95vw;
        height: 95vh;
        max-height: 95vh;
        border-radius: 15px;
    }
    
    .register-popup .popup-content {
        max-height: calc(95vh - 100px);
    }
    
    .popup-header {
        padding: 0.5rem 1rem 0.375rem;
    }
    
    .header-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .popup-title {
        font-size: 1.1rem;
    }
    
    .popup-subtitle {
        font-size: 0.7rem;
    }
    
    .form-progress {
        padding: 0.375rem 1rem 0.5rem;
    }
    
    .step-content {
        padding: 0.75rem 1rem 0.375rem;
    }
    
    .step-title {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
        padding-bottom: 0.2rem;
    }
    
    .step-description {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }
    
    .form-group {
        min-height: 80px;
    }
    
    .form-label {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }
    
    .form-input {
        padding: 0.75rem 1rem;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .input-hint {
        font-size: 0.7rem;
        margin-top: 0.25rem;
    }
    
    .step-actions {
        padding-top: 0.5rem;
        gap: 0.75rem;
        flex-direction: column;
    }
    
    .btn-next, .btn-prev, .btn-submit {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
    
    .password-requirements {
        padding: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .password-requirements h5 {
        font-size: 0.75rem;
        margin-bottom: 0.375rem;
    }
    
    .requirement-item {
        font-size: 0.7rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .progress-steps {
        gap: 0.5rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .register-popup .popup-container {
        width: 100vw;
        height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .popup-header {
        padding: 1rem;
    }
    
    .form-progress {
        padding: 1rem;
    }
    
    .form-step {
        padding: 1rem;
    }
    
    .register-footer {
        padding: 1rem;
    }
}


/* ============================================================================
   MODERN MODAL REDESIGN v2 - Premium Glassmorphism
   Overrides all previous popup styles for Login & Register modals
   ============================================================================ */

/* --- SHARED POPUP OVERLAY --- */
.popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(5, 5, 20, 0.85) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    z-index: 10000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.popup-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* --- SHARED POPUP CONTAINER --- */
.popup-overlay .popup-container {
    position: relative !important;
    background: linear-gradient(165deg, rgba(18, 18, 45, 0.96) 0%, rgba(10, 10, 30, 0.98) 100%) !important;
    border: 1px solid rgba(102, 126, 234, 0.18) !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    box-shadow:
        0 0 0 1px rgba(102, 126, 234, 0.08),
        0 24px 80px -16px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(102, 126, 234, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    transform: scale(0.92) translateY(30px) !important;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
    animation: none !important;
}

.popup-overlay.active .popup-container {
    transform: scale(1) translateY(0) !important;
}

/* Top gradient accent strip */
.popup-overlay .popup-container::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #48dbfb, #667eea) !important;
    z-index: 10 !important;
}

/* --- LOGIN POPUP --- */
.popup-overlay .popup-container.login-popup {
    max-width: 440px !important;
    width: 92vw !important;
    max-height: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
}

/* Login Header */
.login-popup .popup-header {
    padding: 2rem 2rem 1.5rem !important;
    border-bottom: 1px solid rgba(102, 126, 234, 0.12) !important;
    background: transparent !important;
    position: relative !important;
}

.login-popup .popup-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 2rem;
    right: 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
}

.login-popup .popup-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 60%, #a78bfa 100%) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin: 0 !important;
    letter-spacing: -0.02em !important;
}

.login-popup .popup-title i {
    font-size: 1.3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.4));
}

/* Login Close Button */
.popup-overlay .popup-close {
    width: 36px !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
}

.popup-overlay .popup-close:hover {
    background: rgba(255, 107, 107, 0.15) !important;
    border-color: rgba(255, 107, 107, 0.3) !important;
    color: #ff6b6b !important;
    transform: rotate(90deg) scale(1.05) !important;
}

/* Login Content */
.login-popup .popup-content {
    padding: 1.75rem 2rem 2rem !important;
    background: transparent !important;
    overflow: visible !important;
    max-height: none !important;
}

/* Login Form */
.login-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
}

/* Input Group - Modern */
.login-form .input-group {
    position: relative !important;
}

.login-form .input-icon {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: rgba(102, 126, 234, 0.5) !important;
    font-size: 0.95rem !important;
    z-index: 3 !important;
    transition: all 0.3s ease !important;
    pointer-events: none !important;
}

.login-form .input-group:focus-within .input-icon {
    color: #667eea !important;
    filter: drop-shadow(0 0 6px rgba(102, 126, 234, 0.4));
}

.login-form .form-input {
    width: 100% !important;
    padding: 0.95rem 1rem 0.95rem 2.75rem !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1.5px solid rgba(102, 126, 234, 0.15) !important;
    border-radius: 14px !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    height: auto !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    outline: none !important;
    font-family: 'Inter', sans-serif !important;
}

.login-form .form-input::placeholder {
    color: rgba(255, 255, 255, 0.28) !important;
    font-weight: 400 !important;
}

.login-form .form-input:focus {
    border-color: rgba(102, 126, 234, 0.5) !important;
    background: rgba(102, 126, 234, 0.06) !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.08), 0 0 20px rgba(102, 126, 234, 0.06) !important;
    transform: none !important;
}

.login-form .input-border {
    position: absolute !important;
    bottom: 0 !important;
    left: 14px !important;
    right: 14px !important;
    width: auto !important;
    height: 2px !important;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb) !important;
    border-radius: 2px !important;
    transform: scaleX(0) !important;
    transform-origin: center !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.login-form .form-input:focus ~ .input-border {
    transform: scaleX(1) !important;
    width: auto !important;
}

/* Form Options - Remember & Forgot */
.login-form .form-options {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 0.25rem 0 0.5rem !important;
    padding: 0 !important;
}

.login-form .remember-me {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.82rem !important;
    cursor: pointer !important;
    transition: color 0.3s ease !important;
}

.login-form .remember-me:hover {
    color: rgba(255, 255, 255, 0.7) !important;
}

.login-form .remember-me input[type="checkbox"] {
    appearance: none !important;
    width: 16px !important;
    height: 16px !important;
    border: 1.5px solid rgba(102, 126, 234, 0.35) !important;
    border-radius: 5px !important;
    background: rgba(102, 126, 234, 0.05) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.login-form .remember-me input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border-color: #667eea !important;
    box-shadow: 0 0 12px rgba(102, 126, 234, 0.3) !important;
}

.login-form .remember-me input[type="checkbox"]:checked::after {
    content: 'ÃƒÆ’Ã‚Â¢Ãƒâ€¦Ã¢â‚¬Å“ÃƒÂ¢Ã¢â€šÂ¬Ã…â€œ' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: white !important;
    font-size: 10px !important;
    font-weight: bold !important;
}

.login-form .forgot-password {
    color: rgba(102, 126, 234, 0.6) !important;
    text-decoration: none !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    padding: 0.25rem 0 !important;
}

.login-form .forgot-password:hover {
    color: #818cf8 !important;
    text-decoration: none !important;
    text-shadow: 0 0 12px rgba(129, 140, 248, 0.3);
}

/* Login Submit Button */
.login-popup .login-submit-btn {
    width: 100% !important;
    padding: 1rem 1.5rem !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #9b59b6 100%) !important;
    background-size: 200% 200% !important;
    border: none !important;
    border-radius: 14px !important;
    color: white !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    margin-top: 0.25rem !important;
}

.login-popup .login-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.login-popup .login-submit-btn:hover::before {
    left: 100%;
}

.login-popup .login-submit-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4), 0 0 20px rgba(118, 75, 162, 0.2) !important;
    background-position: 100% 100% !important;
}

.login-popup .login-submit-btn:active {
    transform: translateY(0) scale(0.98) !important;
}

/* Login Error/Success Messages */
.login-error, .login-success {
    display: none !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.85rem 1rem !important;
    border-radius: 12px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    margin-top: 0.5rem !important;
    animation: messageSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.login-error[style*="block"], .login-success[style*="block"],
.login-error[style*="flex"], .login-success[style*="flex"] {
    display: flex !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.login-error {
    background: rgba(255, 71, 87, 0.08) !important;
    border: 1px solid rgba(255, 71, 87, 0.2) !important;
    color: #ff8a96 !important;
}

.login-success {
    background: rgba(46, 213, 115, 0.08) !important;
    border: 1px solid rgba(46, 213, 115, 0.2) !important;
    color: #69db9f !important;
}

@keyframes messageSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Signup Link */
.login-popup .signup-link,
.login-popup + .signup-link {
    text-align: center !important;
    margin-top: 1.25rem !important;
    padding-top: 1.25rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.45) !important;
    font-size: 0.88rem !important;
}

/* --- FORGOT PASSWORD POPUP --- */
.popup-overlay .popup-container.forgot-password-popup {
    max-width: 440px !important;
    width: 92vw !important;
    max-height: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
}

.forgot-password-popup .popup-header {
    padding: 2rem 2rem 1.5rem !important;
    border-bottom: 1px solid rgba(102, 126, 234, 0.12) !important;
    background: transparent !important;
    position: relative !important;
}

.forgot-password-popup .popup-header .popup-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #00d4aa !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

.forgot-password-popup .popup-header .popup-title i {
    font-size: 1.1rem !important;
    color: #667eea !important;
}

.forgot-password-popup .popup-content {
    padding: 1.75rem 2rem 2rem !important;
    background: transparent !important;
    overflow: visible !important;
    max-height: none !important;
}

.forgot-password-popup .forgot-description {
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
    text-align: center !important;
}

/* Forgot password input group - match login style */
.forgot-password-popup .input-group {
    position: relative !important;
    margin-bottom: 1rem !important;
}

.forgot-password-popup .input-group .input-icon {
    position: absolute !important;
    left: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: rgba(102, 126, 234, 0.5) !important;
    font-size: 0.9rem !important;
    z-index: 2 !important;
    pointer-events: none !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.forgot-password-popup .input-group .form-input {
    width: 100% !important;
    padding: 1rem 1rem 1rem 2.75rem !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1.5px solid rgba(102, 126, 234, 0.15) !important;
    border-radius: 12px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.92rem !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    outline: none !important;
    box-sizing: border-box !important;
}

.forgot-password-popup .input-group .form-input:focus {
    border-color: rgba(102, 126, 234, 0.5) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.08), 0 4px 20px rgba(102, 126, 234, 0.1) !important;
}

.forgot-password-popup .input-group .form-input::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

/* Forgot password submit button - full width, gradient */
.forgot-password-popup .login-submit-btn {
    width: 100% !important;
    padding: 1rem 1.5rem !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #9b59b6 100%) !important;
    background-size: 200% 200% !important;
    border: none !important;
    border-radius: 14px !important;
    color: white !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    margin-top: 0.25rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.forgot-password-popup .login-submit-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4), 0 0 20px rgba(118, 75, 162, 0.2) !important;
    background-position: 100% 100% !important;
}

.forgot-password-popup .login-submit-btn:active {
    transform: translateY(0) scale(0.98) !important;
}

/* Back to login */
.forgot-password-popup .back-to-login {
    text-align: center !important;
    margin-top: 1.25rem !important;
    padding-top: 1.25rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.forgot-password-popup .back-to-login a {
    color: rgba(102, 126, 234, 0.6) !important;
    text-decoration: none !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    transition: all 0.3s ease !important;
}

.forgot-password-popup .back-to-login a:hover {
    color: #818cf8 !important;
}

/* ============================================================================
   REGISTER POPUP - MINIMALIST REDESIGN
   Clean, flat, modern. No excessive gradients or animations.
   ============================================================================ */

/* --- REGISTER CONTAINER --- */
.popup-overlay .popup-container.register-popup {
    max-width: 540px !important;
    width: 94vw !important;
    max-height: 88vh !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    background: rgba(15, 15, 30, 0.97) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important;
}

/* Remove the animated gradient top strip for register */
.popup-overlay .popup-container.register-popup::before {
    height: 2px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    animation: none !important;
}

/* --- REGISTER HEADER - Minimalist --- */
.register-popup .popup-header {
    padding: 1.5rem 2.25rem 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    background: transparent !important;
    flex-shrink: 0 !important;
    position: relative !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Remove pseudo-elements */
.register-popup .popup-header::before,
.register-popup .popup-header::after {
    display: none !important;
}

.register-popup .header-content {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
}

/* Remove the header icon box entirely */
.register-popup .header-icon {
    display: none !important;
}

.register-popup .header-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.15rem !important;
}

.register-popup .popup-title {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em !important;
}

.register-popup .popup-subtitle {
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.4) !important;
    margin: 0 !important;
    font-weight: 400 !important;
}

/* --- REGISTER CONTENT --- */
.register-popup .popup-content {
    flex: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: transparent !important;
    max-height: none !important;
    min-height: 0 !important;
    padding: 0 !important;
}

/* Minimal scrollbar */
.register-popup .popup-content::-webkit-scrollbar {
    width: 3px;
}

.register-popup .popup-content::-webkit-scrollbar-track {
    background: transparent;
}

.register-popup .popup-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.register-popup .popup-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --- PROGRESS INDICATOR - Clean & Minimal --- */
.register-popup .form-progress {
    padding: 0.75rem 2.25rem 0.6rem !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    flex-shrink: 0 !important;
}

.register-popup .progress-bar {
    height: 2px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border-radius: 2px !important;
    overflow: hidden !important;
    margin-bottom: 0.65rem !important;
}

.register-popup .progress-fill {
    height: 100% !important;
    background: #667eea !important;
    border-radius: 2px !important;
    transition: width 0.4s ease !important;
    box-shadow: none !important;
    position: relative !important;
}

/* Remove the glow pseudo-element */
.register-popup .progress-fill::after {
    display: none !important;
}

.register-popup .progress-steps {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
}

.register-popup .step {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.3rem !important;
    flex: 1 !important;
    opacity: 0.35 !important;
    transition: opacity 0.3s ease !important;
}

.register-popup .step.active {
    opacity: 1 !important;
}

.register-popup .step-number {
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.4) !important;
    transition: all 0.3s ease !important;
}

.register-popup .step.active .step-number {
    background: #667eea !important;
    border-color: #667eea !important;
    color: white !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Completed step - clean checkmark */
.register-popup .step.completed .step-number {
    background: #22c55e !important;
    border-color: #22c55e !important;
    color: white !important;
    box-shadow: none !important;
    font-size: 0 !important;
}

.register-popup .step.completed .step-number::after {
    content: '\2713';
    font-size: 0.7rem;
    font-weight: 700;
    animation: none !important;
}

.register-popup .step.completed {
    opacity: 0.7 !important;
}

.register-popup .step.completed .step-label {
    color: #22c55e !important;
}

.register-popup .step-label {
    font-size: 0.68rem !important;
    color: rgba(255, 255, 255, 0.35) !important;
    font-weight: 500 !important;
    text-align: center !important;
    line-height: 1.2 !important;
}

.register-popup .step.active .step-label {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 600 !important;
}

/* --- FORM STEPS --- */
.register-popup .form-step {
    display: none !important;
    flex-direction: column !important;
    padding: 0 !important;
    overflow: visible !important;
}

.register-popup .form-step.active {
    display: flex !important;
    animation: minStepFade 0.3s ease !important;
}

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

/* --- STEP CONTENT --- */
.register-popup .step-content {
    padding: 1.25rem 2.25rem 0.75rem !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Step 3 (terms) needs scrolling */
.register-popup .form-step[data-step="3"] .step-content {
    overflow-y: auto !important;
    max-height: calc(85vh - 280px) !important;
    padding-right: 1.75rem !important;
}

.register-popup .form-step[data-step="3"] .step-content::-webkit-scrollbar {
    width: 4px;
}

.register-popup .form-step[data-step="3"] .step-content::-webkit-scrollbar-track {
    background: transparent;
}

.register-popup .form-step[data-step="3"] .step-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.register-popup .form-step[data-step="3"] .step-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Remove step title & description (they are removed from HTML too) */
.register-popup .step-title {
    display: none !important;
}

.register-popup .step-description {
    display: none !important;
}

/* --- FORM GRID - Clean 2-column --- */
.register-popup .form-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem 0.85rem !important;
    margin-bottom: 0.6rem !important;
    max-height: none !important;
    overflow: visible !important;
}

/* --- FORM GROUP --- */
.register-popup .form-group {
    display: flex !important;
    flex-direction: column !important;
    min-height: auto !important;
    overflow: visible !important;
}

/* --- FORM LABEL - Clean, no icons --- */
.register-popup .form-label {
    display: flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin-bottom: 0.35rem !important;
}

/* Hide label icons */
.register-popup .form-label i {
    display: none !important;
}

.register-popup .required {
    color: #ef4444 !important;
    font-weight: 600 !important;
}

/* --- FORM INPUT - Flat & Clean --- */
.register-popup .form-input {
    width: 100% !important;
    padding: 0.65rem 2.2rem 0.65rem 0.85rem !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    height: 40px !important;
    outline: none !important;
    transition: border-color 0.2s ease, background 0.2s ease !important;
    font-family: 'Inter', sans-serif !important;
}

/* Password input padding */
.register-popup .form-input[type="password"],
.register-popup .form-input[id="passwordInput"] {
    padding-right: 5rem !important;
}

.register-popup .form-input::placeholder {
    color: rgba(255, 255, 255, 0.2) !important;
}

.register-popup .form-input:focus {
    border-color: rgba(102, 126, 234, 0.5) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow: none !important;
    transform: none !important;
}

.register-popup select.form-input {
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(255,255,255,0.3)' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    padding-right: 28px !important;
}

/* --- INPUT HINT --- */
.register-popup .input-hint {
    font-size: 0.68rem !important;
    color: rgba(255, 255, 255, 0.25) !important;
    margin-top: 0.25rem !important;
    line-height: 1.3 !important;
}

/* --- INPUT VALIDATION ICON --- */
.register-popup .input-validation {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.register-popup .validation-icon {
    color: rgba(255, 255, 255, 0.15) !important;
    font-size: 0.75rem !important;
}

.register-popup .form-input:valid + .input-validation .validation-icon {
    color: rgba(102, 126, 234, 0.5) !important;
}

/* --- STEP ACTIONS - Minimal buttons --- */
.register-popup .step-actions {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 0.6rem !important;
    padding: 0.75rem 2.25rem 1.25rem !important;
    margin-top: 0 !important;
    min-height: auto !important;
}

/* Next/Submit Buttons - Flat */
.register-popup .btn-next,
.register-popup .btn-submit {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    padding: 0.6rem 1.25rem !important;
    background: #667eea !important;
    border: none !important;
    border-radius: 8px !important;
    color: white !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background 0.2s ease, transform 0.15s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.register-popup .btn-next:hover,
.register-popup .btn-submit:hover {
    background: #5a6fd6 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25) !important;
}

.register-popup .btn-next:active,
.register-popup .btn-submit:active {
    transform: translateY(0) !important;
}

/* Remove arrow bounce animation */
.register-popup .btn-next:hover i,
.register-popup .btn-prev:hover i {
    animation: none !important;
}

/* Prev Button - Ghost */
.register-popup .btn-prev {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    padding: 0.6rem 1rem !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.register-popup .btn-prev:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    transform: none !important;
}

/* --- PASSWORD STRENGTH - Subtle --- */
.register-popup .password-strength {
    margin-top: 0.4rem !important;
}

.register-popup .strength-bar {
    height: 2px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border-radius: 2px !important;
    overflow: hidden !important;
    margin-bottom: 0.2rem !important;
}

.register-popup .strength-fill {
    height: 100% !important;
    border-radius: 2px !important;
    transition: all 0.3s ease !important;
}

.register-popup .strength-text {
    font-size: 0.65rem !important;
    color: rgba(255, 255, 255, 0.3) !important;
}

/* --- PASSWORD TOGGLE --- */
.register-popup .password-toggle {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.25) !important;
    cursor: pointer !important;
    padding: 4px !important;
    font-size: 0.8rem !important;
    transition: color 0.2s ease !important;
}

.register-popup .password-toggle:hover {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* --- PASSWORD REQUIREMENTS - Compact --- */
.register-popup .password-requirements {
    margin-top: 0.5rem !important;
    padding: 0.6rem 0.75rem !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
}

.register-popup .password-requirements h5 {
    font-size: 0.72rem !important;
    color: rgba(255, 255, 255, 0.45) !important;
    margin: 0 0 0.4rem 0 !important;
    font-weight: 500 !important;
}

.register-popup .password-requirements ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.2rem 0.75rem !important;
}

.register-popup .requirement-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    font-size: 0.7rem !important;
    color: rgba(255, 255, 255, 0.35) !important;
    transition: color 0.2s ease !important;
}

.register-popup .requirement-item i {
    font-size: 0.6rem !important;
    width: 12px !important;
    text-align: center !important;
}

.register-popup .requirement-item.met,
.register-popup .requirement-item.valid {
    color: #22c55e !important;
}

.register-popup .requirement-item.met i,
.register-popup .requirement-item.valid i {
    color: #22c55e !important;
}

.register-popup .requirement-item.valid i::before {
    content: "\f00c";
}

/* --- TERMS SECTION --- */
.register-popup .terms-section {
    padding: 0 !important;
}

.register-popup .terms-preview {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 8px !important;
    margin-bottom: 0.5rem !important;
    overflow: hidden !important;
    transition: border-color 0.2s ease !important;
}

.register-popup .terms-preview-header {
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    padding: 0.65rem 0.85rem !important;
    cursor: pointer !important;
    user-select: none !important;
    transition: background 0.2s ease !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
}

.register-popup .terms-preview-header:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

.register-popup .terms-preview-header i:first-child {
    color: #667eea !important;
    font-size: 0.85rem !important;
    width: 18px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

.register-popup .terms-preview-header span {
    flex: 1 !important;
}

.register-popup .terms-preview-header .terms-arrow {
    font-size: 0.65rem !important;
    color: rgba(255, 255, 255, 0.3) !important;
    flex-shrink: 0 !important;
}

.register-popup .terms-preview:hover {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.register-popup .terms-preview.expanded {
    border-color: rgba(102, 126, 234, 0.2) !important;
    background: rgba(255, 255, 255, 0.03) !important;
}

.register-popup .terms-preview-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s ease;
    padding: 0 0.85rem !important;
}

.register-popup .terms-preview.expanded .terms-preview-content {
    max-height: 350px;
    padding: 0.6rem 0.85rem 0.75rem !important;
    overflow-y: auto;
}

.register-popup .terms-preview-content p {
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.55) !important;
    line-height: 1.5 !important;
    margin-bottom: 0.5rem !important;
}

.register-popup .terms-preview-content p strong {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 600 !important;
}

.register-popup .terms-preview-content ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.35rem !important;
}

.register-popup .terms-preview-content li {
    font-size: 0.73rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
    line-height: 1.5 !important;
    padding: 0.3rem 0 0.3rem 1rem !important;
    position: relative !important;
    border-left: 2px solid rgba(102, 126, 234, 0.15) !important;
}

.register-popup .terms-preview-content li strong {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 600 !important;
}

/* Scrollbar for terms content */
.register-popup .terms-preview-content::-webkit-scrollbar {
    width: 4px;
}

.register-popup .terms-preview-content::-webkit-scrollbar-track {
    background: transparent;
}

.register-popup .terms-preview-content::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.2);
    border-radius: 2px;
}

.register-popup .terms-preview-content::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.4);
}

.register-popup .terms-preview-content .terms-note {
    margin-top: 0.6rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.72rem;
}

.register-popup .terms-preview-content .terms-note a {
    color: #667eea !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.register-popup .terms-preview-content .terms-note a:hover {
    color: #8b9cf7 !important;
    text-decoration: underline;
}

.register-popup .terms-preview-content .terms-note i {
    margin-right: 0.3rem;
    font-size: 0.65rem;
}

.register-popup .terms-arrow {
    transition: transform 0.25s ease !important;
}

.register-popup .terms-preview.expanded .terms-arrow {
    transform: rotate(180deg) !important;
}

/* --- CHECKBOX GROUP - Clean --- */
.register-popup .checkbox-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    margin-top: 0.5rem !important;
}

.register-popup .checkbox-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    padding: 0.6rem 0.75rem !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 8px !important;
    transition: border-color 0.2s ease !important;
    cursor: pointer !important;
}

.register-popup .checkbox-item:hover {
    border-color: rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.03) !important;
}

/* Hide native checkbox */
.register-popup .checkbox-group .checkbox-item input[type="checkbox"],
.register-popup .form-step .checkbox-item input[type="checkbox"],
.register-popup div.checkbox-item input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    pointer-events: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    overflow: hidden !important;
}

/* Custom checkbox */
.register-popup .checkbox-custom {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    border-radius: 4px !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    background: transparent !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

.register-popup .checkbox-custom i {
    font-size: 9px !important;
    color: transparent !important;
    transition: all 0.2s ease !important;
    transform: scale(0);
}

.register-popup .checkbox-item input:checked + .checkbox-label .checkbox-custom {
    background: #667eea !important;
    border-color: #667eea !important;
    box-shadow: none !important;
    transform: none !important;
}

.register-popup .checkbox-item input:checked + .checkbox-label .checkbox-custom i {
    color: white !important;
    transform: scale(1);
}

.register-popup .checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    cursor: pointer !important;
    font-size: 0.76rem !important;
    color: rgba(255, 255, 255, 0.55) !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.register-popup .checkbox-label a {
    color: #667eea !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.2s ease !important;
}

.register-popup .checkbox-label a:hover {
    color: #818cf8 !important;
    text-decoration: underline !important;
}

/* --- ACCEPT ALL BUTTON - Minimal --- */
.register-popup .accept-all-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-family: 'Inter', sans-serif !important;
}

.register-popup .accept-all-btn:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: rgba(255, 255, 255, 0.75) !important;
    transform: none !important;
}

/* Remove ::before shimmer effect */
.register-popup .accept-all-btn::before {
    display: none !important;
}

.register-popup .accept-all-btn.all-accepted {
    background: #22c55e !important;
    border-color: #22c55e !important;
    color: white !important;
    box-shadow: none !important;
}

/* --- REGISTER ERROR/SUCCESS --- */
.register-error, .register-success {
    display: none !important;
    align-items: center !important;
    gap: 0.6rem !important;
    padding: 0.65rem 1rem !important;
    margin: 0 1.75rem 0.5rem !important;
    border-radius: 8px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
}

.register-error[style*="block"], .register-success[style*="block"] {
    display: flex !important;
}

.register-error {
    background: rgba(239, 68, 68, 0.08) !important;
    border: 1px solid rgba(239, 68, 68, 0.15) !important;
    color: #fca5a5 !important;
}

.register-success {
    background: rgba(34, 197, 94, 0.08) !important;
    border: 1px solid rgba(34, 197, 94, 0.15) !important;
    color: #86efac !important;
}

/* --- SUBMIT BUTTON LOADING STATE --- */
.register-popup .btn-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

.register-popup .btn-submit.loading span {
    visibility: hidden;
}

.register-popup .btn-submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: minSpin 0.7s linear infinite;
}

@keyframes minSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- DATE PICKER BUTTON --- */
.register-popup .date-picker-btn {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.25) !important;
    cursor: pointer !important;
    font-size: 0.8rem !important;
    transition: color 0.2s ease !important;
}

.register-popup .date-picker-btn:hover {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* --- FOOTER LINK --- */
.register-popup .popup-footer .auth-link a {
    position: relative;
    text-decoration: none !important;
}

.register-popup .popup-footer .auth-link a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: #667eea;
    transition: width 0.2s ease;
}

.register-popup .popup-footer .auth-link a:hover::after {
    width: 100%;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .popup-overlay .popup-container.register-popup {
        max-width: 100% !important;
        width: 95vw !important;
        max-height: 92vh !important;
        border-radius: 14px !important;
    }

    .register-popup .form-grid {
        grid-template-columns: 1fr !important;
        gap: 0.7rem !important;
    }
}

@media (max-width: 480px) {
    .popup-overlay .popup-container.register-popup {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
    }

    .register-popup .step-content {
        padding: 1rem 1.25rem 0.75rem !important;
    }

    .register-popup .step-actions {
        padding: 0.6rem 1.25rem 0.75rem !important;
    }
}

/* --- PASSWORD REQ GRID --- */
.register-popup .password-req-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.2rem 0.75rem !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.register-popup .password-req-grid .requirement-item {
    font-size: 0.68rem !important;
    gap: 0.3rem !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* --- SKIP BUTTON --- */
.register-popup .btn-skip {
    transition: all 0.2s ease !important;
}

.register-popup .btn-skip:hover {
    color: #667eea !important;
    transform: none !important;
}

/* --- VALIDATION SHAKE --- */
.input-wrapper.shake {
    animation: minShake 0.35s ease;
}

@keyframes minShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
    75% { transform: translateX(-2px); }
}

/* --- OPTIONAL CHECKBOX --- */
.register-popup .checkbox-item.optional {
    opacity: 0.75;
    border-style: dashed !important;
}

.register-popup .checkbox-item.optional:hover {
    opacity: 1;
}

/* --- ACCEPT ALL WRAPPER --- */
.accept-all-wrapper {
    text-align: center !important;
    padding-top: 0.5rem !important;
}

/* --- REQUIREMENT ITEM ICON FIX --- */
.register-popup .requirement-item.valid i {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
}

/* --- TEXTAREA --- */
.register-popup .form-textarea {
    height: auto !important;
    min-height: 70px !important;
    resize: vertical !important;
}

/* --- INPUT WRAPPER --- */
.register-popup .form-group .input-wrapper {
    position: relative;
}

/* ============================================================
   SHARED MODAL STYLES - Social Login, Terms, Footer etc.
   ============================================================ */

/* --- Social Login Section --- */
.social-login-section {
    padding: 0.75rem 2.25rem 0 !important;
}

.register-popup .social-login-section {
    padding: 0.75rem 2.25rem 0 !important;
}

.social-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.divider-text {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.28);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.social-buttons {
    display: flex;
    flex-direction: row;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: none;
    background: rgba(102, 126, 234, 0.1);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.social-btn i {
    font-size: 0.9rem;
    color: #818cf8;
}

.social-btn:hover {
    background: rgba(102, 126, 234, 0.18);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

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

/* Google */
.google-btn i { color: #818cf8; }
.google-btn:hover {
    background: rgba(102, 126, 234, 0.2);
}

/* Facebook */
.facebook-btn i { color: #a78bfa; }
.facebook-btn:hover {
    background: rgba(167, 139, 250, 0.15);
}

/* --- Popup Footer --- */
.popup-footer {
    padding: 0.75rem 2.25rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 0.5rem;
}

.popup-footer .auth-link {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}

.popup-footer .auth-link a {
    color: #818cf8;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.popup-footer .auth-link a:hover {
    color: #a78bfa;
}

/* --- Terms Preview Accordion --- */
.terms-preview {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.terms-preview:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.terms-preview-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 0.85rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.82rem;
    transition: background 0.2s ease;
    user-select: none;
}

.terms-preview-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.terms-preview-header i:first-child {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    width: 18px;
    text-align: center;
}

.terms-preview-header span {
    flex: 1;
}

.terms-arrow {
    transition: transform 0.25s ease;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
}

.terms-preview.expanded .terms-arrow {
    transform: rotate(180deg);
}

.terms-preview-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.2s ease;
    padding: 0 0.85rem;
}

.terms-preview.expanded .terms-preview-content {
    max-height: 250px;
    padding: 0 0.85rem 0.75rem;
}

.terms-preview-content p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.76rem;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.terms-preview-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terms-preview-content ul li {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.74rem;
    padding: 0.2rem 0;
    padding-left: 1rem;
    position: relative;
    line-height: 1.3;
}

.terms-preview-content ul li::before {
    content: 'ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â¢';
    position: absolute;
    left: 0.2rem;
    color: rgba(255, 255, 255, 0.25);
    font-weight: bold;
}

.terms-preview + .terms-preview {
    margin-top: 0;
}

/* --- Skip Step Button --- */
.step-skip-info {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.btn-skip {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.76rem;
    cursor: pointer;
    padding: 0.4rem 0.75rem;
    border-radius: 15px;
    transition: all 0.2s ease;
}

.btn-skip:hover {
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.04);
}

.btn-skip i {
    margin-right: 0.3rem;
    font-size: 0.68rem;
}

/* --- Textarea --- */
.form-textarea {
    resize: vertical;
    min-height: 70px;
    max-height: 150px;
    font-family: inherit;
    line-height: 1.5;
}

.textarea-counter {
    text-align: right;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 0.2rem;
    padding-right: 0.25rem;
}

.textarea-wrapper {
    position: relative;
}

.textarea-wrapper .form-textarea {
    padding-right: 0.9rem !important;
    resize: vertical;
    min-height: 70px;
    max-height: 150px;
}

.textarea-counter span {
    transition: color 0.2s ease;
}

.textarea-counter.warning {
    color: #ffa502 !important;
}

.textarea-counter.danger {
    color: #ff4757 !important;
}

/* --- Full Width Form Group --- */
.form-group.full-width {
    grid-column: 1 / -1;
}

/* --- Username URL Preview --- */
.username-preview {
    display: none;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: #667eea;
    margin-top: 0.3rem;
    padding: 0.35rem 0.65rem;
    background: rgba(102, 126, 234, 0.06);
    border: 1px solid rgba(102, 126, 234, 0.12);
    border-radius: 6px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.username-preview.visible {
    opacity: 1;
    transform: translateY(0);
}

.username-preview i {
    font-size: 0.65rem;
    opacity: 0.6;
}

.username-preview strong {
    color: #a78bfa;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* --- Password Generator Button --- */
.password-generate-btn {
    position: absolute;
    right: 42px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: #667eea;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.2s ease;
    z-index: 3;
}

.password-generate-btn:hover {
    background: rgba(102, 126, 234, 0.18);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-50%) scale(1.05);
    color: #818cf8;
}

.password-generate-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.password-generate-btn.generated {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
}

/* Password Copied Tooltip */
.password-copied-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: #22c55e;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 10;
}

.password-copied-tooltip::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 7px;
    height: 7px;
    background: #22c55e;
}

.password-copied-tooltip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* --- Availability Status Indicator - Compact Overlay --- */
.availability-status {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.6rem;
    font-weight: 500;
    padding: 0.12rem 0.4rem;
    border-radius: 4px;
    position: absolute;
    bottom: -16px;
    right: 0;
    z-index: 5;
    opacity: 0;
    transform: translateY(-3px);
    transition: all 0.25s ease;
    white-space: nowrap;
    pointer-events: none;
}

.availability-status.visible {
    opacity: 1;
    transform: translateY(0);
}

.availability-status.loading {
    color: #667eea;
    background: rgba(15, 15, 30, 0.9);
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.availability-status.available {
    color: #22c55e;
    background: rgba(15, 15, 30, 0.9);
    border: 1px solid rgba(34, 197, 94, 0.15);
}

.availability-status.taken {
    color: #ef4444;
    background: rgba(15, 15, 30, 0.9);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.availability-status i {
    font-size: 0.55rem;
}

/* --- Validation Icon Enhancement --- */
.input-validation {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.validation-icon {
    font-size: 0.75rem;
    opacity: 0;
    transition: all 0.2s ease;
    color: #22c55e;
}

.input-wrapper.valid .validation-icon {
    opacity: 1;
    color: #22c55e;
}

.input-wrapper.invalid .validation-icon {
    opacity: 1;
    color: #ef4444;
}

/* Input border on valid/invalid */
.input-wrapper.valid .form-input {
    border-color: rgba(34, 197, 94, 0.3) !important;
}

.input-wrapper.invalid .form-input {
    border-color: rgba(239, 68, 68, 0.3) !important;
}

/* --- Input Wrapper --- */
.input-wrapper {
    position: relative;
}

.input-wrapper:has(.password-generate-btn) .validation-icon {
    display: none;
}

.input-wrapper:has(.password-generate-btn) .password-toggle {
    right: 10px;
}

/* --- Phone Input --- */
#phoneInput {
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
}

/* --- City Search Input --- */
.city-search-wrapper {
    position: relative;
    margin-bottom: 0.4rem;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.city-search-input {
    width: 100%;
    padding: 0.5rem 0.7rem 0.5rem 2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.78rem;
    outline: none;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.city-search-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.city-search-input:focus {
    border-color: rgba(102, 126, 234, 0.4);
    background: rgba(255, 255, 255, 0.06);
}

.city-search-icon {
    position: absolute;
    left: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.7rem;
    pointer-events: none;
}

/* --- Forgot Error/Success --- */
.forgot-error, .forgot-success {
    display: none !important;
    align-items: center !important;
    gap: 0.6rem !important;
    padding: 0.65rem 1rem !important;
    border-radius: 8px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    margin-top: 0.75rem !important;
}

.forgot-error[style*="flex"], .forgot-success[style*="flex"],
.forgot-error[style*="block"], .forgot-success[style*="block"] {
    display: flex !important;
}

.forgot-error {
    background: rgba(239, 68, 68, 0.08) !important;
    border: 1px solid rgba(239, 68, 68, 0.15) !important;
    color: #fca5a5 !important;
}

.forgot-success {
    background: rgba(34, 197, 94, 0.08) !important;
    border: 1px solid rgba(34, 197, 94, 0.15) !important;
    color: #86efac !important;
}

/* --- Mobile Responsive for Password Generate Btn --- */
@media (max-width: 768px) {
    .password-generate-btn {
        right: 65px;
        width: 26px;
        height: 26px;
        font-size: 0.65rem;
    }
    
    .register-popup .form-input {
        padding-right: 90px;
    }
    
    .username-preview {
        font-size: 0.65rem;
    }
}

@media (max-width: 600px) {
    .availability-status {
        font-size: 0.63rem;
        padding: 0.2rem 0.4rem;
    }
    
    .password-generate-btn {
        width: 22px;
        height: 22px;
        right: 36px;
        font-size: 0.6rem;
    }
}

/* ============================================================
   LOGIN MODAL ENHANCEMENTS
   ============================================================ */
/* Login - Beni hatÃƒâ€Ã‚Â±rla checkbox custom */
.login-popup .remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.login-popup .remember-me input[type="checkbox"] {
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 4px;
    background: rgba(102, 126, 234, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
}

.login-popup .remember-me input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
}

.login-popup .remember-me input[type="checkbox"]:checked::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: 700;
}


/* Ensure select stays within bounds */
.register-popup select.form-input {
    width: 100% !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    overflow: hidden !important;
}



/* Username preview URL box */
.register-popup .username-preview {
    margin-top: 0.25rem !important;
    font-size: 0.7rem !important;
}

/* Availability status */
.register-popup .availability-status {
    font-size: 0.68rem !important;
    margin-top: 0.2rem !important;
}

/* Validation icons subtle */
.register-popup .input-wrapper.valid .form-input {
    border-color: rgba(34, 197, 94, 0.25) !important;
}

.register-popup .input-wrapper.invalid .form-input {
    border-color: rgba(239, 68, 68, 0.25) !important;
}

/* ============================================================
   SOCIAL BUTTONS AT TOP OF MODAL - Minimalist Theme
   ============================================================ */
.social-login-section.social-top {
    padding: 1rem 2.25rem 0 !important;
}

.social-login-section.social-top .social-buttons {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.6rem;
}

.social-login-section.social-top .social-btn {
    flex: 1;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(102, 126, 234, 0.1) !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.75) !important;
}

.social-login-section.social-top .social-btn:hover {
    background: rgba(102, 126, 234, 0.18) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.social-login-section.social-top .social-btn i {
    font-size: 0.9rem;
    width: auto;
}

.social-login-section.social-top .social-divider {
    margin-top: 0.5rem;
    margin-bottom: 0.15rem;
}

/* ========================================
   3D SCATTERED FLOATING ICONS
   ======================================== */
.float-3d {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    z-index: 2;
}

/* Varying sizes, positions, and 3D depth - scattered around phone */
.float-3d-1 { width: 50px; height: 50px; font-size: 1.3rem; top: -20px; right: 8%; animation: float3d1 7s ease-in-out infinite; background: rgba(102, 126, 234, 0.12); border-color: rgba(102, 126, 234, 0.2); }
.float-3d-2 { width: 42px; height: 42px; font-size: 1.05rem; top: 5%; left: -35px; animation: float3d2 9s ease-in-out infinite; }
.float-3d-3 { width: 56px; height: 56px; font-size: 1.4rem; top: 18%; right: -40px; animation: float3d3 8s ease-in-out infinite; border-radius: 50%; background: rgba(225, 48, 108, 0.12); border-color: rgba(225, 48, 108, 0.2); }
.float-3d-4 { width: 46px; height: 46px; font-size: 1.15rem; top: 35%; left: -45px; animation: float3d4 10s ease-in-out infinite; background: rgba(37, 211, 102, 0.1); border-color: rgba(37, 211, 102, 0.2); }
.float-3d-5 { width: 38px; height: 38px; font-size: 0.9rem; top: 52%; right: -32px; animation: float3d5 6.5s ease-in-out infinite; }
.float-3d-6 { width: 44px; height: 44px; font-size: 1.1rem; top: 68%; left: -30px; animation: float3d6 11s ease-in-out infinite; border-radius: 50%; background: rgba(0, 119, 181, 0.12); border-color: rgba(0, 119, 181, 0.2); }
.float-3d-7 { width: 36px; height: 36px; font-size: 0.85rem; top: 78%; right: -22px; animation: float3d7 7.5s ease-in-out infinite; }
.float-3d-8 { width: 52px; height: 52px; font-size: 1.3rem; bottom: 12%; left: -40px; animation: float3d8 9s ease-in-out infinite; background: rgba(255, 0, 0, 0.1); border-color: rgba(255, 0, 0, 0.15); }
.float-3d-9 { width: 34px; height: 34px; font-size: 0.8rem; bottom: 3%; right: 3%; animation: float3d9 10s ease-in-out infinite; border-radius: 50%; }
.float-3d-10 { width: 40px; height: 40px; font-size: 0.95rem; bottom: -12px; left: 18%; animation: float3d10 7s ease-in-out infinite; background: rgba(0, 0, 0, 0.15); }
.float-3d-11 { width: 48px; height: 48px; font-size: 1.2rem; top: 3%; left: 28%; animation: float3d11 12s ease-in-out infinite; border-radius: 50%; background: rgba(102, 126, 234, 0.1); border-color: rgba(102, 126, 234, 0.15); }
.float-3d-12 { width: 32px; height: 32px; font-size: 0.75rem; bottom: 22%; right: -18px; animation: float3d12 6s ease-in-out infinite; color: #ef4444; background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.15); }

/* Multi-axis 3D orbit animations - each icon has unique path */
@keyframes float3d1 {
    0% { transform: perspective(400px) rotateX(15deg) rotateY(-10deg) rotateZ(0deg) translateY(0) translateX(0); }
    25% { transform: perspective(400px) rotateX(25deg) rotateY(-25deg) rotateZ(3deg) translateY(-14px) translateX(8px); }
    50% { transform: perspective(400px) rotateX(10deg) rotateY(-5deg) rotateZ(-2deg) translateY(-22px) translateX(-5px); }
    75% { transform: perspective(400px) rotateX(20deg) rotateY(-18deg) rotateZ(1deg) translateY(-8px) translateX(12px); }
    100% { transform: perspective(400px) rotateX(15deg) rotateY(-10deg) rotateZ(0deg) translateY(0) translateX(0); }
}
@keyframes float3d2 {
    0% { transform: perspective(400px) rotateX(-10deg) rotateY(20deg) translateY(0) translateX(0); }
    33% { transform: perspective(400px) rotateX(-25deg) rotateY(5deg) translateY(-18px) translateX(-10px); }
    66% { transform: perspective(400px) rotateX(-5deg) rotateY(30deg) translateY(-10px) translateX(6px); }
    100% { transform: perspective(400px) rotateX(-10deg) rotateY(20deg) translateY(0) translateX(0); }
}
@keyframes float3d3 {
    0% { transform: perspective(400px) rotateX(5deg) rotateY(-15deg) translateY(0) scale(1); }
    25% { transform: perspective(400px) rotateX(18deg) rotateY(-30deg) translateY(-16px) scale(1.12); }
    50% { transform: perspective(400px) rotateX(-5deg) rotateY(-8deg) translateY(-26px) scale(1.05); }
    75% { transform: perspective(400px) rotateX(12deg) rotateY(-22deg) translateY(-10px) scale(1.08); }
    100% { transform: perspective(400px) rotateX(5deg) rotateY(-15deg) translateY(0) scale(1); }
}
@keyframes float3d4 {
    0% { transform: perspective(400px) rotateX(-15deg) rotateY(10deg) rotateZ(0deg) translateY(0); }
    50% { transform: perspective(400px) rotateX(-5deg) rotateY(28deg) rotateZ(-4deg) translateY(-24px); }
    100% { transform: perspective(400px) rotateX(-15deg) rotateY(10deg) rotateZ(0deg) translateY(0); }
}
@keyframes float3d5 {
    0% { transform: perspective(400px) rotateX(20deg) rotateY(-5deg) translateY(0) translateX(0); }
    33% { transform: perspective(400px) rotateX(8deg) rotateY(-20deg) translateY(-15px) translateX(-8px); }
    66% { transform: perspective(400px) rotateX(28deg) rotateY(5deg) translateY(-8px) translateX(5px); }
    100% { transform: perspective(400px) rotateX(20deg) rotateY(-5deg) translateY(0) translateX(0); }
}
@keyframes float3d6 {
    0% { transform: perspective(400px) rotateX(-5deg) rotateY(15deg) translateY(0) scale(1); }
    50% { transform: perspective(400px) rotateX(-18deg) rotateY(2deg) translateY(-20px) scale(1.06); }
    100% { transform: perspective(400px) rotateX(-5deg) rotateY(15deg) translateY(0) scale(1); }
}
@keyframes float3d7 {
    0% { transform: perspective(400px) rotateX(10deg) rotateY(-20deg) rotateZ(0deg) translateY(0); }
    25% { transform: perspective(400px) rotateX(22deg) rotateY(-8deg) rotateZ(5deg) translateY(-12px); }
    50% { transform: perspective(400px) rotateX(5deg) rotateY(-28deg) rotateZ(-3deg) translateY(-18px); }
    75% { transform: perspective(400px) rotateX(16deg) rotateY(-14deg) rotateZ(2deg) translateY(-6px); }
    100% { transform: perspective(400px) rotateX(10deg) rotateY(-20deg) rotateZ(0deg) translateY(0); }
}
@keyframes float3d8 {
    0% { transform: perspective(400px) rotateX(-20deg) rotateY(5deg) translateY(0) scale(1); }
    50% { transform: perspective(400px) rotateX(-8deg) rotateY(18deg) translateY(-22px) scale(1.1); }
    100% { transform: perspective(400px) rotateX(-20deg) rotateY(5deg) translateY(0) scale(1); }
}
@keyframes float3d9 {
    0% { transform: perspective(400px) rotateX(15deg) rotateY(15deg) translateY(0); }
    33% { transform: perspective(400px) rotateX(5deg) rotateY(28deg) translateY(-12px); }
    66% { transform: perspective(400px) rotateX(22deg) rotateY(8deg) translateY(-6px); }
    100% { transform: perspective(400px) rotateX(15deg) rotateY(15deg) translateY(0); }
}
@keyframes float3d10 {
    0% { transform: perspective(400px) rotateX(-10deg) rotateY(-15deg) rotateZ(0deg) translateY(0); }
    50% { transform: perspective(400px) rotateX(-22deg) rotateY(-2deg) rotateZ(4deg) translateY(-18px); }
    100% { transform: perspective(400px) rotateX(-10deg) rotateY(-15deg) rotateZ(0deg) translateY(0); }
}
@keyframes float3d11 {
    0% { transform: perspective(400px) rotateX(10deg) rotateY(10deg) translateY(0) scale(1); }
    25% { transform: perspective(400px) rotateX(22deg) rotateY(22deg) translateY(-15px) scale(1.12); }
    50% { transform: perspective(400px) rotateX(5deg) rotateY(5deg) translateY(-22px) scale(1.05); }
    75% { transform: perspective(400px) rotateX(18deg) rotateY(16deg) translateY(-8px) scale(1.08); }
    100% { transform: perspective(400px) rotateX(10deg) rotateY(10deg) translateY(0) scale(1); }
}
@keyframes float3d12 {
    0% { transform: perspective(400px) rotateX(-15deg) rotateY(-10deg) translateY(0); }
    50% { transform: perspective(400px) rotateX(-3deg) rotateY(-25deg) translateY(-14px); }
    100% { transform: perspective(400px) rotateX(-15deg) rotateY(-10deg) translateY(0); }
}

/* ========================================
   FLOATING SHOP BUTTON
   ======================================== */
.floating-side-btns {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.floating-shop-btn {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 200%;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: shopBtnFloat 4s ease-in-out infinite, shopBtnGradient 6s ease infinite;
    border: 2px solid rgba(255, 255, 255, 0.12);
}

.floating-shop-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, rgba(102, 126, 234, 0.3), transparent, rgba(118, 75, 162, 0.3), transparent);
    animation: shopOrbit 5s linear infinite;
    z-index: -1;
}

.floating-shop-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
    animation: shopShine 3s ease-in-out infinite;
}

.floating-shop-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 45px rgba(102, 126, 234, 0.55);
}

.shop-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0a0a1e;
    z-index: 3;
    animation: badgePop 2s ease-in-out infinite;
}

@keyframes shopBtnFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes shopBtnGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes shopOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

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

/* ========================================
   SHOP MODAL
   ======================================== */
.shop-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-overlay .shop-modal-container,
.shop-modal-container.popup-container {
    max-width: 1050px !important;
    width: 94% !important;
    max-height: 85vh !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    animation: none !important;
    background: rgba(12, 12, 35, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(102, 126, 234, 0.15) !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(102, 126, 234, 0.08) !important;
}

.shop-modal-container .popup-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.shop-modal-container .popup-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shop-modal-container .popup-title i {
    color: #667eea;
}

.shop-content {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    max-height: calc(85vh - 70px);
    -webkit-overflow-scrolling: touch;
}

/* Themed scrollbar */
.shop-content::-webkit-scrollbar {
    width: 6px;
}
.shop-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
}
.shop-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 3px;
}
.shop-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7c8cf0, #8b5cf6);
}

.shop-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.85rem;
}

.shop-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.shop-card:hover {
    transform: translateY(-4px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.shop-card-img {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    position: relative;
}

.shop-card-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(180deg, transparent, rgba(10, 10, 30, 0.8));
}

.shop-card-info {
    padding: 0.85rem;
}

.shop-card-info h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.35rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-card-actions {
    display: flex;
    gap: 0.4rem;
}

.shop-card-btn {
    flex: 1;
    padding: 0.5rem 0.4rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    text-decoration: none;
}

.shop-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.shop-card-btn.shop-wp-btn {
    flex: 0 0 38px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    padding: 0.5rem;
    font-size: 0.85rem;
}

.shop-card-btn.shop-wp-btn:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ========================================
   MOBILE RESPONSIVE IMPROVEMENTS
   ======================================== */
@media (max-width: 1024px) {
    .floating-shop-btn {
        right: 16px;
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
        border-radius: 14px;
    }
    
    .float-3d { opacity: 0.6; }
}

@media (max-width: 768px) {
    body.single-page-layout {
        position: relative;
        height: auto;
        max-height: none;
        overflow-y: auto;
    }
    
    html {
        overflow: auto !important;
    }
    
    .hero-fullscreen {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 2rem;
    }
    
    .hero-container {
        height: auto;
        padding: 0 1.5rem;
    }
    
    .hero-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
        text-align: center;
    }
    
    .hero-description {
        text-align: center;
    }
    
    .main-desc {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .action-btn {
        min-width: 160px;
        height: 52px;
        font-size: 0.9rem;
    }
    
    .hero-copyright {
        text-align: center;
    }
    
    .hero-phone-preview {
        order: -1;
    }
    
    .phone-container {
        transform: none !important;
        max-height: 400px !important;
    }
    
    .floating-elements {
        display: none;
    }
    
    .floating-shop-btn {
        right: 12px;
        bottom: 20px;
        top: auto;
        transform: none;
        width: 52px;
        height: 52px;
    }
    
    .shop-card-price {
        font-size: 0.9rem;
    }
    
    .shop-card-btn {
        font-size: 0.7rem;
        padding: 0.4rem;
    }
    
    .floating-shop-btn:hover {
        transform: scale(1.1);
    }
    
    .shop-modal-container {
        width: 95% !important;
        max-height: 90vh !important;
        border-radius: 16px !important;
    }
    
    .shop-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.75rem;
    }
    
    .shop-card-img {
        height: 85px;
        font-size: 1.5rem;
    }
    
    .shop-card-info h4 {
        font-size: 0.72rem;
    }
    
    .bg-effects::before,
    .bg-effects::after {
        display: none;
    }
}


@media (max-width: 480px) {
    .hero-fullscreen {
        padding-top: 60px;
    }
    
    .hero-container {
        padding: 0 1rem;
    }
    
    .hero-main-title {
        font-size: clamp(1.4rem, 6.5vw, 1.8rem) !important;
    }
    
    .main-desc {
        font-size: 0.85rem;
    }
    
    .hero-actions {
        gap: 0.6rem;
    }
    
    .action-btn {
        min-width: 135px;
        height: 46px;
        font-size: 0.82rem;
    }
    
    .phone-container {
        max-height: 320px !important;
        transform: scale(0.48) !important;
        margin: -80px auto !important;
    }
    
    .link-icon {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.85rem !important;
    }
    
    .link-text {
        font-size: 0.42rem !important;
    }
    
    .floating-shop-btn {
        width: 46px;
        height: 46px;
        font-size: 1rem;
        right: 10px;
        bottom: 16px;
    }
    
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .shop-card-img {
        height: 70px;
    }

    .hero-copyright {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }
    
    .copyright-text {
        font-size: 0.6rem;
    }

    .shop-card-btn {
        font-size: 0.6rem !important;
        padding: 0.35rem !important;
    }
}

@media (max-width: 360px) {
    .hero-main-title {
        font-size: 1.3rem !important;
    }
    
    .action-btn {
        min-width: 120px;
        height: 42px;
        font-size: 0.75rem;
    }
    
    .phone-container {
        max-height: 280px !important;
        transform: scale(0.42) !important;
        margin: -95px auto !important;
    }
    
    .shop-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
}

/* ========================================
   COPYRIGHT / SOLID MEDYA STYLING
   ======================================== */
.hero-copyright {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.copyright-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.25rem;
}

.hero-copyright .powered-by a {
    color: #d4a017 !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-copyright .powered-by a:hover {
    color: #e6b422 !important;
    text-shadow: 0 0 15px rgba(212, 160, 23, 0.3);
}

.hero-copyright .powered-by b {
    color: #d4a017 !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.05em;
}

/* ========================================
   FLOATING YOUTUBE BUTTON
   ======================================== */
.floating-yt-btn {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 50%, #ff0000 100%);
    background-size: 200% 200%;
    box-shadow: 0 6px 25px rgba(255, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: ytBtnFloat 4.5s ease-in-out infinite, shopBtnGradient 5s ease infinite;
    border: 2px solid rgba(255, 255, 255, 0.12);
}

.floating-yt-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 0, 0, 0.25), transparent, rgba(255, 80, 80, 0.25), transparent);
    animation: shopOrbit 6s linear infinite;
    z-index: -1;
}

.floating-yt-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 10px 40px rgba(255, 0, 0, 0.45);
}

.floating-yt-btn i {
    margin-left: 3px; /* Visual center the play icon */
}

@keyframes ytBtnFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ========================================
   YOUTUBE VIDEO MODAL
   ======================================== */
.yt-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.yt-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.yt-modal-container {
    position: relative;
    width: 90%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: ytModalIn 0.4s ease-out;
}

@keyframes ytModalIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.yt-modal-video {
    width: 100%;
    height: 100%;
}

.yt-modal-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.yt-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.yt-modal-close:hover {
    background: rgba(255, 71, 87, 0.6);
    transform: rotate(90deg);
}

/* ========================================
   MOBILE - PHONE PREVIEW 9 CARDS
   ======================================== */
@media (max-width: 768px) {
    /* Show only 9 cards in phone preview on mobile */
    .links-grid .link-item:nth-child(n+10) {
        display: none !important;
    }
    
    .phone-container {
        width: 240px !important;
        height: auto !important;
        max-height: none !important;
        transform: none !important;
        margin: 0 auto !important;
    }
    
    .phone-screen {
        padding: 0.6rem !important;
    }
    
    .phone-header {
        margin-bottom: 0.4rem;
    }
    
    .phone-header .user-name {
        font-size: 0.75rem;
    }
    
    .phone-header .user-handle {
        font-size: 0.55rem;
    }
    
    .links-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.4rem !important;
    }
    
    .link-item {
        padding: 0.35rem !important;
    }
    
    .link-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.75rem !important;
        border-radius: 7px !important;
    }
    
    .link-text {
        font-size: 0.35rem !important;
        margin-top: 0.15rem !important;
    }
    
    .profile-avatar {
        width: 38px !important;
        height: 38px !important;
    }
    
    /* Floating buttons mobile */
    .floating-side-btns {
        right: 12px;
        bottom: 20px;
        top: auto;
        transform: none;
    }
    
    .floating-yt-btn {
        width: 44px;
        height: 44px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .phone-container {
        width: 200px !important;
    }
    
    .link-icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.65rem !important;
    }
    
    .link-text {
        font-size: 0.3rem !important;
    }
    
    .floating-side-btns {
        right: 10px;
        bottom: 14px;
        gap: 8px;
    }
    
    .floating-yt-btn {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }
    
    .floating-shop-btn {
        width: 44px !important;
        height: 44px !important;
        font-size: 1rem !important;
    }
    
    .shop-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .yt-modal-container {
        width: 95%;
        border-radius: 10px;
    }
    
    .yt-modal-close {
        top: -36px;
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
}

@media (max-width: 360px) {
    .phone-container {
        width: 180px !important;
    }
    
    .link-icon {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.6rem !important;
    }
}
