/* ============================================
   Dark Knight AI Studios - Main Stylesheet
   ============================================ */

:root {
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --bg-input: #15151f;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b7280;
    
    --border: #2a2a3a;
    --border-light: #3a3a4a;
    
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
    --glow: 0 0 30px rgba(139, 92, 246, 0.3);
    
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    outline: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Particles Background */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.5;
    animation: float 20s infinite linear;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.5;
    }
    25% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-200px) translateX(-30px);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-100px) translateX(-50px);
        opacity: 0.6;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(10, 10, 15, 0.95);
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--primary);
    filter: drop-shadow(0 0 10px var(--primary));
}

.logo-text {
    color: var(--text-primary);
}

.logo-sub {
    color: var(--primary);
    font-size: 0.7rem;
    letter-spacing: 3px;
    display: block;
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.admin-link {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem 2rem 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
    z-index: -1;
}

.hero-main-image {
    position: relative;
    margin-bottom: 3rem;
    z-index: 2;
}

.hero-image {
    max-width: 500px;
    max-height: 350px;
    border-radius: var(--radius-lg);
    box-shadow: var(--glow), var(--shadow-lg);
    border: 2px solid var(--border-light);
    animation: heroFloat 6s ease-in-out infinite;
}

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

.hero-placeholder {
    width: 400px;
    height: 250px;
    background: var(--bg-card);
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    gap: 0.5rem;
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.5;
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    z-index: -1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hero-content {
    text-align: center;
    max-width: 900px;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: 4px;
}

.title-line {
    display: block;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(139, 92, 246, 0.5);
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    letter-spacing: 2px;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-light);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    cursor: pointer;
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    animation: scrollDown 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes scrollDown {
    0%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: translateY(5px);
    }
}

/* Small disclaimer under the slideshow */
.slideshow-note {
    max-width: 1200px;
    margin: 1.25rem auto 0;
    padding: 0 0.25rem;
    text-align: justify;
    font-size: 0.78rem;
    line-height: 1.7;
    color: var(--text-muted);
    letter-spacing: 0.4px;
}

/* Logo slide pulse - only the logo animates, never the portfolio images.
   Filter targets the image (not the slide) so the coloured halo is visible
   in the letterbox area and the expand button is not tinted. */
@keyframes logoGlow {
    0%, 100% {
        filter:
            brightness(1) saturate(1) hue-rotate(0deg)
            drop-shadow(0 0 18px rgba(139, 92, 246, 0.35));
    }
    25% {
        filter:
            brightness(1.25) saturate(1.35) hue-rotate(70deg)
            drop-shadow(0 0 32px rgba(6, 182, 212, 0.45));
    }
    50% {
        filter:
            brightness(1.35) saturate(1.5) hue-rotate(150deg)
            drop-shadow(0 0 44px rgba(245, 158, 11, 0.50));
    }
    75% {
        filter:
            brightness(1.25) saturate(1.35) hue-rotate(240deg)
            drop-shadow(0 0 32px rgba(236, 72, 153, 0.45));
    }
}

.slide-logo.active .slide-image {
    animation: logoGlow 3s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .slide-logo.active .slide-image {
        animation: none;
    }
}

/* Slideshow Section */
.slideshow-section {
    padding: 6rem 1rem 1rem;
    position: relative;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary);
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* Slideshow Container */
.slideshow-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.slideshow-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    max-height: 90vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-image {
    max-width: 100%;
    max-height: 90vh;
    transition: var(--transition);
}

.slide:hover .slide-image {
    transform: scale(1.05);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    opacity: 0;
    transition: var(--transition);
}

.slide:hover .slide-overlay {
    opacity: 1;
}

.slide-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.slide-info p {
    color: var(--text-secondary);
}

.slide-expand {
    width: 50px;
    height: 50px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}

.slide-expand:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.slide-expand svg {
    width: 24px;
    height: 24px;
}

.empty-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
}

.empty-slide .slide-content {
    text-align: center;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 4rem;
    opacity: 0.5;
    display: block;
    margin-bottom: 1rem;
}

/* Slideshow Navigation */
.slideshow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
    z-index: 10;
}

.slideshow-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.slideshow-btn svg {
    width: 24px;
    height: 24px;
}

.slideshow-btn.prev {
    left: 1rem;
}

.slideshow-btn.next {
    right: 1rem;
}

/* Slideshow Dots */
.slideshow-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.5;
    transition: var(--transition);
}

.dot:hover {
    opacity: 0.8;
}

.dot.active {
    background: var(--primary);
    opacity: 1;
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--primary);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 8, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

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

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
}

.lightbox-close:hover {
    background: var(--danger);
    border-color: var(--danger);
    transform: rotate(90deg);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
}

.lightbox-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.lightbox-nav svg {
    width: 30px;
    height: 30px;
}

.lightbox-nav.prev {
    left: 2rem;
}

.lightbox-nav.next {
    right: 2rem;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--bg-darker);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.about-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Services Section */
.services {
    padding: 2rem 0 5rem;
    background: var(--bg-darker);
}

.services-list {
    max-width: 800px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

.service-item:last-child {
    border-bottom: none;
}

.service-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.5;
    min-width: 60px;
}

.service-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.service-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Current Project Section */
.current-project {
    padding: 2rem 0 5rem;
    background: var(--bg-darker);
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.project-card p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--bg-dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

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

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-item h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.contact-item a:hover {
    color: var(--primary);
}

/* Honeypot field - hidden from humans, visible to bots */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Contact form status messages */
.form-status {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    text-align: center;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: var(--success);
}

.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: var(--danger);
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem;
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--text-muted);
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero {
        padding: 5rem 1rem 3rem;
    }
    
    .hero-image {
        max-width: 100%;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .slideshow-btn {
        width: 40px;
        height: 40px;
    }
    
    .slideshow-btn.prev {
        left: 0.5rem;
    }
    
    .slideshow-btn.next {
        right: 0.5rem;
    }
    
    .slideshow-dots {
        bottom: 0.5rem;
    }
    
    .slide-overlay {
        padding: 1rem;
        opacity: 1;
    }
    
    .slide-info h3 {
        font-size: 1.1rem;
    }
    
    .slide-expand {
        width: 40px;
        height: 40px;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
    }
    
    .lightbox-nav.prev {
        left: 0.5rem;
    }
    
    .lightbox-nav.next {
        right: 0.5rem;
    }
    
    .service-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-grid {
        gap: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Tools Page Styles */
.tools-hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    text-align: center;
}

.tools-section {
    padding: 4rem 0;
    background: var(--bg-darker);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.tool-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.tool-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.tool-card:hover .tool-image img {
    transform: scale(1.05);
}

.tool-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.3;
}

.tool-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tool-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.tool-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.tool-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
}

.tool-link:hover {
    gap: 0.75rem;
    color: var(--secondary);
}

.tool-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .tools-hero {
        padding: 6rem 1rem 3rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tool-content {
        padding: 1.25rem;
    }
}

/* ============================================
   Agent Portal Styles
   ============================================ */

.agent-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.agent-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.agent-nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.agent-nav-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.agent-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.agent-nav-link .nav-icon {
    font-size: 1.1rem;
}

.agent-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition);
}

.agent-nav-link:hover {
    color: var(--text-primary);
}

.agent-nav-link:hover::after {
    width: 100%;
}

.agent-nav-link.active {
    color: var(--primary);
}

.agent-nav-link.active::after {
    width: 100%;
}

.agent-nav-link.public-link {
    color: var(--secondary);
}

.agent-nav-link.public-link::before {
    content: '↗';
    font-size: 0.7em;
    margin-right: 0.25rem;
    opacity: 0.7;
}

.agent-nav-link.public-link:hover {
    color: var(--secondary);
    background: rgba(6, 182, 212, 0.1);
    border-radius: var(--radius-sm);
}

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

.agent-user-name {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.agent-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 999px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.agent-logout-btn {
    color: var(--danger);
    background: none;
    border: 1px solid var(--danger);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.agent-logout-btn:hover {
    background: var(--danger);
    color: white;
}

.agent-main {
    padding-top: 80px;
    min-height: 100vh;
}

.agent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.agent-page-hero {
    padding: 4rem 0 2rem;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    text-align: center;
}

/* Agent Mode Banner on Public Pages */
.agent-mode-banner {
    position: sticky;
    top: 70px;
    z-index: 999;
    background: linear-gradient(90deg, rgba(139,92,246,0.15), rgba(6,182,212,0.15));
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    margin: 1rem auto;
    max-width: 1200px;
    animation: slideDown 0.3s ease;
}

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

.agent-mode-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.agent-mode-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.agent-mode-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Return to Portal Button */
.return-to-portal {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
}

/* Quick Actions Bar */
.quick-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* Dashboard Sections */
.dashboard-section {
    margin-top: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Mini Cards for Peers */
.agents-mini-grid,
.stores-mini-grid,
.peer-mini-card,
.store-mini-card {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.peer-mini-card,
.store-mini-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 1rem;
}

.peer-mini-card:hover,
.store-mini-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.peer-mini-card img,
.store-mini-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0.75rem;
    border: 2px solid var(--border);
}

.peer-mini-avatar,
.store-mini-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 2px dashed var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 0.75rem;
}

.peer-mini-card span,
.store-mini-card span {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    display: block;
}

.peer-mini-card small,
.store-mini-card small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Danger Zone */
.danger-zone {
    border: 2px solid var(--danger);
    border-radius: var(--radius);
    padding: 1.5rem;
    background: rgba(239,68,68,0.05);
}

.danger-zone h3,
.danger-zone h4 {
    color: var(--danger);
    margin-bottom: 1rem;
}

.danger-item {
    margin-bottom: 1.5rem;
}

.danger-item:last-child {
    margin-bottom: 0;
}

.confirmation-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.confirmation-checkboxes label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.confirmation-checkboxes input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--danger);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Privacy Notice */
.privacy-notice {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.privacy-notice h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.privacy-notice p {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.privacy-notice strong {
    color: var(--text-primary);
}

.privacy-notice a {
    color: var(--primary);
    text-decoration: underline;
}

.privacy-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
    cursor: pointer;
}

.privacy-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Store Builder Preview */
.store-builder {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

@media (max-width: 900px) {
    .store-builder {
        grid-template-columns: 1fr;
    }
}

.store-preview {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.store-preview h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.store-preview .store-card {
    background: var(--bg-input);
    border: 1px solid var(--border-light);
}

/* Edit Store Link */
.store-link.edit-link,
.store-item-link.edit-link {
    color: var(--secondary) !important;
    font-size: 0.8rem !important;
}

.store-link.edit-link:hover,
.store-item-link.edit-link:hover {
    color: var(--primary) !important;
}

/* Login Page Styles */
.agent-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.login-logo .logo-icon {
    font-size: 2rem;
    color: var(--primary);
    filter: drop-shadow(0 0 15px var(--primary));
}

.login-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.btn-full {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.invite-notice {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--secondary);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    font-size: 0.9rem;
}

.invite-notice strong {
    color: var(--text-primary);
}

.force-change-banner {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: var(--warning);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.stat-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Nav Cards */
.nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.nav-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.nav-card-icon {
    font-size: 2.5rem;
}

.nav-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.nav-card-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.nav-card-arrow {
    align-self: flex-end;
    color: var(--primary);
    font-size: 1.5rem;
    transition: var(--transition);
}

.nav-card:hover .nav-card-arrow {
    transform: translateX(5px);
}

/* Profile Completeness */
.profile-completeness {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.completeness-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.completeness-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.completeness-bar {
    height: 8px;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
}

.completeness-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.completeness-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.completeness-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.completeness-item.complete {
    color: var(--success);
}

.completeness-item .check-icon {
    color: var(--success);
}

/* Card Styles (shared with admin) */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h2 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.card-body {
    padding: 1.5rem;
}

.password-section {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    margin-top: 1rem;
}

/* Profile Image Section */
.profile-image-section {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.current-image {
    width: 150px;
    height: 150px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 2px solid var(--border);
}

.image-placeholder {
    width: 150px;
    height: 150px;
    border-radius: var(--radius);
    background: var(--bg-input);
    border: 2px dashed var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
}

.image-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Inline Form */
.inline-form {
    display: inline;
    margin: 0;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 8, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 0.2s ease;
    box-shadow: var(--shadow-lg);
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

.modal-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.modal-icon.warning { color: var(--warning); }
.modal-icon.success { color: var(--success); }
.modal-icon.danger { color: var(--danger); }

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Form Styles in Modals */
.modal .form-group {
    margin-bottom: 1rem;
}

.modal .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.modal .form-group input,
.modal .form-group textarea,
.modal .form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.modal .form-group input:focus,
.modal .form-group textarea:focus,
.modal .form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.modal .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.modal .form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-bottom: 0;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    position: relative;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary);
    font-weight: bold;
    font-size: 12px;
}

.category-row {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: start;
}

.category-row:last-child {
    margin-bottom: 0;
}

.category-row label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    display: block;
}

.subcategory-input-group {
    display: flex;
    gap: 0.5rem;
}

.subcategory-input-group input,
.subcategory-input-group select {
    flex: 1;
}

/* Agent Card on Public Pages */
.agent-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.agent-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.agent-card-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-input);
}

.agent-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

.agent-card:hover .agent-card-image img {
    transform: scale(1.05);
}

.agent-card-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
}

.agent-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.agent-card-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.agent-card-bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden.
}

.agent-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem.
}

.agent-category-tag {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 500.
}

.agent-card-stores-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem.
}

.agent-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase.
    transition: var(--transition).
}

.agent-card-btn:hover {
    gap: 0.75rem.
    color: var(--secondary).
}

.agent-card-btn svg {
    width: 18px;
    height: 18px.
    flex-shrink: 0.
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center.
    padding: 4rem 2rem.
    color: var(--text-muted).
}

.empty-icon {
    font-size: 4rem.
    display: block.
    margin-bottom: 1rem.
    opacity: 0.5.
}

.empty-hint {
    font-size: 1rem.
    margin-top: 0.5rem.
}

/* Agent Modal */
.agent-modal {
    position: fixed.
    top: 0.
    left: 0.
    right: 0.
    bottom: 0.
    z-index: 2000.
    display: none.
    align-items: center.
    justify-content: center.
    padding: 2rem.
}

.agent-modal.active {
    display: flex.
    animation: fadeIn 0.3s ease.
}

.agent-modal-backdrop {
    position: absolute.
    top: 0.
    left: 0.
    right: 0.
    bottom: 0.
    background: rgba(5, 5, 8, 0.95).
    backdrop-filter: blur(10px).
}

.agent-modal-content {
    position: relative.
    background: var(--bg-card).
    border: 1px solid var(--border).
    border-radius: var(--radius-lg).
    max-width: 700px.
    width: 100%.
    max-height: 90vh.
    overflow: hidden.
    animation: scaleIn 0.3s ease.
    box-shadow: var(--shadow-lg).
    display: flex.
    flex-direction: column.
}

.agent-modal-close {
    position: absolute.
    top: 1rem.
    right: 1rem.
    width: 44px.
    height: 44px.
    background: var(--bg-input).
    border: 1px solid var(--border-light).
    border-radius: 50%.
    color: var(--text-secondary).
    font-size: 1.5rem.
    cursor: pointer.
    transition: var(--transition).
    display: flex.
    align-items: center.
    justify-content: center.
    line-height: 1.
    z-index: 10.
}

.agent-modal-close:hover {
    background: var(--danger).
    border-color: var(--danger).
    color: white.
}

.agent-modal-header {
    padding: 2rem.
    border-bottom: 1px solid var(--border).
    text-align: center.
}

.agent-modal-image {
    width: 100px.
    height: 100px.
    border-radius: 50%.
    object-fit: cover.
    border: 3px solid var(--primary).
    box-shadow: var(--glow).
    margin-bottom: 1rem.
}

.agent-modal-image.placeholder {
    width: 100px.
    height: 100px.
    border-radius: 50%.
    background: var(--bg-input).
    border: 3px solid var(--border).
    display: flex.
    align-items: center.
    justify-content: center.
    font-size: 2.5rem.
    margin: 0 auto 1rem.
}

.agent-modal-name {
    font-family: var(--font-heading).
    font-size: 1.5rem.
    font-weight: 700.
    margin-bottom: 0.5rem.
}

.agent-modal-bio {
    color: var(--text-secondary).
    line-height: 1.7.
    max-width: 500px.
    margin: 0 auto 1rem.
}

.agent-modal-categories {
    display: flex.
    flex-wrap: wrap.
    gap: 0.5rem.
    justify-content: center.
    margin-bottom: 1rem.
}

.agent-modal-category-tag {
    background: rgba(139, 92, 246, 0.15).
    border: 1px solid rgba(139, 92, 246, 0.3).
    color: var(--primary).
    padding: 0.3rem 0.8rem.
    border-radius: 20px.
    font-size: 0.8rem.
    font-weight: 500.
}

.agent-modal-body {
    flex: 1.
    overflow-y: auto.
    padding: 2rem.
}

.stores-section-title {
    font-family: var(--font-heading).
    font-size: 1.1rem.
    font-weight: 700.
    letter-spacing: 1px.
    margin-bottom: 1.5rem.
    padding-bottom: 1rem.
    border-bottom: 1px solid var(--border).
    display: flex.
    align-items: center.
    gap: 0.5rem.
}

.stores-section-title::before {
    content: '🏪'.
}

.stores-list {
    display: flex.
    flex-direction: column.
    gap: 1rem.
}

.store-item {
    background: var(--bg-input).
    border: 1px solid var(--border).
    border-radius: var(--radius).
    overflow: hidden.
    transition: var(--transition).
}

.store-item:hover {
    border-color: var(--primary).
}

.store-item-content {
    display: grid.
    grid-template-columns: 100px 1fr.
    gap: 1rem.
    padding: 1rem.
}

.store-item-image {
    aspect-ratio: 1.
    border-radius: var(--radius-sm).
    overflow: hidden.
    background: var(--bg-darker).
}

.store-item-image img {
    width: 100%.
    height: 100%.
    object-fit: cover.
    object-position: center.
}

.store-item-image.placeholder {
    display: flex.
    align-items: center.
    justify-content: center.
    font-size: 1.5rem.
    color: var(--text-muted).
}

.store-item-details {
    display: flex.
    flex-direction: column.
    justify-content: center.
    gap: 0.5rem.
}

.store-item-name {
    font-family: var(--font-heading).
    font-size: 1rem.
    font-weight: 700.
}

.store-item-price {
    font-family: var(--font-heading).
    font-size: 0.95rem.
    color: var(--accent).
    font-weight: 700.
}

.store-item-categories {
    display: flex.
    flex-wrap: wrap.
    gap: 0.4rem.
}

.store-item-category-tag {
    background: rgba(139, 92, 246, 0.1).
    border: 1px solid rgba(139, 92, 246, 0.2).
    color: var(--primary).
    padding: 0.15rem 0.5rem.
    border-radius: 12px.
    font-size: 0.65rem.
    font-weight: 500.
}

.store-item-description {
    color: var(--text-secondary).
    font-size: 0.9rem.
    line-height: 1.5.
}

.store-item-link {
    display: inline-flex.
    align-items: center.
    gap: 0.5rem.
    color: var(--primary).
    font-weight: 600.
    font-size: 0.85rem.
    letter-spacing: 0.5px.
    text-transform: uppercase.
    transition: var(--transition).
    width: fit-content.
}

.store-item-link:hover {
    color: var(--secondary).
    gap: 0.75rem.
}

.store-item-link svg {
    width: 16px.
    height: 16px.
}

.no-stores {
    text-align: center.
    color: var(--text-muted).
    padding: 2rem.
    font-style: italic.
}

/* Agent Public Page */
.agent-page-hero {
    padding: 6rem 0 3rem.
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%).
    text-align: center.
}

.agent-profile-header {
    display: flex.
    flex-direction: column.
    align-items: center.
    gap: 1.5rem.
    margin-bottom: 2rem.
}

.agent-portrait {
    border-radius: 50%.
    object-fit: cover.
    object-position: center.
    border: 4px solid var(--primary).
    box-shadow: var(--glow), var(--shadow-lg).
    background: var(--bg-input).
}

.agent-portrait.placeholder {
    width: 180px.
    height: 180px.
    border-radius: 50%.
    background: var(--bg-input).
    border: 4px solid var(--border).
    display: flex.
    align-items: center.
    justify-content: center.
    font-size: 4rem.
    color: var(--text-muted).
    flex-shrink: 0.
}

.agent-name {
    font-family: var(--font-heading).
    font-size: clamp(2rem, 5vw, 3rem).
    font-weight: 700.
    letter-spacing: 2px.
    background: linear-gradient(135deg, #fff 0%, #8b5cf6 50%, #06b6d4 100%).
    -webkit-background-clip: text.
    -webkit-text-fill-color: transparent.
    background-clip: text.
}

.agent-bio {
    color: var(--text-secondary).
    font-size: 1.2rem.
    line-height: 1.7.
    max-width: 700px.
    margin: 0 auto.
}

.agent-categories {
    display: flex.
    flex-wrap: wrap.
    gap: 0.5rem.
    justify-content: center.
    margin-top: 1.5rem.
}

.agent-category-tag {
    background: rgba(139, 92, 246, 0.15).
    border: 1px solid rgba(139, 92, 246, 0.3).
    color: var(--primary).
    padding: 0.4rem 1rem.
    border-radius: 24px.
    font-size: 0.85rem.
    font-weight: 500.
}

.agent-stores-section {
    padding: 4rem 0.
    background: var(--bg-darker).
}

.stores-grid {
    display: grid.
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)).
    gap: 2rem.
    max-width: 1200px.
    margin: 0 auto.
}

.store-card {
    background: var(--bg-card).
    border: 1px solid var(--border).
    border-radius: var(--radius).
    overflow: hidden.
    transition: var(--transition).
    display: flex.
    flex-direction: column.
}

.store-card:hover {
    transform: translateY(-5px).
    border-color: var(--primary).
    box-shadow: var(--glow).
}

.store-image {
    aspect-ratio: 16/9.
    overflow: hidden.
    background: var(--bg-input).
}

.store-image img {
    width: 100%.
    height: 100%.
    object-fit: cover.
    object-position: center.
    transition: var(--transition).
}

.store-card:hover .store-image img {
    transform: scale(1.05).
}

.store-image.placeholder {
    display: flex.
    align-items: center.
    justify-content: center.
    font-size: 3rem.
    color: var(--text-muted).
}

.store-content {
    padding: 1.5rem.
    display: flex.
    flex-direction: column.
    flex: 1.
}

.store-header {
    display: flex.
    justify-content: space-between.
    align-items: flex-start.
    gap: 1rem.
    margin-bottom: 1rem.
}

.store-name {
    font-family: var(--font-heading).
    font-size: 1.2rem.
    font-weight: 700.
}

.store-price {
    font-family: var(--font-heading).
    font-size: 1.1rem.
    color: var(--accent).
    font-weight: 700.
    white-space: nowrap.
}

.store-categories {
    display: flex.
    flex-wrap: wrap.
    gap: 0.4rem.
    margin-bottom: 1rem.
}

.store-category-tag {
    background: rgba(139, 92, 246, 0.1).
    border: 1px solid rgba(139, 92, 246, 0.2).
    color: var(--primary).
    padding: 0.2rem 0.6rem.
    border-radius: 16px.
    font-size: 0.75rem.
    font-weight: 500.
}

.store-description {
    color: var(--text-secondary).
    line-height: 1.6.
    margin-bottom: 1.5rem.
    flex: 1.
}

.store-link {
    display: inline-flex.
    align-items: center.
    gap: 0.5rem.
    color: var(--primary).
    font-weight: 600.
    font-size: 0.9rem.
    letter-spacing: 1px.
    text-transform: uppercase.
    transition: var(--transition).
}

.store-link:hover {
    gap: 0.75rem.
    color: var(--secondary).
}

.store-link svg {
    width: 18px.
    height: 18px.
    flex-shrink: 0.
}

.empty-stores {
    grid-column: 1 / -1.
    text-align: center.
    padding: 4rem 2rem.
    color: var(--text-muted).
}

@media (max-width: 768px) {
    .agent-page-hero { padding: 5rem 1rem 2rem; }
    .agent-portrait { width: 140px; height: 140px; }
    .stores-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Footer Links */
.footer-links {
    display: flex.
    justify-content: center.
    gap: 2rem.
    margin-bottom: 2rem.
}

.footer-links a {
    color: var(--text-secondary).
    transition: var(--transition).
}

.footer-links a:hover {
    color: var(--primary).
}